From e4f5e43bc71b7ee3175ce6c97cb50c11e8eff4ee Mon Sep 17 00:00:00 2001 From: Mike Friesen Date: Thu, 20 Nov 2025 13:15:51 -0600 Subject: [PATCH 1/4] update --- .github/workflows/maven.yml | 30 + .openapi-generator/FILES | 3 + api/openapi.yaml | 26 +- build.gradle | 2 +- docs/AddApiKeyPermission.md | 17 + docs/AddApiKeyRequest.md | 14 +- .../formkiq/client/api/AccessControlApi.java | 1564 +- .../client/api/AdvancedDocumentSearchApi.java | 3097 ++-- .../com/formkiq/client/api/AttributesApi.java | 2138 ++- .../formkiq/client/api/CaseManagementApi.java | 7575 ++++------ .../formkiq/client/api/CustomIndexApi.java | 1177 +- .../client/api/DocumentActionsApi.java | 1191 +- .../client/api/DocumentAttributesApi.java | 2464 ++-- .../api/DocumentDataClassificationApi.java | 754 +- .../client/api/DocumentFoldersApi.java | 1715 +-- .../client/api/DocumentGenerationApi.java | 455 +- .../formkiq/client/api/DocumentOcrApi.java | 1433 +- .../formkiq/client/api/DocumentSearchApi.java | 463 +- .../formkiq/client/api/DocumentSharesApi.java | 1040 +- .../formkiq/client/api/DocumentTagsApi.java | 3138 ++-- .../client/api/DocumentVersionsApi.java | 1143 +- .../client/api/DocumentWorkflowsApi.java | 5911 +++----- .../com/formkiq/client/api/DocumentsApi.java | 7476 ++++------ .../com/formkiq/client/api/ESignatureApi.java | 1087 +- .../com/formkiq/client/api/EntityApi.java | 3190 ++-- .../formkiq/client/api/ExamineObjectsApi.java | 677 +- .../client/api/GoogleIntegrationApi.java | 442 +- .../formkiq/client/api/MalwareScanApi.java | 1117 +- .../com/formkiq/client/api/MappingsApi.java | 1685 +-- .../com/formkiq/client/api/PublicApi.java | 728 +- .../com/formkiq/client/api/ReindexApi.java | 445 +- .../com/formkiq/client/api/RulesetsApi.java | 3409 ++--- .../com/formkiq/client/api/SchemasApi.java | 3068 ++-- .../client/api/SystemManagementApi.java | 12301 +++++++--------- .../com/formkiq/client/api/TagIndexApi.java | 468 +- .../formkiq/client/api/UserActivitiesApi.java | 1217 +- .../formkiq/client/api/UserManagementApi.java | 4275 +++--- .../com/formkiq/client/api/WebhooksApi.java | 2603 ++-- .../formkiq/client/invoker/ApiCallback.java | 89 +- .../com/formkiq/client/invoker/ApiClient.java | 3085 ++-- .../formkiq/client/invoker/ApiException.java | 333 +- .../formkiq/client/invoker/ApiResponse.java | 125 +- .../formkiq/client/invoker/Configuration.java | 36 +- .../invoker/GzipRequestInterceptor.java | 113 +- .../java/com/formkiq/client/invoker/JSON.java | 1809 +-- .../java/com/formkiq/client/invoker/Pair.java | 23 +- .../client/invoker/ProgressRequestBody.java | 107 +- .../client/invoker/ProgressResponseBody.java | 87 +- .../client/invoker/ServerConfiguration.java | 110 +- .../client/invoker/ServerVariable.java | 50 +- .../formkiq/client/invoker/StringUtil.java | 31 +- .../formkiq/client/invoker/auth/AWS4Auth.java | 23 +- .../client/invoker/auth/ApiKeyAuth.java | 28 +- .../client/invoker/auth/Authentication.java | 48 +- .../client/invoker/auth/HttpBasicAuth.java | 75 +- .../client/invoker/auth/HttpBearerAuth.java | 40 +- .../formkiq/client/invoker/auth/OAuth.java | 28 +- .../client/invoker/auth/OAuthFlow.java | 29 +- .../invoker/auth/OAuthOkHttpClient.java | 19 +- .../client/invoker/auth/RetryingOAuth.java | 19 +- .../client/model/AbstractOpenApiSchema.java | 247 +- .../com/formkiq/client/model/Activity.java | 239 +- .../formkiq/client/model/ActivityStatus.java | 28 +- .../com/formkiq/client/model/AddAction.java | 142 +- .../client/model/AddActionParameters.java | 474 +- .../client/model/AddApiKeyPermission.java | 84 + .../client/model/AddApiKeyRequest.java | 237 +- .../client/model/AddApiKeyResponse.java | 110 +- .../formkiq/client/model/AddAttribute.java | 156 +- .../client/model/AddAttributeRequest.java | 117 +- .../model/AddAttributeSchemaOptional.java | 144 +- .../model/AddAttributeSchemaRequired.java | 176 +- .../com/formkiq/client/model/AddCase.java | 285 +- .../formkiq/client/model/AddCaseRequest.java | 117 +- .../formkiq/client/model/AddCaseResponse.java | 110 +- .../client/model/AddChildDocument.java | 273 +- .../model/AddChildDocumentResponse.java | 127 +- .../client/model/AddClassification.java | 123 +- .../model/AddClassificationRequest.java | 112 +- .../model/AddClassificationResponse.java | 113 +- .../model/AddDocumentActionsRequest.java | 127 +- .../model/AddDocumentActionsResponse.java | 110 +- .../AddDocumentActionsRetryResponse.java | 122 +- .../client/model/AddDocumentAttribute.java | 610 +- .../AddDocumentAttributeClassification.java | 139 +- .../model/AddDocumentAttributeEntity.java | 162 +- .../AddDocumentAttributeRelationship.java | 170 +- .../model/AddDocumentAttributeStandard.java | 185 +- .../model/AddDocumentAttributeValue.java | 155 +- .../model/AddDocumentAttributesRequest.java | 131 +- .../model/AddDocumentFulltextRequest.java | 292 +- .../model/AddDocumentFulltextResponse.java | 110 +- .../model/AddDocumentGenerateRequest.java | 228 +- .../model/AddDocumentGenerateResponse.java | 110 +- .../client/model/AddDocumentMetadata.java | 149 +- .../client/model/AddDocumentOcrRequest.java | 208 +- .../client/model/AddDocumentOcrResponse.java | 110 +- .../client/model/AddDocumentRequest.java | 379 +- .../client/model/AddDocumentResponse.java | 174 +- .../formkiq/client/model/AddDocumentSync.java | 122 +- .../client/model/AddDocumentSyncRequest.java | 109 +- .../client/model/AddDocumentSyncService.java | 24 +- .../formkiq/client/model/AddDocumentTag.java | 149 +- .../client/model/AddDocumentTagsRequest.java | 127 +- .../model/AddDocumentUploadRequest.java | 294 +- .../AddDocumentWorkflowDecisionsRequest.java | 173 +- .../AddDocumentWorkflowDecisionsResponse.java | 126 +- .../model/AddDocumentWorkflowRequest.java | 121 +- .../model/AddDocumentWorkflowResponse.java | 110 +- .../model/AddDocusignEnvelopesRequest.java | 221 +- .../model/AddDocusignEnvelopesResponse.java | 111 +- .../AddDocusignRecipientViewRequest.java | 144 +- .../AddDocusignRecipientViewResponse.java | 122 +- .../com/formkiq/client/model/AddEntity.java | 141 +- .../client/model/AddEntityAttribute.java | 161 +- .../client/model/AddEntityRequest.java | 109 +- .../client/model/AddEntityResponse.java | 110 +- .../formkiq/client/model/AddEntityType.java | 123 +- .../client/model/AddEntityTypeRequest.java | 109 +- .../client/model/AddEntityTypeResponse.java | 110 +- .../client/model/AddFolderPermission.java | 129 +- .../client/model/AddFolderRequest.java | 110 +- .../client/model/AddFolderResponse.java | 124 +- .../client/model/AddFolderShareRequest.java | 109 +- .../client/model/AddFolderShareResponse.java | 124 +- .../model/AddGoogleDocumentExportRequest.java | 136 +- .../AddGoogleDocumentExportResponse.java | 122 +- .../com/formkiq/client/model/AddGroup.java | 124 +- .../formkiq/client/model/AddGroupRequest.java | 117 +- .../client/model/AddLocaleRequest.java | 110 +- .../AddLocaleResourceClassificationItem.java | 197 +- .../model/AddLocaleResourceInterfaceItem.java | 166 +- .../model/AddLocaleResourceItemRequest.java | 113 +- .../model/AddLocaleResourceItemResponse.java | 114 +- .../model/AddLocaleResourceSchemaItem.java | 164 +- .../com/formkiq/client/model/AddMapping.java | 153 +- .../client/model/AddMappingRequest.java | 109 +- .../client/model/AddMappingResponse.java | 110 +- .../com/formkiq/client/model/AddNigo.java | 217 +- .../formkiq/client/model/AddNigoRequest.java | 117 +- .../formkiq/client/model/AddNigoResponse.java | 110 +- .../formkiq/client/model/AddQueueRequest.java | 121 +- .../client/model/AddQueueResponse.java | 110 +- .../model/AddReindexDocumentRequest.java | 109 +- .../formkiq/client/model/AddResourceItem.java | 521 +- .../com/formkiq/client/model/AddResponse.java | 110 +- .../com/formkiq/client/model/AddRule.java | 152 +- .../formkiq/client/model/AddRuleRequest.java | 109 +- .../formkiq/client/model/AddRuleResponse.java | 110 +- .../com/formkiq/client/model/AddRuleset.java | 132 +- .../client/model/AddRulesetRequest.java | 117 +- .../client/model/AddRulesetResponse.java | 110 +- .../com/formkiq/client/model/AddShare.java | 126 +- .../com/formkiq/client/model/AddSite.java | 134 +- .../formkiq/client/model/AddSiteRequest.java | 109 +- .../com/formkiq/client/model/AddTask.java | 217 +- .../formkiq/client/model/AddTaskRequest.java | 117 +- .../formkiq/client/model/AddTaskResponse.java | 110 +- .../com/formkiq/client/model/AddUser.java | 123 +- .../formkiq/client/model/AddUserRequest.java | 117 +- .../client/model/AddWebhookRequest.java | 176 +- .../client/model/AddWebhookResponse.java | 124 +- .../client/model/AddWebhookTagRequest.java | 138 +- .../client/model/AddWorkflowRequest.java | 165 +- .../client/model/AddWorkflowResponse.java | 110 +- .../formkiq/client/model/AddWorkflowStep.java | 166 +- .../client/model/AddWorkflowStepDecision.java | 130 +- .../client/model/AddWorkflowStepQueue.java | 140 +- .../java/com/formkiq/client/model/ApiKey.java | 185 +- .../com/formkiq/client/model/Attribute.java | 144 +- .../client/model/AttributeDataType.java | 36 +- .../model/AttributeSchemaCompositeKey.java | 115 +- .../client/model/AttributeSchemaOptional.java | 162 +- .../client/model/AttributeSchemaRequired.java | 192 +- .../formkiq/client/model/AttributeType.java | 28 +- .../client/model/AttributeValueType.java | 42 +- .../com/formkiq/client/model/CaseStatus.java | 40 +- .../formkiq/client/model/ChecksumType.java | 26 +- .../formkiq/client/model/ChildDocument.java | 269 +- .../formkiq/client/model/Classification.java | 150 +- .../client/model/ClassificationSummary.java | 154 +- .../client/model/DataClassification.java | 193 +- .../model/DataClassificationAttribute.java | 124 +- .../client/model/DeleteApiKeyResponse.java | 110 +- .../model/DeleteCaseDocumentResponse.java | 110 +- .../model/DeleteCaseNigoDocumentResponse.java | 120 +- .../client/model/DeleteCaseNigoResponse.java | 110 +- .../client/model/DeleteCaseResponse.java | 110 +- .../model/DeleteCaseTaskDocumentResponse.java | 120 +- .../client/model/DeleteCaseTaskResponse.java | 110 +- .../client/model/DeleteFolderResponse.java | 110 +- .../client/model/DeleteFulltextResponse.java | 110 +- .../client/model/DeleteIndicesResponse.java | 110 +- .../client/model/DeleteQueueResponse.java | 110 +- .../formkiq/client/model/DeleteResponse.java | 110 +- .../client/model/DeleteRuleResponse.java | 110 +- .../client/model/DeleteRulesetResponse.java | 110 +- .../client/model/DeleteShareResponse.java | 110 +- .../client/model/DeleteWorkflowResponse.java | 110 +- .../com/formkiq/client/model/Document.java | 335 +- .../formkiq/client/model/DocumentAction.java | 237 +- .../client/model/DocumentActionStatus.java | 40 +- .../client/model/DocumentActionType.java | 50 +- .../client/model/DocumentAttribute.java | 199 +- .../model/DocumentFulltextAttribute.java | 166 +- .../model/DocumentFulltextAttributeEq.java | 124 +- .../client/model/DocumentFulltextRequest.java | 133 +- .../model/DocumentFulltextResponse.java | 130 +- .../client/model/DocumentFulltextSearch.java | 176 +- .../client/model/DocumentFulltextTag.java | 149 +- .../model/DocumentGenerateDataSource.java | 147 +- .../model/DocumentGenerateInsertDocument.java | 146 +- ...ocumentGenerateInsertDocumentPosition.java | 30 +- .../model/DocumentGenerateOutputType.java | 26 +- .../com/formkiq/client/model/DocumentId.java | 135 +- .../client/model/DocumentMetadata.java | 138 +- .../model/DocumentRelationshipType.java | 34 +- .../formkiq/client/model/DocumentSearch.java | 223 +- .../client/model/DocumentSearchAttribute.java | 172 +- .../model/DocumentSearchMatchAttribute.java | 140 +- .../client/model/DocumentSearchMatchTag.java | 136 +- .../client/model/DocumentSearchMeta.java | 183 +- .../client/model/DocumentSearchRange.java | 145 +- .../client/model/DocumentSearchRequest.java | 133 +- .../client/model/DocumentSearchResponse.java | 156 +- .../client/model/DocumentSearchTag.java | 172 +- .../client/model/DocumentSearchTags.java | 158 +- .../formkiq/client/model/DocumentSync.java | 184 +- .../client/model/DocumentSyncService.java | 26 +- .../client/model/DocumentSyncStatus.java | 30 +- .../client/model/DocumentSyncType.java | 30 +- .../com/formkiq/client/model/DocumentTag.java | 189 +- .../formkiq/client/model/DocumentVersion.java | 192 +- .../client/model/DocumentWorkflow.java | 174 +- .../client/model/DocumentWorkflowStatus.java | 28 +- .../model/DocumentsCompressRequest.java | 128 +- .../model/DocumentsCompressResponse.java | 110 +- .../formkiq/client/model/DocusignConfig.java | 155 +- .../client/model/DocusignEnvironment.java | 26 +- .../client/model/DocusignInpersonSigner.java | 216 +- .../client/model/DocusignNotification.java | 154 +- .../DocusignNotificationExpirations.java | 163 +- .../model/DocusignNotificationReminders.java | 155 +- .../client/model/DocusignRecipientView.java | 203 +- .../client/model/DocusignSignHereTabs.java | 217 +- .../formkiq/client/model/DocusignSigner.java | 200 +- .../client/model/DocusignSigningTabs.java | 130 +- .../java/com/formkiq/client/model/Entity.java | 179 +- .../formkiq/client/model/EntityAttribute.java | 175 +- .../com/formkiq/client/model/EntityType.java | 150 +- .../client/model/EntityTypeNamespace.java | 26 +- .../java/com/formkiq/client/model/Error.java | 122 +- .../formkiq/client/model/ErrorsResponse.java | 127 +- .../client/model/FolderPermission.java | 129 +- .../client/model/FolderPermissionType.java | 28 +- .../client/model/FulltextAttribute.java | 145 +- .../client/model/FulltextSearchItem.java | 266 +- .../client/model/GetActivitesResponse.java | 141 +- .../client/model/GetApiKeysResponse.java | 141 +- .../GetAttributeAllowedValuesResponse.java | 145 +- .../client/model/GetAttributeResponse.java | 109 +- .../client/model/GetAttributesResponse.java | 141 +- .../model/GetCaseDocumentsResponse.java | 141 +- .../client/model/GetCaseNigoResponse.java | 109 +- .../client/model/GetCaseNigosResponse.java | 141 +- .../formkiq/client/model/GetCaseResponse.java | 109 +- .../client/model/GetCaseTaskResponse.java | 109 +- .../client/model/GetCaseTasksResponse.java | 141 +- .../client/model/GetCasesResponse.java | 141 +- .../model/GetClassificationResponse.java | 112 +- .../model/GetClassificationsResponse.java | 150 +- .../model/GetConfigurationResponse.java | 210 +- .../model/GetDocumentActionsResponse.java | 144 +- .../model/GetDocumentAttributeResponse.java | 113 +- .../model/GetDocumentAttributesResponse.java | 148 +- .../model/GetDocumentContentResponse.java | 142 +- ...GetDocumentDataClassificationResponse.java | 170 +- .../model/GetDocumentFulltextResponse.java | 294 +- .../client/model/GetDocumentOcrResponse.java | 266 +- .../client/model/GetDocumentResponse.java | 355 +- .../client/model/GetDocumentSyncResponse.java | 141 +- .../client/model/GetDocumentTagResponse.java | 189 +- .../client/model/GetDocumentTagsResponse.java | 153 +- .../client/model/GetDocumentUrlResponse.java | 127 +- .../model/GetDocumentVersionsResponse.java | 144 +- .../model/GetDocumentWorkflowResponse.java | 112 +- .../model/GetDocumentWorkflowsResponse.java | 145 +- .../client/model/GetDocumentsResponse.java | 153 +- .../client/model/GetEntitiesResponse.java | 141 +- .../client/model/GetEntityResponse.java | 109 +- .../client/model/GetEntityTypeResponse.java | 109 +- .../client/model/GetEntityTypesResponse.java | 144 +- .../client/model/GetExaminePdfResponse.java | 109 +- .../model/GetExaminePdfUrlResponse.java | 124 +- .../model/GetFolderPermissionsResponse.java | 131 +- .../client/model/GetFoldersResponse.java | 156 +- .../client/model/GetGroupResponse.java | 109 +- .../client/model/GetGroupsResponse.java | 141 +- .../model/GetLocaleResourceItemResponse.java | 116 +- .../model/GetLocaleResourceItemsResponse.java | 154 +- .../client/model/GetLocalesResponse.java | 141 +- .../client/model/GetMalwareScanResponse.java | 151 +- .../client/model/GetMappingResponse.java | 109 +- .../client/model/GetMappingsResponse.java | 141 +- .../model/GetOpaAccessPoliciesResponse.java | 145 +- .../GetOpaAccessPolicyItemsResponse.java | 142 +- .../model/GetOpaAccessPolicyResponse.java | 110 +- .../model/GetOpenSearchIndexResponse.java | 112 +- .../model/GetOpenSearchIndiceResponse.java | 130 +- ...tOpenSearchSnapshotRepositoryResponse.java | 157 +- .../model/GetOpenSearchSnapshotResponse.java | 134 +- .../client/model/GetQueueResponse.java | 110 +- .../client/model/GetQueuesResponse.java | 141 +- .../formkiq/client/model/GetRuleResponse.java | 109 +- .../client/model/GetRulesResponse.java | 141 +- .../client/model/GetRulesetResponse.java | 109 +- .../client/model/GetRulesetsResponse.java | 141 +- .../client/model/GetSiteGroupResponse.java | 109 +- .../client/model/GetSiteGroupsResponse.java | 112 +- .../client/model/GetSitesResponse.java | 155 +- .../client/model/GetSitesSchemaResponse.java | 123 +- .../model/GetUserActivitesResponse.java | 144 +- .../client/model/GetUserGroupsResponse.java | 141 +- .../formkiq/client/model/GetUserResponse.java | 109 +- .../client/model/GetUserSharesResponse.java | 141 +- .../client/model/GetUsersInGroupResponse.java | 141 +- .../client/model/GetUsersResponse.java | 141 +- .../client/model/GetVersionResponse.java | 153 +- .../client/model/GetWebhookResponse.java | 199 +- .../client/model/GetWebhookTagsResponse.java | 153 +- .../client/model/GetWebhooksResponse.java | 144 +- .../model/GetWorkflowDocumentsResponse.java | 145 +- .../GetWorkflowQueueDocumentsResponse.java | 156 +- .../client/model/GetWorkflowResponse.java | 170 +- .../client/model/GetWorkflowsResponse.java | 144 +- .../formkiq/client/model/GoogleConfig.java | 154 +- .../client/model/GoogleExportOutputType.java | 24 +- .../java/com/formkiq/client/model/Group.java | 150 +- .../client/model/IndexFolderMoveRequest.java | 124 +- .../client/model/IndexFolderMoveResponse.java | 110 +- .../com/formkiq/client/model/IndexSearch.java | 110 +- .../client/model/IndexSearchRequest.java | 110 +- .../client/model/IndexSearchResponse.java | 153 +- .../com/formkiq/client/model/LocaleInfo.java | 110 +- .../client/model/LocaleResourceType.java | 28 +- .../formkiq/client/model/MalwareEngine.java | 24 +- .../client/model/MalwareScanResult.java | 161 +- .../client/model/MalwareScanStatus.java | 28 +- .../com/formkiq/client/model/Mapping.java | 168 +- .../client/model/MappingAttribute.java | 219 +- .../MappingAttributeLabelMatchingType.java | 30 +- .../model/MappingAttributeMetadataField.java | 28 +- .../model/MappingAttributeSourceType.java | 34 +- .../client/model/MatchDocumentTag.java | 147 +- .../com/formkiq/client/model/ModelCase.java | 252 +- .../java/com/formkiq/client/model/Nigo.java | 226 +- .../com/formkiq/client/model/NigoStatus.java | 40 +- .../com/formkiq/client/model/OcrConfig.java | 115 +- .../com/formkiq/client/model/OcrEngine.java | 23 +- .../formkiq/client/model/OcrKeyValues.java | 126 +- .../formkiq/client/model/OcrOutputType.java | 24 +- .../com/formkiq/client/model/OcrTable.java | 128 +- .../formkiq/client/model/OcrTableData.java | 110 +- .../com/formkiq/client/model/OpaPolicy.java | 124 +- .../client/model/OpaPolicyAttribute.java | 203 +- .../client/model/OpaPolicyAttributeEq.java | 132 +- .../client/model/OpaPolicyAttributeGt.java | 101 +- .../client/model/OpaPolicyAttributeGte.java | 101 +- .../client/model/OpaPolicyAttributeIn.java | 112 +- .../client/model/OpaPolicyAttributeInput.java | 101 +- .../client/model/OpaPolicyAttributeLt.java | 101 +- .../client/model/OpaPolicyAttributeLte.java | 101 +- .../client/model/OpaPolicyAttributeNeq.java | 110 +- .../client/model/OpaPolicyAttributeNotIn.java | 115 +- .../formkiq/client/model/OpaPolicyInput.java | 122 +- .../client/model/OpaPolicyInputMethod.java | 128 +- .../client/model/OpaPolicyInputResource.java | 128 +- .../formkiq/client/model/OpaPolicyItem.java | 197 +- .../formkiq/client/model/OpenSearchAlias.java | 110 +- .../formkiq/client/model/OpenSearchIndex.java | 192 +- .../client/model/OpenSearchIndexSetting.java | 127 +- .../client/model/OpenSearchS3Repository.java | 124 +- .../client/model/OpenSearchSnapshot.java | 251 +- .../model/OpenSearchSnapshotFailure.java | 166 +- .../client/model/OpenSearchSnapshotShard.java | 109 +- .../com/formkiq/client/model/PdfDocument.java | 127 +- .../client/model/PdfDocumentField.java | 124 +- .../client/model/QueryFulltextResponse.java | 101 +- .../java/com/formkiq/client/model/Queue.java | 122 +- .../formkiq/client/model/ReindexTarget.java | 24 +- .../formkiq/client/model/ResourceItem.java | 189 +- .../java/com/formkiq/client/model/Rule.java | 162 +- .../formkiq/client/model/RuleCondition.java | 127 +- .../client/model/RuleConditionAttribute.java | 32 +- .../client/model/RuleConditionCriterion.java | 32 +- .../client/model/RuleConditionMust.java | 172 +- .../client/model/RuleConditionOperation.java | 26 +- .../com/formkiq/client/model/Ruleset.java | 156 +- .../formkiq/client/model/RulesetStatus.java | 26 +- .../client/model/SchemaAttributes.java | 217 +- .../client/model/SearchRangeDataType.java | 26 +- .../client/model/SearchResponseFields.java | 128 +- .../client/model/SearchResultDocument.java | 410 +- .../model/SearchResultDocumentAttribute.java | 161 +- .../model/SetClassificationRequest.java | 112 +- .../model/SetDocumentAttributeRequest.java | 112 +- .../model/SetDocumentAttributesRequest.java | 131 +- .../SetDocumentDataClassificationRequest.java | 146 +- ...SetDocumentDataClassificationResponse.java | 166 +- .../model/SetDocumentFulltextRequest.java | 292 +- .../model/SetDocumentFulltextResponse.java | 110 +- .../client/model/SetDocumentOcrRequest.java | 138 +- .../model/SetDocumentRestoreResponse.java | 110 +- .../model/SetDocumentTagKeyRequest.java | 126 +- .../model/SetDocumentVersionRequest.java | 110 +- .../model/SetDocumentVersionResponse.java | 110 +- .../model/SetFolderPermissionsRequest.java | 144 +- .../model/SetGroupPermissionsRequest.java | 115 +- .../model/SetLocaleResourceItemRequest.java | 113 +- .../client/model/SetMappingRequest.java | 109 +- .../model/SetOpaAccessPolicyItemsRequest.java | 146 +- .../model/SetOpenSearchIndexRequest.java | 112 +- .../model/SetOpenSearchIndexResponse.java | 110 +- .../model/SetOpenSearchIndiceRequest.java | 110 +- .../com/formkiq/client/model/SetResponse.java | 110 +- .../client/model/SetSchemaAttributes.java | 217 +- .../client/model/SetSitesSchemaRequest.java | 126 +- .../client/model/SetWorkflowRequest.java | 165 +- .../client/model/SetWorkflowResponse.java | 110 +- .../java/com/formkiq/client/model/Site.java | 210 +- .../com/formkiq/client/model/SiteConfig.java | 154 +- .../com/formkiq/client/model/SiteGroup.java | 112 +- .../client/model/SiteGroupPermissions.java | 32 +- .../com/formkiq/client/model/SiteStatus.java | 26 +- .../com/formkiq/client/model/SiteUsage.java | 109 +- .../formkiq/client/model/StringFormat.java | 126 +- .../client/model/StringGeneratorType.java | 28 +- .../java/com/formkiq/client/model/Task.java | 226 +- .../com/formkiq/client/model/TaskStatus.java | 40 +- .../formkiq/client/model/TextractQuery.java | 138 +- .../formkiq/client/model/UpdateAttribute.java | 122 +- .../client/model/UpdateAttributeRequest.java | 117 +- .../com/formkiq/client/model/UpdateCase.java | 206 +- .../client/model/UpdateCaseRequest.java | 109 +- .../client/model/UpdateCaseResponse.java | 110 +- .../model/UpdateConfigurationRequest.java | 210 +- .../model/UpdateConfigurationResponse.java | 110 +- .../model/UpdateDocumentFulltextRequest.java | 299 +- .../model/UpdateDocumentFulltextResponse.java | 120 +- .../client/model/UpdateDocumentRequest.java | 359 +- .../client/model/UpdateEntityRequest.java | 109 +- .../UpdateMatchingDocumentTagsRequest.java | 144 +- ...pdateMatchingDocumentTagsRequestMatch.java | 128 +- ...dateMatchingDocumentTagsRequestUpdate.java | 148 +- .../UpdateMatchingDocumentTagsResponse.java | 122 +- .../com/formkiq/client/model/UpdateNigo.java | 206 +- .../client/model/UpdateNigoRequest.java | 109 +- .../client/model/UpdateNigoResponse.java | 110 +- .../formkiq/client/model/UpdateResponse.java | 110 +- .../com/formkiq/client/model/UpdateRule.java | 152 +- .../client/model/UpdateRuleRequest.java | 109 +- .../client/model/UpdateRuleResponse.java | 110 +- .../formkiq/client/model/UpdateRuleset.java | 132 +- .../client/model/UpdateRulesetRequest.java | 117 +- .../client/model/UpdateRulesetResponse.java | 110 +- .../com/formkiq/client/model/UpdateSite.java | 123 +- .../client/model/UpdateSiteRequest.java | 109 +- .../com/formkiq/client/model/UpdateTask.java | 206 +- .../client/model/UpdateTaskRequest.java | 109 +- .../client/model/UpdateTaskResponse.java | 110 +- .../client/model/UpdateWorkflowRequest.java | 135 +- .../client/model/UpdateWorkflowResponse.java | 110 +- .../java/com/formkiq/client/model/User.java | 178 +- .../formkiq/client/model/UserActivity.java | 152 +- .../client/model/UserActivityChanges.java | 106 +- .../client/model/UserActivityType.java | 36 +- .../formkiq/client/model/UserAttributes.java | 299 +- .../com/formkiq/client/model/UserShare.java | 216 +- .../client/model/UserSharePermission.java | 28 +- .../client/model/UserSharePermissionType.java | 24 +- .../formkiq/client/model/ValidationError.java | 124 +- .../model/ValidationErrorsResponse.java | 127 +- .../com/formkiq/client/model/Watermark.java | 155 +- .../client/model/WatermarkPosition.java | 128 +- .../model/WatermarkPositionXAnchor.java | 28 +- .../model/WatermarkPositionYAnchor.java | 28 +- .../formkiq/client/model/WatermarkScale.java | 26 +- .../com/formkiq/client/model/WebhookTag.java | 184 +- .../client/model/WorkflowDocument.java | 122 +- .../formkiq/client/model/WorkflowQueue.java | 126 +- .../formkiq/client/model/WorkflowStatus.java | 26 +- .../formkiq/client/model/WorkflowStep.java | 163 +- .../client/model/WorkflowStepDecision.java | 123 +- .../model/WorkflowStepDecisionType.java | 26 +- .../formkiq/client/model/WorkflowSummary.java | 177 +- .../client/api/AccessControlApiTest.java | 151 +- .../api/AdvancedDocumentSearchApiTest.java | 322 +- .../formkiq/client/api/AttributesApiTest.java | 193 +- .../client/api/CaseManagementApiTest.java | 669 +- .../client/api/CustomIndexApiTest.java | 106 +- .../client/api/DocumentActionsApiTest.java | 139 +- .../client/api/DocumentAttributesApiTest.java | 247 +- .../DocumentDataClassificationApiTest.java | 85 +- .../client/api/DocumentFoldersApiTest.java | 174 +- .../client/api/DocumentGenerationApiTest.java | 59 +- .../client/api/DocumentOcrApiTest.java | 154 +- .../client/api/DocumentSearchApiTest.java | 65 +- .../client/api/DocumentSharesApiTest.java | 107 +- .../client/api/DocumentTagsApiTest.java | 330 +- .../client/api/DocumentVersionsApiTest.java | 119 +- .../client/api/DocumentWorkflowsApiTest.java | 499 +- .../formkiq/client/api/DocumentsApiTest.java | 692 +- .../formkiq/client/api/ESignatureApiTest.java | 109 +- .../com/formkiq/client/api/EntityApiTest.java | 320 +- .../client/api/ExamineObjectsApiTest.java | 76 +- .../client/api/GoogleIntegrationApiTest.java | 54 +- .../client/api/MalwareScanApiTest.java | 117 +- .../formkiq/client/api/MappingsApiTest.java | 165 +- .../com/formkiq/client/api/PublicApiTest.java | 82 +- .../formkiq/client/api/ReindexApiTest.java | 55 +- .../formkiq/client/api/RulesetsApiTest.java | 339 +- .../formkiq/client/api/SchemasApiTest.java | 307 +- .../client/api/SystemManagementApiTest.java | 1122 +- .../formkiq/client/api/TagIndexApiTest.java | 54 +- .../client/api/UserActivitiesApiTest.java | 133 +- .../client/api/UserManagementApiTest.java | 403 +- .../formkiq/client/api/WebhooksApiTest.java | 257 +- .../client/model/ActivityStatusTest.java | 33 +- .../formkiq/client/model/ActivityTest.java | 245 +- .../client/model/AddActionParametersTest.java | 405 +- .../formkiq/client/model/AddActionTest.java | 77 +- .../client/model/AddApiKeyPermissionTest.java | 32 + .../client/model/AddApiKeyRequestTest.java | 72 +- .../client/model/AddApiKeyResponseTest.java | 49 +- .../client/model/AddAttributeRequestTest.java | 49 +- .../model/AddAttributeSchemaOptionalTest.java | 91 +- .../model/AddAttributeSchemaRequiredTest.java | 119 +- .../client/model/AddAttributeTest.java | 91 +- .../client/model/AddCaseRequestTest.java | 49 +- .../client/model/AddCaseResponseTest.java | 49 +- .../com/formkiq/client/model/AddCaseTest.java | 213 +- .../model/AddChildDocumentResponseTest.java | 77 +- .../client/model/AddChildDocumentTest.java | 213 +- .../model/AddClassificationRequestTest.java | 49 +- .../model/AddClassificationResponseTest.java | 49 +- .../client/model/AddClassificationTest.java | 69 +- .../model/AddDocumentActionsRequestTest.java | 49 +- .../model/AddDocumentActionsResponseTest.java | 49 +- .../AddDocumentActionsRetryResponseTest.java | 49 +- ...ddDocumentAttributeClassificationTest.java | 49 +- .../model/AddDocumentAttributeEntityTest.java | 91 +- .../AddDocumentAttributeRelationshipTest.java | 77 +- .../AddDocumentAttributeStandardTest.java | 119 +- .../model/AddDocumentAttributeTest.java | 245 +- .../model/AddDocumentAttributeValueTest.java | 105 +- .../AddDocumentAttributesRequestTest.java | 49 +- .../model/AddDocumentFulltextRequestTest.java | 229 +- .../AddDocumentFulltextResponseTest.java | 49 +- .../model/AddDocumentGenerateRequestTest.java | 119 +- .../AddDocumentGenerateResponseTest.java | 49 +- .../client/model/AddDocumentMetadataTest.java | 77 +- .../model/AddDocumentOcrRequestTest.java | 119 +- .../model/AddDocumentOcrResponseTest.java | 49 +- .../client/model/AddDocumentRequestTest.java | 277 +- .../client/model/AddDocumentResponseTest.java | 105 +- .../model/AddDocumentSyncRequestTest.java | 49 +- .../model/AddDocumentSyncServiceTest.java | 33 +- .../client/model/AddDocumentSyncTest.java | 69 +- .../client/model/AddDocumentTagTest.java | 77 +- .../model/AddDocumentTagsRequestTest.java | 49 +- .../model/AddDocumentUploadRequestTest.java | 213 +- ...dDocumentWorkflowDecisionsRequestTest.java | 78 +- ...DocumentWorkflowDecisionsResponseTest.java | 50 +- .../model/AddDocumentWorkflowRequestTest.java | 49 +- .../AddDocumentWorkflowResponseTest.java | 49 +- .../AddDocusignEnvelopesRequestTest.java | 105 +- .../AddDocusignEnvelopesResponseTest.java | 49 +- .../AddDocusignRecipientViewRequestTest.java | 69 +- .../AddDocusignRecipientViewResponseTest.java | 49 +- .../client/model/AddEntityAttributeTest.java | 119 +- .../client/model/AddEntityRequestTest.java | 49 +- .../client/model/AddEntityResponseTest.java | 49 +- .../formkiq/client/model/AddEntityTest.java | 69 +- .../model/AddEntityTypeRequestTest.java | 49 +- .../model/AddEntityTypeResponseTest.java | 49 +- .../client/model/AddEntityTypeTest.java | 69 +- .../client/model/AddFolderPermissionTest.java | 69 +- .../client/model/AddFolderRequestTest.java | 49 +- .../client/model/AddFolderResponseTest.java | 69 +- .../model/AddFolderShareRequestTest.java | 49 +- .../model/AddFolderShareResponseTest.java | 69 +- .../AddGoogleDocumentExportRequestTest.java | 69 +- .../AddGoogleDocumentExportResponseTest.java | 49 +- .../client/model/AddGroupRequestTest.java | 49 +- .../formkiq/client/model/AddGroupTest.java | 69 +- .../client/model/AddLocaleRequestTest.java | 49 +- ...dLocaleResourceClassificationItemTest.java | 106 +- .../AddLocaleResourceInterfaceItemTest.java | 77 +- .../AddLocaleResourceItemRequestTest.java | 49 +- .../AddLocaleResourceItemResponseTest.java | 49 +- .../AddLocaleResourceSchemaItemTest.java | 91 +- .../client/model/AddMappingRequestTest.java | 49 +- .../client/model/AddMappingResponseTest.java | 49 +- .../formkiq/client/model/AddMappingTest.java | 77 +- .../client/model/AddNigoRequestTest.java | 49 +- .../client/model/AddNigoResponseTest.java | 49 +- .../com/formkiq/client/model/AddNigoTest.java | 161 +- .../client/model/AddQueueRequestTest.java | 49 +- .../client/model/AddQueueResponseTest.java | 49 +- .../model/AddReindexDocumentRequestTest.java | 49 +- .../client/model/AddResourceItemTest.java | 119 +- .../formkiq/client/model/AddResponseTest.java | 49 +- .../client/model/AddRuleRequestTest.java | 49 +- .../client/model/AddRuleResponseTest.java | 49 +- .../com/formkiq/client/model/AddRuleTest.java | 105 +- .../client/model/AddRulesetRequestTest.java | 49 +- .../client/model/AddRulesetResponseTest.java | 49 +- .../formkiq/client/model/AddRulesetTest.java | 91 +- .../formkiq/client/model/AddShareTest.java | 69 +- .../client/model/AddSiteRequestTest.java | 49 +- .../com/formkiq/client/model/AddSiteTest.java | 77 +- .../client/model/AddTaskRequestTest.java | 49 +- .../client/model/AddTaskResponseTest.java | 49 +- .../com/formkiq/client/model/AddTaskTest.java | 161 +- .../client/model/AddUserRequestTest.java | 49 +- .../com/formkiq/client/model/AddUserTest.java | 69 +- .../client/model/AddWebhookRequestTest.java | 91 +- .../client/model/AddWebhookResponseTest.java | 69 +- .../model/AddWebhookTagRequestTest.java | 77 +- .../client/model/AddWorkflowRequestTest.java | 91 +- .../client/model/AddWorkflowResponseTest.java | 49 +- .../model/AddWorkflowStepDecisionTest.java | 69 +- .../model/AddWorkflowStepQueueTest.java | 69 +- .../client/model/AddWorkflowStepTest.java | 91 +- .../com/formkiq/client/model/ApiKeyTest.java | 119 +- .../client/model/AttributeDataTypeTest.java | 33 +- .../AttributeSchemaCompositeKeyTest.java | 49 +- .../model/AttributeSchemaOptionalTest.java | 105 +- .../model/AttributeSchemaRequiredTest.java | 133 +- .../formkiq/client/model/AttributeTest.java | 91 +- .../client/model/AttributeTypeTest.java | 33 +- .../client/model/AttributeValueTypeTest.java | 33 +- .../formkiq/client/model/CaseStatusTest.java | 33 +- .../client/model/ChecksumTypeTest.java | 33 +- .../client/model/ChildDocumentTest.java | 245 +- .../model/ClassificationSummaryTest.java | 91 +- .../client/model/ClassificationTest.java | 91 +- .../DataClassificationAttributeTest.java | 69 +- .../client/model/DataClassificationTest.java | 105 +- .../model/DeleteApiKeyResponseTest.java | 49 +- .../model/DeleteCaseDocumentResponseTest.java | 49 +- .../DeleteCaseNigoDocumentResponseTest.java | 49 +- .../model/DeleteCaseNigoResponseTest.java | 49 +- .../client/model/DeleteCaseResponseTest.java | 49 +- .../DeleteCaseTaskDocumentResponseTest.java | 49 +- .../model/DeleteCaseTaskResponseTest.java | 49 +- .../model/DeleteFolderResponseTest.java | 49 +- .../model/DeleteFulltextResponseTest.java | 49 +- .../model/DeleteIndicesResponseTest.java | 49 +- .../client/model/DeleteQueueResponseTest.java | 49 +- .../client/model/DeleteResponseTest.java | 49 +- .../client/model/DeleteRuleResponseTest.java | 49 +- .../model/DeleteRulesetResponseTest.java | 49 +- .../client/model/DeleteShareResponseTest.java | 49 +- .../model/DeleteWorkflowResponseTest.java | 49 +- .../model/DocumentActionStatusTest.java | 33 +- .../client/model/DocumentActionTest.java | 261 +- .../client/model/DocumentActionTypeTest.java | 33 +- .../client/model/DocumentAttributeTest.java | 161 +- .../DocumentFulltextAttributeEqTest.java | 77 +- .../model/DocumentFulltextAttributeTest.java | 77 +- .../model/DocumentFulltextRequestTest.java | 69 +- .../model/DocumentFulltextResponseTest.java | 49 +- .../model/DocumentFulltextSearchTest.java | 91 +- .../client/model/DocumentFulltextTagTest.java | 77 +- .../model/DocumentGenerateDataSourceTest.java | 77 +- ...entGenerateInsertDocumentPositionTest.java | 33 +- .../DocumentGenerateInsertDocumentTest.java | 69 +- .../model/DocumentGenerateOutputTypeTest.java | 33 +- .../formkiq/client/model/DocumentIdTest.java | 69 +- .../client/model/DocumentMetadataTest.java | 77 +- .../model/DocumentRelationshipTypeTest.java | 33 +- .../model/DocumentSearchAttributeTest.java | 105 +- .../DocumentSearchMatchAttributeTest.java | 91 +- .../model/DocumentSearchMatchTagTest.java | 77 +- .../client/model/DocumentSearchMetaTest.java | 105 +- .../client/model/DocumentSearchRangeTest.java | 77 +- .../model/DocumentSearchRequestTest.java | 69 +- .../model/DocumentSearchResponseTest.java | 77 +- .../client/model/DocumentSearchTagTest.java | 105 +- .../client/model/DocumentSearchTagsTest.java | 91 +- .../client/model/DocumentSearchTest.java | 133 +- .../client/model/DocumentSyncServiceTest.java | 33 +- .../client/model/DocumentSyncStatusTest.java | 33 +- .../client/model/DocumentSyncTest.java | 133 +- .../client/model/DocumentSyncTypeTest.java | 33 +- .../formkiq/client/model/DocumentTagTest.java | 133 +- .../formkiq/client/model/DocumentTest.java | 325 +- .../client/model/DocumentVersionTest.java | 147 +- .../model/DocumentWorkflowStatusTest.java | 33 +- .../client/model/DocumentWorkflowTest.java | 119 +- .../model/DocumentsCompressRequestTest.java | 49 +- .../model/DocumentsCompressResponseTest.java | 49 +- .../client/model/DocusignConfigTest.java | 91 +- .../client/model/DocusignEnvironmentTest.java | 33 +- .../model/DocusignInpersonSignerTest.java | 147 +- .../DocusignNotificationExpirationsTest.java | 77 +- .../DocusignNotificationRemindersTest.java | 77 +- .../model/DocusignNotificationTest.java | 77 +- .../model/DocusignRecipientViewTest.java | 133 +- .../model/DocusignSignHereTabsTest.java | 147 +- .../client/model/DocusignSignerTest.java | 133 +- .../client/model/DocusignSigningTabsTest.java | 49 +- .../client/model/EntityAttributeTest.java | 133 +- .../com/formkiq/client/model/EntityTest.java | 105 +- .../client/model/EntityTypeNamespaceTest.java | 33 +- .../formkiq/client/model/EntityTypeTest.java | 91 +- .../com/formkiq/client/model/ErrorTest.java | 69 +- .../client/model/ErrorsResponseTest.java | 49 +- .../client/model/FolderPermissionTest.java | 69 +- .../model/FolderPermissionTypeTest.java | 33 +- .../client/model/FulltextAttributeTest.java | 91 +- .../client/model/FulltextSearchItemTest.java | 293 +- .../model/GetActivitesResponseTest.java | 69 +- .../client/model/GetApiKeysResponseTest.java | 69 +- ...GetAttributeAllowedValuesResponseTest.java | 69 +- .../model/GetAttributeResponseTest.java | 49 +- .../model/GetAttributesResponseTest.java | 69 +- .../model/GetCaseDocumentsResponseTest.java | 69 +- .../client/model/GetCaseNigoResponseTest.java | 49 +- .../model/GetCaseNigosResponseTest.java | 69 +- .../client/model/GetCaseResponseTest.java | 49 +- .../client/model/GetCaseTaskResponseTest.java | 49 +- .../model/GetCaseTasksResponseTest.java | 69 +- .../client/model/GetCasesResponseTest.java | 69 +- .../model/GetClassificationResponseTest.java | 49 +- .../model/GetClassificationsResponseTest.java | 69 +- .../model/GetConfigurationResponseTest.java | 147 +- .../model/GetDocumentActionsResponseTest.java | 69 +- .../GetDocumentAttributeResponseTest.java | 49 +- .../GetDocumentAttributesResponseTest.java | 69 +- .../model/GetDocumentContentResponseTest.java | 91 +- ...ocumentDataClassificationResponseTest.java | 70 +- .../GetDocumentFulltextResponseTest.java | 309 +- .../model/GetDocumentOcrResponseTest.java | 213 +- .../client/model/GetDocumentResponseTest.java | 309 +- .../model/GetDocumentSyncResponseTest.java | 69 +- .../model/GetDocumentTagResponseTest.java | 133 +- .../model/GetDocumentTagsResponseTest.java | 77 +- .../model/GetDocumentUrlResponseTest.java | 77 +- .../GetDocumentVersionsResponseTest.java | 69 +- .../GetDocumentWorkflowResponseTest.java | 49 +- .../GetDocumentWorkflowsResponseTest.java | 69 +- .../model/GetDocumentsResponseTest.java | 77 +- .../client/model/GetEntitiesResponseTest.java | 69 +- .../client/model/GetEntityResponseTest.java | 49 +- .../model/GetEntityTypeResponseTest.java | 49 +- .../model/GetEntityTypesResponseTest.java | 69 +- .../model/GetExaminePdfResponseTest.java | 49 +- .../model/GetExaminePdfUrlResponseTest.java | 69 +- .../GetFolderPermissionsResponseTest.java | 49 +- .../client/model/GetFoldersResponseTest.java | 77 +- .../client/model/GetGroupResponseTest.java | 49 +- .../client/model/GetGroupsResponseTest.java | 69 +- .../GetLocaleResourceItemResponseTest.java | 49 +- .../GetLocaleResourceItemsResponseTest.java | 69 +- .../client/model/GetLocalesResponseTest.java | 69 +- .../model/GetMalwareScanResponseTest.java | 69 +- .../client/model/GetMappingResponseTest.java | 49 +- .../client/model/GetMappingsResponseTest.java | 69 +- .../GetOpaAccessPoliciesResponseTest.java | 69 +- .../GetOpaAccessPolicyItemsResponseTest.java | 49 +- .../model/GetOpaAccessPolicyResponseTest.java | 49 +- .../model/GetOpenSearchIndexResponseTest.java | 49 +- .../GetOpenSearchIndiceResponseTest.java | 49 +- ...nSearchSnapshotRepositoryResponseTest.java | 50 +- .../GetOpenSearchSnapshotResponseTest.java | 49 +- .../client/model/GetQueueResponseTest.java | 49 +- .../client/model/GetQueuesResponseTest.java | 69 +- .../client/model/GetRuleResponseTest.java | 49 +- .../client/model/GetRulesResponseTest.java | 69 +- .../client/model/GetRulesetResponseTest.java | 49 +- .../client/model/GetRulesetsResponseTest.java | 69 +- .../model/GetSiteGroupResponseTest.java | 49 +- .../model/GetSiteGroupsResponseTest.java | 49 +- .../client/model/GetSitesResponseTest.java | 77 +- .../model/GetSitesSchemaResponseTest.java | 69 +- .../model/GetUserActivitesResponseTest.java | 69 +- .../model/GetUserGroupsResponseTest.java | 69 +- .../client/model/GetUserResponseTest.java | 49 +- .../model/GetUserSharesResponseTest.java | 69 +- .../model/GetUsersInGroupResponseTest.java | 69 +- .../client/model/GetUsersResponseTest.java | 69 +- .../client/model/GetVersionResponseTest.java | 91 +- .../client/model/GetWebhookResponseTest.java | 147 +- .../model/GetWebhookTagsResponseTest.java | 77 +- .../client/model/GetWebhooksResponseTest.java | 69 +- .../GetWorkflowDocumentsResponseTest.java | 69 +- ...GetWorkflowQueueDocumentsResponseTest.java | 69 +- .../client/model/GetWorkflowResponseTest.java | 105 +- .../model/GetWorkflowsResponseTest.java | 69 +- .../client/model/GoogleConfigTest.java | 69 +- .../model/GoogleExportOutputTypeTest.java | 33 +- .../com/formkiq/client/model/GroupTest.java | 91 +- .../model/IndexFolderMoveRequestTest.java | 69 +- .../model/IndexFolderMoveResponseTest.java | 49 +- .../client/model/IndexSearchRequestTest.java | 49 +- .../client/model/IndexSearchResponseTest.java | 77 +- .../formkiq/client/model/IndexSearchTest.java | 49 +- .../formkiq/client/model/LocaleInfoTest.java | 49 +- .../client/model/LocaleResourceTypeTest.java | 33 +- .../client/model/MalwareEngineTest.java | 33 +- .../client/model/MalwareScanResultTest.java | 105 +- .../client/model/MalwareScanStatusTest.java | 33 +- ...MappingAttributeLabelMatchingTypeTest.java | 33 +- .../MappingAttributeMetadataFieldTest.java | 33 +- .../model/MappingAttributeSourceTypeTest.java | 33 +- .../client/model/MappingAttributeTest.java | 147 +- .../com/formkiq/client/model/MappingTest.java | 91 +- .../client/model/MatchDocumentTagTest.java | 77 +- .../formkiq/client/model/ModelCaseTest.java | 245 +- .../formkiq/client/model/NigoStatusTest.java | 33 +- .../com/formkiq/client/model/NigoTest.java | 213 +- .../formkiq/client/model/OcrConfigTest.java | 69 +- .../formkiq/client/model/OcrEngineTest.java | 33 +- .../client/model/OcrKeyValuesTest.java | 69 +- .../client/model/OcrOutputTypeTest.java | 33 +- .../client/model/OcrTableDataTest.java | 49 +- .../formkiq/client/model/OcrTableTest.java | 69 +- .../model/OpaPolicyAttributeEqTest.java | 91 +- .../model/OpaPolicyAttributeGtTest.java | 49 +- .../model/OpaPolicyAttributeGteTest.java | 49 +- .../model/OpaPolicyAttributeInTest.java | 49 +- .../model/OpaPolicyAttributeInputTest.java | 49 +- .../model/OpaPolicyAttributeLtTest.java | 49 +- .../model/OpaPolicyAttributeLteTest.java | 49 +- .../model/OpaPolicyAttributeNeqTest.java | 49 +- .../model/OpaPolicyAttributeNotInTest.java | 49 +- .../client/model/OpaPolicyAttributeTest.java | 161 +- .../model/OpaPolicyInputMethodTest.java | 69 +- .../model/OpaPolicyInputResourceTest.java | 69 +- .../client/model/OpaPolicyInputTest.java | 69 +- .../client/model/OpaPolicyItemTest.java | 119 +- .../formkiq/client/model/OpaPolicyTest.java | 69 +- .../client/model/OpenSearchAliasTest.java | 49 +- .../model/OpenSearchIndexSettingTest.java | 69 +- .../client/model/OpenSearchIndexTest.java | 119 +- .../model/OpenSearchS3RepositoryTest.java | 69 +- .../model/OpenSearchSnapshotFailureTest.java | 119 +- .../model/OpenSearchSnapshotShardTest.java | 77 +- .../client/model/OpenSearchSnapshotTest.java | 229 +- .../client/model/PdfDocumentFieldTest.java | 69 +- .../formkiq/client/model/PdfDocumentTest.java | 49 +- .../model/QueryFulltextResponseTest.java | 49 +- .../com/formkiq/client/model/QueueTest.java | 69 +- .../client/model/ReindexTargetTest.java | 33 +- .../client/model/ResourceItemTest.java | 133 +- .../model/RuleConditionAttributeTest.java | 33 +- .../model/RuleConditionCriterionTest.java | 33 +- .../client/model/RuleConditionMustTest.java | 119 +- .../model/RuleConditionOperationTest.java | 33 +- .../client/model/RuleConditionTest.java | 49 +- .../com/formkiq/client/model/RuleTest.java | 119 +- .../client/model/RulesetStatusTest.java | 33 +- .../com/formkiq/client/model/RulesetTest.java | 119 +- .../client/model/SchemaAttributesTest.java | 91 +- .../client/model/SearchRangeDataTypeTest.java | 33 +- .../model/SearchResponseFieldsTest.java | 69 +- .../SearchResultDocumentAttributeTest.java | 91 +- .../model/SearchResultDocumentTest.java | 405 +- .../model/SetClassificationRequestTest.java | 49 +- .../SetDocumentAttributeRequestTest.java | 49 +- .../SetDocumentAttributesRequestTest.java | 49 +- ...DocumentDataClassificationRequestTest.java | 50 +- ...ocumentDataClassificationResponseTest.java | 70 +- .../model/SetDocumentFulltextRequestTest.java | 229 +- .../SetDocumentFulltextResponseTest.java | 49 +- .../model/SetDocumentOcrRequestTest.java | 77 +- .../model/SetDocumentRestoreResponseTest.java | 49 +- .../model/SetDocumentTagKeyRequestTest.java | 69 +- .../model/SetDocumentVersionRequestTest.java | 49 +- .../model/SetDocumentVersionResponseTest.java | 49 +- .../SetFolderPermissionsRequestTest.java | 69 +- .../model/SetGroupPermissionsRequestTest.java | 49 +- .../SetLocaleResourceItemRequestTest.java | 49 +- .../client/model/SetMappingRequestTest.java | 49 +- .../SetOpaAccessPolicyItemsRequestTest.java | 49 +- .../model/SetOpenSearchIndexRequestTest.java | 49 +- .../model/SetOpenSearchIndexResponseTest.java | 49 +- .../model/SetOpenSearchIndiceRequestTest.java | 49 +- .../formkiq/client/model/SetResponseTest.java | 49 +- .../client/model/SetSchemaAttributesTest.java | 91 +- .../model/SetSitesSchemaRequestTest.java | 69 +- .../client/model/SetWorkflowRequestTest.java | 91 +- .../client/model/SetWorkflowResponseTest.java | 49 +- .../formkiq/client/model/SiteConfigTest.java | 91 +- .../model/SiteGroupPermissionsTest.java | 33 +- .../formkiq/client/model/SiteGroupTest.java | 49 +- .../formkiq/client/model/SiteStatusTest.java | 33 +- .../com/formkiq/client/model/SiteTest.java | 147 +- .../formkiq/client/model/SiteUsageTest.java | 69 +- .../client/model/StringFormatTest.java | 77 +- .../client/model/StringGeneratorTypeTest.java | 33 +- .../formkiq/client/model/TaskStatusTest.java | 33 +- .../com/formkiq/client/model/TaskTest.java | 213 +- .../client/model/TextractQueryTest.java | 77 +- .../model/UpdateAttributeRequestTest.java | 49 +- .../client/model/UpdateAttributeTest.java | 69 +- .../client/model/UpdateCaseRequestTest.java | 49 +- .../client/model/UpdateCaseResponseTest.java | 49 +- .../formkiq/client/model/UpdateCaseTest.java | 161 +- .../model/UpdateConfigurationRequestTest.java | 147 +- .../UpdateConfigurationResponseTest.java | 49 +- .../UpdateDocumentFulltextRequestTest.java | 229 +- .../UpdateDocumentFulltextResponseTest.java | 49 +- .../model/UpdateDocumentRequestTest.java | 261 +- .../client/model/UpdateEntityRequestTest.java | 49 +- ...eMatchingDocumentTagsRequestMatchTest.java | 50 +- ...UpdateMatchingDocumentTagsRequestTest.java | 69 +- ...MatchingDocumentTagsRequestUpdateTest.java | 50 +- ...pdateMatchingDocumentTagsResponseTest.java | 49 +- .../client/model/UpdateNigoRequestTest.java | 49 +- .../client/model/UpdateNigoResponseTest.java | 49 +- .../formkiq/client/model/UpdateNigoTest.java | 161 +- .../client/model/UpdateResponseTest.java | 49 +- .../client/model/UpdateRuleRequestTest.java | 49 +- .../client/model/UpdateRuleResponseTest.java | 49 +- .../formkiq/client/model/UpdateRuleTest.java | 105 +- .../model/UpdateRulesetRequestTest.java | 49 +- .../model/UpdateRulesetResponseTest.java | 49 +- .../client/model/UpdateRulesetTest.java | 91 +- .../client/model/UpdateSiteRequestTest.java | 49 +- .../formkiq/client/model/UpdateSiteTest.java | 69 +- .../client/model/UpdateTaskRequestTest.java | 49 +- .../client/model/UpdateTaskResponseTest.java | 49 +- .../formkiq/client/model/UpdateTaskTest.java | 161 +- .../model/UpdateWorkflowRequestTest.java | 77 +- .../model/UpdateWorkflowResponseTest.java | 49 +- .../client/model/UserActivityChangesTest.java | 69 +- .../client/model/UserActivityTest.java | 105 +- .../client/model/UserActivityTypeTest.java | 33 +- .../client/model/UserAttributesTest.java | 293 +- .../client/model/UserSharePermissionTest.java | 33 +- .../model/UserSharePermissionTypeTest.java | 33 +- .../formkiq/client/model/UserShareTest.java | 147 +- .../com/formkiq/client/model/UserTest.java | 133 +- .../client/model/ValidationErrorTest.java | 69 +- .../model/ValidationErrorsResponseTest.java | 49 +- .../client/model/WatermarkPositionTest.java | 91 +- .../model/WatermarkPositionXAnchorTest.java | 33 +- .../model/WatermarkPositionYAnchorTest.java | 33 +- .../client/model/WatermarkScaleTest.java | 33 +- .../formkiq/client/model/WatermarkTest.java | 119 +- .../formkiq/client/model/WebhookTagTest.java | 119 +- .../client/model/WorkflowDocumentTest.java | 69 +- .../client/model/WorkflowQueueTest.java | 69 +- .../client/model/WorkflowStatusTest.java | 33 +- .../model/WorkflowStepDecisionTest.java | 69 +- .../model/WorkflowStepDecisionTypeTest.java | 33 +- .../client/model/WorkflowStepTest.java | 91 +- .../client/model/WorkflowSummaryTest.java | 133 +- 961 files changed, 79058 insertions(+), 108115 deletions(-) create mode 100644 .github/workflows/maven.yml create mode 100644 docs/AddApiKeyPermission.md create mode 100644 src/main/java/com/formkiq/client/model/AddApiKeyPermission.java create mode 100644 src/test/java/com/formkiq/client/model/AddApiKeyPermissionTest.java diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 000000000..d7a2b6c0d --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build FormKiQ API JWT + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 17, 21 ] + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 0c4f5871b..292540d2e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -10,6 +10,7 @@ docs/Activity.md docs/ActivityStatus.md docs/AddAction.md docs/AddActionParameters.md +docs/AddApiKeyPermission.md docs/AddApiKeyRequest.md docs/AddApiKeyResponse.md docs/AddAttribute.md @@ -538,6 +539,7 @@ src/main/java/com/formkiq/client/model/Activity.java src/main/java/com/formkiq/client/model/ActivityStatus.java src/main/java/com/formkiq/client/model/AddAction.java src/main/java/com/formkiq/client/model/AddActionParameters.java +src/main/java/com/formkiq/client/model/AddApiKeyPermission.java src/main/java/com/formkiq/client/model/AddApiKeyRequest.java src/main/java/com/formkiq/client/model/AddApiKeyResponse.java src/main/java/com/formkiq/client/model/AddAttribute.java @@ -1003,6 +1005,7 @@ src/test/java/com/formkiq/client/model/ActivityStatusTest.java src/test/java/com/formkiq/client/model/ActivityTest.java src/test/java/com/formkiq/client/model/AddActionParametersTest.java src/test/java/com/formkiq/client/model/AddActionTest.java +src/test/java/com/formkiq/client/model/AddApiKeyPermissionTest.java src/test/java/com/formkiq/client/model/AddApiKeyRequestTest.java src/test/java/com/formkiq/client/model/AddApiKeyResponseTest.java src/test/java/com/formkiq/client/model/AddAttributeRequestTest.java diff --git a/api/openapi.yaml b/api/openapi.yaml index 7e30fe4aa..b37f426c6 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -28,7 +28,7 @@ info: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html title: FormKiQ API JWT - version: 1.18.0 + version: 1.18.1 x-logo: url: https://docs.formkiq.com/docs/latest/_images/formkiq-logo.png backgroundColor: "#FFFFFF" @@ -21262,21 +21262,31 @@ components: - READ - READ name: name + groups: + - groups + - groups properties: name: description: Name of API Key type: string - permissions: - description: List of permissions + groups: + description: Optional list of groups to add as custom claims to API Key items: - enum: - - READ - - WRITE - - DELETE - - GOVERN type: string type: array + permissions: + items: + $ref: "#/components/schemas/AddApiKeyPermission" + type: array type: object + AddApiKeyPermission: + description: List of API permissions (defaults to READ / WRITE / DELETE) + enum: + - READ + - WRITE + - DELETE + - GOVERN + type: string AddApiKeyResponse: example: apiKey: apiKey diff --git a/build.gradle b/build.gradle index 126c59a60..653067f6c 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group = 'com.formkiq' -version = '1.18.0' +version = '1.18.1-SNAPSHOT' sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 diff --git a/docs/AddApiKeyPermission.md b/docs/AddApiKeyPermission.md new file mode 100644 index 000000000..c8e84de74 --- /dev/null +++ b/docs/AddApiKeyPermission.md @@ -0,0 +1,17 @@ + + +# AddApiKeyPermission + +## Enum + + +* `READ` (value: `"READ"`) + +* `WRITE` (value: `"WRITE"`) + +* `DELETE` (value: `"DELETE"`) + +* `GOVERN` (value: `"GOVERN"`) + + + diff --git a/docs/AddApiKeyRequest.md b/docs/AddApiKeyRequest.md index 90bd07e37..62b007537 100644 --- a/docs/AddApiKeyRequest.md +++ b/docs/AddApiKeyRequest.md @@ -8,18 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | Name of API Key | [optional] | -|**permissions** | [**List<PermissionsEnum>**](#List<PermissionsEnum>) | List of permissions | [optional] | - - - -## Enum: List<PermissionsEnum> - -| Name | Value | -|---- | -----| -| READ | "READ" | -| WRITE | "WRITE" | -| DELETE | "DELETE" | -| GOVERN | "GOVERN" | +|**groups** | **List<String>** | Optional list of groups to add as custom claims to API Key | [optional] | +|**permissions** | **List<AddApiKeyPermission>** | | [optional] | diff --git a/src/main/java/com/formkiq/client/api/AccessControlApi.java b/src/main/java/com/formkiq/client/api/AccessControlApi.java index c52fc46b2..9f09f9f95 100644 --- a/src/main/java/com/formkiq/client/api/AccessControlApi.java +++ b/src/main/java/com/formkiq/client/api/AccessControlApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -49,982 +42,679 @@ import java.util.Map; public class AccessControlApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public AccessControlApi() { - this(Configuration.getDefaultApiClient()); - } - - public AccessControlApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for deleteOpaAccessPolicyItems - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AccessControlApi() { + this(Configuration.getDefaultApiClient()); } - Object localVarPostBody = null; + public AccessControlApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - // create path and map variables - String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + public ApiClient getApiClient() { + return localVarApiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpaAccessPolicyItemsValidateBeforeCall( - @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling deleteOpaAccessPolicyItems(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - return deleteOpaAccessPolicyItemsCall(siteId, _callback); - - } - - /** - * Delete OPA Access Policy Items Delete OPA Access Policy Items - * - * @param siteId Site Identifier (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteOpaAccessPolicyItems(@javax.annotation.Nonnull String siteId) - throws ApiException { - ApiResponse localVarResp = deleteOpaAccessPolicyItemsWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Delete OPA Access Policy Items Delete OPA Access Policy Items - * - * @param siteId Site Identifier (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteOpaAccessPolicyItemsWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteOpaAccessPolicyItemsValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete OPA Access Policy Items (asynchronously) Delete OPA Access Policy Items - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteOpaAccessPolicyItemsValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getOpaAccessPolicies - * - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpaAccessPoliciesCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - Object localVarPostBody = null; + /** + * Build call for deleteOpaAccessPolicyItems + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/sites/opa/accessPolicies"; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpaAccessPolicyItemsValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling deleteOpaAccessPolicyItems(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return deleteOpaAccessPolicyItemsCall(siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete OPA Access Policy Items + * Delete OPA Access Policy Items + * @param siteId Site Identifier (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteOpaAccessPolicyItems(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = deleteOpaAccessPolicyItemsWithHttpInfo(siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpaAccessPoliciesValidateBeforeCall(final ApiCallback _callback) - throws ApiException { - return getOpaAccessPoliciesCall(_callback); - - } - - /** - * Get OPAs Access Policies Returns a list of OPA Access Policies, can only be requested with - * ADMIN privileges - * - * @return GetOpaAccessPoliciesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetOpaAccessPoliciesResponse getOpaAccessPolicies() throws ApiException { - ApiResponse localVarResp = getOpaAccessPoliciesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Get OPAs Access Policies Returns a list of OPA Access Policies, can only be requested with - * ADMIN privileges - * - * @return ApiResponse<GetOpaAccessPoliciesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getOpaAccessPoliciesWithHttpInfo() - throws ApiException { - okhttp3.Call localVarCall = getOpaAccessPoliciesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get OPAs Access Policies (asynchronously) Returns a list of OPA Access Policies, can only be - * requested with ADMIN privileges - * - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpaAccessPoliciesAsync( - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpaAccessPoliciesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getOpaAccessPolicy - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpaAccessPolicyCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Delete OPA Access Policy Items + * Delete OPA Access Policy Items + * @param siteId Site Identifier (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteOpaAccessPolicyItemsWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteOpaAccessPolicyItemsValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = null; + /** + * Delete OPA Access Policy Items (asynchronously) + * Delete OPA Access Policy Items + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOpaAccessPolicyItemsValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOpaAccessPolicies + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpaAccessPoliciesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/opa/accessPolicies"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/sites/{siteId}/opa/accessPolicy".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpaAccessPoliciesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getOpaAccessPoliciesCall(_callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get OPAs Access Policies + * Returns a list of OPA Access Policies, can only be requested with ADMIN privileges + * @return GetOpaAccessPoliciesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetOpaAccessPoliciesResponse getOpaAccessPolicies() throws ApiException { + ApiResponse localVarResp = getOpaAccessPoliciesWithHttpInfo(); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get OPAs Access Policies + * Returns a list of OPA Access Policies, can only be requested with ADMIN privileges + * @return ApiResponse<GetOpaAccessPoliciesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getOpaAccessPoliciesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getOpaAccessPoliciesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpaAccessPolicyValidateBeforeCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getOpaAccessPolicy(Async)"); + /** + * Get OPAs Access Policies (asynchronously) + * Returns a list of OPA Access Policies, can only be requested with ADMIN privileges + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpaAccessPoliciesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpaAccessPoliciesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } + /** + * Build call for getOpaAccessPolicy + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpaAccessPolicyCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opa/accessPolicy" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpaAccessPolicyValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getOpaAccessPolicy(Async)"); + } + + return getOpaAccessPolicyCall(siteId, _callback); - return getOpaAccessPolicyCall(siteId, _callback); - - } - - /** - * Get OPA Access Policy Returns OPA Access Policy, can only be requested with ADMIN privileges - * - * @param siteId Site Identifier (required) - * @return GetOpaAccessPolicyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetOpaAccessPolicyResponse getOpaAccessPolicy(@javax.annotation.Nonnull String siteId) - throws ApiException { - ApiResponse localVarResp = getOpaAccessPolicyWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get OPA Access Policy Returns OPA Access Policy, can only be requested with ADMIN privileges - * - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpaAccessPolicyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getOpaAccessPolicyWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpaAccessPolicyValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get OPA Access Policy (asynchronously) Returns OPA Access Policy, can only be requested with - * ADMIN privileges - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpaAccessPolicyAsync(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpaAccessPolicyValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getOpaAccessPolicyItems - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; } - Object localVarPostBody = null; + /** + * Get OPA Access Policy + * Returns OPA Access Policy, can only be requested with ADMIN privileges + * @param siteId Site Identifier (required) + * @return GetOpaAccessPolicyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetOpaAccessPolicyResponse getOpaAccessPolicy(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = getOpaAccessPolicyWithHttpInfo(siteId); + return localVarResp.getData(); + } - // create path and map variables - String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + /** + * Get OPA Access Policy + * Returns OPA Access Policy, can only be requested with ADMIN privileges + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpaAccessPolicyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getOpaAccessPolicyWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpaAccessPolicyValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + /** + * Get OPA Access Policy (asynchronously) + * Returns OPA Access Policy, can only be requested with ADMIN privileges + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpaAccessPolicyAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpaAccessPolicyValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOpaAccessPolicyItems + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpaAccessPolicyItemsValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getOpaAccessPolicyItems(Async)"); + } + + return getOpaAccessPolicyItemsCall(siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get OPA Access Policy Items + * Returns OPA Access Policy Items, can only be requested with ADMIN privileges + * @param siteId Site Identifier (required) + * @return GetOpaAccessPolicyItemsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetOpaAccessPolicyItemsResponse getOpaAccessPolicyItems(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = getOpaAccessPolicyItemsWithHttpInfo(siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpaAccessPolicyItemsValidateBeforeCall( - @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getOpaAccessPolicyItems(Async)"); + /** + * Get OPA Access Policy Items + * Returns OPA Access Policy Items, can only be requested with ADMIN privileges + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpaAccessPolicyItemsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getOpaAccessPolicyItemsWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpaAccessPolicyItemsValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return getOpaAccessPolicyItemsCall(siteId, _callback); - - } - - /** - * Get OPA Access Policy Items Returns OPA Access Policy Items, can only be requested with ADMIN - * privileges - * - * @param siteId Site Identifier (required) - * @return GetOpaAccessPolicyItemsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetOpaAccessPolicyItemsResponse getOpaAccessPolicyItems( - @javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = - getOpaAccessPolicyItemsWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get OPA Access Policy Items Returns OPA Access Policy Items, can only be requested with ADMIN - * privileges - * - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpaAccessPolicyItemsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getOpaAccessPolicyItemsWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpaAccessPolicyItemsValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get OPA Access Policy Items (asynchronously) Returns OPA Access Policy Items, can only be - * requested with ADMIN privileges - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpaAccessPolicyItemsValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setOpaAccessPolicyItems - * - * @param siteId Site Identifier (required) - * @param setOpaAccessPolicyItemsRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call setOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get OPA Access Policy Items (asynchronously) + * Returns OPA Access Policy Items, can only be requested with ADMIN privileges + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpaAccessPolicyItemsValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setOpaAccessPolicyItems + * @param siteId Site Identifier (required) + * @param setOpaAccessPolicyItemsRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call setOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setOpaAccessPolicyItemsRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = setOpaAccessPolicyItemsRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call setOpaAccessPolicyItemsValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling setOpaAccessPolicyItems(Async)"); + } - // create path and map variables - String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + // verify the required parameter 'setOpaAccessPolicyItemsRequest' is set + if (setOpaAccessPolicyItemsRequest == null) { + throw new ApiException("Missing the required parameter 'setOpaAccessPolicyItemsRequest' when calling setOpaAccessPolicyItems(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return setOpaAccessPolicyItemsCall(siteId, setOpaAccessPolicyItemsRequest, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Set opa access policy items, can only be requested with ADMIN privileges + * Sets opa access policy items + * @param siteId Site Identifier (required) + * @param setOpaAccessPolicyItemsRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public SetResponse setOpaAccessPolicyItems(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest) throws ApiException { + ApiResponse localVarResp = setOpaAccessPolicyItemsWithHttpInfo(siteId, setOpaAccessPolicyItemsRequest); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setOpaAccessPolicyItemsValidateBeforeCall( - @javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling setOpaAccessPolicyItems(Async)"); + /** + * Set opa access policy items, can only be requested with ADMIN privileges + * Sets opa access policy items + * @param siteId Site Identifier (required) + * @param setOpaAccessPolicyItemsRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse setOpaAccessPolicyItemsWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest) throws ApiException { + okhttp3.Call localVarCall = setOpaAccessPolicyItemsValidateBeforeCall(siteId, setOpaAccessPolicyItemsRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'setOpaAccessPolicyItemsRequest' is set - if (setOpaAccessPolicyItemsRequest == null) { - throw new ApiException( - "Missing the required parameter 'setOpaAccessPolicyItemsRequest' when calling setOpaAccessPolicyItems(Async)"); + /** + * Set opa access policy items, can only be requested with ADMIN privileges (asynchronously) + * Sets opa access policy items + * @param siteId Site Identifier (required) + * @param setOpaAccessPolicyItemsRequest (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call setOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setOpaAccessPolicyItemsValidateBeforeCall(siteId, setOpaAccessPolicyItemsRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return setOpaAccessPolicyItemsCall(siteId, setOpaAccessPolicyItemsRequest, _callback); - - } - - /** - * Set opa access policy items, can only be requested with ADMIN privileges Sets opa access policy - * items - * - * @param siteId Site Identifier (required) - * @param setOpaAccessPolicyItemsRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public SetResponse setOpaAccessPolicyItems(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest) - throws ApiException { - ApiResponse localVarResp = - setOpaAccessPolicyItemsWithHttpInfo(siteId, setOpaAccessPolicyItemsRequest); - return localVarResp.getData(); - } - - /** - * Set opa access policy items, can only be requested with ADMIN privileges Sets opa access policy - * items - * - * @param siteId Site Identifier (required) - * @param setOpaAccessPolicyItemsRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse setOpaAccessPolicyItemsWithHttpInfo( - @javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest) - throws ApiException { - okhttp3.Call localVarCall = - setOpaAccessPolicyItemsValidateBeforeCall(siteId, setOpaAccessPolicyItemsRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set opa access policy items, can only be requested with ADMIN privileges (asynchronously) Sets - * opa access policy items - * - * @param siteId Site Identifier (required) - * @param setOpaAccessPolicyItemsRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call setOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setOpaAccessPolicyItemsValidateBeforeCall(siteId, - setOpaAccessPolicyItemsRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/AdvancedDocumentSearchApi.java b/src/main/java/com/formkiq/client/api/AdvancedDocumentSearchApi.java index aec803cee..8386b98ef 100644 --- a/src/main/java/com/formkiq/client/api/AdvancedDocumentSearchApi.java +++ b/src/main/java/com/formkiq/client/api/AdvancedDocumentSearchApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -54,1964 +47,1342 @@ import java.util.Map; public class AdvancedDocumentSearchApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public AdvancedDocumentSearchApi() { - this(Configuration.getDefaultApiClient()); - } - - public AdvancedDocumentSearchApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocumentFulltext - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentFulltextRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentFulltextCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - Object localVarPostBody = addDocumentFulltextRequest; + public AdvancedDocumentSearchApi() { + this(Configuration.getDefaultApiClient()); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + public AdvancedDocumentSearchApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public ApiClient getApiClient() { + return localVarApiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentFulltextValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocumentFulltext(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - return addDocumentFulltextCall(documentId, siteId, addDocumentFulltextRequest, _callback); - - } - - /** - * Add document's full-text Add a document to OpenSearch; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentFulltextRequest (optional) - * @return AddDocumentFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddDocumentFulltextResponse addDocumentFulltext( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest) - throws ApiException { - ApiResponse localVarResp = - addDocumentFulltextWithHttpInfo(documentId, siteId, addDocumentFulltextRequest); - return localVarResp.getData(); - } - - /** - * Add document's full-text Add a document to OpenSearch; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentFulltextRequest (optional) - * @return ApiResponse<AddDocumentFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addDocumentFulltextWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest) - throws ApiException { - okhttp3.Call localVarCall = - addDocumentFulltextValidateBeforeCall(documentId, siteId, addDocumentFulltextRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add document's full-text (asynchronously) Add a document to OpenSearch; available as an - * Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentFulltextRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentFulltextValidateBeforeCall(documentId, siteId, - addDocumentFulltextRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteDocumentFulltext - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentFulltextCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - Object localVarPostBody = null; + /** + * Build call for addDocumentFulltext + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentFulltextRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentFulltextCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentFulltextRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentFulltextValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentFulltext(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addDocumentFulltextCall(documentId, siteId, addDocumentFulltextRequest, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add document's full-text + * Add a document to OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentFulltextRequest (optional) + * @return AddDocumentFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddDocumentFulltextResponse addDocumentFulltext(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest) throws ApiException { + ApiResponse localVarResp = addDocumentFulltextWithHttpInfo(documentId, siteId, addDocumentFulltextRequest); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add document's full-text + * Add a document to OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentFulltextRequest (optional) + * @return ApiResponse<AddDocumentFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addDocumentFulltextWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest) throws ApiException { + okhttp3.Call localVarCall = addDocumentFulltextValidateBeforeCall(documentId, siteId, addDocumentFulltextRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentFulltextValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocumentFulltext(Async)"); + /** + * Add document's full-text (asynchronously) + * Add a document to OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentFulltextRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentFulltextValidateBeforeCall(documentId, siteId, addDocumentFulltextRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return deleteDocumentFulltextCall(documentId, siteId, _callback); - - } - - /** - * Delete document full-text Remove full text search for a document from OpenSearch; available as - * an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteFulltextResponse deleteDocumentFulltext(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - deleteDocumentFulltextWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete document full-text Remove full text search for a document from OpenSearch; available as - * an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentFulltextWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteDocumentFulltextValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document full-text (asynchronously) Remove full text search for a document from - * OpenSearch; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteDocumentFulltextValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteDocumentFulltextTag - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentFulltextTagCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteDocumentFulltext + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentFulltextCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext/tags/{tagKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentFulltextValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentFulltext(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return deleteDocumentFulltextCall(documentId, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + /** + * Delete document full-text + * Remove full text search for a document from OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteFulltextResponse deleteDocumentFulltext(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteDocumentFulltextWithHttpInfo(documentId, siteId); + return localVarResp.getData(); } - final String[] localVarAccepts = {}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Delete document full-text + * Remove full text search for a document from OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentFulltextWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentFulltextValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete document full-text (asynchronously) + * Remove full text search for a document from OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentFulltextValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentFulltextTagValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocumentFulltextTag(Async)"); + /** + * Build call for deleteDocumentFulltextTag + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentFulltextTagCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext/tags/{tagKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException( - "Missing the required parameter 'tagKey' when calling deleteDocumentFulltextTag(Async)"); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentFulltextTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentFulltextTag(Async)"); + } - return deleteDocumentFulltextTagCall(documentId, tagKey, siteId, shareKey, _callback); - - } - - /** - * Delete document full-text tag Remove document tags from OpenSearch; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public void deleteDocumentFulltextTag(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey) throws ApiException { - deleteDocumentFulltextTagWithHttpInfo(documentId, tagKey, siteId, shareKey); - } - - /** - * Delete document full-text tag Remove document tags from OpenSearch; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentFulltextTagWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - okhttp3.Call localVarCall = - deleteDocumentFulltextTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Delete document full-text tag (asynchronously) Remove document tags from OpenSearch; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentFulltextTagAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentFulltextTagValidateBeforeCall(documentId, tagKey, - siteId, shareKey, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - - /** - * Build call for deleteDocumentFulltextTagAndValue - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentFulltextTagAndValueCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext/tags/{tagKey}/{tagValue}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())) - .replace("{" + "tagValue" + "}", localVarApiClient.escapeString(tagValue.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException("Missing the required parameter 'tagKey' when calling deleteDocumentFulltextTag(Async)"); + } - final String[] localVarAccepts = {}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } + return deleteDocumentFulltextTagCall(documentId, tagKey, siteId, shareKey, _callback); - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentFulltextTagAndValueValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocumentFulltextTagAndValue(Async)"); + /** + * Delete document full-text tag + * Remove document tags from OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public void deleteDocumentFulltextTag(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + deleteDocumentFulltextTagWithHttpInfo(documentId, tagKey, siteId, shareKey); } - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException( - "Missing the required parameter 'tagKey' when calling deleteDocumentFulltextTagAndValue(Async)"); + /** + * Delete document full-text tag + * Remove document tags from OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentFulltextTagWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentFulltextTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, null); + return localVarApiClient.execute(localVarCall); } - // verify the required parameter 'tagValue' is set - if (tagValue == null) { - throw new ApiException( - "Missing the required parameter 'tagValue' when calling deleteDocumentFulltextTagAndValue(Async)"); + /** + * Delete document full-text tag (asynchronously) + * Remove document tags from OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentFulltextTagAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentFulltextTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; } - - return deleteDocumentFulltextTagAndValueCall(documentId, tagKey, tagValue, siteId, shareKey, - _callback); - - } - - /** - * Delete document full-text tag/value Remove document tag/value from OpenSearch; available as an - * Add-On Module - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public void deleteDocumentFulltextTagAndValue(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - deleteDocumentFulltextTagAndValueWithHttpInfo(documentId, tagKey, tagValue, siteId, shareKey); - } - - /** - * Delete document full-text tag/value Remove document tag/value from OpenSearch; available as an - * Add-On Module - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentFulltextTagAndValueWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentFulltextTagAndValueValidateBeforeCall(documentId, - tagKey, tagValue, siteId, shareKey, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Delete document full-text tag/value (asynchronously) Remove document tag/value from OpenSearch; - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentFulltextTagAndValueAsync( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentFulltextTagAndValueValidateBeforeCall(documentId, - tagKey, tagValue, siteId, shareKey, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentFulltext - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentFulltextCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteDocumentFulltextTagAndValue + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentFulltextTagAndValueCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext/tags/{tagKey}/{tagValue}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())) + .replace("{" + "tagValue" + "}", localVarApiClient.escapeString(tagValue.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentFulltextTagAndValueValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentFulltextTagAndValue(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException("Missing the required parameter 'tagKey' when calling deleteDocumentFulltextTagAndValue(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'tagValue' is set + if (tagValue == null) { + throw new ApiException("Missing the required parameter 'tagValue' when calling deleteDocumentFulltextTagAndValue(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return deleteDocumentFulltextTagAndValueCall(documentId, tagKey, tagValue, siteId, shareKey, _callback); - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Delete document full-text tag/value + * Remove document tag/value from OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public void deleteDocumentFulltextTagAndValue(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + deleteDocumentFulltextTagAndValueWithHttpInfo(documentId, tagKey, tagValue, siteId, shareKey); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete document full-text tag/value + * Remove document tag/value from OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentFulltextTagAndValueWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentFulltextTagAndValueValidateBeforeCall(documentId, tagKey, tagValue, siteId, shareKey, null); + return localVarApiClient.execute(localVarCall); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentFulltextValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentFulltext(Async)"); + /** + * Delete document full-text tag/value (asynchronously) + * Remove document tag/value from OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentFulltextTagAndValueAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentFulltextTagAndValueValidateBeforeCall(documentId, tagKey, tagValue, siteId, shareKey, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; } - - return getDocumentFulltextCall(documentId, siteId, shareKey, _callback); - - } - - /** - * Get document's full-text Retrieve an OpenSearch document's details, i.e., metadata - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentFulltextResponse getDocumentFulltext( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = - getDocumentFulltextWithHttpInfo(documentId, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Get document's full-text Retrieve an OpenSearch document's details, i.e., metadata - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentFulltextWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = - getDocumentFulltextValidateBeforeCall(documentId, siteId, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document's full-text (asynchronously) Retrieve an OpenSearch document's details, - * i.e., metadata - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentFulltextValidateBeforeCall(documentId, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for queryFulltext - * - * @param body (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call queryFulltextCall(@javax.annotation.Nonnull Object body, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getDocumentFulltext + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentFulltextCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/queryFulltext"; + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentFulltextValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentFulltext(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return getDocumentFulltextCall(documentId, siteId, shareKey, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (indexName != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexName", indexName)); + /** + * Get document's full-text + * Retrieve an OpenSearch document's details, i.e., metadata + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentFulltextResponse getDocumentFulltext(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = getDocumentFulltextWithHttpInfo(documentId, siteId, shareKey); + return localVarResp.getData(); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get document's full-text + * Retrieve an OpenSearch document's details, i.e., metadata + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentFulltextWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentFulltextValidateBeforeCall(documentId, siteId, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get document's full-text (asynchronously) + * Retrieve an OpenSearch document's details, i.e., metadata + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentFulltextValidateBeforeCall(documentId, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call queryFulltextValidateBeforeCall(@javax.annotation.Nonnull Object body, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling queryFulltext(Async)"); - } - - return queryFulltextCall(body, siteId, indexName, _callback); - - } - - /** - * Direct opensearch search API Endpoint for allowing custom, complex queries using the OpenSearch - * search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an - * Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} - * - * @param body (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @return QueryFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public QueryFulltextResponse queryFulltext(@javax.annotation.Nonnull Object body, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName) - throws ApiException { - ApiResponse localVarResp = - queryFulltextWithHttpInfo(body, siteId, indexName); - return localVarResp.getData(); - } - - /** - * Direct opensearch search API Endpoint for allowing custom, complex queries using the OpenSearch - * search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an - * Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} - * - * @param body (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @return ApiResponse<QueryFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse queryFulltextWithHttpInfo( - @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String indexName) throws ApiException { - okhttp3.Call localVarCall = queryFulltextValidateBeforeCall(body, siteId, indexName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Direct opensearch search API (asynchronously) Endpoint for allowing custom, complex queries - * using the OpenSearch search API - * (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module - * Example Request Body: { \"query\": { \"match_all\": {} }} - * - * @param body (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to 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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call queryFulltextAsync(@javax.annotation.Nonnull Object body, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = queryFulltextValidateBeforeCall(body, siteId, indexName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for searchFulltext - * - * @param documentFulltextRequest (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call searchFulltextCall( - @javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for queryFulltext + * @param body (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call queryFulltextCall(@javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/queryFulltext"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (indexName != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexName", indexName)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = documentFulltextRequest; - - // create path and map variables - String localVarPath = "/searchFulltext"; + @SuppressWarnings("rawtypes") + private okhttp3.Call queryFulltextValidateBeforeCall(@javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling queryFulltext(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return queryFulltextCall(body, siteId, indexName, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (indexName != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexName", indexName)); + /** + * Direct opensearch search API + * Endpoint for allowing custom, complex queries using the OpenSearch search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} + * @param body (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @return QueryFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public QueryFulltextResponse queryFulltext(@javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName) throws ApiException { + ApiResponse localVarResp = queryFulltextWithHttpInfo(body, siteId, indexName); + return localVarResp.getData(); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Direct opensearch search API + * Endpoint for allowing custom, complex queries using the OpenSearch search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} + * @param body (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @return ApiResponse<QueryFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse queryFulltextWithHttpInfo(@javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName) throws ApiException { + okhttp3.Call localVarCall = queryFulltextValidateBeforeCall(body, siteId, indexName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Direct opensearch search API (asynchronously) + * Endpoint for allowing custom, complex queries using the OpenSearch search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} + * @param body (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to 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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call queryFulltextAsync(@javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = queryFulltextValidateBeforeCall(body, siteId, indexName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } + /** + * Build call for searchFulltext + * @param documentFulltextRequest (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call searchFulltextCall(@javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = documentFulltextRequest; + + // create path and map variables + String localVarPath = "/searchFulltext"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (indexName != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexName", indexName)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchFulltextValidateBeforeCall(@javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentFulltextRequest' is set + if (documentFulltextRequest == null) { + throw new ApiException("Missing the required parameter 'documentFulltextRequest' when calling searchFulltext(Async)"); + } + + return searchFulltextCall(documentFulltextRequest, siteId, indexName, limit, _callback); - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call searchFulltextValidateBeforeCall( - @javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentFulltextRequest' is set - if (documentFulltextRequest == null) { - throw new ApiException( - "Missing the required parameter 'documentFulltextRequest' when calling searchFulltext(Async)"); + /** + * Document full-text search + * Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); available as an Add-On Module + * @param documentFulltextRequest (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @param limit Limit Results (optional, default to 10) + * @return DocumentFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public DocumentFulltextResponse searchFulltext(@javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = searchFulltextWithHttpInfo(documentFulltextRequest, siteId, indexName, limit); + return localVarResp.getData(); } - return searchFulltextCall(documentFulltextRequest, siteId, indexName, limit, _callback); - - } - - /** - * Document full-text search Document full-text search (and more robust multi-tag search queries, - * powered by OpenSearch); available as an Add-On Module - * - * @param documentFulltextRequest (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @param limit Limit Results (optional, default to 10) - * @return DocumentFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public DocumentFulltextResponse searchFulltext( - @javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, - @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = - searchFulltextWithHttpInfo(documentFulltextRequest, siteId, indexName, limit); - return localVarResp.getData(); - } - - /** - * Document full-text search Document full-text search (and more robust multi-tag search queries, - * powered by OpenSearch); available as an Add-On Module - * - * @param documentFulltextRequest (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<DocumentFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse searchFulltextWithHttpInfo( - @javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = - searchFulltextValidateBeforeCall(documentFulltextRequest, siteId, indexName, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Document full-text search (asynchronously) Document full-text search (and more robust multi-tag - * search queries, powered by OpenSearch); available as an Add-On Module - * - * @param documentFulltextRequest (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call searchFulltextAsync( - @javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, - @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = searchFulltextValidateBeforeCall(documentFulltextRequest, siteId, - indexName, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentFulltext - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentFulltextRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentFulltextCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Document full-text search + * Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); available as an Add-On Module + * @param documentFulltextRequest (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<DocumentFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse searchFulltextWithHttpInfo(@javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = searchFulltextValidateBeforeCall(documentFulltextRequest, siteId, indexName, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = setDocumentFulltextRequest; + /** + * Document full-text search (asynchronously) + * Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); available as an Add-On Module + * @param documentFulltextRequest (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call searchFulltextAsync(@javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = searchFulltextValidateBeforeCall(documentFulltextRequest, siteId, indexName, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setDocumentFulltext + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentFulltextRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentFulltextCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setDocumentFulltextRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentFulltextValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentFulltext(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return setDocumentFulltextCall(documentId, siteId, setDocumentFulltextRequest, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Set document's full-text + * Set all text/tags found within a document to OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentFulltextRequest (optional) + * @return SetDocumentFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetDocumentFulltextResponse setDocumentFulltext(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest) throws ApiException { + ApiResponse localVarResp = setDocumentFulltextWithHttpInfo(documentId, siteId, setDocumentFulltextRequest); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Set document's full-text + * Set all text/tags found within a document to OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentFulltextRequest (optional) + * @return ApiResponse<SetDocumentFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setDocumentFulltextWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest) throws ApiException { + okhttp3.Call localVarCall = setDocumentFulltextValidateBeforeCall(documentId, siteId, setDocumentFulltextRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentFulltextValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentFulltext(Async)"); + /** + * Set document's full-text (asynchronously) + * Set all text/tags found within a document to OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentFulltextRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentFulltextValidateBeforeCall(documentId, siteId, setDocumentFulltextRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return setDocumentFulltextCall(documentId, siteId, setDocumentFulltextRequest, _callback); - - } - - /** - * Set document's full-text Set all text/tags found within a document to OpenSearch; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentFulltextRequest (optional) - * @return SetDocumentFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetDocumentFulltextResponse setDocumentFulltext( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest) - throws ApiException { - ApiResponse localVarResp = - setDocumentFulltextWithHttpInfo(documentId, siteId, setDocumentFulltextRequest); - return localVarResp.getData(); - } - - /** - * Set document's full-text Set all text/tags found within a document to OpenSearch; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentFulltextRequest (optional) - * @return ApiResponse<SetDocumentFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setDocumentFulltextWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest) - throws ApiException { - okhttp3.Call localVarCall = - setDocumentFulltextValidateBeforeCall(documentId, siteId, setDocumentFulltextRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set document's full-text (asynchronously) Set all text/tags found within a document to - * OpenSearch; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentFulltextRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentFulltextValidateBeforeCall(documentId, siteId, - setDocumentFulltextRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateDocumentFulltext - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param updateDocumentFulltextRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateDocumentFulltextCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for updateDocumentFulltext + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param updateDocumentFulltextRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateDocumentFulltextCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateDocumentFulltextRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = updateDocumentFulltextRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call updateDocumentFulltextValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling updateDocumentFulltext(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + return updateDocumentFulltextCall(documentId, siteId, updateDocumentFulltextRequest, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Update document's full-text + * Update a document in OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param updateDocumentFulltextRequest (optional) + * @return UpdateDocumentFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public UpdateDocumentFulltextResponse updateDocumentFulltext(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest) throws ApiException { + ApiResponse localVarResp = updateDocumentFulltextWithHttpInfo(documentId, siteId, updateDocumentFulltextRequest); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Update document's full-text + * Update a document in OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param updateDocumentFulltextRequest (optional) + * @return ApiResponse<UpdateDocumentFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse updateDocumentFulltextWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest) throws ApiException { + okhttp3.Call localVarCall = updateDocumentFulltextValidateBeforeCall(documentId, siteId, updateDocumentFulltextRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateDocumentFulltextValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling updateDocumentFulltext(Async)"); + /** + * Update document's full-text (asynchronously) + * Update a document in OpenSearch; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param updateDocumentFulltextRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateDocumentFulltextValidateBeforeCall(documentId, siteId, updateDocumentFulltextRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return updateDocumentFulltextCall(documentId, siteId, updateDocumentFulltextRequest, _callback); - - } - - /** - * Update document's full-text Update a document in OpenSearch; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param updateDocumentFulltextRequest (optional) - * @return UpdateDocumentFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public UpdateDocumentFulltextResponse updateDocumentFulltext( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest) - throws ApiException { - ApiResponse localVarResp = - updateDocumentFulltextWithHttpInfo(documentId, siteId, updateDocumentFulltextRequest); - return localVarResp.getData(); - } - - /** - * Update document's full-text Update a document in OpenSearch; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param updateDocumentFulltextRequest (optional) - * @return ApiResponse<UpdateDocumentFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse updateDocumentFulltextWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest) - throws ApiException { - okhttp3.Call localVarCall = updateDocumentFulltextValidateBeforeCall(documentId, siteId, - updateDocumentFulltextRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update document's full-text (asynchronously) Update a document in OpenSearch; available as - * an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param updateDocumentFulltextRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateDocumentFulltextValidateBeforeCall(documentId, siteId, - updateDocumentFulltextRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/AttributesApi.java b/src/main/java/com/formkiq/client/api/AttributesApi.java index f9d662ec8..f7f4a7ae7 100644 --- a/src/main/java/com/formkiq/client/api/AttributesApi.java +++ b/src/main/java/com/formkiq/client/api/AttributesApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -51,1281 +44,878 @@ import java.util.Map; public class AttributesApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public AttributesApi() { - this(Configuration.getDefaultApiClient()); - } - - public AttributesApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addAttribute - * - * @param addAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addAttributeCall( - @javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addAttributeRequest; - - // create path and map variables - String localVarPath = "/attributes"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addAttributeValidateBeforeCall( - @javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addAttributeRequest' is set - if (addAttributeRequest == null) { - throw new ApiException( - "Missing the required parameter 'addAttributeRequest' when calling addAttribute(Async)"); - } - - return addAttributeCall(addAttributeRequest, siteId, _callback); - - } - - /** - * Add new attribute Creates a new attribute - * - * @param addAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddResponse addAttribute(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addAttributeWithHttpInfo(addAttributeRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add new attribute Creates a new attribute - * - * @param addAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addAttributeWithHttpInfo( - @javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addAttributeValidateBeforeCall(addAttributeRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add new attribute (asynchronously) Creates a new attribute - * - * @param addAttributeRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addAttributeAsync( - @javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addAttributeValidateBeforeCall(addAttributeRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteAttribute - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call deleteAttributeCall(@javax.annotation.Nonnull String key, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/attributes/{key}".replace("{" + "key" + "}", - localVarApiClient.escapeString(key.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException( - "Missing the required parameter 'key' when calling deleteAttribute(Async)"); - } - - return deleteAttributeCall(key, siteId, _callback); - - } - - /** - * Delete attribute Delete a attribute - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public DeleteResponse deleteAttribute(@javax.annotation.Nonnull String key, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteAttributeWithHttpInfo(key, siteId); - return localVarResp.getData(); - } - - /** - * Delete attribute Delete a attribute - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse deleteAttributeWithHttpInfo( - @javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteAttributeValidateBeforeCall(key, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete attribute (asynchronously) Delete a attribute - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call deleteAttributeAsync(@javax.annotation.Nonnull String key, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteAttributeValidateBeforeCall(key, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getAttribute - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getAttributeCall(@javax.annotation.Nonnull String key, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/attributes/{key}".replace("{" + "key" + "}", - localVarApiClient.escapeString(key.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public AttributesApi() { + this(Configuration.getDefaultApiClient()); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException( - "Missing the required parameter 'key' when calling getAttribute(Async)"); + public AttributesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - return getAttributeCall(key, siteId, _callback); - - } - - /** - * Get Attribute Returns a attribute - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetAttributeResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetAttributeResponse getAttribute(@javax.annotation.Nonnull String key, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getAttributeWithHttpInfo(key, siteId); - return localVarResp.getData(); - } - - /** - * Get Attribute Returns a attribute - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetAttributeResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getAttributeWithHttpInfo( - @javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getAttributeValidateBeforeCall(key, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Attribute (asynchronously) Returns a attribute - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getAttributeAsync(@javax.annotation.Nonnull String key, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getAttributeValidateBeforeCall(key, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getAttributeAllowedValues - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getAttributeAllowedValuesCall(@javax.annotation.Nonnull String key, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public ApiClient getApiClient() { + return localVarApiClient; } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/attributes/{key}/allowedValues".replace("{" + "key" + "}", - localVarApiClient.escapeString(key.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAttributeAllowedValuesValidateBeforeCall( - @javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException( - "Missing the required parameter 'key' when calling getAttributeAllowedValues(Async)"); + + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - return getAttributeAllowedValuesCall(key, siteId, _callback); - - } - - /** - * Get Attribute Allowed Values Returns an attribute's allowed values that spans across all - * classifications and site schema - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetAttributeAllowedValuesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetAttributeAllowedValuesResponse getAttributeAllowedValues( - @javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - getAttributeAllowedValuesWithHttpInfo(key, siteId); - return localVarResp.getData(); - } - - /** - * Get Attribute Allowed Values Returns an attribute's allowed values that spans across all - * classifications and site schema - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetAttributeAllowedValuesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getAttributeAllowedValuesWithHttpInfo( - @javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getAttributeAllowedValuesValidateBeforeCall(key, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Attribute Allowed Values (asynchronously) Returns an attribute's allowed values that - * spans across all classifications and site schema - * - * @param key Key Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getAttributeAllowedValuesAsync(@javax.annotation.Nonnull String key, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAttributeAllowedValuesValidateBeforeCall(key, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getAttributes - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getAttributesCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/attributes"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + + /** + * Build call for addAttribute + * @param addAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addAttributeCall(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addAttributeRequest; + + // create path and map variables + String localVarPath = "/attributes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addAttributeValidateBeforeCall(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addAttributeRequest' is set + if (addAttributeRequest == null) { + throw new ApiException("Missing the required parameter 'addAttributeRequest' when calling addAttribute(Async)"); + } + + return addAttributeCall(addAttributeRequest, siteId, _callback); + + } + + /** + * Add new attribute + * Creates a new attribute + * @param addAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddResponse addAttribute(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addAttributeWithHttpInfo(addAttributeRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add new attribute + * Creates a new attribute + * @param addAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addAttributeWithHttpInfo(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addAttributeValidateBeforeCall(addAttributeRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add new attribute (asynchronously) + * Creates a new attribute + * @param addAttributeRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addAttributeAsync(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addAttributeValidateBeforeCall(addAttributeRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteAttribute + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call deleteAttributeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributes/{key}" + .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException("Missing the required parameter 'key' when calling deleteAttribute(Async)"); + } + + return deleteAttributeCall(key, siteId, _callback); + + } + + /** + * Delete attribute + * Delete a attribute + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public DeleteResponse deleteAttribute(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteAttributeWithHttpInfo(key, siteId); + return localVarResp.getData(); + } + + /** + * Delete attribute + * Delete a attribute + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse deleteAttributeWithHttpInfo(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteAttributeValidateBeforeCall(key, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete attribute (asynchronously) + * Delete a attribute + * @param key Key Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call deleteAttributeAsync(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteAttributeValidateBeforeCall(key, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAttribute + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getAttributeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributes/{key}" + .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException("Missing the required parameter 'key' when calling getAttribute(Async)"); + } + + return getAttributeCall(key, siteId, _callback); + + } + + /** + * Get Attribute + * Returns a attribute + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetAttributeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetAttributeResponse getAttribute(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getAttributeWithHttpInfo(key, siteId); + return localVarResp.getData(); + } + + /** + * Get Attribute + * Returns a attribute + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetAttributeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getAttributeWithHttpInfo(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getAttributeValidateBeforeCall(key, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Attribute (asynchronously) + * Returns a attribute + * @param key Key Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getAttributeAsync(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAttributeValidateBeforeCall(key, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAttributeAllowedValues + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getAttributeAllowedValuesCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributes/{key}/allowedValues" + .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAttributeAllowedValuesValidateBeforeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException("Missing the required parameter 'key' when calling getAttributeAllowedValues(Async)"); + } + + return getAttributeAllowedValuesCall(key, siteId, _callback); + + } + + /** + * Get Attribute Allowed Values + * Returns an attribute's allowed values that spans across all classifications and site schema + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetAttributeAllowedValuesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetAttributeAllowedValuesResponse getAttributeAllowedValues(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getAttributeAllowedValuesWithHttpInfo(key, siteId); + return localVarResp.getData(); + } + + /** + * Get Attribute Allowed Values + * Returns an attribute's allowed values that spans across all classifications and site schema + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetAttributeAllowedValuesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getAttributeAllowedValuesWithHttpInfo(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getAttributeAllowedValuesValidateBeforeCall(key, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Attribute Allowed Values (asynchronously) + * Returns an attribute's allowed values that spans across all classifications and site schema + * @param key Key Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getAttributeAllowedValuesAsync(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAttributeAllowedValuesValidateBeforeCall(key, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAttributes + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getAttributesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAttributesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + return getAttributesCall(siteId, next, limit, _callback); + + } + + /** + * Get Attributes listing + * Returns a list of attributes + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetAttributesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetAttributesResponse getAttributes(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getAttributesWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get Attributes listing + * Returns a list of attributes + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetAttributesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getAttributesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getAttributesValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Attributes listing (asynchronously) + * Returns a list of attributes + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getAttributesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAttributesValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateAttribute + * @param key Key Identifier (required) + * @param updateAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateAttributeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateAttributeRequest; + + // create path and map variables + String localVarPath = "/attributes/{key}" + .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException("Missing the required parameter 'key' when calling updateAttribute(Async)"); + } + + // verify the required parameter 'updateAttributeRequest' is set + if (updateAttributeRequest == null) { + throw new ApiException("Missing the required parameter 'updateAttributeRequest' when calling updateAttribute(Async)"); + } + + return updateAttributeCall(key, updateAttributeRequest, siteId, _callback); + + } + + /** + * Update existing attribute + * Updates existing attribute + * @param key Key Identifier (required) + * @param updateAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public UpdateResponse updateAttribute(@javax.annotation.Nonnull String key, @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = updateAttributeWithHttpInfo(key, updateAttributeRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update existing attribute + * Updates existing attribute + * @param key Key Identifier (required) + * @param updateAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse updateAttributeWithHttpInfo(@javax.annotation.Nonnull String key, @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateAttributeValidateBeforeCall(key, updateAttributeRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update existing attribute (asynchronously) + * Updates existing attribute + * @param key Key Identifier (required) + * @param updateAttributeRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateAttributeAsync(@javax.annotation.Nonnull String key, @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateAttributeValidateBeforeCall(key, updateAttributeRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAttributesValidateBeforeCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - return getAttributesCall(siteId, next, limit, _callback); - - } - - /** - * Get Attributes listing Returns a list of attributes - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetAttributesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetAttributesResponse getAttributes(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = - getAttributesWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get Attributes listing Returns a list of attributes - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetAttributesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getAttributesWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getAttributesValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Attributes listing (asynchronously) Returns a list of attributes - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getAttributesAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAttributesValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateAttribute - * - * @param key Key Identifier (required) - * @param updateAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateAttributeCall(@javax.annotation.Nonnull String key, - @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateAttributeRequest; - - // create path and map variables - String localVarPath = "/attributes/{key}".replace("{" + "key" + "}", - localVarApiClient.escapeString(key.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, - @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException( - "Missing the required parameter 'key' when calling updateAttribute(Async)"); - } - - // verify the required parameter 'updateAttributeRequest' is set - if (updateAttributeRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateAttributeRequest' when calling updateAttribute(Async)"); - } - - return updateAttributeCall(key, updateAttributeRequest, siteId, _callback); - - } - - /** - * Update existing attribute Updates existing attribute - * - * @param key Key Identifier (required) - * @param updateAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public UpdateResponse updateAttribute(@javax.annotation.Nonnull String key, - @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - updateAttributeWithHttpInfo(key, updateAttributeRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update existing attribute Updates existing attribute - * - * @param key Key Identifier (required) - * @param updateAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse updateAttributeWithHttpInfo( - @javax.annotation.Nonnull String key, - @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - updateAttributeValidateBeforeCall(key, updateAttributeRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update existing attribute (asynchronously) Updates existing attribute - * - * @param key Key Identifier (required) - * @param updateAttributeRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateAttributeAsync(@javax.annotation.Nonnull String key, - @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - updateAttributeValidateBeforeCall(key, updateAttributeRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/CaseManagementApi.java b/src/main/java/com/formkiq/client/api/CaseManagementApi.java index 0dfd67625..0eb661ad5 100644 --- a/src/main/java/com/formkiq/client/api/CaseManagementApi.java +++ b/src/main/java/com/formkiq/client/api/CaseManagementApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -67,4457 +60,3141 @@ import java.util.Map; public class CaseManagementApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public CaseManagementApi() { - this(Configuration.getDefaultApiClient()); - } - - public CaseManagementApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addCase - * - * @param addCaseRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addCaseCall(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addCaseRequest; - - // create path and map variables - String localVarPath = "/cases"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addCaseValidateBeforeCall( - @javax.annotation.Nonnull AddCaseRequest addCaseRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addCaseRequest' is set - if (addCaseRequest == null) { - throw new ApiException( - "Missing the required parameter 'addCaseRequest' when calling addCase(Async)"); - } - - return addCaseCall(addCaseRequest, siteId, _callback); - - } - - /** - * Add New Case Adds new case; available as an Add-On Module - * - * @param addCaseRequest (required) - * @param siteId Site Identifier (optional) - * @return AddCaseResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddCaseResponse addCase(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addCaseWithHttpInfo(addCaseRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add New Case Adds new case; available as an Add-On Module - * - * @param addCaseRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddCaseResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addCaseWithHttpInfo( - @javax.annotation.Nonnull AddCaseRequest addCaseRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addCaseValidateBeforeCall(addCaseRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New Case (asynchronously) Adds new case; available as an Add-On Module - * - * @param addCaseRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addCaseAsync(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = addCaseValidateBeforeCall(addCaseRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addNigo - * - * @param caseId Case Identifier (required) - * @param addNigoRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addNigoCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull AddNigoRequest addNigoRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addNigoRequest; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos".replace("{" + "caseId" + "}", - localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull AddNigoRequest addNigoRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling addNigo(Async)"); - } - - // verify the required parameter 'addNigoRequest' is set - if (addNigoRequest == null) { - throw new ApiException( - "Missing the required parameter 'addNigoRequest' when calling addNigo(Async)"); - } - - return addNigoCall(caseId, addNigoRequest, siteId, _callback); - - } - - /** - * Add New Nigo Adds new nigo; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param addNigoRequest (required) - * @param siteId Site Identifier (optional) - * @return AddNigoResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddNigoResponse addNigo(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull AddNigoRequest addNigoRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addNigoWithHttpInfo(caseId, addNigoRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add New Nigo Adds new nigo; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param addNigoRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddNigoResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addNigoWithHttpInfo(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull AddNigoRequest addNigoRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addNigoValidateBeforeCall(caseId, addNigoRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New Nigo (asynchronously) Adds new nigo; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param addNigoRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addNigoAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull AddNigoRequest addNigoRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addNigoValidateBeforeCall(caseId, addNigoRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addTask - * - * @param caseId Case Identifier (required) - * @param addTaskRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addTaskCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull AddTaskRequest addTaskRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addTaskRequest; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks".replace("{" + "caseId" + "}", - localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull AddTaskRequest addTaskRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling addTask(Async)"); - } - - // verify the required parameter 'addTaskRequest' is set - if (addTaskRequest == null) { - throw new ApiException( - "Missing the required parameter 'addTaskRequest' when calling addTask(Async)"); - } - - return addTaskCall(caseId, addTaskRequest, siteId, _callback); - - } - - /** - * Add New Task Adds new task; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param addTaskRequest (required) - * @param siteId Site Identifier (optional) - * @return AddTaskResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddTaskResponse addTask(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull AddTaskRequest addTaskRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addTaskWithHttpInfo(caseId, addTaskRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add New Task Adds new task; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param addTaskRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddTaskResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addTaskWithHttpInfo(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull AddTaskRequest addTaskRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addTaskValidateBeforeCall(caseId, addTaskRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New Task (asynchronously) Adds new task; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param addTaskRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addTaskAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull AddTaskRequest addTaskRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addTaskValidateBeforeCall(caseId, addTaskRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteCase - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteCaseCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}".replace("{" + "caseId" + "}", - localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling deleteCase(Async)"); - } - - return deleteCaseCall(caseId, siteId, _callback); - - } - - /** - * Delete Case Delete Case - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteCaseResponse deleteCase(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteCaseWithHttpInfo(caseId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Case Delete Case - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteCaseWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteCaseValidateBeforeCall(caseId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Case (asynchronously) Delete Case - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteCaseAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteCaseValidateBeforeCall(caseId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteCaseDocument - * - * @param caseId Case Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteCaseDocumentCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/documents/{documentId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCaseDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling deleteCaseDocument(Async)"); - } - - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteCaseDocument(Async)"); - } - - return deleteCaseDocumentCall(caseId, documentId, siteId, _callback); - - } - - /** - * Delete Document from Case Delete Document from Case - * - * @param caseId Case Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteCaseDocumentResponse deleteCaseDocument(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - deleteCaseDocumentWithHttpInfo(caseId, documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Document from Case Delete Document from Case - * - * @param caseId Case Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteCaseDocumentWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - deleteCaseDocumentValidateBeforeCall(caseId, documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Document from Case (asynchronously) Delete Document from Case - * - * @param caseId Case Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteCaseDocumentAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteCaseDocumentValidateBeforeCall(caseId, documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteNigo - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteNigoCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos/{nigoId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling deleteNigo(Async)"); - } - - // verify the required parameter 'nigoId' is set - if (nigoId == null) { - throw new ApiException( - "Missing the required parameter 'nigoId' when calling deleteNigo(Async)"); - } - - return deleteNigoCall(caseId, nigoId, siteId, _callback); - - } - - /** - * Delete Nigo Delete Nigo - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseNigoResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteCaseNigoResponse deleteNigo(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - deleteNigoWithHttpInfo(caseId, nigoId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Nigo Delete Nigo - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseNigoResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteNigoWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteNigoValidateBeforeCall(caseId, nigoId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Nigo (asynchronously) Delete Nigo - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteNigoAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteNigoValidateBeforeCall(caseId, nigoId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteNigoDocument - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteNigoDocumentCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos/{nigoId}/documents/{documentId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())) - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNigoDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling deleteNigoDocument(Async)"); - } - - // verify the required parameter 'nigoId' is set - if (nigoId == null) { - throw new ApiException( - "Missing the required parameter 'nigoId' when calling deleteNigoDocument(Async)"); - } - - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteNigoDocument(Async)"); - } - - return deleteNigoDocumentCall(caseId, nigoId, documentId, siteId, _callback); - - } - - /** - * Delete Document from Nigo Delete Document from Nigo - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseNigoDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteCaseNigoDocumentResponse deleteNigoDocument(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - deleteNigoDocumentWithHttpInfo(caseId, nigoId, documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Document from Nigo Delete Document from Nigo - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseNigoDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteNigoDocumentWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = - deleteNigoDocumentValidateBeforeCall(caseId, nigoId, documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Document from Nigo (asynchronously) Delete Document from Nigo - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteNigoDocumentAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteNigoDocumentValidateBeforeCall(caseId, nigoId, documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteTask - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteTaskCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks/{taskId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling deleteTask(Async)"); - } - - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException( - "Missing the required parameter 'taskId' when calling deleteTask(Async)"); - } - - return deleteTaskCall(caseId, taskId, siteId, _callback); - - } - - /** - * Delete Task Delete Task - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseTaskResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteCaseTaskResponse deleteTask(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - deleteTaskWithHttpInfo(caseId, taskId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Task Delete Task - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseTaskResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteTaskWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(caseId, taskId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Task (asynchronously) Delete Task - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteTaskAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(caseId, taskId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteTaskDocument - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteTaskDocumentCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks/{taskId}/documents/{documentId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())) - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteTaskDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling deleteTaskDocument(Async)"); - } - - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException( - "Missing the required parameter 'taskId' when calling deleteTaskDocument(Async)"); - } - - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteTaskDocument(Async)"); - } - - return deleteTaskDocumentCall(caseId, taskId, documentId, siteId, _callback); - - } - - /** - * Delete Document from Task Delete Document from Task - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseTaskDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteCaseTaskDocumentResponse deleteTaskDocument(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - deleteTaskDocumentWithHttpInfo(caseId, taskId, documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Document from Task Delete Document from Task - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseTaskDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteTaskDocumentWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = - deleteTaskDocumentValidateBeforeCall(caseId, taskId, documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Document from Task (asynchronously) Delete Document from Task - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteTaskDocumentAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteTaskDocumentValidateBeforeCall(caseId, taskId, documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getCase - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}".replace("{" + "caseId" + "}", - localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling getCase(Async)"); - } - - return getCaseCall(caseId, siteId, _callback); - - } - - /** - * Get Case details Returns a Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetCaseResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetCaseResponse getCase(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getCaseWithHttpInfo(caseId, siteId); - return localVarResp.getData(); - } - - /** - * Get Case details Returns a Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetCaseResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getCaseWithHttpInfo(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getCaseValidateBeforeCall(caseId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Case details (asynchronously) Returns a Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getCaseValidateBeforeCall(caseId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getCaseDocuments - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseDocumentsCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/documents".replace("{" + "caseId" + "}", - localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling getCaseDocuments(Async)"); - } - - return getCaseDocumentsCall(caseId, siteId, next, limit, _callback); - - } - - /** - * Get list of document in a case Returns documents in a Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCaseDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetCaseDocumentsResponse getCaseDocuments(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = - getCaseDocumentsWithHttpInfo(caseId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get list of document in a case Returns documents in a Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCaseDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getCaseDocumentsWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - okhttp3.Call localVarCall = - getCaseDocumentsValidateBeforeCall(caseId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of document in a case (asynchronously) Returns documents in a Case; available as an - * Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseDocumentsAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getCaseDocumentsValidateBeforeCall(caseId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getCaseNigo - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseNigoCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos/{nigoId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling getCaseNigo(Async)"); - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - // verify the required parameter 'nigoId' is set - if (nigoId == null) { - throw new ApiException( - "Missing the required parameter 'nigoId' when calling getCaseNigo(Async)"); + public CaseManagementApi() { + this(Configuration.getDefaultApiClient()); } - return getCaseNigoCall(caseId, nigoId, siteId, _callback); - - } - - /** - * Get nigo in a case Returns a Nigo in Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetCaseNigoResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetCaseNigoResponse getCaseNigo(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = getCaseNigoWithHttpInfo(caseId, nigoId, siteId); - return localVarResp.getData(); - } - - /** - * Get nigo in a case Returns a Nigo in Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetCaseNigoResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getCaseNigoWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getCaseNigoValidateBeforeCall(caseId, nigoId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get nigo in a case (asynchronously) Returns a Nigo in Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseNigoAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCaseNigoValidateBeforeCall(caseId, nigoId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getCaseNigos - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseNigosCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public CaseManagementApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos".replace("{" + "caseId" + "}", - localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseNigosValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling getCaseNigos(Async)"); - } - - return getCaseNigosCall(caseId, siteId, next, limit, _callback); - - } - - /** - * Get list of Nigos in a case Returns a Nigos of Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCaseNigosResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetCaseNigosResponse getCaseNigos(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = - getCaseNigosWithHttpInfo(caseId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get list of Nigos in a case Returns a Nigos of Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCaseNigosResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getCaseNigosWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - okhttp3.Call localVarCall = getCaseNigosValidateBeforeCall(caseId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of Nigos in a case (asynchronously) Returns a Nigos of Case; available as an Add-On - * Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseNigosAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - getCaseNigosValidateBeforeCall(caseId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getCaseTask - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseTaskCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public ApiClient getApiClient() { + return localVarApiClient; } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks/{taskId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling getCaseTask(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException( - "Missing the required parameter 'taskId' when calling getCaseTask(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - - return getCaseTaskCall(caseId, taskId, siteId, _callback); - - } - - /** - * Get task in a case Returns a Task in Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetCaseTaskResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetCaseTaskResponse getCaseTask(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = getCaseTaskWithHttpInfo(caseId, taskId, siteId); - return localVarResp.getData(); - } - - /** - * Get task in a case Returns a Task in Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetCaseTaskResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getCaseTaskWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getCaseTaskValidateBeforeCall(caseId, taskId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get task in a case (asynchronously) Returns a Task in Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseTaskAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCaseTaskValidateBeforeCall(caseId, taskId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getCaseTasks - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseTasksCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + + /** + * Build call for addCase + * @param addCaseRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addCaseCall(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addCaseRequest; + + // create path and map variables + String localVarPath = "/cases"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addCaseValidateBeforeCall(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addCaseRequest' is set + if (addCaseRequest == null) { + throw new ApiException("Missing the required parameter 'addCaseRequest' when calling addCase(Async)"); + } + + return addCaseCall(addCaseRequest, siteId, _callback); + + } + + /** + * Add New Case + * Adds new case; available as an Add-On Module + * @param addCaseRequest (required) + * @param siteId Site Identifier (optional) + * @return AddCaseResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddCaseResponse addCase(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addCaseWithHttpInfo(addCaseRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add New Case + * Adds new case; available as an Add-On Module + * @param addCaseRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddCaseResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addCaseWithHttpInfo(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addCaseValidateBeforeCall(addCaseRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New Case (asynchronously) + * Adds new case; available as an Add-On Module + * @param addCaseRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addCaseAsync(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addCaseValidateBeforeCall(addCaseRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addNigo + * @param caseId Case Identifier (required) + * @param addNigoRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addNigoCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddNigoRequest addNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addNigoRequest; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddNigoRequest addNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling addNigo(Async)"); + } + + // verify the required parameter 'addNigoRequest' is set + if (addNigoRequest == null) { + throw new ApiException("Missing the required parameter 'addNigoRequest' when calling addNigo(Async)"); + } + + return addNigoCall(caseId, addNigoRequest, siteId, _callback); + + } + + /** + * Add New Nigo + * Adds new nigo; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param addNigoRequest (required) + * @param siteId Site Identifier (optional) + * @return AddNigoResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddNigoResponse addNigo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddNigoRequest addNigoRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addNigoWithHttpInfo(caseId, addNigoRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add New Nigo + * Adds new nigo; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param addNigoRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddNigoResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addNigoWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddNigoRequest addNigoRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addNigoValidateBeforeCall(caseId, addNigoRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New Nigo (asynchronously) + * Adds new nigo; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param addNigoRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addNigoAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddNigoRequest addNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addNigoValidateBeforeCall(caseId, addNigoRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addTask + * @param caseId Case Identifier (required) + * @param addTaskRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addTaskCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddTaskRequest addTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addTaskRequest; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddTaskRequest addTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling addTask(Async)"); + } + + // verify the required parameter 'addTaskRequest' is set + if (addTaskRequest == null) { + throw new ApiException("Missing the required parameter 'addTaskRequest' when calling addTask(Async)"); + } + + return addTaskCall(caseId, addTaskRequest, siteId, _callback); + + } + + /** + * Add New Task + * Adds new task; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param addTaskRequest (required) + * @param siteId Site Identifier (optional) + * @return AddTaskResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddTaskResponse addTask(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddTaskRequest addTaskRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addTaskWithHttpInfo(caseId, addTaskRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add New Task + * Adds new task; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param addTaskRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddTaskResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addTaskWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddTaskRequest addTaskRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addTaskValidateBeforeCall(caseId, addTaskRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New Task (asynchronously) + * Adds new task; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param addTaskRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addTaskAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddTaskRequest addTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addTaskValidateBeforeCall(caseId, addTaskRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCase + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteCaseCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling deleteCase(Async)"); + } + + return deleteCaseCall(caseId, siteId, _callback); + + } + + /** + * Delete Case + * Delete Case + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteCaseResponse deleteCase(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteCaseWithHttpInfo(caseId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Case + * Delete Case + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteCaseWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteCaseValidateBeforeCall(caseId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Case (asynchronously) + * Delete Case + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteCaseAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCaseValidateBeforeCall(caseId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCaseDocument + * @param caseId Case Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteCaseDocumentCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/documents/{documentId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCaseDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling deleteCaseDocument(Async)"); + } + + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteCaseDocument(Async)"); + } + + return deleteCaseDocumentCall(caseId, documentId, siteId, _callback); + + } + + /** + * Delete Document from Case + * Delete Document from Case + * @param caseId Case Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteCaseDocumentResponse deleteCaseDocument(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteCaseDocumentWithHttpInfo(caseId, documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Document from Case + * Delete Document from Case + * @param caseId Case Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteCaseDocumentWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteCaseDocumentValidateBeforeCall(caseId, documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Document from Case (asynchronously) + * Delete Document from Case + * @param caseId Case Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteCaseDocumentAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCaseDocumentValidateBeforeCall(caseId, documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNigo + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteNigoCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos/{nigoId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling deleteNigo(Async)"); + } + + // verify the required parameter 'nigoId' is set + if (nigoId == null) { + throw new ApiException("Missing the required parameter 'nigoId' when calling deleteNigo(Async)"); + } + + return deleteNigoCall(caseId, nigoId, siteId, _callback); + + } + + /** + * Delete Nigo + * Delete Nigo + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseNigoResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteCaseNigoResponse deleteNigo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteNigoWithHttpInfo(caseId, nigoId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Nigo + * Delete Nigo + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseNigoResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteNigoWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteNigoValidateBeforeCall(caseId, nigoId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Nigo (asynchronously) + * Delete Nigo + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteNigoAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNigoValidateBeforeCall(caseId, nigoId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteNigoDocument + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteNigoDocumentCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos/{nigoId}/documents/{documentId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())) + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNigoDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling deleteNigoDocument(Async)"); + } + + // verify the required parameter 'nigoId' is set + if (nigoId == null) { + throw new ApiException("Missing the required parameter 'nigoId' when calling deleteNigoDocument(Async)"); + } + + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteNigoDocument(Async)"); + } + + return deleteNigoDocumentCall(caseId, nigoId, documentId, siteId, _callback); + + } + + /** + * Delete Document from Nigo + * Delete Document from Nigo + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseNigoDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteCaseNigoDocumentResponse deleteNigoDocument(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteNigoDocumentWithHttpInfo(caseId, nigoId, documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Document from Nigo + * Delete Document from Nigo + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseNigoDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteNigoDocumentWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteNigoDocumentValidateBeforeCall(caseId, nigoId, documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Document from Nigo (asynchronously) + * Delete Document from Nigo + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteNigoDocumentAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNigoDocumentValidateBeforeCall(caseId, nigoId, documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteTask + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteTaskCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks/{taskId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling deleteTask(Async)"); + } + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new ApiException("Missing the required parameter 'taskId' when calling deleteTask(Async)"); + } + + return deleteTaskCall(caseId, taskId, siteId, _callback); + + } + + /** + * Delete Task + * Delete Task + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseTaskResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteCaseTaskResponse deleteTask(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteTaskWithHttpInfo(caseId, taskId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Task + * Delete Task + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseTaskResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteTaskWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(caseId, taskId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Task (asynchronously) + * Delete Task + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteTaskAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(caseId, taskId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteTaskDocument + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteTaskDocumentCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks/{taskId}/documents/{documentId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())) + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteTaskDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling deleteTaskDocument(Async)"); + } + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new ApiException("Missing the required parameter 'taskId' when calling deleteTaskDocument(Async)"); + } + + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteTaskDocument(Async)"); + } + + return deleteTaskDocumentCall(caseId, taskId, documentId, siteId, _callback); + + } + + /** + * Delete Document from Task + * Delete Document from Task + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseTaskDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteCaseTaskDocumentResponse deleteTaskDocument(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteTaskDocumentWithHttpInfo(caseId, taskId, documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Document from Task + * Delete Document from Task + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseTaskDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteTaskDocumentWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteTaskDocumentValidateBeforeCall(caseId, taskId, documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Document from Task (asynchronously) + * Delete Document from Task + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteTaskDocumentAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteTaskDocumentValidateBeforeCall(caseId, taskId, documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCase + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling getCase(Async)"); + } + + return getCaseCall(caseId, siteId, _callback); + + } + + /** + * Get Case details + * Returns a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetCaseResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetCaseResponse getCase(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getCaseWithHttpInfo(caseId, siteId); + return localVarResp.getData(); + } + + /** + * Get Case details + * Returns a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetCaseResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getCaseWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getCaseValidateBeforeCall(caseId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Case details (asynchronously) + * Returns a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCaseValidateBeforeCall(caseId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCaseDocuments + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseDocumentsCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/documents" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling getCaseDocuments(Async)"); + } + + return getCaseDocumentsCall(caseId, siteId, next, limit, _callback); + + } + + /** + * Get list of document in a case + * Returns documents in a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCaseDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetCaseDocumentsResponse getCaseDocuments(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getCaseDocumentsWithHttpInfo(caseId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get list of document in a case + * Returns documents in a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCaseDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getCaseDocumentsWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getCaseDocumentsValidateBeforeCall(caseId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of document in a case (asynchronously) + * Returns documents in a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseDocumentsAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCaseDocumentsValidateBeforeCall(caseId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCaseNigo + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseNigoCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos/{nigoId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling getCaseNigo(Async)"); + } + + // verify the required parameter 'nigoId' is set + if (nigoId == null) { + throw new ApiException("Missing the required parameter 'nigoId' when calling getCaseNigo(Async)"); + } + + return getCaseNigoCall(caseId, nigoId, siteId, _callback); + + } + + /** + * Get nigo in a case + * Returns a Nigo in Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetCaseNigoResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetCaseNigoResponse getCaseNigo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getCaseNigoWithHttpInfo(caseId, nigoId, siteId); + return localVarResp.getData(); + } + + /** + * Get nigo in a case + * Returns a Nigo in Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetCaseNigoResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getCaseNigoWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getCaseNigoValidateBeforeCall(caseId, nigoId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get nigo in a case (asynchronously) + * Returns a Nigo in Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseNigoAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCaseNigoValidateBeforeCall(caseId, nigoId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCaseNigos + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseNigosCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseNigosValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling getCaseNigos(Async)"); + } + + return getCaseNigosCall(caseId, siteId, next, limit, _callback); + + } + + /** + * Get list of Nigos in a case + * Returns a Nigos of Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCaseNigosResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetCaseNigosResponse getCaseNigos(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getCaseNigosWithHttpInfo(caseId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get list of Nigos in a case + * Returns a Nigos of Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCaseNigosResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getCaseNigosWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getCaseNigosValidateBeforeCall(caseId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of Nigos in a case (asynchronously) + * Returns a Nigos of Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseNigosAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCaseNigosValidateBeforeCall(caseId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCaseTask + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseTaskCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks/{taskId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling getCaseTask(Async)"); + } + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new ApiException("Missing the required parameter 'taskId' when calling getCaseTask(Async)"); + } + + return getCaseTaskCall(caseId, taskId, siteId, _callback); + + } + + /** + * Get task in a case + * Returns a Task in Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetCaseTaskResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetCaseTaskResponse getCaseTask(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getCaseTaskWithHttpInfo(caseId, taskId, siteId); + return localVarResp.getData(); + } + + /** + * Get task in a case + * Returns a Task in Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetCaseTaskResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getCaseTaskWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getCaseTaskValidateBeforeCall(caseId, taskId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get task in a case (asynchronously) + * Returns a Task in Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseTaskAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCaseTaskValidateBeforeCall(caseId, taskId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCaseTasks + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseTasksCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseTasksValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling getCaseTasks(Async)"); + } + + return getCaseTasksCall(caseId, siteId, next, limit, _callback); + + } + + /** + * Get list of tasks in a case + * Returns a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCaseTasksResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetCaseTasksResponse getCaseTasks(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getCaseTasksWithHttpInfo(caseId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get list of tasks in a case + * Returns a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCaseTasksResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getCaseTasksWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getCaseTasksValidateBeforeCall(caseId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of tasks in a case (asynchronously) + * Returns a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCaseTasksAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCaseTasksValidateBeforeCall(caseId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCases + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCasesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCasesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + return getCasesCall(siteId, next, limit, _callback); + + } + + /** + * Get Case listing + * Returns a list of the Cases; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCasesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetCasesResponse getCases(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getCasesWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get Case listing + * Returns a list of the Cases; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCasesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getCasesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getCasesValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Case listing (asynchronously) + * Returns a list of the Cases; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getCasesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCasesValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getNigoDocuments + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getNigoDocumentsCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos/{nigoId}/documents" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getNigoDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling getNigoDocuments(Async)"); + } + + // verify the required parameter 'nigoId' is set + if (nigoId == null) { + throw new ApiException("Missing the required parameter 'nigoId' when calling getNigoDocuments(Async)"); + } + + return getNigoDocumentsCall(caseId, nigoId, siteId, next, limit, _callback); + + } + + /** + * Get list of document in a task + * Returns a list documents in a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCaseDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetCaseDocumentsResponse getNigoDocuments(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getNigoDocumentsWithHttpInfo(caseId, nigoId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get list of document in a task + * Returns a list documents in a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCaseDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getNigoDocumentsWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getNigoDocumentsValidateBeforeCall(caseId, nigoId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of document in a task (asynchronously) + * Returns a list documents in a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getNigoDocumentsAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getNigoDocumentsValidateBeforeCall(caseId, nigoId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getTaskDocuments + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getTaskDocumentsCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks/{taskId}/documents" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTaskDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling getTaskDocuments(Async)"); + } + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new ApiException("Missing the required parameter 'taskId' when calling getTaskDocuments(Async)"); + } + + return getTaskDocumentsCall(caseId, taskId, siteId, next, limit, _callback); + + } + + /** + * Get list of document in a task + * Returns a list documents in a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCaseDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetCaseDocumentsResponse getTaskDocuments(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getTaskDocumentsWithHttpInfo(caseId, taskId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get list of document in a task + * Returns a list documents in a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCaseDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getTaskDocumentsWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getTaskDocumentsValidateBeforeCall(caseId, taskId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of document in a task (asynchronously) + * Returns a list documents in a Case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getTaskDocumentsAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getTaskDocumentsValidateBeforeCall(caseId, taskId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateCase + * @param caseId Case Identifier (required) + * @param updateCaseRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateCaseCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateCaseRequest; + + // create path and map variables + String localVarPath = "/cases/{caseId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling updateCase(Async)"); + } + + // verify the required parameter 'updateCaseRequest' is set + if (updateCaseRequest == null) { + throw new ApiException("Missing the required parameter 'updateCaseRequest' when calling updateCase(Async)"); + } + + return updateCaseCall(caseId, updateCaseRequest, siteId, _callback); + + } + + /** + * Update existing Case + * Updates existing case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param updateCaseRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateCaseResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public UpdateCaseResponse updateCase(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = updateCaseWithHttpInfo(caseId, updateCaseRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update existing Case + * Updates existing case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param updateCaseRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateCaseResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse updateCaseWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateCaseValidateBeforeCall(caseId, updateCaseRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update existing Case (asynchronously) + * Updates existing case; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param updateCaseRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateCaseAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateCaseValidateBeforeCall(caseId, updateCaseRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateNigo + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param updateNigoRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateNigoCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateNigoRequest; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos/{nigoId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling updateNigo(Async)"); + } + + // verify the required parameter 'nigoId' is set + if (nigoId == null) { + throw new ApiException("Missing the required parameter 'nigoId' when calling updateNigo(Async)"); + } + + // verify the required parameter 'updateNigoRequest' is set + if (updateNigoRequest == null) { + throw new ApiException("Missing the required parameter 'updateNigoRequest' when calling updateNigo(Async)"); + } + + return updateNigoCall(caseId, nigoId, updateNigoRequest, siteId, _callback); + + } + + /** + * Update existing Nigo + * Updates existing nigo; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param updateNigoRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateNigoResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public UpdateNigoResponse updateNigo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = updateNigoWithHttpInfo(caseId, nigoId, updateNigoRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update existing Nigo + * Updates existing nigo; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param updateNigoRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateNigoResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse updateNigoWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateNigoValidateBeforeCall(caseId, nigoId, updateNigoRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update existing Nigo (asynchronously) + * Updates existing nigo; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param updateNigoRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateNigoAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateNigoValidateBeforeCall(caseId, nigoId, updateNigoRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateTask + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param updateTaskRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateTaskCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateTaskRequest; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks/{taskId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling updateTask(Async)"); + } + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new ApiException("Missing the required parameter 'taskId' when calling updateTask(Async)"); + } + + // verify the required parameter 'updateTaskRequest' is set + if (updateTaskRequest == null) { + throw new ApiException("Missing the required parameter 'updateTaskRequest' when calling updateTask(Async)"); + } + + return updateTaskCall(caseId, taskId, updateTaskRequest, siteId, _callback); + + } + + /** + * Update existing Task + * Updates existing task; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param updateTaskRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateTaskResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public UpdateTaskResponse updateTask(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = updateTaskWithHttpInfo(caseId, taskId, updateTaskRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update existing Task + * Updates existing task; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param updateTaskRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateTaskResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse updateTaskWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateTaskValidateBeforeCall(caseId, taskId, updateTaskRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update existing Task (asynchronously) + * Updates existing task; available as an Add-On Module + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param updateTaskRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateTaskAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateTaskValidateBeforeCall(caseId, taskId, updateTaskRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks".replace("{" + "caseId" + "}", - localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseTasksValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling getCaseTasks(Async)"); - } - - return getCaseTasksCall(caseId, siteId, next, limit, _callback); - - } - - /** - * Get list of tasks in a case Returns a Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCaseTasksResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetCaseTasksResponse getCaseTasks(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = - getCaseTasksWithHttpInfo(caseId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get list of tasks in a case Returns a Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCaseTasksResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getCaseTasksWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - okhttp3.Call localVarCall = getCaseTasksValidateBeforeCall(caseId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of tasks in a case (asynchronously) Returns a Case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCaseTasksAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - getCaseTasksValidateBeforeCall(caseId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getCases - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCasesCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCasesValidateBeforeCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - return getCasesCall(siteId, next, limit, _callback); - - } - - /** - * Get Case listing Returns a list of the Cases; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCasesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetCasesResponse getCases(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = getCasesWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get Case listing Returns a list of the Cases; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCasesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getCasesWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getCasesValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Case listing (asynchronously) Returns a list of the Cases; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getCasesAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCasesValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getNigoDocuments - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getNigoDocumentsCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos/{nigoId}/documents" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getNigoDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling getNigoDocuments(Async)"); - } - - // verify the required parameter 'nigoId' is set - if (nigoId == null) { - throw new ApiException( - "Missing the required parameter 'nigoId' when calling getNigoDocuments(Async)"); - } - - return getNigoDocumentsCall(caseId, nigoId, siteId, next, limit, _callback); - - } - - /** - * Get list of document in a task Returns a list documents in a Case; available as an Add-On - * Module - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCaseDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetCaseDocumentsResponse getNigoDocuments(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = - getNigoDocumentsWithHttpInfo(caseId, nigoId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get list of document in a task Returns a list documents in a Case; available as an Add-On - * Module - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCaseDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getNigoDocumentsWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = - getNigoDocumentsValidateBeforeCall(caseId, nigoId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of document in a task (asynchronously) Returns a list documents in a Case; available - * as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getNigoDocumentsAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getNigoDocumentsValidateBeforeCall(caseId, nigoId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getTaskDocuments - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getTaskDocumentsCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks/{taskId}/documents" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getTaskDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling getTaskDocuments(Async)"); - } - - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException( - "Missing the required parameter 'taskId' when calling getTaskDocuments(Async)"); - } - - return getTaskDocumentsCall(caseId, taskId, siteId, next, limit, _callback); - - } - - /** - * Get list of document in a task Returns a list documents in a Case; available as an Add-On - * Module - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCaseDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetCaseDocumentsResponse getTaskDocuments(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = - getTaskDocumentsWithHttpInfo(caseId, taskId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get list of document in a task Returns a list documents in a Case; available as an Add-On - * Module - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCaseDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getTaskDocumentsWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = - getTaskDocumentsValidateBeforeCall(caseId, taskId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of document in a task (asynchronously) Returns a list documents in a Case; available - * as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getTaskDocumentsAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getTaskDocumentsValidateBeforeCall(caseId, taskId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateCase - * - * @param caseId Case Identifier (required) - * @param updateCaseRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateCaseCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateCaseRequest; - - // create path and map variables - String localVarPath = "/cases/{caseId}".replace("{" + "caseId" + "}", - localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling updateCase(Async)"); - } - - // verify the required parameter 'updateCaseRequest' is set - if (updateCaseRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateCaseRequest' when calling updateCase(Async)"); - } - - return updateCaseCall(caseId, updateCaseRequest, siteId, _callback); - - } - - /** - * Update existing Case Updates existing case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param updateCaseRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateCaseResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public UpdateCaseResponse updateCase(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - updateCaseWithHttpInfo(caseId, updateCaseRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update existing Case Updates existing case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param updateCaseRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateCaseResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse updateCaseWithHttpInfo( - @javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - updateCaseValidateBeforeCall(caseId, updateCaseRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update existing Case (asynchronously) Updates existing case; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param updateCaseRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateCaseAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - updateCaseValidateBeforeCall(caseId, updateCaseRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateNigo - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param updateNigoRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateNigoCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, - @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateNigoRequest; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos/{nigoId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, - @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling updateNigo(Async)"); - } - - // verify the required parameter 'nigoId' is set - if (nigoId == null) { - throw new ApiException( - "Missing the required parameter 'nigoId' when calling updateNigo(Async)"); - } - - // verify the required parameter 'updateNigoRequest' is set - if (updateNigoRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateNigoRequest' when calling updateNigo(Async)"); - } - - return updateNigoCall(caseId, nigoId, updateNigoRequest, siteId, _callback); - - } - - /** - * Update existing Nigo Updates existing nigo; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param updateNigoRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateNigoResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public UpdateNigoResponse updateNigo(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, - @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - updateNigoWithHttpInfo(caseId, nigoId, updateNigoRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update existing Nigo Updates existing nigo; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param updateNigoRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateNigoResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse updateNigoWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, - @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - updateNigoValidateBeforeCall(caseId, nigoId, updateNigoRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update existing Nigo (asynchronously) Updates existing nigo; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param updateNigoRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateNigoAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String nigoId, - @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - updateNigoValidateBeforeCall(caseId, nigoId, updateNigoRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateTask - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param updateTaskRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateTaskCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, - @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateTaskRequest; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks/{taskId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, - @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException( - "Missing the required parameter 'caseId' when calling updateTask(Async)"); - } - - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException( - "Missing the required parameter 'taskId' when calling updateTask(Async)"); - } - - // verify the required parameter 'updateTaskRequest' is set - if (updateTaskRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateTaskRequest' when calling updateTask(Async)"); - } - - return updateTaskCall(caseId, taskId, updateTaskRequest, siteId, _callback); - - } - - /** - * Update existing Task Updates existing task; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param updateTaskRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateTaskResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public UpdateTaskResponse updateTask(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, - @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - updateTaskWithHttpInfo(caseId, taskId, updateTaskRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update existing Task Updates existing task; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param updateTaskRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateTaskResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse updateTaskWithHttpInfo( - @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, - @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - updateTaskValidateBeforeCall(caseId, taskId, updateTaskRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update existing Task (asynchronously) Updates existing task; available as an Add-On Module - * - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param updateTaskRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateTaskAsync(@javax.annotation.Nonnull String caseId, - @javax.annotation.Nonnull String taskId, - @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - updateTaskValidateBeforeCall(caseId, taskId, updateTaskRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/CustomIndexApi.java b/src/main/java/com/formkiq/client/api/CustomIndexApi.java index f72b87f24..1b626d1c0 100644 --- a/src/main/java/com/formkiq/client/api/CustomIndexApi.java +++ b/src/main/java/com/formkiq/client/api/CustomIndexApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -48,755 +41,501 @@ import java.util.Map; public class CustomIndexApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public CustomIndexApi() { - this(Configuration.getDefaultApiClient()); - } - - public CustomIndexApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for deleteIndex - * - * @param indexKey Index Key Identifier (required) - * @param indexType Index Type (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call deleteIndexCall(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - Object localVarPostBody = null; + public CustomIndexApi() { + this(Configuration.getDefaultApiClient()); + } - // create path and map variables - String localVarPath = "/indices/{indexType}/{indexKey}" - .replace("{" + "indexKey" + "}", localVarApiClient.escapeString(indexKey.toString())) - .replace("{" + "indexType" + "}", localVarApiClient.escapeString(indexType.toString())); + public CustomIndexApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public ApiClient getApiClient() { + return localVarApiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteIndexValidateBeforeCall(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexKey' is set - if (indexKey == null) { - throw new ApiException( - "Missing the required parameter 'indexKey' when calling deleteIndex(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - // verify the required parameter 'indexType' is set - if (indexType == null) { - throw new ApiException( - "Missing the required parameter 'indexType' when calling deleteIndex(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - return deleteIndexCall(indexKey, indexType, siteId, _callback); - - } - - /** - * - * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, - * you can set the indexKey to a URLEncoded path variable. - * - * @param indexKey Index Key Identifier (required) - * @param indexType Index Type (required) - * @param siteId Site Identifier (optional) - * @return DeleteIndicesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public DeleteIndicesResponse deleteIndex(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - deleteIndexWithHttpInfo(indexKey, indexType, siteId); - return localVarResp.getData(); - } - - /** - * - * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, - * you can set the indexKey to a URLEncoded path variable. - * - * @param indexKey Index Key Identifier (required) - * @param indexType Index Type (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteIndicesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse deleteIndexWithHttpInfo( - @javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteIndexValidateBeforeCall(indexKey, indexType, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) Perform a delete on the Folder Index. When deleting a file from the - * \"folder\" index, you can set the indexKey to a URLEncoded path variable. - * - * @param indexKey Index Key Identifier (required) - * @param indexType Index Type (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call deleteIndexAsync(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteIndexValidateBeforeCall(indexKey, indexType, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for indexFolderMove - * - * @param indexType Index Type (required) - * @param indexFolderMoveRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call indexFolderMoveCall(@javax.annotation.Nonnull String indexType, - @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteIndex + * @param indexKey Index Key Identifier (required) + * @param indexType Index Type (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call deleteIndexCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/indices/{indexType}/{indexKey}" + .replace("{" + "indexKey" + "}", localVarApiClient.escapeString(indexKey.toString())) + .replace("{" + "indexType" + "}", localVarApiClient.escapeString(indexType.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = indexFolderMoveRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteIndexValidateBeforeCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexKey' is set + if (indexKey == null) { + throw new ApiException("Missing the required parameter 'indexKey' when calling deleteIndex(Async)"); + } - // create path and map variables - String localVarPath = "/indices/{indexType}/move".replace("{" + "indexType" + "}", - localVarApiClient.escapeString(indexType.toString())); + // verify the required parameter 'indexType' is set + if (indexType == null) { + throw new ApiException("Missing the required parameter 'indexType' when calling deleteIndex(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return deleteIndexCall(indexKey, indexType, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * + * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, you can set the indexKey to a URLEncoded path variable. + * @param indexKey Index Key Identifier (required) + * @param indexType Index Type (required) + * @param siteId Site Identifier (optional) + * @return DeleteIndicesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public DeleteIndicesResponse deleteIndex(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteIndexWithHttpInfo(indexKey, indexType, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * + * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, you can set the indexKey to a URLEncoded path variable. + * @param indexKey Index Key Identifier (required) + * @param indexType Index Type (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteIndicesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse deleteIndexWithHttpInfo(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteIndexValidateBeforeCall(indexKey, indexType, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call indexFolderMoveValidateBeforeCall(@javax.annotation.Nonnull String indexType, - @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexType' is set - if (indexType == null) { - throw new ApiException( - "Missing the required parameter 'indexType' when calling indexFolderMove(Async)"); + /** + * (asynchronously) + * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, you can set the indexKey to a URLEncoded path variable. + * @param indexKey Index Key Identifier (required) + * @param indexType Index Type (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call deleteIndexAsync(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteIndexValidateBeforeCall(indexKey, indexType, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - // verify the required parameter 'indexFolderMoveRequest' is set - if (indexFolderMoveRequest == null) { - throw new ApiException( - "Missing the required parameter 'indexFolderMoveRequest' when calling indexFolderMove(Async)"); + /** + * Build call for indexFolderMove + * @param indexType Index Type (required) + * @param indexFolderMoveRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call indexFolderMoveCall(@javax.annotation.Nonnull String indexType, @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = indexFolderMoveRequest; + + // create path and map variables + String localVarPath = "/indices/{indexType}/move" + .replace("{" + "indexType" + "}", localVarApiClient.escapeString(indexType.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - return indexFolderMoveCall(indexType, indexFolderMoveRequest, siteId, _callback); - - } - - /** - * - * Perform an Folder Index Move - * - * @param indexType Index Type (required) - * @param indexFolderMoveRequest (required) - * @param siteId Site Identifier (optional) - * @return IndexFolderMoveResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public IndexFolderMoveResponse indexFolderMove(@javax.annotation.Nonnull String indexType, - @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - indexFolderMoveWithHttpInfo(indexType, indexFolderMoveRequest, siteId); - return localVarResp.getData(); - } - - /** - * - * Perform an Folder Index Move - * - * @param indexType Index Type (required) - * @param indexFolderMoveRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<IndexFolderMoveResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse indexFolderMoveWithHttpInfo( - @javax.annotation.Nonnull String indexType, - @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - indexFolderMoveValidateBeforeCall(indexType, indexFolderMoveRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) Perform an Folder Index Move - * - * @param indexType Index Type (required) - * @param indexFolderMoveRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call indexFolderMoveAsync(@javax.annotation.Nonnull String indexType, - @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - indexFolderMoveValidateBeforeCall(indexType, indexFolderMoveRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for indexSearch - * - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call indexSearchCall( - @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + @SuppressWarnings("rawtypes") + private okhttp3.Call indexFolderMoveValidateBeforeCall(@javax.annotation.Nonnull String indexType, @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexType' is set + if (indexType == null) { + throw new ApiException("Missing the required parameter 'indexType' when calling indexFolderMove(Async)"); + } - Object localVarPostBody = indexSearchRequest; + // verify the required parameter 'indexFolderMoveRequest' is set + if (indexFolderMoveRequest == null) { + throw new ApiException("Missing the required parameter 'indexFolderMoveRequest' when calling indexFolderMove(Async)"); + } - // create path and map variables - String localVarPath = "/indices/search"; + return indexFolderMoveCall(indexType, indexFolderMoveRequest, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * + * Perform an Folder Index Move + * @param indexType Index Type (required) + * @param indexFolderMoveRequest (required) + * @param siteId Site Identifier (optional) + * @return IndexFolderMoveResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public IndexFolderMoveResponse indexFolderMove(@javax.annotation.Nonnull String indexType, @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = indexFolderMoveWithHttpInfo(indexType, indexFolderMoveRequest, siteId); + return localVarResp.getData(); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * + * Perform an Folder Index Move + * @param indexType Index Type (required) + * @param indexFolderMoveRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<IndexFolderMoveResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse indexFolderMoveWithHttpInfo(@javax.annotation.Nonnull String indexType, @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = indexFolderMoveValidateBeforeCall(indexType, indexFolderMoveRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (previous != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + /** + * (asynchronously) + * Perform an Folder Index Move + * @param indexType Index Type (required) + * @param indexFolderMoveRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call indexFolderMoveAsync(@javax.annotation.Nonnull String indexType, @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = indexFolderMoveValidateBeforeCall(indexType, indexFolderMoveRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for indexSearch + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call indexSearchCall(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = indexSearchRequest; + + // create path and map variables + String localVarPath = "/indices/search"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + @SuppressWarnings("rawtypes") + private okhttp3.Call indexSearchValidateBeforeCall(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexSearchRequest' is set + if (indexSearchRequest == null) { + throw new ApiException("Missing the required parameter 'indexSearchRequest' when calling indexSearch(Async)"); + } + + return indexSearchCall(indexSearchRequest, siteId, limit, next, previous, _callback); + } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * + * Perform a search on a index; this is currently available for both folder and tag indices + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return IndexSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public IndexSearchResponse indexSearch(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { + ApiResponse localVarResp = indexSearchWithHttpInfo(indexSearchRequest, siteId, limit, next, previous); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call indexSearchValidateBeforeCall( - @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexSearchRequest' is set - if (indexSearchRequest == null) { - throw new ApiException( - "Missing the required parameter 'indexSearchRequest' when calling indexSearch(Async)"); + /** + * + * Perform a search on a index; this is currently available for both folder and tag indices + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return ApiResponse<IndexSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse indexSearchWithHttpInfo(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { + okhttp3.Call localVarCall = indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return indexSearchCall(indexSearchRequest, siteId, limit, next, previous, _callback); - - } - - /** - * - * Perform a search on a index; this is currently available for both folder and tag indices - * - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return IndexSearchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public IndexSearchResponse indexSearch( - @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) - throws ApiException { - ApiResponse localVarResp = - indexSearchWithHttpInfo(indexSearchRequest, siteId, limit, next, previous); - return localVarResp.getData(); - } - - /** - * - * Perform a search on a index; this is currently available for both folder and tag indices - * - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return ApiResponse<IndexSearchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse indexSearchWithHttpInfo( - @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) - throws ApiException { - okhttp3.Call localVarCall = - indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) Perform a search on a index; this is currently available for both folder and - * tag indices - * - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call indexSearchAsync( - @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * (asynchronously) + * Perform a search on a index; this is currently available for both folder and tag indices + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call indexSearchAsync(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentActionsApi.java b/src/main/java/com/formkiq/client/api/DocumentActionsApi.java index 60fd97e24..bf64af8c5 100644 --- a/src/main/java/com/formkiq/client/api/DocumentActionsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentActionsApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -47,782 +40,482 @@ import java.util.Map; public class DocumentActionsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentActionsApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentActionsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocumentActions - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentActionsRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocumentActionsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - Object localVarPostBody = addDocumentActionsRequest; + public DocumentActionsApi() { + this(Configuration.getDefaultApiClient()); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/actions".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + public DocumentActionsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public ApiClient getApiClient() { + return localVarApiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentActionsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocumentActions(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - return addDocumentActionsCall(documentId, siteId, addDocumentActionsRequest, _callback); - - } - - /** - * Add document action Add one or more actions to a document; this appends actions and does not - * replace previous actions Each action type supports a different set of parameters as shown in - * the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | - * -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | - * TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | - * ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | - * ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR - * result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of - * pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert - * images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt - * Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext - * destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | - * DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | - * WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | - * notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | - * Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | - * Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | - * Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text - * | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | - * QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | - * eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | - * width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The - * height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type - * of the image (optional). | | | RESIZE | path | The path to use when creating resized document - * (optional). | | - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentActionsRequest (optional) - * @return AddDocumentActionsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddDocumentActionsResponse addDocumentActions(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest) - throws ApiException { - ApiResponse localVarResp = - addDocumentActionsWithHttpInfo(documentId, siteId, addDocumentActionsRequest); - return localVarResp.getData(); - } - - /** - * Add document action Add one or more actions to a document; this appends actions and does not - * replace previous actions Each action type supports a different set of parameters as shown in - * the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | - * -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | - * TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | - * ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | - * ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR - * result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of - * pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert - * images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt - * Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext - * destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | - * DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | - * WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | - * notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | - * Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | - * Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | - * Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text - * | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | - * QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | - * eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | - * width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The - * height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type - * of the image (optional). | | | RESIZE | path | The path to use when creating resized document - * (optional). | | - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentActionsRequest (optional) - * @return ApiResponse<AddDocumentActionsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addDocumentActionsWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest) - throws ApiException { - okhttp3.Call localVarCall = - addDocumentActionsValidateBeforeCall(documentId, siteId, addDocumentActionsRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add document action (asynchronously) Add one or more actions to a document; this appends - * actions and does not replace previous actions Each action type supports a different set of - * parameters as shown in the table below: ### Action Parameters | ActionType | Parameter | - * Description | Example | | -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr - * Parsing strategy to use | TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') - * | | OCR | ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | - * | OCR | ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert - * OCR result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number - * of pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents - * convert images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM - * Prompt Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to - * Fulltext destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | - * DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | - * WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | - * notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | - * Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | - * Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | - * Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text - * | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | - * QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | - * eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | - * width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The - * height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type - * of the image (optional). | | | RESIZE | path | The path to use when creating resized document - * (optional). | | - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentActionsRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocumentActionsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentActionsValidateBeforeCall(documentId, siteId, - addDocumentActionsRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addDocumentRetryAction - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocumentRetryActionCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - Object localVarPostBody = null; + /** + * Build call for addDocumentActions + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentActionsRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocumentActionsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentActionsRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/actions" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/actions/retry".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentActionsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentActions(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addDocumentActionsCall(documentId, siteId, addDocumentActionsRequest, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add document action + * Add one or more actions to a document; this appends actions and does not replace previous actions Each action type supports a different set of parameters as shown in the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type of the image (optional). | | | RESIZE | path | The path to use when creating resized document (optional). | | + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentActionsRequest (optional) + * @return AddDocumentActionsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddDocumentActionsResponse addDocumentActions(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest) throws ApiException { + ApiResponse localVarResp = addDocumentActionsWithHttpInfo(documentId, siteId, addDocumentActionsRequest); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add document action + * Add one or more actions to a document; this appends actions and does not replace previous actions Each action type supports a different set of parameters as shown in the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type of the image (optional). | | | RESIZE | path | The path to use when creating resized document (optional). | | + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentActionsRequest (optional) + * @return ApiResponse<AddDocumentActionsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addDocumentActionsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest) throws ApiException { + okhttp3.Call localVarCall = addDocumentActionsValidateBeforeCall(documentId, siteId, addDocumentActionsRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentRetryActionValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocumentRetryAction(Async)"); + /** + * Add document action (asynchronously) + * Add one or more actions to a document; this appends actions and does not replace previous actions Each action type supports a different set of parameters as shown in the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type of the image (optional). | | | RESIZE | path | The path to use when creating resized document (optional). | | + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentActionsRequest (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocumentActionsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentActionsValidateBeforeCall(documentId, siteId, addDocumentActionsRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return addDocumentRetryActionCall(documentId, siteId, _callback); - - } - - /** - * Retries failed document action(s) Retries all failed document action(s). Failed action status - * changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return AddDocumentActionsRetryResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddDocumentActionsRetryResponse addDocumentRetryAction( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - addDocumentRetryActionWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Retries failed document action(s) Retries all failed document action(s). Failed action status - * changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocumentActionsRetryResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addDocumentRetryActionWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = addDocumentRetryActionValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Retries failed document action(s) (asynchronously) Retries all failed document action(s). - * Failed action status changes to \"FAILED_RETRY\" and a new \"PENDING\" - * action is created. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocumentRetryActionAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - addDocumentRetryActionValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentActions - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentActionsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addDocumentRetryAction + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocumentRetryActionCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/actions/retry" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentRetryActionValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentRetryAction(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/actions".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + return addDocumentRetryActionCall(documentId, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Retries failed document action(s) + * Retries all failed document action(s). Failed action status changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return AddDocumentActionsRetryResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddDocumentActionsRetryResponse addDocumentRetryAction(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addDocumentRetryActionWithHttpInfo(documentId, siteId); + return localVarResp.getData(); } - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + /** + * Retries failed document action(s) + * Retries all failed document action(s). Failed action status changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocumentActionsRetryResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addDocumentRetryActionWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocumentRetryActionValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Retries failed document action(s) (asynchronously) + * Retries all failed document action(s). Failed action status changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocumentRetryActionAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentRetryActionValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocumentActions + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentActionsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/actions" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentActionsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentActions(Async)"); + } + + return getDocumentActionsCall(documentId, siteId, limit, shareKey, next, _callback); + } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get document actions + * Get document actions and their status + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return GetDocumentActionsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentActionsResponse getDocumentActions(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getDocumentActionsWithHttpInfo(documentId, siteId, limit, shareKey, next); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentActionsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentActions(Async)"); + /** + * Get document actions + * Get document actions and their status + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return ApiResponse<GetDocumentActionsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentActionsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getDocumentActionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return getDocumentActionsCall(documentId, siteId, limit, shareKey, next, _callback); - - } - - /** - * Get document actions Get document actions and their status - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return GetDocumentActionsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentActionsResponse getDocumentActions(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) - throws ApiException { - ApiResponse localVarResp = - getDocumentActionsWithHttpInfo(documentId, siteId, limit, shareKey, next); - return localVarResp.getData(); - } - - /** - * Get document actions Get document actions and their status - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return ApiResponse<GetDocumentActionsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentActionsWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = - getDocumentActionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document actions (asynchronously) Get document actions and their status - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentActionsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentActionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Get document actions (asynchronously) + * Get document actions and their status + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentActionsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentActionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentAttributesApi.java b/src/main/java/com/formkiq/client/api/DocumentAttributesApi.java index c9b10e477..2f560bfad 100644 --- a/src/main/java/com/formkiq/client/api/DocumentAttributesApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentAttributesApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -50,1560 +43,1081 @@ import java.util.Map; public class DocumentAttributesApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentAttributesApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentAttributesApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocumentAttributes - * - * @param documentId Document Identifier (required) - * @param addDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentAttributesCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentAttributesRequest; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + public DocumentAttributesApi() { + this(Configuration.getDefaultApiClient()); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public DocumentAttributesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public ApiClient getApiClient() { + return localVarApiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public int getHostIndex() { + return localHostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentAttributesValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocumentAttributes(Async)"); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - // verify the required parameter 'addDocumentAttributesRequest' is set - if (addDocumentAttributesRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocumentAttributesRequest' when calling addDocumentAttributes(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - return addDocumentAttributesCall(documentId, addDocumentAttributesRequest, siteId, _callback); - - } - - /** - * Add attribute to document Add multiple attributes to a document; this endpoint also accepts a - * different body parameter for adding a single attribute - * - * @param documentId Document Identifier (required) - * @param addDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddResponse addDocumentAttributes(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addDocumentAttributesWithHttpInfo(documentId, addDocumentAttributesRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add attribute to document Add multiple attributes to a document; this endpoint also accepts a - * different body parameter for adding a single attribute - * - * @param documentId Document Identifier (required) - * @param addDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addDocumentAttributesWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocumentAttributesValidateBeforeCall(documentId, - addDocumentAttributesRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add attribute to document (asynchronously) Add multiple attributes to a document; this endpoint - * also accepts a different body parameter for adding a single attribute - * - * @param documentId Document Identifier (required) - * @param addDocumentAttributesRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = addDocumentAttributesValidateBeforeCall(documentId, - addDocumentAttributesRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteDocumentAttribute - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentAttributeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - Object localVarPostBody = null; + /** + * Build call for addDocumentAttributes + * @param documentId Document Identifier (required) + * @param addDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentAttributesCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentAttributesRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "attributeKey" + "}", - localVarApiClient.escapeString(attributeKey.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentAttributesValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentAttributes(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'addDocumentAttributesRequest' is set + if (addDocumentAttributesRequest == null) { + throw new ApiException("Missing the required parameter 'addDocumentAttributesRequest' when calling addDocumentAttributes(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return addDocumentAttributesCall(documentId, addDocumentAttributesRequest, siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add attribute to document + * Add multiple attributes to a document; this endpoint also accepts a different body parameter for adding a single attribute + * @param documentId Document Identifier (required) + * @param addDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddResponse addDocumentAttributes(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addDocumentAttributesWithHttpInfo(documentId, addDocumentAttributesRequest, siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentAttributeValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocumentAttribute(Async)"); + /** + * Add attribute to document + * Add multiple attributes to a document; this endpoint also accepts a different body parameter for adding a single attribute + * @param documentId Document Identifier (required) + * @param addDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addDocumentAttributesWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocumentAttributesValidateBeforeCall(documentId, addDocumentAttributesRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'attributeKey' is set - if (attributeKey == null) { - throw new ApiException( - "Missing the required parameter 'attributeKey' when calling deleteDocumentAttribute(Async)"); + /** + * Add attribute to document (asynchronously) + * Add multiple attributes to a document; this endpoint also accepts a different body parameter for adding a single attribute + * @param documentId Document Identifier (required) + * @param addDocumentAttributesRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentAttributesValidateBeforeCall(documentId, addDocumentAttributesRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return deleteDocumentAttributeCall(documentId, attributeKey, siteId, _callback); - - } - - /** - * Delete document attribute Delete a document attribute by using its key - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteDocumentAttribute(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - deleteDocumentAttributeWithHttpInfo(documentId, attributeKey, siteId); - return localVarResp.getData(); - } - - /** - * Delete document attribute Delete a document attribute by using its key - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentAttributeWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - deleteDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document attribute (asynchronously) Delete a document attribute by using its key - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentAttributeAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteDocumentAttributeAndValue - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param attributeValue Attribute Value (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentAttributeAndValueCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteDocumentAttribute + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentAttributeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "attributeKey" + "}", localVarApiClient.escapeString(attributeKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentAttributeValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentAttribute(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes/{attributeKey}/{attributeValue}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "attributeKey" + "}", - localVarApiClient.escapeString(attributeKey.toString())) - .replace("{" + "attributeValue" + "}", - localVarApiClient.escapeString(attributeValue.toString())); + // verify the required parameter 'attributeKey' is set + if (attributeKey == null) { + throw new ApiException("Missing the required parameter 'attributeKey' when calling deleteDocumentAttribute(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return deleteDocumentAttributeCall(documentId, attributeKey, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Delete document attribute + * Delete a document attribute by using its key + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteDocumentAttribute(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteDocumentAttributeWithHttpInfo(documentId, attributeKey, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete document attribute + * Delete a document attribute by using its key + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentAttributeWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentAttributeAndValueValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocumentAttributeAndValue(Async)"); + /** + * Delete document attribute (asynchronously) + * Delete a document attribute by using its key + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentAttributeAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - // verify the required parameter 'attributeKey' is set - if (attributeKey == null) { - throw new ApiException( - "Missing the required parameter 'attributeKey' when calling deleteDocumentAttributeAndValue(Async)"); - } - - // verify the required parameter 'attributeValue' is set - if (attributeValue == null) { - throw new ApiException( - "Missing the required parameter 'attributeValue' when calling deleteDocumentAttributeAndValue(Async)"); + /** + * Build call for deleteDocumentAttributeAndValue + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param attributeValue Attribute Value (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentAttributeAndValueCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes/{attributeKey}/{attributeValue}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "attributeKey" + "}", localVarApiClient.escapeString(attributeKey.toString())) + .replace("{" + "attributeValue" + "}", localVarApiClient.escapeString(attributeValue.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - return deleteDocumentAttributeAndValueCall(documentId, attributeKey, attributeValue, siteId, - _callback); - - } - - /** - * Delete document's attribute value Delete a specific document attribute key/value - * combination; the request will be ignored if there is no valid key/value combination found - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param attributeValue Attribute Value (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteDocumentAttributeAndValue(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = deleteDocumentAttributeAndValueWithHttpInfo( - documentId, attributeKey, attributeValue, siteId); - return localVarResp.getData(); - } - - /** - * Delete document's attribute value Delete a specific document attribute key/value - * combination; the request will be ignored if there is no valid key/value combination found - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param attributeValue Attribute Value (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentAttributeAndValueWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteDocumentAttributeAndValueValidateBeforeCall(documentId, - attributeKey, attributeValue, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document's attribute value (asynchronously) Delete a specific document attribute - * key/value combination; the request will be ignored if there is no valid key/value combination - * found - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param attributeValue Attribute Value (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentAttributeAndValueAsync( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentAttributeAndValueValidateBeforeCall(documentId, - attributeKey, attributeValue, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentAttribute - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentAttributeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentAttributeAndValueValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentAttributeAndValue(Async)"); + } - Object localVarPostBody = null; + // verify the required parameter 'attributeKey' is set + if (attributeKey == null) { + throw new ApiException("Missing the required parameter 'attributeKey' when calling deleteDocumentAttributeAndValue(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "attributeKey" + "}", - localVarApiClient.escapeString(attributeKey.toString())); + // verify the required parameter 'attributeValue' is set + if (attributeValue == null) { + throw new ApiException("Missing the required parameter 'attributeValue' when calling deleteDocumentAttributeAndValue(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return deleteDocumentAttributeAndValueCall(documentId, attributeKey, attributeValue, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Delete document's attribute value + * Delete a specific document attribute key/value combination; the request will be ignored if there is no valid key/value combination found + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param attributeValue Attribute Value (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteDocumentAttributeAndValue(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteDocumentAttributeAndValueWithHttpInfo(documentId, attributeKey, attributeValue, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete document's attribute value + * Delete a specific document attribute key/value combination; the request will be ignored if there is no valid key/value combination found + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param attributeValue Attribute Value (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentAttributeAndValueWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentAttributeAndValueValidateBeforeCall(documentId, attributeKey, attributeValue, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentAttributeValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentAttribute(Async)"); + /** + * Delete document's attribute value (asynchronously) + * Delete a specific document attribute key/value combination; the request will be ignored if there is no valid key/value combination found + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param attributeValue Attribute Value (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentAttributeAndValueAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentAttributeAndValueValidateBeforeCall(documentId, attributeKey, attributeValue, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - // verify the required parameter 'attributeKey' is set - if (attributeKey == null) { - throw new ApiException( - "Missing the required parameter 'attributeKey' when calling getDocumentAttribute(Async)"); + /** + * Build call for getDocumentAttribute + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentAttributeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "attributeKey" + "}", localVarApiClient.escapeString(attributeKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - return getDocumentAttributeCall(documentId, attributeKey, siteId, _callback); - - } - - /** - * Get document attribute by key Get a document attribute by using its key - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @return GetDocumentAttributeResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentAttributeResponse getDocumentAttribute( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - getDocumentAttributeWithHttpInfo(documentId, attributeKey, siteId); - return localVarResp.getData(); - } - - /** - * Get document attribute by key Get a document attribute by using its key - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetDocumentAttributeResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentAttributeWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - getDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document attribute by key (asynchronously) Get a document attribute by using its key - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentAttributeAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentAttributes - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentAttributesCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentAttributeValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentAttribute(Async)"); + } - Object localVarPostBody = null; + // verify the required parameter 'attributeKey' is set + if (attributeKey == null) { + throw new ApiException("Missing the required parameter 'attributeKey' when calling getDocumentAttribute(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + return getDocumentAttributeCall(documentId, attributeKey, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Get document attribute by key + * Get a document attribute by using its key + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @return GetDocumentAttributeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentAttributeResponse getDocumentAttribute(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getDocumentAttributeWithHttpInfo(documentId, attributeKey, siteId); + return localVarResp.getData(); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Get document attribute by key + * Get a document attribute by using its key + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetDocumentAttributeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentAttributeWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get document attribute by key (asynchronously) + * Get a document attribute by using its key + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentAttributeAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocumentAttributes + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentAttributesCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentAttributesValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentAttributes(Async)"); + } + + return getDocumentAttributesCall(documentId, siteId, limit, next, _callback); + } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentAttributesValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentAttributes(Async)"); + /** + * Get document's attributes + * Get a listing of a document's attributes + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetDocumentAttributesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentAttributesResponse getDocumentAttributes(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getDocumentAttributesWithHttpInfo(documentId, siteId, limit, next); + return localVarResp.getData(); } - return getDocumentAttributesCall(documentId, siteId, limit, next, _callback); - - } - - /** - * Get document's attributes Get a listing of a document's attributes - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetDocumentAttributesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentAttributesResponse getDocumentAttributes( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - ApiResponse localVarResp = - getDocumentAttributesWithHttpInfo(documentId, siteId, limit, next); - return localVarResp.getData(); - } - - /** - * Get document's attributes Get a listing of a document's attributes - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetDocumentAttributesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentAttributesWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - okhttp3.Call localVarCall = - getDocumentAttributesValidateBeforeCall(documentId, siteId, limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document's attributes (asynchronously) Get a listing of a document's attributes - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentAttributesValidateBeforeCall(documentId, siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentAttributeValue - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param setDocumentAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentAttributeValueCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get document's attributes + * Get a listing of a document's attributes + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetDocumentAttributesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentAttributesWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getDocumentAttributesValidateBeforeCall(documentId, siteId, limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = setDocumentAttributeRequest; + /** + * Get document's attributes (asynchronously) + * Get a listing of a document's attributes + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentAttributesValidateBeforeCall(documentId, siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setDocumentAttributeValue + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param setDocumentAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentAttributeValueCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setDocumentAttributeRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "attributeKey" + "}", localVarApiClient.escapeString(attributeKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "attributeKey" + "}", - localVarApiClient.escapeString(attributeKey.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentAttributeValueValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentAttributeValue(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'attributeKey' is set + if (attributeKey == null) { + throw new ApiException("Missing the required parameter 'attributeKey' when calling setDocumentAttributeValue(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + // verify the required parameter 'setDocumentAttributeRequest' is set + if (setDocumentAttributeRequest == null) { + throw new ApiException("Missing the required parameter 'setDocumentAttributeRequest' when calling setDocumentAttributeValue(Async)"); + } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } + return setDocumentAttributeValueCall(documentId, attributeKey, setDocumentAttributeRequest, siteId, _callback); - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentAttributeValueValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentAttributeValue(Async)"); + /** + * Set document's attributes value + * Set attributes value to a document + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param setDocumentAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setDocumentAttributeValue(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setDocumentAttributeValueWithHttpInfo(documentId, attributeKey, setDocumentAttributeRequest, siteId); + return localVarResp.getData(); } - // verify the required parameter 'attributeKey' is set - if (attributeKey == null) { - throw new ApiException( - "Missing the required parameter 'attributeKey' when calling setDocumentAttributeValue(Async)"); + /** + * Set document's attributes value + * Set attributes value to a document + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param setDocumentAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setDocumentAttributeValueWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentAttributeValueValidateBeforeCall(documentId, attributeKey, setDocumentAttributeRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'setDocumentAttributeRequest' is set - if (setDocumentAttributeRequest == null) { - throw new ApiException( - "Missing the required parameter 'setDocumentAttributeRequest' when calling setDocumentAttributeValue(Async)"); + /** + * Set document's attributes value (asynchronously) + * Set attributes value to a document + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param setDocumentAttributeRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentAttributeValueAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentAttributeValueValidateBeforeCall(documentId, attributeKey, setDocumentAttributeRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return setDocumentAttributeValueCall(documentId, attributeKey, setDocumentAttributeRequest, - siteId, _callback); - - } - - /** - * Set document's attributes value Set attributes value to a document - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param setDocumentAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setDocumentAttributeValue(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setDocumentAttributeValueWithHttpInfo(documentId, - attributeKey, setDocumentAttributeRequest, siteId); - return localVarResp.getData(); - } - - /** - * Set document's attributes value Set attributes value to a document - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param setDocumentAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setDocumentAttributeValueWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentAttributeValueValidateBeforeCall(documentId, - attributeKey, setDocumentAttributeRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set document's attributes value (asynchronously) Set attributes value to a document - * - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param setDocumentAttributeRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentAttributeValueAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String attributeKey, - @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = setDocumentAttributeValueValidateBeforeCall(documentId, - attributeKey, setDocumentAttributeRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentAttributes - * - * @param documentId Document Identifier (required) - * @param setDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentAttributesCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for setDocumentAttributes + * @param documentId Document Identifier (required) + * @param setDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentAttributesCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setDocumentAttributesRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = setDocumentAttributesRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentAttributesValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentAttributes(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + // verify the required parameter 'setDocumentAttributesRequest' is set + if (setDocumentAttributesRequest == null) { + throw new ApiException("Missing the required parameter 'setDocumentAttributesRequest' when calling setDocumentAttributes(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return setDocumentAttributesCall(documentId, setDocumentAttributesRequest, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Set document's attributes + * Set multiple attributes to a document; this endpoint also accepts a different body parameter for setting a single attribute Note: - attributes in the request will overwrite existing attributes. + * @param documentId Document Identifier (required) + * @param setDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setDocumentAttributes(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setDocumentAttributesWithHttpInfo(documentId, setDocumentAttributesRequest, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Set document's attributes + * Set multiple attributes to a document; this endpoint also accepts a different body parameter for setting a single attribute Note: - attributes in the request will overwrite existing attributes. + * @param documentId Document Identifier (required) + * @param setDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setDocumentAttributesWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentAttributesValidateBeforeCall(documentId, setDocumentAttributesRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentAttributesValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentAttributes(Async)"); + /** + * Set document's attributes (asynchronously) + * Set multiple attributes to a document; this endpoint also accepts a different body parameter for setting a single attribute Note: - attributes in the request will overwrite existing attributes. + * @param documentId Document Identifier (required) + * @param setDocumentAttributesRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentAttributesValidateBeforeCall(documentId, setDocumentAttributesRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - // verify the required parameter 'setDocumentAttributesRequest' is set - if (setDocumentAttributesRequest == null) { - throw new ApiException( - "Missing the required parameter 'setDocumentAttributesRequest' when calling setDocumentAttributes(Async)"); - } - - return setDocumentAttributesCall(documentId, setDocumentAttributesRequest, siteId, _callback); - - } - - /** - * Set document's attributes Set multiple attributes to a document; this endpoint also accepts - * a different body parameter for setting a single attribute Note: - attributes in the request - * will overwrite existing attributes. - * - * @param documentId Document Identifier (required) - * @param setDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setDocumentAttributes(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - setDocumentAttributesWithHttpInfo(documentId, setDocumentAttributesRequest, siteId); - return localVarResp.getData(); - } - - /** - * Set document's attributes Set multiple attributes to a document; this endpoint also accepts - * a different body parameter for setting a single attribute Note: - attributes in the request - * will overwrite existing attributes. - * - * @param documentId Document Identifier (required) - * @param setDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setDocumentAttributesWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentAttributesValidateBeforeCall(documentId, - setDocumentAttributesRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set document's attributes (asynchronously) Set multiple attributes to a document; this - * endpoint also accepts a different body parameter for setting a single attribute Note: - - * attributes in the request will overwrite existing attributes. - * - * @param documentId Document Identifier (required) - * @param setDocumentAttributesRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = setDocumentAttributesValidateBeforeCall(documentId, - setDocumentAttributesRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/DocumentDataClassificationApi.java b/src/main/java/com/formkiq/client/api/DocumentDataClassificationApi.java index 241a6b70e..4b8e61a85 100644 --- a/src/main/java/com/formkiq/client/api/DocumentDataClassificationApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentDataClassificationApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -45,470 +38,331 @@ import java.util.Map; public class DocumentDataClassificationApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentDataClassificationApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentDataClassificationApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for getDocumentDataClassification - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentDataClassificationCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentDataClassificationApi() { + this(Configuration.getDefaultApiClient()); } - Object localVarPostBody = null; + public DocumentDataClassificationApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - // create path and map variables - String localVarPath = "/documents/{documentId}/dataClassification" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + public ApiClient getApiClient() { + return localVarApiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public int getHostIndex() { + return localHostIndex; } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Build call for getDocumentDataClassification + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentDataClassificationCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/dataClassification" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentDataClassificationValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentDataClassification(Async)"); + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentDataClassificationValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentDataClassification(Async)"); + } + + return getDocumentDataClassificationCall(documentId, siteId, limit, next, _callback); + } - return getDocumentDataClassificationCall(documentId, siteId, limit, next, _callback); - - } - - /** - * Get document's data classification Retrieve an document's data classification; - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetDocumentDataClassificationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentDataClassificationResponse getDocumentDataClassification( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - ApiResponse localVarResp = - getDocumentDataClassificationWithHttpInfo(documentId, siteId, limit, next); - return localVarResp.getData(); - } - - /** - * Get document's data classification Retrieve an document's data classification; - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetDocumentDataClassificationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentDataClassificationWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - okhttp3.Call localVarCall = - getDocumentDataClassificationValidateBeforeCall(documentId, siteId, limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document's data classification (asynchronously) Retrieve an document's data - * classification; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentDataClassificationAsync( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentDataClassificationValidateBeforeCall(documentId, siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentDataClassification - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentDataClassificationRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentDataClassificationCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get document's data classification + * Retrieve an document's data classification; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetDocumentDataClassificationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentDataClassificationResponse getDocumentDataClassification(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getDocumentDataClassificationWithHttpInfo(documentId, siteId, limit, next); + return localVarResp.getData(); } - Object localVarPostBody = setDocumentDataClassificationRequest; + /** + * Get document's data classification + * Retrieve an document's data classification; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetDocumentDataClassificationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentDataClassificationWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getDocumentDataClassificationValidateBeforeCall(documentId, siteId, limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/dataClassification" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + /** + * Get document's data classification (asynchronously) + * Retrieve an document's data classification; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentDataClassificationAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentDataClassificationValidateBeforeCall(documentId, siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setDocumentDataClassification + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentDataClassificationRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentDataClassificationCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setDocumentDataClassificationRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/dataClassification" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentDataClassificationValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentDataClassification(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return setDocumentDataClassificationCall(documentId, siteId, setDocumentDataClassificationRequest, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Set document's data classification + * Generate Data Classfication attributes within a document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentDataClassificationRequest (optional) + * @return SetDocumentDataClassificationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetDocumentDataClassificationResponse setDocumentDataClassification(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest) throws ApiException { + ApiResponse localVarResp = setDocumentDataClassificationWithHttpInfo(documentId, siteId, setDocumentDataClassificationRequest); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentDataClassificationValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentDataClassification(Async)"); + /** + * Set document's data classification + * Generate Data Classfication attributes within a document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentDataClassificationRequest (optional) + * @return ApiResponse<SetDocumentDataClassificationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setDocumentDataClassificationWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest) throws ApiException { + okhttp3.Call localVarCall = setDocumentDataClassificationValidateBeforeCall(documentId, siteId, setDocumentDataClassificationRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return setDocumentDataClassificationCall(documentId, siteId, - setDocumentDataClassificationRequest, _callback); - - } - - /** - * Set document's data classification Generate Data Classfication attributes within a - * document; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentDataClassificationRequest (optional) - * @return SetDocumentDataClassificationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetDocumentDataClassificationResponse setDocumentDataClassification( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest) - throws ApiException { - ApiResponse localVarResp = - setDocumentDataClassificationWithHttpInfo(documentId, siteId, - setDocumentDataClassificationRequest); - return localVarResp.getData(); - } - - /** - * Set document's data classification Generate Data Classfication attributes within a - * document; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentDataClassificationRequest (optional) - * @return ApiResponse<SetDocumentDataClassificationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setDocumentDataClassificationWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest) - throws ApiException { - okhttp3.Call localVarCall = setDocumentDataClassificationValidateBeforeCall(documentId, siteId, - setDocumentDataClassificationRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set document's data classification (asynchronously) Generate Data Classfication attributes - * within a document; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentDataClassificationRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentDataClassificationAsync( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentDataClassificationValidateBeforeCall(documentId, siteId, - setDocumentDataClassificationRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Set document's data classification (asynchronously) + * Generate Data Classfication attributes within a document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentDataClassificationRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentDataClassificationAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentDataClassificationValidateBeforeCall(documentId, siteId, setDocumentDataClassificationRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentFoldersApi.java b/src/main/java/com/formkiq/client/api/DocumentFoldersApi.java index 5951a0d42..d1a1fa2e4 100644 --- a/src/main/java/com/formkiq/client/api/DocumentFoldersApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentFoldersApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -49,1075 +42,761 @@ import java.util.Map; public class DocumentFoldersApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentFoldersApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentFoldersApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addFolder - * - * @param addFolderRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addFolderCall(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addFolderRequest; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - // create path and map variables - String localVarPath = "/folders"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public DocumentFoldersApi() { + this(Configuration.getDefaultApiClient()); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public DocumentFoldersApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + public ApiClient getApiClient() { + return localVarApiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public int getHostIndex() { + return localHostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addFolderValidateBeforeCall( - @javax.annotation.Nonnull AddFolderRequest addFolderRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addFolderRequest' is set - if (addFolderRequest == null) { - throw new ApiException( - "Missing the required parameter 'addFolderRequest' when calling addFolder(Async)"); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - return addFolderCall(addFolderRequest, siteId, shareKey, _callback); - - } - - /** - * Add document folder Creates a new folder - * - * @param addFolderRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return AddFolderResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddFolderResponse addFolder(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - ApiResponse localVarResp = - addFolderWithHttpInfo(addFolderRequest, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Add document folder Creates a new folder - * - * @param addFolderRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<AddFolderResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addFolderWithHttpInfo( - @javax.annotation.Nonnull AddFolderRequest addFolderRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - okhttp3.Call localVarCall = - addFolderValidateBeforeCall(addFolderRequest, siteId, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add document folder (asynchronously) Creates a new folder - * - * @param addFolderRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addFolderAsync(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - addFolderValidateBeforeCall(addFolderRequest, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteFolder - * - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteFolderCall(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - Object localVarPostBody = null; + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } - // create path and map variables - String localVarPath = "/folders/{indexKey}".replace("{" + "indexKey" + "}", - localVarApiClient.escapeString(indexKey.toString())); + /** + * Build call for addFolder + * @param addFolderRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addFolderCall(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addFolderRequest; + + // create path and map variables + String localVarPath = "/folders"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + @SuppressWarnings("rawtypes") + private okhttp3.Call addFolderValidateBeforeCall(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addFolderRequest' is set + if (addFolderRequest == null) { + throw new ApiException("Missing the required parameter 'addFolderRequest' when calling addFolder(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return addFolderCall(addFolderRequest, siteId, shareKey, _callback); - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add document folder + * Creates a new folder + * @param addFolderRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return AddFolderResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddFolderResponse addFolder(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = addFolderWithHttpInfo(addFolderRequest, siteId, shareKey); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add document folder + * Creates a new folder + * @param addFolderRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<AddFolderResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addFolderWithHttpInfo(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = addFolderValidateBeforeCall(addFolderRequest, siteId, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteFolderValidateBeforeCall(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexKey' is set - if (indexKey == null) { - throw new ApiException( - "Missing the required parameter 'indexKey' when calling deleteFolder(Async)"); + /** + * Add document folder (asynchronously) + * Creates a new folder + * @param addFolderRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addFolderAsync(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addFolderValidateBeforeCall(addFolderRequest, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return deleteFolderCall(indexKey, siteId, shareKey, _callback); - - } - - /** - * Delete document folder Delete a specific folder; folder must be empty - * - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return DeleteFolderResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteFolderResponse deleteFolder(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - ApiResponse localVarResp = - deleteFolderWithHttpInfo(indexKey, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Delete document folder Delete a specific folder; folder must be empty - * - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<DeleteFolderResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteFolderWithHttpInfo( - @javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = deleteFolderValidateBeforeCall(indexKey, siteId, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document folder (asynchronously) Delete a specific folder; folder must be empty - * - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteFolderAsync(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteFolderValidateBeforeCall(indexKey, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getFolderDocuments - * - * @param siteId Site Identifier (optional) - * @param indexKey Index Key Identifier (optional) - * @param path Path query parameter (must be URL Encoded) (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getFolderDocumentsCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteFolder + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteFolderCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/folders/{indexKey}" + .replace("{" + "indexKey" + "}", localVarApiClient.escapeString(indexKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteFolderValidateBeforeCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexKey' is set + if (indexKey == null) { + throw new ApiException("Missing the required parameter 'indexKey' when calling deleteFolder(Async)"); + } - // create path and map variables - String localVarPath = "/folders"; + return deleteFolderCall(indexKey, siteId, shareKey, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (indexKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexKey", indexKey)); + /** + * Delete document folder + * Delete a specific folder; folder must be empty + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return DeleteFolderResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteFolderResponse deleteFolder(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = deleteFolderWithHttpInfo(indexKey, siteId, shareKey); + return localVarResp.getData(); } - if (path != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + /** + * Delete document folder + * Delete a specific folder; folder must be empty + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<DeleteFolderResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteFolderWithHttpInfo(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = deleteFolderValidateBeforeCall(indexKey, siteId, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Delete document folder (asynchronously) + * Delete a specific folder; folder must be empty + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteFolderAsync(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteFolderValidateBeforeCall(indexKey, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + /** + * Build call for getFolderDocuments + * @param siteId Site Identifier (optional) + * @param indexKey Index Key Identifier (optional) + * @param path Path query parameter (must be URL Encoded) (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getFolderDocumentsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/folders"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (indexKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexKey", indexKey)); + } + + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call getFolderDocumentsValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + return getFolderDocumentsCall(siteId, indexKey, path, limit, shareKey, next, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get document folders + * Get list of documents in a folder + * @param siteId Site Identifier (optional) + * @param indexKey Index Key Identifier (optional) + * @param path Path query parameter (must be URL Encoded) (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return GetFoldersResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetFoldersResponse getFolderDocuments(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getFolderDocumentsWithHttpInfo(siteId, indexKey, path, limit, shareKey, next); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getFolderDocumentsValidateBeforeCall( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, - @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - return getFolderDocumentsCall(siteId, indexKey, path, limit, shareKey, next, _callback); - - } - - /** - * Get document folders Get list of documents in a folder - * - * @param siteId Site Identifier (optional) - * @param indexKey Index Key Identifier (optional) - * @param path Path query parameter (must be URL Encoded) (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return GetFoldersResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetFoldersResponse getFolderDocuments(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = - getFolderDocumentsWithHttpInfo(siteId, indexKey, path, limit, shareKey, next); - return localVarResp.getData(); - } - - /** - * Get document folders Get list of documents in a folder - * - * @param siteId Site Identifier (optional) - * @param indexKey Index Key Identifier (optional) - * @param path Path query parameter (must be URL Encoded) (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return ApiResponse<GetFoldersResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getFolderDocumentsWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, - @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) - throws ApiException { - okhttp3.Call localVarCall = - getFolderDocumentsValidateBeforeCall(siteId, indexKey, path, limit, shareKey, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document folders (asynchronously) Get list of documents in a folder - * - * @param siteId Site Identifier (optional) - * @param indexKey Index Key Identifier (optional) - * @param path Path query parameter (must be URL Encoded) (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getFolderDocumentsAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable String next, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getFolderDocumentsValidateBeforeCall(siteId, indexKey, path, limit, - shareKey, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getFolderPermissions - * - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getFolderPermissionsCall(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get document folders + * Get list of documents in a folder + * @param siteId Site Identifier (optional) + * @param indexKey Index Key Identifier (optional) + * @param path Path query parameter (must be URL Encoded) (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return ApiResponse<GetFoldersResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getFolderDocumentsWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getFolderDocumentsValidateBeforeCall(siteId, indexKey, path, limit, shareKey, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = null; + /** + * Get document folders (asynchronously) + * Get list of documents in a folder + * @param siteId Site Identifier (optional) + * @param indexKey Index Key Identifier (optional) + * @param path Path query parameter (must be URL Encoded) (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getFolderDocumentsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFolderDocumentsValidateBeforeCall(siteId, indexKey, path, limit, shareKey, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getFolderPermissions + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getFolderPermissionsCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/folders/{indexKey}/permissions" + .replace("{" + "indexKey" + "}", localVarApiClient.escapeString(indexKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/folders/{indexKey}/permissions".replace("{" + "indexKey" + "}", - localVarApiClient.escapeString(indexKey.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call getFolderPermissionsValidateBeforeCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexKey' is set + if (indexKey == null) { + throw new ApiException("Missing the required parameter 'indexKey' when calling getFolderPermissions(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return getFolderPermissionsCall(indexKey, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get folder permissions + * Get list of permissions for a folder + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetFolderPermissionsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetFolderPermissionsResponse getFolderPermissions(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getFolderPermissionsWithHttpInfo(indexKey, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get folder permissions + * Get list of permissions for a folder + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetFolderPermissionsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getFolderPermissionsWithHttpInfo(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getFolderPermissionsValidateBeforeCall(indexKey, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getFolderPermissionsValidateBeforeCall( - @javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexKey' is set - if (indexKey == null) { - throw new ApiException( - "Missing the required parameter 'indexKey' when calling getFolderPermissions(Async)"); + /** + * Get folder permissions (asynchronously) + * Get list of permissions for a folder + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getFolderPermissionsAsync(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFolderPermissionsValidateBeforeCall(indexKey, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return getFolderPermissionsCall(indexKey, siteId, _callback); - - } - - /** - * Get folder permissions Get list of permissions for a folder - * - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetFolderPermissionsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetFolderPermissionsResponse getFolderPermissions( - @javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - getFolderPermissionsWithHttpInfo(indexKey, siteId); - return localVarResp.getData(); - } - - /** - * Get folder permissions Get list of permissions for a folder - * - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetFolderPermissionsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getFolderPermissionsWithHttpInfo( - @javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getFolderPermissionsValidateBeforeCall(indexKey, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get folder permissions (asynchronously) Get list of permissions for a folder - * - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getFolderPermissionsAsync(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getFolderPermissionsValidateBeforeCall(indexKey, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setFolderPermissions - * - * @param setFolderPermissionsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setFolderPermissionsCall( - @javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for setFolderPermissions + * @param setFolderPermissionsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setFolderPermissionsCall(@javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setFolderPermissionsRequest; + + // create path and map variables + String localVarPath = "/folders/permissions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = setFolderPermissionsRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call setFolderPermissionsValidateBeforeCall(@javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'setFolderPermissionsRequest' is set + if (setFolderPermissionsRequest == null) { + throw new ApiException("Missing the required parameter 'setFolderPermissionsRequest' when calling setFolderPermissions(Async)"); + } - // create path and map variables - String localVarPath = "/folders/permissions"; + return setFolderPermissionsCall(setFolderPermissionsRequest, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Sets Folder Permissions + * Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. + * @param setFolderPermissionsRequest (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setFolderPermissions(@javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setFolderPermissionsWithHttpInfo(setFolderPermissionsRequest, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Sets Folder Permissions + * Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. + * @param setFolderPermissionsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setFolderPermissionsWithHttpInfo(@javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setFolderPermissionsValidateBeforeCall(setFolderPermissionsRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setFolderPermissionsValidateBeforeCall( - @javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'setFolderPermissionsRequest' is set - if (setFolderPermissionsRequest == null) { - throw new ApiException( - "Missing the required parameter 'setFolderPermissionsRequest' when calling setFolderPermissions(Async)"); + /** + * Sets Folder Permissions (asynchronously) + * Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. + * @param setFolderPermissionsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setFolderPermissionsAsync(@javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setFolderPermissionsValidateBeforeCall(setFolderPermissionsRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return setFolderPermissionsCall(setFolderPermissionsRequest, siteId, _callback); - - } - - /** - * Sets Folder Permissions Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. - * - * @param setFolderPermissionsRequest (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setFolderPermissions( - @javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - setFolderPermissionsWithHttpInfo(setFolderPermissionsRequest, siteId); - return localVarResp.getData(); - } - - /** - * Sets Folder Permissions Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. - * - * @param setFolderPermissionsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setFolderPermissionsWithHttpInfo( - @javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - setFolderPermissionsValidateBeforeCall(setFolderPermissionsRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Sets Folder Permissions (asynchronously) Sets a folders permissions NOTE: Can only be called be - * ADMIN or GOVERN. - * - * @param setFolderPermissionsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setFolderPermissionsAsync( - @javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - setFolderPermissionsValidateBeforeCall(setFolderPermissionsRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/DocumentGenerationApi.java b/src/main/java/com/formkiq/client/api/DocumentGenerationApi.java index 2c0405536..1dc414206 100644 --- a/src/main/java/com/formkiq/client/api/DocumentGenerationApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentGenerationApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -45,285 +38,189 @@ import java.util.Map; public class DocumentGenerationApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentGenerationApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentGenerationApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocumentGenerate - * - * @param documentId Document Identifier (required) - * @param addDocumentGenerateRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocumentGenerateCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentGenerationApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentGenerationApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - Object localVarPostBody = addDocumentGenerateRequest; + public int getHostIndex() { + return localHostIndex; + } - // create path and map variables - String localVarPath = "/documents/{documentId}/generate".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Build call for addDocumentGenerate + * @param documentId Document Identifier (required) + * @param addDocumentGenerateRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocumentGenerateCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentGenerateRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/generate" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentGenerateValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentGenerate(Async)"); + } + + // verify the required parameter 'addDocumentGenerateRequest' is set + if (addDocumentGenerateRequest == null) { + throw new ApiException("Missing the required parameter 'addDocumentGenerateRequest' when calling addDocumentGenerate(Async)"); + } + + return addDocumentGenerateCall(documentId, addDocumentGenerateRequest, siteId, _callback); + } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentGenerateValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocumentGenerate(Async)"); + /** + * Add Document Generate + * Generates a new document using a specified template file and data sources. This operation allows users to merge data from multiple documents into a template to create a new document in the desired output format (e.g., DOCX). By Default data source must include a `data` object, which contains key-value pairs that will be merged into the template. The value can be any valid JSON object. { \"data\":{}}. The data path can be adjusted via the \"dataRoot\" field. ; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addDocumentGenerateRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocumentGenerateResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddDocumentGenerateResponse addDocumentGenerate(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addDocumentGenerateWithHttpInfo(documentId, addDocumentGenerateRequest, siteId); + return localVarResp.getData(); } - // verify the required parameter 'addDocumentGenerateRequest' is set - if (addDocumentGenerateRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocumentGenerateRequest' when calling addDocumentGenerate(Async)"); + /** + * Add Document Generate + * Generates a new document using a specified template file and data sources. This operation allows users to merge data from multiple documents into a template to create a new document in the desired output format (e.g., DOCX). By Default data source must include a `data` object, which contains key-value pairs that will be merged into the template. The value can be any valid JSON object. { \"data\":{}}. The data path can be adjusted via the \"dataRoot\" field. ; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addDocumentGenerateRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocumentGenerateResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addDocumentGenerateWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocumentGenerateValidateBeforeCall(documentId, addDocumentGenerateRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return addDocumentGenerateCall(documentId, addDocumentGenerateRequest, siteId, _callback); - - } - - /** - * Add Document Generate Generates a new document using a specified template file and data - * sources. This operation allows users to merge data from multiple documents into a template to - * create a new document in the desired output format (e.g., DOCX). By Default data source must - * include a `data` object, which contains key-value pairs that will be merged into the - * template. The value can be any valid JSON object. { \"data\":{}}. The data path can - * be adjusted via the \"dataRoot\" field. ; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param addDocumentGenerateRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocumentGenerateResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddDocumentGenerateResponse addDocumentGenerate( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addDocumentGenerateWithHttpInfo(documentId, addDocumentGenerateRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add Document Generate Generates a new document using a specified template file and data - * sources. This operation allows users to merge data from multiple documents into a template to - * create a new document in the desired output format (e.g., DOCX). By Default data source must - * include a `data` object, which contains key-value pairs that will be merged into the - * template. The value can be any valid JSON object. { \"data\":{}}. The data path can - * be adjusted via the \"dataRoot\" field. ; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param addDocumentGenerateRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocumentGenerateResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addDocumentGenerateWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - addDocumentGenerateValidateBeforeCall(documentId, addDocumentGenerateRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Document Generate (asynchronously) Generates a new document using a specified template file - * and data sources. This operation allows users to merge data from multiple documents into a - * template to create a new document in the desired output format (e.g., DOCX). By Default data - * source must include a `data` object, which contains key-value pairs that will be - * merged into the template. The value can be any valid JSON object. { \"data\":{}}. The - * data path can be adjusted via the \"dataRoot\" field. ; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param addDocumentGenerateRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocumentGenerateAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentGenerateValidateBeforeCall(documentId, - addDocumentGenerateRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Add Document Generate (asynchronously) + * Generates a new document using a specified template file and data sources. This operation allows users to merge data from multiple documents into a template to create a new document in the desired output format (e.g., DOCX). By Default data source must include a `data` object, which contains key-value pairs that will be merged into the template. The value can be any valid JSON object. { \"data\":{}}. The data path can be adjusted via the \"dataRoot\" field. ; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addDocumentGenerateRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocumentGenerateAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentGenerateValidateBeforeCall(documentId, addDocumentGenerateRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentOcrApi.java b/src/main/java/com/formkiq/client/api/DocumentOcrApi.java index 27b2edb7d..5904d29b8 100644 --- a/src/main/java/com/formkiq/client/api/DocumentOcrApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentOcrApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -47,908 +40,622 @@ import java.util.Map; public class DocumentOcrApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentOcrApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentOcrApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocumentOcr - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentOcrRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentOcrCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - Object localVarPostBody = addDocumentOcrRequest; + public DocumentOcrApi() { + this(Configuration.getDefaultApiClient()); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/ocr".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + public DocumentOcrApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public ApiClient getApiClient() { + return localVarApiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocumentOcr(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - return addDocumentOcrCall(documentId, siteId, addDocumentOcrRequest, _callback); - - } - - /** - * Perform document ocr Document optical character recognition (OCR) request; extract text and - * data from a document; Tesseract available for all editions, but Textract engine and tables and - * forms options available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentOcrRequest (optional) - * @return AddDocumentOcrResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddDocumentOcrResponse addDocumentOcr(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest) throws ApiException { - ApiResponse localVarResp = - addDocumentOcrWithHttpInfo(documentId, siteId, addDocumentOcrRequest); - return localVarResp.getData(); - } - - /** - * Perform document ocr Document optical character recognition (OCR) request; extract text and - * data from a document; Tesseract available for all editions, but Textract engine and tables and - * forms options available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentOcrRequest (optional) - * @return ApiResponse<AddDocumentOcrResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addDocumentOcrWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest) throws ApiException { - okhttp3.Call localVarCall = - addDocumentOcrValidateBeforeCall(documentId, siteId, addDocumentOcrRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Perform document ocr (asynchronously) Document optical character recognition (OCR) request; - * extract text and data from a document; Tesseract available for all editions, but Textract - * engine and tables and forms options available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentOcrRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentOcrAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - addDocumentOcrValidateBeforeCall(documentId, siteId, addDocumentOcrRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteDocumentOcr - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentOcrCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - Object localVarPostBody = null; + /** + * Build call for addDocumentOcr + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentOcrRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentOcrCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentOcrRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/ocr" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/ocr".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentOcr(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addDocumentOcrCall(documentId, siteId, addDocumentOcrRequest, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Perform document ocr + * Document optical character recognition (OCR) request; extract text and data from a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentOcrRequest (optional) + * @return AddDocumentOcrResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddDocumentOcrResponse addDocumentOcr(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest) throws ApiException { + ApiResponse localVarResp = addDocumentOcrWithHttpInfo(documentId, siteId, addDocumentOcrRequest); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Perform document ocr + * Document optical character recognition (OCR) request; extract text and data from a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentOcrRequest (optional) + * @return ApiResponse<AddDocumentOcrResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addDocumentOcrWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest) throws ApiException { + okhttp3.Call localVarCall = addDocumentOcrValidateBeforeCall(documentId, siteId, addDocumentOcrRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentOcrValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocumentOcr(Async)"); + /** + * Perform document ocr (asynchronously) + * Document optical character recognition (OCR) request; extract text and data from a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentOcrRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentOcrAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentOcrValidateBeforeCall(documentId, siteId, addDocumentOcrRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return deleteDocumentOcrCall(documentId, siteId, _callback); - - } - - /** - * Delete document ocr Delete a document's optical character recognition (OCR) result, if - * exists; Tesseract available for all editions, but Textract engine and tables and forms options - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteDocumentOcr(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteDocumentOcrWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete document ocr Delete a document's optical character recognition (OCR) result, if - * exists; Tesseract available for all editions, but Textract engine and tables and forms options - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentOcrWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteDocumentOcrValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document ocr (asynchronously) Delete a document's optical character recognition - * (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables - * and forms options available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentOcrAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentOcrValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentOcr - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param outputType Output Format Type (optional) - * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' - * (deprecated) (optional) - * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting - * parameter to 'true' converts JSON to Text (deprecated) (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentOcrCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, - @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteDocumentOcr + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentOcrCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/ocr" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/ocr".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentOcr(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return deleteDocumentOcrCall(documentId, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (outputType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("outputType", outputType)); + /** + * Delete document ocr + * Delete a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteDocumentOcr(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteDocumentOcrWithHttpInfo(documentId, siteId); + return localVarResp.getData(); } - if (contentUrl != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentUrl", contentUrl)); + /** + * Delete document ocr + * Delete a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentOcrWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentOcrValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (text != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("text", text)); + /** + * Delete document ocr (asynchronously) + * Delete a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentOcrAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentOcrValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + /** + * Build call for getDocumentOcr + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param outputType Output Format Type (optional) + * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' (deprecated) (optional) + * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting parameter to 'true' converts JSON to Text (deprecated) (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentOcrCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/ocr" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (outputType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("outputType", outputType)); + } + + if (contentUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentUrl", contentUrl)); + } + + if (text != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("text", text)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentOcr(Async)"); + } + + return getDocumentOcrCall(documentId, siteId, outputType, contentUrl, text, shareKey, _callback); - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, - @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentOcr(Async)"); + /** + * Get document ocr content + * Get a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param outputType Output Format Type (optional) + * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' (deprecated) (optional) + * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting parameter to 'true' converts JSON to Text (deprecated) (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentOcrResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentOcrResponse getDocumentOcr(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = getDocumentOcrWithHttpInfo(documentId, siteId, outputType, contentUrl, text, shareKey); + return localVarResp.getData(); } - return getDocumentOcrCall(documentId, siteId, outputType, contentUrl, text, shareKey, - _callback); - - } - - /** - * Get document ocr content Get a document's optical character recognition (OCR) result, if - * exists; Tesseract available for all editions, but Textract engine and tables and forms options - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param outputType Output Format Type (optional) - * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' - * (deprecated) (optional) - * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting - * parameter to 'true' converts JSON to Text (deprecated) (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentOcrResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentOcrResponse getDocumentOcr(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, - @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, - @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = - getDocumentOcrWithHttpInfo(documentId, siteId, outputType, contentUrl, text, shareKey); - return localVarResp.getData(); - } - - /** - * Get document ocr content Get a document's optical character recognition (OCR) result, if - * exists; Tesseract available for all editions, but Textract engine and tables and forms options - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param outputType Output Format Type (optional) - * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' - * (deprecated) (optional) - * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting - * parameter to 'true' converts JSON to Text (deprecated) (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentOcrResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentOcrWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, - @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey) - throws ApiException { - okhttp3.Call localVarCall = getDocumentOcrValidateBeforeCall(documentId, siteId, outputType, - contentUrl, text, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document ocr content (asynchronously) Get a document's optical character recognition - * (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables - * and forms options available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param outputType Output Format Type (optional) - * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' - * (deprecated) (optional) - * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting - * parameter to 'true' converts JSON to Text (deprecated) (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentOcrAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, - @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, - @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentOcrValidateBeforeCall(documentId, siteId, outputType, - contentUrl, text, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentOcr - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentOcrRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentOcrCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get document ocr content + * Get a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param outputType Output Format Type (optional) + * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' (deprecated) (optional) + * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting parameter to 'true' converts JSON to Text (deprecated) (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentOcrResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentOcrWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentOcrValidateBeforeCall(documentId, siteId, outputType, contentUrl, text, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = setDocumentOcrRequest; + /** + * Get document ocr content (asynchronously) + * Get a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param outputType Output Format Type (optional) + * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' (deprecated) (optional) + * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting parameter to 'true' converts JSON to Text (deprecated) (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentOcrAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentOcrValidateBeforeCall(documentId, siteId, outputType, contentUrl, text, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setDocumentOcr + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentOcrRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentOcrCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setDocumentOcrRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/ocr" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/ocr".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentOcr(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return setDocumentOcrCall(documentId, siteId, setDocumentOcrRequest, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Set document ocr result + * Set a document's optical character recognition (OCR) result for a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentOcrRequest (optional) + * @return AddDocumentOcrResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddDocumentOcrResponse setDocumentOcr(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest) throws ApiException { + ApiResponse localVarResp = setDocumentOcrWithHttpInfo(documentId, siteId, setDocumentOcrRequest); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Set document ocr result + * Set a document's optical character recognition (OCR) result for a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentOcrRequest (optional) + * @return ApiResponse<AddDocumentOcrResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setDocumentOcrWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest) throws ApiException { + okhttp3.Call localVarCall = setDocumentOcrValidateBeforeCall(documentId, siteId, setDocumentOcrRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentOcr(Async)"); + /** + * Set document ocr result (asynchronously) + * Set a document's optical character recognition (OCR) result for a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentOcrRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentOcrAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentOcrValidateBeforeCall(documentId, siteId, setDocumentOcrRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return setDocumentOcrCall(documentId, siteId, setDocumentOcrRequest, _callback); - - } - - /** - * Set document ocr result Set a document's optical character recognition (OCR) result for a - * document; Tesseract available for all editions, but Textract engine and tables and forms - * options available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentOcrRequest (optional) - * @return AddDocumentOcrResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddDocumentOcrResponse setDocumentOcr(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest) throws ApiException { - ApiResponse localVarResp = - setDocumentOcrWithHttpInfo(documentId, siteId, setDocumentOcrRequest); - return localVarResp.getData(); - } - - /** - * Set document ocr result Set a document's optical character recognition (OCR) result for a - * document; Tesseract available for all editions, but Textract engine and tables and forms - * options available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentOcrRequest (optional) - * @return ApiResponse<AddDocumentOcrResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setDocumentOcrWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest) throws ApiException { - okhttp3.Call localVarCall = - setDocumentOcrValidateBeforeCall(documentId, siteId, setDocumentOcrRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set document ocr result (asynchronously) Set a document's optical character recognition - * (OCR) result for a document; Tesseract available for all editions, but Textract engine and - * tables and forms options available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentOcrRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentOcrAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - setDocumentOcrValidateBeforeCall(documentId, siteId, setDocumentOcrRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/DocumentSearchApi.java b/src/main/java/com/formkiq/client/api/DocumentSearchApi.java index cfee80191..d2aee91f6 100644 --- a/src/main/java/com/formkiq/client/api/DocumentSearchApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentSearchApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -44,291 +37,199 @@ import java.util.Map; public class DocumentSearchApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentSearchApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentSearchApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for documentSearch - * - * @param documentSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call documentSearchCall( - @javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentSearchApi() { + this(Configuration.getDefaultApiClient()); } - Object localVarPostBody = documentSearchRequest; + public DocumentSearchApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - // create path and map variables - String localVarPath = "/search"; + public ApiClient getApiClient() { + return localVarApiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public int getHostIndex() { + return localHostIndex; } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - if (previous != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Build call for documentSearch + * @param documentSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call documentSearchCall(@javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = documentSearchRequest; + + // create path and map variables + String localVarPath = "/search"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + @SuppressWarnings("rawtypes") + private okhttp3.Call documentSearchValidateBeforeCall(@javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentSearchRequest' is set + if (documentSearchRequest == null) { + throw new ApiException("Missing the required parameter 'documentSearchRequest' when calling documentSearch(Async)"); + } + + return documentSearchCall(documentSearchRequest, siteId, limit, next, previous, _callback); + + } + + /** + * Document search + * Document search query request; Supports searching DynamoDB for document(s) by a single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" matched. Search can be filtered to only check certain documentIds (up to 100 documentIds accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. If Typesense is enabled, full text search is supported through the \"text\" parameter. Full text search will look for the text in the \"content\" and/or document \"metadata\". DocumentIds parameter allows you to filter your results to a specific set of documents. See requestBody examples below for commmon examples. + * @param documentSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return DocumentSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DocumentSearchResponse documentSearch(@javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { + ApiResponse localVarResp = documentSearchWithHttpInfo(documentSearchRequest, siteId, limit, next, previous); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call documentSearchValidateBeforeCall( - @javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentSearchRequest' is set - if (documentSearchRequest == null) { - throw new ApiException( - "Missing the required parameter 'documentSearchRequest' when calling documentSearch(Async)"); + /** + * Document search + * Document search query request; Supports searching DynamoDB for document(s) by a single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" matched. Search can be filtered to only check certain documentIds (up to 100 documentIds accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. If Typesense is enabled, full text search is supported through the \"text\" parameter. Full text search will look for the text in the \"content\" and/or document \"metadata\". DocumentIds parameter allows you to filter your results to a specific set of documents. See requestBody examples below for commmon examples. + * @param documentSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return ApiResponse<DocumentSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse documentSearchWithHttpInfo(@javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { + okhttp3.Call localVarCall = documentSearchValidateBeforeCall(documentSearchRequest, siteId, limit, next, previous, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return documentSearchCall(documentSearchRequest, siteId, limit, next, previous, _callback); - - } - - /** - * Document search Document search query request; Supports searching DynamoDB for document(s) by a - * single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" - * matched. Search can be filtered to only check certain documentIds (up to 100 documentIds - * accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. - * If Typesense is enabled, full text search is supported through the \"text\" - * parameter. Full text search will look for the text in the \"content\" and/or document - * \"metadata\". DocumentIds parameter allows you to filter your results to a specific - * set of documents. See requestBody examples below for commmon examples. - * - * @param documentSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return DocumentSearchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DocumentSearchResponse documentSearch( - @javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) - throws ApiException { - ApiResponse localVarResp = - documentSearchWithHttpInfo(documentSearchRequest, siteId, limit, next, previous); - return localVarResp.getData(); - } - - /** - * Document search Document search query request; Supports searching DynamoDB for document(s) by a - * single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" - * matched. Search can be filtered to only check certain documentIds (up to 100 documentIds - * accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. - * If Typesense is enabled, full text search is supported through the \"text\" - * parameter. Full text search will look for the text in the \"content\" and/or document - * \"metadata\". DocumentIds parameter allows you to filter your results to a specific - * set of documents. See requestBody examples below for commmon examples. - * - * @param documentSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return ApiResponse<DocumentSearchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse documentSearchWithHttpInfo( - @javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) - throws ApiException { - okhttp3.Call localVarCall = documentSearchValidateBeforeCall(documentSearchRequest, siteId, - limit, next, previous, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Document search (asynchronously) Document search query request; Supports searching DynamoDB for - * document(s) by a single TAG key and/or value. Value can be \"exacted\" or - * \"begins_with\" matched. Search can be filtered to only check certain documentIds (up - * to 100 documentIds accepted). If using Enteprise Composite Keys feature then multiple tag(s) - * can be searched for. If Typesense is enabled, full text search is supported through the - * \"text\" parameter. Full text search will look for the text in the - * \"content\" and/or document \"metadata\". DocumentIds parameter allows you - * to filter your results to a specific set of documents. See requestBody examples below for - * commmon examples. - * - * @param documentSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call documentSearchAsync( - @javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = documentSearchValidateBeforeCall(documentSearchRequest, siteId, - limit, next, previous, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Document search (asynchronously) + * Document search query request; Supports searching DynamoDB for document(s) by a single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" matched. Search can be filtered to only check certain documentIds (up to 100 documentIds accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. If Typesense is enabled, full text search is supported through the \"text\" parameter. Full text search will look for the text in the \"content\" and/or document \"metadata\". DocumentIds parameter allows you to filter your results to a specific set of documents. See requestBody examples below for commmon examples. + * @param documentSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call documentSearchAsync(@javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = documentSearchValidateBeforeCall(documentSearchRequest, siteId, limit, next, previous, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentSharesApi.java b/src/main/java/com/formkiq/client/api/DocumentSharesApi.java index 9a51056d1..56b115637 100644 --- a/src/main/java/com/formkiq/client/api/DocumentSharesApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentSharesApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -47,652 +40,457 @@ import java.util.Map; public class DocumentSharesApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentSharesApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentSharesApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addFolderShare - * - * @param indexKey Index Key Identifier (required) - * @param addFolderShareRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addFolderShareCall(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - Object localVarPostBody = addFolderShareRequest; + public DocumentSharesApi() { + this(Configuration.getDefaultApiClient()); + } - // create path and map variables - String localVarPath = "/shares/folders/{indexKey}".replace("{" + "indexKey" + "}", - localVarApiClient.escapeString(indexKey.toString())); + public DocumentSharesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public ApiClient getApiClient() { + return localVarApiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addFolderShareValidateBeforeCall(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexKey' is set - if (indexKey == null) { - throw new ApiException( - "Missing the required parameter 'indexKey' when calling addFolderShare(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - // verify the required parameter 'addFolderShareRequest' is set - if (addFolderShareRequest == null) { - throw new ApiException( - "Missing the required parameter 'addFolderShareRequest' when calling addFolderShare(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - return addFolderShareCall(indexKey, addFolderShareRequest, siteId, _callback); - - } - - /** - * Add folder share Creates a new folder share; available as an Add-On Module - * - * @param indexKey Index Key Identifier (required) - * @param addFolderShareRequest (required) - * @param siteId Site Identifier (optional) - * @return AddFolderShareResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddFolderShareResponse addFolderShare(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addFolderShareWithHttpInfo(indexKey, addFolderShareRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add folder share Creates a new folder share; available as an Add-On Module - * - * @param indexKey Index Key Identifier (required) - * @param addFolderShareRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddFolderShareResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addFolderShareWithHttpInfo( - @javax.annotation.Nonnull String indexKey, - @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - addFolderShareValidateBeforeCall(indexKey, addFolderShareRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add folder share (asynchronously) Creates a new folder share; available as an Add-On Module - * - * @param indexKey Index Key Identifier (required) - * @param addFolderShareRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addFolderShareAsync(@javax.annotation.Nonnull String indexKey, - @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addFolderShareValidateBeforeCall(indexKey, addFolderShareRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteShare - * - * @param shareKey Share Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteShareCall(@javax.annotation.Nonnull String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addFolderShare + * @param indexKey Index Key Identifier (required) + * @param addFolderShareRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addFolderShareCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addFolderShareRequest; + + // create path and map variables + String localVarPath = "/shares/folders/{indexKey}" + .replace("{" + "indexKey" + "}", localVarApiClient.escapeString(indexKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call addFolderShareValidateBeforeCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexKey' is set + if (indexKey == null) { + throw new ApiException("Missing the required parameter 'indexKey' when calling addFolderShare(Async)"); + } - // create path and map variables - String localVarPath = "/shares/{shareKey}".replace("{" + "shareKey" + "}", - localVarApiClient.escapeString(shareKey.toString())); + // verify the required parameter 'addFolderShareRequest' is set + if (addFolderShareRequest == null) { + throw new ApiException("Missing the required parameter 'addFolderShareRequest' when calling addFolderShare(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addFolderShareCall(indexKey, addFolderShareRequest, siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add folder share + * Creates a new folder share; available as an Add-On Module + * @param indexKey Index Key Identifier (required) + * @param addFolderShareRequest (required) + * @param siteId Site Identifier (optional) + * @return AddFolderShareResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddFolderShareResponse addFolderShare(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addFolderShareWithHttpInfo(indexKey, addFolderShareRequest, siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteShareValidateBeforeCall(@javax.annotation.Nonnull String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'shareKey' is set - if (shareKey == null) { - throw new ApiException( - "Missing the required parameter 'shareKey' when calling deleteShare(Async)"); + /** + * Add folder share + * Creates a new folder share; available as an Add-On Module + * @param indexKey Index Key Identifier (required) + * @param addFolderShareRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddFolderShareResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addFolderShareWithHttpInfo(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addFolderShareValidateBeforeCall(indexKey, addFolderShareRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return deleteShareCall(shareKey, _callback); - - } - - /** - * Delete folder share Delete a specific document share; available as an Add-On Module - * - * @param shareKey Share Identifier (required) - * @return DeleteShareResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteShareResponse deleteShare(@javax.annotation.Nonnull String shareKey) - throws ApiException { - ApiResponse localVarResp = deleteShareWithHttpInfo(shareKey); - return localVarResp.getData(); - } - - /** - * Delete folder share Delete a specific document share; available as an Add-On Module - * - * @param shareKey Share Identifier (required) - * @return ApiResponse<DeleteShareResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteShareWithHttpInfo( - @javax.annotation.Nonnull String shareKey) throws ApiException { - okhttp3.Call localVarCall = deleteShareValidateBeforeCall(shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete folder share (asynchronously) Delete a specific document share; available as an Add-On - * Module - * - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteShareAsync(@javax.annotation.Nonnull String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteShareValidateBeforeCall(shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getUserShares - * - * @param group Group Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getUserSharesCall(@javax.annotation.Nullable String group, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Add folder share (asynchronously) + * Creates a new folder share; available as an Add-On Module + * @param indexKey Index Key Identifier (required) + * @param addFolderShareRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addFolderShareAsync(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addFolderShareValidateBeforeCall(indexKey, addFolderShareRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteShare + * @param shareKey Share Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteShareCall(@javax.annotation.Nonnull String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/shares/{shareKey}" + .replace("{" + "shareKey" + "}", localVarApiClient.escapeString(shareKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteShareValidateBeforeCall(@javax.annotation.Nonnull String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'shareKey' is set + if (shareKey == null) { + throw new ApiException("Missing the required parameter 'shareKey' when calling deleteShare(Async)"); + } - // create path and map variables - String localVarPath = "/shares"; + return deleteShareCall(shareKey, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + } - if (group != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("group", group)); + /** + * Delete folder share + * Delete a specific document share; available as an Add-On Module + * @param shareKey Share Identifier (required) + * @return DeleteShareResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteShareResponse deleteShare(@javax.annotation.Nonnull String shareKey) throws ApiException { + ApiResponse localVarResp = deleteShareWithHttpInfo(shareKey); + return localVarResp.getData(); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Delete folder share + * Delete a specific document share; available as an Add-On Module + * @param shareKey Share Identifier (required) + * @return ApiResponse<DeleteShareResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteShareWithHttpInfo(@javax.annotation.Nonnull String shareKey) throws ApiException { + okhttp3.Call localVarCall = deleteShareValidateBeforeCall(shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Delete folder share (asynchronously) + * Delete a specific document share; available as an Add-On Module + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteShareAsync(@javax.annotation.Nonnull String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteShareValidateBeforeCall(shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } + /** + * Build call for getUserShares + * @param group Group Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getUserSharesCall(@javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/shares"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (group != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("group", group)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserSharesValidateBeforeCall(@javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + return getUserSharesCall(group, limit, next, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get user shared folders + * Get a listing of user folder/document shares; available as an Add-On Module + * @param group Group Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetUserSharesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetUserSharesResponse getUserShares(@javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getUserSharesWithHttpInfo(group, limit, next); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getUserSharesValidateBeforeCall(@javax.annotation.Nullable String group, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - return getUserSharesCall(group, limit, next, _callback); - - } - - /** - * Get user shared folders Get a listing of user folder/document shares; available as an Add-On - * Module - * - * @param group Group Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetUserSharesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetUserSharesResponse getUserShares(@javax.annotation.Nullable String group, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - ApiResponse localVarResp = getUserSharesWithHttpInfo(group, limit, next); - return localVarResp.getData(); - } - - /** - * Get user shared folders Get a listing of user folder/document shares; available as an Add-On - * Module - * - * @param group Group Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetUserSharesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getUserSharesWithHttpInfo( - @javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getUserSharesValidateBeforeCall(group, limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get user shared folders (asynchronously) Get a listing of user folder/document shares; - * available as an Add-On Module - * - * @param group Group Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getUserSharesAsync(@javax.annotation.Nullable String group, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getUserSharesValidateBeforeCall(group, limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Get user shared folders + * Get a listing of user folder/document shares; available as an Add-On Module + * @param group Group Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetUserSharesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getUserSharesWithHttpInfo(@javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getUserSharesValidateBeforeCall(group, limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get user shared folders (asynchronously) + * Get a listing of user folder/document shares; available as an Add-On Module + * @param group Group Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getUserSharesAsync(@javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUserSharesValidateBeforeCall(group, limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentTagsApi.java b/src/main/java/com/formkiq/client/api/DocumentTagsApi.java index a505de2ca..89a1dfe09 100644 --- a/src/main/java/com/formkiq/client/api/DocumentTagsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentTagsApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -50,1987 +43,1378 @@ import java.util.Map; public class DocumentTagsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentTagsApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentTagsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocumentTags - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentTagsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - Object localVarPostBody = addDocumentTagsRequest; + public DocumentTagsApi() { + this(Configuration.getDefaultApiClient()); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/tags".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + public DocumentTagsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public ApiClient getApiClient() { + return localVarApiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentTagsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocumentTags(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - // verify the required parameter 'addDocumentTagsRequest' is set - if (addDocumentTagsRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocumentTagsRequest' when calling addDocumentTags(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - return addDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); - - } - - /** - * Add tag to document Add multiple tags to a document; this endpoint also accepts a different - * body parameter for adding a single tag - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddResponse addDocumentTags(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add tag to document Add multiple tags to a document; this endpoint also accepts a different - * body parameter for adding a single tag - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addDocumentTagsWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - addDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add tag to document (asynchronously) Add multiple tags to a document; this endpoint also - * accepts a different body parameter for adding a single tag - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentTagsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteDocumentTag - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentTagCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addDocumentTags + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentTagsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentTagsRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/tags" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentTagsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentTags(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/tags/{tagKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); + // verify the required parameter 'addDocumentTagsRequest' is set + if (addDocumentTagsRequest == null) { + throw new ApiException("Missing the required parameter 'addDocumentTagsRequest' when calling addDocumentTags(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add tag to document + * Add multiple tags to a document; this endpoint also accepts a different body parameter for adding a single tag + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddResponse addDocumentTags(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add tag to document + * Add multiple tags to a document; this endpoint also accepts a different body parameter for adding a single tag + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addDocumentTagsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentTagValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocumentTag(Async)"); + /** + * Add tag to document (asynchronously) + * Add multiple tags to a document; this endpoint also accepts a different body parameter for adding a single tag + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentTagsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException( - "Missing the required parameter 'tagKey' when calling deleteDocumentTag(Async)"); + /** + * Build call for deleteDocumentTag + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentTagCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/tags/{tagKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - return deleteDocumentTagCall(documentId, tagKey, siteId, _callback); - - } - - /** - * Delete document tag Delete a document tag by using its key - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteDocumentTag(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - deleteDocumentTagWithHttpInfo(documentId, tagKey, siteId); - return localVarResp.getData(); - } - - /** - * Delete document tag Delete a document tag by using its key - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentTagWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - deleteDocumentTagValidateBeforeCall(documentId, tagKey, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document tag (asynchronously) Delete a document tag by using its key - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentTagAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteDocumentTagValidateBeforeCall(documentId, tagKey, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteDocumentTagAndValue - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentTagAndValueCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentTag(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/tags/{tagKey}/{tagValue}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())) - .replace("{" + "tagValue" + "}", localVarApiClient.escapeString(tagValue.toString())); + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException("Missing the required parameter 'tagKey' when calling deleteDocumentTag(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return deleteDocumentTagCall(documentId, tagKey, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + /** + * Delete document tag + * Delete a document tag by using its key + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteDocumentTag(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteDocumentTagWithHttpInfo(documentId, tagKey, siteId); + return localVarResp.getData(); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Delete document tag + * Delete a document tag by using its key + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentTagWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentTagValidateBeforeCall(documentId, tagKey, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete document tag (asynchronously) + * Delete a document tag by using its key + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentTagAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentTagValidateBeforeCall(documentId, tagKey, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentTagAndValueValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocumentTagAndValue(Async)"); + /** + * Build call for deleteDocumentTagAndValue + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentTagAndValueCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/tags/{tagKey}/{tagValue}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())) + .replace("{" + "tagValue" + "}", localVarApiClient.escapeString(tagValue.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException( - "Missing the required parameter 'tagKey' when calling deleteDocumentTagAndValue(Async)"); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentTagAndValueValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentTagAndValue(Async)"); + } - // verify the required parameter 'tagValue' is set - if (tagValue == null) { - throw new ApiException( - "Missing the required parameter 'tagValue' when calling deleteDocumentTagAndValue(Async)"); - } - - return deleteDocumentTagAndValueCall(documentId, tagKey, tagValue, siteId, shareKey, _callback); - - } - - /** - * Delete document's tag value Delete a specific document tag's key/value combination; the - * request will be ignored if there is no valid key/value combination found - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteDocumentTagAndValue(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - ApiResponse localVarResp = - deleteDocumentTagAndValueWithHttpInfo(documentId, tagKey, tagValue, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Delete document's tag value Delete a specific document tag's key/value combination; the - * request will be ignored if there is no valid key/value combination found - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentTagAndValueWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentTagAndValueValidateBeforeCall(documentId, tagKey, - tagValue, siteId, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document's tag value (asynchronously) Delete a specific document tag's key/value - * combination; the request will be ignored if there is no valid key/value combination found - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentTagAndValueAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentTagAndValueValidateBeforeCall(documentId, tagKey, - tagValue, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentTag - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentTagCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException("Missing the required parameter 'tagKey' when calling deleteDocumentTagAndValue(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/tags/{tagKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); + // verify the required parameter 'tagValue' is set + if (tagValue == null) { + throw new ApiException("Missing the required parameter 'tagValue' when calling deleteDocumentTagAndValue(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } + return deleteDocumentTagAndValueCall(documentId, tagKey, tagValue, siteId, shareKey, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete document's tag value + * Delete a specific document tag's key/value combination; the request will be ignored if there is no valid key/value combination found + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteDocumentTagAndValue(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = deleteDocumentTagAndValueWithHttpInfo(documentId, tagKey, tagValue, siteId, shareKey); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentTag(Async)"); + /** + * Delete document's tag value + * Delete a specific document tag's key/value combination; the request will be ignored if there is no valid key/value combination found + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentTagAndValueWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentTagAndValueValidateBeforeCall(documentId, tagKey, tagValue, siteId, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException( - "Missing the required parameter 'tagKey' when calling getDocumentTag(Async)"); + /** + * Delete document's tag value (asynchronously) + * Delete a specific document tag's key/value combination; the request will be ignored if there is no valid key/value combination found + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentTagAndValueAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentTagAndValueValidateBeforeCall(documentId, tagKey, tagValue, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return getDocumentTagCall(documentId, tagKey, siteId, shareKey, _callback); - - } - - /** - * Get document tag by key Get a document tag by using its key - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentTagResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentTagResponse getDocumentTag(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = - getDocumentTagWithHttpInfo(documentId, tagKey, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Get document tag by key Get a document tag by using its key - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentTagResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentTagWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - okhttp3.Call localVarCall = - getDocumentTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document tag by key (asynchronously) Get a document tag by using its key - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentTagAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentTags - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentTagsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getDocumentTag + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentTagCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/tags/{tagKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentTag(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/tags".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException("Missing the required parameter 'tagKey' when calling getDocumentTag(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return getDocumentTagCall(documentId, tagKey, siteId, shareKey, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Get document tag by key + * Get a document tag by using its key + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentTagResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentTagResponse getDocumentTag(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = getDocumentTagWithHttpInfo(documentId, tagKey, siteId, shareKey); + return localVarResp.getData(); } - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + /** + * Get document tag by key + * Get a document tag by using its key + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentTagResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentTagWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Get document tag by key (asynchronously) + * Get a document tag by using its key + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentTagAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - if (previous != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + /** + * Build call for getDocumentTags + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentTagsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/tags" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentTagsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentTags(Async)"); + } + + return getDocumentTagsCall(documentId, siteId, limit, shareKey, next, previous, _callback); - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentTagsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentTags(Async)"); + /** + * Get document's tags + * Get a listing of a document's tags + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return GetDocumentTagsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentTagsResponse getDocumentTags(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { + ApiResponse localVarResp = getDocumentTagsWithHttpInfo(documentId, siteId, limit, shareKey, next, previous); + return localVarResp.getData(); } - return getDocumentTagsCall(documentId, siteId, limit, shareKey, next, previous, _callback); - - } - - /** - * Get document's tags Get a listing of a document's tags - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return GetDocumentTagsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentTagsResponse getDocumentTags(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous) throws ApiException { - ApiResponse localVarResp = - getDocumentTagsWithHttpInfo(documentId, siteId, limit, shareKey, next, previous); - return localVarResp.getData(); - } - - /** - * Get document's tags Get a listing of a document's tags - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return ApiResponse<GetDocumentTagsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentTagsWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) - throws ApiException { - okhttp3.Call localVarCall = getDocumentTagsValidateBeforeCall(documentId, siteId, limit, - shareKey, next, previous, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document's tags (asynchronously) Get a listing of a document's tags - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentTagsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentTagsValidateBeforeCall(documentId, siteId, limit, - shareKey, next, previous, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentTag - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param setDocumentTagKeyRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentTagCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get document's tags + * Get a listing of a document's tags + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return ApiResponse<GetDocumentTagsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentTagsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { + okhttp3.Call localVarCall = getDocumentTagsValidateBeforeCall(documentId, siteId, limit, shareKey, next, previous, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = setDocumentTagKeyRequest; + /** + * Get document's tags (asynchronously) + * Get a listing of a document's tags + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentTagsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentTagsValidateBeforeCall(documentId, siteId, limit, shareKey, next, previous, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setDocumentTag + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param setDocumentTagKeyRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentTagCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setDocumentTagKeyRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/tags/{tagKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/tags/{tagKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentTag(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException("Missing the required parameter 'tagKey' when calling setDocumentTag(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + // verify the required parameter 'setDocumentTagKeyRequest' is set + if (setDocumentTagKeyRequest == null) { + throw new ApiException("Missing the required parameter 'setDocumentTagKeyRequest' when calling setDocumentTag(Async)"); + } - final String[] localVarAccepts = {}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } + return setDocumentTagCall(documentId, tagKey, setDocumentTagKeyRequest, siteId, _callback); - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentTag(Async)"); + /** + * Update document tag value(s) + * Update any and all values of a document tag, by using its key; you can supply one tag value or a list of tag values in the request body + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param setDocumentTagKeyRequest (required) + * @param siteId Site Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public void setDocumentTag(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, @javax.annotation.Nullable String siteId) throws ApiException { + setDocumentTagWithHttpInfo(documentId, tagKey, setDocumentTagKeyRequest, siteId); } - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException( - "Missing the required parameter 'tagKey' when calling setDocumentTag(Async)"); + /** + * Update document tag value(s) + * Update any and all values of a document tag, by using its key; you can supply one tag value or a list of tag values in the request body + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param setDocumentTagKeyRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setDocumentTagWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentTagValidateBeforeCall(documentId, tagKey, setDocumentTagKeyRequest, siteId, null); + return localVarApiClient.execute(localVarCall); } - // verify the required parameter 'setDocumentTagKeyRequest' is set - if (setDocumentTagKeyRequest == null) { - throw new ApiException( - "Missing the required parameter 'setDocumentTagKeyRequest' when calling setDocumentTag(Async)"); + /** + * Update document tag value(s) (asynchronously) + * Update any and all values of a document tag, by using its key; you can supply one tag value or a list of tag values in the request body + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param setDocumentTagKeyRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentTagAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentTagValidateBeforeCall(documentId, tagKey, setDocumentTagKeyRequest, siteId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; } - - return setDocumentTagCall(documentId, tagKey, setDocumentTagKeyRequest, siteId, _callback); - - } - - /** - * Update document tag value(s) Update any and all values of a document tag, by using its key; you - * can supply one tag value or a list of tag values in the request body - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param setDocumentTagKeyRequest (required) - * @param siteId Site Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public void setDocumentTag(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - setDocumentTagWithHttpInfo(documentId, tagKey, setDocumentTagKeyRequest, siteId); - } - - /** - * Update document tag value(s) Update any and all values of a document tag, by using its key; you - * can supply one tag value or a list of tag values in the request body - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param setDocumentTagKeyRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setDocumentTagWithHttpInfo(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentTagValidateBeforeCall(documentId, tagKey, - setDocumentTagKeyRequest, siteId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Update document tag value(s) (asynchronously) Update any and all values of a document tag, by - * using its key; you can supply one tag value or a list of tag values in the request body - * - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param setDocumentTagKeyRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentTagAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String tagKey, - @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = setDocumentTagValidateBeforeCall(documentId, tagKey, - setDocumentTagKeyRequest, siteId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentTags - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentTagsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for setDocumentTags + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentTagsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentTagsRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/tags" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = addDocumentTagsRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentTagsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentTags(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/tags".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + // verify the required parameter 'addDocumentTagsRequest' is set + if (addDocumentTagsRequest == null) { + throw new ApiException("Missing the required parameter 'addDocumentTagsRequest' when calling setDocumentTags(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return setDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Set document's tags + * Set multiple tags to a document; this endpoint also accepts a different body parameter for setting a single tag + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public void setDocumentTags(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + setDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Set document's tags + * Set multiple tags to a document; this endpoint also accepts a different body parameter for setting a single tag + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setDocumentTagsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); + return localVarApiClient.execute(localVarCall); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentTagsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentTags(Async)"); + /** + * Set document's tags (asynchronously) + * Set multiple tags to a document; this endpoint also accepts a different body parameter for setting a single tag + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentTagsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; } - - // verify the required parameter 'addDocumentTagsRequest' is set - if (addDocumentTagsRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocumentTagsRequest' when calling setDocumentTags(Async)"); - } - - return setDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); - - } - - /** - * Set document's tags Set multiple tags to a document; this endpoint also accepts a different - * body parameter for setting a single tag - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public void setDocumentTags(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - setDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); - } - - /** - * Set document's tags Set multiple tags to a document; this endpoint also accepts a different - * body parameter for setting a single tag - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setDocumentTagsWithHttpInfo(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - setDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Set document's tags (asynchronously) Set multiple tags to a document; this endpoint also - * accepts a different body parameter for setting a single tag - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentTagsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - setDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - - /** - * Build call for updateDocumentTags - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateDocumentTagsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for updateDocumentTags + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateDocumentTagsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentTagsRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/tags" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = addDocumentTagsRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/tags".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call updateDocumentTagsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling updateDocumentTags(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'addDocumentTagsRequest' is set + if (addDocumentTagsRequest == null) { + throw new ApiException("Missing the required parameter 'addDocumentTagsRequest' when calling updateDocumentTags(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return updateDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); - final String[] localVarAccepts = {}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Update document tags + * Updates multiple tags to a document; this endpoint also accepts a different body parameter for updating a single tag + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public void updateDocumentTags(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + updateDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateDocumentTagsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling updateDocumentTags(Async)"); + /** + * Update document tags + * Updates multiple tags to a document; this endpoint also accepts a different body parameter for updating a single tag + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse updateDocumentTagsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); + return localVarApiClient.execute(localVarCall); } - // verify the required parameter 'addDocumentTagsRequest' is set - if (addDocumentTagsRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocumentTagsRequest' when calling updateDocumentTags(Async)"); + /** + * Update document tags (asynchronously) + * Updates multiple tags to a document; this endpoint also accepts a different body parameter for updating a single tag + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateDocumentTagsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; } - - return updateDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); - - } - - /** - * Update document tags Updates multiple tags to a document; this endpoint also accepts a - * different body parameter for updating a single tag - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public void updateDocumentTags(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - updateDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); - } - - /** - * Update document tags Updates multiple tags to a document; this endpoint also accepts a - * different body parameter for updating a single tag - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse updateDocumentTagsWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - updateDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Update document tags (asynchronously) Updates multiple tags to a document; this endpoint also - * accepts a different body parameter for updating a single tag - * - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateDocumentTagsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - updateDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - - /** - * Build call for updateMatchingDocumentTags - * - * @param updateMatchingDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateMatchingDocumentTagsCall( - @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for updateMatchingDocumentTags + * @param updateMatchingDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateMatchingDocumentTagsCall(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateMatchingDocumentTagsRequest; + + // create path and map variables + String localVarPath = "/documents/tags"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = updateMatchingDocumentTagsRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMatchingDocumentTagsValidateBeforeCall(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'updateMatchingDocumentTagsRequest' is set + if (updateMatchingDocumentTagsRequest == null) { + throw new ApiException("Missing the required parameter 'updateMatchingDocumentTagsRequest' when calling updateMatchingDocumentTags(Async)"); + } - // create path and map variables - String localVarPath = "/documents/tags"; + return updateMatchingDocumentTagsCall(updateMatchingDocumentTagsRequest, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Mass Update document tag(s) + * This API request allows the adding/updating of multiple document tag(s) based on document(s) that have the matching tag. + * @param updateMatchingDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateMatchingDocumentTagsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public UpdateMatchingDocumentTagsResponse updateMatchingDocumentTags(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = updateMatchingDocumentTagsWithHttpInfo(updateMatchingDocumentTagsRequest, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Mass Update document tag(s) + * This API request allows the adding/updating of multiple document tag(s) based on document(s) that have the matching tag. + * @param updateMatchingDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateMatchingDocumentTagsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse updateMatchingDocumentTagsWithHttpInfo(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateMatchingDocumentTagsValidateBeforeCall(updateMatchingDocumentTagsRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateMatchingDocumentTagsValidateBeforeCall( - @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'updateMatchingDocumentTagsRequest' is set - if (updateMatchingDocumentTagsRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateMatchingDocumentTagsRequest' when calling updateMatchingDocumentTags(Async)"); + /** + * Mass Update document tag(s) (asynchronously) + * This API request allows the adding/updating of multiple document tag(s) based on document(s) that have the matching tag. + * @param updateMatchingDocumentTagsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateMatchingDocumentTagsAsync(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMatchingDocumentTagsValidateBeforeCall(updateMatchingDocumentTagsRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return updateMatchingDocumentTagsCall(updateMatchingDocumentTagsRequest, siteId, _callback); - - } - - /** - * Mass Update document tag(s) This API request allows the adding/updating of multiple document - * tag(s) based on document(s) that have the matching tag. - * - * @param updateMatchingDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateMatchingDocumentTagsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public UpdateMatchingDocumentTagsResponse updateMatchingDocumentTags( - @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - updateMatchingDocumentTagsWithHttpInfo(updateMatchingDocumentTagsRequest, siteId); - return localVarResp.getData(); - } - - /** - * Mass Update document tag(s) This API request allows the adding/updating of multiple document - * tag(s) based on document(s) that have the matching tag. - * - * @param updateMatchingDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateMatchingDocumentTagsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse updateMatchingDocumentTagsWithHttpInfo( - @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateMatchingDocumentTagsValidateBeforeCall( - updateMatchingDocumentTagsRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Mass Update document tag(s) (asynchronously) This API request allows the adding/updating of - * multiple document tag(s) based on document(s) that have the matching tag. - * - * @param updateMatchingDocumentTagsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateMatchingDocumentTagsAsync( - @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateMatchingDocumentTagsValidateBeforeCall( - updateMatchingDocumentTagsRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java b/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java index 3219a9060..70126ab95 100644 --- a/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -47,723 +40,501 @@ import java.util.Map; public class DocumentVersionsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentVersionsApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentVersionsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for deleteDocumentVersion - * - * @param documentId Document Identifier (required) - * @param versionKey Version Key (version key required URL encoding) (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentVersionCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - // create path and map variables - String localVarPath = "/documents/{documentId}/versions/{versionKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "versionKey" + "}", localVarApiClient.escapeString(versionKey.toString())); + public DocumentVersionsApi() { + this(Configuration.getDefaultApiClient()); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public DocumentVersionsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public ApiClient getApiClient() { + return localVarApiClient; } - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentVersionValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocumentVersion(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - // verify the required parameter 'versionKey' is set - if (versionKey == null) { - throw new ApiException( - "Missing the required parameter 'versionKey' when calling deleteDocumentVersion(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - return deleteDocumentVersionCall(documentId, versionKey, siteId, shareKey, _callback); - - } - - /** - * Delete document version Delete a specific previous document version; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param versionKey Version Key (version key required URL encoding) (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteDocumentVersion(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = - deleteDocumentVersionWithHttpInfo(documentId, versionKey, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Delete document version Delete a specific previous document version; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param versionKey Version Key (version key required URL encoding) (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentVersionWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - okhttp3.Call localVarCall = - deleteDocumentVersionValidateBeforeCall(documentId, versionKey, siteId, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document version (asynchronously) Delete a specific previous document version; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param versionKey Version Key (version key required URL encoding) (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentVersionAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentVersionValidateBeforeCall(documentId, versionKey, - siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentVersions - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentVersionsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteDocumentVersion + * @param documentId Document Identifier (required) + * @param versionKey Version Key (version key required URL encoding) (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentVersionCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/versions/{versionKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "versionKey" + "}", localVarApiClient.escapeString(versionKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentVersionValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentVersion(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/versions".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + // verify the required parameter 'versionKey' is set + if (versionKey == null) { + throw new ApiException("Missing the required parameter 'versionKey' when calling deleteDocumentVersion(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return deleteDocumentVersionCall(documentId, versionKey, siteId, shareKey, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Delete document version + * Delete a specific previous document version; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param versionKey Version Key (version key required URL encoding) (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteDocumentVersion(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = deleteDocumentVersionWithHttpInfo(documentId, versionKey, siteId, shareKey); + return localVarResp.getData(); } - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + /** + * Delete document version + * Delete a specific previous document version; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param versionKey Version Key (version key required URL encoding) (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentVersionWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentVersionValidateBeforeCall(documentId, versionKey, siteId, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Delete document version (asynchronously) + * Delete a specific previous document version; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param versionKey Version Key (version key required URL encoding) (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentVersionAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentVersionValidateBeforeCall(documentId, versionKey, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Build call for getDocumentVersions + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentVersionsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/versions" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentVersionsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentVersions(Async)"); + } + + return getDocumentVersionsCall(documentId, siteId, limit, shareKey, next, _callback); + } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentVersionsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentVersions(Async)"); + /** + * Get document's versions + * Get a listing of document content and metadata versions; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return GetDocumentVersionsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentVersionsResponse getDocumentVersions(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getDocumentVersionsWithHttpInfo(documentId, siteId, limit, shareKey, next); + return localVarResp.getData(); } - return getDocumentVersionsCall(documentId, siteId, limit, shareKey, next, _callback); - - } - - /** - * Get document's versions Get a listing of document content and metadata versions; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return GetDocumentVersionsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentVersionsResponse getDocumentVersions( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = - getDocumentVersionsWithHttpInfo(documentId, siteId, limit, shareKey, next); - return localVarResp.getData(); - } - - /** - * Get document's versions Get a listing of document content and metadata versions; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return ApiResponse<GetDocumentVersionsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentVersionsWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = - getDocumentVersionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document's versions (asynchronously) Get a listing of document content and metadata - * versions; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentVersionsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentVersionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentVersion - * - * @param documentId Document Identifier (required) - * @param setDocumentVersionRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call setDocumentVersionCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get document's versions + * Get a listing of document content and metadata versions; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return ApiResponse<GetDocumentVersionsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentVersionsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getDocumentVersionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = setDocumentVersionRequest; + /** + * Get document's versions (asynchronously) + * Get a listing of document content and metadata versions; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentVersionsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentVersionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setDocumentVersion + * @param documentId Document Identifier (required) + * @param setDocumentVersionRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call setDocumentVersionCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setDocumentVersionRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/versions" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/versions".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentVersionValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentVersion(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'setDocumentVersionRequest' is set + if (setDocumentVersionRequest == null) { + throw new ApiException("Missing the required parameter 'setDocumentVersionRequest' when calling setDocumentVersion(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return setDocumentVersionCall(documentId, setDocumentVersionRequest, siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Set version of document + * Set document to a previous document version; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param setDocumentVersionRequest (required) + * @param siteId Site Identifier (optional) + * @return SetDocumentVersionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public SetDocumentVersionResponse setDocumentVersion(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setDocumentVersionWithHttpInfo(documentId, setDocumentVersionRequest, siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentVersionValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentVersion(Async)"); + /** + * Set version of document + * Set document to a previous document version; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param setDocumentVersionRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetDocumentVersionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse setDocumentVersionWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentVersionValidateBeforeCall(documentId, setDocumentVersionRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'setDocumentVersionRequest' is set - if (setDocumentVersionRequest == null) { - throw new ApiException( - "Missing the required parameter 'setDocumentVersionRequest' when calling setDocumentVersion(Async)"); + /** + * Set version of document (asynchronously) + * Set document to a previous document version; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param setDocumentVersionRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call setDocumentVersionAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentVersionValidateBeforeCall(documentId, setDocumentVersionRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return setDocumentVersionCall(documentId, setDocumentVersionRequest, siteId, _callback); - - } - - /** - * Set version of document Set document to a previous document version; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param setDocumentVersionRequest (required) - * @param siteId Site Identifier (optional) - * @return SetDocumentVersionResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public SetDocumentVersionResponse setDocumentVersion(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - setDocumentVersionWithHttpInfo(documentId, setDocumentVersionRequest, siteId); - return localVarResp.getData(); - } - - /** - * Set version of document Set document to a previous document version; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param setDocumentVersionRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetDocumentVersionResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse setDocumentVersionWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - setDocumentVersionValidateBeforeCall(documentId, setDocumentVersionRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set version of document (asynchronously) Set document to a previous document version; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param setDocumentVersionRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call setDocumentVersionAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentVersionValidateBeforeCall(documentId, - setDocumentVersionRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java b/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java index f053e744b..ae1ec9324 100644 --- a/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -65,3556 +58,2344 @@ import java.util.Map; public class DocumentWorkflowsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentWorkflowsApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentWorkflowsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocumentWorkflow - * - * @param documentId Document Identifier (required) - * @param addDocumentWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentWorkflowCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentWorkflowRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/workflows".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentWorkflowValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocumentWorkflow(Async)"); - } - - // verify the required parameter 'addDocumentWorkflowRequest' is set - if (addDocumentWorkflowRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocumentWorkflowRequest' when calling addDocumentWorkflow(Async)"); - } - - return addDocumentWorkflowCall(documentId, addDocumentWorkflowRequest, siteId, _callback); - - } - - /** - * Add document workflow Creates a document workflow; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param addDocumentWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocumentWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddDocumentWorkflowResponse addDocumentWorkflow( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addDocumentWorkflowWithHttpInfo(documentId, addDocumentWorkflowRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add document workflow Creates a document workflow; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param addDocumentWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocumentWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addDocumentWorkflowWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - addDocumentWorkflowValidateBeforeCall(documentId, addDocumentWorkflowRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add document workflow (asynchronously) Creates a document workflow; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param addDocumentWorkflowRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentWorkflowAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentWorkflowValidateBeforeCall(documentId, - addDocumentWorkflowRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addDocumentWorkflowDecisions - * - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param addDocumentWorkflowDecisionsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentWorkflowDecisionsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentWorkflowDecisionsRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/workflow/{workflowId}/decisions" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentWorkflowDecisionsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocumentWorkflowDecisions(Async)"); - } - - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException( - "Missing the required parameter 'workflowId' when calling addDocumentWorkflowDecisions(Async)"); - } - - // verify the required parameter 'addDocumentWorkflowDecisionsRequest' is set - if (addDocumentWorkflowDecisionsRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocumentWorkflowDecisionsRequest' when calling addDocumentWorkflowDecisions(Async)"); - } - - return addDocumentWorkflowDecisionsCall(documentId, workflowId, - addDocumentWorkflowDecisionsRequest, siteId, _callback); - - } - - /** - * Approve/Reject document in approval queue Approve/Reject document in approval queue; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param addDocumentWorkflowDecisionsRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocumentWorkflowDecisionsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddDocumentWorkflowDecisionsResponse addDocumentWorkflowDecisions( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addDocumentWorkflowDecisionsWithHttpInfo(documentId, workflowId, - addDocumentWorkflowDecisionsRequest, siteId); - return localVarResp.getData(); - } - - /** - * Approve/Reject document in approval queue Approve/Reject document in approval queue; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param addDocumentWorkflowDecisionsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocumentWorkflowDecisionsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addDocumentWorkflowDecisionsWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocumentWorkflowDecisionsValidateBeforeCall(documentId, - workflowId, addDocumentWorkflowDecisionsRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Approve/Reject document in approval queue (asynchronously) Approve/Reject document in approval - * queue; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param addDocumentWorkflowDecisionsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentWorkflowDecisionsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentWorkflowDecisionsValidateBeforeCall(documentId, - workflowId, addDocumentWorkflowDecisionsRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addQueue - * - * @param addQueueRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addQueueCall(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addQueueRequest; - - // create path and map variables - String localVarPath = "/queues"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addQueueValidateBeforeCall( - @javax.annotation.Nonnull AddQueueRequest addQueueRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addQueueRequest' is set - if (addQueueRequest == null) { - throw new ApiException( - "Missing the required parameter 'addQueueRequest' when calling addQueue(Async)"); - } - - return addQueueCall(addQueueRequest, siteId, _callback); - - } - - /** - * Add queue Creates a new Queue; available as an Add-On Module - * - * @param addQueueRequest (required) - * @param siteId Site Identifier (optional) - * @return AddQueueResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddQueueResponse addQueue(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addQueueWithHttpInfo(addQueueRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add queue Creates a new Queue; available as an Add-On Module - * - * @param addQueueRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddQueueResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addQueueWithHttpInfo( - @javax.annotation.Nonnull AddQueueRequest addQueueRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addQueueValidateBeforeCall(addQueueRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add queue (asynchronously) Creates a new Queue; available as an Add-On Module - * - * @param addQueueRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addQueueAsync(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = addQueueValidateBeforeCall(addQueueRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addWorkflow - * - * @param addWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addWorkflowCall( - @javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addWorkflowRequest; - - // create path and map variables - String localVarPath = "/workflows"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addWorkflowValidateBeforeCall( - @javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addWorkflowRequest' is set - if (addWorkflowRequest == null) { - throw new ApiException( - "Missing the required parameter 'addWorkflowRequest' when calling addWorkflow(Async)"); - } - - return addWorkflowCall(addWorkflowRequest, siteId, _callback); - - } - - /** - * Add workflow Creates a new Workflow; available as an Add-On Module - * - * @param addWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return AddWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddWorkflowResponse addWorkflow( - @javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addWorkflowWithHttpInfo(addWorkflowRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add workflow Creates a new Workflow; available as an Add-On Module - * - * @param addWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addWorkflowWithHttpInfo( - @javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addWorkflowValidateBeforeCall(addWorkflowRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add workflow (asynchronously) Creates a new Workflow; available as an Add-On Module - * - * @param addWorkflowRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addWorkflowAsync( - @javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addWorkflowValidateBeforeCall(addWorkflowRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteQueue - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteQueueCall(@javax.annotation.Nonnull String queueId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/queues/{queueId}".replace("{" + "queueId" + "}", - localVarApiClient.escapeString(queueId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteQueueValidateBeforeCall(@javax.annotation.Nonnull String queueId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'queueId' is set - if (queueId == null) { - throw new ApiException( - "Missing the required parameter 'queueId' when calling deleteQueue(Async)"); - } - - return deleteQueueCall(queueId, siteId, _callback); - - } - - /** - * Delete queue Delete a Queue; available as an Add-On Module - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @return DeleteQueueResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteQueueResponse deleteQueue(@javax.annotation.Nonnull String queueId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteQueueWithHttpInfo(queueId, siteId); - return localVarResp.getData(); - } - - /** - * Delete queue Delete a Queue; available as an Add-On Module - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteQueueResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteQueueWithHttpInfo( - @javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteQueueValidateBeforeCall(queueId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete queue (asynchronously) Delete a Queue; available as an Add-On Module - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteQueueAsync(@javax.annotation.Nonnull String queueId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteQueueValidateBeforeCall(queueId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteWorkflow - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteWorkflowCall(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/workflows/{workflowId}".replace("{" + "workflowId" + "}", - localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException( - "Missing the required parameter 'workflowId' when calling deleteWorkflow(Async)"); - } - - return deleteWorkflowCall(workflowId, siteId, _callback); - - } - - /** - * Delete workflow Delete a Workflow; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteWorkflowResponse deleteWorkflow(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - deleteWorkflowWithHttpInfo(workflowId, siteId); - return localVarResp.getData(); - } - - /** - * Delete workflow Delete a Workflow; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteWorkflowWithHttpInfo( - @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteWorkflowValidateBeforeCall(workflowId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete workflow (asynchronously) Delete a Workflow; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteWorkflowAsync(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteWorkflowValidateBeforeCall(workflowId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentWorkflow - * - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentWorkflowCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/workflows/{workflowId}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentWorkflowValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentWorkflow(Async)"); - } - - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException( - "Missing the required parameter 'workflowId' when calling getDocumentWorkflow(Async)"); - } - - return getDocumentWorkflowCall(documentId, workflowId, siteId, _callback); - - } - - /** - * Get document workflow Gets a document workflow; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetDocumentWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentWorkflowResponse getDocumentWorkflow( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - getDocumentWorkflowWithHttpInfo(documentId, workflowId, siteId); - return localVarResp.getData(); - } - - /** - * Get document workflow Gets a document workflow; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetDocumentWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentWorkflowWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - getDocumentWorkflowValidateBeforeCall(documentId, workflowId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document workflow (asynchronously) Gets a document workflow; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentWorkflowAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentWorkflowValidateBeforeCall(documentId, workflowId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentWorkflows - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentWorkflowsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/workflows".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentWorkflowsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentWorkflows(Async)"); - } - - return getDocumentWorkflowsCall(documentId, siteId, _callback); - - } - - /** - * Get document workflows Gets a document workflows; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetDocumentWorkflowsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentWorkflowsResponse getDocumentWorkflows( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - getDocumentWorkflowsWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Get document workflows Gets a document workflows; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetDocumentWorkflowsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentWorkflowsWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getDocumentWorkflowsValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document workflows (asynchronously) Gets a document workflows; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentWorkflowsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentWorkflowsValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getQueue - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getQueueCall(@javax.annotation.Nonnull String queueId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/queues/{queueId}".replace("{" + "queueId" + "}", - localVarApiClient.escapeString(queueId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getQueueValidateBeforeCall(@javax.annotation.Nonnull String queueId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'queueId' is set - if (queueId == null) { - throw new ApiException( - "Missing the required parameter 'queueId' when calling getQueue(Async)"); - } - - return getQueueCall(queueId, siteId, _callback); - - } - - /** - * Get queue Get a queue; available as an Add-On Module - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @return GetQueueResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetQueueResponse getQueue(@javax.annotation.Nonnull String queueId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getQueueWithHttpInfo(queueId, siteId); - return localVarResp.getData(); - } - - /** - * Get queue Get a queue; available as an Add-On Module - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetQueueResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getQueueWithHttpInfo( - @javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getQueueValidateBeforeCall(queueId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get queue (asynchronously) Get a queue; available as an Add-On Module - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getQueueAsync(@javax.annotation.Nonnull String queueId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getQueueValidateBeforeCall(queueId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getQueues - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getQueuesCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/queues"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getQueuesValidateBeforeCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - return getQueuesCall(siteId, next, limit, _callback); - - } - - /** - * Get queues Get a listing of queues; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetQueuesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetQueuesResponse getQueues(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = getQueuesWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get queues Get a listing of queues; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetQueuesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getQueuesWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getQueuesValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get queues (asynchronously) Get a listing of queues; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getQueuesAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getQueuesValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getWorkflow - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWorkflowCall(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/workflows/{workflowId}".replace("{" + "workflowId" + "}", - localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException( - "Missing the required parameter 'workflowId' when calling getWorkflow(Async)"); - } - - return getWorkflowCall(workflowId, siteId, _callback); - - } - - /** - * Get workflow Get a workflow; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetWorkflowResponse getWorkflow(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getWorkflowWithHttpInfo(workflowId, siteId); - return localVarResp.getData(); - } - - /** - * Get workflow Get a workflow; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getWorkflowWithHttpInfo( - @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getWorkflowValidateBeforeCall(workflowId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get workflow (asynchronously) Get a workflow; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWorkflowAsync(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getWorkflowValidateBeforeCall(workflowId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getWorkflowDocuments - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWorkflowDocumentsCall(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/workflows/{workflowId}/documents".replace("{" + "workflowId" + "}", - localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWorkflowDocumentsValidateBeforeCall( - @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException( - "Missing the required parameter 'workflowId' when calling getWorkflowDocuments(Async)"); - } - - return getWorkflowDocumentsCall(workflowId, siteId, limit, next, _callback); - - } - - /** - * Get list of documents in workflow List documents in Workflow; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetWorkflowDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetWorkflowDocumentsResponse getWorkflowDocuments( - @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - ApiResponse localVarResp = - getWorkflowDocumentsWithHttpInfo(workflowId, siteId, limit, next); - return localVarResp.getData(); - } - - /** - * Get list of documents in workflow List documents in Workflow; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetWorkflowDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getWorkflowDocumentsWithHttpInfo( - @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - okhttp3.Call localVarCall = - getWorkflowDocumentsValidateBeforeCall(workflowId, siteId, limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of documents in workflow (asynchronously) List documents in Workflow; available as an - * Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWorkflowDocumentsAsync(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getWorkflowDocumentsValidateBeforeCall(workflowId, siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getWorkflowQueueDocuments - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWorkflowQueueDocumentsCall(@javax.annotation.Nonnull String queueId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/queues/{queueId}/documents".replace("{" + "queueId" + "}", - localVarApiClient.escapeString(queueId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWorkflowQueueDocumentsValidateBeforeCall( - @javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'queueId' is set - if (queueId == null) { - throw new ApiException( - "Missing the required parameter 'queueId' when calling getWorkflowQueueDocuments(Async)"); - } - - return getWorkflowQueueDocumentsCall(queueId, siteId, limit, next, _callback); - - } - - /** - * Get list of documents in queue List documents in Workflow Queue; available as an Add-On Module - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetWorkflowQueueDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetWorkflowQueueDocumentsResponse getWorkflowQueueDocuments( - @javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - ApiResponse localVarResp = - getWorkflowQueueDocumentsWithHttpInfo(queueId, siteId, limit, next); - return localVarResp.getData(); - } - - /** - * Get list of documents in queue List documents in Workflow Queue; available as an Add-On Module - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetWorkflowQueueDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getWorkflowQueueDocumentsWithHttpInfo( - @javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - okhttp3.Call localVarCall = - getWorkflowQueueDocumentsValidateBeforeCall(queueId, siteId, limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of documents in queue (asynchronously) List documents in Workflow Queue; available as - * an Add-On Module - * - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWorkflowQueueDocumentsAsync(@javax.annotation.Nonnull String queueId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getWorkflowQueueDocumentsValidateBeforeCall(queueId, siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getWorkflows - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param status Filters Status (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWorkflowsCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/workflows"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (status != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWorkflowsValidateBeforeCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { - return getWorkflowsCall(siteId, next, limit, status, _callback); - - } - - /** - * Get workflows Get a listing of workflows; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param status Filters Status (optional) - * @return GetWorkflowsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetWorkflowsResponse getWorkflows(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String status) throws ApiException { - ApiResponse localVarResp = - getWorkflowsWithHttpInfo(siteId, next, limit, status); - return localVarResp.getData(); - } - - /** - * Get workflows Get a listing of workflows; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param status Filters Status (optional) - * @return ApiResponse<GetWorkflowsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getWorkflowsWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status) - throws ApiException { - okhttp3.Call localVarCall = getWorkflowsValidateBeforeCall(siteId, next, limit, status, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get workflows (asynchronously) Get a listing of workflows; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param status Filters Status (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWorkflowsAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String status, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - getWorkflowsValidateBeforeCall(siteId, next, limit, status, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setWorkflow - * - * @param workflowId Workflow Identifier (required) - * @param setWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setWorkflowCall(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setWorkflowRequest; - - // create path and map variables - String localVarPath = "/workflows/{workflowId}".replace("{" + "workflowId" + "}", - localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException( - "Missing the required parameter 'workflowId' when calling setWorkflow(Async)"); - } - - // verify the required parameter 'setWorkflowRequest' is set - if (setWorkflowRequest == null) { - throw new ApiException( - "Missing the required parameter 'setWorkflowRequest' when calling setWorkflow(Async)"); - } - - return setWorkflowCall(workflowId, setWorkflowRequest, siteId, _callback); - - } - - /** - * Set workflow Set a Workflow details; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param setWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return SetWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetWorkflowResponse setWorkflow(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - setWorkflowWithHttpInfo(workflowId, setWorkflowRequest, siteId); - return localVarResp.getData(); - } - - /** - * Set workflow Set a Workflow details; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param setWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setWorkflowWithHttpInfo( - @javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - setWorkflowValidateBeforeCall(workflowId, setWorkflowRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set workflow (asynchronously) Set a Workflow details; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param setWorkflowRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setWorkflowAsync(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - setWorkflowValidateBeforeCall(workflowId, setWorkflowRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateWorkflow - * - * @param workflowId Workflow Identifier (required) - * @param updateWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateWorkflowCall(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateWorkflowRequest; - - // create path and map variables - String localVarPath = "/workflows/{workflowId}".replace("{" + "workflowId" + "}", - localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException( - "Missing the required parameter 'workflowId' when calling updateWorkflow(Async)"); - } - - // verify the required parameter 'updateWorkflowRequest' is set - if (updateWorkflowRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateWorkflowRequest' when calling updateWorkflow(Async)"); - } - - return updateWorkflowCall(workflowId, updateWorkflowRequest, siteId, _callback); - - } - - /** - * Update workflow Update a Workflow details; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param updateWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public UpdateWorkflowResponse updateWorkflow(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - updateWorkflowWithHttpInfo(workflowId, updateWorkflowRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update workflow Update a Workflow details; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param updateWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse updateWorkflowWithHttpInfo( - @javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - updateWorkflowValidateBeforeCall(workflowId, updateWorkflowRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update workflow (asynchronously) Update a Workflow details; available as an Add-On Module - * - * @param workflowId Workflow Identifier (required) - * @param updateWorkflowRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateWorkflowAsync(@javax.annotation.Nonnull String workflowId, - @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - updateWorkflowValidateBeforeCall(workflowId, updateWorkflowRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentWorkflowsApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentWorkflowsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocumentWorkflow + * @param documentId Document Identifier (required) + * @param addDocumentWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentWorkflowCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentWorkflowRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/workflows" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentWorkflowValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentWorkflow(Async)"); + } + + // verify the required parameter 'addDocumentWorkflowRequest' is set + if (addDocumentWorkflowRequest == null) { + throw new ApiException("Missing the required parameter 'addDocumentWorkflowRequest' when calling addDocumentWorkflow(Async)"); + } + + return addDocumentWorkflowCall(documentId, addDocumentWorkflowRequest, siteId, _callback); + + } + + /** + * Add document workflow + * Creates a document workflow; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addDocumentWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocumentWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddDocumentWorkflowResponse addDocumentWorkflow(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addDocumentWorkflowWithHttpInfo(documentId, addDocumentWorkflowRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add document workflow + * Creates a document workflow; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addDocumentWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocumentWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addDocumentWorkflowWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocumentWorkflowValidateBeforeCall(documentId, addDocumentWorkflowRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add document workflow (asynchronously) + * Creates a document workflow; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addDocumentWorkflowRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentWorkflowAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentWorkflowValidateBeforeCall(documentId, addDocumentWorkflowRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addDocumentWorkflowDecisions + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param addDocumentWorkflowDecisionsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentWorkflowDecisionsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentWorkflowDecisionsRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/workflow/{workflowId}/decisions" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentWorkflowDecisionsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentWorkflowDecisions(Async)"); + } + + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException("Missing the required parameter 'workflowId' when calling addDocumentWorkflowDecisions(Async)"); + } + + // verify the required parameter 'addDocumentWorkflowDecisionsRequest' is set + if (addDocumentWorkflowDecisionsRequest == null) { + throw new ApiException("Missing the required parameter 'addDocumentWorkflowDecisionsRequest' when calling addDocumentWorkflowDecisions(Async)"); + } + + return addDocumentWorkflowDecisionsCall(documentId, workflowId, addDocumentWorkflowDecisionsRequest, siteId, _callback); + + } + + /** + * Approve/Reject document in approval queue + * Approve/Reject document in approval queue; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param addDocumentWorkflowDecisionsRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocumentWorkflowDecisionsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddDocumentWorkflowDecisionsResponse addDocumentWorkflowDecisions(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addDocumentWorkflowDecisionsWithHttpInfo(documentId, workflowId, addDocumentWorkflowDecisionsRequest, siteId); + return localVarResp.getData(); + } + + /** + * Approve/Reject document in approval queue + * Approve/Reject document in approval queue; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param addDocumentWorkflowDecisionsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocumentWorkflowDecisionsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addDocumentWorkflowDecisionsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocumentWorkflowDecisionsValidateBeforeCall(documentId, workflowId, addDocumentWorkflowDecisionsRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Approve/Reject document in approval queue (asynchronously) + * Approve/Reject document in approval queue; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param addDocumentWorkflowDecisionsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentWorkflowDecisionsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentWorkflowDecisionsValidateBeforeCall(documentId, workflowId, addDocumentWorkflowDecisionsRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addQueue + * @param addQueueRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addQueueCall(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addQueueRequest; + + // create path and map variables + String localVarPath = "/queues"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addQueueValidateBeforeCall(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addQueueRequest' is set + if (addQueueRequest == null) { + throw new ApiException("Missing the required parameter 'addQueueRequest' when calling addQueue(Async)"); + } + + return addQueueCall(addQueueRequest, siteId, _callback); + + } + + /** + * Add queue + * Creates a new Queue; available as an Add-On Module + * @param addQueueRequest (required) + * @param siteId Site Identifier (optional) + * @return AddQueueResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddQueueResponse addQueue(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addQueueWithHttpInfo(addQueueRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add queue + * Creates a new Queue; available as an Add-On Module + * @param addQueueRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddQueueResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addQueueWithHttpInfo(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addQueueValidateBeforeCall(addQueueRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add queue (asynchronously) + * Creates a new Queue; available as an Add-On Module + * @param addQueueRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addQueueAsync(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addQueueValidateBeforeCall(addQueueRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addWorkflow + * @param addWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addWorkflowCall(@javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addWorkflowRequest; + + // create path and map variables + String localVarPath = "/workflows"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addWorkflowValidateBeforeCall(@javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addWorkflowRequest' is set + if (addWorkflowRequest == null) { + throw new ApiException("Missing the required parameter 'addWorkflowRequest' when calling addWorkflow(Async)"); + } + + return addWorkflowCall(addWorkflowRequest, siteId, _callback); + + } + + /** + * Add workflow + * Creates a new Workflow; available as an Add-On Module + * @param addWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return AddWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddWorkflowResponse addWorkflow(@javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addWorkflowWithHttpInfo(addWorkflowRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add workflow + * Creates a new Workflow; available as an Add-On Module + * @param addWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addWorkflowWithHttpInfo(@javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addWorkflowValidateBeforeCall(addWorkflowRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add workflow (asynchronously) + * Creates a new Workflow; available as an Add-On Module + * @param addWorkflowRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addWorkflowAsync(@javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addWorkflowValidateBeforeCall(addWorkflowRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteQueue + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteQueueCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/queues/{queueId}" + .replace("{" + "queueId" + "}", localVarApiClient.escapeString(queueId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteQueueValidateBeforeCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'queueId' is set + if (queueId == null) { + throw new ApiException("Missing the required parameter 'queueId' when calling deleteQueue(Async)"); + } + + return deleteQueueCall(queueId, siteId, _callback); + + } + + /** + * Delete queue + * Delete a Queue; available as an Add-On Module + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @return DeleteQueueResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteQueueResponse deleteQueue(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteQueueWithHttpInfo(queueId, siteId); + return localVarResp.getData(); + } + + /** + * Delete queue + * Delete a Queue; available as an Add-On Module + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteQueueResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteQueueWithHttpInfo(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteQueueValidateBeforeCall(queueId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete queue (asynchronously) + * Delete a Queue; available as an Add-On Module + * @param queueId Queue Id (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteQueueAsync(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteQueueValidateBeforeCall(queueId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteWorkflow + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteWorkflowCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/workflows/{workflowId}" + .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException("Missing the required parameter 'workflowId' when calling deleteWorkflow(Async)"); + } + + return deleteWorkflowCall(workflowId, siteId, _callback); + + } + + /** + * Delete workflow + * Delete a Workflow; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteWorkflowResponse deleteWorkflow(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteWorkflowWithHttpInfo(workflowId, siteId); + return localVarResp.getData(); + } + + /** + * Delete workflow + * Delete a Workflow; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteWorkflowWithHttpInfo(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteWorkflowValidateBeforeCall(workflowId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete workflow (asynchronously) + * Delete a Workflow; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteWorkflowAsync(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteWorkflowValidateBeforeCall(workflowId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocumentWorkflow + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentWorkflowCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/workflows/{workflowId}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentWorkflowValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentWorkflow(Async)"); + } + + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException("Missing the required parameter 'workflowId' when calling getDocumentWorkflow(Async)"); + } + + return getDocumentWorkflowCall(documentId, workflowId, siteId, _callback); + + } + + /** + * Get document workflow + * Gets a document workflow; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetDocumentWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentWorkflowResponse getDocumentWorkflow(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getDocumentWorkflowWithHttpInfo(documentId, workflowId, siteId); + return localVarResp.getData(); + } + + /** + * Get document workflow + * Gets a document workflow; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetDocumentWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentWorkflowWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getDocumentWorkflowValidateBeforeCall(documentId, workflowId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document workflow (asynchronously) + * Gets a document workflow; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentWorkflowAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentWorkflowValidateBeforeCall(documentId, workflowId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocumentWorkflows + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentWorkflowsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/workflows" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentWorkflowsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentWorkflows(Async)"); + } + + return getDocumentWorkflowsCall(documentId, siteId, _callback); + + } + + /** + * Get document workflows + * Gets a document workflows; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetDocumentWorkflowsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentWorkflowsResponse getDocumentWorkflows(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getDocumentWorkflowsWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Get document workflows + * Gets a document workflows; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetDocumentWorkflowsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentWorkflowsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getDocumentWorkflowsValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document workflows (asynchronously) + * Gets a document workflows; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentWorkflowsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentWorkflowsValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getQueue + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getQueueCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/queues/{queueId}" + .replace("{" + "queueId" + "}", localVarApiClient.escapeString(queueId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getQueueValidateBeforeCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'queueId' is set + if (queueId == null) { + throw new ApiException("Missing the required parameter 'queueId' when calling getQueue(Async)"); + } + + return getQueueCall(queueId, siteId, _callback); + + } + + /** + * Get queue + * Get a queue; available as an Add-On Module + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @return GetQueueResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetQueueResponse getQueue(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getQueueWithHttpInfo(queueId, siteId); + return localVarResp.getData(); + } + + /** + * Get queue + * Get a queue; available as an Add-On Module + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetQueueResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getQueueWithHttpInfo(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getQueueValidateBeforeCall(queueId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get queue (asynchronously) + * Get a queue; available as an Add-On Module + * @param queueId Queue Id (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getQueueAsync(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getQueueValidateBeforeCall(queueId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getQueues + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getQueuesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/queues"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getQueuesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + return getQueuesCall(siteId, next, limit, _callback); + + } + + /** + * Get queues + * Get a listing of queues; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetQueuesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetQueuesResponse getQueues(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getQueuesWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get queues + * Get a listing of queues; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetQueuesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getQueuesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getQueuesValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get queues (asynchronously) + * Get a listing of queues; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getQueuesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getQueuesValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getWorkflow + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWorkflowCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/workflows/{workflowId}" + .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException("Missing the required parameter 'workflowId' when calling getWorkflow(Async)"); + } + + return getWorkflowCall(workflowId, siteId, _callback); + + } + + /** + * Get workflow + * Get a workflow; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetWorkflowResponse getWorkflow(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getWorkflowWithHttpInfo(workflowId, siteId); + return localVarResp.getData(); + } + + /** + * Get workflow + * Get a workflow; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getWorkflowWithHttpInfo(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getWorkflowValidateBeforeCall(workflowId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get workflow (asynchronously) + * Get a workflow; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWorkflowAsync(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWorkflowValidateBeforeCall(workflowId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getWorkflowDocuments + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWorkflowDocumentsCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/workflows/{workflowId}/documents" + .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWorkflowDocumentsValidateBeforeCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException("Missing the required parameter 'workflowId' when calling getWorkflowDocuments(Async)"); + } + + return getWorkflowDocumentsCall(workflowId, siteId, limit, next, _callback); + + } + + /** + * Get list of documents in workflow + * List documents in Workflow; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetWorkflowDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetWorkflowDocumentsResponse getWorkflowDocuments(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getWorkflowDocumentsWithHttpInfo(workflowId, siteId, limit, next); + return localVarResp.getData(); + } + + /** + * Get list of documents in workflow + * List documents in Workflow; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetWorkflowDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getWorkflowDocumentsWithHttpInfo(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getWorkflowDocumentsValidateBeforeCall(workflowId, siteId, limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of documents in workflow (asynchronously) + * List documents in Workflow; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWorkflowDocumentsAsync(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWorkflowDocumentsValidateBeforeCall(workflowId, siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getWorkflowQueueDocuments + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWorkflowQueueDocumentsCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/queues/{queueId}/documents" + .replace("{" + "queueId" + "}", localVarApiClient.escapeString(queueId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWorkflowQueueDocumentsValidateBeforeCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'queueId' is set + if (queueId == null) { + throw new ApiException("Missing the required parameter 'queueId' when calling getWorkflowQueueDocuments(Async)"); + } + + return getWorkflowQueueDocumentsCall(queueId, siteId, limit, next, _callback); + + } + + /** + * Get list of documents in queue + * List documents in Workflow Queue; available as an Add-On Module + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetWorkflowQueueDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetWorkflowQueueDocumentsResponse getWorkflowQueueDocuments(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getWorkflowQueueDocumentsWithHttpInfo(queueId, siteId, limit, next); + return localVarResp.getData(); + } + + /** + * Get list of documents in queue + * List documents in Workflow Queue; available as an Add-On Module + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetWorkflowQueueDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getWorkflowQueueDocumentsWithHttpInfo(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getWorkflowQueueDocumentsValidateBeforeCall(queueId, siteId, limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of documents in queue (asynchronously) + * List documents in Workflow Queue; available as an Add-On Module + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWorkflowQueueDocumentsAsync(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWorkflowQueueDocumentsValidateBeforeCall(queueId, siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getWorkflows + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param status Filters Status (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWorkflowsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/workflows"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (status != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWorkflowsValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { + return getWorkflowsCall(siteId, next, limit, status, _callback); + + } + + /** + * Get workflows + * Get a listing of workflows; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param status Filters Status (optional) + * @return GetWorkflowsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetWorkflowsResponse getWorkflows(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status) throws ApiException { + ApiResponse localVarResp = getWorkflowsWithHttpInfo(siteId, next, limit, status); + return localVarResp.getData(); + } + + /** + * Get workflows + * Get a listing of workflows; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param status Filters Status (optional) + * @return ApiResponse<GetWorkflowsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getWorkflowsWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status) throws ApiException { + okhttp3.Call localVarCall = getWorkflowsValidateBeforeCall(siteId, next, limit, status, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get workflows (asynchronously) + * Get a listing of workflows; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param status Filters Status (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWorkflowsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWorkflowsValidateBeforeCall(siteId, next, limit, status, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setWorkflow + * @param workflowId Workflow Identifier (required) + * @param setWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setWorkflowCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setWorkflowRequest; + + // create path and map variables + String localVarPath = "/workflows/{workflowId}" + .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException("Missing the required parameter 'workflowId' when calling setWorkflow(Async)"); + } + + // verify the required parameter 'setWorkflowRequest' is set + if (setWorkflowRequest == null) { + throw new ApiException("Missing the required parameter 'setWorkflowRequest' when calling setWorkflow(Async)"); + } + + return setWorkflowCall(workflowId, setWorkflowRequest, siteId, _callback); + + } + + /** + * Set workflow + * Set a Workflow details; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param setWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return SetWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetWorkflowResponse setWorkflow(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setWorkflowWithHttpInfo(workflowId, setWorkflowRequest, siteId); + return localVarResp.getData(); + } + + /** + * Set workflow + * Set a Workflow details; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param setWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setWorkflowWithHttpInfo(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setWorkflowValidateBeforeCall(workflowId, setWorkflowRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set workflow (asynchronously) + * Set a Workflow details; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param setWorkflowRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setWorkflowAsync(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setWorkflowValidateBeforeCall(workflowId, setWorkflowRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateWorkflow + * @param workflowId Workflow Identifier (required) + * @param updateWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateWorkflowCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateWorkflowRequest; + + // create path and map variables + String localVarPath = "/workflows/{workflowId}" + .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException("Missing the required parameter 'workflowId' when calling updateWorkflow(Async)"); + } + + // verify the required parameter 'updateWorkflowRequest' is set + if (updateWorkflowRequest == null) { + throw new ApiException("Missing the required parameter 'updateWorkflowRequest' when calling updateWorkflow(Async)"); + } + + return updateWorkflowCall(workflowId, updateWorkflowRequest, siteId, _callback); + + } + + /** + * Update workflow + * Update a Workflow details; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param updateWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public UpdateWorkflowResponse updateWorkflow(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = updateWorkflowWithHttpInfo(workflowId, updateWorkflowRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update workflow + * Update a Workflow details; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param updateWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse updateWorkflowWithHttpInfo(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateWorkflowValidateBeforeCall(workflowId, updateWorkflowRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update workflow (asynchronously) + * Update a Workflow details; available as an Add-On Module + * @param workflowId Workflow Identifier (required) + * @param updateWorkflowRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateWorkflowAsync(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateWorkflowValidateBeforeCall(workflowId, updateWorkflowRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentsApi.java b/src/main/java/com/formkiq/client/api/DocumentsApi.java index a0dd7b0e5..9f8e61bbe 100644 --- a/src/main/java/com/formkiq/client/api/DocumentsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentsApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,4477 +52,3018 @@ import java.util.Map; public class DocumentsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentsApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocument - * - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocumentCall( - @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentRequest; - - // create path and map variables - String localVarPath = "/documents"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentValidateBeforeCall( - @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addDocumentRequest' is set - if (addDocumentRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocumentRequest' when calling addDocument(Async)"); - } - - return addDocumentCall(addDocumentRequest, siteId, shareKey, _callback); - - } - - /** - * Add new document Creates a new document; body may include document content if less than 5 MB. - * Returns a unique **documentId** used in subsequent operations. See POST - * /documents/{documentId}/tags for adding tags to document schema See POST - * /documents/{documentId}/actions for adding actions to document schema - * - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return AddDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddDocumentResponse addDocument( - @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - ApiResponse localVarResp = - addDocumentWithHttpInfo(addDocumentRequest, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Add new document Creates a new document; body may include document content if less than 5 MB. - * Returns a unique **documentId** used in subsequent operations. See POST - * /documents/{documentId}/tags for adding tags to document schema See POST - * /documents/{documentId}/actions for adding actions to document schema - * - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<AddDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addDocumentWithHttpInfo( - @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - okhttp3.Call localVarCall = - addDocumentValidateBeforeCall(addDocumentRequest, siteId, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add new document (asynchronously) Creates a new document; body may include document content if - * less than 5 MB. Returns a unique **documentId** used in subsequent operations. See POST - * /documents/{documentId}/tags for adding tags to document schema See POST - * /documents/{documentId}/actions for adding actions to document schema - * - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocumentAsync( - @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - addDocumentValidateBeforeCall(addDocumentRequest, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addDocumentSync - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentSyncRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentSyncCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentSyncRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/syncs".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentSyncValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocumentSync(Async)"); - } - - return addDocumentSyncCall(documentId, siteId, addDocumentSyncRequest, _callback); - - } - - /** - * Add document sync to service Add a document to a service - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentSyncRequest (optional) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddResponse addDocumentSync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest) - throws ApiException { - ApiResponse localVarResp = - addDocumentSyncWithHttpInfo(documentId, siteId, addDocumentSyncRequest); - return localVarResp.getData(); - } - - /** - * Add document sync to service Add a document to a service - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentSyncRequest (optional) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addDocumentSyncWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest) - throws ApiException { - okhttp3.Call localVarCall = - addDocumentSyncValidateBeforeCall(documentId, siteId, addDocumentSyncRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add document sync to service (asynchronously) Add a document to a service - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentSyncRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentSyncAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - addDocumentSyncValidateBeforeCall(documentId, siteId, addDocumentSyncRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addDocumentUpload - * - * @param addDocumentUploadRequest (required) - * @param siteId Site Identifier (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentUploadCall( - @javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentUploadRequest; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - // create path and map variables - String localVarPath = "/documents/upload"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (contentLength != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); - } - - if (duration != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); + public DocumentsApi() { + this(Configuration.getDefaultApiClient()); } - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + public DocumentsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public ApiClient getApiClient() { + return localVarApiClient; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentUploadValidateBeforeCall( - @javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addDocumentUploadRequest' is set - if (addDocumentUploadRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocumentUploadRequest' when calling addDocumentUpload(Async)"); + public int getHostIndex() { + return localHostIndex; } - return addDocumentUploadCall(addDocumentUploadRequest, siteId, contentLength, duration, - shareKey, _callback); - - } - - /** - * Add large document Returns a URL that can be used to upload document content and create a new - * document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is - * required in order to add content that is larger than 5 MB. The POST endpoint allow the adding - * of document metadata at the same time as the document is created. - * - * @param addDocumentUploadRequest (required) - * @param siteId Site Identifier (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentUrlResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentUrlResponse addDocumentUpload( - @javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) - throws ApiException { - ApiResponse localVarResp = addDocumentUploadWithHttpInfo( - addDocumentUploadRequest, siteId, contentLength, duration, shareKey); - return localVarResp.getData(); - } - - /** - * Add large document Returns a URL that can be used to upload document content and create a new - * document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is - * required in order to add content that is larger than 5 MB. The POST endpoint allow the adding - * of document metadata at the same time as the document is created. - * - * @param addDocumentUploadRequest (required) - * @param siteId Site Identifier (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentUrlResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addDocumentUploadWithHttpInfo( - @javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) - throws ApiException { - okhttp3.Call localVarCall = addDocumentUploadValidateBeforeCall(addDocumentUploadRequest, - siteId, contentLength, duration, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add large document (asynchronously) Returns a URL that can be used to upload document content - * and create a new document, while allowing metadata to also be sent; this endpoint (whether GET - * or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow - * the adding of document metadata at the same time as the document is created. - * - * @param addDocumentUploadRequest (required) - * @param siteId Site Identifier (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addDocumentUploadAsync( - @javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentUploadValidateBeforeCall(addDocumentUploadRequest, - siteId, contentLength, duration, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for compressDocuments - * - * @param documentsCompressRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call compressDocumentsCall( - @javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - Object localVarPostBody = documentsCompressRequest; - - // create path and map variables - String localVarPath = "/documents/compress"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call compressDocumentsValidateBeforeCall( - @javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentsCompressRequest' is set - if (documentsCompressRequest == null) { - throw new ApiException( - "Missing the required parameter 'documentsCompressRequest' when calling compressDocuments(Async)"); - } - - return compressDocumentsCall(documentsCompressRequest, siteId, _callback); - - } - - /** - * Compress multiple documents into a .zip file Compress documents into an .ZIP archive file, and - * returns a S3 presigned url for the location of the archive file. The operation is async and - * processing time depends on the number and size of documents included; a 404 status code is - * returned until the file is ready. - * - * @param documentsCompressRequest (required) - * @param siteId Site Identifier (optional) - * @return DocumentsCompressResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DocumentsCompressResponse compressDocuments( - @javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - compressDocumentsWithHttpInfo(documentsCompressRequest, siteId); - return localVarResp.getData(); - } - - /** - * Compress multiple documents into a .zip file Compress documents into an .ZIP archive file, and - * returns a S3 presigned url for the location of the archive file. The operation is async and - * processing time depends on the number and size of documents included; a 404 status code is - * returned until the file is ready. - * - * @param documentsCompressRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DocumentsCompressResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse compressDocumentsWithHttpInfo( - @javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - compressDocumentsValidateBeforeCall(documentsCompressRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Compress multiple documents into a .zip file (asynchronously) Compress documents into an .ZIP - * archive file, and returns a S3 presigned url for the location of the archive file. The - * operation is async and processing time depends on the number and size of documents included; a - * 404 status code is returned until the file is ready. - * - * @param documentsCompressRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call compressDocumentsAsync( - @javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - compressDocumentsValidateBeforeCall(documentsCompressRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteDocument - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param softDelete Whether to soft delete document (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (softDelete != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("softDelete", softDelete)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocument(Async)"); - } - - return deleteDocumentCall(documentId, siteId, softDelete, _callback); - - } - - /** - * Delete document Delete a document's details, i.e., metadata, contents, etc SoftDelete: The - * SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, - * etc from being retrieved from all API requests. The document can be permanently deleted by - * calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT - * /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the - * soft deleted documents. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param softDelete Whether to soft delete document (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteDocument(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete) - throws ApiException { - ApiResponse localVarResp = - deleteDocumentWithHttpInfo(documentId, siteId, softDelete); - return localVarResp.getData(); - } - - /** - * Delete document Delete a document's details, i.e., metadata, contents, etc SoftDelete: The - * SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, - * etc from being retrieved from all API requests. The document can be permanently deleted by - * calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT - * /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the - * soft deleted documents. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param softDelete Whether to soft delete document (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable Boolean softDelete) throws ApiException { - okhttp3.Call localVarCall = - deleteDocumentValidateBeforeCall(documentId, siteId, softDelete, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document (asynchronously) Delete a document's details, i.e., metadata, contents, etc - * SoftDelete: The SoftDelete parameter allows for the temporary removal of a document's - * metadata, attributes, etc from being retrieved from all API requests. The document can be - * permanently deleted by calling the DELETE /documents/{documentId} with softDelete=false or - * restored using the PUT /documents/{documentId}/restore. Only the GET - * /documents?deleted=true will return all the soft deleted documents. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param softDelete Whether to soft delete document (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteDocumentValidateBeforeCall(documentId, siteId, softDelete, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteDocumentCheckoutLegalHold - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentCheckoutLegalHoldCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/legalHold".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentCheckoutLegalHoldValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deleteDocumentCheckoutLegalHold(Async)"); - } - - return deleteDocumentCheckoutLegalHoldCall(documentId, siteId, _callback); - - } - - /** - * Delete document legal hold checkout Removes a legal hold checkout for the document; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteDocumentCheckoutLegalHold(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - deleteDocumentCheckoutLegalHoldWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete document legal hold checkout Removes a legal hold checkout for the document; available - * as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteDocumentCheckoutLegalHoldWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = - deleteDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document legal hold checkout (asynchronously) Removes a legal hold checkout for the - * document; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteDocumentCheckoutLegalHoldAsync( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deletePublishedDocumentContent - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deletePublishedDocumentContentCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/publications/{documentId}".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deletePublishedDocumentContentValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling deletePublishedDocumentContent(Async)"); - } - - return deletePublishedDocumentContentCall(documentId, siteId, _callback); - - } - - /** - * Delete published document's contents Delete a published document's contents. Certain - * content types, text/_*, application/json, and application/x-www-form-urlencoded. return the - * \"content\" field, while all other content types return a 'contentUrl' for - * retrieving the content. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deletePublishedDocumentContent(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - deletePublishedDocumentContentWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete published document's contents Delete a published document's contents. Certain - * content types, text/_*, application/json, and application/x-www-form-urlencoded. return the - * \"content\" field, while all other content types return a 'contentUrl' for - * retrieving the content. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deletePublishedDocumentContentWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = - deletePublishedDocumentContentValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete published document's contents (asynchronously) Delete a published document's - * contents. Certain content types, text/_*, application/json, and - * application/x-www-form-urlencoded. return the \"content\" field, while all other - * content types return a 'contentUrl' for retrieving the content. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deletePublishedDocumentContentAsync( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deletePublishedDocumentContentValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocument - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocument(Async)"); - } - - return getDocumentCall(documentId, siteId, shareKey, _callback); - - } - - /** - * Get document Retrieves a document's details, i.e., metadata - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentResponse getDocument(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - ApiResponse localVarResp = - getDocumentWithHttpInfo(documentId, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Get document Retrieves a document's details, i.e., metadata - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentValidateBeforeCall(documentId, siteId, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document (asynchronously) Retrieves a document's details, i.e., metadata - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentValidateBeforeCall(documentId, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentContent - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- * * Location -
- *
- */ - public okhttp3.Call getDocumentContentCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/content".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (versionKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("versionKey", versionKey)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentContentValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentContent(Async)"); - } - - return getDocumentContentCall(documentId, siteId, versionKey, shareKey, _callback); - - } - - /** - * Get document's contents Retrieves the content of the document with the specified - * `documentId`. - If the content is plain text and under 6 MB, the content will be - * returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. - * - For documents not in plain text format, pre-signed S3 URLs will be returned to download the - * content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint - * to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type - * of text/, application/json, application/x-www-form-urlencoded the content field will be - * returned. All other Content-Type, the contentUrl field will be returned, which is a S3 - * Presigned url. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentContentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- * * Location -
- *
- */ - public GetDocumentContentResponse getDocumentContent(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, - @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = - getDocumentContentWithHttpInfo(documentId, siteId, versionKey, shareKey); - return localVarResp.getData(); - } - - /** - * Get document's contents Retrieves the content of the document with the specified - * `documentId`. - If the content is plain text and under 6 MB, the content will be - * returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. - * - For documents not in plain text format, pre-signed S3 URLs will be returned to download the - * content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint - * to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type - * of text/, application/json, application/x-www-form-urlencoded the content field will be - * returned. All other Content-Type, the contentUrl field will be returned, which is a S3 - * Presigned url. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentContentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- * * Location -
- *
- */ - public ApiResponse getDocumentContentWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey) - throws ApiException { - okhttp3.Call localVarCall = - getDocumentContentValidateBeforeCall(documentId, siteId, versionKey, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document's contents (asynchronously) Retrieves the content of the document with the - * specified `documentId`. - If the content is plain text and under 6 MB, the content - * will be returned directly. - If the content is plain text but exceeds 6 MB, an error will be - * returned. - For documents not in plain text format, pre-signed S3 URLs will be returned to - * download the content from S3. It is recommended to use the - * `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for downloading - * the content. If the document has a Content-Type of text/, application/json, - * application/x-www-form-urlencoded the content field will be returned. All other Content-Type, - * the contentUrl field will be returned, which is a S3 Presigned url. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- * * Location -
- *
- */ - public okhttp3.Call getDocumentContentAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, - @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentContentValidateBeforeCall(documentId, siteId, versionKey, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentIdUpload - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentIdUploadCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, - @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/upload".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (checksumType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksumType", checksumType)); - } - - if (checksum != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksum", checksum)); - } - - if (contentLength != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); - } - - if (duration != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentIdUploadValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, - @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentIdUpload(Async)"); - } - - return getDocumentIdUploadCall(documentId, siteId, checksumType, checksum, contentLength, - duration, shareKey, _callback); - - } - - /** - * Get url to update large document Returns a URL that can be used to upload documents for a - * specific documentId; this endpoint is required in order to add content that is larger than 5 - * MB. If versions are enabled, this will create a new version of the document. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentUrlResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentUrlResponse getDocumentIdUpload(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, - @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) - throws ApiException { - ApiResponse localVarResp = getDocumentIdUploadWithHttpInfo(documentId, - siteId, checksumType, checksum, contentLength, duration, shareKey); - return localVarResp.getData(); - } - - /** - * Get url to update large document Returns a URL that can be used to upload documents for a - * specific documentId; this endpoint is required in order to add content that is larger than 5 - * MB. If versions are enabled, this will create a new version of the document. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentUrlResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentIdUploadWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, - @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, - @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentIdUploadValidateBeforeCall(documentId, siteId, - checksumType, checksum, contentLength, duration, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get url to update large document (asynchronously) Returns a URL that can be used to upload - * documents for a specific documentId; this endpoint is required in order to add content that is - * larger than 5 MB. If versions are enabled, this will create a new version of the document. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentIdUploadAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, - @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentIdUploadValidateBeforeCall(documentId, siteId, - checksumType, checksum, contentLength, duration, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentSyncs - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentSyncsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/syncs".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentSyncsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentSyncs(Async)"); + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocument + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocumentCall(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentRequest; + + // create path and map variables + String localVarPath = "/documents"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentValidateBeforeCall(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addDocumentRequest' is set + if (addDocumentRequest == null) { + throw new ApiException("Missing the required parameter 'addDocumentRequest' when calling addDocument(Async)"); + } + + return addDocumentCall(addDocumentRequest, siteId, shareKey, _callback); + + } + + /** + * Add new document + * Creates a new document; body may include document content if less than 5 MB. Returns a unique **documentId** used in subsequent operations. See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return AddDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddDocumentResponse addDocument(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = addDocumentWithHttpInfo(addDocumentRequest, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Add new document + * Creates a new document; body may include document content if less than 5 MB. Returns a unique **documentId** used in subsequent operations. See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<AddDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addDocumentWithHttpInfo(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = addDocumentValidateBeforeCall(addDocumentRequest, siteId, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add new document (asynchronously) + * Creates a new document; body may include document content if less than 5 MB. Returns a unique **documentId** used in subsequent operations. See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocumentAsync(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentValidateBeforeCall(addDocumentRequest, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addDocumentSync + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentSyncRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentSyncCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentSyncRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/syncs" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentSyncValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentSync(Async)"); + } + + return addDocumentSyncCall(documentId, siteId, addDocumentSyncRequest, _callback); + + } + + /** + * Add document sync to service + * Add a document to a service + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentSyncRequest (optional) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddResponse addDocumentSync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest) throws ApiException { + ApiResponse localVarResp = addDocumentSyncWithHttpInfo(documentId, siteId, addDocumentSyncRequest); + return localVarResp.getData(); + } + + /** + * Add document sync to service + * Add a document to a service + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentSyncRequest (optional) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addDocumentSyncWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest) throws ApiException { + okhttp3.Call localVarCall = addDocumentSyncValidateBeforeCall(documentId, siteId, addDocumentSyncRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add document sync to service (asynchronously) + * Add a document to a service + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentSyncRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentSyncAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentSyncValidateBeforeCall(documentId, siteId, addDocumentSyncRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addDocumentUpload + * @param addDocumentUploadRequest (required) + * @param siteId Site Identifier (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentUploadCall(@javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentUploadRequest; + + // create path and map variables + String localVarPath = "/documents/upload"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (contentLength != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); + } + + if (duration != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentUploadValidateBeforeCall(@javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addDocumentUploadRequest' is set + if (addDocumentUploadRequest == null) { + throw new ApiException("Missing the required parameter 'addDocumentUploadRequest' when calling addDocumentUpload(Async)"); + } + + return addDocumentUploadCall(addDocumentUploadRequest, siteId, contentLength, duration, shareKey, _callback); + + } + + /** + * Add large document + * Returns a URL that can be used to upload document content and create a new document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata at the same time as the document is created. + * @param addDocumentUploadRequest (required) + * @param siteId Site Identifier (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentUrlResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentUrlResponse addDocumentUpload(@javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = addDocumentUploadWithHttpInfo(addDocumentUploadRequest, siteId, contentLength, duration, shareKey); + return localVarResp.getData(); + } + + /** + * Add large document + * Returns a URL that can be used to upload document content and create a new document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata at the same time as the document is created. + * @param addDocumentUploadRequest (required) + * @param siteId Site Identifier (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentUrlResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addDocumentUploadWithHttpInfo(@javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = addDocumentUploadValidateBeforeCall(addDocumentUploadRequest, siteId, contentLength, duration, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add large document (asynchronously) + * Returns a URL that can be used to upload document content and create a new document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata at the same time as the document is created. + * @param addDocumentUploadRequest (required) + * @param siteId Site Identifier (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addDocumentUploadAsync(@javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentUploadValidateBeforeCall(addDocumentUploadRequest, siteId, contentLength, duration, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for compressDocuments + * @param documentsCompressRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call compressDocumentsCall(@javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = documentsCompressRequest; + + // create path and map variables + String localVarPath = "/documents/compress"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call compressDocumentsValidateBeforeCall(@javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentsCompressRequest' is set + if (documentsCompressRequest == null) { + throw new ApiException("Missing the required parameter 'documentsCompressRequest' when calling compressDocuments(Async)"); + } + + return compressDocumentsCall(documentsCompressRequest, siteId, _callback); + + } + + /** + * Compress multiple documents into a .zip file + * Compress documents into an .ZIP archive file, and returns a S3 presigned url for the location of the archive file. The operation is async and processing time depends on the number and size of documents included; a 404 status code is returned until the file is ready. + * @param documentsCompressRequest (required) + * @param siteId Site Identifier (optional) + * @return DocumentsCompressResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DocumentsCompressResponse compressDocuments(@javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = compressDocumentsWithHttpInfo(documentsCompressRequest, siteId); + return localVarResp.getData(); + } + + /** + * Compress multiple documents into a .zip file + * Compress documents into an .ZIP archive file, and returns a S3 presigned url for the location of the archive file. The operation is async and processing time depends on the number and size of documents included; a 404 status code is returned until the file is ready. + * @param documentsCompressRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DocumentsCompressResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse compressDocumentsWithHttpInfo(@javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = compressDocumentsValidateBeforeCall(documentsCompressRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Compress multiple documents into a .zip file (asynchronously) + * Compress documents into an .ZIP archive file, and returns a S3 presigned url for the location of the archive file. The operation is async and processing time depends on the number and size of documents included; a 404 status code is returned until the file is ready. + * @param documentsCompressRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call compressDocumentsAsync(@javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = compressDocumentsValidateBeforeCall(documentsCompressRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteDocument + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param softDelete Whether to soft delete document (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (softDelete != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("softDelete", softDelete)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocument(Async)"); + } + + return deleteDocumentCall(documentId, siteId, softDelete, _callback); + + } + + /** + * Delete document + * Delete a document's details, i.e., metadata, contents, etc SoftDelete: The SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, etc from being retrieved from all API requests. The document can be permanently deleted by calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the soft deleted documents. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param softDelete Whether to soft delete document (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteDocument(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete) throws ApiException { + ApiResponse localVarResp = deleteDocumentWithHttpInfo(documentId, siteId, softDelete); + return localVarResp.getData(); + } + + /** + * Delete document + * Delete a document's details, i.e., metadata, contents, etc SoftDelete: The SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, etc from being retrieved from all API requests. The document can be permanently deleted by calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the soft deleted documents. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param softDelete Whether to soft delete document (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentValidateBeforeCall(documentId, siteId, softDelete, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document (asynchronously) + * Delete a document's details, i.e., metadata, contents, etc SoftDelete: The SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, etc from being retrieved from all API requests. The document can be permanently deleted by calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the soft deleted documents. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param softDelete Whether to soft delete document (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentValidateBeforeCall(documentId, siteId, softDelete, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteDocumentCheckoutLegalHold + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentCheckoutLegalHoldCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/legalHold" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentCheckoutLegalHoldValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentCheckoutLegalHold(Async)"); + } + + return deleteDocumentCheckoutLegalHoldCall(documentId, siteId, _callback); + + } + + /** + * Delete document legal hold checkout + * Removes a legal hold checkout for the document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteDocumentCheckoutLegalHold(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteDocumentCheckoutLegalHoldWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete document legal hold checkout + * Removes a legal hold checkout for the document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteDocumentCheckoutLegalHoldWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document legal hold checkout (asynchronously) + * Removes a legal hold checkout for the document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteDocumentCheckoutLegalHoldAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deletePublishedDocumentContent + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deletePublishedDocumentContentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/publications/{documentId}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deletePublishedDocumentContentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling deletePublishedDocumentContent(Async)"); + } + + return deletePublishedDocumentContentCall(documentId, siteId, _callback); + + } + + /** + * Delete published document's contents + * Delete a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deletePublishedDocumentContent(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deletePublishedDocumentContentWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete published document's contents + * Delete a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deletePublishedDocumentContentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deletePublishedDocumentContentValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete published document's contents (asynchronously) + * Delete a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deletePublishedDocumentContentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deletePublishedDocumentContentValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocument + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocument(Async)"); + } + + return getDocumentCall(documentId, siteId, shareKey, _callback); + + } + + /** + * Get document + * Retrieves a document's details, i.e., metadata + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentResponse getDocument(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = getDocumentWithHttpInfo(documentId, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Get document + * Retrieves a document's details, i.e., metadata + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentValidateBeforeCall(documentId, siteId, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document (asynchronously) + * Retrieves a document's details, i.e., metadata + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentValidateBeforeCall(documentId, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocumentContent + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
* Location -
+ */ + public okhttp3.Call getDocumentContentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/content" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (versionKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("versionKey", versionKey)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentContentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentContent(Async)"); + } + + return getDocumentContentCall(documentId, siteId, versionKey, shareKey, _callback); + + } + + /** + * Get document's contents + * Retrieves the content of the document with the specified `documentId`. - If the content is plain text and under 6 MB, the content will be returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. - For documents not in plain text format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type of text/, application/json, application/x-www-form-urlencoded the content field will be returned. All other Content-Type, the contentUrl field will be returned, which is a S3 Presigned url. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentContentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
* Location -
+ */ + public GetDocumentContentResponse getDocumentContent(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = getDocumentContentWithHttpInfo(documentId, siteId, versionKey, shareKey); + return localVarResp.getData(); + } + + /** + * Get document's contents + * Retrieves the content of the document with the specified `documentId`. - If the content is plain text and under 6 MB, the content will be returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. - For documents not in plain text format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type of text/, application/json, application/x-www-form-urlencoded the content field will be returned. All other Content-Type, the contentUrl field will be returned, which is a S3 Presigned url. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentContentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
* Location -
+ */ + public ApiResponse getDocumentContentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentContentValidateBeforeCall(documentId, siteId, versionKey, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document's contents (asynchronously) + * Retrieves the content of the document with the specified `documentId`. - If the content is plain text and under 6 MB, the content will be returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. - For documents not in plain text format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type of text/, application/json, application/x-www-form-urlencoded the content field will be returned. All other Content-Type, the contentUrl field will be returned, which is a S3 Presigned url. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
* Location -
+ */ + public okhttp3.Call getDocumentContentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentContentValidateBeforeCall(documentId, siteId, versionKey, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocumentIdUpload + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentIdUploadCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/upload" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (checksumType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksumType", checksumType)); + } + + if (checksum != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksum", checksum)); + } + + if (contentLength != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); + } + + if (duration != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentIdUploadValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentIdUpload(Async)"); + } + + return getDocumentIdUploadCall(documentId, siteId, checksumType, checksum, contentLength, duration, shareKey, _callback); + + } + + /** + * Get url to update large document + * Returns a URL that can be used to upload documents for a specific documentId; this endpoint is required in order to add content that is larger than 5 MB. If versions are enabled, this will create a new version of the document. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentUrlResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentUrlResponse getDocumentIdUpload(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = getDocumentIdUploadWithHttpInfo(documentId, siteId, checksumType, checksum, contentLength, duration, shareKey); + return localVarResp.getData(); + } + + /** + * Get url to update large document + * Returns a URL that can be used to upload documents for a specific documentId; this endpoint is required in order to add content that is larger than 5 MB. If versions are enabled, this will create a new version of the document. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentUrlResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentIdUploadWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentIdUploadValidateBeforeCall(documentId, siteId, checksumType, checksum, contentLength, duration, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get url to update large document (asynchronously) + * Returns a URL that can be used to upload documents for a specific documentId; this endpoint is required in order to add content that is larger than 5 MB. If versions are enabled, this will create a new version of the document. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentIdUploadAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentIdUploadValidateBeforeCall(documentId, siteId, checksumType, checksum, contentLength, duration, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocumentSyncs + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentSyncsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/syncs" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentSyncsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentSyncs(Async)"); + } + + return getDocumentSyncsCall(documentId, siteId, limit, shareKey, _callback); + + } + + /** + * Get document syncs + * Retrieve the document syncs with external services status + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @return GetDocumentSyncResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentSyncResponse getDocumentSyncs(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = getDocumentSyncsWithHttpInfo(documentId, siteId, limit, shareKey); + return localVarResp.getData(); + } + + /** + * Get document syncs + * Retrieve the document syncs with external services status + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentSyncResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentSyncsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentSyncsValidateBeforeCall(documentId, siteId, limit, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document syncs (asynchronously) + * Retrieve the document syncs with external services status + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentSyncsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentSyncsValidateBeforeCall(documentId, siteId, limit, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocumentUpload + * @param path The upload file's path (optional) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentUploadCall(@javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/upload"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (checksumType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksumType", checksumType)); + } + + if (checksum != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksum", checksum)); + } + + if (contentLength != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); + } + + if (duration != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentUploadValidateBeforeCall(@javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + return getDocumentUploadCall(path, siteId, checksumType, checksum, contentLength, duration, shareKey, _callback); + + } + + /** + * Get url to add large document + * Returns a URL that can be used to upload document content and create a new document; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB + * @param path The upload file's path (optional) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentUrlResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentUrlResponse getDocumentUpload(@javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = getDocumentUploadWithHttpInfo(path, siteId, checksumType, checksum, contentLength, duration, shareKey); + return localVarResp.getData(); + } + + /** + * Get url to add large document + * Returns a URL that can be used to upload document content and create a new document; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB + * @param path The upload file's path (optional) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentUrlResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentUploadWithHttpInfo(@javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentUploadValidateBeforeCall(path, siteId, checksumType, checksum, contentLength, duration, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get url to add large document (asynchronously) + * Returns a URL that can be used to upload document content and create a new document; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB + * @param path The upload file's path (optional) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentUploadAsync(@javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentUploadValidateBeforeCall(path, siteId, checksumType, checksum, contentLength, duration, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocumentUrl + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param inline Set the Content-Disposition to inline (optional, default to false) + * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN permissions) (optional, default to false) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentUrlCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/url" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (versionKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("versionKey", versionKey)); + } + + if (duration != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + if (inline != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("inline", inline)); + } + + if (bypassWatermark != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("bypassWatermark", bypassWatermark)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentUrlValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentUrl(Async)"); + } + + return getDocumentUrlCall(documentId, siteId, versionKey, duration, shareKey, inline, bypassWatermark, _callback); + + } + + /** + * Get document content url + * Returns a URL for the document's contents; this URL will expire (the default is 48 hours) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param inline Set the Content-Disposition to inline (optional, default to false) + * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN permissions) (optional, default to false) + * @return GetDocumentUrlResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentUrlResponse getDocumentUrl(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark) throws ApiException { + ApiResponse localVarResp = getDocumentUrlWithHttpInfo(documentId, siteId, versionKey, duration, shareKey, inline, bypassWatermark); + return localVarResp.getData(); + } + + /** + * Get document content url + * Returns a URL for the document's contents; this URL will expire (the default is 48 hours) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param inline Set the Content-Disposition to inline (optional, default to false) + * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN permissions) (optional, default to false) + * @return ApiResponse<GetDocumentUrlResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentUrlWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark) throws ApiException { + okhttp3.Call localVarCall = getDocumentUrlValidateBeforeCall(documentId, siteId, versionKey, duration, shareKey, inline, bypassWatermark, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document content url (asynchronously) + * Returns a URL for the document's contents; this URL will expire (the default is 48 hours) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param inline Set the Content-Disposition to inline (optional, default to false) + * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN permissions) (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentUrlAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentUrlValidateBeforeCall(documentId, siteId, versionKey, duration, shareKey, inline, bypassWatermark, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDocuments + * @param siteId Site Identifier (optional) + * @param actionStatus Fetch documents with an action status (optional) + * @param syncStatus Fetch documents with an sync status (optional) + * @param deleted Fetch soft deleted documents (optional) + * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) + * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (actionStatus != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("actionStatus", actionStatus)); + } + + if (syncStatus != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("syncStatus", syncStatus)); + } + + if (deleted != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("deleted", deleted)); + } + + if (date != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("date", date)); + } + + if (tz != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tz", tz)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentsValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + return getDocumentsCall(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit, _callback); + + } + + /** + * Get Documents listing + * Returns a list of the most recent documents added, ordered by inserted, descending + * @param siteId Site Identifier (optional) + * @param actionStatus Fetch documents with an action status (optional) + * @param syncStatus Fetch documents with an sync status (optional) + * @param deleted Fetch soft deleted documents (optional) + * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) + * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetDocumentsResponse getDocuments(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getDocumentsWithHttpInfo(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit); + return localVarResp.getData(); + } + + /** + * Get Documents listing + * Returns a list of the most recent documents added, ordered by inserted, descending + * @param siteId Site Identifier (optional) + * @param actionStatus Fetch documents with an action status (optional) + * @param syncStatus Fetch documents with an sync status (optional) + * @param deleted Fetch soft deleted documents (optional) + * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) + * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentsWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getDocumentsValidateBeforeCall(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Documents listing (asynchronously) + * Returns a list of the most recent documents added, ordered by inserted, descending + * @param siteId Site Identifier (optional) + * @param actionStatus Fetch documents with an action status (optional) + * @param syncStatus Fetch documents with an sync status (optional) + * @param deleted Fetch soft deleted documents (optional) + * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) + * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentsValidateBeforeCall(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getPublishedDocumentContent + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
307 Temporary Redirect * Location -
+ */ + public okhttp3.Call getPublishedDocumentContentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/publications/{documentId}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getPublishedDocumentContentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getPublishedDocumentContent(Async)"); + } + + return getPublishedDocumentContentCall(documentId, siteId, _callback); + + } + + /** + * Get published document's contents + * Get a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
307 Temporary Redirect * Location -
+ */ + public void getPublishedDocumentContent(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + getPublishedDocumentContentWithHttpInfo(documentId, siteId); + } + + /** + * Get published document's contents + * Get a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
307 Temporary Redirect * Location -
+ */ + public ApiResponse getPublishedDocumentContentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getPublishedDocumentContentValidateBeforeCall(documentId, siteId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Get published document's contents (asynchronously) + * Get a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
307 Temporary Redirect * Location -
+ */ + public okhttp3.Call getPublishedDocumentContentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getPublishedDocumentContentValidateBeforeCall(documentId, siteId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for purgeDocument + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call purgeDocumentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/purge" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call purgeDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling purgeDocument(Async)"); + } + + return purgeDocumentCall(documentId, siteId, _callback); + + } + + /** + * Purge document + * Remove all objects from the S3 bucket, including previous versions and current version, and should remove all metadata as well, so that no trace of the document exists outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse purgeDocument(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = purgeDocumentWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Purge document + * Remove all objects from the S3 bucket, including previous versions and current version, and should remove all metadata as well, so that no trace of the document exists outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse purgeDocumentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = purgeDocumentValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Purge document (asynchronously) + * Remove all objects from the S3 bucket, including previous versions and current version, and should remove all metadata as well, so that no trace of the document exists outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call purgeDocumentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = purgeDocumentValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setDocumentCheckout + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentCheckoutCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/checkout" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentCheckoutValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentCheckout(Async)"); + } + + return setDocumentCheckoutCall(documentId, siteId, _callback); + + } + + /** + * Perform document checkout + * Creates a checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setDocumentCheckout(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setDocumentCheckoutWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Perform document checkout + * Creates a checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setDocumentCheckoutWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentCheckoutValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Perform document checkout (asynchronously) + * Creates a checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentCheckoutAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentCheckoutValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setDocumentCheckoutLegalHold + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentCheckoutLegalHoldCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/legalHold" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentCheckoutLegalHoldValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentCheckoutLegalHold(Async)"); + } + + return setDocumentCheckoutLegalHoldCall(documentId, siteId, _callback); + + } + + /** + * Perform document legal hold checkout + * Creates a legal hold checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setDocumentCheckoutLegalHold(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setDocumentCheckoutLegalHoldWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Perform document legal hold checkout + * Creates a legal hold checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setDocumentCheckoutLegalHoldWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Perform document legal hold checkout (asynchronously) + * Creates a legal hold checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentCheckoutLegalHoldAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setDocumentRestore + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentRestoreCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/restore" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentRestoreValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentRestore(Async)"); + } + + return setDocumentRestoreCall(documentId, siteId, _callback); + + } + + /** + * Restore soft deleted document + * Restores a soft deleted document + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return SetDocumentRestoreResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetDocumentRestoreResponse setDocumentRestore(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setDocumentRestoreWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Restore soft deleted document + * Restores a soft deleted document + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetDocumentRestoreResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setDocumentRestoreWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentRestoreValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Restore soft deleted document (asynchronously) + * Restores a soft deleted document + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setDocumentRestoreAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentRestoreValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateDocument + * @param documentId Document Identifier (required) + * @param updateDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateDocumentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateDocumentRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling updateDocument(Async)"); + } + + // verify the required parameter 'updateDocumentRequest' is set + if (updateDocumentRequest == null) { + throw new ApiException("Missing the required parameter 'updateDocumentRequest' when calling updateDocument(Async)"); + } + + return updateDocumentCall(documentId, updateDocumentRequest, siteId, shareKey, _callback); + + } + + /** + * Update document + * Update a document's details, i.e., metadata If no content is specified, the endpoint will return a S3 Presigned that will allow for the uploading of Large document data. NOTE: - provided attributes will overwrite existing matching attribute keys in the document. Attributes not included in the request body will remain unchanged. + * @param documentId Document Identifier (required) + * @param updateDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return AddDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddDocumentResponse updateDocument(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = updateDocumentWithHttpInfo(documentId, updateDocumentRequest, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Update document + * Update a document's details, i.e., metadata If no content is specified, the endpoint will return a S3 Presigned that will allow for the uploading of Large document data. NOTE: - provided attributes will overwrite existing matching attribute keys in the document. Attributes not included in the request body will remain unchanged. + * @param documentId Document Identifier (required) + * @param updateDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<AddDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse updateDocumentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = updateDocumentValidateBeforeCall(documentId, updateDocumentRequest, siteId, shareKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update document (asynchronously) + * Update a document's details, i.e., metadata If no content is specified, the endpoint will return a S3 Presigned that will allow for the uploading of Large document data. NOTE: - provided attributes will overwrite existing matching attribute keys in the document. Attributes not included in the request body will remain unchanged. + * @param documentId Document Identifier (required) + * @param updateDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateDocumentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateDocumentValidateBeforeCall(documentId, updateDocumentRequest, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return getDocumentSyncsCall(documentId, siteId, limit, shareKey, _callback); - - } - - /** - * Get document syncs Retrieve the document syncs with external services status - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @return GetDocumentSyncResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentSyncResponse getDocumentSyncs(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = - getDocumentSyncsWithHttpInfo(documentId, siteId, limit, shareKey); - return localVarResp.getData(); - } - - /** - * Get document syncs Retrieve the document syncs with external services status - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentSyncResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentSyncsWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey) - throws ApiException { - okhttp3.Call localVarCall = - getDocumentSyncsValidateBeforeCall(documentId, siteId, limit, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document syncs (asynchronously) Retrieve the document syncs with external services status - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentSyncsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentSyncsValidateBeforeCall(documentId, siteId, limit, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentUpload - * - * @param path The upload file's path (optional) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentUploadCall(@javax.annotation.Nullable String path, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, - @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/upload"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (path != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); - } - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (checksumType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksumType", checksumType)); - } - - if (checksum != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksum", checksum)); - } - - if (contentLength != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); - } - - if (duration != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentUploadValidateBeforeCall(@javax.annotation.Nullable String path, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, - @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - return getDocumentUploadCall(path, siteId, checksumType, checksum, contentLength, duration, - shareKey, _callback); - - } - - /** - * Get url to add large document Returns a URL that can be used to upload document content and - * create a new document; this endpoint (whether GET or POST) is required in order to add content - * that is larger than 5 MB - * - * @param path The upload file's path (optional) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentUrlResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentUrlResponse getDocumentUpload(@javax.annotation.Nullable String path, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, - @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) - throws ApiException { - ApiResponse localVarResp = getDocumentUploadWithHttpInfo(path, siteId, - checksumType, checksum, contentLength, duration, shareKey); - return localVarResp.getData(); - } - - /** - * Get url to add large document Returns a URL that can be used to upload document content and - * create a new document; this endpoint (whether GET or POST) is required in order to add content - * that is larger than 5 MB - * - * @param path The upload file's path (optional) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentUrlResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentUploadWithHttpInfo( - @javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, - @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, - @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentUploadValidateBeforeCall(path, siteId, checksumType, - checksum, contentLength, duration, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get url to add large document (asynchronously) Returns a URL that can be used to upload - * document content and create a new document; this endpoint (whether GET or POST) is required in - * order to add content that is larger than 5 MB - * - * @param path The upload file's path (optional) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentUploadAsync(@javax.annotation.Nullable String path, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, - @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentUploadValidateBeforeCall(path, siteId, checksumType, - checksum, contentLength, duration, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocumentUrl - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param inline Set the Content-Disposition to inline (optional, default to false) - * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN - * permissions) (optional, default to false) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentUrlCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/url".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (versionKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("versionKey", versionKey)); - } - - if (duration != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - if (inline != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("inline", inline)); - } - - if (bypassWatermark != null) { - localVarQueryParams - .addAll(localVarApiClient.parameterToPair("bypassWatermark", bypassWatermark)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentUrlValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentUrl(Async)"); - } - - return getDocumentUrlCall(documentId, siteId, versionKey, duration, shareKey, inline, - bypassWatermark, _callback); - - } - - /** - * Get document content url Returns a URL for the document's contents; this URL will expire - * (the default is 48 hours) - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param inline Set the Content-Disposition to inline (optional, default to false) - * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN - * permissions) (optional, default to false) - * @return GetDocumentUrlResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentUrlResponse getDocumentUrl(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark) - throws ApiException { - ApiResponse localVarResp = getDocumentUrlWithHttpInfo(documentId, - siteId, versionKey, duration, shareKey, inline, bypassWatermark); - return localVarResp.getData(); - } - - /** - * Get document content url Returns a URL for the document's contents; this URL will expire - * (the default is 48 hours) - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param inline Set the Content-Disposition to inline (optional, default to false) - * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN - * permissions) (optional, default to false) - * @return ApiResponse<GetDocumentUrlResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentUrlWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, - @javax.annotation.Nullable Boolean bypassWatermark) throws ApiException { - okhttp3.Call localVarCall = getDocumentUrlValidateBeforeCall(documentId, siteId, versionKey, - duration, shareKey, inline, bypassWatermark, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document content url (asynchronously) Returns a URL for the document's contents; this - * URL will expire (the default is 48 hours) - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param inline Set the Content-Disposition to inline (optional, default to false) - * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN - * permissions) (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentUrlAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, - @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentUrlValidateBeforeCall(documentId, siteId, versionKey, - duration, shareKey, inline, bypassWatermark, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getDocuments - * - * @param siteId Site Identifier (optional) - * @param actionStatus Fetch documents with an action status (optional) - * @param syncStatus Fetch documents with an sync status (optional) - * @param deleted Fetch soft deleted documents (optional) - * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) - * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentsCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, - @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, - @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (actionStatus != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("actionStatus", actionStatus)); - } - - if (syncStatus != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("syncStatus", syncStatus)); - } - - if (deleted != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("deleted", deleted)); - } - - if (date != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("date", date)); - } - - if (tz != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tz", tz)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (previous != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentsValidateBeforeCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, - @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, - @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - return getDocumentsCall(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, - limit, _callback); - - } - - /** - * Get Documents listing Returns a list of the most recent documents added, ordered by inserted, - * descending - * - * @param siteId Site Identifier (optional) - * @param actionStatus Fetch documents with an action status (optional) - * @param syncStatus Fetch documents with an sync status (optional) - * @param deleted Fetch soft deleted documents (optional) - * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) - * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetDocumentsResponse getDocuments(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, - @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, - @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = getDocumentsWithHttpInfo(siteId, actionStatus, - syncStatus, deleted, date, tz, next, previous, limit); - return localVarResp.getData(); - } - - /** - * Get Documents listing Returns a list of the most recent documents added, ordered by inserted, - * descending - * - * @param siteId Site Identifier (optional) - * @param actionStatus Fetch documents with an action status (optional) - * @param syncStatus Fetch documents with an sync status (optional) - * @param deleted Fetch soft deleted documents (optional) - * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) - * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentsWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, - @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, - @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getDocumentsValidateBeforeCall(siteId, actionStatus, syncStatus, - deleted, date, tz, next, previous, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Documents listing (asynchronously) Returns a list of the most recent documents added, - * ordered by inserted, descending - * - * @param siteId Site Identifier (optional) - * @param actionStatus Fetch documents with an action status (optional) - * @param syncStatus Fetch documents with an sync status (optional) - * @param deleted Fetch soft deleted documents (optional) - * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) - * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentsAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, - @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, - @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentsValidateBeforeCall(siteId, actionStatus, syncStatus, - deleted, date, tz, next, previous, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getPublishedDocumentContent - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
307Temporary Redirect* Location -
- *
- */ - public okhttp3.Call getPublishedDocumentContentCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/publications/{documentId}".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getPublishedDocumentContentValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getPublishedDocumentContent(Async)"); - } - - return getPublishedDocumentContentCall(documentId, siteId, _callback); - - } - - /** - * Get published document's contents Get a published document's contents. Certain content - * types, text/_*, application/json, and application/x-www-form-urlencoded. return the - * \"content\" field, while all other content types return a 'contentUrl' for - * retrieving the content. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
307Temporary Redirect* Location -
- *
- */ - public void getPublishedDocumentContent(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - getPublishedDocumentContentWithHttpInfo(documentId, siteId); - } - - /** - * Get published document's contents Get a published document's contents. Certain content - * types, text/_*, application/json, and application/x-www-form-urlencoded. return the - * \"content\" field, while all other content types return a 'contentUrl' for - * retrieving the content. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
307Temporary Redirect* Location -
- *
- */ - public ApiResponse getPublishedDocumentContentWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = - getPublishedDocumentContentValidateBeforeCall(documentId, siteId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Get published document's contents (asynchronously) Get a published document's contents. - * Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return - * the \"content\" field, while all other content types return a 'contentUrl' - * for retrieving the content. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
307Temporary Redirect* Location -
- *
- */ - public okhttp3.Call getPublishedDocumentContentAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - getPublishedDocumentContentValidateBeforeCall(documentId, siteId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - - /** - * Build call for purgeDocument - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call purgeDocumentCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/purge".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call purgeDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling purgeDocument(Async)"); - } - - return purgeDocumentCall(documentId, siteId, _callback); - - } - - /** - * Purge document Remove all objects from the S3 bucket, including previous versions and current - * version, and should remove all metadata as well, so that no trace of the document exists - * outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse purgeDocument(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = purgeDocumentWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Purge document Remove all objects from the S3 bucket, including previous versions and current - * version, and should remove all metadata as well, so that no trace of the document exists - * outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse purgeDocumentWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = purgeDocumentValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Purge document (asynchronously) Remove all objects from the S3 bucket, including previous - * versions and current version, and should remove all metadata as well, so that no trace of the - * document exists outside of the audit logs and any backups. Can only be called be ADMIN or - * GOVERN. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call purgeDocumentAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = purgeDocumentValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentCheckout - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentCheckoutCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/checkout".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentCheckoutValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentCheckout(Async)"); - } - - return setDocumentCheckoutCall(documentId, siteId, _callback); - - } - - /** - * Perform document checkout Creates a checkout for the document. Fails with **409 Conflict** if - * the document is already checkedout by another user; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setDocumentCheckout(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setDocumentCheckoutWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Perform document checkout Creates a checkout for the document. Fails with **409 Conflict** if - * the document is already checkedout by another user; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setDocumentCheckoutWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = setDocumentCheckoutValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Perform document checkout (asynchronously) Creates a checkout for the document. Fails with - * **409 Conflict** if the document is already checkedout by another user; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentCheckoutAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - setDocumentCheckoutValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentCheckoutLegalHold - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentCheckoutLegalHoldCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/legalHold".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentCheckoutLegalHoldValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentCheckoutLegalHold(Async)"); - } - - return setDocumentCheckoutLegalHoldCall(documentId, siteId, _callback); - - } - - /** - * Perform document legal hold checkout Creates a legal hold checkout for the document. Fails with - * **409 Conflict** if the document is already checkedout by another user; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setDocumentCheckoutLegalHold(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - setDocumentCheckoutLegalHoldWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Perform document legal hold checkout Creates a legal hold checkout for the document. Fails with - * **409 Conflict** if the document is already checkedout by another user; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setDocumentCheckoutLegalHoldWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = - setDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Perform document legal hold checkout (asynchronously) Creates a legal hold checkout for the - * document. Fails with **409 Conflict** if the document is already checkedout by another user; - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentCheckoutLegalHoldAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - setDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setDocumentRestore - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentRestoreCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/restore".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentRestoreValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setDocumentRestore(Async)"); - } - - return setDocumentRestoreCall(documentId, siteId, _callback); - - } - - /** - * Restore soft deleted document Restores a soft deleted document - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return SetDocumentRestoreResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetDocumentRestoreResponse setDocumentRestore(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - setDocumentRestoreWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Restore soft deleted document Restores a soft deleted document - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetDocumentRestoreResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setDocumentRestoreWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = setDocumentRestoreValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Restore soft deleted document (asynchronously) Restores a soft deleted document - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setDocumentRestoreAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentRestoreValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateDocument - * - * @param documentId Document Identifier (required) - * @param updateDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateDocumentCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateDocumentRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling updateDocument(Async)"); - } - - // verify the required parameter 'updateDocumentRequest' is set - if (updateDocumentRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateDocumentRequest' when calling updateDocument(Async)"); - } - - return updateDocumentCall(documentId, updateDocumentRequest, siteId, shareKey, _callback); - - } - - /** - * Update document Update a document's details, i.e., metadata If no content is specified, the - * endpoint will return a S3 Presigned that will allow for the uploading of Large document data. - * NOTE: - provided attributes will overwrite existing matching attribute keys in the document. - * Attributes not included in the request body will remain unchanged. - * - * @param documentId Document Identifier (required) - * @param updateDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return AddDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddDocumentResponse updateDocument(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - ApiResponse localVarResp = - updateDocumentWithHttpInfo(documentId, updateDocumentRequest, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Update document Update a document's details, i.e., metadata If no content is specified, the - * endpoint will return a S3 Presigned that will allow for the uploading of Large document data. - * NOTE: - provided attributes will overwrite existing matching attribute keys in the document. - * Attributes not included in the request body will remain unchanged. - * - * @param documentId Document Identifier (required) - * @param updateDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<AddDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse updateDocumentWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) - throws ApiException { - okhttp3.Call localVarCall = - updateDocumentValidateBeforeCall(documentId, updateDocumentRequest, siteId, shareKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update document (asynchronously) Update a document's details, i.e., metadata If no content - * is specified, the endpoint will return a S3 Presigned that will allow for the uploading of - * Large document data. NOTE: - provided attributes will overwrite existing matching attribute - * keys in the document. Attributes not included in the request body will remain unchanged. - * - * @param documentId Document Identifier (required) - * @param updateDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateDocumentAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateDocumentValidateBeforeCall(documentId, updateDocumentRequest, - siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/ESignatureApi.java b/src/main/java/com/formkiq/client/api/ESignatureApi.java index 4bbd4d8ba..c9a96f496 100644 --- a/src/main/java/com/formkiq/client/api/ESignatureApi.java +++ b/src/main/java/com/formkiq/client/api/ESignatureApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -48,691 +41,465 @@ import java.util.Map; public class ESignatureApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public ESignatureApi() { - this(Configuration.getDefaultApiClient()); - } - - public ESignatureApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocusignEnvelopes - * - * @param documentId Document Identifier (required) - * @param addDocusignEnvelopesRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocusignEnvelopesCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - Object localVarPostBody = addDocusignEnvelopesRequest; + public ESignatureApi() { + this(Configuration.getDefaultApiClient()); + } - // create path and map variables - String localVarPath = "/esignature/docusign/{documentId}/envelopes" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + public ESignatureApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public ApiClient getApiClient() { + return localVarApiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocusignEnvelopesValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocusignEnvelopes(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - // verify the required parameter 'addDocusignEnvelopesRequest' is set - if (addDocusignEnvelopesRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocusignEnvelopesRequest' when calling addDocusignEnvelopes(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - return addDocusignEnvelopesCall(documentId, addDocusignEnvelopesRequest, siteId, _callback); - - } - - /** - * Create Docusign Envelope request DocuSign create Docusign Envelope request; available as an - * Add-On Module - * - * @param documentId Document Identifier (required) - * @param addDocusignEnvelopesRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocusignEnvelopesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddDocusignEnvelopesResponse addDocusignEnvelopes( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addDocusignEnvelopesWithHttpInfo(documentId, addDocusignEnvelopesRequest, siteId); - return localVarResp.getData(); - } - - /** - * Create Docusign Envelope request DocuSign create Docusign Envelope request; available as an - * Add-On Module - * - * @param documentId Document Identifier (required) - * @param addDocusignEnvelopesRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocusignEnvelopesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addDocusignEnvelopesWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocusignEnvelopesValidateBeforeCall(documentId, - addDocusignEnvelopesRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Create Docusign Envelope request (asynchronously) DocuSign create Docusign Envelope request; - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param addDocusignEnvelopesRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocusignEnvelopesAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocusignEnvelopesValidateBeforeCall(documentId, - addDocusignEnvelopesRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addDocusignRecipientView - * - * @param documentId Document Identifier (required) - * @param envelopeId Docusign Envelope Id (required) - * @param addDocusignRecipientViewRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocusignRecipientViewCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String envelopeId, - @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addDocusignEnvelopes + * @param documentId Document Identifier (required) + * @param addDocusignEnvelopesRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocusignEnvelopesCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocusignEnvelopesRequest; + + // create path and map variables + String localVarPath = "/esignature/docusign/{documentId}/envelopes" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = addDocusignRecipientViewRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocusignEnvelopesValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocusignEnvelopes(Async)"); + } - // create path and map variables - String localVarPath = "/esignature/docusign/{documentId}/envelopes/{envelopeId}/views/recipient" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "envelopeId" + "}", localVarApiClient.escapeString(envelopeId.toString())); + // verify the required parameter 'addDocusignEnvelopesRequest' is set + if (addDocusignEnvelopesRequest == null) { + throw new ApiException("Missing the required parameter 'addDocusignEnvelopesRequest' when calling addDocusignEnvelopes(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addDocusignEnvelopesCall(documentId, addDocusignEnvelopesRequest, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Create Docusign Envelope request + * DocuSign create Docusign Envelope request; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addDocusignEnvelopesRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocusignEnvelopesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddDocusignEnvelopesResponse addDocusignEnvelopes(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addDocusignEnvelopesWithHttpInfo(documentId, addDocusignEnvelopesRequest, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Create Docusign Envelope request + * DocuSign create Docusign Envelope request; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addDocusignEnvelopesRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocusignEnvelopesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addDocusignEnvelopesWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocusignEnvelopesValidateBeforeCall(documentId, addDocusignEnvelopesRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocusignRecipientViewValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, - @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addDocusignRecipientView(Async)"); + /** + * Create Docusign Envelope request (asynchronously) + * DocuSign create Docusign Envelope request; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addDocusignEnvelopesRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocusignEnvelopesAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocusignEnvelopesValidateBeforeCall(documentId, addDocusignEnvelopesRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } + /** + * Build call for addDocusignRecipientView + * @param documentId Document Identifier (required) + * @param envelopeId Docusign Envelope Id (required) + * @param addDocusignRecipientViewRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocusignRecipientViewCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocusignRecipientViewRequest; + + // create path and map variables + String localVarPath = "/esignature/docusign/{documentId}/envelopes/{envelopeId}/views/recipient" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "envelopeId" + "}", localVarApiClient.escapeString(envelopeId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocusignRecipientViewValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addDocusignRecipientView(Async)"); + } + + // verify the required parameter 'envelopeId' is set + if (envelopeId == null) { + throw new ApiException("Missing the required parameter 'envelopeId' when calling addDocusignRecipientView(Async)"); + } + + // verify the required parameter 'addDocusignRecipientViewRequest' is set + if (addDocusignRecipientViewRequest == null) { + throw new ApiException("Missing the required parameter 'addDocusignRecipientViewRequest' when calling addDocusignRecipientView(Async)"); + } + + return addDocusignRecipientViewCall(documentId, envelopeId, addDocusignRecipientViewRequest, siteId, _callback); - // verify the required parameter 'envelopeId' is set - if (envelopeId == null) { - throw new ApiException( - "Missing the required parameter 'envelopeId' when calling addDocusignRecipientView(Async)"); } - // verify the required parameter 'addDocusignRecipientViewRequest' is set - if (addDocusignRecipientViewRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocusignRecipientViewRequest' when calling addDocusignRecipientView(Async)"); + /** + * Create Docusign Recipient View request + * DocuSign create Docusign Recipient View request; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param envelopeId Docusign Envelope Id (required) + * @param addDocusignRecipientViewRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocusignRecipientViewResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddDocusignRecipientViewResponse addDocusignRecipientView(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addDocusignRecipientViewWithHttpInfo(documentId, envelopeId, addDocusignRecipientViewRequest, siteId); + return localVarResp.getData(); } - return addDocusignRecipientViewCall(documentId, envelopeId, addDocusignRecipientViewRequest, - siteId, _callback); - - } - - /** - * Create Docusign Recipient View request DocuSign create Docusign Recipient View request; - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param envelopeId Docusign Envelope Id (required) - * @param addDocusignRecipientViewRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocusignRecipientViewResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddDocusignRecipientViewResponse addDocusignRecipientView( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, - @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addDocusignRecipientViewWithHttpInfo(documentId, envelopeId, - addDocusignRecipientViewRequest, siteId); - return localVarResp.getData(); - } - - /** - * Create Docusign Recipient View request DocuSign create Docusign Recipient View request; - * available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param envelopeId Docusign Envelope Id (required) - * @param addDocusignRecipientViewRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocusignRecipientViewResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addDocusignRecipientViewWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, - @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocusignRecipientViewValidateBeforeCall(documentId, envelopeId, - addDocusignRecipientViewRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Create Docusign Recipient View request (asynchronously) DocuSign create Docusign Recipient View - * request; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param envelopeId Docusign Envelope Id (required) - * @param addDocusignRecipientViewRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addDocusignRecipientViewAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull String envelopeId, - @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocusignRecipientViewValidateBeforeCall(documentId, envelopeId, - addDocusignRecipientViewRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addEsignatureDocusignEvents - * - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addEsignatureDocusignEventsCall(final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Create Docusign Recipient View request + * DocuSign create Docusign Recipient View request; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param envelopeId Docusign Envelope Id (required) + * @param addDocusignRecipientViewRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocusignRecipientViewResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addDocusignRecipientViewWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocusignRecipientViewValidateBeforeCall(documentId, envelopeId, addDocusignRecipientViewRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = null; + /** + * Create Docusign Recipient View request (asynchronously) + * DocuSign create Docusign Recipient View request; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param envelopeId Docusign Envelope Id (required) + * @param addDocusignRecipientViewRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addDocusignRecipientViewAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocusignRecipientViewValidateBeforeCall(documentId, envelopeId, addDocusignRecipientViewRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addEsignatureDocusignEvents + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addEsignatureDocusignEventsCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/esignature/docusign/events"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/esignature/docusign/events"; + @SuppressWarnings("rawtypes") + private okhttp3.Call addEsignatureDocusignEventsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return addEsignatureDocusignEventsCall(_callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add E-signature event + * DocuSign callback URL handler; available as an Add-On Module + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddResponse addEsignatureDocusignEvents() throws ApiException { + ApiResponse localVarResp = addEsignatureDocusignEventsWithHttpInfo(); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add E-signature event + * DocuSign callback URL handler; available as an Add-On Module + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addEsignatureDocusignEventsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = addEsignatureDocusignEventsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addEsignatureDocusignEventsValidateBeforeCall(final ApiCallback _callback) - throws ApiException { - return addEsignatureDocusignEventsCall(_callback); - - } - - /** - * Add E-signature event DocuSign callback URL handler; available as an Add-On Module - * - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddResponse addEsignatureDocusignEvents() throws ApiException { - ApiResponse localVarResp = addEsignatureDocusignEventsWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Add E-signature event DocuSign callback URL handler; available as an Add-On Module - * - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addEsignatureDocusignEventsWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = addEsignatureDocusignEventsValidateBeforeCall(null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add E-signature event (asynchronously) DocuSign callback URL handler; available as an Add-On - * Module - * - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addEsignatureDocusignEventsAsync(final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = addEsignatureDocusignEventsValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Add E-signature event (asynchronously) + * DocuSign callback URL handler; available as an Add-On Module + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addEsignatureDocusignEventsAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addEsignatureDocusignEventsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/EntityApi.java b/src/main/java/com/formkiq/client/api/EntityApi.java index 5b5a507c5..5d1668388 100644 --- a/src/main/java/com/formkiq/client/api/EntityApi.java +++ b/src/main/java/com/formkiq/client/api/EntityApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -54,2020 +47,1387 @@ import java.util.Map; public class EntityApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public EntityApi() { - this(Configuration.getDefaultApiClient()); - } - - public EntityApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addEntity - * - * @param entityTypeId EntityType Identifier (required) - * @param addEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addEntityCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull AddEntityRequest addEntityRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addEntityRequest; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - // create path and map variables - String localVarPath = "/entities/{entityTypeId}".replace("{" + "entityTypeId" + "}", - localVarApiClient.escapeString(entityTypeId.toString())); + public EntityApi() { + this(Configuration.getDefaultApiClient()); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public EntityApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public ApiClient getApiClient() { + return localVarApiClient; } - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull AddEntityRequest addEntityRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException( - "Missing the required parameter 'entityTypeId' when calling addEntity(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - // verify the required parameter 'addEntityRequest' is set - if (addEntityRequest == null) { - throw new ApiException( - "Missing the required parameter 'addEntityRequest' when calling addEntity(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - return addEntityCall(entityTypeId, addEntityRequest, siteId, namespace, _callback); - - } - - /** - * Add New Entity Creates a Entity - * - * @param entityTypeId EntityType Identifier (required) - * @param addEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return AddEntityResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddEntityResponse addEntity(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull AddEntityRequest addEntityRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) - throws ApiException { - ApiResponse localVarResp = - addEntityWithHttpInfo(entityTypeId, addEntityRequest, siteId, namespace); - return localVarResp.getData(); - } - - /** - * Add New Entity Creates a Entity - * - * @param entityTypeId EntityType Identifier (required) - * @param addEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return ApiResponse<AddEntityResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addEntityWithHttpInfo( - @javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull AddEntityRequest addEntityRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) - throws ApiException { - okhttp3.Call localVarCall = - addEntityValidateBeforeCall(entityTypeId, addEntityRequest, siteId, namespace, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New Entity (asynchronously) Creates a Entity - * - * @param entityTypeId EntityType Identifier (required) - * @param addEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addEntityAsync(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull AddEntityRequest addEntityRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - addEntityValidateBeforeCall(entityTypeId, addEntityRequest, siteId, namespace, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addEntityType - * - * @param addEntityTypeRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addEntityTypeCall( - @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addEntity + * @param entityTypeId EntityType Identifier (required) + * @param addEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addEntityCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull AddEntityRequest addEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addEntityRequest; + + // create path and map variables + String localVarPath = "/entities/{entityTypeId}" + .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = addEntityTypeRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call addEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull AddEntityRequest addEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException("Missing the required parameter 'entityTypeId' when calling addEntity(Async)"); + } - // create path and map variables - String localVarPath = "/entityTypes"; + // verify the required parameter 'addEntityRequest' is set + if (addEntityRequest == null) { + throw new ApiException("Missing the required parameter 'addEntityRequest' when calling addEntity(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addEntityCall(entityTypeId, addEntityRequest, siteId, namespace, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add New Entity + * Creates a Entity + * @param entityTypeId EntityType Identifier (required) + * @param addEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return AddEntityResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddEntityResponse addEntity(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull AddEntityRequest addEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { + ApiResponse localVarResp = addEntityWithHttpInfo(entityTypeId, addEntityRequest, siteId, namespace); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add New Entity + * Creates a Entity + * @param entityTypeId EntityType Identifier (required) + * @param addEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return ApiResponse<AddEntityResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addEntityWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull AddEntityRequest addEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { + okhttp3.Call localVarCall = addEntityValidateBeforeCall(entityTypeId, addEntityRequest, siteId, namespace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addEntityTypeValidateBeforeCall( - @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addEntityTypeRequest' is set - if (addEntityTypeRequest == null) { - throw new ApiException( - "Missing the required parameter 'addEntityTypeRequest' when calling addEntityType(Async)"); + /** + * Add New Entity (asynchronously) + * Creates a Entity + * @param entityTypeId EntityType Identifier (required) + * @param addEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addEntityAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull AddEntityRequest addEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addEntityValidateBeforeCall(entityTypeId, addEntityRequest, siteId, namespace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return addEntityTypeCall(addEntityTypeRequest, siteId, _callback); - - } - - /** - * Add New EntityType Creates a Entity Type - * - * @param addEntityTypeRequest (required) - * @param siteId Site Identifier (optional) - * @return AddEntityTypeResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddEntityTypeResponse addEntityType( - @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addEntityTypeWithHttpInfo(addEntityTypeRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add New EntityType Creates a Entity Type - * - * @param addEntityTypeRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddEntityTypeResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addEntityTypeWithHttpInfo( - @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addEntityTypeValidateBeforeCall(addEntityTypeRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New EntityType (asynchronously) Creates a Entity Type - * - * @param addEntityTypeRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addEntityTypeAsync( - @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addEntityTypeValidateBeforeCall(addEntityTypeRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteEntity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteEntityCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addEntityType + * @param addEntityTypeRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addEntityTypeCall(@javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addEntityTypeRequest; + + // create path and map variables + String localVarPath = "/entityTypes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call addEntityTypeValidateBeforeCall(@javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addEntityTypeRequest' is set + if (addEntityTypeRequest == null) { + throw new ApiException("Missing the required parameter 'addEntityTypeRequest' when calling addEntityType(Async)"); + } - // create path and map variables - String localVarPath = "/entities/{entityTypeId}/{entityId}" - .replace("{" + "entityTypeId" + "}", - localVarApiClient.escapeString(entityTypeId.toString())) - .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); + return addEntityTypeCall(addEntityTypeRequest, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add New EntityType + * Creates a Entity Type + * @param addEntityTypeRequest (required) + * @param siteId Site Identifier (optional) + * @return AddEntityTypeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddEntityTypeResponse addEntityType(@javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addEntityTypeWithHttpInfo(addEntityTypeRequest, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add New EntityType + * Creates a Entity Type + * @param addEntityTypeRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddEntityTypeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addEntityTypeWithHttpInfo(@javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addEntityTypeValidateBeforeCall(addEntityTypeRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException( - "Missing the required parameter 'entityTypeId' when calling deleteEntity(Async)"); + /** + * Add New EntityType (asynchronously) + * Creates a Entity Type + * @param addEntityTypeRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addEntityTypeAsync(@javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addEntityTypeValidateBeforeCall(addEntityTypeRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - // verify the required parameter 'entityId' is set - if (entityId == null) { - throw new ApiException( - "Missing the required parameter 'entityId' when calling deleteEntity(Async)"); + /** + * Build call for deleteEntity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteEntityCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/entities/{entityTypeId}/{entityId}" + .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())) + .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - return deleteEntityCall(entityTypeId, entityId, siteId, _callback); - - } - - /** - * Deletes Entity Deletes Entity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteEntity(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - deleteEntityWithHttpInfo(entityTypeId, entityId, siteId); - return localVarResp.getData(); - } - - /** - * Deletes Entity Deletes Entity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteEntityWithHttpInfo( - @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - deleteEntityValidateBeforeCall(entityTypeId, entityId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes Entity (asynchronously) Deletes Entity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteEntityAsync(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteEntityValidateBeforeCall(entityTypeId, entityId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteEntityType - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteEntityTypeCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException("Missing the required parameter 'entityTypeId' when calling deleteEntity(Async)"); + } - Object localVarPostBody = null; + // verify the required parameter 'entityId' is set + if (entityId == null) { + throw new ApiException("Missing the required parameter 'entityId' when calling deleteEntity(Async)"); + } - // create path and map variables - String localVarPath = "/entityTypes/{entityTypeId}".replace("{" + "entityTypeId" + "}", - localVarApiClient.escapeString(entityTypeId.toString())); + return deleteEntityCall(entityTypeId, entityId, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Deletes Entity + * Deletes Entity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteEntity(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteEntityWithHttpInfo(entityTypeId, entityId, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Deletes Entity + * Deletes Entity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteEntityWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteEntityValidateBeforeCall(entityTypeId, entityId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteEntityTypeValidateBeforeCall( - @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException( - "Missing the required parameter 'entityTypeId' when calling deleteEntityType(Async)"); + /** + * Deletes Entity (asynchronously) + * Deletes Entity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteEntityAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteEntityValidateBeforeCall(entityTypeId, entityId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return deleteEntityTypeCall(entityTypeId, siteId, _callback); - - } - - /** - * Deletes Entity Type Deletes Entity Type - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteEntityType(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteEntityTypeWithHttpInfo(entityTypeId, siteId); - return localVarResp.getData(); - } - - /** - * Deletes Entity Type Deletes Entity Type - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteEntityTypeWithHttpInfo( - @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteEntityTypeValidateBeforeCall(entityTypeId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes Entity Type (asynchronously) Deletes Entity Type - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteEntityTypeAsync(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteEntityTypeValidateBeforeCall(entityTypeId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getEntities - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getEntitiesCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteEntityType + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteEntityTypeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/entityTypes/{entityTypeId}" + .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteEntityTypeValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException("Missing the required parameter 'entityTypeId' when calling deleteEntityType(Async)"); + } - // create path and map variables - String localVarPath = "/entities/{entityTypeId}".replace("{" + "entityTypeId" + "}", - localVarApiClient.escapeString(entityTypeId.toString())); + return deleteEntityTypeCall(entityTypeId, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + /** + * Deletes Entity Type + * Deletes Entity Type + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteEntityType(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteEntityTypeWithHttpInfo(entityTypeId, siteId); + return localVarResp.getData(); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Deletes Entity Type + * Deletes Entity Type + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteEntityTypeWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteEntityTypeValidateBeforeCall(entityTypeId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Deletes Entity Type (asynchronously) + * Deletes Entity Type + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteEntityTypeAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteEntityTypeValidateBeforeCall(entityTypeId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Build call for getEntities + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getEntitiesCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/entities/{entityTypeId}" + .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call getEntitiesValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException("Missing the required parameter 'entityTypeId' when calling getEntities(Async)"); + } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getEntitiesValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException( - "Missing the required parameter 'entityTypeId' when calling getEntities(Async)"); - } + return getEntitiesCall(entityTypeId, siteId, namespace, next, limit, _callback); - return getEntitiesCall(entityTypeId, siteId, namespace, next, limit, _callback); - - } - - /** - * Get Entities Returns a list of entities - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetEntitiesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetEntitiesResponse getEntities(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = - getEntitiesWithHttpInfo(entityTypeId, siteId, namespace, next, limit); - return localVarResp.getData(); - } - - /** - * Get Entities Returns a list of entities - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetEntitiesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getEntitiesWithHttpInfo( - @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = - getEntitiesValidateBeforeCall(entityTypeId, siteId, namespace, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Entities (asynchronously) Returns a list of entities - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getEntitiesAsync(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getEntitiesValidateBeforeCall(entityTypeId, siteId, namespace, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getEntity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getEntityCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/entities/{entityTypeId}/{entityId}" - .replace("{" + "entityTypeId" + "}", - localVarApiClient.escapeString(entityTypeId.toString())) - .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + /** + * Get Entities + * Returns a list of entities + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetEntitiesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetEntitiesResponse getEntities(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getEntitiesWithHttpInfo(entityTypeId, siteId, namespace, next, limit); + return localVarResp.getData(); } - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + /** + * Get Entities + * Returns a list of entities + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetEntitiesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getEntitiesWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getEntitiesValidateBeforeCall(entityTypeId, siteId, namespace, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get Entities (asynchronously) + * Returns a list of entities + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getEntitiesAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getEntitiesValidateBeforeCall(entityTypeId, siteId, namespace, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Build call for getEntity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getEntityCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/entities/{entityTypeId}/{entityId}" + .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())) + .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace, final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException( - "Missing the required parameter 'entityTypeId' when calling getEntity(Async)"); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call getEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException("Missing the required parameter 'entityTypeId' when calling getEntity(Async)"); + } - // verify the required parameter 'entityId' is set - if (entityId == null) { - throw new ApiException( - "Missing the required parameter 'entityId' when calling getEntity(Async)"); - } - - return getEntityCall(entityTypeId, entityId, siteId, namespace, _callback); - - } - - /** - * Get Entity Returns a entity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return GetEntityResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetEntityResponse getEntity(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace) throws ApiException { - ApiResponse localVarResp = - getEntityWithHttpInfo(entityTypeId, entityId, siteId, namespace); - return localVarResp.getData(); - } - - /** - * Get Entity Returns a entity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return ApiResponse<GetEntityResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getEntityWithHttpInfo( - @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) - throws ApiException { - okhttp3.Call localVarCall = - getEntityValidateBeforeCall(entityTypeId, entityId, siteId, namespace, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Entity (asynchronously) Returns a entity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getEntityAsync(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - getEntityValidateBeforeCall(entityTypeId, entityId, siteId, namespace, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getEntityType - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getEntityTypeCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/entityTypes/{entityTypeId}".replace("{" + "entityTypeId" + "}", - localVarApiClient.escapeString(entityTypeId.toString())); + // verify the required parameter 'entityId' is set + if (entityId == null) { + throw new ApiException("Missing the required parameter 'entityId' when calling getEntity(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return getEntityCall(entityTypeId, entityId, siteId, namespace, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + /** + * Get Entity + * Returns a entity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return GetEntityResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetEntityResponse getEntity(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { + ApiResponse localVarResp = getEntityWithHttpInfo(entityTypeId, entityId, siteId, namespace); + return localVarResp.getData(); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get Entity + * Returns a entity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return ApiResponse<GetEntityResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getEntityWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { + okhttp3.Call localVarCall = getEntityValidateBeforeCall(entityTypeId, entityId, siteId, namespace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get Entity (asynchronously) + * Returns a entity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getEntityAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getEntityValidateBeforeCall(entityTypeId, entityId, siteId, namespace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getEntityTypeValidateBeforeCall( - @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace, final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException( - "Missing the required parameter 'entityTypeId' when calling getEntityType(Async)"); - } - - return getEntityTypeCall(entityTypeId, siteId, namespace, _callback); - - } - - /** - * Get EntityType Returns a entity type - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return GetEntityTypeResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetEntityTypeResponse getEntityType(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) - throws ApiException { - ApiResponse localVarResp = - getEntityTypeWithHttpInfo(entityTypeId, siteId, namespace); - return localVarResp.getData(); - } - - /** - * Get EntityType Returns a entity type - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return ApiResponse<GetEntityTypeResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getEntityTypeWithHttpInfo( - @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace) throws ApiException { - okhttp3.Call localVarCall = - getEntityTypeValidateBeforeCall(entityTypeId, siteId, namespace, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get EntityType (asynchronously) Returns a entity type - * - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getEntityTypeAsync(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getEntityTypeValidateBeforeCall(entityTypeId, siteId, namespace, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getEntityTypes - * - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getEntityTypesCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getEntityType + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getEntityTypeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/entityTypes/{entityTypeId}" + .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/entityTypes"; + @SuppressWarnings("rawtypes") + private okhttp3.Call getEntityTypeValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException("Missing the required parameter 'entityTypeId' when calling getEntityType(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return getEntityTypeCall(entityTypeId, siteId, namespace, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + /** + * Get EntityType + * Returns a entity type + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return GetEntityTypeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetEntityTypeResponse getEntityType(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { + ApiResponse localVarResp = getEntityTypeWithHttpInfo(entityTypeId, siteId, namespace); + return localVarResp.getData(); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Get EntityType + * Returns a entity type + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return ApiResponse<GetEntityTypeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getEntityTypeWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { + okhttp3.Call localVarCall = getEntityTypeValidateBeforeCall(entityTypeId, siteId, namespace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Get EntityType (asynchronously) + * Returns a entity type + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getEntityTypeAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getEntityTypeValidateBeforeCall(entityTypeId, siteId, namespace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } + /** + * Build call for getEntityTypes + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getEntityTypesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/entityTypes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getEntityTypesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + return getEntityTypesCall(siteId, namespace, next, limit, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get EntityTypes + * Returns a list of entity types + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetEntityTypesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetEntityTypesResponse getEntityTypes(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getEntityTypesWithHttpInfo(siteId, namespace, next, limit); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getEntityTypesValidateBeforeCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - return getEntityTypesCall(siteId, namespace, next, limit, _callback); - - } - - /** - * Get EntityTypes Returns a list of entity types - * - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetEntityTypesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetEntityTypesResponse getEntityTypes(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = - getEntityTypesWithHttpInfo(siteId, namespace, next, limit); - return localVarResp.getData(); - } - - /** - * Get EntityTypes Returns a list of entity types - * - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetEntityTypesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getEntityTypesWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - okhttp3.Call localVarCall = - getEntityTypesValidateBeforeCall(siteId, namespace, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get EntityTypes (asynchronously) Returns a list of entity types - * - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getEntityTypesAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - getEntityTypesValidateBeforeCall(siteId, namespace, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateEntity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param updateEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateEntityCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, - @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get EntityTypes + * Returns a list of entity types + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetEntityTypesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getEntityTypesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getEntityTypesValidateBeforeCall(siteId, namespace, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = updateEntityRequest; + /** + * Get EntityTypes (asynchronously) + * Returns a list of entity types + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getEntityTypesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getEntityTypesValidateBeforeCall(siteId, namespace, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateEntity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param updateEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateEntityCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateEntityRequest; + + // create path and map variables + String localVarPath = "/entities/{entityTypeId}/{entityId}" + .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())) + .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/entities/{entityTypeId}/{entityId}" - .replace("{" + "entityTypeId" + "}", - localVarApiClient.escapeString(entityTypeId.toString())) - .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call updateEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException("Missing the required parameter 'entityTypeId' when calling updateEntity(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'entityId' is set + if (entityId == null) { + throw new ApiException("Missing the required parameter 'entityId' when calling updateEntity(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + // verify the required parameter 'updateEntityRequest' is set + if (updateEntityRequest == null) { + throw new ApiException("Missing the required parameter 'updateEntityRequest' when calling updateEntity(Async)"); + } - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } + return updateEntityCall(entityTypeId, entityId, updateEntityRequest, siteId, namespace, _callback); - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, - @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException( - "Missing the required parameter 'entityTypeId' when calling updateEntity(Async)"); + /** + * Update Entity + * Updates a Entity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param updateEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return UpdateResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public UpdateResponse updateEntity(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { + ApiResponse localVarResp = updateEntityWithHttpInfo(entityTypeId, entityId, updateEntityRequest, siteId, namespace); + return localVarResp.getData(); } - // verify the required parameter 'entityId' is set - if (entityId == null) { - throw new ApiException( - "Missing the required parameter 'entityId' when calling updateEntity(Async)"); + /** + * Update Entity + * Updates a Entity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param updateEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return ApiResponse<UpdateResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse updateEntityWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { + okhttp3.Call localVarCall = updateEntityValidateBeforeCall(entityTypeId, entityId, updateEntityRequest, siteId, namespace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'updateEntityRequest' is set - if (updateEntityRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateEntityRequest' when calling updateEntity(Async)"); + /** + * Update Entity (asynchronously) + * Updates a Entity + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param updateEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateEntityAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateEntityValidateBeforeCall(entityTypeId, entityId, updateEntityRequest, siteId, namespace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return updateEntityCall(entityTypeId, entityId, updateEntityRequest, siteId, namespace, - _callback); - - } - - /** - * Update Entity Updates a Entity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param updateEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return UpdateResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public UpdateResponse updateEntity(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, - @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) - throws ApiException { - ApiResponse localVarResp = - updateEntityWithHttpInfo(entityTypeId, entityId, updateEntityRequest, siteId, namespace); - return localVarResp.getData(); - } - - /** - * Update Entity Updates a Entity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param updateEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return ApiResponse<UpdateResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse updateEntityWithHttpInfo( - @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, - @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) - throws ApiException { - okhttp3.Call localVarCall = updateEntityValidateBeforeCall(entityTypeId, entityId, - updateEntityRequest, siteId, namespace, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Entity (asynchronously) Updates a Entity - * - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param updateEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateEntityAsync(@javax.annotation.Nonnull String entityTypeId, - @javax.annotation.Nonnull String entityId, - @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateEntityValidateBeforeCall(entityTypeId, entityId, - updateEntityRequest, siteId, namespace, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/ExamineObjectsApi.java b/src/main/java/com/formkiq/client/api/ExamineObjectsApi.java index 43f449ecd..0c5c9b500 100644 --- a/src/main/java/com/formkiq/client/api/ExamineObjectsApi.java +++ b/src/main/java/com/formkiq/client/api/ExamineObjectsApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -44,414 +37,300 @@ import java.util.Map; public class ExamineObjectsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public ExamineObjectsApi() { - this(Configuration.getDefaultApiClient()); - } - - public ExamineObjectsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for getExaminePdf - * - * @param id Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getExaminePdfCall(@javax.annotation.Nonnull String id, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ExamineObjectsApi() { + this(Configuration.getDefaultApiClient()); + } + + public ExamineObjectsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - Object localVarPostBody = null; + public ApiClient getApiClient() { + return localVarApiClient; + } - // create path and map variables - String localVarPath = "/objects/examine/{id}/pdf".replace("{" + "id" + "}", - localVarApiClient.escapeString(id.toString())); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Build call for getExaminePdf + * @param id Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getExaminePdfCall(@javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/objects/examine/{id}/pdf" + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getExaminePdfValidateBeforeCall(@javax.annotation.Nonnull String id, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException( - "Missing the required parameter 'id' when calling getExaminePdf(Async)"); + @SuppressWarnings("rawtypes") + private okhttp3.Call getExaminePdfValidateBeforeCall(@javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getExaminePdf(Async)"); + } + + return getExaminePdfCall(id, siteId, _callback); + } - return getExaminePdfCall(id, siteId, _callback); - - } - - /** - * Add Examine Pdf Get PDF details File must have been uploaded previously using the GET - * /objects/examine/pdf API. - * - * @param id Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetExaminePdfResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetExaminePdfResponse getExaminePdf(@javax.annotation.Nonnull String id, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getExaminePdfWithHttpInfo(id, siteId); - return localVarResp.getData(); - } - - /** - * Add Examine Pdf Get PDF details File must have been uploaded previously using the GET - * /objects/examine/pdf API. - * - * @param id Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetExaminePdfResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getExaminePdfWithHttpInfo( - @javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getExaminePdfValidateBeforeCall(id, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Examine Pdf (asynchronously) Get PDF details File must have been uploaded previously using - * the GET /objects/examine/pdf API. - * - * @param id Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getExaminePdfAsync(@javax.annotation.Nonnull String id, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getExaminePdfValidateBeforeCall(id, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getExaminePdfUrl - * - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getExaminePdfUrlCall(@javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Add Examine Pdf + * Get PDF details File must have been uploaded previously using the GET /objects/examine/pdf API. + * @param id Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetExaminePdfResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetExaminePdfResponse getExaminePdf(@javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getExaminePdfWithHttpInfo(id, siteId); + return localVarResp.getData(); } - Object localVarPostBody = null; + /** + * Add Examine Pdf + * Get PDF details File must have been uploaded previously using the GET /objects/examine/pdf API. + * @param id Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetExaminePdfResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getExaminePdfWithHttpInfo(@javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getExaminePdfValidateBeforeCall(id, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } - // create path and map variables - String localVarPath = "/objects/examine/pdf"; + /** + * Add Examine Pdf (asynchronously) + * Get PDF details File must have been uploaded previously using the GET /objects/examine/pdf API. + * @param id Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getExaminePdfAsync(@javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getExaminePdfValidateBeforeCall(id, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getExaminePdfUrl + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getExaminePdfUrlCall(@javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/objects/examine/pdf"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + @SuppressWarnings("rawtypes") + private okhttp3.Call getExaminePdfUrlValidateBeforeCall(@javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + return getExaminePdfUrlCall(siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add Examine Pdf + * Get Signed URL for PDF Object Upload of a document to be examined by calling GET /objects/examine/{id}/pdf + * @param siteId Site Identifier (optional) + * @return GetExaminePdfUrlResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetExaminePdfUrlResponse getExaminePdfUrl(@javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getExaminePdfUrlWithHttpInfo(siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add Examine Pdf + * Get Signed URL for PDF Object Upload of a document to be examined by calling GET /objects/examine/{id}/pdf + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetExaminePdfUrlResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getExaminePdfUrlWithHttpInfo(@javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getExaminePdfUrlValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getExaminePdfUrlValidateBeforeCall(@javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - return getExaminePdfUrlCall(siteId, _callback); - - } - - /** - * Add Examine Pdf Get Signed URL for PDF Object Upload of a document to be examined by calling - * GET /objects/examine/{id}/pdf - * - * @param siteId Site Identifier (optional) - * @return GetExaminePdfUrlResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetExaminePdfUrlResponse getExaminePdfUrl(@javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = getExaminePdfUrlWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Add Examine Pdf Get Signed URL for PDF Object Upload of a document to be examined by calling - * GET /objects/examine/{id}/pdf - * - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetExaminePdfUrlResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getExaminePdfUrlWithHttpInfo( - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getExaminePdfUrlValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Examine Pdf (asynchronously) Get Signed URL for PDF Object Upload of a document to be - * examined by calling GET /objects/examine/{id}/pdf - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getExaminePdfUrlAsync(@javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getExaminePdfUrlValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Add Examine Pdf (asynchronously) + * Get Signed URL for PDF Object Upload of a document to be examined by calling GET /objects/examine/{id}/pdf + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getExaminePdfUrlAsync(@javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getExaminePdfUrlValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/GoogleIntegrationApi.java b/src/main/java/com/formkiq/client/api/GoogleIntegrationApi.java index ac143730b..80ab3586d 100644 --- a/src/main/java/com/formkiq/client/api/GoogleIntegrationApi.java +++ b/src/main/java/com/formkiq/client/api/GoogleIntegrationApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -45,272 +38,189 @@ import java.util.Map; public class GoogleIntegrationApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public GoogleIntegrationApi() { - this(Configuration.getDefaultApiClient()); - } - - public GoogleIntegrationApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addGoogleDocumentExport - * - * @param documentId Document Identifier (required) - * @param addGoogleDocumentExportRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addGoogleDocumentExportCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public GoogleIntegrationApi() { + this(Configuration.getDefaultApiClient()); + } + + public GoogleIntegrationApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - Object localVarPostBody = addGoogleDocumentExportRequest; + public int getHostIndex() { + return localHostIndex; + } - // create path and map variables - String localVarPath = "/integrations/google/drive/documents/{documentId}/export" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Build call for addGoogleDocumentExport + * @param documentId Document Identifier (required) + * @param addGoogleDocumentExportRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addGoogleDocumentExportCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addGoogleDocumentExportRequest; + + // create path and map variables + String localVarPath = "/integrations/google/drive/documents/{documentId}/export" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + @SuppressWarnings("rawtypes") + private okhttp3.Call addGoogleDocumentExportValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addGoogleDocumentExport(Async)"); + } + + // verify the required parameter 'addGoogleDocumentExportRequest' is set + if (addGoogleDocumentExportRequest == null) { + throw new ApiException("Missing the required parameter 'addGoogleDocumentExportRequest' when calling addGoogleDocumentExport(Async)"); + } + + return addGoogleDocumentExportCall(documentId, addGoogleDocumentExportRequest, siteId, _callback); + } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addGoogleDocumentExportValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addGoogleDocumentExport(Async)"); + /** + * Add Google Document Export + * Exports a Google Document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addGoogleDocumentExportRequest (required) + * @param siteId Site Identifier (optional) + * @return AddGoogleDocumentExportResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddGoogleDocumentExportResponse addGoogleDocumentExport(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addGoogleDocumentExportWithHttpInfo(documentId, addGoogleDocumentExportRequest, siteId); + return localVarResp.getData(); } - // verify the required parameter 'addGoogleDocumentExportRequest' is set - if (addGoogleDocumentExportRequest == null) { - throw new ApiException( - "Missing the required parameter 'addGoogleDocumentExportRequest' when calling addGoogleDocumentExport(Async)"); + /** + * Add Google Document Export + * Exports a Google Document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addGoogleDocumentExportRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddGoogleDocumentExportResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addGoogleDocumentExportWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addGoogleDocumentExportValidateBeforeCall(documentId, addGoogleDocumentExportRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return addGoogleDocumentExportCall(documentId, addGoogleDocumentExportRequest, siteId, - _callback); - - } - - /** - * Add Google Document Export Exports a Google Document; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param addGoogleDocumentExportRequest (required) - * @param siteId Site Identifier (optional) - * @return AddGoogleDocumentExportResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddGoogleDocumentExportResponse addGoogleDocumentExport( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addGoogleDocumentExportWithHttpInfo(documentId, addGoogleDocumentExportRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add Google Document Export Exports a Google Document; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param addGoogleDocumentExportRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddGoogleDocumentExportResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addGoogleDocumentExportWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addGoogleDocumentExportValidateBeforeCall(documentId, - addGoogleDocumentExportRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Google Document Export (asynchronously) Exports a Google Document; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param addGoogleDocumentExportRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addGoogleDocumentExportAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, - @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addGoogleDocumentExportValidateBeforeCall(documentId, - addGoogleDocumentExportRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Add Google Document Export (asynchronously) + * Exports a Google Document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param addGoogleDocumentExportRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addGoogleDocumentExportAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addGoogleDocumentExportValidateBeforeCall(documentId, addGoogleDocumentExportRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/MalwareScanApi.java b/src/main/java/com/formkiq/client/api/MalwareScanApi.java index 66e29b936..e64085827 100644 --- a/src/main/java/com/formkiq/client/api/MalwareScanApi.java +++ b/src/main/java/com/formkiq/client/api/MalwareScanApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -45,707 +38,483 @@ import java.util.Map; public class MalwareScanApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MalwareScanApi() { - this(Configuration.getDefaultApiClient()); - } - - public MalwareScanApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for getMalwareScanResults - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getMalwareScanResultsCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - // create path and map variables - String localVarPath = "/documents/{documentId}/malwareScan".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + public MalwareScanApi() { + this(Configuration.getDefaultApiClient()); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public MalwareScanApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public ApiClient getApiClient() { + return localVarApiClient; } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getMalwareScanResultsValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getMalwareScanResults(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - return getMalwareScanResultsCall(documentId, siteId, next, limit, _callback); - - } - - /** - * Get Malware Scan results Gets a Malware Scan results; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetMalwareScanResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetMalwareScanResponse getMalwareScanResults(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = - getMalwareScanResultsWithHttpInfo(documentId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get Malware Scan results Gets a Malware Scan results; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetMalwareScanResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getMalwareScanResultsWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - okhttp3.Call localVarCall = - getMalwareScanResultsValidateBeforeCall(documentId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Malware Scan results (asynchronously) Gets a Malware Scan results; available as an Add-On - * Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 BAD REQUEST* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getMalwareScanResultsAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - getMalwareScanResultsValidateBeforeCall(documentId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setAntivirus - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setAntivirusCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getMalwareScanResults + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getMalwareScanResultsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/malwareScan" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = body; + @SuppressWarnings("rawtypes") + private okhttp3.Call getMalwareScanResultsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getMalwareScanResults(Async)"); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/antivirus".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + return getMalwareScanResultsCall(documentId, siteId, next, limit, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + /** + * Get Malware Scan results + * Gets a Malware Scan results; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetMalwareScanResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetMalwareScanResponse getMalwareScanResults(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getMalwareScanResultsWithHttpInfo(documentId, siteId, next, limit); + return localVarResp.getData(); } - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + /** + * Get Malware Scan results + * Gets a Malware Scan results; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetMalwareScanResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getMalwareScanResultsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getMalwareScanResultsValidateBeforeCall(documentId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get Malware Scan results (asynchronously) + * Gets a Malware Scan results; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getMalwareScanResultsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMalwareScanResultsValidateBeforeCall(documentId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setAntivirus + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setAntivirusCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/documents/{documentId}/antivirus" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + @SuppressWarnings("rawtypes") + private okhttp3.Call setAntivirusValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setAntivirus(Async)"); + } + + return setAntivirusCall(documentId, siteId, shareKey, body, _callback); + } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setAntivirusValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setAntivirus(Async)"); + /** + * Antivirus document scan + * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the **`/documents/{document}/malwareScan`** endpoint instead. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param body (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setAntivirus(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body) throws ApiException { + ApiResponse localVarResp = setAntivirusWithHttpInfo(documentId, siteId, shareKey, body); + return localVarResp.getData(); } - return setAntivirusCall(documentId, siteId, shareKey, body, _callback); - - } - - /** - * Antivirus document scan Perform an Anti-Malware / Antivirus scan on a document; available as an - * Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the - * **`/documents/{document}/malwareScan`** endpoint instead. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param body (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setAntivirus(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable Object body) throws ApiException { - ApiResponse localVarResp = - setAntivirusWithHttpInfo(documentId, siteId, shareKey, body); - return localVarResp.getData(); - } - - /** - * Antivirus document scan Perform an Anti-Malware / Antivirus scan on a document; available as an - * Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the - * **`/documents/{document}/malwareScan`** endpoint instead. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param body (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setAntivirusWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body) - throws ApiException { - okhttp3.Call localVarCall = - setAntivirusValidateBeforeCall(documentId, siteId, shareKey, body, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Antivirus document scan (asynchronously) Perform an Anti-Malware / Antivirus scan on a - * document; available as an Add-On Module **Deprecated**. This endpoint is no longer recommended. - * Please use the **`/documents/{document}/malwareScan`** endpoint instead. - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param body (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setAntivirusAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, - @javax.annotation.Nullable Object body, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - setAntivirusValidateBeforeCall(documentId, siteId, shareKey, body, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setMalwareScan - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setMalwareScanCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Antivirus document scan + * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the **`/documents/{document}/malwareScan`** endpoint instead. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param body (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setAntivirusWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body) throws ApiException { + okhttp3.Call localVarCall = setAntivirusValidateBeforeCall(documentId, siteId, shareKey, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = body; + /** + * Antivirus document scan (asynchronously) + * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the **`/documents/{document}/malwareScan`** endpoint instead. + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param body (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setAntivirusAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setAntivirusValidateBeforeCall(documentId, siteId, shareKey, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setMalwareScan + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setMalwareScanCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/documents/{documentId}/malwareScan" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/documents/{documentId}/malwareScan".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call setMalwareScanValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling setMalwareScan(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return setMalwareScanCall(documentId, siteId, body, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * MalwareScan document scan + * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param body (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setMalwareScan(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body) throws ApiException { + ApiResponse localVarResp = setMalwareScanWithHttpInfo(documentId, siteId, body); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * MalwareScan document scan + * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param body (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setMalwareScanWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body) throws ApiException { + okhttp3.Call localVarCall = setMalwareScanValidateBeforeCall(documentId, siteId, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setMalwareScanValidateBeforeCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling setMalwareScan(Async)"); + /** + * MalwareScan document scan (asynchronously) + * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param body (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setMalwareScanAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setMalwareScanValidateBeforeCall(documentId, siteId, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return setMalwareScanCall(documentId, siteId, body, _callback); - - } - - /** - * MalwareScan document scan Perform an Anti-Malware / Antivirus scan on a document; available as - * an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param body (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setMalwareScan(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body) - throws ApiException { - ApiResponse localVarResp = setMalwareScanWithHttpInfo(documentId, siteId, body); - return localVarResp.getData(); - } - - /** - * MalwareScan document scan Perform an Anti-Malware / Antivirus scan on a document; available as - * an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param body (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setMalwareScanWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable Object body) throws ApiException { - okhttp3.Call localVarCall = setMalwareScanValidateBeforeCall(documentId, siteId, body, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * MalwareScan document scan (asynchronously) Perform an Anti-Malware / Antivirus scan on a - * document; available as an Add-On Module - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param body (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setMalwareScanAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - setMalwareScanValidateBeforeCall(documentId, siteId, body, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/MappingsApi.java b/src/main/java/com/formkiq/client/api/MappingsApi.java index 50f4af692..74f7956bc 100644 --- a/src/main/java/com/formkiq/client/api/MappingsApi.java +++ b/src/main/java/com/formkiq/client/api/MappingsApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -50,1061 +43,739 @@ import java.util.Map; public class MappingsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MappingsApi() { - this(Configuration.getDefaultApiClient()); - } - - public MappingsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addMapping - * - * @param addMappingRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addMappingCall(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - Object localVarPostBody = addMappingRequest; + public MappingsApi() { + this(Configuration.getDefaultApiClient()); + } - // create path and map variables - String localVarPath = "/mappings"; + public MappingsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public ApiClient getApiClient() { + return localVarApiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addMappingValidateBeforeCall( - @javax.annotation.Nonnull AddMappingRequest addMappingRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addMappingRequest' is set - if (addMappingRequest == null) { - throw new ApiException( - "Missing the required parameter 'addMappingRequest' when calling addMapping(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - return addMappingCall(addMappingRequest, siteId, _callback); - - } - - /** - * Add New Mapping Creates a new mapping; available as an Add-On Module - * - * @param addMappingRequest (required) - * @param siteId Site Identifier (optional) - * @return AddMappingResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddMappingResponse addMapping( - @javax.annotation.Nonnull AddMappingRequest addMappingRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addMappingWithHttpInfo(addMappingRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add New Mapping Creates a new mapping; available as an Add-On Module - * - * @param addMappingRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddMappingResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addMappingWithHttpInfo( - @javax.annotation.Nonnull AddMappingRequest addMappingRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addMappingValidateBeforeCall(addMappingRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New Mapping (asynchronously) Creates a new mapping; available as an Add-On Module - * - * @param addMappingRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addMappingAsync(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = addMappingValidateBeforeCall(addMappingRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteMapping - * - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteMappingCall(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - Object localVarPostBody = null; + /** + * Build call for addMapping + * @param addMappingRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addMappingCall(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addMappingRequest; + + // create path and map variables + String localVarPath = "/mappings"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/mappings/{mappingId}".replace("{" + "mappingId" + "}", - localVarApiClient.escapeString(mappingId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call addMappingValidateBeforeCall(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addMappingRequest' is set + if (addMappingRequest == null) { + throw new ApiException("Missing the required parameter 'addMappingRequest' when calling addMapping(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addMappingCall(addMappingRequest, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add New Mapping + * Creates a new mapping; available as an Add-On Module + * @param addMappingRequest (required) + * @param siteId Site Identifier (optional) + * @return AddMappingResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddMappingResponse addMapping(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addMappingWithHttpInfo(addMappingRequest, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add New Mapping + * Creates a new mapping; available as an Add-On Module + * @param addMappingRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddMappingResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addMappingWithHttpInfo(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addMappingValidateBeforeCall(addMappingRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'mappingId' is set - if (mappingId == null) { - throw new ApiException( - "Missing the required parameter 'mappingId' when calling deleteMapping(Async)"); + /** + * Add New Mapping (asynchronously) + * Creates a new mapping; available as an Add-On Module + * @param addMappingRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addMappingAsync(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addMappingValidateBeforeCall(addMappingRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return deleteMappingCall(mappingId, siteId, _callback); - - } - - /** - * Delete Mapping Delete Mapping; available as an Add-On Module - * - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteMapping(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteMappingWithHttpInfo(mappingId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Mapping Delete Mapping; available as an Add-On Module - * - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteMappingWithHttpInfo( - @javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteMappingValidateBeforeCall(mappingId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Mapping (asynchronously) Delete Mapping; available as an Add-On Module - * - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteMappingAsync(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteMappingValidateBeforeCall(mappingId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getMapping - * - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getMappingCall(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteMapping + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteMappingCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/mappings/{mappingId}" + .replace("{" + "mappingId" + "}", localVarApiClient.escapeString(mappingId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'mappingId' is set + if (mappingId == null) { + throw new ApiException("Missing the required parameter 'mappingId' when calling deleteMapping(Async)"); + } - // create path and map variables - String localVarPath = "/mappings/{mappingId}".replace("{" + "mappingId" + "}", - localVarApiClient.escapeString(mappingId.toString())); + return deleteMappingCall(mappingId, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Delete Mapping + * Delete Mapping; available as an Add-On Module + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteMapping(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteMappingWithHttpInfo(mappingId, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete Mapping + * Delete Mapping; available as an Add-On Module + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteMappingWithHttpInfo(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteMappingValidateBeforeCall(mappingId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'mappingId' is set - if (mappingId == null) { - throw new ApiException( - "Missing the required parameter 'mappingId' when calling getMapping(Async)"); + /** + * Delete Mapping (asynchronously) + * Delete Mapping; available as an Add-On Module + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteMappingAsync(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMappingValidateBeforeCall(mappingId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return getMappingCall(mappingId, siteId, _callback); - - } - - /** - * Get Mapping Get a mapping; available as an Add-On Module - * - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetMappingResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetMappingResponse getMapping(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getMappingWithHttpInfo(mappingId, siteId); - return localVarResp.getData(); - } - - /** - * Get Mapping Get a mapping; available as an Add-On Module - * - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetMappingResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getMappingWithHttpInfo( - @javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getMappingValidateBeforeCall(mappingId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Mapping (asynchronously) Get a mapping; available as an Add-On Module - * - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getMappingAsync(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getMappingValidateBeforeCall(mappingId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getMappings - * - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getMappingsCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getMapping + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getMappingCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/mappings/{mappingId}" + .replace("{" + "mappingId" + "}", localVarApiClient.escapeString(mappingId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call getMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'mappingId' is set + if (mappingId == null) { + throw new ApiException("Missing the required parameter 'mappingId' when calling getMapping(Async)"); + } - // create path and map variables - String localVarPath = "/mappings"; + return getMappingCall(mappingId, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + /** + * Get Mapping + * Get a mapping; available as an Add-On Module + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetMappingResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetMappingResponse getMapping(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getMappingWithHttpInfo(mappingId, siteId); + return localVarResp.getData(); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Get Mapping + * Get a mapping; available as an Add-On Module + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetMappingResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getMappingWithHttpInfo(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getMappingValidateBeforeCall(mappingId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Get Mapping (asynchronously) + * Get a mapping; available as an Add-On Module + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getMappingAsync(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMappingValidateBeforeCall(mappingId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMappings + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getMappingsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/mappings"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + @SuppressWarnings("rawtypes") + private okhttp3.Call getMappingsValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + return getMappingsCall(siteId, limit, next, _callback); + } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get Mappings + * Returns a list of mappings; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetMappingsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetMappingsResponse getMappings(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getMappingsWithHttpInfo(siteId, limit, next); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getMappingsValidateBeforeCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - return getMappingsCall(siteId, limit, next, _callback); - - } - - /** - * Get Mappings Returns a list of mappings; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetMappingsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetMappingsResponse getMappings(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - ApiResponse localVarResp = getMappingsWithHttpInfo(siteId, limit, next); - return localVarResp.getData(); - } - - /** - * Get Mappings Returns a list of mappings; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetMappingsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getMappingsWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getMappingsValidateBeforeCall(siteId, limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Mappings (asynchronously) Returns a list of mappings; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getMappingsAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getMappingsValidateBeforeCall(siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setMapping - * - * @param mappingId Mapping Identifier (required) - * @param setMappingRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call setMappingCall(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nonnull SetMappingRequest setMappingRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get Mappings + * Returns a list of mappings; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetMappingsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getMappingsWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getMappingsValidateBeforeCall(siteId, limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = setMappingRequest; + /** + * Get Mappings (asynchronously) + * Returns a list of mappings; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getMappingsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMappingsValidateBeforeCall(siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setMapping + * @param mappingId Mapping Identifier (required) + * @param setMappingRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call setMappingCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nonnull SetMappingRequest setMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setMappingRequest; + + // create path and map variables + String localVarPath = "/mappings/{mappingId}" + .replace("{" + "mappingId" + "}", localVarApiClient.escapeString(mappingId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/mappings/{mappingId}".replace("{" + "mappingId" + "}", - localVarApiClient.escapeString(mappingId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call setMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nonnull SetMappingRequest setMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'mappingId' is set + if (mappingId == null) { + throw new ApiException("Missing the required parameter 'mappingId' when calling setMapping(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'setMappingRequest' is set + if (setMappingRequest == null) { + throw new ApiException("Missing the required parameter 'setMappingRequest' when calling setMapping(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return setMappingCall(mappingId, setMappingRequest, siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Set Mapping + * Sets an mapping; available as an Add-On Module + * @param mappingId Mapping Identifier (required) + * @param setMappingRequest (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public SetResponse setMapping(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nonnull SetMappingRequest setMappingRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setMappingWithHttpInfo(mappingId, setMappingRequest, siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nonnull SetMappingRequest setMappingRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'mappingId' is set - if (mappingId == null) { - throw new ApiException( - "Missing the required parameter 'mappingId' when calling setMapping(Async)"); + /** + * Set Mapping + * Sets an mapping; available as an Add-On Module + * @param mappingId Mapping Identifier (required) + * @param setMappingRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse setMappingWithHttpInfo(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nonnull SetMappingRequest setMappingRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setMappingValidateBeforeCall(mappingId, setMappingRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'setMappingRequest' is set - if (setMappingRequest == null) { - throw new ApiException( - "Missing the required parameter 'setMappingRequest' when calling setMapping(Async)"); + /** + * Set Mapping (asynchronously) + * Sets an mapping; available as an Add-On Module + * @param mappingId Mapping Identifier (required) + * @param setMappingRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call setMappingAsync(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nonnull SetMappingRequest setMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setMappingValidateBeforeCall(mappingId, setMappingRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return setMappingCall(mappingId, setMappingRequest, siteId, _callback); - - } - - /** - * Set Mapping Sets an mapping; available as an Add-On Module - * - * @param mappingId Mapping Identifier (required) - * @param setMappingRequest (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public SetResponse setMapping(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nonnull SetMappingRequest setMappingRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - setMappingWithHttpInfo(mappingId, setMappingRequest, siteId); - return localVarResp.getData(); - } - - /** - * Set Mapping Sets an mapping; available as an Add-On Module - * - * @param mappingId Mapping Identifier (required) - * @param setMappingRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse setMappingWithHttpInfo(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nonnull SetMappingRequest setMappingRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - setMappingValidateBeforeCall(mappingId, setMappingRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set Mapping (asynchronously) Sets an mapping; available as an Add-On Module - * - * @param mappingId Mapping Identifier (required) - * @param setMappingRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call setMappingAsync(@javax.annotation.Nonnull String mappingId, - @javax.annotation.Nonnull SetMappingRequest setMappingRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - setMappingValidateBeforeCall(mappingId, setMappingRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/PublicApi.java b/src/main/java/com/formkiq/client/api/PublicApi.java index 68f4b2a85..4a4134eaf 100644 --- a/src/main/java/com/formkiq/client/api/PublicApi.java +++ b/src/main/java/com/formkiq/client/api/PublicApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -45,453 +38,320 @@ import java.util.Map; public class PublicApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public PublicApi() { - this(Configuration.getDefaultApiClient()); - } - - public PublicApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for publicAddDocument - * - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call publicAddDocumentCall( - @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public PublicApi() { + this(Configuration.getDefaultApiClient()); } - Object localVarPostBody = addDocumentRequest; + public PublicApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - // create path and map variables - String localVarPath = "/public/documents"; + public ApiClient getApiClient() { + return localVarApiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call publicAddDocumentValidateBeforeCall( - @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addDocumentRequest' is set - if (addDocumentRequest == null) { - throw new ApiException( - "Missing the required parameter 'addDocumentRequest' when calling publicAddDocument(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - return publicAddDocumentCall(addDocumentRequest, siteId, _callback); - - } - - /** - * Public add document Allow unauthenticated creation of new documents; must be enabled during - * installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to - * document schema See POST /documents/{documentId}/actions for adding actions to document schema - * - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddDocumentResponse publicAddDocument( - @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - publicAddDocumentWithHttpInfo(addDocumentRequest, siteId); - return localVarResp.getData(); - } - - /** - * Public add document Allow unauthenticated creation of new documents; must be enabled during - * installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to - * document schema See POST /documents/{documentId}/actions for adding actions to document schema - * - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse publicAddDocumentWithHttpInfo( - @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - publicAddDocumentValidateBeforeCall(addDocumentRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Public add document (asynchronously) Allow unauthenticated creation of new documents; must be - * enabled during installation (disabled by default) See POST /documents/{documentId}/tags for - * adding tags to document schema See POST /documents/{documentId}/actions for adding actions to - * document schema - * - * @param addDocumentRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call publicAddDocumentAsync( - @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - publicAddDocumentValidateBeforeCall(addDocumentRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for publicAddWebhook - * - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call publicAddWebhookCall(@javax.annotation.Nonnull String webhooksPlus, - @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for publicAddDocument + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call publicAddDocumentCall(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentRequest; + + // create path and map variables + String localVarPath = "/public/documents"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = body; + @SuppressWarnings("rawtypes") + private okhttp3.Call publicAddDocumentValidateBeforeCall(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addDocumentRequest' is set + if (addDocumentRequest == null) { + throw new ApiException("Missing the required parameter 'addDocumentRequest' when calling publicAddDocument(Async)"); + } + + return publicAddDocumentCall(addDocumentRequest, siteId, _callback); - // create path and map variables - String localVarPath = "/public/webhooks/{webhooks+}".replace("{" + "webhooks+" + "}", - localVarApiClient.escapeString(webhooksPlus.toString())); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + /** + * Public add document + * Allow unauthenticated creation of new documents; must be enabled during installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddDocumentResponse publicAddDocument(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = publicAddDocumentWithHttpInfo(addDocumentRequest, siteId); + return localVarResp.getData(); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + /** + * Public add document + * Allow unauthenticated creation of new documents; must be enabled during installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse publicAddDocumentWithHttpInfo(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = publicAddDocumentValidateBeforeCall(addDocumentRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Public add document (asynchronously) + * Allow unauthenticated creation of new documents; must be enabled during installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema + * @param addDocumentRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call publicAddDocumentAsync(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = publicAddDocumentValidateBeforeCall(addDocumentRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for publicAddWebhook + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call publicAddWebhookCall(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/public/webhooks/{webhooks+}" + .replace("{" + "webhooks+" + "}", localVarApiClient.escapeString(webhooksPlus.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + @SuppressWarnings("rawtypes") + private okhttp3.Call publicAddWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhooksPlus' is set + if (webhooksPlus == null) { + throw new ApiException("Missing the required parameter 'webhooksPlus' when calling publicAddWebhook(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling publicAddWebhook(Async)"); + } + + return publicAddWebhookCall(webhooksPlus, body, siteId, _callback); + } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call publicAddWebhookValidateBeforeCall( - @javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhooksPlus' is set - if (webhooksPlus == null) { - throw new ApiException( - "Missing the required parameter 'webhooksPlus' when calling publicAddWebhook(Async)"); + /** + * Public add webhook + * Receive an incoming public post to a specified webhook and creates a document based on the data sent; must be enabled during installation (disabled by default) + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @return DocumentId + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DocumentId publicAddWebhook(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = publicAddWebhookWithHttpInfo(webhooksPlus, body, siteId); + return localVarResp.getData(); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling publicAddWebhook(Async)"); + /** + * Public add webhook + * Receive an incoming public post to a specified webhook and creates a document based on the data sent; must be enabled during installation (disabled by default) + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DocumentId> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse publicAddWebhookWithHttpInfo(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = publicAddWebhookValidateBeforeCall(webhooksPlus, body, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return publicAddWebhookCall(webhooksPlus, body, siteId, _callback); - - } - - /** - * Public add webhook Receive an incoming public post to a specified webhook and creates a - * document based on the data sent; must be enabled during installation (disabled by default) - * - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @return DocumentId - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DocumentId publicAddWebhook(@javax.annotation.Nonnull String webhooksPlus, - @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = publicAddWebhookWithHttpInfo(webhooksPlus, body, siteId); - return localVarResp.getData(); - } - - /** - * Public add webhook Receive an incoming public post to a specified webhook and creates a - * document based on the data sent; must be enabled during installation (disabled by default) - * - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DocumentId> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse publicAddWebhookWithHttpInfo( - @javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - publicAddWebhookValidateBeforeCall(webhooksPlus, body, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Public add webhook (asynchronously) Receive an incoming public post to a specified webhook and - * creates a document based on the data sent; must be enabled during installation (disabled by - * default) - * - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call publicAddWebhookAsync(@javax.annotation.Nonnull String webhooksPlus, - @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - publicAddWebhookValidateBeforeCall(webhooksPlus, body, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Public add webhook (asynchronously) + * Receive an incoming public post to a specified webhook and creates a document based on the data sent; must be enabled during installation (disabled by default) + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call publicAddWebhookAsync(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = publicAddWebhookValidateBeforeCall(webhooksPlus, body, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/ReindexApi.java b/src/main/java/com/formkiq/client/api/ReindexApi.java index 5d83e79f8..f1a7deecc 100644 --- a/src/main/java/com/formkiq/client/api/ReindexApi.java +++ b/src/main/java/com/formkiq/client/api/ReindexApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -45,275 +38,189 @@ import java.util.Map; public class ReindexApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public ReindexApi() { - this(Configuration.getDefaultApiClient()); - } - - public ReindexApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addReindexDocument - * - * @param documentId Document Identifier (required) - * @param addReindexDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addReindexDocumentCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ReindexApi() { + this(Configuration.getDefaultApiClient()); + } + + public ReindexApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - Object localVarPostBody = addReindexDocumentRequest; + public int getHostIndex() { + return localHostIndex; + } - // create path and map variables - String localVarPath = "/reindex/documents/{documentId}".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Build call for addReindexDocument + * @param documentId Document Identifier (required) + * @param addReindexDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addReindexDocumentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addReindexDocumentRequest; + + // create path and map variables + String localVarPath = "/reindex/documents/{documentId}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + @SuppressWarnings("rawtypes") + private okhttp3.Call addReindexDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling addReindexDocument(Async)"); + } + + // verify the required parameter 'addReindexDocumentRequest' is set + if (addReindexDocumentRequest == null) { + throw new ApiException("Missing the required parameter 'addReindexDocumentRequest' when calling addReindexDocument(Async)"); + } + + return addReindexDocumentCall(documentId, addReindexDocumentRequest, siteId, _callback); + } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addReindexDocumentValidateBeforeCall( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling addReindexDocument(Async)"); + /** + * Reindex metadata on a document + * The API allows for the reindexing of a document's metadata determined by the target. ATTRIBUTE target will regenerate the composite keys for a document based on the Classification / SiteSchema + * @param documentId Document Identifier (required) + * @param addReindexDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddResponse addReindexDocument(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addReindexDocumentWithHttpInfo(documentId, addReindexDocumentRequest, siteId); + return localVarResp.getData(); } - // verify the required parameter 'addReindexDocumentRequest' is set - if (addReindexDocumentRequest == null) { - throw new ApiException( - "Missing the required parameter 'addReindexDocumentRequest' when calling addReindexDocument(Async)"); + /** + * Reindex metadata on a document + * The API allows for the reindexing of a document's metadata determined by the target. ATTRIBUTE target will regenerate the composite keys for a document based on the Classification / SiteSchema + * @param documentId Document Identifier (required) + * @param addReindexDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addReindexDocumentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addReindexDocumentValidateBeforeCall(documentId, addReindexDocumentRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return addReindexDocumentCall(documentId, addReindexDocumentRequest, siteId, _callback); - - } - - /** - * Reindex metadata on a document The API allows for the reindexing of a document's metadata - * determined by the target. ATTRIBUTE target will regenerate the composite keys for a document - * based on the Classification / SiteSchema - * - * @param documentId Document Identifier (required) - * @param addReindexDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddResponse addReindexDocument(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addReindexDocumentWithHttpInfo(documentId, addReindexDocumentRequest, siteId); - return localVarResp.getData(); - } - - /** - * Reindex metadata on a document The API allows for the reindexing of a document's metadata - * determined by the target. ATTRIBUTE target will regenerate the composite keys for a document - * based on the Classification / SiteSchema - * - * @param documentId Document Identifier (required) - * @param addReindexDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addReindexDocumentWithHttpInfo( - @javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - addReindexDocumentValidateBeforeCall(documentId, addReindexDocumentRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Reindex metadata on a document (asynchronously) The API allows for the reindexing of a - * document's metadata determined by the target. ATTRIBUTE target will regenerate the - * composite keys for a document based on the Classification / SiteSchema - * - * @param documentId Document Identifier (required) - * @param addReindexDocumentRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addReindexDocumentAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = addReindexDocumentValidateBeforeCall(documentId, - addReindexDocumentRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Reindex metadata on a document (asynchronously) + * The API allows for the reindexing of a document's metadata determined by the target. ATTRIBUTE target will regenerate the composite keys for a document based on the Classification / SiteSchema + * @param documentId Document Identifier (required) + * @param addReindexDocumentRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addReindexDocumentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addReindexDocumentValidateBeforeCall(documentId, addReindexDocumentRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/RulesetsApi.java b/src/main/java/com/formkiq/client/api/RulesetsApi.java index fee1276ad..6f6b71e28 100644 --- a/src/main/java/com/formkiq/client/api/RulesetsApi.java +++ b/src/main/java/com/formkiq/client/api/RulesetsApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,2158 +50,1488 @@ import java.util.Map; public class RulesetsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public RulesetsApi() { - this(Configuration.getDefaultApiClient()); - } - - public RulesetsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addRule - * - * @param rulesetId Ruleset Identifier (required) - * @param addRuleRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addRuleCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull AddRuleRequest addRuleRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - Object localVarPostBody = addRuleRequest; + public RulesetsApi() { + this(Configuration.getDefaultApiClient()); + } - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}/rules".replace("{" + "rulesetId" + "}", - localVarApiClient.escapeString(rulesetId.toString())); + public RulesetsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public ApiClient getApiClient() { + return localVarApiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull AddRuleRequest addRuleRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException( - "Missing the required parameter 'rulesetId' when calling addRule(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - // verify the required parameter 'addRuleRequest' is set - if (addRuleRequest == null) { - throw new ApiException( - "Missing the required parameter 'addRuleRequest' when calling addRule(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - return addRuleCall(rulesetId, addRuleRequest, siteId, _callback); - - } - - /** - * Add New Rule Creates a new rule; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param addRuleRequest (required) - * @param siteId Site Identifier (optional) - * @return AddRuleResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddRuleResponse addRule(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull AddRuleRequest addRuleRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addRuleWithHttpInfo(rulesetId, addRuleRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add New Rule Creates a new rule; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param addRuleRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddRuleResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addRuleWithHttpInfo( - @javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull AddRuleRequest addRuleRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addRuleValidateBeforeCall(rulesetId, addRuleRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New Rule (asynchronously) Creates a new rule; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param addRuleRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addRuleAsync(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull AddRuleRequest addRuleRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addRuleValidateBeforeCall(rulesetId, addRuleRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addRuleset - * - * @param addRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addRulesetCall(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addRule + * @param rulesetId Ruleset Identifier (required) + * @param addRuleRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addRuleCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull AddRuleRequest addRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addRuleRequest; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}/rules" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = addRulesetRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call addRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull AddRuleRequest addRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException("Missing the required parameter 'rulesetId' when calling addRule(Async)"); + } - // create path and map variables - String localVarPath = "/rulesets"; + // verify the required parameter 'addRuleRequest' is set + if (addRuleRequest == null) { + throw new ApiException("Missing the required parameter 'addRuleRequest' when calling addRule(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addRuleCall(rulesetId, addRuleRequest, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add New Rule + * Creates a new rule; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param addRuleRequest (required) + * @param siteId Site Identifier (optional) + * @return AddRuleResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddRuleResponse addRule(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull AddRuleRequest addRuleRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addRuleWithHttpInfo(rulesetId, addRuleRequest, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add New Rule + * Creates a new rule; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param addRuleRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddRuleResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addRuleWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull AddRuleRequest addRuleRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addRuleValidateBeforeCall(rulesetId, addRuleRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addRulesetValidateBeforeCall( - @javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addRulesetRequest' is set - if (addRulesetRequest == null) { - throw new ApiException( - "Missing the required parameter 'addRulesetRequest' when calling addRuleset(Async)"); + /** + * Add New Rule (asynchronously) + * Creates a new rule; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param addRuleRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addRuleAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull AddRuleRequest addRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addRuleValidateBeforeCall(rulesetId, addRuleRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return addRulesetCall(addRulesetRequest, siteId, _callback); - - } - - /** - * Add New Ruleset Creates a new ruleset; available as an Add-On Module - * - * @param addRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @return AddRulesetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddRulesetResponse addRuleset( - @javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addRulesetWithHttpInfo(addRulesetRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add New Ruleset Creates a new ruleset; available as an Add-On Module - * - * @param addRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddRulesetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addRulesetWithHttpInfo( - @javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addRulesetValidateBeforeCall(addRulesetRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New Ruleset (asynchronously) Creates a new ruleset; available as an Add-On Module - * - * @param addRulesetRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addRulesetAsync(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = addRulesetValidateBeforeCall(addRulesetRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteRule - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteRuleCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addRuleset + * @param addRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addRulesetCall(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addRulesetRequest; + + // create path and map variables + String localVarPath = "/rulesets"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) - .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call addRulesetValidateBeforeCall(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addRulesetRequest' is set + if (addRulesetRequest == null) { + throw new ApiException("Missing the required parameter 'addRulesetRequest' when calling addRuleset(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return addRulesetCall(addRulesetRequest, siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add New Ruleset + * Creates a new ruleset; available as an Add-On Module + * @param addRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @return AddRulesetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddRulesetResponse addRuleset(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addRulesetWithHttpInfo(addRulesetRequest, siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException( - "Missing the required parameter 'rulesetId' when calling deleteRule(Async)"); + /** + * Add New Ruleset + * Creates a new ruleset; available as an Add-On Module + * @param addRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddRulesetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addRulesetWithHttpInfo(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addRulesetValidateBeforeCall(addRulesetRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'ruleId' is set - if (ruleId == null) { - throw new ApiException( - "Missing the required parameter 'ruleId' when calling deleteRule(Async)"); + /** + * Add New Ruleset (asynchronously) + * Creates a new ruleset; available as an Add-On Module + * @param addRulesetRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addRulesetAsync(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addRulesetValidateBeforeCall(addRulesetRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return deleteRuleCall(rulesetId, ruleId, siteId, _callback); - - } - - /** - * Delete Rule Delete Rule; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteRuleResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteRuleResponse deleteRule(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - deleteRuleWithHttpInfo(rulesetId, ruleId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Rule Delete Rule; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteRuleResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteRuleWithHttpInfo( - @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteRuleValidateBeforeCall(rulesetId, ruleId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Rule (asynchronously) Delete Rule; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteRuleAsync(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteRuleValidateBeforeCall(rulesetId, ruleId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteRuleset - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteRulesetCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteRule + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteRuleCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) + .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException("Missing the required parameter 'rulesetId' when calling deleteRule(Async)"); + } - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}".replace("{" + "rulesetId" + "}", - localVarApiClient.escapeString(rulesetId.toString())); + // verify the required parameter 'ruleId' is set + if (ruleId == null) { + throw new ApiException("Missing the required parameter 'ruleId' when calling deleteRule(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return deleteRuleCall(rulesetId, ruleId, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Delete Rule + * Delete Rule; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteRuleResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteRuleResponse deleteRule(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteRuleWithHttpInfo(rulesetId, ruleId, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete Rule + * Delete Rule; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteRuleResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteRuleWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteRuleValidateBeforeCall(rulesetId, ruleId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException( - "Missing the required parameter 'rulesetId' when calling deleteRuleset(Async)"); + /** + * Delete Rule (asynchronously) + * Delete Rule; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteRuleAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteRuleValidateBeforeCall(rulesetId, ruleId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return deleteRulesetCall(rulesetId, siteId, _callback); - - } - - /** - * Delete Ruleset Delete Ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteRulesetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteRulesetResponse deleteRuleset(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteRulesetWithHttpInfo(rulesetId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Ruleset Delete Ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteRulesetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteRulesetWithHttpInfo( - @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteRulesetValidateBeforeCall(rulesetId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Ruleset (asynchronously) Delete Ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteRulesetAsync(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteRulesetValidateBeforeCall(rulesetId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getRule - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getRuleCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteRuleset + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteRulesetCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) - .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException("Missing the required parameter 'rulesetId' when calling deleteRuleset(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return deleteRulesetCall(rulesetId, siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete Ruleset + * Delete Ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteRulesetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteRulesetResponse deleteRuleset(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteRulesetWithHttpInfo(rulesetId, siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException( - "Missing the required parameter 'rulesetId' when calling getRule(Async)"); + /** + * Delete Ruleset + * Delete Ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteRulesetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteRulesetWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteRulesetValidateBeforeCall(rulesetId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'ruleId' is set - if (ruleId == null) { - throw new ApiException("Missing the required parameter 'ruleId' when calling getRule(Async)"); + /** + * Delete Ruleset (asynchronously) + * Delete Ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteRulesetAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteRulesetValidateBeforeCall(rulesetId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return getRuleCall(rulesetId, ruleId, siteId, _callback); - - } - - /** - * Get Rule Returns a rule in a ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetRuleResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetRuleResponse getRule(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = getRuleWithHttpInfo(rulesetId, ruleId, siteId); - return localVarResp.getData(); - } - - /** - * Get Rule Returns a rule in a ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetRuleResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getRuleWithHttpInfo( - @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getRuleValidateBeforeCall(rulesetId, ruleId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Rule (asynchronously) Returns a rule in a ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getRuleAsync(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRuleValidateBeforeCall(rulesetId, ruleId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getRules - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getRulesCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getRule + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getRuleCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) + .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}/rules".replace("{" + "rulesetId" + "}", - localVarApiClient.escapeString(rulesetId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + @SuppressWarnings("rawtypes") + private okhttp3.Call getRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException("Missing the required parameter 'rulesetId' when calling getRule(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + // verify the required parameter 'ruleId' is set + if (ruleId == null) { + throw new ApiException("Missing the required parameter 'ruleId' when calling getRule(Async)"); + } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } + return getRuleCall(rulesetId, ruleId, siteId, _callback); - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get Rule + * Returns a rule in a ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetRuleResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetRuleResponse getRule(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getRuleWithHttpInfo(rulesetId, ruleId, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get Rule + * Returns a rule in a ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetRuleResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getRuleWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getRuleValidateBeforeCall(rulesetId, ruleId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getRulesValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException( - "Missing the required parameter 'rulesetId' when calling getRules(Async)"); + /** + * Get Rule (asynchronously) + * Returns a rule in a ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getRuleAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRuleValidateBeforeCall(rulesetId, ruleId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return getRulesCall(rulesetId, siteId, next, limit, _callback); - - } - - /** - * Get Rules Returns a list of rules in a ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetRulesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetRulesResponse getRules(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = - getRulesWithHttpInfo(rulesetId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get Rules Returns a list of rules in a ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetRulesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getRulesWithHttpInfo( - @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - okhttp3.Call localVarCall = getRulesValidateBeforeCall(rulesetId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Rules (asynchronously) Returns a list of rules in a ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getRulesAsync(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - getRulesValidateBeforeCall(rulesetId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getRuleset - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getRulesetCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getRules + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getRulesCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}/rules" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}".replace("{" + "rulesetId" + "}", - localVarApiClient.escapeString(rulesetId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call getRulesValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException("Missing the required parameter 'rulesetId' when calling getRules(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return getRulesCall(rulesetId, siteId, next, limit, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get Rules + * Returns a list of rules in a ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetRulesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetRulesResponse getRules(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getRulesWithHttpInfo(rulesetId, siteId, next, limit); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get Rules + * Returns a list of rules in a ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetRulesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getRulesWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getRulesValidateBeforeCall(rulesetId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException( - "Missing the required parameter 'rulesetId' when calling getRuleset(Async)"); + /** + * Get Rules (asynchronously) + * Returns a list of rules in a ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getRulesAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRulesValidateBeforeCall(rulesetId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return getRulesetCall(rulesetId, siteId, _callback); - - } - - /** - * Get Ruleset Get a rule sets; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetRulesetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetRulesetResponse getRuleset(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getRulesetWithHttpInfo(rulesetId, siteId); - return localVarResp.getData(); - } - - /** - * Get Ruleset Get a rule sets; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetRulesetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getRulesetWithHttpInfo( - @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getRulesetValidateBeforeCall(rulesetId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Ruleset (asynchronously) Get a rule sets; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getRulesetAsync(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getRulesetValidateBeforeCall(rulesetId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getRulesets - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getRulesetsCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getRuleset + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getRulesetCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call getRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException("Missing the required parameter 'rulesetId' when calling getRuleset(Async)"); + } - // create path and map variables - String localVarPath = "/rulesets"; + return getRulesetCall(rulesetId, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + /** + * Get Ruleset + * Get a rule sets; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetRulesetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetRulesetResponse getRuleset(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getRulesetWithHttpInfo(rulesetId, siteId); + return localVarResp.getData(); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Get Ruleset + * Get a rule sets; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetRulesetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getRulesetWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getRulesetValidateBeforeCall(rulesetId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Get Ruleset (asynchronously) + * Get a rule sets; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getRulesetAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRulesetValidateBeforeCall(rulesetId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } + /** + * Build call for getRulesets + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getRulesetsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/rulesets"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getRulesetsValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + return getRulesetsCall(siteId, next, limit, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get Rulesets + * Returns a list of rule sets; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetRulesetsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetRulesetsResponse getRulesets(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getRulesetsWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getRulesetsValidateBeforeCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - return getRulesetsCall(siteId, next, limit, _callback); - - } - - /** - * Get Rulesets Returns a list of rule sets; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetRulesetsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetRulesetsResponse getRulesets(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = getRulesetsWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get Rulesets Returns a list of rule sets; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetRulesetsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getRulesetsWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Rulesets (asynchronously) Returns a list of rule sets; available as an Add-On Module - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getRulesetsAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateRule - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param updateRuleRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateRuleCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, - @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get Rulesets + * Returns a list of rule sets; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetRulesetsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getRulesetsWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = updateRuleRequest; + /** + * Get Rulesets (asynchronously) + * Returns a list of rule sets; available as an Add-On Module + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getRulesetsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateRule + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param updateRuleRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateRuleCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateRuleRequest; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) + .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) - .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call updateRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException("Missing the required parameter 'rulesetId' when calling updateRule(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'ruleId' is set + if (ruleId == null) { + throw new ApiException("Missing the required parameter 'ruleId' when calling updateRule(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + // verify the required parameter 'updateRuleRequest' is set + if (updateRuleRequest == null) { + throw new ApiException("Missing the required parameter 'updateRuleRequest' when calling updateRule(Async)"); + } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } + return updateRuleCall(rulesetId, ruleId, updateRuleRequest, siteId, _callback); - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, - @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException( - "Missing the required parameter 'rulesetId' when calling updateRule(Async)"); + /** + * Update Rule + * Update Rule; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param updateRuleRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateRuleResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public UpdateRuleResponse updateRule(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = updateRuleWithHttpInfo(rulesetId, ruleId, updateRuleRequest, siteId); + return localVarResp.getData(); } - // verify the required parameter 'ruleId' is set - if (ruleId == null) { - throw new ApiException( - "Missing the required parameter 'ruleId' when calling updateRule(Async)"); + /** + * Update Rule + * Update Rule; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param updateRuleRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateRuleResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse updateRuleWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateRuleValidateBeforeCall(rulesetId, ruleId, updateRuleRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'updateRuleRequest' is set - if (updateRuleRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateRuleRequest' when calling updateRule(Async)"); + /** + * Update Rule (asynchronously) + * Update Rule; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param updateRuleRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateRuleAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateRuleValidateBeforeCall(rulesetId, ruleId, updateRuleRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return updateRuleCall(rulesetId, ruleId, updateRuleRequest, siteId, _callback); - - } - - /** - * Update Rule Update Rule; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param updateRuleRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateRuleResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public UpdateRuleResponse updateRule(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, - @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - updateRuleWithHttpInfo(rulesetId, ruleId, updateRuleRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update Rule Update Rule; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param updateRuleRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateRuleResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse updateRuleWithHttpInfo( - @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, - @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - updateRuleValidateBeforeCall(rulesetId, ruleId, updateRuleRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Rule (asynchronously) Update Rule; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param updateRuleRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateRuleAsync(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull String ruleId, - @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - updateRuleValidateBeforeCall(rulesetId, ruleId, updateRuleRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateRuleset - * - * @param rulesetId Ruleset Identifier (required) - * @param updateRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateRulesetCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for updateRuleset + * @param rulesetId Ruleset Identifier (required) + * @param updateRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateRulesetCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateRulesetRequest; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = updateRulesetRequest; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}".replace("{" + "rulesetId" + "}", - localVarApiClient.escapeString(rulesetId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call updateRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException("Missing the required parameter 'rulesetId' when calling updateRuleset(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'updateRulesetRequest' is set + if (updateRulesetRequest == null) { + throw new ApiException("Missing the required parameter 'updateRulesetRequest' when calling updateRuleset(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return updateRulesetCall(rulesetId, updateRulesetRequest, siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Update Ruleset + * Updates an existing ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param updateRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateRulesetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public UpdateRulesetResponse updateRuleset(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = updateRulesetWithHttpInfo(rulesetId, updateRulesetRequest, siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException( - "Missing the required parameter 'rulesetId' when calling updateRuleset(Async)"); + /** + * Update Ruleset + * Updates an existing ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param updateRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateRulesetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse updateRulesetWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateRulesetValidateBeforeCall(rulesetId, updateRulesetRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'updateRulesetRequest' is set - if (updateRulesetRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateRulesetRequest' when calling updateRuleset(Async)"); + /** + * Update Ruleset (asynchronously) + * Updates an existing ruleset; available as an Add-On Module + * @param rulesetId Ruleset Identifier (required) + * @param updateRulesetRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateRulesetAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateRulesetValidateBeforeCall(rulesetId, updateRulesetRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return updateRulesetCall(rulesetId, updateRulesetRequest, siteId, _callback); - - } - - /** - * Update Ruleset Updates an existing ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param updateRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateRulesetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public UpdateRulesetResponse updateRuleset(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - updateRulesetWithHttpInfo(rulesetId, updateRulesetRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update Ruleset Updates an existing ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param updateRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateRulesetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse updateRulesetWithHttpInfo( - @javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - updateRulesetValidateBeforeCall(rulesetId, updateRulesetRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Ruleset (asynchronously) Updates an existing ruleset; available as an Add-On Module - * - * @param rulesetId Ruleset Identifier (required) - * @param updateRulesetRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateRulesetAsync(@javax.annotation.Nonnull String rulesetId, - @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - updateRulesetValidateBeforeCall(rulesetId, updateRulesetRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/SchemasApi.java b/src/main/java/com/formkiq/client/api/SchemasApi.java index 84d990b72..de86f82ed 100644 --- a/src/main/java/com/formkiq/client/api/SchemasApi.java +++ b/src/main/java/com/formkiq/client/api/SchemasApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -53,1958 +46,1333 @@ import java.util.Map; public class SchemasApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public SchemasApi() { - this(Configuration.getDefaultApiClient()); - } - - public SchemasApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addClassification - * - * @param siteId Site Identifier (required) - * @param addClassificationRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addClassificationCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SchemasApi() { + this(Configuration.getDefaultApiClient()); } - Object localVarPostBody = addClassificationRequest; + public SchemasApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); + public ApiClient getApiClient() { + return localVarApiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public int getHostIndex() { + return localHostIndex; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling addClassification(Async)"); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - // verify the required parameter 'addClassificationRequest' is set - if (addClassificationRequest == null) { - throw new ApiException( - "Missing the required parameter 'addClassificationRequest' when calling addClassification(Async)"); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - return addClassificationCall(siteId, addClassificationRequest, _callback); - - } - - /** - * Add Classification Add Classification - * - * @param siteId Site Identifier (required) - * @param addClassificationRequest (required) - * @return AddClassificationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddClassificationResponse addClassification(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest) - throws ApiException { - ApiResponse localVarResp = - addClassificationWithHttpInfo(siteId, addClassificationRequest); - return localVarResp.getData(); - } - - /** - * Add Classification Add Classification - * - * @param siteId Site Identifier (required) - * @param addClassificationRequest (required) - * @return ApiResponse<AddClassificationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addClassificationWithHttpInfo( - @javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest) - throws ApiException { - okhttp3.Call localVarCall = - addClassificationValidateBeforeCall(siteId, addClassificationRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Classification (asynchronously) Add Classification - * - * @param siteId Site Identifier (required) - * @param addClassificationRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addClassificationAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - addClassificationValidateBeforeCall(siteId, addClassificationRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteClassification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteClassificationCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addClassification + * @param siteId Site Identifier (required) + * @param addClassificationRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addClassificationCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addClassificationRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call addClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling addClassification(Async)"); + } - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications/{classificationId}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "classificationId" + "}", - localVarApiClient.escapeString(classificationId.toString())); + // verify the required parameter 'addClassificationRequest' is set + if (addClassificationRequest == null) { + throw new ApiException("Missing the required parameter 'addClassificationRequest' when calling addClassification(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addClassificationCall(siteId, addClassificationRequest, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add Classification + * Add Classification + * @param siteId Site Identifier (required) + * @param addClassificationRequest (required) + * @return AddClassificationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddClassificationResponse addClassification(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest) throws ApiException { + ApiResponse localVarResp = addClassificationWithHttpInfo(siteId, addClassificationRequest); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteClassificationValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling deleteClassification(Async)"); + /** + * Add Classification + * Add Classification + * @param siteId Site Identifier (required) + * @param addClassificationRequest (required) + * @return ApiResponse<AddClassificationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addClassificationWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest) throws ApiException { + okhttp3.Call localVarCall = addClassificationValidateBeforeCall(siteId, addClassificationRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'classificationId' is set - if (classificationId == null) { - throw new ApiException( - "Missing the required parameter 'classificationId' when calling deleteClassification(Async)"); + /** + * Add Classification (asynchronously) + * Add Classification + * @param siteId Site Identifier (required) + * @param addClassificationRequest (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addClassificationAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addClassificationValidateBeforeCall(siteId, addClassificationRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return deleteClassificationCall(siteId, classificationId, _callback); - - } - - /** - * Delete Classification Delete Classification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteClassification(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId) throws ApiException { - ApiResponse localVarResp = - deleteClassificationWithHttpInfo(siteId, classificationId); - return localVarResp.getData(); - } - - /** - * Delete Classification Delete Classification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteClassificationWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId) - throws ApiException { - okhttp3.Call localVarCall = - deleteClassificationValidateBeforeCall(siteId, classificationId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Classification (asynchronously) Delete Classification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteClassificationAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteClassificationValidateBeforeCall(siteId, classificationId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getClassification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getClassificationCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteClassification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteClassificationCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications/{classificationId}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "classificationId" + "}", localVarApiClient.escapeString(classificationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling deleteClassification(Async)"); + } - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications/{classificationId}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "classificationId" + "}", - localVarApiClient.escapeString(classificationId.toString())); + // verify the required parameter 'classificationId' is set + if (classificationId == null) { + throw new ApiException("Missing the required parameter 'classificationId' when calling deleteClassification(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (locale != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); - } + return deleteClassificationCall(siteId, classificationId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete Classification + * Delete Classification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteClassification(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId) throws ApiException { + ApiResponse localVarResp = deleteClassificationWithHttpInfo(siteId, classificationId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getClassification(Async)"); + /** + * Delete Classification + * Delete Classification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteClassificationWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId) throws ApiException { + okhttp3.Call localVarCall = deleteClassificationValidateBeforeCall(siteId, classificationId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'classificationId' is set - if (classificationId == null) { - throw new ApiException( - "Missing the required parameter 'classificationId' when calling getClassification(Async)"); + /** + * Delete Classification (asynchronously) + * Delete Classification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteClassificationAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteClassificationValidateBeforeCall(siteId, classificationId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return getClassificationCall(siteId, classificationId, locale, _callback); - - } - - /** - * Get Classification Get Classification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return GetClassificationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetClassificationResponse getClassification(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale) - throws ApiException { - ApiResponse localVarResp = - getClassificationWithHttpInfo(siteId, classificationId, locale); - return localVarResp.getData(); - } - - /** - * Get Classification Get Classification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return ApiResponse<GetClassificationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getClassificationWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nullable String locale) throws ApiException { - okhttp3.Call localVarCall = - getClassificationValidateBeforeCall(siteId, classificationId, locale, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Classification (asynchronously) Get Classification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getClassificationAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getClassificationValidateBeforeCall(siteId, classificationId, locale, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getClassificationAttributeAllowedValues - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getClassificationAttributeAllowedValuesCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getClassification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getClassificationCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications/{classificationId}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "classificationId" + "}", localVarApiClient.escapeString(classificationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call getClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getClassification(Async)"); + } - // create path and map variables - String localVarPath = - "/sites/{siteId}/classifications/{classificationId}/attributes/{key}/allowedValues" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "classificationId" + "}", - localVarApiClient.escapeString(classificationId.toString())) - .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); + // verify the required parameter 'classificationId' is set + if (classificationId == null) { + throw new ApiException("Missing the required parameter 'classificationId' when calling getClassification(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return getClassificationCall(siteId, classificationId, locale, _callback); - if (locale != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get Classification + * Get Classification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return GetClassificationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetClassificationResponse getClassification(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale) throws ApiException { + ApiResponse localVarResp = getClassificationWithHttpInfo(siteId, classificationId, locale); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get Classification + * Get Classification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return ApiResponse<GetClassificationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getClassificationWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale) throws ApiException { + okhttp3.Call localVarCall = getClassificationValidateBeforeCall(siteId, classificationId, locale, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getClassificationAttributeAllowedValuesValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getClassificationAttributeAllowedValues(Async)"); + /** + * Get Classification (asynchronously) + * Get Classification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getClassificationAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getClassificationValidateBeforeCall(siteId, classificationId, locale, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } + /** + * Build call for getClassificationAttributeAllowedValues + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getClassificationAttributeAllowedValuesCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications/{classificationId}/attributes/{key}/allowedValues" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "classificationId" + "}", localVarApiClient.escapeString(classificationId.toString())) + .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); - // verify the required parameter 'classificationId' is set - if (classificationId == null) { - throw new ApiException( - "Missing the required parameter 'classificationId' when calling getClassificationAttributeAllowedValues(Async)"); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException( - "Missing the required parameter 'key' when calling getClassificationAttributeAllowedValues(Async)"); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call getClassificationAttributeAllowedValuesValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getClassificationAttributeAllowedValues(Async)"); + } - return getClassificationAttributeAllowedValuesCall(siteId, classificationId, key, locale, - _callback); - - } - - /** - * Get Classification's Attribute Allowed Values Returns an attribute's allowed values - * that spans for a specific classifications and site schema - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return GetAttributeAllowedValuesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetAttributeAllowedValuesResponse getClassificationAttributeAllowedValues( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) - throws ApiException { - ApiResponse localVarResp = - getClassificationAttributeAllowedValuesWithHttpInfo(siteId, classificationId, key, locale); - return localVarResp.getData(); - } - - /** - * Get Classification's Attribute Allowed Values Returns an attribute's allowed values - * that spans for a specific classifications and site schema - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return ApiResponse<GetAttributeAllowedValuesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getClassificationAttributeAllowedValuesWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) - throws ApiException { - okhttp3.Call localVarCall = getClassificationAttributeAllowedValuesValidateBeforeCall(siteId, - classificationId, key, locale, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Classification's Attribute Allowed Values (asynchronously) Returns an attribute's - * allowed values that spans for a specific classifications and site schema - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getClassificationAttributeAllowedValuesAsync( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getClassificationAttributeAllowedValuesValidateBeforeCall(siteId, - classificationId, key, locale, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getSitesClassifications - * - * @param siteId Site Identifier (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSitesClassificationsCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + // verify the required parameter 'classificationId' is set + if (classificationId == null) { + throw new ApiException("Missing the required parameter 'classificationId' when calling getClassificationAttributeAllowedValues(Async)"); + } - Object localVarPostBody = null; + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException("Missing the required parameter 'key' when calling getClassificationAttributeAllowedValues(Async)"); + } - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); + return getClassificationAttributeAllowedValuesCall(siteId, classificationId, key, locale, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Get Classification's Attribute Allowed Values + * Returns an attribute's allowed values that spans for a specific classifications and site schema + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return GetAttributeAllowedValuesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetAttributeAllowedValuesResponse getClassificationAttributeAllowedValues(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) throws ApiException { + ApiResponse localVarResp = getClassificationAttributeAllowedValuesWithHttpInfo(siteId, classificationId, key, locale); + return localVarResp.getData(); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Get Classification's Attribute Allowed Values + * Returns an attribute's allowed values that spans for a specific classifications and site schema + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return ApiResponse<GetAttributeAllowedValuesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getClassificationAttributeAllowedValuesWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) throws ApiException { + okhttp3.Call localVarCall = getClassificationAttributeAllowedValuesValidateBeforeCall(siteId, classificationId, key, locale, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get Classification's Attribute Allowed Values (asynchronously) + * Returns an attribute's allowed values that spans for a specific classifications and site schema + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getClassificationAttributeAllowedValuesAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getClassificationAttributeAllowedValuesValidateBeforeCall(siteId, classificationId, key, locale, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSitesClassifications + * @param siteId Site Identifier (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSitesClassificationsCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + @SuppressWarnings("rawtypes") + private okhttp3.Call getSitesClassificationsValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getSitesClassifications(Async)"); + } + + return getSitesClassificationsCall(siteId, limit, next, _callback); + } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getSitesClassificationsValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getSitesClassifications(Async)"); + /** + * Get Sites Classifications + * Gets Sites Classifications + * @param siteId Site Identifier (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetClassificationsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetClassificationsResponse getSitesClassifications(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getSitesClassificationsWithHttpInfo(siteId, limit, next); + return localVarResp.getData(); } - return getSitesClassificationsCall(siteId, limit, next, _callback); - - } - - /** - * Get Sites Classifications Gets Sites Classifications - * - * @param siteId Site Identifier (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetClassificationsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetClassificationsResponse getSitesClassifications(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - ApiResponse localVarResp = - getSitesClassificationsWithHttpInfo(siteId, limit, next); - return localVarResp.getData(); - } - - /** - * Get Sites Classifications Gets Sites Classifications - * - * @param siteId Site Identifier (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetClassificationsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getSitesClassificationsWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = - getSitesClassificationsValidateBeforeCall(siteId, limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Sites Classifications (asynchronously) Gets Sites Classifications - * - * @param siteId Site Identifier (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSitesClassificationsAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getSitesClassificationsValidateBeforeCall(siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getSitesSchema - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSitesSchemaCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get Sites Classifications + * Gets Sites Classifications + * @param siteId Site Identifier (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetClassificationsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getSitesClassificationsWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getSitesClassificationsValidateBeforeCall(siteId, limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = null; + /** + * Get Sites Classifications (asynchronously) + * Gets Sites Classifications + * @param siteId Site Identifier (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSitesClassificationsAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSitesClassificationsValidateBeforeCall(siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSitesSchema + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSitesSchemaCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/schema/document" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/sites/{siteId}/schema/document".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call getSitesSchemaValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getSitesSchema(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return getSitesSchemaCall(siteId, locale, _callback); - if (locale != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get Sites Schema + * Gets Sites schema + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return GetSitesSchemaResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetSitesSchemaResponse getSitesSchema(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale) throws ApiException { + ApiResponse localVarResp = getSitesSchemaWithHttpInfo(siteId, locale); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get Sites Schema + * Gets Sites schema + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return ApiResponse<GetSitesSchemaResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getSitesSchemaWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale) throws ApiException { + okhttp3.Call localVarCall = getSitesSchemaValidateBeforeCall(siteId, locale, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getSitesSchemaValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getSitesSchema(Async)"); + /** + * Get Sites Schema (asynchronously) + * Gets Sites schema + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSitesSchemaAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSitesSchemaValidateBeforeCall(siteId, locale, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } + /** + * Build call for getSitesSchemaAttributeAllowedValues + * @param siteId Site Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSitesSchemaAttributeAllowedValuesCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/schema/document/attributes/{key}/allowedValues" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); - return getSitesSchemaCall(siteId, locale, _callback); - - } - - /** - * Get Sites Schema Gets Sites schema - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return GetSitesSchemaResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetSitesSchemaResponse getSitesSchema(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String locale) throws ApiException { - ApiResponse localVarResp = getSitesSchemaWithHttpInfo(siteId, locale); - return localVarResp.getData(); - } - - /** - * Get Sites Schema Gets Sites schema - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return ApiResponse<GetSitesSchemaResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getSitesSchemaWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale) - throws ApiException { - okhttp3.Call localVarCall = getSitesSchemaValidateBeforeCall(siteId, locale, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Sites Schema (asynchronously) Gets Sites schema - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSitesSchemaAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String locale, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getSitesSchemaValidateBeforeCall(siteId, locale, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getSitesSchemaAttributeAllowedValues - * - * @param siteId Site Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSitesSchemaAttributeAllowedValuesCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, - @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call getSitesSchemaAttributeAllowedValuesValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getSitesSchemaAttributeAllowedValues(Async)"); + } - // create path and map variables - String localVarPath = "/sites/{siteId}/schema/document/attributes/{key}/allowedValues" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException("Missing the required parameter 'key' when calling getSitesSchemaAttributeAllowedValues(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return getSitesSchemaAttributeAllowedValuesCall(siteId, key, locale, _callback); - if (locale != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get Attribute Allowed Values + * Returns an attribute's allowed values from the site schema + * @param siteId Site Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return GetAttributeAllowedValuesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetAttributeAllowedValuesResponse getSitesSchemaAttributeAllowedValues(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) throws ApiException { + ApiResponse localVarResp = getSitesSchemaAttributeAllowedValuesWithHttpInfo(siteId, key, locale); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get Attribute Allowed Values + * Returns an attribute's allowed values from the site schema + * @param siteId Site Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return ApiResponse<GetAttributeAllowedValuesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getSitesSchemaAttributeAllowedValuesWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) throws ApiException { + okhttp3.Call localVarCall = getSitesSchemaAttributeAllowedValuesValidateBeforeCall(siteId, key, locale, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getSitesSchemaAttributeAllowedValuesValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, - @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getSitesSchemaAttributeAllowedValues(Async)"); + /** + * Get Attribute Allowed Values (asynchronously) + * Returns an attribute's allowed values from the site schema + * @param siteId Site Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSitesSchemaAttributeAllowedValuesAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSitesSchemaAttributeAllowedValuesValidateBeforeCall(siteId, key, locale, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException( - "Missing the required parameter 'key' when calling getSitesSchemaAttributeAllowedValues(Async)"); + /** + * Build call for setClassification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param setClassificationRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call setClassificationCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setClassificationRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications/{classificationId}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "classificationId" + "}", localVarApiClient.escapeString(classificationId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - return getSitesSchemaAttributeAllowedValuesCall(siteId, key, locale, _callback); - - } - - /** - * Get Attribute Allowed Values Returns an attribute's allowed values from the site schema - * - * @param siteId Site Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return GetAttributeAllowedValuesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetAttributeAllowedValuesResponse getSitesSchemaAttributeAllowedValues( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, - @javax.annotation.Nullable String locale) throws ApiException { - ApiResponse localVarResp = - getSitesSchemaAttributeAllowedValuesWithHttpInfo(siteId, key, locale); - return localVarResp.getData(); - } - - /** - * Get Attribute Allowed Values Returns an attribute's allowed values from the site schema - * - * @param siteId Site Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return ApiResponse<GetAttributeAllowedValuesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getSitesSchemaAttributeAllowedValuesWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, - @javax.annotation.Nullable String locale) throws ApiException { - okhttp3.Call localVarCall = - getSitesSchemaAttributeAllowedValuesValidateBeforeCall(siteId, key, locale, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Attribute Allowed Values (asynchronously) Returns an attribute's allowed values from - * the site schema - * - * @param siteId Site Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSitesSchemaAttributeAllowedValuesAsync( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, - @javax.annotation.Nullable String locale, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getSitesSchemaAttributeAllowedValuesValidateBeforeCall(siteId, key, locale, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setClassification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param setClassificationRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call setClassificationCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } + @SuppressWarnings("rawtypes") + private okhttp3.Call setClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling setClassification(Async)"); + } - Object localVarPostBody = setClassificationRequest; + // verify the required parameter 'classificationId' is set + if (classificationId == null) { + throw new ApiException("Missing the required parameter 'classificationId' when calling setClassification(Async)"); + } - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications/{classificationId}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "classificationId" + "}", - localVarApiClient.escapeString(classificationId.toString())); + // verify the required parameter 'setClassificationRequest' is set + if (setClassificationRequest == null) { + throw new ApiException("Missing the required parameter 'setClassificationRequest' when calling setClassification(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return setClassificationCall(siteId, classificationId, setClassificationRequest, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Set Classification + * Sets Classification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param setClassificationRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public SetResponse setClassification(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest) throws ApiException { + ApiResponse localVarResp = setClassificationWithHttpInfo(siteId, classificationId, setClassificationRequest); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling setClassification(Async)"); + /** + * Set Classification + * Sets Classification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param setClassificationRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse setClassificationWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest) throws ApiException { + okhttp3.Call localVarCall = setClassificationValidateBeforeCall(siteId, classificationId, setClassificationRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'classificationId' is set - if (classificationId == null) { - throw new ApiException( - "Missing the required parameter 'classificationId' when calling setClassification(Async)"); + /** + * Set Classification (asynchronously) + * Sets Classification + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param setClassificationRequest (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call setClassificationAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setClassificationValidateBeforeCall(siteId, classificationId, setClassificationRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - // verify the required parameter 'setClassificationRequest' is set - if (setClassificationRequest == null) { - throw new ApiException( - "Missing the required parameter 'setClassificationRequest' when calling setClassification(Async)"); + /** + * Build call for setSitesSchema + * @param siteId Site Identifier (required) + * @param setSitesSchemaRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call setSitesSchemaCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setSitesSchemaRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/schema/document" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - return setClassificationCall(siteId, classificationId, setClassificationRequest, _callback); - - } - - /** - * Set Classification Sets Classification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param setClassificationRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public SetResponse setClassification(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest) - throws ApiException { - ApiResponse localVarResp = - setClassificationWithHttpInfo(siteId, classificationId, setClassificationRequest); - return localVarResp.getData(); - } - - /** - * Set Classification Sets Classification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param setClassificationRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse setClassificationWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest) - throws ApiException { - okhttp3.Call localVarCall = setClassificationValidateBeforeCall(siteId, classificationId, - setClassificationRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set Classification (asynchronously) Sets Classification - * - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param setClassificationRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call setClassificationAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String classificationId, - @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setClassificationValidateBeforeCall(siteId, classificationId, - setClassificationRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setSitesSchema - * - * @param siteId Site Identifier (required) - * @param setSitesSchemaRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call setSitesSchemaCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setSitesSchemaRequest; + @SuppressWarnings("rawtypes") + private okhttp3.Call setSitesSchemaValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling setSitesSchema(Async)"); + } - // create path and map variables - String localVarPath = "/sites/{siteId}/schema/document".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); + // verify the required parameter 'setSitesSchemaRequest' is set + if (setSitesSchemaRequest == null) { + throw new ApiException("Missing the required parameter 'setSitesSchemaRequest' when calling setSitesSchema(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return setSitesSchemaCall(siteId, setSitesSchemaRequest, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Set Sites Schema + * Sets Sites schema + * @param siteId Site Identifier (required) + * @param setSitesSchemaRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public SetResponse setSitesSchema(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest) throws ApiException { + ApiResponse localVarResp = setSitesSchemaWithHttpInfo(siteId, setSitesSchemaRequest); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setSitesSchemaValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling setSitesSchema(Async)"); + /** + * Set Sites Schema + * Sets Sites schema + * @param siteId Site Identifier (required) + * @param setSitesSchemaRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse setSitesSchemaWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest) throws ApiException { + okhttp3.Call localVarCall = setSitesSchemaValidateBeforeCall(siteId, setSitesSchemaRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'setSitesSchemaRequest' is set - if (setSitesSchemaRequest == null) { - throw new ApiException( - "Missing the required parameter 'setSitesSchemaRequest' when calling setSitesSchema(Async)"); + /** + * Set Sites Schema (asynchronously) + * Sets Sites schema + * @param siteId Site Identifier (required) + * @param setSitesSchemaRequest (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call setSitesSchemaAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setSitesSchemaValidateBeforeCall(siteId, setSitesSchemaRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return setSitesSchemaCall(siteId, setSitesSchemaRequest, _callback); - - } - - /** - * Set Sites Schema Sets Sites schema - * - * @param siteId Site Identifier (required) - * @param setSitesSchemaRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public SetResponse setSitesSchema(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest) throws ApiException { - ApiResponse localVarResp = - setSitesSchemaWithHttpInfo(siteId, setSitesSchemaRequest); - return localVarResp.getData(); - } - - /** - * Set Sites Schema Sets Sites schema - * - * @param siteId Site Identifier (required) - * @param setSitesSchemaRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse setSitesSchemaWithHttpInfo( - @javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest) throws ApiException { - okhttp3.Call localVarCall = - setSitesSchemaValidateBeforeCall(siteId, setSitesSchemaRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set Sites Schema (asynchronously) Sets Sites schema - * - * @param siteId Site Identifier (required) - * @param setSitesSchemaRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call setSitesSchemaAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - setSitesSchemaValidateBeforeCall(siteId, setSitesSchemaRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/SystemManagementApi.java b/src/main/java/com/formkiq/client/api/SystemManagementApi.java index f85f216a3..7b4f75032 100644 --- a/src/main/java/com/formkiq/client/api/SystemManagementApi.java +++ b/src/main/java/com/formkiq/client/api/SystemManagementApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -76,7257 +69,5033 @@ import java.util.Map; public class SystemManagementApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public SystemManagementApi() { - this(Configuration.getDefaultApiClient()); - } - - public SystemManagementApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addApiKey - * - * @param siteId Site Identifier (required) - * @param addApiKeyRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addApiKeyCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addApiKeyRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/apiKeys".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addApiKeyValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling addApiKey(Async)"); - } - - // verify the required parameter 'addApiKeyRequest' is set - if (addApiKeyRequest == null) { - throw new ApiException( - "Missing the required parameter 'addApiKeyRequest' when calling addApiKey(Async)"); - } - - return addApiKeyCall(siteId, addApiKeyRequest, _callback); - - } - - /** - * Add API Key Adds a new API Key - * - * @param siteId Site Identifier (required) - * @param addApiKeyRequest (required) - * @return AddApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddApiKeyResponse addApiKey(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest) throws ApiException { - ApiResponse localVarResp = addApiKeyWithHttpInfo(siteId, addApiKeyRequest); - return localVarResp.getData(); - } - - /** - * Add API Key Adds a new API Key - * - * @param siteId Site Identifier (required) - * @param addApiKeyRequest (required) - * @return ApiResponse<AddApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addApiKeyWithHttpInfo( - @javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest) throws ApiException { - okhttp3.Call localVarCall = addApiKeyValidateBeforeCall(siteId, addApiKeyRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add API Key (asynchronously) Adds a new API Key - * - * @param siteId Site Identifier (required) - * @param addApiKeyRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addApiKeyAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addApiKeyValidateBeforeCall(siteId, addApiKeyRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addLocale - * - * @param siteId Site Identifier (required) - * @param addLocaleRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addLocaleCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addLocaleRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addLocaleValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling addLocale(Async)"); - } - - // verify the required parameter 'addLocaleRequest' is set - if (addLocaleRequest == null) { - throw new ApiException( - "Missing the required parameter 'addLocaleRequest' when calling addLocale(Async)"); - } - - return addLocaleCall(siteId, addLocaleRequest, _callback); - - } - - /** - * Add Locale Adds a new locale to the specified site - * - * @param siteId Site Identifier (required) - * @param addLocaleRequest (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddResponse addLocale(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest) throws ApiException { - ApiResponse localVarResp = addLocaleWithHttpInfo(siteId, addLocaleRequest); - return localVarResp.getData(); - } - - /** - * Add Locale Adds a new locale to the specified site - * - * @param siteId Site Identifier (required) - * @param addLocaleRequest (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addLocaleWithHttpInfo(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest) throws ApiException { - okhttp3.Call localVarCall = addLocaleValidateBeforeCall(siteId, addLocaleRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Locale (asynchronously) Adds a new locale to the specified site - * - * @param siteId Site Identifier (required) - * @param addLocaleRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addLocaleAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addLocaleValidateBeforeCall(siteId, addLocaleRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addLocaleResourceItem - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param addLocaleResourceItemRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addLocaleResourceItemRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addLocaleResourceItemValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling addLocaleResourceItem(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException( - "Missing the required parameter 'locale' when calling addLocaleResourceItem(Async)"); - } - - // verify the required parameter 'addLocaleResourceItemRequest' is set - if (addLocaleResourceItemRequest == null) { - throw new ApiException( - "Missing the required parameter 'addLocaleResourceItemRequest' when calling addLocaleResourceItem(Async)"); - } - - return addLocaleResourceItemCall(siteId, locale, addLocaleResourceItemRequest, _callback); - - } - - /** - * Add Locale Resource Item Adds a new localized resource item for a given locale - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param addLocaleResourceItemRequest (required) - * @return AddLocaleResourceItemResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddLocaleResourceItemResponse addLocaleResourceItem( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest) - throws ApiException { - ApiResponse localVarResp = - addLocaleResourceItemWithHttpInfo(siteId, locale, addLocaleResourceItemRequest); - return localVarResp.getData(); - } - - /** - * Add Locale Resource Item Adds a new localized resource item for a given locale - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param addLocaleResourceItemRequest (required) - * @return ApiResponse<AddLocaleResourceItemResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addLocaleResourceItemWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest) - throws ApiException { - okhttp3.Call localVarCall = - addLocaleResourceItemValidateBeforeCall(siteId, locale, addLocaleResourceItemRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Locale Resource Item (asynchronously) Adds a new localized resource item for a given locale - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param addLocaleResourceItemRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addLocaleResourceItemValidateBeforeCall(siteId, locale, - addLocaleResourceItemRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addOpenSearchRestoreSnapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addOpenSearchRestoreSnapshotCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}/restore" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())).replace( - "{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addOpenSearchRestoreSnapshotValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling addOpenSearchRestoreSnapshot(Async)"); - } - - // verify the required parameter 'snapshotName' is set - if (snapshotName == null) { - throw new ApiException( - "Missing the required parameter 'snapshotName' when calling addOpenSearchRestoreSnapshot(Async)"); - } - - return addOpenSearchRestoreSnapshotCall(siteId, snapshotName, _callback); - - } - - /** - * Add an OpenSearch Restore Snapshot Add an OpenSearch Restore Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddResponse addOpenSearchRestoreSnapshot(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName) throws ApiException { - ApiResponse localVarResp = - addOpenSearchRestoreSnapshotWithHttpInfo(siteId, snapshotName); - return localVarResp.getData(); - } - - /** - * Add an OpenSearch Restore Snapshot Add an OpenSearch Restore Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addOpenSearchRestoreSnapshotWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) - throws ApiException { - okhttp3.Call localVarCall = - addOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add an OpenSearch Restore Snapshot (asynchronously) Add an OpenSearch Restore Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addOpenSearchRestoreSnapshotAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addOpenSearchSnapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())).replace( - "{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addOpenSearchSnapshotValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling addOpenSearchSnapshot(Async)"); - } - - // verify the required parameter 'snapshotName' is set - if (snapshotName == null) { - throw new ApiException( - "Missing the required parameter 'snapshotName' when calling addOpenSearchSnapshot(Async)"); - } - - return addOpenSearchSnapshotCall(siteId, snapshotName, _callback); - - } - - /** - * Add an OpenSearch Snapshot Add an OpenSearch Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddResponse addOpenSearchSnapshot(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName) throws ApiException { - ApiResponse localVarResp = addOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); - return localVarResp.getData(); - } - - /** - * Add an OpenSearch Snapshot Add an OpenSearch Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addOpenSearchSnapshotWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) - throws ApiException { - okhttp3.Call localVarCall = addOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add an OpenSearch Snapshot (asynchronously) Add an OpenSearch Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addSite - * - * @param addSiteRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addSiteCall(@javax.annotation.Nonnull AddSiteRequest addSiteRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addSiteRequest; - - // create path and map variables - String localVarPath = "/sites"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addSiteValidateBeforeCall( - @javax.annotation.Nonnull AddSiteRequest addSiteRequest, final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'addSiteRequest' is set - if (addSiteRequest == null) { - throw new ApiException( - "Missing the required parameter 'addSiteRequest' when calling addSite(Async)"); - } - - return addSiteCall(addSiteRequest, _callback); - - } - - /** - * Add Site Add Site - * - * @param addSiteRequest (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public AddResponse addSite(@javax.annotation.Nonnull AddSiteRequest addSiteRequest) - throws ApiException { - ApiResponse localVarResp = addSiteWithHttpInfo(addSiteRequest); - return localVarResp.getData(); - } - - /** - * Add Site Add Site - * - * @param addSiteRequest (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse addSiteWithHttpInfo( - @javax.annotation.Nonnull AddSiteRequest addSiteRequest) throws ApiException { - okhttp3.Call localVarCall = addSiteValidateBeforeCall(addSiteRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Site (asynchronously) Add Site - * - * @param addSiteRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call addSiteAsync(@javax.annotation.Nonnull AddSiteRequest addSiteRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addSiteValidateBeforeCall(addSiteRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteApiKey - * - * @param siteId Site Identifier (required) - * @param apiKey API Key (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteApiKeyCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/apiKeys/{apiKey}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "apiKey" + "}", localVarApiClient.escapeString(apiKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteApiKeyValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling deleteApiKey(Async)"); - } - - // verify the required parameter 'apiKey' is set - if (apiKey == null) { - throw new ApiException( - "Missing the required parameter 'apiKey' when calling deleteApiKey(Async)"); - } - - return deleteApiKeyCall(siteId, apiKey, _callback); - - } - - /** - * Delete API Key Adds a new API Key - * - * @param siteId Site Identifier (required) - * @param apiKey API Key (required) - * @return DeleteApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteApiKeyResponse deleteApiKey(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String apiKey) throws ApiException { - ApiResponse localVarResp = deleteApiKeyWithHttpInfo(siteId, apiKey); - return localVarResp.getData(); - } - - /** - * Delete API Key Adds a new API Key - * - * @param siteId Site Identifier (required) - * @param apiKey API Key (required) - * @return ApiResponse<DeleteApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteApiKeyWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey) - throws ApiException { - okhttp3.Call localVarCall = deleteApiKeyValidateBeforeCall(siteId, apiKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete API Key (asynchronously) Adds a new API Key - * - * @param siteId Site Identifier (required) - * @param apiKey API Key (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteApiKeyAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteApiKeyValidateBeforeCall(siteId, apiKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteLocale - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteLocaleCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteLocaleValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling deleteLocale(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException( - "Missing the required parameter 'locale' when calling deleteLocale(Async)"); - } - - return deleteLocaleCall(siteId, locale, _callback); - - } - - /** - * Delete Locale Delete Locale - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteLocale(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale) throws ApiException { - ApiResponse localVarResp = deleteLocaleWithHttpInfo(siteId, locale); - return localVarResp.getData(); - } - - /** - * Delete Locale Delete Locale - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteLocaleWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale) - throws ApiException { - okhttp3.Call localVarCall = deleteLocaleValidateBeforeCall(siteId, locale, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Locale (asynchronously) Delete Locale - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteLocaleAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteLocaleValidateBeforeCall(siteId, locale, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteLocaleResourceItem - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) - .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteLocaleResourceItemValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling deleteLocaleResourceItem(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException( - "Missing the required parameter 'locale' when calling deleteLocaleResourceItem(Async)"); - } - - // verify the required parameter 'itemKey' is set - if (itemKey == null) { - throw new ApiException( - "Missing the required parameter 'itemKey' when calling deleteLocaleResourceItem(Async)"); - } - - return deleteLocaleResourceItemCall(siteId, locale, itemKey, _callback); - - } - - /** - * Delete Local Resource Item Delete Local Resource Item - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteLocaleResourceItem(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey) - throws ApiException { - ApiResponse localVarResp = - deleteLocaleResourceItemWithHttpInfo(siteId, locale, itemKey); - return localVarResp.getData(); - } - - /** - * Delete Local Resource Item Delete Local Resource Item - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteLocaleResourceItemWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull String itemKey) throws ApiException { - okhttp3.Call localVarCall = - deleteLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Local Resource Item (asynchronously) Delete Local Resource Item - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteOpenSearchIndex - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/index".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpenSearchIndexValidateBeforeCall( - @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling deleteOpenSearchIndex(Async)"); - } - - return deleteOpenSearchIndexCall(siteId, _callback); - - } - - /** - * Deletes site(s) OpenSearch index Deletes the OpenSearch index - * - * @param siteId Site Identifier (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteOpenSearchIndex(@javax.annotation.Nonnull String siteId) - throws ApiException { - ApiResponse localVarResp = deleteOpenSearchIndexWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Deletes site(s) OpenSearch index Deletes the OpenSearch index - * - * @param siteId Site Identifier (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteOpenSearchIndexWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteOpenSearchIndexValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes site(s) OpenSearch index (asynchronously) Deletes the OpenSearch index - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteOpenSearchIndexValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteOpenSearchIndexByName - * - * @param indexName IndexName to path (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpenSearchIndexByNameCall(@javax.annotation.Nonnull String indexName, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/global/opensearch/indices/{indexName}" - .replace("{" + "indexName" + "}", localVarApiClient.escapeString(indexName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpenSearchIndexByNameValidateBeforeCall( - @javax.annotation.Nonnull String indexName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexName' is set - if (indexName == null) { - throw new ApiException( - "Missing the required parameter 'indexName' when calling deleteOpenSearchIndexByName(Async)"); - } - - return deleteOpenSearchIndexByNameCall(indexName, _callback); - - } - - /** - * Deletes OpenSearch index by name Deletes the OpenSearch index by name - * - * @param indexName IndexName to path (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteOpenSearchIndexByName(@javax.annotation.Nonnull String indexName) - throws ApiException { - ApiResponse localVarResp = deleteOpenSearchIndexByNameWithHttpInfo(indexName); - return localVarResp.getData(); - } - - /** - * Deletes OpenSearch index by name Deletes the OpenSearch index by name - * - * @param indexName IndexName to path (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteOpenSearchIndexByNameWithHttpInfo( - @javax.annotation.Nonnull String indexName) throws ApiException { - okhttp3.Call localVarCall = deleteOpenSearchIndexByNameValidateBeforeCall(indexName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes OpenSearch index by name (asynchronously) Deletes the OpenSearch index by name - * - * @param indexName IndexName to path (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpenSearchIndexByNameAsync(@javax.annotation.Nonnull String indexName, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteOpenSearchIndexByNameValidateBeforeCall(indexName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteOpenSearchRestoreSnapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpenSearchRestoreSnapshotCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}/restore" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())).replace( - "{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpenSearchRestoreSnapshotValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling deleteOpenSearchRestoreSnapshot(Async)"); - } - - // verify the required parameter 'snapshotName' is set - if (snapshotName == null) { - throw new ApiException( - "Missing the required parameter 'snapshotName' when calling deleteOpenSearchRestoreSnapshot(Async)"); - } - - return deleteOpenSearchRestoreSnapshotCall(siteId, snapshotName, _callback); - - } - - /** - * Deletes site(s) OpenSearch Restore Snapshot Deletes the OpenSearch Restore Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteOpenSearchRestoreSnapshot(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName) throws ApiException { - ApiResponse localVarResp = - deleteOpenSearchRestoreSnapshotWithHttpInfo(siteId, snapshotName); - return localVarResp.getData(); - } - - /** - * Deletes site(s) OpenSearch Restore Snapshot Deletes the OpenSearch Restore Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteOpenSearchRestoreSnapshotWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) - throws ApiException { - okhttp3.Call localVarCall = - deleteOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes site(s) OpenSearch Restore Snapshot (asynchronously) Deletes the OpenSearch Restore - * Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpenSearchRestoreSnapshotAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteOpenSearchSnapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())).replace( - "{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpenSearchSnapshotValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling deleteOpenSearchSnapshot(Async)"); - } - - // verify the required parameter 'snapshotName' is set - if (snapshotName == null) { - throw new ApiException( - "Missing the required parameter 'snapshotName' when calling deleteOpenSearchSnapshot(Async)"); - } - - return deleteOpenSearchSnapshotCall(siteId, snapshotName, _callback); - - } - - /** - * Deletes site(s) OpenSearch Snapshot Deletes the OpenSearch Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteOpenSearchSnapshot(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName) throws ApiException { - ApiResponse localVarResp = - deleteOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); - return localVarResp.getData(); - } - - /** - * Deletes site(s) OpenSearch Snapshot Deletes the OpenSearch Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteOpenSearchSnapshotWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) - throws ApiException { - okhttp3.Call localVarCall = - deleteOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes site(s) OpenSearch Snapshot (asynchronously) Deletes the OpenSearch Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteOpenSearchSnapshotRepository - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpenSearchSnapshotRepositoryCall( - @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshotRepository" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpenSearchSnapshotRepositoryValidateBeforeCall( - @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling deleteOpenSearchSnapshotRepository(Async)"); - } - - return deleteOpenSearchSnapshotRepositoryCall(siteId, _callback); - - } - - /** - * Deletes site(s) OpenSearch Snapshot Repository Deletes the OpenSearch Snapshot Repository - * - * @param siteId Site Identifier (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteOpenSearchSnapshotRepository(@javax.annotation.Nonnull String siteId) - throws ApiException { - ApiResponse localVarResp = - deleteOpenSearchSnapshotRepositoryWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Deletes site(s) OpenSearch Snapshot Repository Deletes the OpenSearch Snapshot Repository - * - * @param siteId Site Identifier (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteOpenSearchSnapshotRepositoryWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes site(s) OpenSearch Snapshot Repository (asynchronously) Deletes the OpenSearch Snapshot - * Repository - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteOpenSearchSnapshotRepositoryAsync( - @javax.annotation.Nonnull String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteSiteGroup - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteSiteGroupCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/groups/{groupName}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteSiteGroupValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling deleteSiteGroup(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException( - "Missing the required parameter 'groupName' when calling deleteSiteGroup(Async)"); - } - - return deleteSiteGroupCall(siteId, groupName, _callback); - - } - - /** - * Deletes Site Group and permissions Deletes Site Group and permissions - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteSiteGroup(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName) throws ApiException { - ApiResponse localVarResp = deleteSiteGroupWithHttpInfo(siteId, groupName); - return localVarResp.getData(); - } - - /** - * Deletes Site Group and permissions Deletes Site Group and permissions - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteSiteGroupWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) - throws ApiException { - okhttp3.Call localVarCall = deleteSiteGroupValidateBeforeCall(siteId, groupName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes Site Group and permissions (asynchronously) Deletes Site Group and permissions - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteSiteGroupAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteSiteGroupValidateBeforeCall(siteId, groupName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getAllOpenSearchIndices - * - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getAllOpenSearchIndicesCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/global/opensearch/indices"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAllOpenSearchIndicesValidateBeforeCall(final ApiCallback _callback) - throws ApiException { - return getAllOpenSearchIndicesCall(_callback); - - } - - /** - * Get all OpenSearch indices Returns all OpenSearch indices - * - * @return GetOpenSearchIndiceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetOpenSearchIndiceResponse getAllOpenSearchIndices() throws ApiException { - ApiResponse localVarResp = getAllOpenSearchIndicesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Get all OpenSearch indices Returns all OpenSearch indices - * - * @return ApiResponse<GetOpenSearchIndiceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getAllOpenSearchIndicesWithHttpInfo() - throws ApiException { - okhttp3.Call localVarCall = getAllOpenSearchIndicesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get all OpenSearch indices (asynchronously) Returns all OpenSearch indices - * - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getAllOpenSearchIndicesAsync( - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAllOpenSearchIndicesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getApiKeys - * - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getApiKeysCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/apiKeys".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getApiKeysValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getApiKeys(Async)"); - } - - return getApiKeysCall(siteId, next, limit, _callback); - - } - - /** - * Get API Keys Returns the list of ApiKeys - * - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetApiKeysResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetApiKeysResponse getApiKeys(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = getApiKeysWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get API Keys Returns the list of ApiKeys - * - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetApiKeysResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getApiKeysWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getApiKeysValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get API Keys (asynchronously) Returns the list of ApiKeys - * - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getApiKeysAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApiKeysValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getConfiguration - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getConfigurationCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/configuration".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getConfigurationValidateBeforeCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getConfiguration(Async)"); - } - - return getConfigurationCall(siteId, _callback); - - } - - /** - * Get site configuration Returns the list of sites that the user has access to - * - * @param siteId Site Identifier (required) - * @return GetConfigurationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetConfigurationResponse getConfiguration(@javax.annotation.Nonnull String siteId) - throws ApiException { - ApiResponse localVarResp = getConfigurationWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get site configuration Returns the list of sites that the user has access to - * - * @param siteId Site Identifier (required) - * @return ApiResponse<GetConfigurationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getConfigurationWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getConfigurationValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site configuration (asynchronously) Returns the list of sites that the user has access to - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getConfigurationAsync(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getConfigurationValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getLocaleResourceItem - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) - .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getLocaleResourceItemValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getLocaleResourceItem(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException( - "Missing the required parameter 'locale' when calling getLocaleResourceItem(Async)"); - } - - // verify the required parameter 'itemKey' is set - if (itemKey == null) { - throw new ApiException( - "Missing the required parameter 'itemKey' when calling getLocaleResourceItem(Async)"); - } - - return getLocaleResourceItemCall(siteId, locale, itemKey, _callback); - - } - - /** - * Get Resource Item by Locale Returns the resource item - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @return GetLocaleResourceItemResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetLocaleResourceItemResponse getLocaleResourceItem( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull String itemKey) throws ApiException { - ApiResponse localVarResp = - getLocaleResourceItemWithHttpInfo(siteId, locale, itemKey); - return localVarResp.getData(); - } - - /** - * Get Resource Item by Locale Returns the resource item - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @return ApiResponse<GetLocaleResourceItemResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getLocaleResourceItemWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull String itemKey) throws ApiException { - okhttp3.Call localVarCall = - getLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Resource Item by Locale (asynchronously) Returns the resource item - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getLocaleResourceItems - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getLocaleResourceItemsCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getLocaleResourceItemsValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getLocaleResourceItems(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException( - "Missing the required parameter 'locale' when calling getLocaleResourceItems(Async)"); - } - - return getLocaleResourceItemsCall(siteId, locale, next, limit, _callback); - - } - - /** - * Get Resource Items by Locale Returns the list resource items - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetLocaleResourceItemsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetLocaleResourceItemsResponse getLocaleResourceItems( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = - getLocaleResourceItemsWithHttpInfo(siteId, locale, next, limit); - return localVarResp.getData(); - } - - /** - * Get Resource Items by Locale Returns the list resource items - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetLocaleResourceItemsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getLocaleResourceItemsWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - okhttp3.Call localVarCall = - getLocaleResourceItemsValidateBeforeCall(siteId, locale, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Resource Items by Locale (asynchronously) Returns the list resource items - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getLocaleResourceItemsAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getLocaleResourceItemsValidateBeforeCall(siteId, locale, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getLocales - * - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getLocalesCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getLocalesValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getLocales(Async)"); - } - - return getLocalesCall(siteId, next, limit, _callback); - - } - - /** - * Get Locales Returns a list of locale(s) in a specified site - * - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetLocalesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetLocalesResponse getLocales(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = getLocalesWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get Locales Returns a list of locale(s) in a specified site - * - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetLocalesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getLocalesWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getLocalesValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Locales (asynchronously) Returns a list of locale(s) in a specified site - * - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getLocalesAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLocalesValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getOpenSearchIndex - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/index".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchIndexValidateBeforeCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getOpenSearchIndex(Async)"); - } - - return getOpenSearchIndexCall(siteId, _callback); - - } - - /** - * Get site(s) OpenSearch index settings Returns the OpenSearch index settings (Deprecated use - * /sites/{siteId}/opensearch/indices) - * - * @param siteId Site Identifier (required) - * @return GetOpenSearchIndexResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetOpenSearchIndexResponse getOpenSearchIndex(@javax.annotation.Nonnull String siteId) - throws ApiException { - ApiResponse localVarResp = getOpenSearchIndexWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch index settings Returns the OpenSearch index settings (Deprecated use - * /sites/{siteId}/opensearch/indices) - * - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpenSearchIndexResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getOpenSearchIndexWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpenSearchIndexValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch index settings (asynchronously) Returns the OpenSearch index settings - * (Deprecated use /sites/{siteId}/opensearch/indices) - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpenSearchIndexValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getOpenSearchIndices - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchIndicesCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/indices".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchIndicesValidateBeforeCall( - @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getOpenSearchIndices(Async)"); - } - - return getOpenSearchIndicesCall(siteId, _callback); - - } - - /** - * Get site(s) OpenSearch indices Returns the OpenSearch indices - * - * @param siteId Site Identifier (required) - * @return GetOpenSearchIndiceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetOpenSearchIndiceResponse getOpenSearchIndices(@javax.annotation.Nonnull String siteId) - throws ApiException { - ApiResponse localVarResp = - getOpenSearchIndicesWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch indices Returns the OpenSearch indices - * - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpenSearchIndiceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getOpenSearchIndicesWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpenSearchIndicesValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch indices (asynchronously) Returns the OpenSearch indices - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchIndicesAsync(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpenSearchIndicesValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getOpenSearchSnapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())).replace( - "{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchSnapshotValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getOpenSearchSnapshot(Async)"); - } - - // verify the required parameter 'snapshotName' is set - if (snapshotName == null) { - throw new ApiException( - "Missing the required parameter 'snapshotName' when calling getOpenSearchSnapshot(Async)"); - } - - return getOpenSearchSnapshotCall(siteId, snapshotName, _callback); - - } - - /** - * Get site(s) OpenSearch snapshot Returns the OpenSearch Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return GetOpenSearchSnapshotResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetOpenSearchSnapshotResponse getOpenSearchSnapshot( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) - throws ApiException { - ApiResponse localVarResp = - getOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch snapshot Returns the OpenSearch Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return ApiResponse<GetOpenSearchSnapshotResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getOpenSearchSnapshotWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) - throws ApiException { - okhttp3.Call localVarCall = getOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch snapshot (asynchronously) Returns the OpenSearch Snapshot - * - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String snapshotName, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getOpenSearchSnapshotRepositories - * - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchSnapshotRepositoriesCall(final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/global/opensearch/snapshotRepositories"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchSnapshotRepositoriesValidateBeforeCall( - final ApiCallback _callback) throws ApiException { - return getOpenSearchSnapshotRepositoriesCall(_callback); - - } - - /** - * Get site(s) OpenSearch snapshot repositories Returns the OpenSearch Snapshot Repositories - * - * @return GetOpenSearchSnapshotRepositoryResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepositories() - throws ApiException { - ApiResponse localVarResp = - getOpenSearchSnapshotRepositoriesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch snapshot repositories Returns the OpenSearch Snapshot Repositories - * - * @return ApiResponse<GetOpenSearchSnapshotRepositoryResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getOpenSearchSnapshotRepositoriesWithHttpInfo() - throws ApiException { - okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoriesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch snapshot repositories (asynchronously) Returns the OpenSearch Snapshot - * Repositories - * - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchSnapshotRepositoriesAsync( - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoriesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getOpenSearchSnapshotRepository - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchSnapshotRepositoryCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshotRepository" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchSnapshotRepositoryValidateBeforeCall( - @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getOpenSearchSnapshotRepository(Async)"); - } - - return getOpenSearchSnapshotRepositoryCall(siteId, _callback); - - } - - /** - * Get site(s) OpenSearch snapshot repository Returns the OpenSearch Snapshot Repository - * - * @param siteId Site Identifier (required) - * @return GetOpenSearchSnapshotRepositoryResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepository( - @javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = - getOpenSearchSnapshotRepositoryWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch snapshot repository Returns the OpenSearch Snapshot Repository - * - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpenSearchSnapshotRepositoryResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getOpenSearchSnapshotRepositoryWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch snapshot repository (asynchronously) Returns the OpenSearch Snapshot - * Repository - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchSnapshotRepositoryAsync(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getOpenSearchSnapshots - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchSnapshotsCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchSnapshotsValidateBeforeCall( - @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getOpenSearchSnapshots(Async)"); - } - - return getOpenSearchSnapshotsCall(siteId, _callback); - - } - - /** - * Get site(s) OpenSearch snapshots Returns the OpenSearch Snapshots - * - * @param siteId Site Identifier (required) - * @return GetOpenSearchSnapshotResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetOpenSearchSnapshotResponse getOpenSearchSnapshots( - @javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = - getOpenSearchSnapshotsWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch snapshots Returns the OpenSearch Snapshots - * - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpenSearchSnapshotResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getOpenSearchSnapshotsWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpenSearchSnapshotsValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch snapshots (asynchronously) Returns the OpenSearch Snapshots - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getOpenSearchSnapshotsAsync(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpenSearchSnapshotsValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getSiteGroup - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSiteGroupCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/groups/{groupName}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getSiteGroupValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getSiteGroup(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException( - "Missing the required parameter 'groupName' when calling getSiteGroup(Async)"); - } - - return getSiteGroupCall(siteId, groupName, _callback); - - } - - /** - * Get group and permissions belonging to site Returns details of a group and permissions - * belonging to site - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @return GetSiteGroupResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetSiteGroupResponse getSiteGroup(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName) throws ApiException { - ApiResponse localVarResp = getSiteGroupWithHttpInfo(siteId, groupName); - return localVarResp.getData(); - } - - /** - * Get group and permissions belonging to site Returns details of a group and permissions - * belonging to site - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @return ApiResponse<GetSiteGroupResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getSiteGroupWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) - throws ApiException { - okhttp3.Call localVarCall = getSiteGroupValidateBeforeCall(siteId, groupName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get group and permissions belonging to site (asynchronously) Returns details of a group and - * permissions belonging to site - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSiteGroupAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getSiteGroupValidateBeforeCall(siteId, groupName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getSiteGroups - * - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSiteGroupsCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/groups".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getSiteGroupsValidateBeforeCall(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling getSiteGroups(Async)"); - } - - return getSiteGroupsCall(siteId, _callback); - - } - - /** - * Get group(s) and permissions belonging to site Returns list of groups and permissions belonging - * to site - * - * @param siteId Site Identifier (required) - * @return GetSiteGroupsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetSiteGroupsResponse getSiteGroups(@javax.annotation.Nonnull String siteId) - throws ApiException { - ApiResponse localVarResp = getSiteGroupsWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get group(s) and permissions belonging to site Returns list of groups and permissions belonging - * to site - * - * @param siteId Site Identifier (required) - * @return ApiResponse<GetSiteGroupsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getSiteGroupsWithHttpInfo( - @javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getSiteGroupsValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get group(s) and permissions belonging to site (asynchronously) Returns list of groups and - * permissions belonging to site - * - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSiteGroupsAsync(@javax.annotation.Nonnull String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSiteGroupsValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getSites - * - * @param status Fetch sites with status (only valid when using SitePermissions 'defined' - * (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSitesCall(@javax.annotation.Nullable SiteStatus status, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (status != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getSitesValidateBeforeCall(@javax.annotation.Nullable SiteStatus status, - final ApiCallback _callback) throws ApiException { - return getSitesCall(status, _callback); - - } - - /** - * Get site(s) access Returns the list of sites that the user has access to - * - * @param status Fetch sites with status (only valid when using SitePermissions 'defined' - * (optional) - * @return GetSitesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetSitesResponse getSites(@javax.annotation.Nullable SiteStatus status) - throws ApiException { - ApiResponse localVarResp = getSitesWithHttpInfo(status); - return localVarResp.getData(); - } - - /** - * Get site(s) access Returns the list of sites that the user has access to - * - * @param status Fetch sites with status (only valid when using SitePermissions 'defined' - * (optional) - * @return ApiResponse<GetSitesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getSitesWithHttpInfo( - @javax.annotation.Nullable SiteStatus status) throws ApiException { - okhttp3.Call localVarCall = getSitesValidateBeforeCall(status, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) access (asynchronously) Returns the list of sites that the user has access to - * - * @param status Fetch sites with status (only valid when using SitePermissions 'defined' - * (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getSitesAsync(@javax.annotation.Nullable SiteStatus status, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSitesValidateBeforeCall(status, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getVersion - * - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getVersionCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/version"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getVersionValidateBeforeCall(final ApiCallback _callback) - throws ApiException { - return getVersionCall(_callback); - - } - - /** - * Get FormKiQ version Return the version of FormKiQ - * - * @return GetVersionResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetVersionResponse getVersion() throws ApiException { - ApiResponse localVarResp = getVersionWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Get FormKiQ version Return the version of FormKiQ - * - * @return ApiResponse<GetVersionResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getVersionWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getVersionValidateBeforeCall(null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get FormKiQ version (asynchronously) Return the version of FormKiQ - * - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getVersionAsync(final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getVersionValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setLocaleResourceItem - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param setLocaleResourceItemRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, - @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setLocaleResourceItemRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) - .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setLocaleResourceItemValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull String itemKey, - @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling setLocaleResourceItem(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException( - "Missing the required parameter 'locale' when calling setLocaleResourceItem(Async)"); - } - - // verify the required parameter 'itemKey' is set - if (itemKey == null) { - throw new ApiException( - "Missing the required parameter 'itemKey' when calling setLocaleResourceItem(Async)"); - } - - // verify the required parameter 'setLocaleResourceItemRequest' is set - if (setLocaleResourceItemRequest == null) { - throw new ApiException( - "Missing the required parameter 'setLocaleResourceItemRequest' when calling setLocaleResourceItem(Async)"); - } - - return setLocaleResourceItemCall(siteId, locale, itemKey, setLocaleResourceItemRequest, - _callback); - - } - - /** - * Set Locale Resource Item Set a new Locale Resource Item - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param setLocaleResourceItemRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setLocaleResourceItem(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, - @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest) - throws ApiException { - ApiResponse localVarResp = - setLocaleResourceItemWithHttpInfo(siteId, locale, itemKey, setLocaleResourceItemRequest); - return localVarResp.getData(); - } - - /** - * Set Locale Resource Item Set a new Locale Resource Item - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param setLocaleResourceItemRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setLocaleResourceItemWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, - @javax.annotation.Nonnull String itemKey, - @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest) - throws ApiException { - okhttp3.Call localVarCall = setLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, - setLocaleResourceItemRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set Locale Resource Item (asynchronously) Set a new Locale Resource Item - * - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param setLocaleResourceItemRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, - @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, - setLocaleResourceItemRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setOpenSearchIndex - * - * @param siteId Site Identifier (required) - * @param setOpenSearchIndexRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setOpenSearchIndexRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/index".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setOpenSearchIndexValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling setOpenSearchIndex(Async)"); - } - - // verify the required parameter 'setOpenSearchIndexRequest' is set - if (setOpenSearchIndexRequest == null) { - throw new ApiException( - "Missing the required parameter 'setOpenSearchIndexRequest' when calling setOpenSearchIndex(Async)"); - } - - return setOpenSearchIndexCall(siteId, setOpenSearchIndexRequest, _callback); - - } - - /** - * Set site(s) OpenSearch index settings Sets the OpenSearch index settings - * - * @param siteId Site Identifier (required) - * @param setOpenSearchIndexRequest (required) - * @return SetOpenSearchIndexResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetOpenSearchIndexResponse setOpenSearchIndex(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest) - throws ApiException { - ApiResponse localVarResp = - setOpenSearchIndexWithHttpInfo(siteId, setOpenSearchIndexRequest); - return localVarResp.getData(); - } - - /** - * Set site(s) OpenSearch index settings Sets the OpenSearch index settings - * - * @param siteId Site Identifier (required) - * @param setOpenSearchIndexRequest (required) - * @return ApiResponse<SetOpenSearchIndexResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setOpenSearchIndexWithHttpInfo( - @javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest) - throws ApiException { - okhttp3.Call localVarCall = - setOpenSearchIndexValidateBeforeCall(siteId, setOpenSearchIndexRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set site(s) OpenSearch index settings (asynchronously) Sets the OpenSearch index settings - * - * @param siteId Site Identifier (required) - * @param setOpenSearchIndexRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - setOpenSearchIndexValidateBeforeCall(siteId, setOpenSearchIndexRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setOpenSearchIndices - * - * @param siteId Site Identifier (required) - * @param setOpenSearchIndiceRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setOpenSearchIndicesCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setOpenSearchIndiceRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/indices".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setOpenSearchIndicesValidateBeforeCall( - @javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling setOpenSearchIndices(Async)"); - } - - // verify the required parameter 'setOpenSearchIndiceRequest' is set - if (setOpenSearchIndiceRequest == null) { - throw new ApiException( - "Missing the required parameter 'setOpenSearchIndiceRequest' when calling setOpenSearchIndices(Async)"); - } - - return setOpenSearchIndicesCall(siteId, setOpenSearchIndiceRequest, _callback); - - } - - /** - * Set site(s) OpenSearch index to use for a SiteId Sets the OpenSearch index to use for a SiteId - * - * @param siteId Site Identifier (required) - * @param setOpenSearchIndiceRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setOpenSearchIndices(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest) - throws ApiException { - ApiResponse localVarResp = - setOpenSearchIndicesWithHttpInfo(siteId, setOpenSearchIndiceRequest); - return localVarResp.getData(); - } - - /** - * Set site(s) OpenSearch index to use for a SiteId Sets the OpenSearch index to use for a SiteId - * - * @param siteId Site Identifier (required) - * @param setOpenSearchIndiceRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setOpenSearchIndicesWithHttpInfo( - @javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest) - throws ApiException { - okhttp3.Call localVarCall = - setOpenSearchIndicesValidateBeforeCall(siteId, setOpenSearchIndiceRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set site(s) OpenSearch index to use for a SiteId (asynchronously) Sets the OpenSearch index to - * use for a SiteId - * - * @param siteId Site Identifier (required) - * @param setOpenSearchIndiceRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setOpenSearchIndicesAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - setOpenSearchIndicesValidateBeforeCall(siteId, setOpenSearchIndiceRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setSiteGroupPermissions - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param setGroupPermissionsRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setSiteGroupPermissionsCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setGroupPermissionsRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/groups/{groupName}/permissions" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setSiteGroupPermissionsValidateBeforeCall( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling setSiteGroupPermissions(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException( - "Missing the required parameter 'groupName' when calling setSiteGroupPermissions(Async)"); - } - - // verify the required parameter 'setGroupPermissionsRequest' is set - if (setGroupPermissionsRequest == null) { - throw new ApiException( - "Missing the required parameter 'setGroupPermissionsRequest' when calling setSiteGroupPermissions(Async)"); - } - - return setSiteGroupPermissionsCall(siteId, groupName, setGroupPermissionsRequest, _callback); - - } - - /** - * Set Site's Group Permissions Set Site's Group Permissions - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param setGroupPermissionsRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setSiteGroupPermissions(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest) - throws ApiException { - ApiResponse localVarResp = - setSiteGroupPermissionsWithHttpInfo(siteId, groupName, setGroupPermissionsRequest); - return localVarResp.getData(); - } - - /** - * Set Site's Group Permissions Set Site's Group Permissions - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param setGroupPermissionsRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setSiteGroupPermissionsWithHttpInfo( - @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest) - throws ApiException { - okhttp3.Call localVarCall = setSiteGroupPermissionsValidateBeforeCall(siteId, groupName, - setGroupPermissionsRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set Site's Group Permissions (asynchronously) Set Site's Group Permissions - * - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param setGroupPermissionsRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setSiteGroupPermissionsAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setSiteGroupPermissionsValidateBeforeCall(siteId, groupName, - setGroupPermissionsRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateConfiguration - * - * @param siteId Site Identifier (required) - * @param updateConfigurationRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateConfigurationCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateConfigurationRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/configuration".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateConfigurationValidateBeforeCall( - @javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling updateConfiguration(Async)"); - } - - // verify the required parameter 'updateConfigurationRequest' is set - if (updateConfigurationRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateConfigurationRequest' when calling updateConfiguration(Async)"); - } - - return updateConfigurationCall(siteId, updateConfigurationRequest, _callback); - - } - - /** - * Update site configuration Update the System Management configuration - * - * @param siteId Site Identifier (required) - * @param updateConfigurationRequest (required) - * @return UpdateConfigurationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public UpdateConfigurationResponse updateConfiguration(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest) - throws ApiException { - ApiResponse localVarResp = - updateConfigurationWithHttpInfo(siteId, updateConfigurationRequest); - return localVarResp.getData(); - } - - /** - * Update site configuration Update the System Management configuration - * - * @param siteId Site Identifier (required) - * @param updateConfigurationRequest (required) - * @return ApiResponse<UpdateConfigurationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse updateConfigurationWithHttpInfo( - @javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest) - throws ApiException { - okhttp3.Call localVarCall = - updateConfigurationValidateBeforeCall(siteId, updateConfigurationRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update site configuration (asynchronously) Update the System Management configuration - * - * @param siteId Site Identifier (required) - * @param updateConfigurationRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call updateConfigurationAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - updateConfigurationValidateBeforeCall(siteId, updateConfigurationRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateSite - * - * @param siteId Site Identifier (required) - * @param updateSiteRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateSiteCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateSiteRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}".replace("{" + "siteId" + "}", - localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateSiteValidateBeforeCall(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException( - "Missing the required parameter 'siteId' when calling updateSite(Async)"); - } - - // verify the required parameter 'updateSiteRequest' is set - if (updateSiteRequest == null) { - throw new ApiException( - "Missing the required parameter 'updateSiteRequest' when calling updateSite(Async)"); - } - - return updateSiteCall(siteId, updateSiteRequest, _callback); - - } - - /** - * Update Site Update Site - * - * @param siteId Site Identifier (required) - * @param updateSiteRequest (required) - * @return UpdateResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public UpdateResponse updateSite(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest) throws ApiException { - ApiResponse localVarResp = updateSiteWithHttpInfo(siteId, updateSiteRequest); - return localVarResp.getData(); - } - - /** - * Update Site Update Site - * - * @param siteId Site Identifier (required) - * @param updateSiteRequest (required) - * @return ApiResponse<UpdateResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse updateSiteWithHttpInfo(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest) throws ApiException { - okhttp3.Call localVarCall = updateSiteValidateBeforeCall(siteId, updateSiteRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Site (asynchronously) Update Site - * - * @param siteId Site Identifier (required) - * @param updateSiteRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateSiteAsync(@javax.annotation.Nonnull String siteId, - @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateSiteValidateBeforeCall(siteId, updateSiteRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SystemManagementApi() { + this(Configuration.getDefaultApiClient()); + } + + public SystemManagementApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addApiKey + * @param siteId Site Identifier (required) + * @param addApiKeyRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addApiKeyCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addApiKeyRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/apiKeys" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addApiKeyValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling addApiKey(Async)"); + } + + // verify the required parameter 'addApiKeyRequest' is set + if (addApiKeyRequest == null) { + throw new ApiException("Missing the required parameter 'addApiKeyRequest' when calling addApiKey(Async)"); + } + + return addApiKeyCall(siteId, addApiKeyRequest, _callback); + + } + + /** + * Add API Key + * Adds a new API Key + * @param siteId Site Identifier (required) + * @param addApiKeyRequest (required) + * @return AddApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddApiKeyResponse addApiKey(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest) throws ApiException { + ApiResponse localVarResp = addApiKeyWithHttpInfo(siteId, addApiKeyRequest); + return localVarResp.getData(); + } + + /** + * Add API Key + * Adds a new API Key + * @param siteId Site Identifier (required) + * @param addApiKeyRequest (required) + * @return ApiResponse<AddApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addApiKeyWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest) throws ApiException { + okhttp3.Call localVarCall = addApiKeyValidateBeforeCall(siteId, addApiKeyRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add API Key (asynchronously) + * Adds a new API Key + * @param siteId Site Identifier (required) + * @param addApiKeyRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addApiKeyAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addApiKeyValidateBeforeCall(siteId, addApiKeyRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addLocale + * @param siteId Site Identifier (required) + * @param addLocaleRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addLocaleCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addLocaleRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addLocaleValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling addLocale(Async)"); + } + + // verify the required parameter 'addLocaleRequest' is set + if (addLocaleRequest == null) { + throw new ApiException("Missing the required parameter 'addLocaleRequest' when calling addLocale(Async)"); + } + + return addLocaleCall(siteId, addLocaleRequest, _callback); + + } + + /** + * Add Locale + * Adds a new locale to the specified site + * @param siteId Site Identifier (required) + * @param addLocaleRequest (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddResponse addLocale(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest) throws ApiException { + ApiResponse localVarResp = addLocaleWithHttpInfo(siteId, addLocaleRequest); + return localVarResp.getData(); + } + + /** + * Add Locale + * Adds a new locale to the specified site + * @param siteId Site Identifier (required) + * @param addLocaleRequest (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addLocaleWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest) throws ApiException { + okhttp3.Call localVarCall = addLocaleValidateBeforeCall(siteId, addLocaleRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Locale (asynchronously) + * Adds a new locale to the specified site + * @param siteId Site Identifier (required) + * @param addLocaleRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addLocaleAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addLocaleValidateBeforeCall(siteId, addLocaleRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addLocaleResourceItem + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param addLocaleResourceItemRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addLocaleResourceItemRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addLocaleResourceItemValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling addLocaleResourceItem(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException("Missing the required parameter 'locale' when calling addLocaleResourceItem(Async)"); + } + + // verify the required parameter 'addLocaleResourceItemRequest' is set + if (addLocaleResourceItemRequest == null) { + throw new ApiException("Missing the required parameter 'addLocaleResourceItemRequest' when calling addLocaleResourceItem(Async)"); + } + + return addLocaleResourceItemCall(siteId, locale, addLocaleResourceItemRequest, _callback); + + } + + /** + * Add Locale Resource Item + * Adds a new localized resource item for a given locale + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param addLocaleResourceItemRequest (required) + * @return AddLocaleResourceItemResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddLocaleResourceItemResponse addLocaleResourceItem(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest) throws ApiException { + ApiResponse localVarResp = addLocaleResourceItemWithHttpInfo(siteId, locale, addLocaleResourceItemRequest); + return localVarResp.getData(); + } + + /** + * Add Locale Resource Item + * Adds a new localized resource item for a given locale + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param addLocaleResourceItemRequest (required) + * @return ApiResponse<AddLocaleResourceItemResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addLocaleResourceItemWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest) throws ApiException { + okhttp3.Call localVarCall = addLocaleResourceItemValidateBeforeCall(siteId, locale, addLocaleResourceItemRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Locale Resource Item (asynchronously) + * Adds a new localized resource item for a given locale + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param addLocaleResourceItemRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addLocaleResourceItemValidateBeforeCall(siteId, locale, addLocaleResourceItemRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addOpenSearchRestoreSnapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addOpenSearchRestoreSnapshotCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}/restore" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addOpenSearchRestoreSnapshotValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling addOpenSearchRestoreSnapshot(Async)"); + } + + // verify the required parameter 'snapshotName' is set + if (snapshotName == null) { + throw new ApiException("Missing the required parameter 'snapshotName' when calling addOpenSearchRestoreSnapshot(Async)"); + } + + return addOpenSearchRestoreSnapshotCall(siteId, snapshotName, _callback); + + } + + /** + * Add an OpenSearch Restore Snapshot + * Add an OpenSearch Restore Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddResponse addOpenSearchRestoreSnapshot(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { + ApiResponse localVarResp = addOpenSearchRestoreSnapshotWithHttpInfo(siteId, snapshotName); + return localVarResp.getData(); + } + + /** + * Add an OpenSearch Restore Snapshot + * Add an OpenSearch Restore Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addOpenSearchRestoreSnapshotWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { + okhttp3.Call localVarCall = addOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add an OpenSearch Restore Snapshot (asynchronously) + * Add an OpenSearch Restore Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addOpenSearchRestoreSnapshotAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addOpenSearchSnapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addOpenSearchSnapshotValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling addOpenSearchSnapshot(Async)"); + } + + // verify the required parameter 'snapshotName' is set + if (snapshotName == null) { + throw new ApiException("Missing the required parameter 'snapshotName' when calling addOpenSearchSnapshot(Async)"); + } + + return addOpenSearchSnapshotCall(siteId, snapshotName, _callback); + + } + + /** + * Add an OpenSearch Snapshot + * Add an OpenSearch Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddResponse addOpenSearchSnapshot(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { + ApiResponse localVarResp = addOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); + return localVarResp.getData(); + } + + /** + * Add an OpenSearch Snapshot + * Add an OpenSearch Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addOpenSearchSnapshotWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { + okhttp3.Call localVarCall = addOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add an OpenSearch Snapshot (asynchronously) + * Add an OpenSearch Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addSite + * @param addSiteRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addSiteCall(@javax.annotation.Nonnull AddSiteRequest addSiteRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addSiteRequest; + + // create path and map variables + String localVarPath = "/sites"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addSiteValidateBeforeCall(@javax.annotation.Nonnull AddSiteRequest addSiteRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addSiteRequest' is set + if (addSiteRequest == null) { + throw new ApiException("Missing the required parameter 'addSiteRequest' when calling addSite(Async)"); + } + + return addSiteCall(addSiteRequest, _callback); + + } + + /** + * Add Site + * Add Site + * @param addSiteRequest (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public AddResponse addSite(@javax.annotation.Nonnull AddSiteRequest addSiteRequest) throws ApiException { + ApiResponse localVarResp = addSiteWithHttpInfo(addSiteRequest); + return localVarResp.getData(); + } + + /** + * Add Site + * Add Site + * @param addSiteRequest (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse addSiteWithHttpInfo(@javax.annotation.Nonnull AddSiteRequest addSiteRequest) throws ApiException { + okhttp3.Call localVarCall = addSiteValidateBeforeCall(addSiteRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Site (asynchronously) + * Add Site + * @param addSiteRequest (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call addSiteAsync(@javax.annotation.Nonnull AddSiteRequest addSiteRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addSiteValidateBeforeCall(addSiteRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteApiKey + * @param siteId Site Identifier (required) + * @param apiKey API Key (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteApiKeyCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/apiKeys/{apiKey}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "apiKey" + "}", localVarApiClient.escapeString(apiKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteApiKeyValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling deleteApiKey(Async)"); + } + + // verify the required parameter 'apiKey' is set + if (apiKey == null) { + throw new ApiException("Missing the required parameter 'apiKey' when calling deleteApiKey(Async)"); + } + + return deleteApiKeyCall(siteId, apiKey, _callback); + + } + + /** + * Delete API Key + * Adds a new API Key + * @param siteId Site Identifier (required) + * @param apiKey API Key (required) + * @return DeleteApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteApiKeyResponse deleteApiKey(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey) throws ApiException { + ApiResponse localVarResp = deleteApiKeyWithHttpInfo(siteId, apiKey); + return localVarResp.getData(); + } + + /** + * Delete API Key + * Adds a new API Key + * @param siteId Site Identifier (required) + * @param apiKey API Key (required) + * @return ApiResponse<DeleteApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteApiKeyWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey) throws ApiException { + okhttp3.Call localVarCall = deleteApiKeyValidateBeforeCall(siteId, apiKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete API Key (asynchronously) + * Adds a new API Key + * @param siteId Site Identifier (required) + * @param apiKey API Key (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteApiKeyAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteApiKeyValidateBeforeCall(siteId, apiKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteLocale + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteLocaleCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteLocaleValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling deleteLocale(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException("Missing the required parameter 'locale' when calling deleteLocale(Async)"); + } + + return deleteLocaleCall(siteId, locale, _callback); + + } + + /** + * Delete Locale + * Delete Locale + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteLocale(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale) throws ApiException { + ApiResponse localVarResp = deleteLocaleWithHttpInfo(siteId, locale); + return localVarResp.getData(); + } + + /** + * Delete Locale + * Delete Locale + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteLocaleWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale) throws ApiException { + okhttp3.Call localVarCall = deleteLocaleValidateBeforeCall(siteId, locale, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Locale (asynchronously) + * Delete Locale + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteLocaleAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteLocaleValidateBeforeCall(siteId, locale, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteLocaleResourceItem + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) + .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteLocaleResourceItemValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling deleteLocaleResourceItem(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException("Missing the required parameter 'locale' when calling deleteLocaleResourceItem(Async)"); + } + + // verify the required parameter 'itemKey' is set + if (itemKey == null) { + throw new ApiException("Missing the required parameter 'itemKey' when calling deleteLocaleResourceItem(Async)"); + } + + return deleteLocaleResourceItemCall(siteId, locale, itemKey, _callback); + + } + + /** + * Delete Local Resource Item + * Delete Local Resource Item + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteLocaleResourceItem(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey) throws ApiException { + ApiResponse localVarResp = deleteLocaleResourceItemWithHttpInfo(siteId, locale, itemKey); + return localVarResp.getData(); + } + + /** + * Delete Local Resource Item + * Delete Local Resource Item + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteLocaleResourceItemWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey) throws ApiException { + okhttp3.Call localVarCall = deleteLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Local Resource Item (asynchronously) + * Delete Local Resource Item + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteOpenSearchIndex + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/index" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpenSearchIndexValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling deleteOpenSearchIndex(Async)"); + } + + return deleteOpenSearchIndexCall(siteId, _callback); + + } + + /** + * Deletes site(s) OpenSearch index + * Deletes the OpenSearch index + * @param siteId Site Identifier (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteOpenSearchIndex(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = deleteOpenSearchIndexWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Deletes site(s) OpenSearch index + * Deletes the OpenSearch index + * @param siteId Site Identifier (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteOpenSearchIndexWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteOpenSearchIndexValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes site(s) OpenSearch index (asynchronously) + * Deletes the OpenSearch index + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOpenSearchIndexValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteOpenSearchIndexByName + * @param indexName IndexName to path (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpenSearchIndexByNameCall(@javax.annotation.Nonnull String indexName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/global/opensearch/indices/{indexName}" + .replace("{" + "indexName" + "}", localVarApiClient.escapeString(indexName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpenSearchIndexByNameValidateBeforeCall(@javax.annotation.Nonnull String indexName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexName' is set + if (indexName == null) { + throw new ApiException("Missing the required parameter 'indexName' when calling deleteOpenSearchIndexByName(Async)"); + } + + return deleteOpenSearchIndexByNameCall(indexName, _callback); + + } + + /** + * Deletes OpenSearch index by name + * Deletes the OpenSearch index by name + * @param indexName IndexName to path (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteOpenSearchIndexByName(@javax.annotation.Nonnull String indexName) throws ApiException { + ApiResponse localVarResp = deleteOpenSearchIndexByNameWithHttpInfo(indexName); + return localVarResp.getData(); + } + + /** + * Deletes OpenSearch index by name + * Deletes the OpenSearch index by name + * @param indexName IndexName to path (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteOpenSearchIndexByNameWithHttpInfo(@javax.annotation.Nonnull String indexName) throws ApiException { + okhttp3.Call localVarCall = deleteOpenSearchIndexByNameValidateBeforeCall(indexName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes OpenSearch index by name (asynchronously) + * Deletes the OpenSearch index by name + * @param indexName IndexName to path (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpenSearchIndexByNameAsync(@javax.annotation.Nonnull String indexName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOpenSearchIndexByNameValidateBeforeCall(indexName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteOpenSearchRestoreSnapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpenSearchRestoreSnapshotCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}/restore" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpenSearchRestoreSnapshotValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling deleteOpenSearchRestoreSnapshot(Async)"); + } + + // verify the required parameter 'snapshotName' is set + if (snapshotName == null) { + throw new ApiException("Missing the required parameter 'snapshotName' when calling deleteOpenSearchRestoreSnapshot(Async)"); + } + + return deleteOpenSearchRestoreSnapshotCall(siteId, snapshotName, _callback); + + } + + /** + * Deletes site(s) OpenSearch Restore Snapshot + * Deletes the OpenSearch Restore Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteOpenSearchRestoreSnapshot(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { + ApiResponse localVarResp = deleteOpenSearchRestoreSnapshotWithHttpInfo(siteId, snapshotName); + return localVarResp.getData(); + } + + /** + * Deletes site(s) OpenSearch Restore Snapshot + * Deletes the OpenSearch Restore Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteOpenSearchRestoreSnapshotWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { + okhttp3.Call localVarCall = deleteOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes site(s) OpenSearch Restore Snapshot (asynchronously) + * Deletes the OpenSearch Restore Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpenSearchRestoreSnapshotAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteOpenSearchSnapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpenSearchSnapshotValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling deleteOpenSearchSnapshot(Async)"); + } + + // verify the required parameter 'snapshotName' is set + if (snapshotName == null) { + throw new ApiException("Missing the required parameter 'snapshotName' when calling deleteOpenSearchSnapshot(Async)"); + } + + return deleteOpenSearchSnapshotCall(siteId, snapshotName, _callback); + + } + + /** + * Deletes site(s) OpenSearch Snapshot + * Deletes the OpenSearch Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteOpenSearchSnapshot(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { + ApiResponse localVarResp = deleteOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); + return localVarResp.getData(); + } + + /** + * Deletes site(s) OpenSearch Snapshot + * Deletes the OpenSearch Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteOpenSearchSnapshotWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { + okhttp3.Call localVarCall = deleteOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes site(s) OpenSearch Snapshot (asynchronously) + * Deletes the OpenSearch Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteOpenSearchSnapshotRepository + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpenSearchSnapshotRepositoryCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshotRepository" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpenSearchSnapshotRepositoryValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling deleteOpenSearchSnapshotRepository(Async)"); + } + + return deleteOpenSearchSnapshotRepositoryCall(siteId, _callback); + + } + + /** + * Deletes site(s) OpenSearch Snapshot Repository + * Deletes the OpenSearch Snapshot Repository + * @param siteId Site Identifier (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteOpenSearchSnapshotRepository(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = deleteOpenSearchSnapshotRepositoryWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Deletes site(s) OpenSearch Snapshot Repository + * Deletes the OpenSearch Snapshot Repository + * @param siteId Site Identifier (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteOpenSearchSnapshotRepositoryWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes site(s) OpenSearch Snapshot Repository (asynchronously) + * Deletes the OpenSearch Snapshot Repository + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteOpenSearchSnapshotRepositoryAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteSiteGroup + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteSiteGroupCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/groups/{groupName}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteSiteGroupValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling deleteSiteGroup(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling deleteSiteGroup(Async)"); + } + + return deleteSiteGroupCall(siteId, groupName, _callback); + + } + + /** + * Deletes Site Group and permissions + * Deletes Site Group and permissions + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteSiteGroup(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) throws ApiException { + ApiResponse localVarResp = deleteSiteGroupWithHttpInfo(siteId, groupName); + return localVarResp.getData(); + } + + /** + * Deletes Site Group and permissions + * Deletes Site Group and permissions + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteSiteGroupWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) throws ApiException { + okhttp3.Call localVarCall = deleteSiteGroupValidateBeforeCall(siteId, groupName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes Site Group and permissions (asynchronously) + * Deletes Site Group and permissions + * @param siteId Site Identifier (required) + * @param groupName Group Name (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteSiteGroupAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteSiteGroupValidateBeforeCall(siteId, groupName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAllOpenSearchIndices + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getAllOpenSearchIndicesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/global/opensearch/indices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllOpenSearchIndicesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAllOpenSearchIndicesCall(_callback); + + } + + /** + * Get all OpenSearch indices + * Returns all OpenSearch indices + * @return GetOpenSearchIndiceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetOpenSearchIndiceResponse getAllOpenSearchIndices() throws ApiException { + ApiResponse localVarResp = getAllOpenSearchIndicesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get all OpenSearch indices + * Returns all OpenSearch indices + * @return ApiResponse<GetOpenSearchIndiceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getAllOpenSearchIndicesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllOpenSearchIndicesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get all OpenSearch indices (asynchronously) + * Returns all OpenSearch indices + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getAllOpenSearchIndicesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllOpenSearchIndicesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getApiKeys + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getApiKeysCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/apiKeys" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApiKeysValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getApiKeys(Async)"); + } + + return getApiKeysCall(siteId, next, limit, _callback); + + } + + /** + * Get API Keys + * Returns the list of ApiKeys + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetApiKeysResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetApiKeysResponse getApiKeys(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getApiKeysWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get API Keys + * Returns the list of ApiKeys + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetApiKeysResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getApiKeysWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getApiKeysValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get API Keys (asynchronously) + * Returns the list of ApiKeys + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getApiKeysAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApiKeysValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getConfiguration + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getConfigurationCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/configuration" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getConfigurationValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getConfiguration(Async)"); + } + + return getConfigurationCall(siteId, _callback); + + } + + /** + * Get site configuration + * Returns the list of sites that the user has access to + * @param siteId Site Identifier (required) + * @return GetConfigurationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetConfigurationResponse getConfiguration(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = getConfigurationWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get site configuration + * Returns the list of sites that the user has access to + * @param siteId Site Identifier (required) + * @return ApiResponse<GetConfigurationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getConfigurationWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getConfigurationValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site configuration (asynchronously) + * Returns the list of sites that the user has access to + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getConfigurationAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getConfigurationValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getLocaleResourceItem + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) + .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getLocaleResourceItemValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getLocaleResourceItem(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException("Missing the required parameter 'locale' when calling getLocaleResourceItem(Async)"); + } + + // verify the required parameter 'itemKey' is set + if (itemKey == null) { + throw new ApiException("Missing the required parameter 'itemKey' when calling getLocaleResourceItem(Async)"); + } + + return getLocaleResourceItemCall(siteId, locale, itemKey, _callback); + + } + + /** + * Get Resource Item by Locale + * Returns the resource item + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @return GetLocaleResourceItemResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetLocaleResourceItemResponse getLocaleResourceItem(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey) throws ApiException { + ApiResponse localVarResp = getLocaleResourceItemWithHttpInfo(siteId, locale, itemKey); + return localVarResp.getData(); + } + + /** + * Get Resource Item by Locale + * Returns the resource item + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @return ApiResponse<GetLocaleResourceItemResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getLocaleResourceItemWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey) throws ApiException { + okhttp3.Call localVarCall = getLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Resource Item by Locale (asynchronously) + * Returns the resource item + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getLocaleResourceItems + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getLocaleResourceItemsCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getLocaleResourceItemsValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getLocaleResourceItems(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException("Missing the required parameter 'locale' when calling getLocaleResourceItems(Async)"); + } + + return getLocaleResourceItemsCall(siteId, locale, next, limit, _callback); + + } + + /** + * Get Resource Items by Locale + * Returns the list resource items + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetLocaleResourceItemsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetLocaleResourceItemsResponse getLocaleResourceItems(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getLocaleResourceItemsWithHttpInfo(siteId, locale, next, limit); + return localVarResp.getData(); + } + + /** + * Get Resource Items by Locale + * Returns the list resource items + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetLocaleResourceItemsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getLocaleResourceItemsWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getLocaleResourceItemsValidateBeforeCall(siteId, locale, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Resource Items by Locale (asynchronously) + * Returns the list resource items + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getLocaleResourceItemsAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getLocaleResourceItemsValidateBeforeCall(siteId, locale, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getLocales + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getLocalesCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getLocalesValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getLocales(Async)"); + } + + return getLocalesCall(siteId, next, limit, _callback); + + } + + /** + * Get Locales + * Returns a list of locale(s) in a specified site + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetLocalesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetLocalesResponse getLocales(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getLocalesWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get Locales + * Returns a list of locale(s) in a specified site + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetLocalesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getLocalesWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getLocalesValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Locales (asynchronously) + * Returns a list of locale(s) in a specified site + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getLocalesAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getLocalesValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOpenSearchIndex + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/index" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchIndexValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getOpenSearchIndex(Async)"); + } + + return getOpenSearchIndexCall(siteId, _callback); + + } + + /** + * Get site(s) OpenSearch index settings + * Returns the OpenSearch index settings (Deprecated use /sites/{siteId}/opensearch/indices) + * @param siteId Site Identifier (required) + * @return GetOpenSearchIndexResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetOpenSearchIndexResponse getOpenSearchIndex(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = getOpenSearchIndexWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch index settings + * Returns the OpenSearch index settings (Deprecated use /sites/{siteId}/opensearch/indices) + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpenSearchIndexResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getOpenSearchIndexWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpenSearchIndexValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch index settings (asynchronously) + * Returns the OpenSearch index settings (Deprecated use /sites/{siteId}/opensearch/indices) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpenSearchIndexValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOpenSearchIndices + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchIndicesCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/indices" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchIndicesValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getOpenSearchIndices(Async)"); + } + + return getOpenSearchIndicesCall(siteId, _callback); + + } + + /** + * Get site(s) OpenSearch indices + * Returns the OpenSearch indices + * @param siteId Site Identifier (required) + * @return GetOpenSearchIndiceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetOpenSearchIndiceResponse getOpenSearchIndices(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = getOpenSearchIndicesWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch indices + * Returns the OpenSearch indices + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpenSearchIndiceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getOpenSearchIndicesWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpenSearchIndicesValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch indices (asynchronously) + * Returns the OpenSearch indices + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchIndicesAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpenSearchIndicesValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOpenSearchSnapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchSnapshotValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getOpenSearchSnapshot(Async)"); + } + + // verify the required parameter 'snapshotName' is set + if (snapshotName == null) { + throw new ApiException("Missing the required parameter 'snapshotName' when calling getOpenSearchSnapshot(Async)"); + } + + return getOpenSearchSnapshotCall(siteId, snapshotName, _callback); + + } + + /** + * Get site(s) OpenSearch snapshot + * Returns the OpenSearch Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return GetOpenSearchSnapshotResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetOpenSearchSnapshotResponse getOpenSearchSnapshot(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { + ApiResponse localVarResp = getOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch snapshot + * Returns the OpenSearch Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return ApiResponse<GetOpenSearchSnapshotResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getOpenSearchSnapshotWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { + okhttp3.Call localVarCall = getOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch snapshot (asynchronously) + * Returns the OpenSearch Snapshot + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOpenSearchSnapshotRepositories + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchSnapshotRepositoriesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/global/opensearch/snapshotRepositories"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchSnapshotRepositoriesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getOpenSearchSnapshotRepositoriesCall(_callback); + + } + + /** + * Get site(s) OpenSearch snapshot repositories + * Returns the OpenSearch Snapshot Repositories + * @return GetOpenSearchSnapshotRepositoryResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepositories() throws ApiException { + ApiResponse localVarResp = getOpenSearchSnapshotRepositoriesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch snapshot repositories + * Returns the OpenSearch Snapshot Repositories + * @return ApiResponse<GetOpenSearchSnapshotRepositoryResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getOpenSearchSnapshotRepositoriesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoriesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch snapshot repositories (asynchronously) + * Returns the OpenSearch Snapshot Repositories + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchSnapshotRepositoriesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoriesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOpenSearchSnapshotRepository + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchSnapshotRepositoryCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshotRepository" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchSnapshotRepositoryValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getOpenSearchSnapshotRepository(Async)"); + } + + return getOpenSearchSnapshotRepositoryCall(siteId, _callback); + + } + + /** + * Get site(s) OpenSearch snapshot repository + * Returns the OpenSearch Snapshot Repository + * @param siteId Site Identifier (required) + * @return GetOpenSearchSnapshotRepositoryResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepository(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = getOpenSearchSnapshotRepositoryWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch snapshot repository + * Returns the OpenSearch Snapshot Repository + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpenSearchSnapshotRepositoryResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getOpenSearchSnapshotRepositoryWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch snapshot repository (asynchronously) + * Returns the OpenSearch Snapshot Repository + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchSnapshotRepositoryAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOpenSearchSnapshots + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchSnapshotsCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchSnapshotsValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getOpenSearchSnapshots(Async)"); + } + + return getOpenSearchSnapshotsCall(siteId, _callback); + + } + + /** + * Get site(s) OpenSearch snapshots + * Returns the OpenSearch Snapshots + * @param siteId Site Identifier (required) + * @return GetOpenSearchSnapshotResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetOpenSearchSnapshotResponse getOpenSearchSnapshots(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = getOpenSearchSnapshotsWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch snapshots + * Returns the OpenSearch Snapshots + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpenSearchSnapshotResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getOpenSearchSnapshotsWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpenSearchSnapshotsValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch snapshots (asynchronously) + * Returns the OpenSearch Snapshots + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getOpenSearchSnapshotsAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpenSearchSnapshotsValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSiteGroup + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSiteGroupCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/groups/{groupName}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSiteGroupValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getSiteGroup(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling getSiteGroup(Async)"); + } + + return getSiteGroupCall(siteId, groupName, _callback); + + } + + /** + * Get group and permissions belonging to site + * Returns details of a group and permissions belonging to site + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @return GetSiteGroupResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetSiteGroupResponse getSiteGroup(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) throws ApiException { + ApiResponse localVarResp = getSiteGroupWithHttpInfo(siteId, groupName); + return localVarResp.getData(); + } + + /** + * Get group and permissions belonging to site + * Returns details of a group and permissions belonging to site + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @return ApiResponse<GetSiteGroupResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getSiteGroupWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) throws ApiException { + okhttp3.Call localVarCall = getSiteGroupValidateBeforeCall(siteId, groupName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get group and permissions belonging to site (asynchronously) + * Returns details of a group and permissions belonging to site + * @param siteId Site Identifier (required) + * @param groupName Group Name (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSiteGroupAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSiteGroupValidateBeforeCall(siteId, groupName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSiteGroups + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSiteGroupsCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/groups" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSiteGroupsValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling getSiteGroups(Async)"); + } + + return getSiteGroupsCall(siteId, _callback); + + } + + /** + * Get group(s) and permissions belonging to site + * Returns list of groups and permissions belonging to site + * @param siteId Site Identifier (required) + * @return GetSiteGroupsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetSiteGroupsResponse getSiteGroups(@javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = getSiteGroupsWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get group(s) and permissions belonging to site + * Returns list of groups and permissions belonging to site + * @param siteId Site Identifier (required) + * @return ApiResponse<GetSiteGroupsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getSiteGroupsWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getSiteGroupsValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get group(s) and permissions belonging to site (asynchronously) + * Returns list of groups and permissions belonging to site + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSiteGroupsAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSiteGroupsValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSites + * @param status Fetch sites with status (only valid when using SitePermissions 'defined' (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSitesCall(@javax.annotation.Nullable SiteStatus status, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (status != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSitesValidateBeforeCall(@javax.annotation.Nullable SiteStatus status, final ApiCallback _callback) throws ApiException { + return getSitesCall(status, _callback); + + } + + /** + * Get site(s) access + * Returns the list of sites that the user has access to + * @param status Fetch sites with status (only valid when using SitePermissions 'defined' (optional) + * @return GetSitesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetSitesResponse getSites(@javax.annotation.Nullable SiteStatus status) throws ApiException { + ApiResponse localVarResp = getSitesWithHttpInfo(status); + return localVarResp.getData(); + } + + /** + * Get site(s) access + * Returns the list of sites that the user has access to + * @param status Fetch sites with status (only valid when using SitePermissions 'defined' (optional) + * @return ApiResponse<GetSitesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getSitesWithHttpInfo(@javax.annotation.Nullable SiteStatus status) throws ApiException { + okhttp3.Call localVarCall = getSitesValidateBeforeCall(status, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) access (asynchronously) + * Returns the list of sites that the user has access to + * @param status Fetch sites with status (only valid when using SitePermissions 'defined' (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getSitesAsync(@javax.annotation.Nullable SiteStatus status, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSitesValidateBeforeCall(status, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getVersion + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getVersionCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/version"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getVersionValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getVersionCall(_callback); + + } + + /** + * Get FormKiQ version + * Return the version of FormKiQ + * @return GetVersionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetVersionResponse getVersion() throws ApiException { + ApiResponse localVarResp = getVersionWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get FormKiQ version + * Return the version of FormKiQ + * @return ApiResponse<GetVersionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getVersionWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getVersionValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get FormKiQ version (asynchronously) + * Return the version of FormKiQ + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getVersionAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getVersionValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setLocaleResourceItem + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param setLocaleResourceItemRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setLocaleResourceItemRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) + .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setLocaleResourceItemValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling setLocaleResourceItem(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException("Missing the required parameter 'locale' when calling setLocaleResourceItem(Async)"); + } + + // verify the required parameter 'itemKey' is set + if (itemKey == null) { + throw new ApiException("Missing the required parameter 'itemKey' when calling setLocaleResourceItem(Async)"); + } + + // verify the required parameter 'setLocaleResourceItemRequest' is set + if (setLocaleResourceItemRequest == null) { + throw new ApiException("Missing the required parameter 'setLocaleResourceItemRequest' when calling setLocaleResourceItem(Async)"); + } + + return setLocaleResourceItemCall(siteId, locale, itemKey, setLocaleResourceItemRequest, _callback); + + } + + /** + * Set Locale Resource Item + * Set a new Locale Resource Item + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param setLocaleResourceItemRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setLocaleResourceItem(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest) throws ApiException { + ApiResponse localVarResp = setLocaleResourceItemWithHttpInfo(siteId, locale, itemKey, setLocaleResourceItemRequest); + return localVarResp.getData(); + } + + /** + * Set Locale Resource Item + * Set a new Locale Resource Item + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param setLocaleResourceItemRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setLocaleResourceItemWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest) throws ApiException { + okhttp3.Call localVarCall = setLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, setLocaleResourceItemRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set Locale Resource Item (asynchronously) + * Set a new Locale Resource Item + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param setLocaleResourceItemRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, setLocaleResourceItemRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setOpenSearchIndex + * @param siteId Site Identifier (required) + * @param setOpenSearchIndexRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setOpenSearchIndexRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/index" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setOpenSearchIndexValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling setOpenSearchIndex(Async)"); + } + + // verify the required parameter 'setOpenSearchIndexRequest' is set + if (setOpenSearchIndexRequest == null) { + throw new ApiException("Missing the required parameter 'setOpenSearchIndexRequest' when calling setOpenSearchIndex(Async)"); + } + + return setOpenSearchIndexCall(siteId, setOpenSearchIndexRequest, _callback); + + } + + /** + * Set site(s) OpenSearch index settings + * Sets the OpenSearch index settings + * @param siteId Site Identifier (required) + * @param setOpenSearchIndexRequest (required) + * @return SetOpenSearchIndexResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetOpenSearchIndexResponse setOpenSearchIndex(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest) throws ApiException { + ApiResponse localVarResp = setOpenSearchIndexWithHttpInfo(siteId, setOpenSearchIndexRequest); + return localVarResp.getData(); + } + + /** + * Set site(s) OpenSearch index settings + * Sets the OpenSearch index settings + * @param siteId Site Identifier (required) + * @param setOpenSearchIndexRequest (required) + * @return ApiResponse<SetOpenSearchIndexResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setOpenSearchIndexWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest) throws ApiException { + okhttp3.Call localVarCall = setOpenSearchIndexValidateBeforeCall(siteId, setOpenSearchIndexRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set site(s) OpenSearch index settings (asynchronously) + * Sets the OpenSearch index settings + * @param siteId Site Identifier (required) + * @param setOpenSearchIndexRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setOpenSearchIndexValidateBeforeCall(siteId, setOpenSearchIndexRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setOpenSearchIndices + * @param siteId Site Identifier (required) + * @param setOpenSearchIndiceRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setOpenSearchIndicesCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setOpenSearchIndiceRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/indices" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setOpenSearchIndicesValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling setOpenSearchIndices(Async)"); + } + + // verify the required parameter 'setOpenSearchIndiceRequest' is set + if (setOpenSearchIndiceRequest == null) { + throw new ApiException("Missing the required parameter 'setOpenSearchIndiceRequest' when calling setOpenSearchIndices(Async)"); + } + + return setOpenSearchIndicesCall(siteId, setOpenSearchIndiceRequest, _callback); + + } + + /** + * Set site(s) OpenSearch index to use for a SiteId + * Sets the OpenSearch index to use for a SiteId + * @param siteId Site Identifier (required) + * @param setOpenSearchIndiceRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setOpenSearchIndices(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest) throws ApiException { + ApiResponse localVarResp = setOpenSearchIndicesWithHttpInfo(siteId, setOpenSearchIndiceRequest); + return localVarResp.getData(); + } + + /** + * Set site(s) OpenSearch index to use for a SiteId + * Sets the OpenSearch index to use for a SiteId + * @param siteId Site Identifier (required) + * @param setOpenSearchIndiceRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setOpenSearchIndicesWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest) throws ApiException { + okhttp3.Call localVarCall = setOpenSearchIndicesValidateBeforeCall(siteId, setOpenSearchIndiceRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set site(s) OpenSearch index to use for a SiteId (asynchronously) + * Sets the OpenSearch index to use for a SiteId + * @param siteId Site Identifier (required) + * @param setOpenSearchIndiceRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setOpenSearchIndicesAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setOpenSearchIndicesValidateBeforeCall(siteId, setOpenSearchIndiceRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setSiteGroupPermissions + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param setGroupPermissionsRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setSiteGroupPermissionsCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setGroupPermissionsRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/groups/{groupName}/permissions" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setSiteGroupPermissionsValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling setSiteGroupPermissions(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling setSiteGroupPermissions(Async)"); + } + + // verify the required parameter 'setGroupPermissionsRequest' is set + if (setGroupPermissionsRequest == null) { + throw new ApiException("Missing the required parameter 'setGroupPermissionsRequest' when calling setSiteGroupPermissions(Async)"); + } + + return setSiteGroupPermissionsCall(siteId, groupName, setGroupPermissionsRequest, _callback); + + } + + /** + * Set Site's Group Permissions + * Set Site's Group Permissions + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param setGroupPermissionsRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setSiteGroupPermissions(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest) throws ApiException { + ApiResponse localVarResp = setSiteGroupPermissionsWithHttpInfo(siteId, groupName, setGroupPermissionsRequest); + return localVarResp.getData(); + } + + /** + * Set Site's Group Permissions + * Set Site's Group Permissions + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param setGroupPermissionsRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setSiteGroupPermissionsWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest) throws ApiException { + okhttp3.Call localVarCall = setSiteGroupPermissionsValidateBeforeCall(siteId, groupName, setGroupPermissionsRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set Site's Group Permissions (asynchronously) + * Set Site's Group Permissions + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param setGroupPermissionsRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setSiteGroupPermissionsAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setSiteGroupPermissionsValidateBeforeCall(siteId, groupName, setGroupPermissionsRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateConfiguration + * @param siteId Site Identifier (required) + * @param updateConfigurationRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateConfigurationCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateConfigurationRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/configuration" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateConfigurationValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling updateConfiguration(Async)"); + } + + // verify the required parameter 'updateConfigurationRequest' is set + if (updateConfigurationRequest == null) { + throw new ApiException("Missing the required parameter 'updateConfigurationRequest' when calling updateConfiguration(Async)"); + } + + return updateConfigurationCall(siteId, updateConfigurationRequest, _callback); + + } + + /** + * Update site configuration + * Update the System Management configuration + * @param siteId Site Identifier (required) + * @param updateConfigurationRequest (required) + * @return UpdateConfigurationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public UpdateConfigurationResponse updateConfiguration(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest) throws ApiException { + ApiResponse localVarResp = updateConfigurationWithHttpInfo(siteId, updateConfigurationRequest); + return localVarResp.getData(); + } + + /** + * Update site configuration + * Update the System Management configuration + * @param siteId Site Identifier (required) + * @param updateConfigurationRequest (required) + * @return ApiResponse<UpdateConfigurationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse updateConfigurationWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest) throws ApiException { + okhttp3.Call localVarCall = updateConfigurationValidateBeforeCall(siteId, updateConfigurationRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update site configuration (asynchronously) + * Update the System Management configuration + * @param siteId Site Identifier (required) + * @param updateConfigurationRequest (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call updateConfigurationAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateConfigurationValidateBeforeCall(siteId, updateConfigurationRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateSite + * @param siteId Site Identifier (required) + * @param updateSiteRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateSiteCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateSiteRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateSiteValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException("Missing the required parameter 'siteId' when calling updateSite(Async)"); + } + + // verify the required parameter 'updateSiteRequest' is set + if (updateSiteRequest == null) { + throw new ApiException("Missing the required parameter 'updateSiteRequest' when calling updateSite(Async)"); + } + + return updateSiteCall(siteId, updateSiteRequest, _callback); + + } + + /** + * Update Site + * Update Site + * @param siteId Site Identifier (required) + * @param updateSiteRequest (required) + * @return UpdateResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public UpdateResponse updateSite(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest) throws ApiException { + ApiResponse localVarResp = updateSiteWithHttpInfo(siteId, updateSiteRequest); + return localVarResp.getData(); + } + + /** + * Update Site + * Update Site + * @param siteId Site Identifier (required) + * @param updateSiteRequest (required) + * @return ApiResponse<UpdateResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse updateSiteWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest) throws ApiException { + okhttp3.Call localVarCall = updateSiteValidateBeforeCall(siteId, updateSiteRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Site (asynchronously) + * Update Site + * @param siteId Site Identifier (required) + * @param updateSiteRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateSiteAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateSiteValidateBeforeCall(siteId, updateSiteRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/TagIndexApi.java b/src/main/java/com/formkiq/client/api/TagIndexApi.java index 655bc7c7f..0399e409c 100644 --- a/src/main/java/com/formkiq/client/api/TagIndexApi.java +++ b/src/main/java/com/formkiq/client/api/TagIndexApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -45,292 +38,203 @@ import java.util.Map; public class TagIndexApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public TagIndexApi() { - this(Configuration.getDefaultApiClient()); - } - - public TagIndexApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for indexSearch - * - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call indexSearchCall( - @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public TagIndexApi() { + this(Configuration.getDefaultApiClient()); } - Object localVarPostBody = indexSearchRequest; + public TagIndexApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - // create path and map variables - String localVarPath = "/indices/search"; + public ApiClient getApiClient() { + return localVarApiClient; + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public int getHostIndex() { + return localHostIndex; } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - if (previous != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Build call for indexSearch + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call indexSearchCall(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = indexSearchRequest; + + // create path and map variables + String localVarPath = "/indices/search"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + @SuppressWarnings("rawtypes") + private okhttp3.Call indexSearchValidateBeforeCall(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexSearchRequest' is set + if (indexSearchRequest == null) { + throw new ApiException("Missing the required parameter 'indexSearchRequest' when calling indexSearch(Async)"); + } + + return indexSearchCall(indexSearchRequest, siteId, limit, next, previous, _callback); + + } + + /** + * + * Perform a search on a index; this is currently available for both folder and tag indices + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return IndexSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public IndexSearchResponse indexSearch(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { + ApiResponse localVarResp = indexSearchWithHttpInfo(indexSearchRequest, siteId, limit, next, previous); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call indexSearchValidateBeforeCall( - @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexSearchRequest' is set - if (indexSearchRequest == null) { - throw new ApiException( - "Missing the required parameter 'indexSearchRequest' when calling indexSearch(Async)"); + /** + * + * Perform a search on a index; this is currently available for both folder and tag indices + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return ApiResponse<IndexSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public ApiResponse indexSearchWithHttpInfo(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { + okhttp3.Call localVarCall = indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - return indexSearchCall(indexSearchRequest, siteId, limit, next, previous, _callback); - - } - - /** - * - * Perform a search on a index; this is currently available for both folder and tag indices - * - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return IndexSearchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public IndexSearchResponse indexSearch( - @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) - throws ApiException { - ApiResponse localVarResp = - indexSearchWithHttpInfo(indexSearchRequest, siteId, limit, next, previous); - return localVarResp.getData(); - } - - /** - * - * Perform a search on a index; this is currently available for both folder and tag indices - * - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return ApiResponse<IndexSearchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public ApiResponse indexSearchWithHttpInfo( - @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) - throws ApiException { - okhttp3.Call localVarCall = - indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) Perform a search on a index; this is currently available for both folder and - * tag indices - * - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
400400 OK-
- */ - public okhttp3.Call indexSearchAsync( - @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * (asynchronously) + * Perform a search on a index; this is currently available for both folder and tag indices + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (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 + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
+ */ + public okhttp3.Call indexSearchAsync(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/UserActivitiesApi.java b/src/main/java/com/formkiq/client/api/UserActivitiesApi.java index 99db6492f..97c43de13 100644 --- a/src/main/java/com/formkiq/client/api/UserActivitiesApi.java +++ b/src/main/java/com/formkiq/client/api/UserActivitiesApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -45,757 +38,545 @@ import java.util.Map; public class UserActivitiesApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public UserActivitiesApi() { - this(Configuration.getDefaultApiClient()); - } - - public UserActivitiesApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for getDocumentUserActivities - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentUserActivitiesCall(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/userActivities".replace("{" + "documentId" + "}", - localVarApiClient.escapeString(documentId.toString())); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public UserActivitiesApi() { + this(Configuration.getDefaultApiClient()); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + public UserActivitiesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + public ApiClient getApiClient() { + return localVarApiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public int getHostIndex() { + return localHostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentUserActivitiesValidateBeforeCall( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException( - "Missing the required parameter 'documentId' when calling getDocumentUserActivities(Async)"); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - return getDocumentUserActivitiesCall(documentId, siteId, next, limit, _callback); - - } - - /** - * Get user activities for a document Retrieve a user's activities for a document - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetUserActivitesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetUserActivitesResponse getDocumentUserActivities( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = - getDocumentUserActivitiesWithHttpInfo(documentId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get user activities for a document Retrieve a user's activities for a document - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetUserActivitesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getDocumentUserActivitiesWithHttpInfo( - @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - okhttp3.Call localVarCall = - getDocumentUserActivitiesValidateBeforeCall(documentId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get user activities for a document (asynchronously) Retrieve a user's activities for a - * document - * - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getDocumentUserActivitiesAsync(@javax.annotation.Nonnull String documentId, - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getDocumentUserActivitiesValidateBeforeCall(documentId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getResourceActivities - * - * @param siteId Site Identifier (optional) - * @param documentId Document Identifier (optional) - * @param entityTypeId EntityType Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param entityId Entity Identifier (optional) - * @param start Start of date-time range (UTC) (optional) - * @param end End of date-time range (UTC) (optional) - * @param sort Sort order (default DESC) (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getResourceActivitiesCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, - @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, - @javax.annotation.Nullable OffsetDateTime start, - @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/activities"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; } - if (documentId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("documentId", documentId)); + /** + * Build call for getDocumentUserActivities + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentUserActivitiesCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/userActivities" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - if (entityTypeId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("entityTypeId", entityTypeId)); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentUserActivitiesValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentUserActivities(Async)"); + } - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); - } + return getDocumentUserActivitiesCall(documentId, siteId, next, limit, _callback); - if (entityId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("entityId", entityId)); } - if (start != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + /** + * Get user activities for a document + * Retrieve a user's activities for a document + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetUserActivitesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetUserActivitesResponse getDocumentUserActivities(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getDocumentUserActivitiesWithHttpInfo(documentId, siteId, next, limit); + return localVarResp.getData(); } - if (end != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + /** + * Get user activities for a document + * Retrieve a user's activities for a document + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetUserActivitesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getDocumentUserActivitiesWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getDocumentUserActivitiesValidateBeforeCall(documentId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (sort != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + /** + * Get user activities for a document (asynchronously) + * Retrieve a user's activities for a document + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getDocumentUserActivitiesAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentUserActivitiesValidateBeforeCall(documentId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Build call for getResourceActivities + * @param siteId Site Identifier (optional) + * @param documentId Document Identifier (optional) + * @param entityTypeId EntityType Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param entityId Entity Identifier (optional) + * @param start Start of date-time range (UTC) (optional) + * @param end End of date-time range (UTC) (optional) + * @param sort Sort order (default DESC) (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getResourceActivitiesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/activities"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (documentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("documentId", documentId)); + } + + if (entityTypeId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("entityTypeId", entityTypeId)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (entityId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("entityId", entityId)); + } + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call getResourceActivitiesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + return getResourceActivitiesCall(siteId, documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId, _callback); - if (userId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get resource activities + * Retrieve an resource activities + * @param siteId Site Identifier (optional) + * @param documentId Document Identifier (optional) + * @param entityTypeId EntityType Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param entityId Entity Identifier (optional) + * @param start Start of date-time range (UTC) (optional) + * @param end End of date-time range (UTC) (optional) + * @param sort Sort order (default DESC) (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @return GetActivitesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetActivitesResponse getResourceActivities(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId) throws ApiException { + ApiResponse localVarResp = getResourceActivitiesWithHttpInfo(siteId, documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get resource activities + * Retrieve an resource activities + * @param siteId Site Identifier (optional) + * @param documentId Document Identifier (optional) + * @param entityTypeId EntityType Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param entityId Entity Identifier (optional) + * @param start Start of date-time range (UTC) (optional) + * @param end End of date-time range (UTC) (optional) + * @param sort Sort order (default DESC) (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @return ApiResponse<GetActivitesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getResourceActivitiesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId) throws ApiException { + okhttp3.Call localVarCall = getResourceActivitiesValidateBeforeCall(siteId, documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getResourceActivitiesValidateBeforeCall( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, - @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, - @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, - @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { - return getResourceActivitiesCall(siteId, documentId, entityTypeId, namespace, entityId, start, - end, sort, next, limit, userId, _callback); - - } - - /** - * Get resource activities Retrieve an resource activities - * - * @param siteId Site Identifier (optional) - * @param documentId Document Identifier (optional) - * @param entityTypeId EntityType Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param entityId Entity Identifier (optional) - * @param start Start of date-time range (UTC) (optional) - * @param end End of date-time range (UTC) (optional) - * @param sort Sort order (default DESC) (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @return GetActivitesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetActivitesResponse getResourceActivities(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, - @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, - @javax.annotation.Nullable OffsetDateTime start, - @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String userId) throws ApiException { - ApiResponse localVarResp = getResourceActivitiesWithHttpInfo(siteId, - documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId); - return localVarResp.getData(); - } - - /** - * Get resource activities Retrieve an resource activities - * - * @param siteId Site Identifier (optional) - * @param documentId Document Identifier (optional) - * @param entityTypeId EntityType Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param entityId Entity Identifier (optional) - * @param start Start of date-time range (UTC) (optional) - * @param end End of date-time range (UTC) (optional) - * @param sort Sort order (default DESC) (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @return ApiResponse<GetActivitesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getResourceActivitiesWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, - @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, - @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, - @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String userId) throws ApiException { - okhttp3.Call localVarCall = getResourceActivitiesValidateBeforeCall(siteId, documentId, - entityTypeId, namespace, entityId, start, end, sort, next, limit, userId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get resource activities (asynchronously) Retrieve an resource activities - * - * @param siteId Site Identifier (optional) - * @param documentId Document Identifier (optional) - * @param entityTypeId EntityType Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param entityId Entity Identifier (optional) - * @param start Start of date-time range (UTC) (optional) - * @param end End of date-time range (UTC) (optional) - * @param sort Sort order (default DESC) (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getResourceActivitiesAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, - @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, - @javax.annotation.Nullable OffsetDateTime start, - @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String userId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getResourceActivitiesValidateBeforeCall(siteId, documentId, - entityTypeId, namespace, entityId, start, end, sort, next, limit, userId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getUserActivities - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getUserActivitiesCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get resource activities (asynchronously) + * Retrieve an resource activities + * @param siteId Site Identifier (optional) + * @param documentId Document Identifier (optional) + * @param entityTypeId EntityType Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param entityId Entity Identifier (optional) + * @param start Start of date-time range (UTC) (optional) + * @param end End of date-time range (UTC) (optional) + * @param sort Sort order (default DESC) (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getResourceActivitiesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getResourceActivitiesValidateBeforeCall(siteId, documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/userActivities"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + /** + * Build call for getUserActivities + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getUserActivitiesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/userActivities"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserActivitiesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + return getUserActivitiesCall(siteId, next, limit, userId, _callback); - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (userId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); + /** + * Get user activities + * Retrieve a user's activities + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @return GetUserActivitesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetUserActivitesResponse getUserActivities(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId) throws ApiException { + ApiResponse localVarResp = getUserActivitiesWithHttpInfo(siteId, next, limit, userId); + return localVarResp.getData(); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get user activities + * Retrieve a user's activities + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @return ApiResponse<GetUserActivitesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getUserActivitiesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId) throws ApiException { + okhttp3.Call localVarCall = getUserActivitiesValidateBeforeCall(siteId, next, limit, userId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get user activities (asynchronously) + * Retrieve a user's activities + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getUserActivitiesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUserActivitiesValidateBeforeCall(siteId, next, limit, userId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getUserActivitiesValidateBeforeCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { - return getUserActivitiesCall(siteId, next, limit, userId, _callback); - - } - - /** - * Get user activities Retrieve a user's activities - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @return GetUserActivitesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetUserActivitesResponse getUserActivities(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String userId) throws ApiException { - ApiResponse localVarResp = - getUserActivitiesWithHttpInfo(siteId, next, limit, userId); - return localVarResp.getData(); - } - - /** - * Get user activities Retrieve a user's activities - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @return ApiResponse<GetUserActivitesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getUserActivitiesWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId) - throws ApiException { - okhttp3.Call localVarCall = - getUserActivitiesValidateBeforeCall(siteId, next, limit, userId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get user activities (asynchronously) Retrieve a user's activities - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getUserActivitiesAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String userId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getUserActivitiesValidateBeforeCall(siteId, next, limit, userId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/api/UserManagementApi.java b/src/main/java/com/formkiq/client/api/UserManagementApi.java index 19eddd5b7..c94dd0993 100644 --- a/src/main/java/com/formkiq/client/api/UserManagementApi.java +++ b/src/main/java/com/formkiq/client/api/UserManagementApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -53,2499 +46,1765 @@ import java.util.Map; public class UserManagementApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public UserManagementApi() { - this(Configuration.getDefaultApiClient()); - } - - public UserManagementApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addGroup - * - * @param addGroupRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addGroupCall(@javax.annotation.Nonnull AddGroupRequest addGroupRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addGroupRequest; - - // create path and map variables - String localVarPath = "/groups"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addGroupValidateBeforeCall( - @javax.annotation.Nonnull AddGroupRequest addGroupRequest, final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'addGroupRequest' is set - if (addGroupRequest == null) { - throw new ApiException( - "Missing the required parameter 'addGroupRequest' when calling addGroup(Async)"); - } - - return addGroupCall(addGroupRequest, _callback); - - } - - /** - * Add a group Add a new group - * - * @param addGroupRequest (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddResponse addGroup(@javax.annotation.Nonnull AddGroupRequest addGroupRequest) - throws ApiException { - ApiResponse localVarResp = addGroupWithHttpInfo(addGroupRequest); - return localVarResp.getData(); - } - - /** - * Add a group Add a new group - * - * @param addGroupRequest (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addGroupWithHttpInfo( - @javax.annotation.Nonnull AddGroupRequest addGroupRequest) throws ApiException { - okhttp3.Call localVarCall = addGroupValidateBeforeCall(addGroupRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add a group (asynchronously) Add a new group - * - * @param addGroupRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addGroupAsync(@javax.annotation.Nonnull AddGroupRequest addGroupRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addGroupValidateBeforeCall(addGroupRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addUser - * - * @param addUserRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addUserCall(@javax.annotation.Nonnull AddUserRequest addUserRequest, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addUserRequest; - - // create path and map variables - String localVarPath = "/users"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addUserValidateBeforeCall( - @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'addUserRequest' is set - if (addUserRequest == null) { - throw new ApiException( - "Missing the required parameter 'addUserRequest' when calling addUser(Async)"); - } - - return addUserCall(addUserRequest, _callback); - - } - - /** - * Add User Adds a user - * - * @param addUserRequest (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddResponse addUser(@javax.annotation.Nonnull AddUserRequest addUserRequest) - throws ApiException { - ApiResponse localVarResp = addUserWithHttpInfo(addUserRequest); - return localVarResp.getData(); - } - - /** - * Add User Adds a user - * - * @param addUserRequest (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addUserWithHttpInfo( - @javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { - okhttp3.Call localVarCall = addUserValidateBeforeCall(addUserRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add User (asynchronously) Adds a user - * - * @param addUserRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addUserAsync(@javax.annotation.Nonnull AddUserRequest addUserRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addUserValidateBeforeCall(addUserRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addUserToGroup - * - * @param groupName Group Name (required) - * @param addUserRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addUserToGroupCall(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addUserRequest; - - // create path and map variables - String localVarPath = "/groups/{groupName}/users".replace("{" + "groupName" + "}", - localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addUserToGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException( - "Missing the required parameter 'groupName' when calling addUserToGroup(Async)"); - } - - // verify the required parameter 'addUserRequest' is set - if (addUserRequest == null) { - throw new ApiException( - "Missing the required parameter 'addUserRequest' when calling addUserToGroup(Async)"); - } - - return addUserToGroupCall(groupName, addUserRequest, _callback); - - } - - /** - * Add User to a group Adds a user to a group - * - * @param groupName Group Name (required) - * @param addUserRequest (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddResponse addUserToGroup(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { - ApiResponse localVarResp = addUserToGroupWithHttpInfo(groupName, addUserRequest); - return localVarResp.getData(); - } - - /** - * Add User to a group Adds a user to a group - * - * @param groupName Group Name (required) - * @param addUserRequest (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addUserToGroupWithHttpInfo( - @javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { - okhttp3.Call localVarCall = addUserToGroupValidateBeforeCall(groupName, addUserRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add User to a group (asynchronously) Adds a user to a group - * - * @param groupName Group Name (required) - * @param addUserRequest (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addUserToGroupAsync(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull AddUserRequest addUserRequest, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - addUserToGroupValidateBeforeCall(groupName, addUserRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteGroup - * - * @param groupName Group Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteGroupCall(@javax.annotation.Nonnull String groupName, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{groupName}".replace("{" + "groupName" + "}", - localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException( - "Missing the required parameter 'groupName' when calling deleteGroup(Async)"); - } - - return deleteGroupCall(groupName, _callback); - - } - - /** - * Delete Group Delete Group - * - * @param groupName Group Name (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteGroup(@javax.annotation.Nonnull String groupName) - throws ApiException { - ApiResponse localVarResp = deleteGroupWithHttpInfo(groupName); - return localVarResp.getData(); - } - - /** - * Delete Group Delete Group - * - * @param groupName Group Name (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteGroupWithHttpInfo( - @javax.annotation.Nonnull String groupName) throws ApiException { - okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Group (asynchronously) Delete Group - * - * @param groupName Group Name (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteGroupAsync(@javax.annotation.Nonnull String groupName, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for deleteUsername - * - * @param username Username (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteUsernameCall(@javax.annotation.Nonnull String username, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/users/{username}".replace("{" + "username" + "}", - localVarApiClient.escapeString(username.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUsernameValidateBeforeCall(@javax.annotation.Nonnull String username, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException( - "Missing the required parameter 'username' when calling deleteUsername(Async)"); - } - - return deleteUsernameCall(username, _callback); - - } - - /** - * Delete Username Delete Username - * - * @param username Username (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteUsername(@javax.annotation.Nonnull String username) - throws ApiException { - ApiResponse localVarResp = deleteUsernameWithHttpInfo(username); - return localVarResp.getData(); - } - - /** - * Delete Username Delete Username - * - * @param username Username (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteUsernameWithHttpInfo( - @javax.annotation.Nonnull String username) throws ApiException { - okhttp3.Call localVarCall = deleteUsernameValidateBeforeCall(username, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Username (asynchronously) Delete Username - * - * @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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteUsernameAsync(@javax.annotation.Nonnull String username, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteUsernameValidateBeforeCall(username, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getGroup - * - * @param groupName Group Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getGroupCall(@javax.annotation.Nonnull String groupName, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{groupName}".replace("{" + "groupName" + "}", - localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException( - "Missing the required parameter 'groupName' when calling getGroup(Async)"); - } - - return getGroupCall(groupName, _callback); - - } - - /** - * Get a user group Returns a user group - * - * @param groupName Group Name (required) - * @return GetGroupResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetGroupResponse getGroup(@javax.annotation.Nonnull String groupName) throws ApiException { - ApiResponse localVarResp = getGroupWithHttpInfo(groupName); - return localVarResp.getData(); - } - - /** - * Get a user group Returns a user group - * - * @param groupName Group Name (required) - * @return ApiResponse<GetGroupResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getGroupWithHttpInfo( - @javax.annotation.Nonnull String groupName) throws ApiException { - okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupName, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get a user group (asynchronously) Returns a user group - * - * @param groupName Group Name (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getGroupAsync(@javax.annotation.Nonnull String groupName, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupName, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getGroups - * - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getGroupsCall(@javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupsValidateBeforeCall(@javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - return getGroupsCall(limit, next, _callback); - - } - - /** - * Get list of user group(s) Returns the list of user groups - * - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetGroupsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetGroupsResponse getGroups(@javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getGroupsWithHttpInfo(limit, next); - return localVarResp.getData(); - } - - /** - * Get list of user group(s) Returns the list of user groups - * - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetGroupsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getGroupsWithHttpInfo( - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - okhttp3.Call localVarCall = getGroupsValidateBeforeCall(limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of user group(s) (asynchronously) Returns the list of user groups - * - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getGroupsAsync(@javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getGroupsValidateBeforeCall(limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getListOfUserGroups - * - * @param username Username (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getListOfUserGroupsCall(@javax.annotation.Nonnull String username, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/users/{username}/groups".replace("{" + "username" + "}", - localVarApiClient.escapeString(username.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getListOfUserGroupsValidateBeforeCall( - @javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException( - "Missing the required parameter 'username' when calling getListOfUserGroups(Async)"); - } - - return getListOfUserGroupsCall(username, limit, next, _callback); - - } - - /** - * Returns a list of group user belongs to Returns a list of group user belongs to - * - * @param username Username (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetUserGroupsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetUserGroupsResponse getListOfUserGroups(@javax.annotation.Nonnull String username, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - ApiResponse localVarResp = - getListOfUserGroupsWithHttpInfo(username, limit, next); - return localVarResp.getData(); - } - - /** - * Returns a list of group user belongs to Returns a list of group user belongs to - * - * @param username Username (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetUserGroupsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getListOfUserGroupsWithHttpInfo( - @javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getListOfUserGroupsValidateBeforeCall(username, limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Returns a list of group user belongs to (asynchronously) Returns a list of group user belongs - * to - * - * @param username Username (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getListOfUserGroupsAsync(@javax.annotation.Nonnull String username, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getListOfUserGroupsValidateBeforeCall(username, limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getUser - * - * @param username Username (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getUserCall(@javax.annotation.Nonnull String username, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/users/{username}".replace("{" + "username" + "}", - localVarApiClient.escapeString(username.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull String username, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException( - "Missing the required parameter 'username' when calling getUser(Async)"); - } - - return getUserCall(username, _callback); - - } - - /** - * Get a user Returns a user - * - * @param username Username (required) - * @return GetUserResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetUserResponse getUser(@javax.annotation.Nonnull String username) throws ApiException { - ApiResponse localVarResp = getUserWithHttpInfo(username); - return localVarResp.getData(); - } - - /** - * Get a user Returns a user - * - * @param username Username (required) - * @return ApiResponse<GetUserResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getUserWithHttpInfo(@javax.annotation.Nonnull String username) - throws ApiException { - okhttp3.Call localVarCall = getUserValidateBeforeCall(username, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get a user (asynchronously) Returns a user - * - * @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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getUserAsync(@javax.annotation.Nonnull String username, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getUserValidateBeforeCall(username, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getUsers - * - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getUsersCall(@javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/users"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getUsersValidateBeforeCall(@javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - return getUsersCall(limit, next, _callback); - - } - - /** - * Get list of user(s) Returns the list of users - * - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetUsersResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetUsersResponse getUsers(@javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getUsersWithHttpInfo(limit, next); - return localVarResp.getData(); - } - - /** - * Get list of user(s) Returns the list of users - * - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetUsersResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getUsersWithHttpInfo(@javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getUsersValidateBeforeCall(limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of user(s) (asynchronously) Returns the list of users - * - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getUsersAsync(@javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getUsersValidateBeforeCall(limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getUsersInGroup - * - * @param groupName Group Name (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getUsersInGroupCall(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{groupName}/users".replace("{" + "groupName" + "}", - localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getUsersInGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException( - "Missing the required parameter 'groupName' when calling getUsersInGroup(Async)"); - } - - return getUsersInGroupCall(groupName, limit, next, _callback); - - } - - /** - * Get users in a group Returns the list of users in a group - * - * @param groupName Group Name (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetUsersInGroupResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetUsersInGroupResponse getUsersInGroup(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) - throws ApiException { - ApiResponse localVarResp = - getUsersInGroupWithHttpInfo(groupName, limit, next); - return localVarResp.getData(); - } - - /** - * Get users in a group Returns the list of users in a group - * - * @param groupName Group Name (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetUsersInGroupResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getUsersInGroupWithHttpInfo( - @javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, - @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getUsersInGroupValidateBeforeCall(groupName, limit, next, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get users in a group (asynchronously) Returns the list of users in a group - * - * @param groupName Group Name (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getUsersInGroupAsync(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - getUsersInGroupValidateBeforeCall(groupName, limit, next, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for removeUsernameFromGroup - * - * @param groupName Group Name (required) - * @param username Username (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call removeUsernameFromGroupCall(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{groupName}/users/{username}" - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())) - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call removeUsernameFromGroupValidateBeforeCall( - @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username, - final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException( - "Missing the required parameter 'groupName' when calling removeUsernameFromGroup(Async)"); - } - - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException( - "Missing the required parameter 'username' when calling removeUsernameFromGroup(Async)"); - } - - return removeUsernameFromGroupCall(groupName, username, _callback); - - } - - /** - * Remove Username From Group Remove Username From Group - * - * @param groupName Group Name (required) - * @param username Username (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse removeUsernameFromGroup(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull String username) throws ApiException { - ApiResponse localVarResp = - removeUsernameFromGroupWithHttpInfo(groupName, username); - return localVarResp.getData(); - } - - /** - * Remove Username From Group Remove Username From Group - * - * @param groupName Group Name (required) - * @param username Username (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse removeUsernameFromGroupWithHttpInfo( - @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username) - throws ApiException { - okhttp3.Call localVarCall = - removeUsernameFromGroupValidateBeforeCall(groupName, username, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Remove Username From Group (asynchronously) Remove Username From Group - * - * @param groupName Group Name (required) - * @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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call removeUsernameFromGroupAsync(@javax.annotation.Nonnull String groupName, - @javax.annotation.Nonnull String username, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - removeUsernameFromGroupValidateBeforeCall(groupName, username, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for setUserOperation - * - * @param username Username (required) - * @param userOperation Username Operation (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setUserOperationCall(@javax.annotation.Nonnull String username, - @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) - throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/users/{username}/{userOperation}" - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())) - .replace("{" + "userOperation" + "}", - localVarApiClient.escapeString(userOperation.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setUserOperationValidateBeforeCall(@javax.annotation.Nonnull String username, - @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException( - "Missing the required parameter 'username' when calling setUserOperation(Async)"); - } - - // verify the required parameter 'userOperation' is set - if (userOperation == null) { - throw new ApiException( - "Missing the required parameter 'userOperation' when calling setUserOperation(Async)"); - } - - return setUserOperationCall(username, userOperation, _callback); - - } - - /** - * Set User Operation Set User Operation (disable, enable, reset-password) - * - * @param username Username (required) - * @param userOperation Username Operation (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public SetResponse setUserOperation(@javax.annotation.Nonnull String username, - @javax.annotation.Nonnull String userOperation) throws ApiException { - ApiResponse localVarResp = setUserOperationWithHttpInfo(username, userOperation); - return localVarResp.getData(); - } - - /** - * Set User Operation Set User Operation (disable, enable, reset-password) - * - * @param username Username (required) - * @param userOperation Username Operation (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse setUserOperationWithHttpInfo( - @javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation) - throws ApiException { - okhttp3.Call localVarCall = setUserOperationValidateBeforeCall(username, userOperation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set User Operation (asynchronously) Set User Operation (disable, enable, reset-password) - * - * @param username Username (required) - * @param userOperation Username Operation (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call setUserOperationAsync(@javax.annotation.Nonnull String username, - @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - setUserOperationValidateBeforeCall(username, userOperation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public UserManagementApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserManagementApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addGroup + * @param addGroupRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addGroupCall(@javax.annotation.Nonnull AddGroupRequest addGroupRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addGroupRequest; + + // create path and map variables + String localVarPath = "/groups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addGroupValidateBeforeCall(@javax.annotation.Nonnull AddGroupRequest addGroupRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addGroupRequest' is set + if (addGroupRequest == null) { + throw new ApiException("Missing the required parameter 'addGroupRequest' when calling addGroup(Async)"); + } + + return addGroupCall(addGroupRequest, _callback); + + } + + /** + * Add a group + * Add a new group + * @param addGroupRequest (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddResponse addGroup(@javax.annotation.Nonnull AddGroupRequest addGroupRequest) throws ApiException { + ApiResponse localVarResp = addGroupWithHttpInfo(addGroupRequest); + return localVarResp.getData(); + } + + /** + * Add a group + * Add a new group + * @param addGroupRequest (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addGroupWithHttpInfo(@javax.annotation.Nonnull AddGroupRequest addGroupRequest) throws ApiException { + okhttp3.Call localVarCall = addGroupValidateBeforeCall(addGroupRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add a group (asynchronously) + * Add a new group + * @param addGroupRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addGroupAsync(@javax.annotation.Nonnull AddGroupRequest addGroupRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addGroupValidateBeforeCall(addGroupRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addUser + * @param addUserRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addUserCall(@javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addUserRequest; + + // create path and map variables + String localVarPath = "/users"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addUserValidateBeforeCall(@javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addUserRequest' is set + if (addUserRequest == null) { + throw new ApiException("Missing the required parameter 'addUserRequest' when calling addUser(Async)"); + } + + return addUserCall(addUserRequest, _callback); + + } + + /** + * Add User + * Adds a user + * @param addUserRequest (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddResponse addUser(@javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { + ApiResponse localVarResp = addUserWithHttpInfo(addUserRequest); + return localVarResp.getData(); + } + + /** + * Add User + * Adds a user + * @param addUserRequest (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addUserWithHttpInfo(@javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { + okhttp3.Call localVarCall = addUserValidateBeforeCall(addUserRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add User (asynchronously) + * Adds a user + * @param addUserRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addUserAsync(@javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addUserValidateBeforeCall(addUserRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addUserToGroup + * @param groupName Group Name (required) + * @param addUserRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addUserToGroupCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addUserRequest; + + // create path and map variables + String localVarPath = "/groups/{groupName}/users" + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addUserToGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling addUserToGroup(Async)"); + } + + // verify the required parameter 'addUserRequest' is set + if (addUserRequest == null) { + throw new ApiException("Missing the required parameter 'addUserRequest' when calling addUserToGroup(Async)"); + } + + return addUserToGroupCall(groupName, addUserRequest, _callback); + + } + + /** + * Add User to a group + * Adds a user to a group + * @param groupName Group Name (required) + * @param addUserRequest (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddResponse addUserToGroup(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { + ApiResponse localVarResp = addUserToGroupWithHttpInfo(groupName, addUserRequest); + return localVarResp.getData(); + } + + /** + * Add User to a group + * Adds a user to a group + * @param groupName Group Name (required) + * @param addUserRequest (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addUserToGroupWithHttpInfo(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { + okhttp3.Call localVarCall = addUserToGroupValidateBeforeCall(groupName, addUserRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add User to a group (asynchronously) + * Adds a user to a group + * @param groupName Group Name (required) + * @param addUserRequest (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addUserToGroupAsync(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addUserToGroupValidateBeforeCall(groupName, addUserRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteGroup + * @param groupName Group Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteGroupCall(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups/{groupName}" + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling deleteGroup(Async)"); + } + + return deleteGroupCall(groupName, _callback); + + } + + /** + * Delete Group + * Delete Group + * @param groupName Group Name (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteGroup(@javax.annotation.Nonnull String groupName) throws ApiException { + ApiResponse localVarResp = deleteGroupWithHttpInfo(groupName); + return localVarResp.getData(); + } + + /** + * Delete Group + * Delete Group + * @param groupName Group Name (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteGroupWithHttpInfo(@javax.annotation.Nonnull String groupName) throws ApiException { + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Group (asynchronously) + * Delete Group + * @param groupName Group Name (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteGroupAsync(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteUsername + * @param username Username (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteUsernameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users/{username}" + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUsernameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling deleteUsername(Async)"); + } + + return deleteUsernameCall(username, _callback); + + } + + /** + * Delete Username + * Delete Username + * @param username Username (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteUsername(@javax.annotation.Nonnull String username) throws ApiException { + ApiResponse localVarResp = deleteUsernameWithHttpInfo(username); + return localVarResp.getData(); + } + + /** + * Delete Username + * Delete Username + * @param username Username (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteUsernameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { + okhttp3.Call localVarCall = deleteUsernameValidateBeforeCall(username, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Username (asynchronously) + * Delete Username + * @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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteUsernameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteUsernameValidateBeforeCall(username, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getGroup + * @param groupName Group Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getGroupCall(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups/{groupName}" + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling getGroup(Async)"); + } + + return getGroupCall(groupName, _callback); + + } + + /** + * Get a user group + * Returns a user group + * @param groupName Group Name (required) + * @return GetGroupResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetGroupResponse getGroup(@javax.annotation.Nonnull String groupName) throws ApiException { + ApiResponse localVarResp = getGroupWithHttpInfo(groupName); + return localVarResp.getData(); + } + + /** + * Get a user group + * Returns a user group + * @param groupName Group Name (required) + * @return ApiResponse<GetGroupResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getGroupWithHttpInfo(@javax.annotation.Nonnull String groupName) throws ApiException { + okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get a user group (asynchronously) + * Returns a user group + * @param groupName Group Name (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getGroupAsync(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getGroups + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getGroupsCall(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupsValidateBeforeCall(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + return getGroupsCall(limit, next, _callback); + + } + + /** + * Get list of user group(s) + * Returns the list of user groups + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetGroupsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetGroupsResponse getGroups(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getGroupsWithHttpInfo(limit, next); + return localVarResp.getData(); + } + + /** + * Get list of user group(s) + * Returns the list of user groups + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetGroupsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getGroupsWithHttpInfo(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getGroupsValidateBeforeCall(limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of user group(s) (asynchronously) + * Returns the list of user groups + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getGroupsAsync(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGroupsValidateBeforeCall(limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getListOfUserGroups + * @param username Username (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getListOfUserGroupsCall(@javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users/{username}/groups" + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getListOfUserGroupsValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling getListOfUserGroups(Async)"); + } + + return getListOfUserGroupsCall(username, limit, next, _callback); + + } + + /** + * Returns a list of group user belongs to + * Returns a list of group user belongs to + * @param username Username (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetUserGroupsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetUserGroupsResponse getListOfUserGroups(@javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getListOfUserGroupsWithHttpInfo(username, limit, next); + return localVarResp.getData(); + } + + /** + * Returns a list of group user belongs to + * Returns a list of group user belongs to + * @param username Username (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetUserGroupsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getListOfUserGroupsWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getListOfUserGroupsValidateBeforeCall(username, limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Returns a list of group user belongs to (asynchronously) + * Returns a list of group user belongs to + * @param username Username (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getListOfUserGroupsAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getListOfUserGroupsValidateBeforeCall(username, limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUser + * @param username Username (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users/{username}" + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling getUser(Async)"); + } + + return getUserCall(username, _callback); + + } + + /** + * Get a user + * Returns a user + * @param username Username (required) + * @return GetUserResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetUserResponse getUser(@javax.annotation.Nonnull String username) throws ApiException { + ApiResponse localVarResp = getUserWithHttpInfo(username); + return localVarResp.getData(); + } + + /** + * Get a user + * Returns a user + * @param username Username (required) + * @return ApiResponse<GetUserResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { + okhttp3.Call localVarCall = getUserValidateBeforeCall(username, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get a user (asynchronously) + * Returns a user + * @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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUserValidateBeforeCall(username, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUsers + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getUsersCall(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUsersValidateBeforeCall(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + return getUsersCall(limit, next, _callback); + + } + + /** + * Get list of user(s) + * Returns the list of users + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetUsersResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetUsersResponse getUsers(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getUsersWithHttpInfo(limit, next); + return localVarResp.getData(); + } + + /** + * Get list of user(s) + * Returns the list of users + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetUsersResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getUsersWithHttpInfo(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getUsersValidateBeforeCall(limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of user(s) (asynchronously) + * Returns the list of users + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getUsersAsync(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUsersValidateBeforeCall(limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUsersInGroup + * @param groupName Group Name (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getUsersInGroupCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups/{groupName}/users" + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUsersInGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling getUsersInGroup(Async)"); + } + + return getUsersInGroupCall(groupName, limit, next, _callback); + + } + + /** + * Get users in a group + * Returns the list of users in a group + * @param groupName Group Name (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetUsersInGroupResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetUsersInGroupResponse getUsersInGroup(@javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getUsersInGroupWithHttpInfo(groupName, limit, next); + return localVarResp.getData(); + } + + /** + * Get users in a group + * Returns the list of users in a group + * @param groupName Group Name (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetUsersInGroupResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getUsersInGroupWithHttpInfo(@javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getUsersInGroupValidateBeforeCall(groupName, limit, next, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get users in a group (asynchronously) + * Returns the list of users in a group + * @param groupName Group Name (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getUsersInGroupAsync(@javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUsersInGroupValidateBeforeCall(groupName, limit, next, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for removeUsernameFromGroup + * @param groupName Group Name (required) + * @param username Username (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call removeUsernameFromGroupCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups/{groupName}/users/{username}" + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())) + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeUsernameFromGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling removeUsernameFromGroup(Async)"); + } + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling removeUsernameFromGroup(Async)"); + } + + return removeUsernameFromGroupCall(groupName, username, _callback); + + } + + /** + * Remove Username From Group + * Remove Username From Group + * @param groupName Group Name (required) + * @param username Username (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse removeUsernameFromGroup(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username) throws ApiException { + ApiResponse localVarResp = removeUsernameFromGroupWithHttpInfo(groupName, username); + return localVarResp.getData(); + } + + /** + * Remove Username From Group + * Remove Username From Group + * @param groupName Group Name (required) + * @param username Username (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse removeUsernameFromGroupWithHttpInfo(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username) throws ApiException { + okhttp3.Call localVarCall = removeUsernameFromGroupValidateBeforeCall(groupName, username, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Remove Username From Group (asynchronously) + * Remove Username From Group + * @param groupName Group Name (required) + * @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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call removeUsernameFromGroupAsync(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeUsernameFromGroupValidateBeforeCall(groupName, username, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for setUserOperation + * @param username Username (required) + * @param userOperation Username Operation (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setUserOperationCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users/{username}/{userOperation}" + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())) + .replace("{" + "userOperation" + "}", localVarApiClient.escapeString(userOperation.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setUserOperationValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling setUserOperation(Async)"); + } + + // verify the required parameter 'userOperation' is set + if (userOperation == null) { + throw new ApiException("Missing the required parameter 'userOperation' when calling setUserOperation(Async)"); + } + + return setUserOperationCall(username, userOperation, _callback); + + } + + /** + * Set User Operation + * Set User Operation (disable, enable, reset-password) + * @param username Username (required) + * @param userOperation Username Operation (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public SetResponse setUserOperation(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation) throws ApiException { + ApiResponse localVarResp = setUserOperationWithHttpInfo(username, userOperation); + return localVarResp.getData(); + } + + /** + * Set User Operation + * Set User Operation (disable, enable, reset-password) + * @param username Username (required) + * @param userOperation Username Operation (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse setUserOperationWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation) throws ApiException { + okhttp3.Call localVarCall = setUserOperationValidateBeforeCall(username, userOperation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set User Operation (asynchronously) + * Set User Operation (disable, enable, reset-password) + * @param username Username (required) + * @param userOperation Username Operation (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call setUserOperationAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setUserOperationValidateBeforeCall(username, userOperation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/WebhooksApi.java b/src/main/java/com/formkiq/client/api/WebhooksApi.java index a1e570fd7..bcc3870e6 100644 --- a/src/main/java/com/formkiq/client/api/WebhooksApi.java +++ b/src/main/java/com/formkiq/client/api/WebhooksApi.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -51,1637 +44,1151 @@ import java.util.Map; public class WebhooksApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public WebhooksApi() { - this(Configuration.getDefaultApiClient()); - } - - public WebhooksApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addWebhook - * - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addWebhookCall(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addWebhookRequest; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; - // create path and map variables - String localVarPath = "/webhooks"; + public WebhooksApi() { + this(Configuration.getDefaultApiClient()); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + public WebhooksApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + public ApiClient getApiClient() { + return localVarApiClient; } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + public int getHostIndex() { + return localHostIndex; } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addWebhookValidateBeforeCall( - @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addWebhookRequest' is set - if (addWebhookRequest == null) { - throw new ApiException( - "Missing the required parameter 'addWebhookRequest' when calling addWebhook(Async)"); + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; } - return addWebhookCall(addWebhookRequest, siteId, _callback); - - } - - /** - * Add webhook Create a new webhook; once created, a webhook's id can be provided to an - * external service, allowing data to be sent, received, and processed via that webhook - * - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @return AddWebhookResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public AddWebhookResponse addWebhook( - @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - addWebhookWithHttpInfo(addWebhookRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add webhook Create a new webhook; once created, a webhook's id can be provided to an - * external service, allowing data to be sent, received, and processed via that webhook - * - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddWebhookResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addWebhookWithHttpInfo( - @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addWebhookValidateBeforeCall(addWebhookRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add webhook (asynchronously) Create a new webhook; once created, a webhook's id can be - * provided to an external service, allowing data to be sent, received, and processed via that - * webhook - * - * @param addWebhookRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addWebhookAsync(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = addWebhookValidateBeforeCall(addWebhookRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addWebhookDocument - * - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addWebhookDocumentCall(@javax.annotation.Nonnull String webhooksPlus, - @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + public String getCustomBaseUrl() { + return localCustomBaseUrl; } - Object localVarPostBody = body; + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } - // create path and map variables - String localVarPath = "/private/webhooks/{webhooks+}".replace("{" + "webhooks+" + "}", - localVarApiClient.escapeString(webhooksPlus.toString())); + /** + * Build call for addWebhook + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addWebhookCall(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addWebhookRequest; + + // create path and map variables + String localVarPath = "/webhooks"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + @SuppressWarnings("rawtypes") + private okhttp3.Call addWebhookValidateBeforeCall(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addWebhookRequest' is set + if (addWebhookRequest == null) { + throw new ApiException("Missing the required parameter 'addWebhookRequest' when calling addWebhook(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return addWebhookCall(addWebhookRequest, siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add webhook + * Create a new webhook; once created, a webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @return AddWebhookResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public AddWebhookResponse addWebhook(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addWebhookWithHttpInfo(addWebhookRequest, siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addWebhookDocumentValidateBeforeCall( - @javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhooksPlus' is set - if (webhooksPlus == null) { - throw new ApiException( - "Missing the required parameter 'webhooksPlus' when calling addWebhookDocument(Async)"); + /** + * Add webhook + * Create a new webhook; once created, a webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddWebhookResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addWebhookWithHttpInfo(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addWebhookValidateBeforeCall(addWebhookRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling addWebhookDocument(Async)"); + /** + * Add webhook (asynchronously) + * Create a new webhook; once created, a webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook + * @param addWebhookRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addWebhookAsync(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addWebhookValidateBeforeCall(addWebhookRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return addWebhookDocumentCall(webhooksPlus, body, siteId, _callback); - - } - - /** - * Add webhook Receive an incoming private webhook and creates a document based on the - * webhook's body; requires authentication - * - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @return DocumentId - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DocumentId addWebhookDocument(@javax.annotation.Nonnull String webhooksPlus, - @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) - throws ApiException { - ApiResponse localVarResp = - addWebhookDocumentWithHttpInfo(webhooksPlus, body, siteId); - return localVarResp.getData(); - } - - /** - * Add webhook Receive an incoming private webhook and creates a document based on the - * webhook's body; requires authentication - * - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DocumentId> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addWebhookDocumentWithHttpInfo( - @javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - addWebhookDocumentValidateBeforeCall(webhooksPlus, body, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add webhook (asynchronously) Receive an incoming private webhook and creates a document based - * on the webhook's body; requires authentication - * - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addWebhookDocumentAsync(@javax.annotation.Nonnull String webhooksPlus, - @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - addWebhookDocumentValidateBeforeCall(webhooksPlus, body, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for addWebhookTag - * - * @param webhookId Web Hook Param (required) - * @param addWebhookTagRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addWebhookTagCall(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addWebhookDocument + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addWebhookDocumentCall(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/private/webhooks/{webhooks+}" + .replace("{" + "webhooks+" + "}", localVarApiClient.escapeString(webhooksPlus.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = addWebhookTagRequest; - - // create path and map variables - String localVarPath = "/webhooks/{webhookId}/tags".replace("{" + "webhookId" + "}", - localVarApiClient.escapeString(webhookId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call addWebhookDocumentValidateBeforeCall(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhooksPlus' is set + if (webhooksPlus == null) { + throw new ApiException("Missing the required parameter 'webhooksPlus' when calling addWebhookDocument(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling addWebhookDocument(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return addWebhookDocumentCall(webhooksPlus, body, siteId, _callback); - final String[] localVarAccepts = {}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add webhook + * Receive an incoming private webhook and creates a document based on the webhook's body; requires authentication + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @return DocumentId + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DocumentId addWebhookDocument(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addWebhookDocumentWithHttpInfo(webhooksPlus, body, siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addWebhookTagValidateBeforeCall(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException( - "Missing the required parameter 'webhookId' when calling addWebhookTag(Async)"); + /** + * Add webhook + * Receive an incoming private webhook and creates a document based on the webhook's body; requires authentication + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DocumentId> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addWebhookDocumentWithHttpInfo(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addWebhookDocumentValidateBeforeCall(webhooksPlus, body, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'addWebhookTagRequest' is set - if (addWebhookTagRequest == null) { - throw new ApiException( - "Missing the required parameter 'addWebhookTagRequest' when calling addWebhookTag(Async)"); + /** + * Add webhook (asynchronously) + * Receive an incoming private webhook and creates a document based on the webhook's body; requires authentication + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addWebhookDocumentAsync(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addWebhookDocumentValidateBeforeCall(webhooksPlus, body, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return addWebhookTagCall(webhookId, addWebhookTagRequest, siteId, _callback); - - } - - /** - * Add webhook tag Add a tag to a webhook - * - * @param webhookId Web Hook Param (required) - * @param addWebhookTagRequest (required) - * @param siteId Site Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public void addWebhookTag(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - addWebhookTagWithHttpInfo(webhookId, addWebhookTagRequest, siteId); - } - - /** - * Add webhook tag Add a tag to a webhook - * - * @param webhookId Web Hook Param (required) - * @param addWebhookTagRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse addWebhookTagWithHttpInfo(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - addWebhookTagValidateBeforeCall(webhookId, addWebhookTagRequest, siteId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Add webhook tag (asynchronously) Add a tag to a webhook - * - * @param webhookId Web Hook Param (required) - * @param addWebhookTagRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call addWebhookTagAsync(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - addWebhookTagValidateBeforeCall(webhookId, addWebhookTagRequest, siteId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - - /** - * Build call for deleteWebhook - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteWebhookCall(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for addWebhookTag + * @param webhookId Web Hook Param (required) + * @param addWebhookTagRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addWebhookTagCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addWebhookTagRequest; + + // create path and map variables + String localVarPath = "/webhooks/{webhookId}/tags" + .replace("{" + "webhookId" + "}", localVarApiClient.escapeString(webhookId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call addWebhookTagValidateBeforeCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException("Missing the required parameter 'webhookId' when calling addWebhookTag(Async)"); + } - // create path and map variables - String localVarPath = "/webhooks/{webhookId}".replace("{" + "webhookId" + "}", - localVarApiClient.escapeString(webhookId.toString())); + // verify the required parameter 'addWebhookTagRequest' is set + if (addWebhookTagRequest == null) { + throw new ApiException("Missing the required parameter 'addWebhookTagRequest' when calling addWebhookTag(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return addWebhookTagCall(webhookId, addWebhookTagRequest, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Add webhook tag + * Add a tag to a webhook + * @param webhookId Web Hook Param (required) + * @param addWebhookTagRequest (required) + * @param siteId Site Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public void addWebhookTag(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, @javax.annotation.Nullable String siteId) throws ApiException { + addWebhookTagWithHttpInfo(webhookId, addWebhookTagRequest, siteId); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Add webhook tag + * Add a tag to a webhook + * @param webhookId Web Hook Param (required) + * @param addWebhookTagRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse addWebhookTagWithHttpInfo(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addWebhookTagValidateBeforeCall(webhookId, addWebhookTagRequest, siteId, null); + return localVarApiClient.execute(localVarCall); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException( - "Missing the required parameter 'webhookId' when calling deleteWebhook(Async)"); + /** + * Add webhook tag (asynchronously) + * Add a tag to a webhook + * @param webhookId Web Hook Param (required) + * @param addWebhookTagRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call addWebhookTagAsync(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addWebhookTagValidateBeforeCall(webhookId, addWebhookTagRequest, siteId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; } - - return deleteWebhookCall(webhookId, siteId, _callback); - - } - - /** - * Delete webhook Delete a webhook; this will disable sending, receiving, or processing of data - * from external services to this webhook - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public DeleteResponse deleteWebhook(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteWebhookWithHttpInfo(webhookId, siteId); - return localVarResp.getData(); - } - - /** - * Delete webhook Delete a webhook; this will disable sending, receiving, or processing of data - * from external services to this webhook - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse deleteWebhookWithHttpInfo( - @javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete webhook (asynchronously) Delete a webhook; this will disable sending, receiving, or - * processing of data from external services to this webhook - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call deleteWebhookAsync(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getWebhook - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWebhookCall(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for deleteWebhook + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteWebhookCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/webhooks/{webhookId}" + .replace("{" + "webhookId" + "}", localVarApiClient.escapeString(webhookId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException("Missing the required parameter 'webhookId' when calling deleteWebhook(Async)"); + } - // create path and map variables - String localVarPath = "/webhooks/{webhookId}".replace("{" + "webhookId" + "}", - localVarApiClient.escapeString(webhookId.toString())); + return deleteWebhookCall(webhookId, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Delete webhook + * Delete a webhook; this will disable sending, receiving, or processing of data from external services to this webhook + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public DeleteResponse deleteWebhook(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteWebhookWithHttpInfo(webhookId, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Delete webhook + * Delete a webhook; this will disable sending, receiving, or processing of data from external services to this webhook + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse deleteWebhookWithHttpInfo(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException( - "Missing the required parameter 'webhookId' when calling getWebhook(Async)"); + /** + * Delete webhook (asynchronously) + * Delete a webhook; this will disable sending, receiving, or processing of data from external services to this webhook + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call deleteWebhookAsync(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return getWebhookCall(webhookId, siteId, _callback); - - } - - /** - * Get webhook Return a webhook's details, i.e., its metadata - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return GetWebhookResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetWebhookResponse getWebhook(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getWebhookWithHttpInfo(webhookId, siteId); - return localVarResp.getData(); - } - - /** - * Get webhook Return a webhook's details, i.e., its metadata - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetWebhookResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getWebhookWithHttpInfo( - @javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get webhook (asynchronously) Return a webhook's details, i.e., its metadata - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWebhookAsync(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getWebhookTags - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWebhookTagsCall(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getWebhook + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWebhookCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/webhooks/{webhookId}" + .replace("{" + "webhookId" + "}", localVarApiClient.escapeString(webhookId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/webhooks/{webhookId}/tags".replace("{" + "webhookId" + "}", - localVarApiClient.escapeString(webhookId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call getWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException("Missing the required parameter 'webhookId' when calling getWebhook(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + return getWebhookCall(webhookId, siteId, _callback); - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + /** + * Get webhook + * Return a webhook's details, i.e., its metadata + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return GetWebhookResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetWebhookResponse getWebhook(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getWebhookWithHttpInfo(webhookId, siteId); + return localVarResp.getData(); } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get webhook + * Return a webhook's details, i.e., its metadata + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetWebhookResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getWebhookWithHttpInfo(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhookTagsValidateBeforeCall(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException( - "Missing the required parameter 'webhookId' when calling getWebhookTags(Async)"); + /** + * Get webhook (asynchronously) + * Return a webhook's details, i.e., its metadata + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWebhookAsync(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return getWebhookTagsCall(webhookId, siteId, _callback); - - } - - /** - * Get webhook tags Get a webhook's tags - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return GetWebhookTagsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetWebhookTagsResponse getWebhookTags(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - getWebhookTagsWithHttpInfo(webhookId, siteId); - return localVarResp.getData(); - } - - /** - * Get webhook tags Get a webhook's tags - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetWebhookTagsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getWebhookTagsWithHttpInfo( - @javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) - throws ApiException { - okhttp3.Call localVarCall = getWebhookTagsValidateBeforeCall(webhookId, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get webhook tags (asynchronously) Get a webhook's tags - * - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWebhookTagsAsync(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = getWebhookTagsValidateBeforeCall(webhookId, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for getWebhooks - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWebhooksCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Build call for getWebhookTags + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWebhookTagsCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/webhooks/{webhookId}/tags" + .replace("{" + "webhookId" + "}", localVarApiClient.escapeString(webhookId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - Object localVarPostBody = null; + @SuppressWarnings("rawtypes") + private okhttp3.Call getWebhookTagsValidateBeforeCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException("Missing the required parameter 'webhookId' when calling getWebhookTags(Async)"); + } - // create path and map variables - String localVarPath = "/webhooks"; + return getWebhookTagsCall(webhookId, siteId, _callback); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + /** + * Get webhook tags + * Get a webhook's tags + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return GetWebhookTagsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetWebhookTagsResponse getWebhookTags(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getWebhookTagsWithHttpInfo(webhookId, siteId); + return localVarResp.getData(); } - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + /** + * Get webhook tags + * Get a webhook's tags + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetWebhookTagsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getWebhookTagsWithHttpInfo(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getWebhookTagsValidateBeforeCall(webhookId, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Get webhook tags (asynchronously) + * Get a webhook's tags + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWebhookTagsAsync(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWebhookTagsValidateBeforeCall(webhookId, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getWebhooks + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWebhooksCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/webhooks"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); + @SuppressWarnings("rawtypes") + private okhttp3.Call getWebhooksValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + return getWebhooksCall(siteId, next, limit, _callback); + } - final String[] localVarContentTypes = {}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Get webhooks + * Return a list of webhooks; each webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetWebhooksResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public GetWebhooksResponse getWebhooks(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = getWebhooksWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhooksValidateBeforeCall(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - return getWebhooksCall(siteId, next, limit, _callback); - - } - - /** - * Get webhooks Return a list of webhooks; each webhook's id can be provided to an external - * service, allowing data to be sent, received, and processed via that webhook - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetWebhooksResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public GetWebhooksResponse getWebhooks(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) - throws ApiException { - ApiResponse localVarResp = getWebhooksWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get webhooks Return a list of webhooks; each webhook's id can be provided to an external - * service, allowing data to be sent, received, and processed via that webhook - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetWebhooksResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse getWebhooksWithHttpInfo( - @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get webhooks (asynchronously) Return a list of webhooks; each webhook's id can be provided - * to an external service, allowing data to be sent, received, and processed via that webhook - * - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call getWebhooksAsync(@javax.annotation.Nullable String siteId, - @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - /** - * Build call for updateWebhook - * - * @param webhookId Web Hook Param (required) - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateWebhookCall(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] {}; - - // Determine Base Path to Use - if (localCustomBaseUrl != null) { - basePath = localCustomBaseUrl; - } else if (localBasePaths.length > 0) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; + /** + * Get webhooks + * Return a list of webhooks; each webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetWebhooksResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse getWebhooksWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - Object localVarPostBody = addWebhookRequest; + /** + * Get webhooks (asynchronously) + * Return a list of webhooks; each webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call getWebhooksAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateWebhook + * @param webhookId Web Hook Param (required) + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateWebhookCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addWebhookRequest; + + // create path and map variables + String localVarPath = "/webhooks/{webhookId}" + .replace("{" + "webhookId" + "}", localVarApiClient.escapeString(webhookId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "AWS4Auth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - // create path and map variables - String localVarPath = "/webhooks/{webhookId}".replace("{" + "webhookId" + "}", - localVarApiClient.escapeString(webhookId.toString())); + @SuppressWarnings("rawtypes") + private okhttp3.Call updateWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException("Missing the required parameter 'webhookId' when calling updateWebhook(Async)"); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); + // verify the required parameter 'addWebhookRequest' is set + if (addWebhookRequest == null) { + throw new ApiException("Missing the required parameter 'addWebhookRequest' when calling updateWebhook(Async)"); + } - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } + return updateWebhookCall(webhookId, addWebhookRequest, siteId, _callback); - final String[] localVarAccepts = {"application/json"}; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); } - final String[] localVarContentTypes = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); + /** + * Update webhook + * Updates a webhook's details, i.e., its metadata + * @param webhookId Web Hook Param (required) + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public UpdateResponse updateWebhook(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = updateWebhookWithHttpInfo(webhookId, addWebhookRequest, siteId); + return localVarResp.getData(); } - String[] localVarAuthNames = new String[] {"AWS4Auth"}; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, - localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, - localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException( - "Missing the required parameter 'webhookId' when calling updateWebhook(Async)"); + /** + * Update webhook + * Updates a webhook's details, i.e., its metadata + * @param webhookId Web Hook Param (required) + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public ApiResponse updateWebhookWithHttpInfo(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateWebhookValidateBeforeCall(webhookId, addWebhookRequest, siteId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } - // verify the required parameter 'addWebhookRequest' is set - if (addWebhookRequest == null) { - throw new ApiException( - "Missing the required parameter 'addWebhookRequest' when calling updateWebhook(Async)"); + /** + * Update webhook (asynchronously) + * Updates a webhook's details, i.e., its metadata + * @param webhookId Web Hook Param (required) + * @param addWebhookRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + + + + +
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
+ */ + public okhttp3.Call updateWebhookAsync(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateWebhookValidateBeforeCall(webhookId, addWebhookRequest, siteId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } - - return updateWebhookCall(webhookId, addWebhookRequest, siteId, _callback); - - } - - /** - * Update webhook Updates a webhook's details, i.e., its metadata - * - * @param webhookId Web Hook Param (required) - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public UpdateResponse updateWebhook(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = - updateWebhookWithHttpInfo(webhookId, addWebhookRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update webhook Updates a webhook's details, i.e., its metadata - * - * @param webhookId Web Hook Param (required) - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public ApiResponse updateWebhookWithHttpInfo( - @javax.annotation.Nonnull String webhookId, - @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, - @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = - updateWebhookValidateBeforeCall(webhookId, addWebhookRequest, siteId, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update webhook (asynchronously) Updates a webhook's details, i.e., its metadata - * - * @param webhookId Web Hook Param (required) - * @param addWebhookRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - * - * - * - * - * - * - * - * - * - * - * - * - *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
- * * Access-Control-Allow-Methods -
- * * Access-Control-Allow-Headers -
- *
- */ - public okhttp3.Call updateWebhookAsync(@javax.annotation.Nonnull String webhookId, - @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, - @javax.annotation.Nullable String siteId, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - updateWebhookValidateBeforeCall(webhookId, addWebhookRequest, siteId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } } diff --git a/src/main/java/com/formkiq/client/invoker/ApiCallback.java b/src/main/java/com/formkiq/client/invoker/ApiCallback.java index 07ed0410a..550b4fc72 100644 --- a/src/main/java/com/formkiq/client/invoker/ApiCallback.java +++ b/src/main/java/com/formkiq/client/invoker/ApiCallback.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -31,39 +24,39 @@ * @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 download processing. - * - * @param bytesRead bytes Read - * @param contentLength content length of the response - * @param done Read end - */ - void onDownloadProgress(long bytesRead, long contentLength, boolean done); + /** + * 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 download processing. + * + * @param bytesRead bytes Read + * @param contentLength content length of the response + * @param done Read end + */ + void onDownloadProgress(long bytesRead, long contentLength, boolean done); } diff --git a/src/main/java/com/formkiq/client/invoker/ApiClient.java b/src/main/java/com/formkiq/client/invoker/ApiClient.java index 19b435611..6cd4125bd 100644 --- a/src/main/java/com/formkiq/client/invoker/ApiClient.java +++ b/src/main/java/com/formkiq/client/invoker/ApiClient.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -65,1571 +58,1549 @@ import com.formkiq.client.invoker.auth.AWS4Auth; /** - *

- * ApiClient class. - *

+ *

ApiClient class.

*/ public class ApiClient { - protected String basePath = "http://localhost"; - protected List servers = - new ArrayList(Arrays.asList(new ServerConfiguration("http://localhost", - "Local development server", new HashMap()))); - protected Integer serverIndex = 0; - protected Map serverVariables = null; - protected boolean debugging = false; - protected Map defaultHeaderMap = new HashMap(); - protected Map defaultCookieMap = new HashMap(); - protected String tempFolderPath = null; - - protected Map authentications; - - protected DateFormat dateFormat; - protected DateFormat datetimeFormat; - protected boolean lenientDatetimeFormat; - protected int dateLength; - - protected InputStream sslCaCert; - protected boolean verifyingSsl; - protected KeyManager[] keyManagers; - - protected OkHttpClient httpClient; - protected JSON json; - - protected HttpLoggingInterceptor loggingInterceptor; - - /** - * Basic constructor for ApiClient - */ - public ApiClient() { - init(); - initHttpClient(); - - // Setup authentications (key: authentication name, value: authentication). - authentications.put("AWS4Auth", new AWS4Auth()); - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - /** - * Basic constructor with custom OkHttpClient - * - * @param client a {@link okhttp3.OkHttpClient} object - */ - public ApiClient(OkHttpClient client) { - init(); - - httpClient = client; - - // Setup authentications (key: authentication name, value: authentication). - authentications.put("AWS4Auth", new AWS4Auth()); - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - protected void initHttpClient() { - initHttpClient(Collections.emptyList()); - } - - protected void initHttpClient(List interceptors) { - OkHttpClient.Builder builder = new OkHttpClient.Builder(); - builder.addNetworkInterceptor(getProgressInterceptor()); - for (Interceptor interceptor : interceptors) { - builder.addInterceptor(interceptor); - } - - httpClient = builder.build(); - } - - protected void init() { - verifyingSsl = true; - - json = new JSON(); - - // Set default User-Agent. - setUserAgent("OpenAPI-Generator/1.18.0/java"); - - authentications = new HashMap(); - } - - /** - * Get base path - * - * @return Base path - */ - public String getBasePath() { - return basePath; - } - - /** - * Set base path - * - * @param basePath Base path of the URL (e.g http://localhost) - * @return An instance of ApiClient - */ - public ApiClient setBasePath(String basePath) { - this.basePath = basePath; - this.serverIndex = null; - return this; - } - - public List getServers() { - return servers; - } - - public ApiClient setServers(List servers) { - this.servers = servers; - return this; - } - - public Integer getServerIndex() { - return serverIndex; - } - - public ApiClient setServerIndex(Integer serverIndex) { - this.serverIndex = serverIndex; - return this; - } - - public Map getServerVariables() { - return serverVariables; - } - - public ApiClient setServerVariables(Map serverVariables) { - this.serverVariables = serverVariables; - return this; - } - - /** - * Get HTTP client - * - * @return An instance of OkHttpClient - */ - public OkHttpClient getHttpClient() { - return httpClient; - } - - /** - * Set HTTP client, which must never be null. - * - * @param newHttpClient An instance of OkHttpClient - * @return ApiClient - * @throws java.lang.NullPointerException when newHttpClient is null - */ - public ApiClient setHttpClient(OkHttpClient newHttpClient) { - this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); - 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; - } - - /** - *

- * Getter for the field keyManagers. - *

- * - * @return an array of {@link javax.net.ssl.KeyManager} objects - */ - 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; - } - - /** - *

- * Getter for the field dateFormat. - *

- * - * @return a {@link java.text.DateFormat} object - */ - public DateFormat getDateFormat() { - return dateFormat; - } - - /** - *

- * Setter for the field dateFormat. - *

- * - * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.formkiq.client.invoker.ApiClient} object - */ - public ApiClient setDateFormat(DateFormat dateFormat) { - JSON.setDateFormat(dateFormat); - return this; - } - - /** - *

- * Set SqlDateFormat. - *

- * - * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.formkiq.client.invoker.ApiClient} object - */ - public ApiClient setSqlDateFormat(DateFormat dateFormat) { - JSON.setSqlDateFormat(dateFormat); - return this; - } - - /** - *

- * Set OffsetDateTimeFormat. - *

- * - * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.formkiq.client.invoker.ApiClient} object - */ - public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - JSON.setOffsetDateTimeFormat(dateFormat); - return this; - } - - /** - *

- * Set LocalDateFormat. - *

- * - * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.formkiq.client.invoker.ApiClient} object - */ - public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { - JSON.setLocalDateFormat(dateFormat); - return this; - } - - /** - *

- * Set LenientOnJson. - *

- * - * @param lenientOnJson a boolean - * @return a {@link com.formkiq.client.invoker.ApiClient} object - */ - public ApiClient setLenientOnJson(boolean lenientOnJson) { - 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) { - throw new RuntimeException("No OAuth2 authentication configured!"); - } - - /** - * Helper method to set credentials for AWSV4 Signature - * - * @param accessKey Access Key - * @param secretKey Secret Key - * @param region Region - * @param service Service to access to - */ - public void setAWS4Configuration(String accessKey, String secretKey, String region, - String service) { - for (Authentication auth : authentications.values()) { - if (auth instanceof AWS4Auth) { - ((AWS4Auth) auth).setCredentials(accessKey, secretKey); - ((AWS4Auth) auth).setRegion(region); - ((AWS4Auth) auth).setService(service); - return; - } - } - throw new RuntimeException("No AWS4 authentication configured!"); - } - - /** - * Helper method to set credentials for AWSV4 Signature - * - * @param accessKey Access Key - * @param secretKey Secret Key - * @param sessionToken Session Token - * @param region Region - * @param service Service to access to - */ - public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, - String region, String service) { - for (Authentication auth : authentications.values()) { - if (auth instanceof AWS4Auth) { - ((AWS4Auth) auth).setCredentials(accessKey, secretKey, sessionToken); - ((AWS4Auth) auth).setRegion(region); - ((AWS4Auth) auth).setService(service); - return; - } - } - throw new RuntimeException("No AWS4 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; - } - - /** - * Add a default cookie. - * - * @param key The cookie's key - * @param value The cookie's value - * @return ApiClient - */ - public ApiClient addDefaultCookie(String key, String value) { - defaultCookieMap.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 = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); - } else { - final OkHttpClient.Builder builder = httpClient.newBuilder(); - builder.interceptors().remove(loggingInterceptor); + protected String basePath = "http://localhost"; + protected List servers = new ArrayList(Arrays.asList( + new ServerConfiguration( + "http://localhost", + "Local development server", + new HashMap() + ) + )); + protected Integer serverIndex = 0; + protected Map serverVariables = null; + protected boolean debugging = false; + protected Map defaultHeaderMap = new HashMap(); + protected Map defaultCookieMap = new HashMap(); + protected String tempFolderPath = null; + + protected Map authentications; + + protected DateFormat dateFormat; + protected DateFormat datetimeFormat; + protected boolean lenientDatetimeFormat; + protected int dateLength; + + protected InputStream sslCaCert; + protected boolean verifyingSsl; + protected KeyManager[] keyManagers; + + protected OkHttpClient httpClient; + protected JSON json; + + protected HttpLoggingInterceptor loggingInterceptor; + + /** + * Basic constructor for ApiClient + */ + public ApiClient() { + init(); + initHttpClient(); + + // Setup authentications (key: authentication name, value: authentication). + authentications.put("AWS4Auth", new AWS4Auth()); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + /** + * Basic constructor with custom OkHttpClient + * + * @param client a {@link okhttp3.OkHttpClient} object + */ + public ApiClient(OkHttpClient client) { + init(); + + httpClient = client; + + // Setup authentications (key: authentication name, value: authentication). + authentications.put("AWS4Auth", new AWS4Auth()); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + protected void initHttpClient() { + initHttpClient(Collections.emptyList()); + } + + protected void initHttpClient(List interceptors) { + OkHttpClient.Builder builder = new OkHttpClient.Builder(); + builder.addNetworkInterceptor(getProgressInterceptor()); + for (Interceptor interceptor: interceptors) { + builder.addInterceptor(interceptor); + } + httpClient = builder.build(); - 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 temporary 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.connectTimeoutMillis(); - } - - /** - * Sets the connect timeout (in milliseconds). A value of 0 means no timeout, otherwise values - * must be between 1 and {@link java.lang.Integer#MAX_VALUE}. - * - * @param connectionTimeout connection timeout in milliseconds - * @return Api client - */ - public ApiClient setConnectTimeout(int connectionTimeout) { - httpClient = - httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Get read timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getReadTimeout() { - return httpClient.readTimeoutMillis(); - } - - /** - * Sets the read timeout (in milliseconds). A value of 0 means no timeout, otherwise values must - * be between 1 and {@link java.lang.Integer#MAX_VALUE}. - * - * @param readTimeout read timeout in milliseconds - * @return Api client - */ - public ApiClient setReadTimeout(int readTimeout) { - httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Get write timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getWriteTimeout() { - return httpClient.writeTimeoutMillis(); - } - - /** - * Sets the write timeout (in milliseconds). A value of 0 means no timeout, otherwise values must - * be between 1 and {@link java.lang.Integer#MAX_VALUE}. - * - * @param writeTimeout connection timeout in milliseconds - * @return Api client - */ - public ApiClient setWriteTimeout(int writeTimeout) { - httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build(); - 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(","); + } + + protected void init() { + verifyingSsl = true; + + json = new JSON(); + + // Set default User-Agent. + setUserAgent("OpenAPI-Generator/1.18.1/java"); + + authentications = new HashMap(); + } + + /** + * Get base path + * + * @return Base path + */ + public String getBasePath() { + return basePath; + } + + /** + * Set base path + * + * @param basePath Base path of the URL (e.g http://localhost) + * @return An instance of ApiClient + */ + public ApiClient setBasePath(String basePath) { + this.basePath = basePath; + this.serverIndex = null; + return this; + } + + public List getServers() { + return servers; + } + + public ApiClient setServers(List servers) { + this.servers = servers; + return this; + } + + public Integer getServerIndex() { + return serverIndex; + } + + public ApiClient setServerIndex(Integer serverIndex) { + this.serverIndex = serverIndex; + return this; + } + + public Map getServerVariables() { + return serverVariables; + } + + public ApiClient setServerVariables(Map serverVariables) { + this.serverVariables = serverVariables; + return this; + } + + /** + * Get HTTP client + * + * @return An instance of OkHttpClient + */ + public OkHttpClient getHttpClient() { + return httpClient; + } + + /** + * Set HTTP client, which must never be null. + * + * @param newHttpClient An instance of OkHttpClient + * @return ApiClient + * @throws java.lang.NullPointerException when newHttpClient is null + */ + public ApiClient setHttpClient(OkHttpClient newHttpClient) { + this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); + 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; + } + + /** + *

Getter for the field keyManagers.

+ * + * @return an array of {@link javax.net.ssl.KeyManager} objects + */ + 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; + } + + /** + *

Getter for the field dateFormat.

+ * + * @return a {@link java.text.DateFormat} object + */ + public DateFormat getDateFormat() { + return dateFormat; + } + + /** + *

Setter for the field dateFormat.

+ * + * @param dateFormat a {@link java.text.DateFormat} object + * @return a {@link com.formkiq.client.invoker.ApiClient} object + */ + public ApiClient setDateFormat(DateFormat dateFormat) { + JSON.setDateFormat(dateFormat); + return this; + } + + /** + *

Set SqlDateFormat.

+ * + * @param dateFormat a {@link java.text.DateFormat} object + * @return a {@link com.formkiq.client.invoker.ApiClient} object + */ + public ApiClient setSqlDateFormat(DateFormat dateFormat) { + JSON.setSqlDateFormat(dateFormat); + return this; + } + + /** + *

Set OffsetDateTimeFormat.

+ * + * @param dateFormat a {@link java.time.format.DateTimeFormatter} object + * @return a {@link com.formkiq.client.invoker.ApiClient} object + */ + public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + JSON.setOffsetDateTimeFormat(dateFormat); + return this; + } + + /** + *

Set LocalDateFormat.

+ * + * @param dateFormat a {@link java.time.format.DateTimeFormatter} object + * @return a {@link com.formkiq.client.invoker.ApiClient} object + */ + public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { + JSON.setLocalDateFormat(dateFormat); + return this; + } + + /** + *

Set LenientOnJson.

+ * + * @param lenientOnJson a boolean + * @return a {@link com.formkiq.client.invoker.ApiClient} object + */ + public ApiClient setLenientOnJson(boolean lenientOnJson) { + 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) { + throw new RuntimeException("No OAuth2 authentication configured!"); + } + + /** + * Helper method to set credentials for AWSV4 Signature + * + * @param accessKey Access Key + * @param secretKey Secret Key + * @param region Region + * @param service Service to access to + */ + public void setAWS4Configuration(String accessKey, String secretKey, String region, String service) { + for (Authentication auth : authentications.values()) { + if (auth instanceof AWS4Auth) { + ((AWS4Auth) auth).setCredentials(accessKey, secretKey); + ((AWS4Auth) auth).setRegion(region); + ((AWS4Auth) auth).setService(service); + return; + } + } + throw new RuntimeException("No AWS4 authentication configured!"); + } + + /** + * Helper method to set credentials for AWSV4 Signature + * + * @param accessKey Access Key + * @param secretKey Secret Key + * @param sessionToken Session Token + * @param region Region + * @param service Service to access to + */ + public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, String region, String service) { + for (Authentication auth : authentications.values()) { + if (auth instanceof AWS4Auth) { + ((AWS4Auth) auth).setCredentials(accessKey, secretKey, sessionToken); + ((AWS4Auth) auth).setRegion(region); + ((AWS4Auth) auth).setService(service); + return; + } } - b.append(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; - } - - /** - * Formats the specified free-form query parameters to a list of {@code Pair} objects. - * - * @param value The free-form query parameters. - * @return A list of {@code Pair} objects. - */ - public List freeFormParameterToPairs(Object value) { - List params = new ArrayList<>(); - - // preconditions - if (value == null || !(value instanceof Map)) { - return params; + throw new RuntimeException("No AWS4 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; + } + + /** + * Add a default cookie. + * + * @param key The cookie's key + * @param value The cookie's value + * @return ApiClient + */ + public ApiClient addDefaultCookie(String key, String value) { + defaultCookieMap.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 = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); + } else { + final OkHttpClient.Builder builder = httpClient.newBuilder(); + builder.interceptors().remove(loggingInterceptor); + httpClient = builder.build(); + 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 temporary 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.connectTimeoutMillis(); + } + + /** + * Sets the connect timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link java.lang.Integer#MAX_VALUE}. + * + * @param connectionTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setConnectTimeout(int connectionTimeout) { + httpClient = httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** + * Get read timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getReadTimeout() { + return httpClient.readTimeoutMillis(); + } + + /** + * Sets the read timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link java.lang.Integer#MAX_VALUE}. + * + * @param readTimeout read timeout in milliseconds + * @return Api client + */ + public ApiClient setReadTimeout(int readTimeout) { + httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** + * Get write timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getWriteTimeout() { + return httpClient.writeTimeoutMillis(); + } + + /** + * Sets the write timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link java.lang.Integer#MAX_VALUE}. + * + * @param writeTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setWriteTimeout(int writeTimeout) { + httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build(); + 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(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; + } + + /** + * Formats the specified free-form query parameters to a list of {@code Pair} objects. + * + * @param value The free-form query parameters. + * @return A list of {@code Pair} objects. + */ + public List freeFormParameterToPairs(Object value) { + List params = new ArrayList<>(); + + // preconditions + if (value == null || !(value instanceof Map )) { + return params; + } + + @SuppressWarnings("unchecked") + final Map valuesMap = (Map) value; + + for (Map.Entry entry : valuesMap.entrySet()) { + params.add(new Pair(entry.getKey(), parameterToString(entry.getValue()))); + } + + return params; + } + + + /** + * Formats the specified collection path parameter to a string value. + * + * @param collectionFormat The collection format of the parameter. + * @param value The value of the parameter. + * @return String representation of the parameter + */ + public String collectionPathParameterToString(String collectionFormat, Collection value) { + // create the value based on the collection format + if ("multi".equals(collectionFormat)) { + // not valid for path params + return parameterToString(value); + } + + // collectionFormat is assumed to be "csv" by default + String delimiter = ","; + + if ("ssv".equals(collectionFormat)) { + delimiter = " "; + } else if ("tsv".equals(collectionFormat)) { + delimiter = "\t"; + } else if ("pipes".equals(collectionFormat)) { + delimiter = "|"; + } + + StringBuilder sb = new StringBuilder() ; + for (Object item : value) { + sb.append(delimiter); + sb.append(parameterToString(item)); + } + + return sb.substring(delimiter.length()); + } + + /** + * 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.replaceFirst("^.*[/\\\\]", ""); + } + + /** + * 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, + * returns null. If it matches "any", JSON will be used. + */ + public String selectHeaderContentType(String[] contentTypes) { + if (contentTypes.length == 0) { + return null; + } + + if (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 com.formkiq.client.invoker.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") - final Map valuesMap = (Map) value; - - for (Map.Entry entry : valuesMap.entrySet()) { - params.add(new Pair(entry.getKey(), parameterToString(entry.getValue()))); - } - - return params; - } - - - /** - * Formats the specified collection path parameter to a string value. - * - * @param collectionFormat The collection format of the parameter. - * @param value The value of the parameter. - * @return String representation of the parameter - */ - public String collectionPathParameterToString(String collectionFormat, Collection value) { - // create the value based on the collection format - if ("multi".equals(collectionFormat)) { - // not valid for path params - return parameterToString(value); - } - - // collectionFormat is assumed to be "csv" by default - String delimiter = ","; - - if ("ssv".equals(collectionFormat)) { - delimiter = " "; - } else if ("tsv".equals(collectionFormat)) { - delimiter = "\t"; - } else if ("pipes".equals(collectionFormat)) { - delimiter = "|"; - } - - StringBuilder sb = new StringBuilder(); - for (Object item : value) { - sb.append(delimiter); - sb.append(parameterToString(item)); - } - - return sb.substring(delimiter.length()); - } - - /** - * 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.replaceFirst("^.*[/\\\\]", ""); - } - - /** - * 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, returns null. If it - * matches "any", JSON will be used. - */ - public String selectHeaderContentType(String[] contentTypes) { - if (contentTypes.length == 0) { - return null; - } - - if (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 com.formkiq.client.invoker.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); - } - - ResponseBody respBody = response.body(); - if (respBody == null) { - return null; - } - - String contentType = response.headers().get("Content-Type"); - if (contentType == null) { - // ensuring a default content type - contentType = "application/json"; - } - try { - if (isJsonMime(contentType)) { - return JSON.deserialize(respBody.byteStream(), returnType); - } else if (returnType.equals(String.class)) { - String respBodyString = respBody.string(); - if (respBodyString.isEmpty()) { - return null; + 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); + } + + ResponseBody respBody = response.body(); + if (respBody == null) { + return null; + } + + String contentType = response.headers().get("Content-Type"); + if (contentType == null) { + // ensuring a default content type + contentType = "application/json"; } - // Expecting string, return the raw response body. - return (T) respBodyString; - } else { - throw new ApiException( - "Content type \"" + contentType + "\" is not supported for type: " + returnType, - response.code(), response.headers().toMultimap(), response.body().string()); - } - } catch (IOException e) { - throw new ApiException(e); - } - } - - /** - * 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 com.formkiq.client.invoker.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((byte[]) obj, MediaType.parse(contentType)); - } else if (obj instanceof File) { - // File body parameter support. - return RequestBody.create((File) obj, MediaType.parse(contentType)); - } else if ("text/plain".equals(contentType) && obj instanceof String) { - return RequestBody.create((String) obj, MediaType.parse(contentType)); - } else if (isJsonMime(contentType)) { - String content; - if (obj != null) { - content = JSON.serialize(obj); - } else { - content = null; - } - return RequestBody.create(content, MediaType.parse(contentType)); - } else if (obj instanceof String) { - return RequestBody.create((String) obj, MediaType.parse(contentType)); - } 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 com.formkiq.client.invoker.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 - * @return Prepared file for the download - * @throws java.io.IOException If fail to prepare file for 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); - } - // Files.createTempFile requires the prefix to be at least three characters long - if (prefix.length() < 3) - prefix = "download-"; - } - - if (tempFolderPath == null) - return Files.createTempFile(prefix, suffix).toFile(); - else - return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); - } - - /** - * {@link #execute(Call, Type)} - * - * @param Type - * @param call An instance of the Call object - * @return ApiResponse<T> - * @throws com.formkiq.client.invoker.ApiException If fail to execute the call - */ - 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 com.formkiq.client.invoker.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. - * - * @param Type - * @param call The callback to be executed when the API call finishes - * @param returnType Return type - * @param callback ApiCallback - * @see #execute(Call, Type) - */ - @SuppressWarnings("unchecked") - public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { - call.enqueue(new Callback() { - @Override - public void onFailure(Call call, IOException e) { - callback.onFailure(new ApiException(e), 0, null); - } - - @Override - public void onResponse(Call call, Response response) throws IOException { - T result; try { - result = (T) handleResponse(response, returnType); - } catch (ApiException e) { - callback.onFailure(e, response.code(), response.headers().toMultimap()); - return; - } catch (Exception e) { - callback.onFailure(new ApiException(e), response.code(), response.headers().toMultimap()); - return; + if (isJsonMime(contentType)) { + return JSON.deserialize(respBody.byteStream(), returnType); + } else if (returnType.equals(String.class)) { + String respBodyString = respBody.string(); + if (respBodyString.isEmpty()) { + return null; + } + // Expecting string, return the raw response body. + return (T) respBodyString; + } else { + throw new ApiException( + "Content type \"" + contentType + "\" is not supported for type: " + returnType, + response.code(), + response.headers().toMultimap(), + response.body().string()); + } + } catch (IOException e) { + throw new ApiException(e); } - 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 - * @return Type - * @throws com.formkiq.client.invoker.ApiException If the response has an unsuccessful status code - * or fail to deserialize the response body - */ - 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 (Exception e) { - throw new ApiException(response.message(), e, response.code(), - response.headers().toMultimap()); - } + } + + /** + * 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 com.formkiq.client.invoker.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((byte[]) obj, MediaType.parse(contentType)); + } else if (obj instanceof File) { + // File body parameter support. + return RequestBody.create((File) obj, MediaType.parse(contentType)); + } else if ("text/plain".equals(contentType) && obj instanceof String) { + return RequestBody.create((String) obj, MediaType.parse(contentType)); + } else if (isJsonMime(contentType)) { + String content; + if (obj != null) { + content = JSON.serialize(obj); + } else { + content = null; + } + return RequestBody.create(content, MediaType.parse(contentType)); + } else if (obj instanceof String) { + return RequestBody.create((String) obj, MediaType.parse(contentType)); + } else { + throw new ApiException("Content type \"" + contentType + "\" is not supported"); } - return null; - } else { - return deserialize(response, returnType); - } - } else { - String respBody = null; - if (response.body() != null) { + } + + /** + * Download file from the given response. + * + * @param response An instance of the Response object + * @throws com.formkiq.client.invoker.ApiException If fail to read file content from response and write to disk + * @return Downloaded file + */ + public File downloadFileFromResponse(Response response) throws ApiException { try { - respBody = response.body().string(); + 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(response.message(), e, response.code(), - response.headers().toMultimap()); + throw new ApiException(e); + } + } + + /** + * Prepare file for download + * + * @param response An instance of the Response object + * @return Prepared file for the download + * @throws java.io.IOException If fail to prepare file for 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); + } + // Files.createTempFile requires the prefix to be at least three characters long + if (prefix.length() < 3) + prefix = "download-"; + } + + if (tempFolderPath == null) + return Files.createTempFile(prefix, suffix).toFile(); + else + return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); + } + + /** + * {@link #execute(Call, Type)} + * + * @param Type + * @param call An instance of the Call object + * @return ApiResponse<T> + * @throws com.formkiq.client.invoker.ApiException If fail to execute the call + */ + 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 com.formkiq.client.invoker.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. + * + * @param Type + * @param call The callback to be executed when the API call finishes + * @param returnType Return type + * @param callback ApiCallback + * @see #execute(Call, Type) + */ + @SuppressWarnings("unchecked") + public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { + call.enqueue(new Callback() { + @Override + public void onFailure(Call call, IOException e) { + callback.onFailure(new ApiException(e), 0, null); + } + + @Override + public void onResponse(Call call, Response response) throws IOException { + T result; + try { + result = (T) handleResponse(response, returnType); + } catch (ApiException e) { + callback.onFailure(e, response.code(), response.headers().toMultimap()); + return; + } catch (Exception e) { + callback.onFailure(new ApiException(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 + * @return Type + * @throws com.formkiq.client.invoker.ApiException If the response has an unsuccessful status code or + * fail to deserialize the response body + */ + 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 (Exception 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 baseUrl The base URL + * @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 cookieParams The cookie parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param callback Callback for upload/download progress + * @return The HTTP call + * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object + */ + public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); + + return httpClient.newCall(request); + } + + /** + * Build an HTTP request with the given options. + * + * @param baseUrl The base URL + * @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 cookieParams The cookie parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param callback Callback for upload/download progress + * @return The HTTP request + * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object + */ + public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); + + // prepare HTTP request body + RequestBody reqBody; + String contentType = headerParams.get("Content-Type"); + String contentTypePure = contentType; + if (contentTypePure != null && contentTypePure.contains(";")) { + contentTypePure = contentType.substring(0, contentType.indexOf(";")); + } + if (!HttpMethod.permitsRequestBody(method)) { + reqBody = null; + } else if ("application/x-www-form-urlencoded".equals(contentTypePure)) { + reqBody = buildRequestBodyFormEncoding(formParams); + } else if ("multipart/form-data".equals(contentTypePure)) { + 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("", contentType == null ? null : MediaType.parse(contentType)); + } + } else { + reqBody = serialize(body, contentType); + } + + List updatedQueryParams = new ArrayList<>(queryParams); + + // update parameters with authentication settings + updateParamsForAuth(authNames, updatedQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); + + final Request.Builder reqBuilder = new Request.Builder().url(buildUrl(baseUrl, path, updatedQueryParams, collectionQueryParams)); + processHeaderParams(headerParams, reqBuilder); + processCookieParams(cookieParams, reqBuilder); + + // Associate callback with request (if not null) so interceptor can + // access it when creating ProgressResponseBody + reqBuilder.tag(callback); + + Request request = null; + + if (callback != null && reqBody != null) { + ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, callback); + request = reqBuilder.method(method, progressRequestBody).build(); + } else { + request = reqBuilder.method(method, reqBody).build(); } - } - throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), - respBody); - } - } - - /** - * Build HTTP call with the given options. - * - * @param baseUrl The base URL - * @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 cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress - * @return The HTTP call - * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object - */ - public Call buildCall(String baseUrl, String path, String method, List queryParams, - List collectionQueryParams, Object body, Map headerParams, - Map cookieParams, Map formParams, String[] authNames, - ApiCallback callback) throws ApiException { - Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, - headerParams, cookieParams, formParams, authNames, callback); - - return httpClient.newCall(request); - } - - /** - * Build an HTTP request with the given options. - * - * @param baseUrl The base URL - * @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 cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress - * @return The HTTP request - * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object - */ - public Request buildRequest(String baseUrl, String path, String method, List queryParams, - List collectionQueryParams, Object body, Map headerParams, - Map cookieParams, Map formParams, String[] authNames, - ApiCallback callback) throws ApiException { - final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); - - // prepare HTTP request body - RequestBody reqBody; - String contentType = headerParams.get("Content-Type"); - String contentTypePure = contentType; - if (contentTypePure != null && contentTypePure.contains(";")) { - contentTypePure = contentType.substring(0, contentType.indexOf(";")); - } - if (!HttpMethod.permitsRequestBody(method)) { - reqBody = null; - } else if ("application/x-www-form-urlencoded".equals(contentTypePure)) { - reqBody = buildRequestBodyFormEncoding(formParams); - } else if ("multipart/form-data".equals(contentTypePure)) { - 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("", contentType == null ? null : MediaType.parse(contentType)); - } - } else { - reqBody = serialize(body, contentType); - } - - List updatedQueryParams = new ArrayList<>(queryParams); - - // update parameters with authentication settings - updateParamsForAuth(authNames, updatedQueryParams, headerParams, cookieParams, - requestBodyToString(reqBody), method, URI.create(url)); - - final Request.Builder reqBuilder = new Request.Builder() - .url(buildUrl(baseUrl, path, updatedQueryParams, collectionQueryParams)); - processHeaderParams(headerParams, reqBuilder); - processCookieParams(cookieParams, reqBuilder); - - // Associate callback with request (if not null) so interceptor can - // access it when creating ProgressResponseBody - reqBuilder.tag(callback); - - Request request = null; - - if (callback != null && reqBody != null) { - ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, callback); - 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 baseUrl The base URL - * @param path The sub path - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @return The full URL - */ - public String buildUrl(String baseUrl, String path, List queryParams, - List collectionQueryParams) { - final StringBuilder url = new StringBuilder(); - if (baseUrl != null) { - url.append(baseUrl).append(path); - } else { - String baseURL; - if (serverIndex != null) { - if (serverIndex < 0 || serverIndex >= servers.size()) { - throw new ArrayIndexOutOfBoundsException(String.format(Locale.ROOT, - "Invalid index %d when selecting the host settings. Must be less than %d", - serverIndex, servers.size())); + + return request; + } + + /** + * Build full URL by concatenating base path, the given sub path and query parameters. + * + * @param baseUrl The base URL + * @param path The sub path + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @return The full URL + */ + public String buildUrl(String baseUrl, String path, List queryParams, List collectionQueryParams) { + final StringBuilder url = new StringBuilder(); + if (baseUrl != null) { + url.append(baseUrl).append(path); + } else { + String baseURL; + if (serverIndex != null) { + if (serverIndex < 0 || serverIndex >= servers.size()) { + throw new ArrayIndexOutOfBoundsException(String.format( + Locale.ROOT, + "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() + )); + } + baseURL = servers.get(serverIndex).URL(serverVariables); + } else { + baseURL = basePath; + } + url.append(baseURL).append(path); } - baseURL = servers.get(serverIndex).URL(serverVariables); - } else { - baseURL = basePath; - } - url.append(baseURL).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 (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); + + 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 form of Map - * @param reqBuilder Request.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())); - } - } - } - - /** - * Set cookie parameters to the request builder, including default cookies. - * - * @param cookieParams Cookie parameters in the form of Map - * @param reqBuilder Request.Builder - */ - public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { - for (Entry param : cookieParams.entrySet()) { - reqBuilder.addHeader("Cookie", - String.format(Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); - } - for (Entry param : defaultCookieMap.entrySet()) { - if (!cookieParams.containsKey(param.getKey())) { - reqBuilder.addHeader("Cookie", - String.format(Locale.ROOT, "%s=%s", param.getKey(), param.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 - * @param cookieParams Map of cookie parameters - * @param payload HTTP request body - * @param method HTTP method - * @param uri URI - * @throws com.formkiq.client.invoker.ApiException If fails to update the parameters - */ - public void updateParamsForAuth(String[] authNames, List queryParams, - Map headerParams, Map cookieParams, String payload, - String method, URI uri) throws ApiException { - for (String authName : authNames) { - Authentication auth = authentications.get(authName); - if (auth == null) { - throw new RuntimeException("Authentication undefined: " + authName); - } - auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); - } - } - - /** - * 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) { - okhttp3.FormBody.Builder formBuilder = new okhttp3.FormBody.Builder(); - 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) { - MultipartBody.Builder mpBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); - for (Entry param : formParams.entrySet()) { - if (param.getValue() instanceof File) { - File file = (File) param.getValue(); - addPartToMultiPartBuilder(mpBuilder, param.getKey(), file); - } else if (param.getValue() instanceof List) { - List list = (List) param.getValue(); - for (Object item : list) { - if (item instanceof File) { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); - } else { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); - } + + return url.toString(); + } + + /** + * Set header parameters to the request builder, including default headers. + * + * @param headerParams Header parameters in the form of Map + * @param reqBuilder Request.Builder + */ + public void processHeaderParams(Map headerParams, Request.Builder reqBuilder) { + for (Entry param : headerParams.entrySet()) { + reqBuilder.header(param.getKey(), parameterToString(param.getValue())); } - } else { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), 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; - } - } - - /** - * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder. - * - * @param mpBuilder MultipartBody.Builder - * @param key The key of the Header element - * @param file The file to add to the Header - */ - protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { - Headers partHeaders = Headers.of("Content-Disposition", - "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); - MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); - mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); - } - - /** - * Add a Content-Disposition Header for the given key and complex object to the MultipartBody - * Builder. - * - * @param mpBuilder MultipartBody.Builder - * @param key The key of the Header element - * @param obj The complex object to add to the Header - */ - protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, - Object obj) { - RequestBody requestBody; - if (obj instanceof String) { - requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); - } else { - String content; - if (obj != null) { - content = JSON.serialize(obj); - } else { - content = null; - } - requestBody = RequestBody.create(content, MediaType.parse("application/json")); - } - - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\""); - mpBuilder.addPart(partHeaders, requestBody); - } - - /** - * Get network interceptor to add it to the httpClient to track download progress for async - * requests. - */ - protected Interceptor getProgressInterceptor() { - return new Interceptor() { - @Override - public Response intercept(Interceptor.Chain chain) throws IOException { - final Request request = chain.request(); - final Response originalResponse = chain.proceed(request); - if (request.tag() instanceof ApiCallback) { - final ApiCallback callback = (ApiCallback) request.tag(); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), callback)).build(); + for (Entry header : defaultHeaderMap.entrySet()) { + if (!headerParams.containsKey(header.getKey())) { + reqBuilder.header(header.getKey(), parameterToString(header.getValue())); + } } - return originalResponse; - } - }; - } - - /** - * Apply SSL related settings to httpClient according to the current values of verifyingSsl and - * sslCaCert. - */ - protected void applySslSettings() { - try { - TrustManager[] trustManagers; - HostnameVerifier hostnameVerifier; - if (!verifyingSsl) { - trustManagers = new TrustManager[] {new X509TrustManager() { - @Override - public void checkClientTrusted(java.security.cert.X509Certificate[] chain, - String authType) throws CertificateException {} - - @Override - public void checkServerTrusted(java.security.cert.X509Certificate[] chain, - String authType) throws CertificateException {} - - @Override - public java.security.cert.X509Certificate[] getAcceptedIssuers() { - return new java.security.cert.X509Certificate[] {}; - } - }}; - hostnameVerifier = new HostnameVerifier() { - @Override - public boolean verify(String hostname, SSLSession session) { - return true; - } - }; - } else { - TrustManagerFactory trustManagerFactory = - TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); + } + + /** + * Set cookie parameters to the request builder, including default cookies. + * + * @param cookieParams Cookie parameters in the form of Map + * @param reqBuilder Request.Builder + */ + public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { + for (Entry param : cookieParams.entrySet()) { + reqBuilder.addHeader("Cookie", String.format(Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); + } + for (Entry param : defaultCookieMap.entrySet()) { + if (!cookieParams.containsKey(param.getKey())) { + reqBuilder.addHeader("Cookie", String.format(Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); + } + } + } - if (sslCaCert == null) { - trustManagerFactory.init((KeyStore) null); + /** + * 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 + * @param cookieParams Map of cookie parameters + * @param payload HTTP request body + * @param method HTTP method + * @param uri URI + * @throws com.formkiq.client.invoker.ApiException If fails to update the parameters + */ + public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, + Map cookieParams, String payload, String method, URI uri) throws ApiException { + for (String authName : authNames) { + Authentication auth = authentications.get(authName); + if (auth == null) { + throw new RuntimeException("Authentication undefined: " + authName); + } + auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); + } + } + + /** + * 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) { + okhttp3.FormBody.Builder formBuilder = new okhttp3.FormBody.Builder(); + 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) { + MultipartBody.Builder mpBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); + for (Entry param : formParams.entrySet()) { + if (param.getValue() instanceof File) { + File file = (File) param.getValue(); + addPartToMultiPartBuilder(mpBuilder, param.getKey(), file); + } else if (param.getValue() instanceof List) { + List list = (List) param.getValue(); + for (Object item: list) { + if (item instanceof File) { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); + } else { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); + } + } + } else { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), 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 { - 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" + (index++); - caKeyStore.setCertificateEntry(certificateAlias, certificate); - } - trustManagerFactory.init(caKeyStore); + return contentType; } - trustManagers = trustManagerFactory.getTrustManagers(); - hostnameVerifier = OkHostnameVerifier.INSTANCE; - } - - SSLContext sslContext = SSLContext.getInstance("TLS"); - sslContext.init(keyManagers, trustManagers, new SecureRandom()); - httpClient = httpClient.newBuilder() - .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) - .hostnameVerifier(hostnameVerifier).build(); - } catch (GeneralSecurityException e) { - throw new RuntimeException(e); - } - } - - protected 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); - } - } - - /** - * Convert the HTTP request body to a string. - * - * @param requestBody The HTTP request object - * @return The string representation of the HTTP request body - * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object - * into a string - */ - protected String requestBodyToString(RequestBody requestBody) throws ApiException { - if (requestBody != null) { - try { - final Buffer buffer = new Buffer(); - requestBody.writeTo(buffer); - return buffer.readUtf8(); - } catch (final IOException e) { - throw new ApiException(e); - } - } - - // empty http request body - return ""; - } + } + + /** + * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder. + * + * @param mpBuilder MultipartBody.Builder + * @param key The key of the Header element + * @param file The file to add to the Header + */ + protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); + MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); + mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); + } + + /** + * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder. + * + * @param mpBuilder MultipartBody.Builder + * @param key The key of the Header element + * @param obj The complex object to add to the Header + */ + protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { + RequestBody requestBody; + if (obj instanceof String) { + requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); + } else { + String content; + if (obj != null) { + content = JSON.serialize(obj); + } else { + content = null; + } + requestBody = RequestBody.create(content, MediaType.parse("application/json")); + } + + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\""); + mpBuilder.addPart(partHeaders, requestBody); + } + + /** + * Get network interceptor to add it to the httpClient to track download progress for + * async requests. + */ + protected Interceptor getProgressInterceptor() { + return new Interceptor() { + @Override + public Response intercept(Interceptor.Chain chain) throws IOException { + final Request request = chain.request(); + final Response originalResponse = chain.proceed(request); + if (request.tag() instanceof ApiCallback) { + final ApiCallback callback = (ApiCallback) request.tag(); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), callback)) + .build(); + } + return originalResponse; + } + }; + } + + /** + * Apply SSL related settings to httpClient according to the current values of + * verifyingSsl and sslCaCert. + */ + protected void applySslSettings() { + try { + TrustManager[] trustManagers; + HostnameVerifier hostnameVerifier; + if (!verifyingSsl) { + trustManagers = new TrustManager[]{ + new X509TrustManager() { + @Override + public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + } + + @Override + public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + } + + @Override + public java.security.cert.X509Certificate[] getAcceptedIssuers() { + return new java.security.cert.X509Certificate[]{}; + } + } + }; + hostnameVerifier = new HostnameVerifier() { + @Override + public boolean verify(String hostname, SSLSession session) { + return true; + } + }; + } else { + TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); + + if (sslCaCert == null) { + trustManagerFactory.init((KeyStore) null); + } else { + 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" + (index++); + caKeyStore.setCertificateEntry(certificateAlias, certificate); + } + trustManagerFactory.init(caKeyStore); + } + trustManagers = trustManagerFactory.getTrustManagers(); + hostnameVerifier = OkHostnameVerifier.INSTANCE; + } + + SSLContext sslContext = SSLContext.getInstance("TLS"); + sslContext.init(keyManagers, trustManagers, new SecureRandom()); + httpClient = httpClient.newBuilder() + .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) + .hostnameVerifier(hostnameVerifier) + .build(); + } catch (GeneralSecurityException e) { + throw new RuntimeException(e); + } + } + + protected 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); + } + } + + /** + * Convert the HTTP request body to a string. + * + * @param requestBody The HTTP request object + * @return The string representation of the HTTP request body + * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object into a string + */ + protected String requestBodyToString(RequestBody requestBody) throws ApiException { + if (requestBody != null) { + try { + final Buffer buffer = new Buffer(); + requestBody.writeTo(buffer); + return buffer.readUtf8(); + } catch (final IOException e) { + throw new ApiException(e); + } + } + + // empty http request body + return ""; + } } diff --git a/src/main/java/com/formkiq/client/invoker/ApiException.java b/src/main/java/com/formkiq/client/invoker/ApiException.java index e73fe4a7a..c6da23de3 100644 --- a/src/main/java/com/formkiq/client/invoker/ApiException.java +++ b/src/main/java/com/formkiq/client/invoker/ApiException.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -26,178 +19,150 @@ /** - *

- * ApiException class. - *

+ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ApiException extends Exception { - private static final long serialVersionUID = 1L; - - private int code = 0; - private Map> responseHeaders = null; - private String responseBody = null; - - /** - *

- * Constructor for ApiException. - *

- */ - public ApiException() {} - - /** - *

- * Constructor for ApiException. - *

- * - * @param throwable a {@link java.lang.Throwable} object - */ - public ApiException(Throwable throwable) { - super(throwable); - } - - /** - *

- * Constructor for ApiException. - *

- * - * @param message the error message - */ - public ApiException(String message) { - super(message); - } - - /** - *

- * Constructor for ApiException. - *

- * - * @param message the error message - * @param throwable a {@link java.lang.Throwable} object - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(String message, Throwable throwable, int code, - Map> responseHeaders, String responseBody) { - super(message, throwable); - this.code = code; - this.responseHeaders = responseHeaders; - this.responseBody = responseBody; - } - - /** - *

- * Constructor for ApiException. - *

- * - * @param message the error message - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(String message, int code, Map> responseHeaders, - String responseBody) { - this(message, (Throwable) null, code, responseHeaders, responseBody); - } - - /** - *

- * Constructor for ApiException. - *

- * - * @param message the error message - * @param throwable a {@link java.lang.Throwable} object - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - */ - public ApiException(String message, Throwable throwable, int code, - Map> responseHeaders) { - this(message, throwable, code, responseHeaders, null); - } - - /** - *

- * Constructor for ApiException. - *

- * - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(int code, Map> responseHeaders, String responseBody) { - this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, - responseHeaders, responseBody); - } - - /** - *

- * Constructor for ApiException. - *

- * - * @param code HTTP status code - * @param message a {@link java.lang.String} object - */ - public ApiException(int code, String message) { - super(message); - this.code = code; - } - - /** - *

- * Constructor for ApiException. - *

- * - * @param code HTTP status code - * @param message the error message - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - 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; - } - - /** - * Get the exception message including HTTP response data. - * - * @return The exception message - */ - public String getMessage() { - return String.format(Locale.ROOT, - "Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", - super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); - } + private static final long serialVersionUID = 1L; + + private int code = 0; + private Map> responseHeaders = null; + private String responseBody = null; + + /** + *

Constructor for ApiException.

+ */ + public ApiException() {} + + /** + *

Constructor for ApiException.

+ * + * @param throwable a {@link java.lang.Throwable} object + */ + public ApiException(Throwable throwable) { + super(throwable); + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + */ + public ApiException(String message) { + super(message); + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param throwable a {@link java.lang.Throwable} object + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { + super(message, throwable); + this.code = code; + this.responseHeaders = responseHeaders; + this.responseBody = responseBody; + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(String message, int code, Map> responseHeaders, String responseBody) { + this(message, (Throwable) null, code, responseHeaders, responseBody); + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param throwable a {@link java.lang.Throwable} object + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + */ + public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { + this(message, throwable, code, responseHeaders, null); + } + + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(int code, Map> responseHeaders, String responseBody) { + this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, responseHeaders, responseBody); + } + + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param message a {@link java.lang.String} object + */ + public ApiException(int code, String message) { + super(message); + this.code = code; + } + + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param message the error message + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + 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; + } + + /** + * Get the exception message including HTTP response data. + * + * @return The exception message + */ + public String getMessage() { + return String.format(Locale.ROOT, "Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", + super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); + } } diff --git a/src/main/java/com/formkiq/client/invoker/ApiResponse.java b/src/main/java/com/formkiq/client/invoker/ApiResponse.java index 5efdbc3e0..375a19580 100644 --- a/src/main/java/com/formkiq/client/invoker/ApiResponse.java +++ b/src/main/java/com/formkiq/client/invoker/ApiResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -27,67 +20,57 @@ * API response returned by API call. */ public class ApiResponse { - final private int statusCode; - final private Map> headers; - final private T data; + final private int statusCode; + final private Map> headers; + final private T data; - /** - *

- * Constructor for ApiResponse. - *

- * - * @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); - } + /** + *

Constructor for ApiResponse.

+ * + * @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); + } - /** - *

- * Constructor for ApiResponse. - *

- * - * @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; - } + /** + *

Constructor for ApiResponse.

+ * + * @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; + } - /** - *

- * Get the status code. - *

- * - * @return the status code - */ - public int getStatusCode() { - return statusCode; - } + /** + *

Get the status code.

+ * + * @return the status code + */ + public int getStatusCode() { + return statusCode; + } - /** - *

- * Get the headers. - *

- * - * @return a {@link java.util.Map} of headers - */ - public Map> getHeaders() { - return headers; - } + /** + *

Get the headers.

+ * + * @return a {@link java.util.Map} of headers + */ + public Map> getHeaders() { + return headers; + } - /** - *

- * Get the data. - *

- * - * @return the data - */ - public T getData() { - return data; - } + /** + *

Get the data.

+ * + * @return the data + */ + public T getData() { + return data; + } } diff --git a/src/main/java/com/formkiq/client/invoker/Configuration.java b/src/main/java/com/formkiq/client/invoker/Configuration.java index ee91dfdf2..798fcf20c 100644 --- a/src/main/java/com/formkiq/client/invoker/Configuration.java +++ b/src/main/java/com/formkiq/client/invoker/Configuration.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -24,18 +17,15 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Configuration { - public static final String VERSION = "1.18.0"; + public static final String VERSION = "1.18.1"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; /** - * Get the default API client, which would be used when creating API instances without providing - * an API client. + * Get the default API client, which would be used when creating API instances without providing an API client. * * @return Default API client */ @@ -53,8 +43,7 @@ public static ApiClient getDefaultApiClient() { } /** - * Set the default API client, which would be used when creating API instances without providing - * an API client. + * Set the default API client, which would be used when creating API instances without providing an API client. * * @param apiClient API client */ @@ -69,5 +58,6 @@ public static void setApiClientFactory(Supplier factory) { apiClientFactory = Objects.requireNonNull(factory); } - private Configuration() {} -} + private Configuration() { + } +} \ No newline at end of file diff --git a/src/main/java/com/formkiq/client/invoker/GzipRequestInterceptor.java b/src/main/java/com/formkiq/client/invoker/GzipRequestInterceptor.java index 1f2caebed..10a6ddd2d 100644 --- a/src/main/java/com/formkiq/client/invoker/GzipRequestInterceptor.java +++ b/src/main/java/com/formkiq/client/invoker/GzipRequestInterceptor.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,57 +27,59 @@ * 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); - } + @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); - } + 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(); - } + 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 long contentLength() { + return buffer.size(); + } - @Override - public void writeTo(BufferedSink sink) throws IOException { - sink.write(buffer.snapshot()); - } - }; - } + @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(); - } + 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 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(); - } - }; - } + @Override + public void writeTo(BufferedSink sink) throws IOException { + BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); + body.writeTo(gzipSink); + gzipSink.close(); + } + }; + } } diff --git a/src/main/java/com/formkiq/client/invoker/JSON.java b/src/main/java/com/formkiq/client/invoker/JSON.java index a8714a1d2..050baed47 100644 --- a/src/main/java/com/formkiq/client/invoker/JSON.java +++ b/src/main/java/com/formkiq/client/invoker/JSON.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -54,1155 +47,765 @@ * A JSON utility class * * NOTE: in the future, this class may be converted to static, which may break - * backward-compatibility + * backward-compatibility */ public class JSON { - private static Gson gson; - private static boolean isLenientOnJson = false; - private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); - private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = - new OffsetDateTimeTypeAdapter(); - private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); - private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - - @SuppressWarnings("unchecked") - public static GsonBuilder createGson() { - GsonFireBuilder fireBuilder = new GsonFireBuilder(); - GsonBuilder builder = fireBuilder.createGsonBuilder(); - return builder; - } + private static Gson gson; + private static boolean isLenientOnJson = false; + private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); + private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); + private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); + private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); + private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); + + @SuppressWarnings("unchecked") + public static GsonBuilder createGson() { + GsonFireBuilder fireBuilder = new GsonFireBuilder() + ; + GsonBuilder builder = fireBuilder.createGsonBuilder(); + return builder; + } - private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { - JsonElement element = readElement.getAsJsonObject().get(discriminatorField); - if (null == element) { - throw new IllegalArgumentException( - "missing discriminator field: <" + discriminatorField + ">"); + 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(); } - return element.getAsString(); - } - /** - * Returns the Java class that implements the OpenAPI schema for the specified discriminator - * value. - * - * @param classByDiscriminatorValue The map of discriminator values to Java classes. - * @param discriminatorValue The value of the OpenAPI discriminator in the input data. - * @return The Java class that implements the OpenAPI schema - */ - private static Class getClassByDiscriminator(Map classByDiscriminatorValue, - String discriminatorValue) { - Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); - if (null == clazz) { - throw new IllegalArgumentException( - "cannot determine model class of name: <" + discriminatorValue + ">"); + /** + * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. + * + * @param classByDiscriminatorValue The map of discriminator values to Java classes. + * @param discriminatorValue The value of the OpenAPI discriminator in the input data. + * @return The Java class that implements the OpenAPI schema + */ + private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { + Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); + if (null == clazz) { + throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); + } + return clazz; } - return clazz; - } - static { - GsonBuilder gsonBuilder = createGson(); - gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); - gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); - gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); - gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); - gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.Activity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddAction.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddActionParameters.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddApiKeyRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddApiKeyResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddAttributeRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddAttributeSchemaOptional.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddAttributeSchemaRequired.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddCase.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddCaseRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddCaseResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddChildDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddChildDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddClassification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddClassificationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddClassificationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentActionsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentActionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentActionsRetryResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentAttributeClassification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentAttributeEntity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentAttributeRelationship.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentAttributeStandard.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentAttributeValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentAttributesRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentFulltextRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentGenerateRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentGenerateResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentOcrRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentOcrResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentSync.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentSyncRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentTagsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentUploadRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentWorkflowDecisionsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentWorkflowDecisionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentWorkflowRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocumentWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocusignEnvelopesRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocusignEnvelopesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocusignRecipientViewRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddDocusignRecipientViewResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddEntity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddEntityAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddEntityRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddEntityResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddEntityType.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddEntityTypeRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddEntityTypeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddFolderPermission.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddFolderRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddFolderResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddFolderShareRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddFolderShareResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddGoogleDocumentExportRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddGoogleDocumentExportResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddGroup.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddGroupRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddLocaleRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddLocaleResourceClassificationItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddLocaleResourceInterfaceItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddLocaleResourceItemRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddLocaleResourceItemResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddLocaleResourceSchemaItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddMapping.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddMappingRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddMappingResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddNigo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddNigoRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddNigoResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddQueueRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddQueueResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddReindexDocumentRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddResourceItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddRule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddRuleRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddRuleResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddRuleset.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddRulesetRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddRulesetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddShare.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddSite.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddSiteRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddTask.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddTaskRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddTaskResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddUser.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddUserRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddWebhookRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddWebhookResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddWebhookTagRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddWorkflowRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddWorkflowStep.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddWorkflowStepDecision.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AddWorkflowStepQueue.CustomTypeAdapterFactory()); - gsonBuilder - .registerTypeAdapterFactory(new com.formkiq.client.model.ApiKey.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.Attribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AttributeSchemaCompositeKey.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AttributeSchemaOptional.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.AttributeSchemaRequired.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.ChildDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.Classification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.ClassificationSummary.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DataClassification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DataClassificationAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteApiKeyResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteCaseDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteCaseNigoDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteCaseNigoResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteCaseResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteCaseTaskDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteCaseTaskResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteFolderResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteIndicesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteQueueResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteRuleResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteRulesetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteShareResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DeleteWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.Document.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentAction.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentFulltextAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentFulltextAttributeEq.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentFulltextRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentFulltextSearch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentFulltextTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentGenerateDataSource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentGenerateInsertDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentId.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSearch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSearchAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSearchMatchAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSearchMatchTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSearchMeta.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSearchRange.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSearchRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSearchResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSearchTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSearchTags.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentSync.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentVersion.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentWorkflow.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentsCompressRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocumentsCompressResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocusignConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocusignInpersonSigner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocusignNotification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocusignNotificationExpirations.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocusignNotificationReminders.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocusignRecipientView.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocusignSignHereTabs.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocusignSigner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.DocusignSigningTabs.CustomTypeAdapterFactory()); - gsonBuilder - .registerTypeAdapterFactory(new com.formkiq.client.model.Entity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.EntityAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.EntityType.CustomTypeAdapterFactory()); - gsonBuilder - .registerTypeAdapterFactory(new com.formkiq.client.model.Error.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.ErrorsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.FolderPermission.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.FulltextAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.FulltextSearchItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetActivitesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetApiKeysResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetAttributeAllowedValuesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetAttributeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetAttributesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetCaseDocumentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetCaseNigoResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetCaseNigosResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetCaseResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetCaseTaskResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetCaseTasksResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetCasesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetClassificationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetClassificationsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetConfigurationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentActionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentAttributeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentAttributesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentContentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentDataClassificationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentOcrResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentSyncResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentTagResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentTagsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentUrlResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentVersionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentWorkflowsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetDocumentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetEntitiesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetEntityResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetEntityTypeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetEntityTypesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetExaminePdfResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetExaminePdfUrlResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetFolderPermissionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetFoldersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetGroupResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetGroupsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetLocaleResourceItemResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetLocaleResourceItemsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetLocalesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetMalwareScanResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetMappingResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetMappingsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetOpaAccessPoliciesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetOpaAccessPolicyItemsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetOpaAccessPolicyResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetOpenSearchIndexResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetOpenSearchIndiceResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetOpenSearchSnapshotRepositoryResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetOpenSearchSnapshotResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetQueueResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetQueuesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetRuleResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetRulesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetRulesetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetRulesetsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetSiteGroupResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetSiteGroupsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetSitesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetSitesSchemaResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetUserActivitesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetUserGroupsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetUserSharesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetUsersInGroupResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetUsersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetVersionResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetWebhookResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetWebhookTagsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetWebhooksResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetWorkflowDocumentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetWorkflowQueueDocumentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GetWorkflowsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.GoogleConfig.CustomTypeAdapterFactory()); - gsonBuilder - .registerTypeAdapterFactory(new com.formkiq.client.model.Group.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.IndexFolderMoveRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.IndexFolderMoveResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.IndexSearch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.IndexSearchRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.IndexSearchResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.LocaleInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.MalwareScanResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.Mapping.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.MappingAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.MatchDocumentTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.ModelCase.CustomTypeAdapterFactory()); - gsonBuilder - .registerTypeAdapterFactory(new com.formkiq.client.model.Nigo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OcrConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OcrKeyValues.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OcrTable.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OcrTableData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyAttributeEq.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyAttributeGt.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyAttributeGte.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyAttributeIn.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyAttributeInput.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyAttributeLt.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyAttributeLte.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyAttributeNeq.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyAttributeNotIn.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyInput.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyInputMethod.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyInputResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpaPolicyItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpenSearchAlias.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpenSearchIndex.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpenSearchIndexSetting.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpenSearchS3Repository.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpenSearchSnapshot.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpenSearchSnapshotFailure.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.OpenSearchSnapshotShard.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.PdfDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.PdfDocumentField.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.QueryFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder - .registerTypeAdapterFactory(new com.formkiq.client.model.Queue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.ResourceItem.CustomTypeAdapterFactory()); - gsonBuilder - .registerTypeAdapterFactory(new com.formkiq.client.model.Rule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.RuleCondition.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.RuleConditionMust.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.Ruleset.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SchemaAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SearchResponseFields.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SearchResultDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SearchResultDocumentAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetClassificationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentAttributeRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentAttributesRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentDataClassificationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentDataClassificationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentFulltextRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentOcrRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentRestoreResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentTagKeyRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentVersionRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetDocumentVersionResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetFolderPermissionsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetGroupPermissionsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetLocaleResourceItemRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetMappingRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetOpaAccessPolicyItemsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetOpenSearchIndexRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetOpenSearchIndexResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetOpenSearchIndiceRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetSchemaAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetSitesSchemaRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetWorkflowRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SetWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder - .registerTypeAdapterFactory(new com.formkiq.client.model.Site.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SiteConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SiteGroup.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.SiteUsage.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.StringFormat.CustomTypeAdapterFactory()); - gsonBuilder - .registerTypeAdapterFactory(new com.formkiq.client.model.Task.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.TextractQuery.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateAttributeRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateCase.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateCaseRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateCaseResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateConfigurationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateConfigurationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateDocumentFulltextRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateDocumentFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateDocumentRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateEntityRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateMatchingDocumentTagsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateMatchingDocumentTagsRequestMatch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateMatchingDocumentTagsRequestUpdate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateMatchingDocumentTagsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateNigo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateNigoRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateNigoResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateRule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateRuleRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateRuleResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateRuleset.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateRulesetRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateRulesetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateSite.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateSiteRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateTask.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateTaskRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateTaskResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateWorkflowRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UpdateWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder - .registerTypeAdapterFactory(new com.formkiq.client.model.User.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UserActivity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UserActivityChanges.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UserAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.UserShare.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.ValidationError.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.ValidationErrorsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.Watermark.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.WatermarkPosition.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.WebhookTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.WorkflowDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.WorkflowQueue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.WorkflowStep.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.WorkflowStepDecision.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory( - new com.formkiq.client.model.WorkflowSummary.CustomTypeAdapterFactory()); - gson = gsonBuilder.create(); - } + static { + GsonBuilder gsonBuilder = createGson(); + gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); + gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); + gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); + gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); + gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Activity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddAction.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddActionParameters.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddApiKeyRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddApiKeyResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddAttributeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddAttributeSchemaOptional.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddAttributeSchemaRequired.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddCase.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddCaseRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddCaseResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddChildDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddChildDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddClassification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddClassificationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddClassificationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentActionsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentActionsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentActionsRetryResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributeClassification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributeEntity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributeRelationship.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributeStandard.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributeValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributesRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentFulltextRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentGenerateRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentGenerateResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentOcrRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentOcrResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentSync.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentSyncRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentTagsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentUploadRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentWorkflowDecisionsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentWorkflowDecisionsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentWorkflowRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocusignEnvelopesRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocusignEnvelopesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocusignRecipientViewRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocusignRecipientViewResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityType.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityTypeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityTypeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddFolderPermission.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddFolderRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddFolderResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddFolderShareRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddFolderShareResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddGoogleDocumentExportRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddGoogleDocumentExportResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddGroup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddGroupRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleResourceClassificationItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleResourceInterfaceItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleResourceItemRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleResourceItemResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleResourceSchemaItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddMapping.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddMappingRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddMappingResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddNigo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddNigoRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddNigoResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddQueueRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddQueueResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddReindexDocumentRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddResourceItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRuleRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRuleResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRuleset.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRulesetRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRulesetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddShare.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddSite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddSiteRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddTask.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddTaskRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddTaskResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddUser.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddUserRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWebhookRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWebhookResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWebhookTagRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWorkflowRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWorkflowStep.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWorkflowStepDecision.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWorkflowStepQueue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ApiKey.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Attribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AttributeSchemaCompositeKey.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AttributeSchemaOptional.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AttributeSchemaRequired.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ChildDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Classification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ClassificationSummary.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DataClassification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DataClassificationAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteApiKeyResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseNigoDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseNigoResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseTaskDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseTaskResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteFolderResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteIndicesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteQueueResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteRuleResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteRulesetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteShareResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Document.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentAction.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextAttributeEq.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextSearch.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentGenerateDataSource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentGenerateInsertDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentId.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearch.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchMatchAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchMatchTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchMeta.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchTags.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSync.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentVersion.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentWorkflow.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentsCompressRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentsCompressResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignInpersonSigner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignNotification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignNotificationExpirations.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignNotificationReminders.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignRecipientView.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignSignHereTabs.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignSigner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignSigningTabs.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Entity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.EntityAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.EntityType.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Error.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ErrorsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.FolderPermission.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.FulltextAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.FulltextSearchItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetActivitesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetApiKeysResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetAttributeAllowedValuesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetAttributeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetAttributesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseDocumentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseNigoResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseNigosResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseTaskResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseTasksResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCasesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetClassificationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetClassificationsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetConfigurationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentActionsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentAttributeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentAttributesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentContentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentDataClassificationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentOcrResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentSyncResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentTagResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentTagsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentUrlResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentVersionsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentWorkflowsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetEntitiesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetEntityResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetEntityTypeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetEntityTypesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetExaminePdfResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetExaminePdfUrlResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetFolderPermissionsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetFoldersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetGroupResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetGroupsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetLocaleResourceItemResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetLocaleResourceItemsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetLocalesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetMalwareScanResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetMappingResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetMappingsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpaAccessPoliciesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpaAccessPolicyItemsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpaAccessPolicyResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpenSearchIndexResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpenSearchIndiceResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpenSearchSnapshotRepositoryResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpenSearchSnapshotResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetQueueResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetQueuesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetRuleResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetRulesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetRulesetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetRulesetsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetSiteGroupResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetSiteGroupsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetSitesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetSitesSchemaResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUserActivitesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUserGroupsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUserResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUserSharesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUsersInGroupResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUsersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetVersionResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWebhookResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWebhookTagsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWebhooksResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWorkflowDocumentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWorkflowQueueDocumentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWorkflowsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GoogleConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Group.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.IndexFolderMoveRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.IndexFolderMoveResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.IndexSearch.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.IndexSearchRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.IndexSearchResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.LocaleInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.MalwareScanResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Mapping.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.MappingAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.MatchDocumentTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ModelCase.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Nigo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OcrConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OcrKeyValues.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OcrTable.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OcrTableData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeEq.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeGt.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeGte.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeIn.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeInput.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeLt.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeLte.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeNeq.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeNotIn.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyInput.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyInputMethod.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyInputResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchAlias.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchIndex.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchIndexSetting.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchS3Repository.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchSnapshot.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchSnapshotFailure.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchSnapshotShard.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.PdfDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.PdfDocumentField.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.QueryFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Queue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ResourceItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Rule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.RuleCondition.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.RuleConditionMust.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Ruleset.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SchemaAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SearchResponseFields.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SearchResultDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SearchResultDocumentAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetClassificationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentAttributeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentAttributesRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentDataClassificationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentDataClassificationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentFulltextRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentOcrRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentRestoreResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentTagKeyRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentVersionRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentVersionResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetFolderPermissionsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetGroupPermissionsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetLocaleResourceItemRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetMappingRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetOpaAccessPolicyItemsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetOpenSearchIndexRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetOpenSearchIndexResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetOpenSearchIndiceRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetSchemaAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetSitesSchemaRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetWorkflowRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Site.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SiteConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SiteGroup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SiteUsage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.StringFormat.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Task.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.TextractQuery.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateAttributeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateCase.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateCaseRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateCaseResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateConfigurationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateConfigurationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateDocumentFulltextRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateDocumentFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateDocumentRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateEntityRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateMatchingDocumentTagsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateMatchingDocumentTagsRequestMatch.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateMatchingDocumentTagsRequestUpdate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateMatchingDocumentTagsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateNigo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateNigoRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateNigoResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRuleRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRuleResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRuleset.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRulesetRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRulesetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateSite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateSiteRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateTask.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateTaskRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateTaskResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateWorkflowRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.User.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UserActivity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UserActivityChanges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UserAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UserShare.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ValidationError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ValidationErrorsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Watermark.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WatermarkPosition.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WebhookTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WorkflowDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WorkflowQueue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WorkflowStep.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WorkflowStepDecision.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WorkflowSummary.CustomTypeAdapterFactory()); + gson = gsonBuilder.create(); + } - /** - * Get Gson. - * - * @return Gson - */ - public static Gson getGson() { - return gson; - } + /** + * Get Gson. + * + * @return Gson + */ + public static Gson getGson() { + return gson; + } - /** - * Set Gson. - * - * @param gson Gson - */ - public static void setGson(Gson gson) { - JSON.gson = gson; - } + /** + * Set Gson. + * + * @param gson Gson + */ + public static void setGson(Gson gson) { + JSON.gson = gson; + } - public static void setLenientOnJson(boolean lenientOnJson) { - isLenientOnJson = lenientOnJson; - } + public static void setLenientOnJson(boolean lenientOnJson) { + isLenientOnJson = lenientOnJson; + } - /** - * Serialize the given Java object into JSON string. - * - * @param obj Object - * @return String representation of the JSON - */ - public static String serialize(Object obj) { - return gson.toJson(obj); - } + /** + * Serialize the given Java object into JSON string. + * + * @param obj Object + * @return String representation of the JSON + */ + public static 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 static 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); - } + /** + * 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 static 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); + } + } } - } - /** - * Deserialize the given JSON InputStream to a Java object. - * - * @param Type - * @param inputStream The JSON InputStream - * @param returnType The type to deserialize into - * @return The deserialized Java object - */ - @SuppressWarnings("unchecked") - public static T deserialize(InputStream inputStream, Type returnType) throws IOException { - try (InputStreamReader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8)) { - if (isLenientOnJson) { - // see - // https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) - JsonReader jsonReader = new JsonReader(reader); - jsonReader.setLenient(true); - return gson.fromJson(jsonReader, returnType); - } else { - return gson.fromJson(reader, returnType); - } + /** + * Deserialize the given JSON InputStream to a Java object. + * + * @param Type + * @param inputStream The JSON InputStream + * @param returnType The type to deserialize into + * @return The deserialized Java object + */ + @SuppressWarnings("unchecked") + public static T deserialize(InputStream inputStream, Type returnType) throws IOException { + try (InputStreamReader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8)) { + if (isLenientOnJson) { + // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) + JsonReader jsonReader = new JsonReader(reader); + jsonReader.setLenient(true); + return gson.fromJson(jsonReader, returnType); + } else { + return gson.fromJson(reader, returnType); + } + } } - } - /** - * Gson TypeAdapter for Byte Array type - */ - public static class ByteArrayAdapter extends TypeAdapter { + /** + * Gson TypeAdapter for Byte Array type + */ + public static class ByteArrayAdapter extends TypeAdapter { + + @Override + public void write(JsonWriter out, byte[] value) throws IOException { + if (value == null) { + out.nullValue(); + } else { + out.value(ByteString.of(value).base64()); + } + } - @Override - public void write(JsonWriter out, byte[] value) throws IOException { - if (value == null) { - out.nullValue(); - } else { - out.value(ByteString.of(value).base64()); - } + @Override + public byte[] read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String bytesAsBase64 = in.nextString(); + ByteString byteString = ByteString.decodeBase64(bytesAsBase64); + return byteString.toByteArray(); + } + } } - @Override - public byte[] read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String bytesAsBase64 = in.nextString(); - ByteString byteString = ByteString.decodeBase64(bytesAsBase64); - return byteString.toByteArray(); - } - } - } + /** + * Gson TypeAdapter for JSR310 OffsetDateTime type + */ + public static class OffsetDateTimeTypeAdapter extends TypeAdapter { - /** - * Gson TypeAdapter for JSR310 OffsetDateTime type - */ - public static class OffsetDateTimeTypeAdapter extends TypeAdapter { + private DateTimeFormatter formatter; - private DateTimeFormatter formatter; + public OffsetDateTimeTypeAdapter() { + this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); + } - public OffsetDateTimeTypeAdapter() { - this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); - } + public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } - public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { - this.formatter = formatter; - } + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; + } - 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 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); + } + } } - @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 static class LocalDateTypeAdapter extends TypeAdapter { - /** - * Gson TypeAdapter for JSR310 LocalDate type - */ - public static class LocalDateTypeAdapter extends TypeAdapter { + private DateTimeFormatter formatter; - private DateTimeFormatter formatter; + public LocalDateTypeAdapter() { + this(DateTimeFormatter.ISO_LOCAL_DATE); + } - public LocalDateTypeAdapter() { - this(DateTimeFormatter.ISO_LOCAL_DATE); - } + public LocalDateTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } - public LocalDateTypeAdapter(DateTimeFormatter formatter) { - this.formatter = formatter; - } + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; + } - 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 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); + } + } } - @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 static void setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + offsetDateTimeTypeAdapter.setFormat(dateFormat); } - } - public static void setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - offsetDateTimeTypeAdapter.setFormat(dateFormat); - } - - public static void setLocalDateFormat(DateTimeFormatter dateFormat) { - localDateTypeAdapter.setFormat(dateFormat); - } + public static void setLocalDateFormat(DateTimeFormatter dateFormat) { + localDateTypeAdapter.setFormat(dateFormat); + } - /** - * 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 { + /** + * 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; + private DateFormat dateFormat; - public SqlDateTypeAdapter() {} + public SqlDateTypeAdapter() {} - public SqlDateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } + public SqlDateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } - public void setFormat(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(); + @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); + } } - 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()); + @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); + } } - 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 { + /** + * 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; + private DateFormat dateFormat; - public DateTypeAdapter() {} + public DateTypeAdapter() {} - public DateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } + public DateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } - public void setFormat(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); + @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); + } } - 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(); + @Override + public Date read(JsonReader in) throws IOException { try { - if (dateFormat != null) { - return dateFormat.parse(date); - } - return ISO8601Utils.parse(date, new ParsePosition(0)); - } catch (ParseException e) { - throw new JsonParseException(e); + 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); } } - } catch (IllegalArgumentException e) { - throw new JsonParseException(e); - } } - } - public static void setDateFormat(DateFormat dateFormat) { - dateTypeAdapter.setFormat(dateFormat); - } + public static void setDateFormat(DateFormat dateFormat) { + dateTypeAdapter.setFormat(dateFormat); + } - public static void setSqlDateFormat(DateFormat dateFormat) { - sqlDateTypeAdapter.setFormat(dateFormat); - } + public static void setSqlDateFormat(DateFormat dateFormat) { + sqlDateTypeAdapter.setFormat(dateFormat); + } } diff --git a/src/main/java/com/formkiq/client/invoker/Pair.java b/src/main/java/com/formkiq/client/invoker/Pair.java index a13f4452b..73b2f6f65 100644 --- a/src/main/java/com/formkiq/client/invoker/Pair.java +++ b/src/main/java/com/formkiq/client/invoker/Pair.java @@ -1,28 +1,19 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ package com.formkiq.client.invoker; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Pair { private final String name; private final String value; diff --git a/src/main/java/com/formkiq/client/invoker/ProgressRequestBody.java b/src/main/java/com/formkiq/client/invoker/ProgressRequestBody.java index 488782251..6e22df152 100644 --- a/src/main/java/com/formkiq/client/invoker/ProgressRequestBody.java +++ b/src/main/java/com/formkiq/client/invoker/ProgressRequestBody.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -33,48 +26,48 @@ public class ProgressRequestBody extends RequestBody { - private final RequestBody requestBody; - - private final ApiCallback callback; - - public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { - this.requestBody = requestBody; - this.callback = callback; - } - - @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; - callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); - } - }; - } + private final RequestBody requestBody; + + private final ApiCallback callback; + + public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { + this.requestBody = requestBody; + this.callback = callback; + } + + @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; + callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); + } + }; + } } diff --git a/src/main/java/com/formkiq/client/invoker/ProgressResponseBody.java b/src/main/java/com/formkiq/client/invoker/ProgressResponseBody.java index ca5f3b582..705249fac 100644 --- a/src/main/java/com/formkiq/client/invoker/ProgressResponseBody.java +++ b/src/main/java/com/formkiq/client/invoker/ProgressResponseBody.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -33,45 +26,45 @@ public class ProgressResponseBody extends ResponseBody { - private final ResponseBody responseBody; - private final ApiCallback callback; - private BufferedSource bufferedSource; + private final ResponseBody responseBody; + private final ApiCallback callback; + private BufferedSource bufferedSource; - public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { - this.responseBody = responseBody; - this.callback = callback; - } + public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { + this.responseBody = responseBody; + this.callback = callback; + } - @Override - public MediaType contentType() { - return responseBody.contentType(); - } + @Override + public MediaType contentType() { + return responseBody.contentType(); + } - @Override - public long contentLength() { - return responseBody.contentLength(); - } + @Override + public long contentLength() { + return responseBody.contentLength(); + } - @Override - public BufferedSource source() { - if (bufferedSource == null) { - bufferedSource = Okio.buffer(source(responseBody.source())); + @Override + public BufferedSource source() { + if (bufferedSource == null) { + bufferedSource = Okio.buffer(source(responseBody.source())); + } + return bufferedSource; } - return bufferedSource; - } - private Source source(Source source) { - return new ForwardingSource(source) { - long totalBytesRead = 0L; + 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; - callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); - return bytesRead; - } - }; - } + @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; + callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); + return bytesRead; + } + }; + } } diff --git a/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java b/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java index 4df362c59..b93b638a2 100644 --- a/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java +++ b/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -25,60 +18,55 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ServerConfiguration { - public String URL; - public String description; - public Map variables; + public String URL; + public String description; + public Map variables; - /** - * @param URL A URL to the target host. - * @param description A description of the host designated by the URL. - * @param variables A map between a variable name and its value. The value is used for - * substitution in the server's URL template. - */ - public ServerConfiguration(String URL, String description, - Map variables) { - this.URL = URL; - this.description = description; - this.variables = variables; - } + /** + * @param URL A URL to the target host. + * @param description A description of the host designated by the URL. + * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. + */ + public ServerConfiguration(String URL, String description, Map variables) { + this.URL = URL; + this.description = description; + this.variables = variables; + } - /** - * Format URL template using given variables. - * - * @param variables A map between a variable name and its value. - * @return Formatted URL. - */ - public String URL(Map variables) { - String url = this.URL; + /** + * Format URL template using given variables. + * + * @param variables A map between a variable name and its value. + * @return Formatted URL. + */ + public String URL(Map variables) { + String url = this.URL; - // go through variables and replace placeholders - for (Map.Entry variable : this.variables.entrySet()) { - String name = variable.getKey(); - ServerVariable serverVariable = variable.getValue(); - String value = serverVariable.defaultValue; + // go through variables and replace placeholders + for (Map.Entry variable: this.variables.entrySet()) { + String name = variable.getKey(); + ServerVariable serverVariable = variable.getValue(); + String value = serverVariable.defaultValue; - if (variables != null && variables.containsKey(name)) { - value = variables.get(name); - if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { - throw new IllegalArgumentException( - "The variable " + name + " in the server URL has invalid value " + value + "."); + if (variables != null && variables.containsKey(name)) { + value = variables.get(name); + if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { + throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); + } + } + url = url.replace("{" + name + "}", value); } - } - url = url.replace("{" + name + "}", value); + return url; } - return url; - } - /** - * Format URL template using default server variables. - * - * @return Formatted URL. - */ - public String URL() { - return URL(null); - } + /** + * Format URL template using default server variables. + * + * @return Formatted URL. + */ + public String URL() { + return URL(null); + } } diff --git a/src/main/java/com/formkiq/client/invoker/ServerVariable.java b/src/main/java/com/formkiq/client/invoker/ServerVariable.java index 0d1233ffd..1a24cb32d 100644 --- a/src/main/java/com/formkiq/client/invoker/ServerVariable.java +++ b/src/main/java/com/formkiq/client/invoker/ServerVariable.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -25,23 +18,20 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ServerVariable { - public String description; - public String defaultValue; - public HashSet enumValues = null; + public String description; + public String defaultValue; + public HashSet enumValues = null; - /** - * @param description A description for the server variable. - * @param defaultValue The default value to use for substitution. - * @param enumValues An enumeration of string values to be used if the substitution options are - * from a limited set. - */ - public ServerVariable(String description, String defaultValue, HashSet enumValues) { - this.description = description; - this.defaultValue = defaultValue; - this.enumValues = enumValues; - } + /** + * @param description A description for the server variable. + * @param defaultValue The default value to use for substitution. + * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. + */ + public ServerVariable(String description, String defaultValue, HashSet enumValues) { + this.description = description; + this.defaultValue = defaultValue; + this.enumValues = enumValues; + } } diff --git a/src/main/java/com/formkiq/client/invoker/StringUtil.java b/src/main/java/com/formkiq/client/invoker/StringUtil.java index 9779b6c8f..903854cd8 100644 --- a/src/main/java/com/formkiq/client/invoker/StringUtil.java +++ b/src/main/java/com/formkiq/client/invoker/StringUtil.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -23,9 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). @@ -49,11 +40,11 @@ public static boolean containsIgnoreCase(String[] array, String value) { /** * 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. + * 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 array The array of strings * @param separator The separator * @return the resulting string */ @@ -74,7 +65,7 @@ public static String join(String[] array, String separator) { /** * Join a list of strings with the given separator. * - * @param list The list of strings + * @param list The list of strings * @param separator The separator * @return the resulting string */ diff --git a/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java b/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java index ae8b78b6e..d0a5895c2 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -45,9 +38,7 @@ import okio.Buffer; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AWS4Auth implements Authentication { private AwsCredentials credentials; diff --git a/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java b/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java index 731296f85..faba9e07a 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -27,9 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; @@ -67,9 +58,8 @@ public void setApiKeyPrefix(String apiKeyPrefix) { } @Override - public void applyToParams(List queryParams, Map headerParams, - Map cookieParams, String payload, String method, URI uri) - throws ApiException { + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { if (apiKey == null) { return; } diff --git a/src/main/java/com/formkiq/client/invoker/auth/Authentication.java b/src/main/java/com/formkiq/client/invoker/auth/Authentication.java index ccb4f9aa7..bfb25b2ec 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/Authentication.java +++ b/src/main/java/com/formkiq/client/invoker/auth/Authentication.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -27,21 +20,18 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public interface Authentication { - /** - * Apply authentication settings to header and query params. - * - * @param queryParams List of query parameters - * @param headerParams Map of header parameters - * @param cookieParams Map of cookie parameters - * @param payload HTTP request body - * @param method HTTP method - * @param uri URI - * @throws ApiException if failed to update the parameters - */ - void applyToParams(List queryParams, Map headerParams, - Map cookieParams, String payload, String method, URI uri) throws ApiException; + /** + * Apply authentication settings to header and query params. + * + * @param queryParams List of query parameters + * @param headerParams Map of header parameters + * @param cookieParams Map of cookie parameters + * @param payload HTTP request body + * @param method HTTP method + * @param uri URI + * @throws ApiException if failed to update the parameters + */ + void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException; } diff --git a/src/main/java/com/formkiq/client/invoker/auth/HttpBasicAuth.java b/src/main/java/com/formkiq/client/invoker/auth/HttpBasicAuth.java index 61d846a6d..0196898ce 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/HttpBasicAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/HttpBasicAuth.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -30,33 +23,33 @@ import java.util.List; 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, - Map cookieParams, String payload, String method, URI uri) - throws ApiException { - if (username == null && password == null) { - return; + 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, Map cookieParams, + String payload, String method, URI uri) throws ApiException { + if (username == null && password == null) { + return; + } + headerParams.put("Authorization", Credentials.basic( + username == null ? "" : username, + password == null ? "" : password)); } - headerParams.put("Authorization", - Credentials.basic(username == null ? "" : username, password == null ? "" : password)); - } } diff --git a/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java b/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java index c4b858731..cdb31b2f5 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -29,9 +22,7 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; @@ -41,8 +32,7 @@ public HttpBearerAuth(String scheme) { } /** - * Gets the token, which together with the scheme, will be sent as the value of the Authorization - * header. + * Gets the token, which together with the scheme, will be sent as the value of the Authorization header. * * @return The bearer token */ @@ -51,8 +41,7 @@ public String getBearerToken() { } /** - * Sets the token, which together with the scheme, will be sent as the value of the Authorization - * header. + * Sets the token, which together with the scheme, will be sent as the value of the Authorization header. * * @param bearerToken The bearer token to send in the Authorization header */ @@ -61,8 +50,7 @@ public void setBearerToken(String bearerToken) { } /** - * Sets the supplier of tokens, which together with the scheme, will be sent as the value of the - * Authorization header. + * Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header. * * @param tokenSupplier The supplier of bearer tokens to send in the Authorization header */ @@ -71,16 +59,14 @@ public void setBearerToken(Supplier tokenSupplier) { } @Override - public void applyToParams(List queryParams, Map headerParams, - Map cookieParams, String payload, String method, URI uri) - throws ApiException { + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { String bearerToken = Optional.ofNullable(tokenSupplier).map(Supplier::get).orElse(null); if (bearerToken == null) { return; } - headerParams.put("Authorization", - (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); + headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); } private static String upperCaseBearer(String scheme) { diff --git a/src/main/java/com/formkiq/client/invoker/auth/OAuth.java b/src/main/java/com/formkiq/client/invoker/auth/OAuth.java index ad1fefa03..e212adfa1 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/OAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/OAuth.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -27,9 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OAuth implements Authentication { private String accessToken; @@ -42,9 +33,8 @@ public void setAccessToken(String accessToken) { } @Override - public void applyToParams(List queryParams, Map headerParams, - Map cookieParams, String payload, String method, URI uri) - throws ApiException { + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { if (accessToken != null) { headerParams.put("Authorization", "Bearer " + accessToken); } diff --git a/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java b/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java index 6091d04de..bb2527f55 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java +++ b/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -23,10 +16,10 @@ /** * OAuth flows that are supported by this client */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public enum OAuthFlow { - ACCESS_CODE, // called authorizationCode in OpenAPI 3.0 - IMPLICIT, PASSWORD, APPLICATION // called clientCredentials in OpenAPI 3.0 + ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 + IMPLICIT, + PASSWORD, + APPLICATION //called clientCredentials in OpenAPI 3.0 } diff --git a/src/main/java/com/formkiq/client/invoker/auth/OAuthOkHttpClient.java b/src/main/java/com/formkiq/client/invoker/auth/OAuthOkHttpClient.java index a6abccfe1..6718d7bd3 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/OAuthOkHttpClient.java +++ b/src/main/java/com/formkiq/client/invoker/auth/OAuthOkHttpClient.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ diff --git a/src/main/java/com/formkiq/client/invoker/auth/RetryingOAuth.java b/src/main/java/com/formkiq/client/invoker/auth/RetryingOAuth.java index a6abccfe1..6718d7bd3 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/RetryingOAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/RetryingOAuth.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ diff --git a/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java b/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java index 1a4a6ac90..e77385286 100644 --- a/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,131 +21,125 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - // @JsonValue - public Object getActualInstance() { - return instance; - } - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) { - this.instance = instance; - } - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf - * schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); - } else { - return object.getActualInstance(); + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + //@JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } } - } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); } - return o.toString().replace("\n", "\n "); - } - public boolean equals(Object o) { - if (this == o) { - return true; + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); } - if (o == null || getClass() != o.getClass()) { - return false; + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) - && Objects.equals(this.isNullable, a.isNullable) - && Objects.equals(this.schemaType, a.schemaType); - } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - if (Boolean.TRUE.equals(isNullable)) { - return Boolean.TRUE; - } else { - return Boolean.FALSE; + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + if (Boolean.TRUE.equals(isNullable)) { + return Boolean.TRUE; + } else { + return Boolean.FALSE; + } } - } diff --git a/src/main/java/com/formkiq/client/model/Activity.java b/src/main/java/com/formkiq/client/model/Activity.java index cafd88cee..04b54425c 100644 --- a/src/main/java/com/formkiq/client/model/Activity.java +++ b/src/main/java/com/formkiq/client/model/Activity.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * Activity */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Activity { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) @@ -131,7 +122,8 @@ public class Activity { @javax.annotation.Nullable private Map changes = new HashMap<>(); - public Activity() {} + public Activity() { + } public Activity resource(@javax.annotation.Nullable String resource) { this.resource = resource; @@ -140,7 +132,6 @@ public Activity resource(@javax.annotation.Nullable String resource) { /** * Resource of Activity - * * @return resource */ @javax.annotation.Nullable @@ -160,7 +151,6 @@ public Activity type(@javax.annotation.Nullable String type) { /** * Type of Activity - * * @return type */ @javax.annotation.Nullable @@ -180,7 +170,6 @@ public Activity source(@javax.annotation.Nullable String source) { /** * The Source of the activity - * * @return source */ @javax.annotation.Nullable @@ -200,7 +189,6 @@ public Activity sourceIpAddress(@javax.annotation.Nullable String sourceIpAddres /** * The Source IP address of the user - * * @return sourceIpAddress */ @javax.annotation.Nullable @@ -220,7 +208,6 @@ public Activity message(@javax.annotation.Nullable String message) { /** * The activity message - * * @return message */ @javax.annotation.Nullable @@ -240,7 +227,6 @@ public Activity status(@javax.annotation.Nullable ActivityStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -260,7 +246,6 @@ public Activity insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -280,7 +265,6 @@ public Activity userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -300,7 +284,6 @@ public Activity documentId(@javax.annotation.Nullable Object documentId) { /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -320,7 +303,6 @@ public Activity attributeKey(@javax.annotation.Nullable Object attributeKey) { /** * Document Attribute Key - * * @return attributeKey */ @javax.annotation.Nullable @@ -340,7 +322,6 @@ public Activity entityTypeId(@javax.annotation.Nullable String entityTypeId) { /** * Entity Type Identifier - * * @return entityTypeId */ @javax.annotation.Nullable @@ -360,7 +341,6 @@ public Activity entityId(@javax.annotation.Nullable String entityId) { /** * Entity Identifier - * * @return entityId */ @javax.annotation.Nullable @@ -388,7 +368,6 @@ public Activity putChangesItem(String key, UserActivityChanges changesItem) { /** * Get changes - * * @return changes */ @javax.annotation.Nullable @@ -411,36 +390,35 @@ public boolean equals(Object o) { return false; } Activity activity = (Activity) o; - return Objects.equals(this.resource, activity.resource) - && Objects.equals(this.type, activity.type) && Objects.equals(this.source, activity.source) - && Objects.equals(this.sourceIpAddress, activity.sourceIpAddress) - && Objects.equals(this.message, activity.message) - && Objects.equals(this.status, activity.status) - && Objects.equals(this.insertedDate, activity.insertedDate) - && Objects.equals(this.userId, activity.userId) - && Objects.equals(this.documentId, activity.documentId) - && Objects.equals(this.attributeKey, activity.attributeKey) - && Objects.equals(this.entityTypeId, activity.entityTypeId) - && Objects.equals(this.entityId, activity.entityId) - && Objects.equals(this.changes, activity.changes); + return Objects.equals(this.resource, activity.resource) && + Objects.equals(this.type, activity.type) && + Objects.equals(this.source, activity.source) && + Objects.equals(this.sourceIpAddress, activity.sourceIpAddress) && + Objects.equals(this.message, activity.message) && + Objects.equals(this.status, activity.status) && + Objects.equals(this.insertedDate, activity.insertedDate) && + Objects.equals(this.userId, activity.userId) && + Objects.equals(this.documentId, activity.documentId) && + Objects.equals(this.attributeKey, activity.attributeKey) && + Objects.equals(this.entityTypeId, activity.entityTypeId) && + Objects.equals(this.entityId, activity.entityId) && + Objects.equals(this.changes, activity.changes); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() - && Objects.deepEquals(a.get(), b.get())); + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { - return Objects.hash(resource, type, source, sourceIpAddress, message, status, insertedDate, - userId, documentId, attributeKey, entityTypeId, entityId, changes); + return Objects.hash(resource, type, source, sourceIpAddress, message, status, insertedDate, userId, documentId, attributeKey, entityTypeId, entityId, changes); } private static int hashCodeNullable(JsonNullable a) { if (a == null) { return 1; } - return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -465,7 +443,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -480,9 +459,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("resource", "type", "source", - "sourceIpAddress", "message", "status", "insertedDate", "userId", "documentId", - "attributeKey", "entityTypeId", "entityId", "changes")); + openapiFields = new HashSet(Arrays.asList("resource", "type", "source", "sourceIpAddress", "message", "status", "insertedDate", "userId", "documentId", "attributeKey", "entityTypeId", "entityId", "changes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -495,111 +472,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Activity */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Activity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Activity is not found in the empty JSON string", - Activity.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Activity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Activity is not found in the empty JSON string", Activity.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Activity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Activity` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Activity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Activity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) && !jsonObj.get("resource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) && !jsonObj.get("source").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); + } + if ((jsonObj.get("sourceIpAddress") != null && !jsonObj.get("sourceIpAddress").isJsonNull()) && !jsonObj.get("sourceIpAddress").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sourceIpAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sourceIpAddress").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + ActivityStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) && !jsonObj.get("entityTypeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityTypeId").toString())); + } + if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) && !jsonObj.get("entityId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) - && !jsonObj.get("resource").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `resource` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("resource").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) - && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `type` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("type").toString())); - } - if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) - && !jsonObj.get("source").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `source` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("source").toString())); - } - if ((jsonObj.get("sourceIpAddress") != null && !jsonObj.get("sourceIpAddress").isJsonNull()) - && !jsonObj.get("sourceIpAddress").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `sourceIpAddress` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("sourceIpAddress").toString())); - } - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - ActivityStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) - && !jsonObj.get("entityTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("entityTypeId").toString())); - } - if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) - && !jsonObj.get("entityId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("entityId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Activity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Activity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Activity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Activity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Activity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Activity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Activity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Activity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Activity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Activity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ActivityStatus.java b/src/main/java/com/formkiq/client/model/ActivityStatus.java index 6ff5a593b..995524872 100644 --- a/src/main/java/com/formkiq/client/model/ActivityStatus.java +++ b/src/main/java/com/formkiq/client/model/ActivityStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(ActivityStatus.Adapter.class) public enum ActivityStatus { - + COMPLETE("COMPLETE"), - + FAILED("FAILED"), - + UNAUTHORIZED("UNAUTHORIZED"); private String value; @@ -70,8 +63,7 @@ public static ActivityStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final ActivityStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final ActivityStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/AddAction.java b/src/main/java/com/formkiq/client/model/AddAction.java index a5e00c489..0f69c8fd5 100644 --- a/src/main/java/com/formkiq/client/model/AddAction.java +++ b/src/main/java/com/formkiq/client/model/AddAction.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * AddAction */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAction { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -78,7 +69,8 @@ public class AddAction { @javax.annotation.Nullable private String queueId; - public AddAction() {} + public AddAction() { + } public AddAction type(@javax.annotation.Nonnull DocumentActionType type) { this.type = type; @@ -87,7 +79,6 @@ public AddAction type(@javax.annotation.Nonnull DocumentActionType type) { /** * Get type - * * @return type */ @javax.annotation.Nonnull @@ -107,7 +98,6 @@ public AddAction parameters(@javax.annotation.Nullable AddActionParameters param /** * Get parameters - * * @return parameters */ @javax.annotation.Nullable @@ -127,7 +117,6 @@ public AddAction queueId(@javax.annotation.Nullable String queueId) { /** * Id of Queue - * * @return queueId */ @javax.annotation.Nullable @@ -150,9 +139,9 @@ public boolean equals(Object o) { return false; } AddAction addAction = (AddAction) o; - return Objects.equals(this.type, addAction.type) - && Objects.equals(this.parameters, addAction.parameters) - && Objects.equals(this.queueId, addAction.queueId); + return Objects.equals(this.type, addAction.type) && + Objects.equals(this.parameters, addAction.parameters) && + Objects.equals(this.queueId, addAction.queueId); } @Override @@ -172,7 +161,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -200,74 +190,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddAction */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddAction is not found in the empty JSON string", - AddAction.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddAction is not found in the empty JSON string", AddAction.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddAction.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddAction` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddAction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddAction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddAction.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddAction.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `type` + DocumentActionType.validateJsonElement(jsonObj.get("type")); + // validate the optional field `parameters` + if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull()) { + AddActionParameters.validateJsonElement(jsonObj.get("parameters")); + } + if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) && !jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `type` - DocumentActionType.validateJsonElement(jsonObj.get("type")); - // validate the optional field `parameters` - if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull()) { - AddActionParameters.validateJsonElement(jsonObj.get("parameters")); - } - if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) - && !jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("queueId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddAction.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddAction' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddAction.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddAction value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddAction read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddAction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddAction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddAction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddAction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddAction read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddActionParameters.java b/src/main/java/com/formkiq/client/model/AddActionParameters.java index 5b8572544..f6b5d0593 100644 --- a/src/main/java/com/formkiq/client/model/AddActionParameters.java +++ b/src/main/java/com/formkiq/client/model/AddActionParameters.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * AddActionParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddActionParameters { public static final String SERIALIZED_NAME_OCR_TEXTRACT_QUERIES = "ocrTextractQueries"; @SerializedName(SERIALIZED_NAME_OCR_TEXTRACT_QUERIES) @@ -91,8 +82,7 @@ public class AddActionParameters { @javax.annotation.Nullable private String ocrNumberOfPages; - public static final String SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT = - "addPdfDetectedCharactersAsText"; + public static final String SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT = "addPdfDetectedCharactersAsText"; @SerializedName(SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT) @javax.annotation.Nullable private String addPdfDetectedCharactersAsText; @@ -145,14 +135,13 @@ public static EngineEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final EngineEnum enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final EngineEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public EngineEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EngineEnum.fromValue(value); } } @@ -201,14 +190,13 @@ public static NotificationTypeEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return NotificationTypeEnum.fromValue(value); } } @@ -284,10 +272,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private String outputType; - public AddActionParameters() {} + public AddActionParameters() { + } - public AddActionParameters ocrTextractQueries( - @javax.annotation.Nullable List ocrTextractQueries) { + public AddActionParameters ocrTextractQueries(@javax.annotation.Nullable List ocrTextractQueries) { this.ocrTextractQueries = ocrTextractQueries; return this; } @@ -302,7 +290,6 @@ public AddActionParameters addOcrTextractQueriesItem(TextractQuery ocrTextractQu /** * Get ocrTextractQueries - * * @return ocrTextractQueries */ @javax.annotation.Nullable @@ -310,8 +297,7 @@ public List getOcrTextractQueries() { return ocrTextractQueries; } - public void setOcrTextractQueries( - @javax.annotation.Nullable List ocrTextractQueries) { + public void setOcrTextractQueries(@javax.annotation.Nullable List ocrTextractQueries) { this.ocrTextractQueries = ocrTextractQueries; } @@ -323,7 +309,6 @@ public AddActionParameters ocrParseTypes(@javax.annotation.Nullable String ocrPa /** * OCR: Parse types - TEXT, FORMS, TABLES, QUERIES (must include ocrTextractQueries) - * * @return ocrParseTypes */ @javax.annotation.Nullable @@ -343,7 +328,6 @@ public AddActionParameters ocrEngine(@javax.annotation.Nullable OcrEngine ocrEng /** * Get ocrEngine - * * @return ocrEngine */ @javax.annotation.Nullable @@ -363,7 +347,6 @@ public AddActionParameters ocrOutputType(@javax.annotation.Nullable OcrOutputTyp /** * Get ocrOutputType - * * @return ocrOutputType */ @javax.annotation.Nullable @@ -383,7 +366,6 @@ public AddActionParameters ocrNumberOfPages(@javax.annotation.Nullable String oc /** * Number of pages to OCR (from start) (-1 all) - * * @return ocrNumberOfPages */ @javax.annotation.Nullable @@ -396,15 +378,13 @@ public void setOcrNumberOfPages(@javax.annotation.Nullable String ocrNumberOfPag } - public AddActionParameters addPdfDetectedCharactersAsText( - @javax.annotation.Nullable String addPdfDetectedCharactersAsText) { + public AddActionParameters addPdfDetectedCharactersAsText(@javax.annotation.Nullable String addPdfDetectedCharactersAsText) { this.addPdfDetectedCharactersAsText = addPdfDetectedCharactersAsText; return this; } /** * OCR: For the rewriting of the PDF document, converting any image text to searchable text - * * @return addPdfDetectedCharactersAsText */ @javax.annotation.Nullable @@ -412,21 +392,18 @@ public String getAddPdfDetectedCharactersAsText() { return addPdfDetectedCharactersAsText; } - public void setAddPdfDetectedCharactersAsText( - @javax.annotation.Nullable String addPdfDetectedCharactersAsText) { + public void setAddPdfDetectedCharactersAsText(@javax.annotation.Nullable String addPdfDetectedCharactersAsText) { this.addPdfDetectedCharactersAsText = addPdfDetectedCharactersAsText; } - public AddActionParameters llmPromptEntityName( - @javax.annotation.Nullable String llmPromptEntityName) { + public AddActionParameters llmPromptEntityName(@javax.annotation.Nullable String llmPromptEntityName) { this.llmPromptEntityName = llmPromptEntityName; return this; } /** * DATA_CLASSIFICATION: Set the LLM Prompt Entity Name - * * @return llmPromptEntityName */ @javax.annotation.Nullable @@ -446,7 +423,6 @@ public AddActionParameters url(@javax.annotation.Nullable String url) { /** * Webhook: Callback URL - * * @return url */ @javax.annotation.Nullable @@ -466,7 +442,6 @@ public AddActionParameters characterMax(@javax.annotation.Nullable String charac /** * Fulltext: Maximum number of characters (-1 unlimited, Typesense defaults to 2048 characters) - * * @return characterMax */ @javax.annotation.Nullable @@ -486,7 +461,6 @@ public AddActionParameters engine(@javax.annotation.Nullable EngineEnum engine) /** * DocumentTagging: Engine to use for document tagging generation - * * @return engine */ @javax.annotation.Nullable @@ -499,15 +473,13 @@ public void setEngine(@javax.annotation.Nullable EngineEnum engine) { } - public AddActionParameters notificationType( - @javax.annotation.Nullable NotificationTypeEnum notificationType) { + public AddActionParameters notificationType(@javax.annotation.Nullable NotificationTypeEnum notificationType) { this.notificationType = notificationType; return this; } /** * Notification Type - * * @return notificationType */ @javax.annotation.Nullable @@ -515,8 +487,7 @@ public NotificationTypeEnum getNotificationType() { return notificationType; } - public void setNotificationType( - @javax.annotation.Nullable NotificationTypeEnum notificationType) { + public void setNotificationType(@javax.annotation.Nullable NotificationTypeEnum notificationType) { this.notificationType = notificationType; } @@ -528,7 +499,6 @@ public AddActionParameters notificationToCc(@javax.annotation.Nullable String no /** * Who to carbon copy on the notification to (comma-delimited list) - * * @return notificationToCc */ @javax.annotation.Nullable @@ -541,15 +511,13 @@ public void setNotificationToCc(@javax.annotation.Nullable String notificationTo } - public AddActionParameters notificationToBcc( - @javax.annotation.Nullable String notificationToBcc) { + public AddActionParameters notificationToBcc(@javax.annotation.Nullable String notificationToBcc) { this.notificationToBcc = notificationToBcc; return this; } /** * Who to blind carbon copy on the notification to (comma-delimited list) - * * @return notificationToBcc */ @javax.annotation.Nullable @@ -562,15 +530,13 @@ public void setNotificationToBcc(@javax.annotation.Nullable String notificationT } - public AddActionParameters notificationSubject( - @javax.annotation.Nullable String notificationSubject) { + public AddActionParameters notificationSubject(@javax.annotation.Nullable String notificationSubject) { this.notificationSubject = notificationSubject; return this; } /** * Subject of the notification - * * @return notificationSubject */ @javax.annotation.Nullable @@ -590,7 +556,6 @@ public AddActionParameters notificationText(@javax.annotation.Nullable String no /** * Text of the notification - * * @return notificationText */ @javax.annotation.Nullable @@ -610,7 +575,6 @@ public AddActionParameters notificationHtml(@javax.annotation.Nullable String no /** * Html of the notification - * * @return notificationHtml */ @javax.annotation.Nullable @@ -630,7 +594,6 @@ public AddActionParameters tags(@javax.annotation.Nullable String tags) { /** * DocumentTagging: Comma-deliminted list of keywords to generate tags for - * * @return tags */ @javax.annotation.Nullable @@ -650,7 +613,6 @@ public AddActionParameters mappingId(@javax.annotation.Nullable String mappingId /** * Id of Mapping - * * @return mappingId */ @javax.annotation.Nullable @@ -670,7 +632,6 @@ public AddActionParameters eventBusName(@javax.annotation.Nullable String eventB /** * The name or ARN of the event bus to receive the event - * * @return eventBusName */ @javax.annotation.Nullable @@ -690,7 +651,6 @@ public AddActionParameters width(@javax.annotation.Nullable String width) { /** * The width of the image to resize (or 'auto') - * * @return width */ @javax.annotation.Nullable @@ -710,7 +670,6 @@ public AddActionParameters height(@javax.annotation.Nullable String height) { /** * The height of the image to resize (or 'auto') - * * @return height */ @javax.annotation.Nullable @@ -730,7 +689,6 @@ public AddActionParameters path(@javax.annotation.Nullable String path) { /** * The path to use when creating resized document (optional) - * * @return path */ @javax.annotation.Nullable @@ -750,7 +708,6 @@ public AddActionParameters outputType(@javax.annotation.Nullable String outputTy /** * The output type of the image - * * @return outputType */ @javax.annotation.Nullable @@ -773,39 +730,34 @@ public boolean equals(Object o) { return false; } AddActionParameters addActionParameters = (AddActionParameters) o; - return Objects.equals(this.ocrTextractQueries, addActionParameters.ocrTextractQueries) - && Objects.equals(this.ocrParseTypes, addActionParameters.ocrParseTypes) - && Objects.equals(this.ocrEngine, addActionParameters.ocrEngine) - && Objects.equals(this.ocrOutputType, addActionParameters.ocrOutputType) - && Objects.equals(this.ocrNumberOfPages, addActionParameters.ocrNumberOfPages) - && Objects.equals(this.addPdfDetectedCharactersAsText, - addActionParameters.addPdfDetectedCharactersAsText) - && Objects.equals(this.llmPromptEntityName, addActionParameters.llmPromptEntityName) - && Objects.equals(this.url, addActionParameters.url) - && Objects.equals(this.characterMax, addActionParameters.characterMax) - && Objects.equals(this.engine, addActionParameters.engine) - && Objects.equals(this.notificationType, addActionParameters.notificationType) - && Objects.equals(this.notificationToCc, addActionParameters.notificationToCc) - && Objects.equals(this.notificationToBcc, addActionParameters.notificationToBcc) - && Objects.equals(this.notificationSubject, addActionParameters.notificationSubject) - && Objects.equals(this.notificationText, addActionParameters.notificationText) - && Objects.equals(this.notificationHtml, addActionParameters.notificationHtml) - && Objects.equals(this.tags, addActionParameters.tags) - && Objects.equals(this.mappingId, addActionParameters.mappingId) - && Objects.equals(this.eventBusName, addActionParameters.eventBusName) - && Objects.equals(this.width, addActionParameters.width) - && Objects.equals(this.height, addActionParameters.height) - && Objects.equals(this.path, addActionParameters.path) - && Objects.equals(this.outputType, addActionParameters.outputType); + return Objects.equals(this.ocrTextractQueries, addActionParameters.ocrTextractQueries) && + Objects.equals(this.ocrParseTypes, addActionParameters.ocrParseTypes) && + Objects.equals(this.ocrEngine, addActionParameters.ocrEngine) && + Objects.equals(this.ocrOutputType, addActionParameters.ocrOutputType) && + Objects.equals(this.ocrNumberOfPages, addActionParameters.ocrNumberOfPages) && + Objects.equals(this.addPdfDetectedCharactersAsText, addActionParameters.addPdfDetectedCharactersAsText) && + Objects.equals(this.llmPromptEntityName, addActionParameters.llmPromptEntityName) && + Objects.equals(this.url, addActionParameters.url) && + Objects.equals(this.characterMax, addActionParameters.characterMax) && + Objects.equals(this.engine, addActionParameters.engine) && + Objects.equals(this.notificationType, addActionParameters.notificationType) && + Objects.equals(this.notificationToCc, addActionParameters.notificationToCc) && + Objects.equals(this.notificationToBcc, addActionParameters.notificationToBcc) && + Objects.equals(this.notificationSubject, addActionParameters.notificationSubject) && + Objects.equals(this.notificationText, addActionParameters.notificationText) && + Objects.equals(this.notificationHtml, addActionParameters.notificationHtml) && + Objects.equals(this.tags, addActionParameters.tags) && + Objects.equals(this.mappingId, addActionParameters.mappingId) && + Objects.equals(this.eventBusName, addActionParameters.eventBusName) && + Objects.equals(this.width, addActionParameters.width) && + Objects.equals(this.height, addActionParameters.height) && + Objects.equals(this.path, addActionParameters.path) && + Objects.equals(this.outputType, addActionParameters.outputType); } @Override public int hashCode() { - return Objects.hash(ocrTextractQueries, ocrParseTypes, ocrEngine, ocrOutputType, - ocrNumberOfPages, addPdfDetectedCharactersAsText, llmPromptEntityName, url, characterMax, - engine, notificationType, notificationToCc, notificationToBcc, notificationSubject, - notificationText, notificationHtml, tags, mappingId, eventBusName, width, height, path, - outputType); + return Objects.hash(ocrTextractQueries, ocrParseTypes, ocrEngine, ocrOutputType, ocrNumberOfPages, addPdfDetectedCharactersAsText, llmPromptEntityName, url, characterMax, engine, notificationType, notificationToCc, notificationToBcc, notificationSubject, notificationText, notificationHtml, tags, mappingId, eventBusName, width, height, path, outputType); } @Override @@ -817,18 +769,15 @@ public String toString() { sb.append(" ocrEngine: ").append(toIndentedString(ocrEngine)).append("\n"); sb.append(" ocrOutputType: ").append(toIndentedString(ocrOutputType)).append("\n"); sb.append(" ocrNumberOfPages: ").append(toIndentedString(ocrNumberOfPages)).append("\n"); - sb.append(" addPdfDetectedCharactersAsText: ") - .append(toIndentedString(addPdfDetectedCharactersAsText)).append("\n"); - sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)) - .append("\n"); + sb.append(" addPdfDetectedCharactersAsText: ").append(toIndentedString(addPdfDetectedCharactersAsText)).append("\n"); + sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" characterMax: ").append(toIndentedString(characterMax)).append("\n"); sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append(" notificationToCc: ").append(toIndentedString(notificationToCc)).append("\n"); sb.append(" notificationToBcc: ").append(toIndentedString(notificationToBcc)).append("\n"); - sb.append(" notificationSubject: ").append(toIndentedString(notificationSubject)) - .append("\n"); + sb.append(" notificationSubject: ").append(toIndentedString(notificationSubject)).append("\n"); sb.append(" notificationText: ").append(toIndentedString(notificationText)).append("\n"); sb.append(" notificationHtml: ").append(toIndentedString(notificationHtml)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); @@ -843,7 +792,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -858,12 +808,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("ocrTextractQueries", "ocrParseTypes", "ocrEngine", "ocrOutputType", - "ocrNumberOfPages", "addPdfDetectedCharactersAsText", "llmPromptEntityName", "url", - "characterMax", "engine", "notificationType", "notificationToCc", "notificationToBcc", - "notificationSubject", "notificationText", "notificationHtml", "tags", "mappingId", - "eventBusName", "width", "height", "path", "outputType")); + openapiFields = new HashSet(Arrays.asList("ocrTextractQueries", "ocrParseTypes", "ocrEngine", "ocrOutputType", "ocrNumberOfPages", "addPdfDetectedCharactersAsText", "llmPromptEntityName", "url", "characterMax", "engine", "notificationType", "notificationToCc", "notificationToBcc", "notificationSubject", "notificationText", "notificationHtml", "tags", "mappingId", "eventBusName", "width", "height", "path", "outputType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -876,209 +821,138 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddActionParameters */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddActionParameters.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddActionParameters is not found in the empty JSON string", - AddActionParameters.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddActionParameters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddActionParameters is not found in the empty JSON string", AddActionParameters.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddActionParameters.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddActionParameters` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddActionParameters.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddActionParameters` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("ocrTextractQueries") != null - && !jsonObj.get("ocrTextractQueries").isJsonNull()) { - JsonArray jsonArrayocrTextractQueries = jsonObj.getAsJsonArray("ocrTextractQueries"); - if (jsonArrayocrTextractQueries != null) { - // ensure the json data is an array - if (!jsonObj.get("ocrTextractQueries").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `ocrTextractQueries` to be an array in the JSON string but got `%s`", - jsonObj.get("ocrTextractQueries").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("ocrTextractQueries") != null && !jsonObj.get("ocrTextractQueries").isJsonNull()) { + JsonArray jsonArrayocrTextractQueries = jsonObj.getAsJsonArray("ocrTextractQueries"); + if (jsonArrayocrTextractQueries != null) { + // ensure the json data is an array + if (!jsonObj.get("ocrTextractQueries").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrTextractQueries` to be an array in the JSON string but got `%s`", jsonObj.get("ocrTextractQueries").toString())); + } + + // validate the optional field `ocrTextractQueries` (array) + for (int i = 0; i < jsonArrayocrTextractQueries.size(); i++) { + TextractQuery.validateJsonElement(jsonArrayocrTextractQueries.get(i)); + }; } - - // validate the optional field `ocrTextractQueries` (array) - for (int i = 0; i < jsonArrayocrTextractQueries.size(); i++) { - TextractQuery.validateJsonElement(jsonArrayocrTextractQueries.get(i)); - } ; } - } - if ((jsonObj.get("ocrParseTypes") != null && !jsonObj.get("ocrParseTypes").isJsonNull()) - && !jsonObj.get("ocrParseTypes").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `ocrParseTypes` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("ocrParseTypes").toString())); - } - // validate the optional field `ocrEngine` - if (jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) { - OcrEngine.validateJsonElement(jsonObj.get("ocrEngine")); - } - // validate the optional field `ocrOutputType` - if (jsonObj.get("ocrOutputType") != null && !jsonObj.get("ocrOutputType").isJsonNull()) { - OcrOutputType.validateJsonElement(jsonObj.get("ocrOutputType")); - } - if ((jsonObj.get("ocrNumberOfPages") != null && !jsonObj.get("ocrNumberOfPages").isJsonNull()) - && !jsonObj.get("ocrNumberOfPages").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `ocrNumberOfPages` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("ocrNumberOfPages").toString())); - } - if ((jsonObj.get("addPdfDetectedCharactersAsText") != null - && !jsonObj.get("addPdfDetectedCharactersAsText").isJsonNull()) - && !jsonObj.get("addPdfDetectedCharactersAsText").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `addPdfDetectedCharactersAsText` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("addPdfDetectedCharactersAsText").toString())); - } - if ((jsonObj.get("llmPromptEntityName") != null - && !jsonObj.get("llmPromptEntityName").isJsonNull()) - && !jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("llmPromptEntityName").toString())); - } - if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) - && !jsonObj.get("url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `url` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("url").toString())); - } - if ((jsonObj.get("characterMax") != null && !jsonObj.get("characterMax").isJsonNull()) - && !jsonObj.get("characterMax").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `characterMax` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("characterMax").toString())); - } - if ((jsonObj.get("engine") != null && !jsonObj.get("engine").isJsonNull()) - && !jsonObj.get("engine").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `engine` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("engine").toString())); - } - // validate the optional field `engine` - if (jsonObj.get("engine") != null && !jsonObj.get("engine").isJsonNull()) { - EngineEnum.validateJsonElement(jsonObj.get("engine")); - } - if ((jsonObj.get("notificationType") != null && !jsonObj.get("notificationType").isJsonNull()) - && !jsonObj.get("notificationType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `notificationType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("notificationType").toString())); - } - // validate the optional field `notificationType` - if (jsonObj.get("notificationType") != null && !jsonObj.get("notificationType").isJsonNull()) { - NotificationTypeEnum.validateJsonElement(jsonObj.get("notificationType")); - } - if ((jsonObj.get("notificationToCc") != null && !jsonObj.get("notificationToCc").isJsonNull()) - && !jsonObj.get("notificationToCc").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `notificationToCc` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("notificationToCc").toString())); - } - if ((jsonObj.get("notificationToBcc") != null && !jsonObj.get("notificationToBcc").isJsonNull()) - && !jsonObj.get("notificationToBcc").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `notificationToBcc` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("notificationToBcc").toString())); - } - if ((jsonObj.get("notificationSubject") != null - && !jsonObj.get("notificationSubject").isJsonNull()) - && !jsonObj.get("notificationSubject").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `notificationSubject` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("notificationSubject").toString())); - } - if ((jsonObj.get("notificationText") != null && !jsonObj.get("notificationText").isJsonNull()) - && !jsonObj.get("notificationText").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `notificationText` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("notificationText").toString())); - } - if ((jsonObj.get("notificationHtml") != null && !jsonObj.get("notificationHtml").isJsonNull()) - && !jsonObj.get("notificationHtml").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `notificationHtml` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("notificationHtml").toString())); - } - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) - && !jsonObj.get("tags").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("tags").toString())); - } - if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) - && !jsonObj.get("mappingId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("mappingId").toString())); - } - if ((jsonObj.get("eventBusName") != null && !jsonObj.get("eventBusName").isJsonNull()) - && !jsonObj.get("eventBusName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eventBusName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("eventBusName").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) - && !jsonObj.get("outputType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `outputType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("outputType").toString())); - } + if ((jsonObj.get("ocrParseTypes") != null && !jsonObj.get("ocrParseTypes").isJsonNull()) && !jsonObj.get("ocrParseTypes").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrParseTypes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ocrParseTypes").toString())); + } + // validate the optional field `ocrEngine` + if (jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) { + OcrEngine.validateJsonElement(jsonObj.get("ocrEngine")); + } + // validate the optional field `ocrOutputType` + if (jsonObj.get("ocrOutputType") != null && !jsonObj.get("ocrOutputType").isJsonNull()) { + OcrOutputType.validateJsonElement(jsonObj.get("ocrOutputType")); + } + if ((jsonObj.get("ocrNumberOfPages") != null && !jsonObj.get("ocrNumberOfPages").isJsonNull()) && !jsonObj.get("ocrNumberOfPages").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrNumberOfPages` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ocrNumberOfPages").toString())); + } + if ((jsonObj.get("addPdfDetectedCharactersAsText") != null && !jsonObj.get("addPdfDetectedCharactersAsText").isJsonNull()) && !jsonObj.get("addPdfDetectedCharactersAsText").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `addPdfDetectedCharactersAsText` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addPdfDetectedCharactersAsText").toString())); + } + if ((jsonObj.get("llmPromptEntityName") != null && !jsonObj.get("llmPromptEntityName").isJsonNull()) && !jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("llmPromptEntityName").toString())); + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + if ((jsonObj.get("characterMax") != null && !jsonObj.get("characterMax").isJsonNull()) && !jsonObj.get("characterMax").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `characterMax` to be a primitive type in the JSON string but got `%s`", jsonObj.get("characterMax").toString())); + } + if ((jsonObj.get("engine") != null && !jsonObj.get("engine").isJsonNull()) && !jsonObj.get("engine").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `engine` to be a primitive type in the JSON string but got `%s`", jsonObj.get("engine").toString())); + } + // validate the optional field `engine` + if (jsonObj.get("engine") != null && !jsonObj.get("engine").isJsonNull()) { + EngineEnum.validateJsonElement(jsonObj.get("engine")); + } + if ((jsonObj.get("notificationType") != null && !jsonObj.get("notificationType").isJsonNull()) && !jsonObj.get("notificationType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationType").toString())); + } + // validate the optional field `notificationType` + if (jsonObj.get("notificationType") != null && !jsonObj.get("notificationType").isJsonNull()) { + NotificationTypeEnum.validateJsonElement(jsonObj.get("notificationType")); + } + if ((jsonObj.get("notificationToCc") != null && !jsonObj.get("notificationToCc").isJsonNull()) && !jsonObj.get("notificationToCc").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationToCc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationToCc").toString())); + } + if ((jsonObj.get("notificationToBcc") != null && !jsonObj.get("notificationToBcc").isJsonNull()) && !jsonObj.get("notificationToBcc").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationToBcc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationToBcc").toString())); + } + if ((jsonObj.get("notificationSubject") != null && !jsonObj.get("notificationSubject").isJsonNull()) && !jsonObj.get("notificationSubject").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationSubject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationSubject").toString())); + } + if ((jsonObj.get("notificationText") != null && !jsonObj.get("notificationText").isJsonNull()) && !jsonObj.get("notificationText").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationText` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationText").toString())); + } + if ((jsonObj.get("notificationHtml") != null && !jsonObj.get("notificationHtml").isJsonNull()) && !jsonObj.get("notificationHtml").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationHtml` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationHtml").toString())); + } + if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) && !jsonObj.get("mappingId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mappingId").toString())); + } + if ((jsonObj.get("eventBusName") != null && !jsonObj.get("eventBusName").isJsonNull()) && !jsonObj.get("eventBusName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eventBusName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eventBusName").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) && !jsonObj.get("outputType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `outputType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("outputType").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddActionParameters.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddActionParameters' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddActionParameters.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddActionParameters value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddActionParameters read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddActionParameters.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddActionParameters' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddActionParameters.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddActionParameters value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddActionParameters read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddApiKeyPermission.java b/src/main/java/com/formkiq/client/model/AddApiKeyPermission.java new file mode 100644 index 000000000..397773f29 --- /dev/null +++ b/src/main/java/com/formkiq/client/model/AddApiKeyPermission.java @@ -0,0 +1,84 @@ +/* + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.formkiq.client.model; + +import java.util.Objects; +import java.util.Locale; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * List of API permissions (defaults to READ / WRITE / DELETE) + */ +@JsonAdapter(AddApiKeyPermission.Adapter.class) +public enum AddApiKeyPermission { + + READ("READ"), + + WRITE("WRITE"), + + DELETE("DELETE"), + + GOVERN("GOVERN"); + + private String value; + + AddApiKeyPermission(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AddApiKeyPermission fromValue(String value) { + for (AddApiKeyPermission b : AddApiKeyPermission.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AddApiKeyPermission enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AddApiKeyPermission read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AddApiKeyPermission.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + AddApiKeyPermission.fromValue(value); + } +} + diff --git a/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java b/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java index 34aef89df..973d9504c 100644 --- a/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java +++ b/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -22,6 +15,7 @@ import java.util.Objects; import java.util.Locale; +import com.formkiq.client.model.AddApiKeyPermission; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -59,78 +53,25 @@ /** * AddApiKeyRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddApiKeyRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nullable private String name; - /** - * Gets or Sets permissions - */ - @JsonAdapter(PermissionsEnum.Adapter.class) - public enum PermissionsEnum { - READ("READ"), - - WRITE("WRITE"), - - DELETE("DELETE"), - - GOVERN("GOVERN"); - - private String value; - - PermissionsEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static PermissionsEnum fromValue(String value) { - for (PermissionsEnum b : PermissionsEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final PermissionsEnum enumeration) - throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public PermissionsEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return PermissionsEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PermissionsEnum.fromValue(value); - } - } + public static final String SERIALIZED_NAME_GROUPS = "groups"; + @SerializedName(SERIALIZED_NAME_GROUPS) + @javax.annotation.Nullable + private List groups = new ArrayList<>(); public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; @SerializedName(SERIALIZED_NAME_PERMISSIONS) @javax.annotation.Nullable - private List permissions = new ArrayList<>(); + private List permissions = new ArrayList<>(); - public AddApiKeyRequest() {} + public AddApiKeyRequest() { + } public AddApiKeyRequest name(@javax.annotation.Nullable String name) { this.name = name; @@ -139,7 +80,6 @@ public AddApiKeyRequest name(@javax.annotation.Nullable String name) { /** * Name of API Key - * * @return name */ @javax.annotation.Nullable @@ -152,13 +92,39 @@ public void setName(@javax.annotation.Nullable String name) { } - public AddApiKeyRequest permissions( - @javax.annotation.Nullable List permissions) { + public AddApiKeyRequest groups(@javax.annotation.Nullable List groups) { + this.groups = groups; + return this; + } + + public AddApiKeyRequest addGroupsItem(String groupsItem) { + if (this.groups == null) { + this.groups = new ArrayList<>(); + } + this.groups.add(groupsItem); + return this; + } + + /** + * Optional list of groups to add as custom claims to API Key + * @return groups + */ + @javax.annotation.Nullable + public List getGroups() { + return groups; + } + + public void setGroups(@javax.annotation.Nullable List groups) { + this.groups = groups; + } + + + public AddApiKeyRequest permissions(@javax.annotation.Nullable List permissions) { this.permissions = permissions; return this; } - public AddApiKeyRequest addPermissionsItem(PermissionsEnum permissionsItem) { + public AddApiKeyRequest addPermissionsItem(AddApiKeyPermission permissionsItem) { if (this.permissions == null) { this.permissions = new ArrayList<>(); } @@ -167,16 +133,15 @@ public AddApiKeyRequest addPermissionsItem(PermissionsEnum permissionsItem) { } /** - * List of permissions - * + * Get permissions * @return permissions */ @javax.annotation.Nullable - public List getPermissions() { + public List getPermissions() { return permissions; } - public void setPermissions(@javax.annotation.Nullable List permissions) { + public void setPermissions(@javax.annotation.Nullable List permissions) { this.permissions = permissions; } @@ -191,13 +156,14 @@ public boolean equals(Object o) { return false; } AddApiKeyRequest addApiKeyRequest = (AddApiKeyRequest) o; - return Objects.equals(this.name, addApiKeyRequest.name) - && Objects.equals(this.permissions, addApiKeyRequest.permissions); + return Objects.equals(this.name, addApiKeyRequest.name) && + Objects.equals(this.groups, addApiKeyRequest.groups) && + Objects.equals(this.permissions, addApiKeyRequest.permissions); } @Override public int hashCode() { - return Objects.hash(name, permissions); + return Objects.hash(name, groups, permissions); } @Override @@ -205,13 +171,15 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AddApiKeyRequest {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,7 +194,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "permissions")); + openapiFields = new HashSet(Arrays.asList("name", "groups", "permissions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -239,66 +207,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddApiKeyRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddApiKeyRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddApiKeyRequest is not found in the empty JSON string", - AddApiKeyRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddApiKeyRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddApiKeyRequest is not found in the empty JSON string", AddApiKeyRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddApiKeyRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddApiKeyRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddApiKeyRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddApiKeyRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull() && !jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() - && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `permissions` to be an array in the JSON string but got `%s`", - jsonObj.get("permissions").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddApiKeyRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddApiKeyRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddApiKeyRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddApiKeyRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddApiKeyRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddApiKeyRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddApiKeyRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddApiKeyRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddApiKeyRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddApiKeyRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java b/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java index ca6038781..0753dde12 100644 --- a/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java +++ b/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddApiKeyResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddApiKeyResponse { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; @SerializedName(SERIALIZED_NAME_API_KEY) @javax.annotation.Nullable private String apiKey; - public AddApiKeyResponse() {} + public AddApiKeyResponse() { + } public AddApiKeyResponse apiKey(@javax.annotation.Nullable String apiKey) { this.apiKey = apiKey; @@ -75,7 +67,6 @@ public AddApiKeyResponse apiKey(@javax.annotation.Nullable String apiKey) { /** * API Key Identifier - * * @return apiKey */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddApiKeyResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddApiKeyResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddApiKeyResponse is not found in the empty JSON string", - AddApiKeyResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddApiKeyResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddApiKeyResponse is not found in the empty JSON string", AddApiKeyResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddApiKeyResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddApiKeyResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddApiKeyResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddApiKeyResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiKey") != null && !jsonObj.get("apiKey").isJsonNull()) && !jsonObj.get("apiKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `apiKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiKey").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("apiKey") != null && !jsonObj.get("apiKey").isJsonNull()) - && !jsonObj.get("apiKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `apiKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("apiKey").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddApiKeyResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddApiKeyResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddApiKeyResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddApiKeyResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddApiKeyResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddApiKeyResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddApiKeyResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddApiKeyResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddApiKeyResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddApiKeyResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddAttribute.java b/src/main/java/com/formkiq/client/model/AddAttribute.java index 542fb992b..1a0956206 100644 --- a/src/main/java/com/formkiq/client/model/AddAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * AddAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -84,7 +75,8 @@ public class AddAttribute { @javax.annotation.Nullable private Watermark watermark; - public AddAttribute() {} + public AddAttribute() { + } public AddAttribute key(@javax.annotation.Nonnull String key) { this.key = key; @@ -93,7 +85,6 @@ public AddAttribute key(@javax.annotation.Nonnull String key) { /** * Attribute Key - * * @return key */ @javax.annotation.Nonnull @@ -113,7 +104,6 @@ public AddAttribute dataType(@javax.annotation.Nullable AttributeDataType dataTy /** * Get dataType - * * @return dataType */ @javax.annotation.Nullable @@ -133,7 +123,6 @@ public AddAttribute type(@javax.annotation.Nullable AttributeType type) { /** * Get type - * * @return type */ @javax.annotation.Nullable @@ -153,7 +142,6 @@ public AddAttribute watermark(@javax.annotation.Nullable Watermark watermark) { /** * Get watermark - * * @return watermark */ @javax.annotation.Nullable @@ -176,10 +164,10 @@ public boolean equals(Object o) { return false; } AddAttribute addAttribute = (AddAttribute) o; - return Objects.equals(this.key, addAttribute.key) - && Objects.equals(this.dataType, addAttribute.dataType) - && Objects.equals(this.type, addAttribute.type) - && Objects.equals(this.watermark, addAttribute.watermark); + return Objects.equals(this.key, addAttribute.key) && + Objects.equals(this.dataType, addAttribute.dataType) && + Objects.equals(this.type, addAttribute.type) && + Objects.equals(this.watermark, addAttribute.watermark); } @Override @@ -200,7 +188,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,79 +217,70 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddAttribute is not found in the empty JSON string", - AddAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddAttribute is not found in the empty JSON string", AddAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddAttribute.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddAttribute.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + // validate the optional field `dataType` + if (jsonObj.get("dataType") != null && !jsonObj.get("dataType").isJsonNull()) { + AttributeDataType.validateJsonElement(jsonObj.get("dataType")); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + AttributeType.validateJsonElement(jsonObj.get("type")); + } + // validate the optional field `watermark` + if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { + Watermark.validateJsonElement(jsonObj.get("watermark")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - // validate the optional field `dataType` - if (jsonObj.get("dataType") != null && !jsonObj.get("dataType").isJsonNull()) { - AttributeDataType.validateJsonElement(jsonObj.get("dataType")); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - AttributeType.validateJsonElement(jsonObj.get("type")); - } - // validate the optional field `watermark` - if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { - Watermark.validateJsonElement(jsonObj.get("watermark")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddAttributeRequest.java b/src/main/java/com/formkiq/client/model/AddAttributeRequest.java index dfec4fc0d..0f246ad4c 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddAttributeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @javax.annotation.Nonnull private AddAttribute attribute; - public AddAttributeRequest() {} + public AddAttributeRequest() { + } public AddAttributeRequest attribute(@javax.annotation.Nonnull AddAttribute attribute) { this.attribute = attribute; @@ -76,7 +68,6 @@ public AddAttributeRequest attribute(@javax.annotation.Nonnull AddAttribute attr /** * Get attribute - * * @return attribute */ @javax.annotation.Nonnull @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,64 +137,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddAttributeRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddAttributeRequest is not found in the empty JSON string", - AddAttributeRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddAttributeRequest is not found in the empty JSON string", AddAttributeRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddAttributeRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddAttributeRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddAttributeRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddAttributeRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddAttributeRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddAttributeRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `attribute` - AddAttribute.validateJsonElement(jsonObj.get("attribute")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `attribute` + AddAttribute.validateJsonElement(jsonObj.get("attribute")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddAttributeRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddAttributeRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddAttributeRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddAttributeRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddAttributeRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddAttributeRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddAttributeRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddAttributeRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddAttributeRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddAttributeRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java b/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java index 9a592cc18..3d99c175d 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * AddAttributeSchemaOptional */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttributeSchemaOptional { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; @SerializedName(SERIALIZED_NAME_MIN_NUMBER_OF_VALUES) @@ -84,17 +75,16 @@ public class AddAttributeSchemaOptional { @javax.annotation.Nullable private List allowedValues = new ArrayList<>(); - public AddAttributeSchemaOptional() {} + public AddAttributeSchemaOptional() { + } - public AddAttributeSchemaOptional minNumberOfValues( - @javax.annotation.Nullable BigDecimal minNumberOfValues) { + public AddAttributeSchemaOptional minNumberOfValues(@javax.annotation.Nullable BigDecimal minNumberOfValues) { this.minNumberOfValues = minNumberOfValues; return this; } /** * The minimum number of attribute values - * * @return minNumberOfValues */ @javax.annotation.Nullable @@ -107,15 +97,13 @@ public void setMinNumberOfValues(@javax.annotation.Nullable BigDecimal minNumber } - public AddAttributeSchemaOptional maxNumberOfValues( - @javax.annotation.Nullable BigDecimal maxNumberOfValues) { + public AddAttributeSchemaOptional maxNumberOfValues(@javax.annotation.Nullable BigDecimal maxNumberOfValues) { this.maxNumberOfValues = maxNumberOfValues; return this; } /** * The maximum number of attribute values - * * @return maxNumberOfValues */ @javax.annotation.Nullable @@ -135,7 +123,6 @@ public AddAttributeSchemaOptional attributeKey(@javax.annotation.Nullable String /** * Get attributeKey - * * @return attributeKey */ @javax.annotation.Nullable @@ -148,8 +135,7 @@ public void setAttributeKey(@javax.annotation.Nullable String attributeKey) { } - public AddAttributeSchemaOptional allowedValues( - @javax.annotation.Nullable List allowedValues) { + public AddAttributeSchemaOptional allowedValues(@javax.annotation.Nullable List allowedValues) { this.allowedValues = allowedValues; return this; } @@ -164,7 +150,6 @@ public AddAttributeSchemaOptional addAllowedValuesItem(String allowedValuesItem) /** * Only valid string values - * * @return allowedValues */ @javax.annotation.Nullable @@ -187,10 +172,10 @@ public boolean equals(Object o) { return false; } AddAttributeSchemaOptional addAttributeSchemaOptional = (AddAttributeSchemaOptional) o; - return Objects.equals(this.minNumberOfValues, addAttributeSchemaOptional.minNumberOfValues) - && Objects.equals(this.maxNumberOfValues, addAttributeSchemaOptional.maxNumberOfValues) - && Objects.equals(this.attributeKey, addAttributeSchemaOptional.attributeKey) - && Objects.equals(this.allowedValues, addAttributeSchemaOptional.allowedValues); + return Objects.equals(this.minNumberOfValues, addAttributeSchemaOptional.minNumberOfValues) && + Objects.equals(this.maxNumberOfValues, addAttributeSchemaOptional.maxNumberOfValues) && + Objects.equals(this.attributeKey, addAttributeSchemaOptional.attributeKey) && + Objects.equals(this.allowedValues, addAttributeSchemaOptional.allowedValues); } @Override @@ -211,7 +196,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,8 +212,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("minNumberOfValues", "maxNumberOfValues", "attributeKey", "allowedValues")); + openapiFields = new HashSet(Arrays.asList("minNumberOfValues", "maxNumberOfValues", "attributeKey", "allowedValues")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -240,66 +225,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddAttributeSchemaOptional */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddAttributeSchemaOptional.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddAttributeSchemaOptional is not found in the empty JSON string", - AddAttributeSchemaOptional.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddAttributeSchemaOptional.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddAttributeSchemaOptional is not found in the empty JSON string", AddAttributeSchemaOptional.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddAttributeSchemaOptional.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddAttributeSchemaOptional` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddAttributeSchemaOptional.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddAttributeSchemaOptional` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() && !jsonObj.get("allowedValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", jsonObj.get("allowedValues").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) - && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("attributeKey").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() - && !jsonObj.get("allowedValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", - jsonObj.get("allowedValues").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddAttributeSchemaOptional.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddAttributeSchemaOptional' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddAttributeSchemaOptional.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddAttributeSchemaOptional value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddAttributeSchemaOptional read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddAttributeSchemaOptional.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddAttributeSchemaOptional' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddAttributeSchemaOptional.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddAttributeSchemaOptional value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddAttributeSchemaOptional read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java b/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java index 53158bbc6..95a181044 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * AddAttributeSchemaRequired */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttributeSchemaRequired { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; @SerializedName(SERIALIZED_NAME_MIN_NUMBER_OF_VALUES) @@ -94,17 +85,16 @@ public class AddAttributeSchemaRequired { @javax.annotation.Nullable private List allowedValues = new ArrayList<>(); - public AddAttributeSchemaRequired() {} + public AddAttributeSchemaRequired() { + } - public AddAttributeSchemaRequired minNumberOfValues( - @javax.annotation.Nullable BigDecimal minNumberOfValues) { + public AddAttributeSchemaRequired minNumberOfValues(@javax.annotation.Nullable BigDecimal minNumberOfValues) { this.minNumberOfValues = minNumberOfValues; return this; } /** * The minimum number of attribute values - * * @return minNumberOfValues */ @javax.annotation.Nullable @@ -117,15 +107,13 @@ public void setMinNumberOfValues(@javax.annotation.Nullable BigDecimal minNumber } - public AddAttributeSchemaRequired maxNumberOfValues( - @javax.annotation.Nullable BigDecimal maxNumberOfValues) { + public AddAttributeSchemaRequired maxNumberOfValues(@javax.annotation.Nullable BigDecimal maxNumberOfValues) { this.maxNumberOfValues = maxNumberOfValues; return this; } /** * The maximum number of attribute values - * * @return maxNumberOfValues */ @javax.annotation.Nullable @@ -145,7 +133,6 @@ public AddAttributeSchemaRequired attributeKey(@javax.annotation.Nullable String /** * Get attributeKey - * * @return attributeKey */ @javax.annotation.Nullable @@ -165,7 +152,6 @@ public AddAttributeSchemaRequired defaultValue(@javax.annotation.Nullable String /** * Default value - * * @return defaultValue */ @javax.annotation.Nullable @@ -178,8 +164,7 @@ public void setDefaultValue(@javax.annotation.Nullable String defaultValue) { } - public AddAttributeSchemaRequired defaultValues( - @javax.annotation.Nullable List defaultValues) { + public AddAttributeSchemaRequired defaultValues(@javax.annotation.Nullable List defaultValues) { this.defaultValues = defaultValues; return this; } @@ -194,7 +179,6 @@ public AddAttributeSchemaRequired addDefaultValuesItem(String defaultValuesItem) /** * Default values - * * @return defaultValues */ @javax.annotation.Nullable @@ -207,8 +191,7 @@ public void setDefaultValues(@javax.annotation.Nullable List defaultValu } - public AddAttributeSchemaRequired allowedValues( - @javax.annotation.Nullable List allowedValues) { + public AddAttributeSchemaRequired allowedValues(@javax.annotation.Nullable List allowedValues) { this.allowedValues = allowedValues; return this; } @@ -223,7 +206,6 @@ public AddAttributeSchemaRequired addAllowedValuesItem(String allowedValuesItem) /** * Only valid string values - * * @return allowedValues */ @javax.annotation.Nullable @@ -246,18 +228,17 @@ public boolean equals(Object o) { return false; } AddAttributeSchemaRequired addAttributeSchemaRequired = (AddAttributeSchemaRequired) o; - return Objects.equals(this.minNumberOfValues, addAttributeSchemaRequired.minNumberOfValues) - && Objects.equals(this.maxNumberOfValues, addAttributeSchemaRequired.maxNumberOfValues) - && Objects.equals(this.attributeKey, addAttributeSchemaRequired.attributeKey) - && Objects.equals(this.defaultValue, addAttributeSchemaRequired.defaultValue) - && Objects.equals(this.defaultValues, addAttributeSchemaRequired.defaultValues) - && Objects.equals(this.allowedValues, addAttributeSchemaRequired.allowedValues); + return Objects.equals(this.minNumberOfValues, addAttributeSchemaRequired.minNumberOfValues) && + Objects.equals(this.maxNumberOfValues, addAttributeSchemaRequired.maxNumberOfValues) && + Objects.equals(this.attributeKey, addAttributeSchemaRequired.attributeKey) && + Objects.equals(this.defaultValue, addAttributeSchemaRequired.defaultValue) && + Objects.equals(this.defaultValues, addAttributeSchemaRequired.defaultValues) && + Objects.equals(this.allowedValues, addAttributeSchemaRequired.allowedValues); } @Override public int hashCode() { - return Objects.hash(minNumberOfValues, maxNumberOfValues, attributeKey, defaultValue, - defaultValues, allowedValues); + return Objects.hash(minNumberOfValues, maxNumberOfValues, attributeKey, defaultValue, defaultValues, allowedValues); } @Override @@ -275,7 +256,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -290,8 +272,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("minNumberOfValues", "maxNumberOfValues", - "attributeKey", "defaultValue", "defaultValues", "allowedValues")); + openapiFields = new HashSet(Arrays.asList("minNumberOfValues", "maxNumberOfValues", "attributeKey", "defaultValue", "defaultValues", "allowedValues")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -304,79 +285,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddAttributeSchemaRequired */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddAttributeSchemaRequired.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddAttributeSchemaRequired is not found in the empty JSON string", - AddAttributeSchemaRequired.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddAttributeSchemaRequired.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddAttributeSchemaRequired is not found in the empty JSON string", AddAttributeSchemaRequired.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddAttributeSchemaRequired.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddAttributeSchemaRequired` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddAttributeSchemaRequired.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddAttributeSchemaRequired` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); + } + if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) && !jsonObj.get("defaultValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() && !jsonObj.get("defaultValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", jsonObj.get("defaultValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() && !jsonObj.get("allowedValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", jsonObj.get("allowedValues").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) - && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("attributeKey").toString())); - } - if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) - && !jsonObj.get("defaultValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("defaultValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() - && !jsonObj.get("defaultValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", - jsonObj.get("defaultValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() - && !jsonObj.get("allowedValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", - jsonObj.get("allowedValues").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddAttributeSchemaRequired.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddAttributeSchemaRequired' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddAttributeSchemaRequired.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddAttributeSchemaRequired value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddAttributeSchemaRequired read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddAttributeSchemaRequired.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddAttributeSchemaRequired' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddAttributeSchemaRequired.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddAttributeSchemaRequired value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddAttributeSchemaRequired read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddCase.java b/src/main/java/com/formkiq/client/model/AddCase.java index 73a75506a..10222672a 100644 --- a/src/main/java/com/formkiq/client/model/AddCase.java +++ b/src/main/java/com/formkiq/client/model/AddCase.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -63,9 +56,7 @@ /** * AddCase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddCase { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -122,7 +113,8 @@ public class AddCase { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public AddCase() {} + public AddCase() { + } public AddCase name(@javax.annotation.Nonnull String name) { this.name = name; @@ -131,7 +123,6 @@ public AddCase name(@javax.annotation.Nonnull String name) { /** * Case Name - * * @return name */ @javax.annotation.Nonnull @@ -151,7 +142,6 @@ public AddCase status(@javax.annotation.Nullable CaseStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -171,7 +161,6 @@ public AddCase plannedStartDate(@javax.annotation.Nullable String plannedStartDa /** * Planned Start Date - * * @return plannedStartDate */ @javax.annotation.Nullable @@ -191,7 +180,6 @@ public AddCase startDate(@javax.annotation.Nullable String startDate) { /** * Start Date - * * @return startDate */ @javax.annotation.Nullable @@ -211,7 +199,6 @@ public AddCase endDate(@javax.annotation.Nullable String endDate) { /** * End Date - * * @return endDate */ @javax.annotation.Nullable @@ -231,7 +218,6 @@ public AddCase dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date - * * @return dueDate */ @javax.annotation.Nullable @@ -251,7 +237,6 @@ public AddCase description(@javax.annotation.Nullable String description) { /** * Case Description - * * @return description */ @javax.annotation.Nullable @@ -264,8 +249,7 @@ public void setDescription(@javax.annotation.Nullable String description) { } - public AddCase documentNumberFormat( - @javax.annotation.Nullable List documentNumberFormat) { + public AddCase documentNumberFormat(@javax.annotation.Nullable List documentNumberFormat) { this.documentNumberFormat = documentNumberFormat; return this; } @@ -280,7 +264,6 @@ public AddCase addDocumentNumberFormatItem(StringFormat documentNumberFormatItem /** * Format of Document Number - * * @return documentNumberFormat */ @javax.annotation.Nullable @@ -288,8 +271,7 @@ public List getDocumentNumberFormat() { return documentNumberFormat; } - public void setDocumentNumberFormat( - @javax.annotation.Nullable List documentNumberFormat) { + public void setDocumentNumberFormat(@javax.annotation.Nullable List documentNumberFormat) { this.documentNumberFormat = documentNumberFormat; } @@ -309,7 +291,6 @@ public AddCase addCaseNumberFormatItem(StringFormat caseNumberFormatItem) { /** * Format of Case Number - * * @return caseNumberFormat */ @javax.annotation.Nullable @@ -337,7 +318,6 @@ public AddCase putMetadataItem(String key, Object metadataItem) { /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -365,7 +345,6 @@ public AddCase addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds - * * @return documentIds */ @javax.annotation.Nullable @@ -388,22 +367,22 @@ public boolean equals(Object o) { return false; } AddCase addCase = (AddCase) o; - return Objects.equals(this.name, addCase.name) && Objects.equals(this.status, addCase.status) - && Objects.equals(this.plannedStartDate, addCase.plannedStartDate) - && Objects.equals(this.startDate, addCase.startDate) - && Objects.equals(this.endDate, addCase.endDate) - && Objects.equals(this.dueDate, addCase.dueDate) - && Objects.equals(this.description, addCase.description) - && Objects.equals(this.documentNumberFormat, addCase.documentNumberFormat) - && Objects.equals(this.caseNumberFormat, addCase.caseNumberFormat) - && Objects.equals(this.metadata, addCase.metadata) - && Objects.equals(this.documentIds, addCase.documentIds); + return Objects.equals(this.name, addCase.name) && + Objects.equals(this.status, addCase.status) && + Objects.equals(this.plannedStartDate, addCase.plannedStartDate) && + Objects.equals(this.startDate, addCase.startDate) && + Objects.equals(this.endDate, addCase.endDate) && + Objects.equals(this.dueDate, addCase.dueDate) && + Objects.equals(this.description, addCase.description) && + Objects.equals(this.documentNumberFormat, addCase.documentNumberFormat) && + Objects.equals(this.caseNumberFormat, addCase.caseNumberFormat) && + Objects.equals(this.metadata, addCase.metadata) && + Objects.equals(this.documentIds, addCase.documentIds); } @Override public int hashCode() { - return Objects.hash(name, status, plannedStartDate, startDate, endDate, dueDate, description, - documentNumberFormat, caseNumberFormat, metadata, documentIds); + return Objects.hash(name, status, plannedStartDate, startDate, endDate, dueDate, description, documentNumberFormat, caseNumberFormat, metadata, documentIds); } @Override @@ -417,8 +396,7 @@ public String toString() { sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); sb.append(" dueDate: ").append(toIndentedString(dueDate)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" documentNumberFormat: ").append(toIndentedString(documentNumberFormat)) - .append("\n"); + sb.append(" documentNumberFormat: ").append(toIndentedString(documentNumberFormat)).append("\n"); sb.append(" caseNumberFormat: ").append(toIndentedString(caseNumberFormat)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" documentIds: ").append(toIndentedString(documentIds)).append("\n"); @@ -427,7 +405,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -442,9 +421,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("name", "status", "plannedStartDate", "startDate", "endDate", "dueDate", - "description", "documentNumberFormat", "caseNumberFormat", "metadata", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "status", "plannedStartDate", "startDate", "endDate", "dueDate", "description", "documentNumberFormat", "caseNumberFormat", "metadata", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); @@ -457,141 +434,109 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddCase */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddCase is not found in the empty JSON string", - AddCase.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddCase is not found in the empty JSON string", AddCase.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddCase.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddCase` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddCase.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddCase` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddCase.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddCase.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - CaseStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) - && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) - && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) - && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) - && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("dueDate").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if (jsonObj.get("documentNumberFormat") != null - && !jsonObj.get("documentNumberFormat").isJsonNull()) { - JsonArray jsonArraydocumentNumberFormat = jsonObj.getAsJsonArray("documentNumberFormat"); - if (jsonArraydocumentNumberFormat != null) { - // ensure the json data is an array - if (!jsonObj.get("documentNumberFormat").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentNumberFormat` to be an array in the JSON string but got `%s`", - jsonObj.get("documentNumberFormat").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + CaseStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if (jsonObj.get("documentNumberFormat") != null && !jsonObj.get("documentNumberFormat").isJsonNull()) { + JsonArray jsonArraydocumentNumberFormat = jsonObj.getAsJsonArray("documentNumberFormat"); + if (jsonArraydocumentNumberFormat != null) { + // ensure the json data is an array + if (!jsonObj.get("documentNumberFormat").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentNumberFormat` to be an array in the JSON string but got `%s`", jsonObj.get("documentNumberFormat").toString())); + } + + // validate the optional field `documentNumberFormat` (array) + for (int i = 0; i < jsonArraydocumentNumberFormat.size(); i++) { + StringFormat.validateJsonElement(jsonArraydocumentNumberFormat.get(i)); + }; } - - // validate the optional field `documentNumberFormat` (array) - for (int i = 0; i < jsonArraydocumentNumberFormat.size(); i++) { - StringFormat.validateJsonElement(jsonArraydocumentNumberFormat.get(i)); - } ; } - } - if (jsonObj.get("caseNumberFormat") != null && !jsonObj.get("caseNumberFormat").isJsonNull()) { - JsonArray jsonArraycaseNumberFormat = jsonObj.getAsJsonArray("caseNumberFormat"); - if (jsonArraycaseNumberFormat != null) { - // ensure the json data is an array - if (!jsonObj.get("caseNumberFormat").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `caseNumberFormat` to be an array in the JSON string but got `%s`", - jsonObj.get("caseNumberFormat").toString())); + if (jsonObj.get("caseNumberFormat") != null && !jsonObj.get("caseNumberFormat").isJsonNull()) { + JsonArray jsonArraycaseNumberFormat = jsonObj.getAsJsonArray("caseNumberFormat"); + if (jsonArraycaseNumberFormat != null) { + // ensure the json data is an array + if (!jsonObj.get("caseNumberFormat").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caseNumberFormat` to be an array in the JSON string but got `%s`", jsonObj.get("caseNumberFormat").toString())); + } + + // validate the optional field `caseNumberFormat` (array) + for (int i = 0; i < jsonArraycaseNumberFormat.size(); i++) { + StringFormat.validateJsonElement(jsonArraycaseNumberFormat.get(i)); + }; } - - // validate the optional field `caseNumberFormat` (array) - for (int i = 0; i < jsonArraycaseNumberFormat.size(); i++) { - StringFormat.validateJsonElement(jsonArraycaseNumberFormat.get(i)); - } ; } - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() - && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentIds` to be an array in the JSON string but got `%s`", - jsonObj.get("documentIds").toString())); - } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddCase.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddCase' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddCase.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddCase value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddCase read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddCase.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddCase' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddCase.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddCase value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddCase read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddCaseRequest.java b/src/main/java/com/formkiq/client/model/AddCaseRequest.java index 769a01c53..f3fbe80c3 100644 --- a/src/main/java/com/formkiq/client/model/AddCaseRequest.java +++ b/src/main/java/com/formkiq/client/model/AddCaseRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddCaseRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddCaseRequest { public static final String SERIALIZED_NAME_CASE = "case"; @SerializedName(SERIALIZED_NAME_CASE) @javax.annotation.Nonnull private AddCase _case; - public AddCaseRequest() {} + public AddCaseRequest() { + } public AddCaseRequest _case(@javax.annotation.Nonnull AddCase _case) { this._case = _case; @@ -76,7 +68,6 @@ public AddCaseRequest _case(@javax.annotation.Nonnull AddCase _case) { /** * Get _case - * * @return _case */ @javax.annotation.Nonnull @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,64 +137,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddCaseRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddCaseRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddCaseRequest is not found in the empty JSON string", - AddCaseRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddCaseRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddCaseRequest is not found in the empty JSON string", AddCaseRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddCaseRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddCaseRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddCaseRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddCaseRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddCaseRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddCaseRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `case` - AddCase.validateJsonElement(jsonObj.get("case")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `case` + AddCase.validateJsonElement(jsonObj.get("case")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddCaseRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddCaseRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddCaseRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddCaseRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddCaseRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddCaseRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddCaseRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddCaseRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddCaseRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddCaseRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddCaseResponse.java b/src/main/java/com/formkiq/client/model/AddCaseResponse.java index 19a9313cc..28df9c9da 100644 --- a/src/main/java/com/formkiq/client/model/AddCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/AddCaseResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddCaseResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddCaseResponse { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; @SerializedName(SERIALIZED_NAME_CASE_ID) @javax.annotation.Nullable private String caseId; - public AddCaseResponse() {} + public AddCaseResponse() { + } public AddCaseResponse caseId(@javax.annotation.Nullable String caseId) { this.caseId = caseId; @@ -75,7 +67,6 @@ public AddCaseResponse caseId(@javax.annotation.Nullable String caseId) { /** * Case Identifier - * * @return caseId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddCaseResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddCaseResponse is not found in the empty JSON string", - AddCaseResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddCaseResponse is not found in the empty JSON string", AddCaseResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddCaseResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddCaseResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddCaseResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddCaseResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) && !jsonObj.get("caseId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("caseId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) - && !jsonObj.get("caseId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("caseId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddCaseResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddCaseResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddCaseResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddCaseResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddCaseResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddCaseResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddCaseResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddCaseResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddCaseResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddCaseResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddChildDocument.java b/src/main/java/com/formkiq/client/model/AddChildDocument.java index 3f3235224..345d0845b 100644 --- a/src/main/java/com/formkiq/client/model/AddChildDocument.java +++ b/src/main/java/com/formkiq/client/model/AddChildDocument.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * List of related documents */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddChildDocument { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -121,7 +112,8 @@ public class AddChildDocument { @javax.annotation.Nullable private List metadata = new ArrayList<>(); - public AddChildDocument() {} + public AddChildDocument() { + } public AddChildDocument path(@javax.annotation.Nullable String path) { this.path = path; @@ -130,7 +122,6 @@ public AddChildDocument path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -150,7 +141,6 @@ public AddChildDocument width(@javax.annotation.Nullable String width) { /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -170,7 +160,6 @@ public AddChildDocument height(@javax.annotation.Nullable String height) { /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -190,7 +179,6 @@ public AddChildDocument deepLinkPath(@javax.annotation.Nullable String deepLinkP /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -210,7 +198,6 @@ public AddChildDocument contentType(@javax.annotation.Nullable String contentTyp /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -230,7 +217,6 @@ public AddChildDocument checksumType(@javax.annotation.Nullable ChecksumType che /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -250,7 +236,6 @@ public AddChildDocument checksum(@javax.annotation.Nullable String checksum) { /** * The checksum value to validate the file against - * * @return checksum */ @javax.annotation.Nullable @@ -270,7 +255,6 @@ public AddChildDocument isBase64(@javax.annotation.Nullable Boolean isBase64) { /** * Is the content Base64-encoded? - * * @return isBase64 */ @javax.annotation.Nullable @@ -290,7 +274,6 @@ public AddChildDocument content(@javax.annotation.Nonnull String content) { /** * Document content - * * @return content */ @javax.annotation.Nonnull @@ -318,7 +301,6 @@ public AddChildDocument addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags - * * @return tags */ @javax.annotation.Nullable @@ -346,7 +328,6 @@ public AddChildDocument addMetadataItem(AddDocumentMetadata metadataItem) { /** * List of document Metadata - * * @return metadata */ @javax.annotation.Nullable @@ -369,23 +350,22 @@ public boolean equals(Object o) { return false; } AddChildDocument addChildDocument = (AddChildDocument) o; - return Objects.equals(this.path, addChildDocument.path) - && Objects.equals(this.width, addChildDocument.width) - && Objects.equals(this.height, addChildDocument.height) - && Objects.equals(this.deepLinkPath, addChildDocument.deepLinkPath) - && Objects.equals(this.contentType, addChildDocument.contentType) - && Objects.equals(this.checksumType, addChildDocument.checksumType) - && Objects.equals(this.checksum, addChildDocument.checksum) - && Objects.equals(this.isBase64, addChildDocument.isBase64) - && Objects.equals(this.content, addChildDocument.content) - && Objects.equals(this.tags, addChildDocument.tags) - && Objects.equals(this.metadata, addChildDocument.metadata); + return Objects.equals(this.path, addChildDocument.path) && + Objects.equals(this.width, addChildDocument.width) && + Objects.equals(this.height, addChildDocument.height) && + Objects.equals(this.deepLinkPath, addChildDocument.deepLinkPath) && + Objects.equals(this.contentType, addChildDocument.contentType) && + Objects.equals(this.checksumType, addChildDocument.checksumType) && + Objects.equals(this.checksum, addChildDocument.checksum) && + Objects.equals(this.isBase64, addChildDocument.isBase64) && + Objects.equals(this.content, addChildDocument.content) && + Objects.equals(this.tags, addChildDocument.tags) && + Objects.equals(this.metadata, addChildDocument.metadata); } @Override public int hashCode() { - return Objects.hash(path, width, height, deepLinkPath, contentType, checksumType, checksum, - isBase64, content, tags, metadata); + return Objects.hash(path, width, height, deepLinkPath, contentType, checksumType, checksum, isBase64, content, tags, metadata); } @Override @@ -408,7 +388,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -423,8 +404,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", - "contentType", "checksumType", "checksum", "isBase64", "content", "tags", "metadata")); + openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", "contentType", "checksumType", "checksum", "isBase64", "content", "tags", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("content")); @@ -437,139 +417,108 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddChildDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddChildDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddChildDocument is not found in the empty JSON string", - AddChildDocument.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddChildDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddChildDocument is not found in the empty JSON string", AddChildDocument.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddChildDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddChildDocument` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddChildDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddChildDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddChildDocument.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddChildDocument.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - if (!jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + if (!jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `metadata` to be an array in the JSON string but got `%s`", - jsonObj.get("metadata").toString())); + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + }; } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddChildDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddChildDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddChildDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddChildDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddChildDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddChildDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddChildDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddChildDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddChildDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddChildDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java b/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java index bdb7bd742..33f3e8e92 100644 --- a/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * AddChildDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddChildDocumentResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -78,7 +69,8 @@ public class AddChildDocumentResponse { @javax.annotation.Nullable private Map headers = new HashMap<>(); - public AddChildDocumentResponse() {} + public AddChildDocumentResponse() { + } public AddChildDocumentResponse documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -87,7 +79,6 @@ public AddChildDocumentResponse documentId(@javax.annotation.Nullable String doc /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -107,7 +98,6 @@ public AddChildDocumentResponse uploadUrl(@javax.annotation.Nullable String uplo /** * Url to upload document to - * * @return uploadUrl */ @javax.annotation.Nullable @@ -135,7 +125,6 @@ public AddChildDocumentResponse putHeadersItem(String key, Object headersItem) { /** * Get headers - * * @return headers */ @javax.annotation.Nullable @@ -158,9 +147,9 @@ public boolean equals(Object o) { return false; } AddChildDocumentResponse addChildDocumentResponse = (AddChildDocumentResponse) o; - return Objects.equals(this.documentId, addChildDocumentResponse.documentId) - && Objects.equals(this.uploadUrl, addChildDocumentResponse.uploadUrl) - && Objects.equals(this.headers, addChildDocumentResponse.headers); + return Objects.equals(this.documentId, addChildDocumentResponse.documentId) && + Objects.equals(this.uploadUrl, addChildDocumentResponse.uploadUrl) && + Objects.equals(this.headers, addChildDocumentResponse.headers); } @Override @@ -180,7 +169,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -208,65 +198,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddChildDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddChildDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddChildDocumentResponse is not found in the empty JSON string", - AddChildDocumentResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddChildDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddChildDocumentResponse is not found in the empty JSON string", AddChildDocumentResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddChildDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddChildDocumentResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddChildDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddChildDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) && !jsonObj.get("uploadUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uploadUrl").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) - && !jsonObj.get("uploadUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("uploadUrl").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddChildDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddChildDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddChildDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddChildDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddChildDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddChildDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddChildDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddChildDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddChildDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddChildDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddClassification.java b/src/main/java/com/formkiq/client/model/AddClassification.java index d2d386ffb..a92d7c243 100644 --- a/src/main/java/com/formkiq/client/model/AddClassification.java +++ b/src/main/java/com/formkiq/client/model/AddClassification.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * AddClassification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddClassification { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -72,7 +63,8 @@ public class AddClassification { @javax.annotation.Nullable private SetSchemaAttributes attributes; - public AddClassification() {} + public AddClassification() { + } public AddClassification name(@javax.annotation.Nullable String name) { this.name = name; @@ -81,7 +73,6 @@ public AddClassification name(@javax.annotation.Nullable String name) { /** * Name of Classification - * * @return name */ @javax.annotation.Nullable @@ -101,7 +92,6 @@ public AddClassification attributes(@javax.annotation.Nullable SetSchemaAttribut /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -124,8 +114,8 @@ public boolean equals(Object o) { return false; } AddClassification addClassification = (AddClassification) o; - return Objects.equals(this.name, addClassification.name) - && Objects.equals(this.attributes, addClassification.attributes); + return Objects.equals(this.name, addClassification.name) && + Objects.equals(this.attributes, addClassification.attributes); } @Override @@ -144,7 +134,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,63 +163,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddClassification */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddClassification.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddClassification is not found in the empty JSON string", - AddClassification.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddClassification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddClassification is not found in the empty JSON string", AddClassification.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddClassification.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddClassification` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddClassification.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddClassification` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + SetSchemaAttributes.validateJsonElement(jsonObj.get("attributes")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - SetSchemaAttributes.validateJsonElement(jsonObj.get("attributes")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddClassification.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddClassification' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddClassification.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddClassification value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddClassification read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddClassification.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddClassification' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddClassification.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddClassification value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddClassification read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddClassificationRequest.java b/src/main/java/com/formkiq/client/model/AddClassificationRequest.java index c40ef6214..c726aa6ce 100644 --- a/src/main/java/com/formkiq/client/model/AddClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/AddClassificationRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * AddClassificationRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddClassificationRequest { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION) @javax.annotation.Nullable private AddClassification classification; - public AddClassificationRequest() {} + public AddClassificationRequest() { + } - public AddClassificationRequest classification( - @javax.annotation.Nullable AddClassification classification) { + public AddClassificationRequest classification(@javax.annotation.Nullable AddClassification classification) { this.classification = classification; return this; } /** * Get classification - * * @return classification */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddClassificationRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddClassificationRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddClassificationRequest is not found in the empty JSON string", - AddClassificationRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddClassificationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddClassificationRequest is not found in the empty JSON string", AddClassificationRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddClassificationRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddClassificationRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddClassificationRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddClassificationRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `classification` + if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { + AddClassification.validateJsonElement(jsonObj.get("classification")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `classification` - if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { - AddClassification.validateJsonElement(jsonObj.get("classification")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddClassificationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddClassificationRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddClassificationRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddClassificationRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddClassificationRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddClassificationRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddClassificationRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddClassificationRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddClassificationRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddClassificationRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddClassificationResponse.java b/src/main/java/com/formkiq/client/model/AddClassificationResponse.java index 5370bf733..fbdf4d71e 100644 --- a/src/main/java/com/formkiq/client/model/AddClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/AddClassificationResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,26 +50,23 @@ /** * AddClassificationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddClassificationResponse { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION_ID) @javax.annotation.Nullable private String classificationId; - public AddClassificationResponse() {} + public AddClassificationResponse() { + } - public AddClassificationResponse classificationId( - @javax.annotation.Nullable String classificationId) { + public AddClassificationResponse classificationId(@javax.annotation.Nullable String classificationId) { this.classificationId = classificationId; return this; } /** * Classification Identifier - * * @return classificationId */ @javax.annotation.Nullable @@ -117,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddClassificationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddClassificationResponse is not found in the empty JSON string", - AddClassificationResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddClassificationResponse is not found in the empty JSON string", AddClassificationResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddClassificationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddClassificationResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddClassificationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddClassificationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) && !jsonObj.get("classificationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("classificationId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) - && !jsonObj.get("classificationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("classificationId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddClassificationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddClassificationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddClassificationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddClassificationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddClassificationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddClassificationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddClassificationResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddClassificationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddClassificationResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddClassificationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java index 054bd501b..3bf16559a 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,16 +53,15 @@ /** * AddDocumentActionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentActionsRequest { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @javax.annotation.Nullable private List actions = new ArrayList<>(); - public AddDocumentActionsRequest() {} + public AddDocumentActionsRequest() { + } public AddDocumentActionsRequest actions(@javax.annotation.Nullable List actions) { this.actions = actions; @@ -86,7 +78,6 @@ public AddDocumentActionsRequest addActionsItem(AddAction actionsItem) { /** * List of Actions - * * @return actions */ @javax.annotation.Nullable @@ -127,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,69 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentActionsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentActionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentActionsRequest is not found in the empty JSON string", - AddDocumentActionsRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentActionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentActionsRequest is not found in the empty JSON string", AddDocumentActionsRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentActionsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentActionsRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentActionsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentActionsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - if (jsonArrayactions != null) { - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `actions` to be an array in the JSON string but got `%s`", - jsonObj.get("actions").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { + JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); + if (jsonArrayactions != null) { + // ensure the json data is an array + if (!jsonObj.get("actions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); + } + + // validate the optional field `actions` (array) + for (int i = 0; i < jsonArrayactions.size(); i++) { + AddAction.validateJsonElement(jsonArrayactions.get(i)); + }; } - - // validate the optional field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - AddAction.validateJsonElement(jsonArrayactions.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentActionsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentActionsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentActionsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentActionsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentActionsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentActionsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentActionsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentActionsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java index b0c412cb3..ccfe9da65 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddDocumentActionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentActionsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentActionsResponse() {} + public AddDocumentActionsResponse() { + } public AddDocumentActionsResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public AddDocumentActionsResponse message(@javax.annotation.Nullable String mess /** * Document Action message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentActionsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentActionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentActionsResponse is not found in the empty JSON string", - AddDocumentActionsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentActionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentActionsResponse is not found in the empty JSON string", AddDocumentActionsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentActionsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentActionsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentActionsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentActionsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentActionsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentActionsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentActionsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentActionsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentActionsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentActionsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentActionsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentActionsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java index 2b4a3ecb5..9e98ab3d9 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddDocumentActionsRetryResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentActionsRetryResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentActionsRetryResponse() {} + public AddDocumentActionsRetryResponse() { + } public AddDocumentActionsRetryResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public AddDocumentActionsRetryResponse message(@javax.annotation.Nullable String /** * Document Action message - * * @return message */ @javax.annotation.Nullable @@ -97,8 +88,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocumentActionsRetryResponse addDocumentActionsRetryResponse = - (AddDocumentActionsRetryResponse) o; + AddDocumentActionsRetryResponse addDocumentActionsRetryResponse = (AddDocumentActionsRetryResponse) o; return Objects.equals(this.message, addDocumentActionsRetryResponse.message); } @@ -117,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,66 +133,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddDocumentActionsRetryResponse + * @throws IOException if the JSON Element is invalid with respect to AddDocumentActionsRetryResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentActionsRetryResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentActionsRetryResponse is not found in the empty JSON string", - AddDocumentActionsRetryResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentActionsRetryResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentActionsRetryResponse is not found in the empty JSON string", AddDocumentActionsRetryResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentActionsRetryResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentActionsRetryResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentActionsRetryResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentActionsRetryResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentActionsRetryResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentActionsRetryResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsRetryResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentActionsRetryResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentActionsRetryResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentActionsRetryResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentActionsRetryResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsRetryResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentActionsRetryResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentActionsRetryResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -210,8 +189,7 @@ public AddDocumentActionsRetryResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddDocumentActionsRetryResponse - * @throws IOException if the JSON string is invalid with respect to - * AddDocumentActionsRetryResponse + * @throws IOException if the JSON string is invalid with respect to AddDocumentActionsRetryResponse */ public static AddDocumentActionsRetryResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocumentActionsRetryResponse.class); diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java b/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java index c9a004e40..1d5a048cf 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -75,342 +68,305 @@ import com.formkiq.client.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttribute extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AddDocumentAttribute.class.getName()); + private static final Logger log = Logger.getLogger(AddDocumentAttribute.class.getName()); - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAddDocumentAttributeStandard = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeStandard.class)); - final TypeAdapter adapterAddDocumentAttributeClassification = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeClassification.class)); - final TypeAdapter adapterAddDocumentAttributeRelationship = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeRelationship.class)); - final TypeAdapter adapterAddDocumentAttributeEntity = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeEntity.class)); - - return (TypeAdapter) new TypeAdapter() { + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") @Override - public void write(JsonWriter out, AddDocumentAttribute value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AddDocumentAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterAddDocumentAttributeStandard = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeStandard.class)); + final TypeAdapter adapterAddDocumentAttributeClassification = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeClassification.class)); + final TypeAdapter adapterAddDocumentAttributeRelationship = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeRelationship.class)); + final TypeAdapter adapterAddDocumentAttributeEntity = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeEntity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttribute value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `AddDocumentAttributeStandard` + if (value.getActualInstance() instanceof AddDocumentAttributeStandard) { + JsonElement element = adapterAddDocumentAttributeStandard.toJsonTree((AddDocumentAttributeStandard)value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + // check if the actual instance is of the type `AddDocumentAttributeClassification` + if (value.getActualInstance() instanceof AddDocumentAttributeClassification) { + JsonElement element = adapterAddDocumentAttributeClassification.toJsonTree((AddDocumentAttributeClassification)value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + // check if the actual instance is of the type `AddDocumentAttributeRelationship` + if (value.getActualInstance() instanceof AddDocumentAttributeRelationship) { + JsonElement element = adapterAddDocumentAttributeRelationship.toJsonTree((AddDocumentAttributeRelationship)value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + // check if the actual instance is of the type `AddDocumentAttributeEntity` + if (value.getActualInstance() instanceof AddDocumentAttributeEntity) { + JsonElement element = adapterAddDocumentAttributeEntity.toJsonTree((AddDocumentAttributeEntity)value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + throw new IOException("Failed to serialize as the type doesn't match oneOf schemas: AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard"); + } + + @Override + public AddDocumentAttribute read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + int match = 0; + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize AddDocumentAttributeStandard + try { + // validate the JSON object to see if any exception is thrown + AddDocumentAttributeStandard.validateJsonElement(jsonElement); + actualAdapter = adapterAddDocumentAttributeStandard; + match++; + log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeStandard'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeStandard failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeStandard'", e); + } + // deserialize AddDocumentAttributeClassification + try { + // validate the JSON object to see if any exception is thrown + AddDocumentAttributeClassification.validateJsonElement(jsonElement); + actualAdapter = adapterAddDocumentAttributeClassification; + match++; + log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeClassification'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeClassification failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeClassification'", e); + } + // deserialize AddDocumentAttributeRelationship + try { + // validate the JSON object to see if any exception is thrown + AddDocumentAttributeRelationship.validateJsonElement(jsonElement); + actualAdapter = adapterAddDocumentAttributeRelationship; + match++; + log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeRelationship'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeRelationship failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeRelationship'", e); + } + // deserialize AddDocumentAttributeEntity + try { + // validate the JSON object to see if any exception is thrown + AddDocumentAttributeEntity.validateJsonElement(jsonElement); + actualAdapter = adapterAddDocumentAttributeEntity; + match++; + log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeEntity'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeEntity failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeEntity'", e); + } + + if (match == 1) { + AddDocumentAttribute ret = new AddDocumentAttribute(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } + + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for AddDocumentAttribute: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); + } + }.nullSafe(); + } + } - // check if the actual instance is of the type `AddDocumentAttributeStandard` - if (value.getActualInstance() instanceof AddDocumentAttributeStandard) { - JsonElement element = adapterAddDocumentAttributeStandard - .toJsonTree((AddDocumentAttributeStandard) value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `AddDocumentAttributeClassification` - if (value.getActualInstance() instanceof AddDocumentAttributeClassification) { - JsonElement element = adapterAddDocumentAttributeClassification - .toJsonTree((AddDocumentAttributeClassification) value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `AddDocumentAttributeRelationship` - if (value.getActualInstance() instanceof AddDocumentAttributeRelationship) { - JsonElement element = adapterAddDocumentAttributeRelationship - .toJsonTree((AddDocumentAttributeRelationship) value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `AddDocumentAttributeEntity` - if (value.getActualInstance() instanceof AddDocumentAttributeEntity) { - JsonElement element = adapterAddDocumentAttributeEntity - .toJsonTree((AddDocumentAttributeEntity) value.getActualInstance()); - elementAdapter.write(out, element); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap>(); + + public AddDocumentAttribute() { + super("oneOf", Boolean.FALSE); + } + + public AddDocumentAttribute(Object o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AddDocumentAttributeStandard", AddDocumentAttributeStandard.class); + schemas.put("AddDocumentAttributeClassification", AddDocumentAttributeClassification.class); + schemas.put("AddDocumentAttributeRelationship", AddDocumentAttributeRelationship.class); + schemas.put("AddDocumentAttributeEntity", AddDocumentAttributeEntity.class); + } + + @Override + public Map> getSchemas() { + return AddDocumentAttribute.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard + * + * It could be an instance of the 'oneOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof AddDocumentAttributeStandard) { + super.setActualInstance(instance); return; - } - throw new IOException( - "Failed to serialize as the type doesn't match oneOf schemas: AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard"); } - @Override - public AddDocumentAttribute read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); + if (instance instanceof AddDocumentAttributeClassification) { + super.setActualInstance(instance); + return; + } - int match = 0; - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; + if (instance instanceof AddDocumentAttributeRelationship) { + super.setActualInstance(instance); + return; + } - // deserialize AddDocumentAttributeStandard - try { - // validate the JSON object to see if any exception is thrown - AddDocumentAttributeStandard.validateJsonElement(jsonElement); - actualAdapter = adapterAddDocumentAttributeStandard; - match++; - log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeStandard'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddDocumentAttributeStandard failed with `%s`.", - e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeStandard'", - e); - } - // deserialize AddDocumentAttributeClassification - try { - // validate the JSON object to see if any exception is thrown - AddDocumentAttributeClassification.validateJsonElement(jsonElement); - actualAdapter = adapterAddDocumentAttributeClassification; - match++; - log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeClassification'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddDocumentAttributeClassification failed with `%s`.", - e.getMessage())); - log.log(Level.FINER, - "Input data does not match schema 'AddDocumentAttributeClassification'", e); - } - // deserialize AddDocumentAttributeRelationship - try { - // validate the JSON object to see if any exception is thrown - AddDocumentAttributeRelationship.validateJsonElement(jsonElement); - actualAdapter = adapterAddDocumentAttributeRelationship; - match++; - log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeRelationship'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddDocumentAttributeRelationship failed with `%s`.", - e.getMessage())); - log.log(Level.FINER, - "Input data does not match schema 'AddDocumentAttributeRelationship'", e); - } - // deserialize AddDocumentAttributeEntity - try { - // validate the JSON object to see if any exception is thrown - AddDocumentAttributeEntity.validateJsonElement(jsonElement); - actualAdapter = adapterAddDocumentAttributeEntity; - match++; - log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeEntity'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddDocumentAttributeEntity failed with `%s`.", - e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeEntity'", - e); - } - - if (match == 1) { - AddDocumentAttribute ret = new AddDocumentAttribute(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } - - throw new IOException(String.format(Locale.ROOT, - "Failed deserialization for AddDocumentAttribute: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", - match, errorMessages, jsonElement.toString())); + if (instance instanceof AddDocumentAttributeEntity) { + super.setActualInstance(instance); + return; } - }.nullSafe(); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap>(); - - public AddDocumentAttribute() { - super("oneOf", Boolean.FALSE); - } - - public AddDocumentAttribute(Object o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AddDocumentAttributeStandard", AddDocumentAttributeStandard.class); - schemas.put("AddDocumentAttributeClassification", AddDocumentAttributeClassification.class); - schemas.put("AddDocumentAttributeRelationship", AddDocumentAttributeRelationship.class); - schemas.put("AddDocumentAttributeEntity", AddDocumentAttributeEntity.class); - } - - @Override - public Map> getSchemas() { - return AddDocumentAttribute.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AddDocumentAttributeClassification, - * AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard - * - * It could be an instance of the 'oneOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof AddDocumentAttributeStandard) { - super.setActualInstance(instance); - return; + + throw new RuntimeException("Invalid instance type. Must be AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard"); } - if (instance instanceof AddDocumentAttributeClassification) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance, which can be the following: + * AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard + * + * @return The actual instance (AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); } - if (instance instanceof AddDocumentAttributeRelationship) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AddDocumentAttributeStandard`. If the actual instance is not `AddDocumentAttributeStandard`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AddDocumentAttributeStandard` + * @throws ClassCastException if the instance is not `AddDocumentAttributeStandard` + */ + public AddDocumentAttributeStandard getAddDocumentAttributeStandard() throws ClassCastException { + return (AddDocumentAttributeStandard)super.getActualInstance(); } - if (instance instanceof AddDocumentAttributeEntity) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AddDocumentAttributeClassification`. If the actual instance is not `AddDocumentAttributeClassification`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AddDocumentAttributeClassification` + * @throws ClassCastException if the instance is not `AddDocumentAttributeClassification` + */ + public AddDocumentAttributeClassification getAddDocumentAttributeClassification() throws ClassCastException { + return (AddDocumentAttributeClassification)super.getActualInstance(); } - throw new RuntimeException( - "Invalid instance type. Must be AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard"); - } - - /** - * Get the actual instance, which can be the following: AddDocumentAttributeClassification, - * AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard - * - * @return The actual instance (AddDocumentAttributeClassification, AddDocumentAttributeEntity, - * AddDocumentAttributeRelationship, AddDocumentAttributeStandard) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AddDocumentAttributeStandard`. If the actual instance is not - * `AddDocumentAttributeStandard`, the ClassCastException will be thrown. - * - * @return The actual instance of `AddDocumentAttributeStandard` - * @throws ClassCastException if the instance is not `AddDocumentAttributeStandard` - */ - public AddDocumentAttributeStandard getAddDocumentAttributeStandard() throws ClassCastException { - return (AddDocumentAttributeStandard) super.getActualInstance(); - } - - /** - * Get the actual instance of `AddDocumentAttributeClassification`. If the actual instance is not - * `AddDocumentAttributeClassification`, the ClassCastException will be thrown. - * - * @return The actual instance of `AddDocumentAttributeClassification` - * @throws ClassCastException if the instance is not `AddDocumentAttributeClassification` - */ - public AddDocumentAttributeClassification getAddDocumentAttributeClassification() - throws ClassCastException { - return (AddDocumentAttributeClassification) super.getActualInstance(); - } - - /** - * Get the actual instance of `AddDocumentAttributeRelationship`. If the actual instance is not - * `AddDocumentAttributeRelationship`, the ClassCastException will be thrown. - * - * @return The actual instance of `AddDocumentAttributeRelationship` - * @throws ClassCastException if the instance is not `AddDocumentAttributeRelationship` - */ - public AddDocumentAttributeRelationship getAddDocumentAttributeRelationship() - throws ClassCastException { - return (AddDocumentAttributeRelationship) super.getActualInstance(); - } - - /** - * Get the actual instance of `AddDocumentAttributeEntity`. If the actual instance is not - * `AddDocumentAttributeEntity`, the ClassCastException will be thrown. - * - * @return The actual instance of `AddDocumentAttributeEntity` - * @throws ClassCastException if the instance is not `AddDocumentAttributeEntity` - */ - public AddDocumentAttributeEntity getAddDocumentAttributeEntity() throws ClassCastException { - return (AddDocumentAttributeEntity) super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttribute - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate oneOf schemas one by one - int validCount = 0; - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with AddDocumentAttributeStandard - try { - AddDocumentAttributeStandard.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddDocumentAttributeStandard failed with `%s`.", e.getMessage())); - // continue to the next one + /** + * Get the actual instance of `AddDocumentAttributeRelationship`. If the actual instance is not `AddDocumentAttributeRelationship`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AddDocumentAttributeRelationship` + * @throws ClassCastException if the instance is not `AddDocumentAttributeRelationship` + */ + public AddDocumentAttributeRelationship getAddDocumentAttributeRelationship() throws ClassCastException { + return (AddDocumentAttributeRelationship)super.getActualInstance(); } - // validate the json string with AddDocumentAttributeClassification - try { - AddDocumentAttributeClassification.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddDocumentAttributeClassification failed with `%s`.", - e.getMessage())); - // continue to the next one + + /** + * Get the actual instance of `AddDocumentAttributeEntity`. If the actual instance is not `AddDocumentAttributeEntity`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AddDocumentAttributeEntity` + * @throws ClassCastException if the instance is not `AddDocumentAttributeEntity` + */ + public AddDocumentAttributeEntity getAddDocumentAttributeEntity() throws ClassCastException { + return (AddDocumentAttributeEntity)super.getActualInstance(); } - // validate the json string with AddDocumentAttributeRelationship - try { - AddDocumentAttributeRelationship.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddDocumentAttributeRelationship failed with `%s`.", - e.getMessage())); - // continue to the next one + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttribute + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate oneOf schemas one by one + int validCount = 0; + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with AddDocumentAttributeStandard + try { + AddDocumentAttributeStandard.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeStandard failed with `%s`.", e.getMessage())); + // continue to the next one + } + // validate the json string with AddDocumentAttributeClassification + try { + AddDocumentAttributeClassification.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeClassification failed with `%s`.", e.getMessage())); + // continue to the next one + } + // validate the json string with AddDocumentAttributeRelationship + try { + AddDocumentAttributeRelationship.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeRelationship failed with `%s`.", e.getMessage())); + // continue to the next one + } + // validate the json string with AddDocumentAttributeEntity + try { + AddDocumentAttributeEntity.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeEntity failed with `%s`.", e.getMessage())); + // continue to the next one + } + if (validCount != 1) { + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for AddDocumentAttribute with oneOf schemas: AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + } } - // validate the json string with AddDocumentAttributeEntity - try { - AddDocumentAttributeEntity.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddDocumentAttributeEntity failed with `%s`.", e.getMessage())); - // continue to the next one + + /** + * Create an instance of AddDocumentAttribute given an JSON string + * + * @param jsonString JSON string + * @return An instance of AddDocumentAttribute + * @throws IOException if the JSON string is invalid with respect to AddDocumentAttribute + */ + public static AddDocumentAttribute fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AddDocumentAttribute.class); } - if (validCount != 1) { - throw new IOException(String.format(Locale.ROOT, - "The JSON string is invalid for AddDocumentAttribute with oneOf schemas: AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", - validCount, errorMessages, jsonElement.toString())); + + /** + * Convert an instance of AddDocumentAttribute to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); } - } - - /** - * Create an instance of AddDocumentAttribute given an JSON string - * - * @param jsonString JSON string - * @return An instance of AddDocumentAttribute - * @throws IOException if the JSON string is invalid with respect to AddDocumentAttribute - */ - public static AddDocumentAttribute fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AddDocumentAttribute.class); - } - - /** - * Convert an instance of AddDocumentAttribute to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java index 51d642ed9..8d0422ac6 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,26 +50,23 @@ /** * Document Classification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeClassification { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION_ID) @javax.annotation.Nonnull private String classificationId; - public AddDocumentAttributeClassification() {} + public AddDocumentAttributeClassification() { + } - public AddDocumentAttributeClassification classificationId( - @javax.annotation.Nonnull String classificationId) { + public AddDocumentAttributeClassification classificationId(@javax.annotation.Nonnull String classificationId) { this.classificationId = classificationId; return this; } /** * Classification Identifier - * * @return classificationId */ @javax.annotation.Nonnull @@ -98,10 +88,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocumentAttributeClassification addDocumentAttributeClassification = - (AddDocumentAttributeClassification) o; - return Objects.equals(this.classificationId, - addDocumentAttributeClassification.classificationId); + AddDocumentAttributeClassification addDocumentAttributeClassification = (AddDocumentAttributeClassification) o; + return Objects.equals(this.classificationId, addDocumentAttributeClassification.classificationId); } @Override @@ -119,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,74 +133,61 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddDocumentAttributeClassification + * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributeClassification */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributeClassification.openapiRequiredFields.isEmpty()) { // has required - // fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentAttributeClassification is not found in the empty JSON string", - AddDocumentAttributeClassification.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentAttributeClassification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributeClassification is not found in the empty JSON string", AddDocumentAttributeClassification.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributeClassification.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeClassification` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributeClassification.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeClassification` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentAttributeClassification.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentAttributeClassification.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("classificationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("classificationId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("classificationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("classificationId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributeClassification.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributeClassification' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeClassification.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributeClassification value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributeClassification read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributeClassification.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributeClassification' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeClassification.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributeClassification value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributeClassification read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -220,8 +196,7 @@ public AddDocumentAttributeClassification read(JsonReader in) throws IOException * * @param jsonString JSON string * @return An instance of AddDocumentAttributeClassification - * @throws IOException if the JSON string is invalid with respect to - * AddDocumentAttributeClassification + * @throws IOException if the JSON string is invalid with respect to AddDocumentAttributeClassification */ public static AddDocumentAttributeClassification fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocumentAttributeClassification.class); diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java index 817156617..35ed42b54 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * Document Entity Attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeEntity { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -82,7 +73,8 @@ public class AddDocumentAttributeEntity { @javax.annotation.Nullable private EntityTypeNamespace namespace; - public AddDocumentAttributeEntity() {} + public AddDocumentAttributeEntity() { + } public AddDocumentAttributeEntity key(@javax.annotation.Nonnull String key) { this.key = key; @@ -91,7 +83,6 @@ public AddDocumentAttributeEntity key(@javax.annotation.Nonnull String key) { /** * Attribute key - * * @return key */ @javax.annotation.Nonnull @@ -111,7 +102,6 @@ public AddDocumentAttributeEntity entityTypeId(@javax.annotation.Nonnull String /** * EntityType Identifier or Entity Type Name - * * @return entityTypeId */ @javax.annotation.Nonnull @@ -131,7 +121,6 @@ public AddDocumentAttributeEntity entityId(@javax.annotation.Nonnull String enti /** * Entity Identifier - * * @return entityId */ @javax.annotation.Nonnull @@ -144,15 +133,13 @@ public void setEntityId(@javax.annotation.Nonnull String entityId) { } - public AddDocumentAttributeEntity namespace( - @javax.annotation.Nullable EntityTypeNamespace namespace) { + public AddDocumentAttributeEntity namespace(@javax.annotation.Nullable EntityTypeNamespace namespace) { this.namespace = namespace; return this; } /** * Get namespace - * * @return namespace */ @javax.annotation.Nullable @@ -175,10 +162,10 @@ public boolean equals(Object o) { return false; } AddDocumentAttributeEntity addDocumentAttributeEntity = (AddDocumentAttributeEntity) o; - return Objects.equals(this.key, addDocumentAttributeEntity.key) - && Objects.equals(this.entityTypeId, addDocumentAttributeEntity.entityTypeId) - && Objects.equals(this.entityId, addDocumentAttributeEntity.entityId) - && Objects.equals(this.namespace, addDocumentAttributeEntity.namespace); + return Objects.equals(this.key, addDocumentAttributeEntity.key) && + Objects.equals(this.entityTypeId, addDocumentAttributeEntity.entityTypeId) && + Objects.equals(this.entityId, addDocumentAttributeEntity.entityId) && + Objects.equals(this.namespace, addDocumentAttributeEntity.namespace); } @Override @@ -199,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,8 +202,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("key", "entityTypeId", "entityId", "namespace")); + openapiFields = new HashSet(Arrays.asList("key", "entityTypeId", "entityId", "namespace")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("key", "entityTypeId", "entityId")); @@ -228,81 +215,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributeEntity */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributeEntity.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentAttributeEntity is not found in the empty JSON string", - AddDocumentAttributeEntity.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentAttributeEntity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributeEntity is not found in the empty JSON string", AddDocumentAttributeEntity.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributeEntity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeEntity` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributeEntity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeEntity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentAttributeEntity.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentAttributeEntity.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if (!jsonObj.get("entityTypeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityTypeId").toString())); + } + if (!jsonObj.get("entityId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityId").toString())); + } + // validate the optional field `namespace` + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { + EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if (!jsonObj.get("entityTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("entityTypeId").toString())); - } - if (!jsonObj.get("entityId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("entityId").toString())); - } - // validate the optional field `namespace` - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { - EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributeEntity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributeEntity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeEntity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributeEntity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributeEntity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributeEntity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributeEntity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeEntity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributeEntity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributeEntity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java index a59139bd0..385233a0a 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * Document Relationship */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeRelationship { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -77,7 +68,8 @@ public class AddDocumentAttributeRelationship { @javax.annotation.Nullable private DocumentRelationshipType inverseRelationship; - public AddDocumentAttributeRelationship() {} + public AddDocumentAttributeRelationship() { + } public AddDocumentAttributeRelationship documentId(@javax.annotation.Nonnull String documentId) { this.documentId = documentId; @@ -86,7 +78,6 @@ public AddDocumentAttributeRelationship documentId(@javax.annotation.Nonnull Str /** * Relationship To Document Identifier - * * @return documentId */ @javax.annotation.Nonnull @@ -99,15 +90,13 @@ public void setDocumentId(@javax.annotation.Nonnull String documentId) { } - public AddDocumentAttributeRelationship relationship( - @javax.annotation.Nonnull DocumentRelationshipType relationship) { + public AddDocumentAttributeRelationship relationship(@javax.annotation.Nonnull DocumentRelationshipType relationship) { this.relationship = relationship; return this; } /** * Get relationship - * * @return relationship */ @javax.annotation.Nonnull @@ -120,15 +109,13 @@ public void setRelationship(@javax.annotation.Nonnull DocumentRelationshipType r } - public AddDocumentAttributeRelationship inverseRelationship( - @javax.annotation.Nullable DocumentRelationshipType inverseRelationship) { + public AddDocumentAttributeRelationship inverseRelationship(@javax.annotation.Nullable DocumentRelationshipType inverseRelationship) { this.inverseRelationship = inverseRelationship; return this; } /** * Get inverseRelationship - * * @return inverseRelationship */ @javax.annotation.Nullable @@ -136,8 +123,7 @@ public DocumentRelationshipType getInverseRelationship() { return inverseRelationship; } - public void setInverseRelationship( - @javax.annotation.Nullable DocumentRelationshipType inverseRelationship) { + public void setInverseRelationship(@javax.annotation.Nullable DocumentRelationshipType inverseRelationship) { this.inverseRelationship = inverseRelationship; } @@ -151,12 +137,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocumentAttributeRelationship addDocumentAttributeRelationship = - (AddDocumentAttributeRelationship) o; - return Objects.equals(this.documentId, addDocumentAttributeRelationship.documentId) - && Objects.equals(this.relationship, addDocumentAttributeRelationship.relationship) - && Objects.equals(this.inverseRelationship, - addDocumentAttributeRelationship.inverseRelationship); + AddDocumentAttributeRelationship addDocumentAttributeRelationship = (AddDocumentAttributeRelationship) o; + return Objects.equals(this.documentId, addDocumentAttributeRelationship.documentId) && + Objects.equals(this.relationship, addDocumentAttributeRelationship.relationship) && + Objects.equals(this.inverseRelationship, addDocumentAttributeRelationship.inverseRelationship); } @Override @@ -170,14 +154,14 @@ public String toString() { sb.append("class AddDocumentAttributeRelationship {\n"); sb.append(" documentId: ").append(toIndentedString(documentId)).append("\n"); sb.append(" relationship: ").append(toIndentedString(relationship)).append("\n"); - sb.append(" inverseRelationship: ").append(toIndentedString(inverseRelationship)) - .append("\n"); + sb.append(" inverseRelationship: ").append(toIndentedString(inverseRelationship)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -192,8 +176,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("documentId", "relationship", "inverseRelationship")); + openapiFields = new HashSet(Arrays.asList("documentId", "relationship", "inverseRelationship")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("documentId", "relationship")); @@ -203,81 +186,67 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddDocumentAttributeRelationship + * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributeRelationship */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributeRelationship.openapiRequiredFields.isEmpty()) { // has required - // fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentAttributeRelationship is not found in the empty JSON string", - AddDocumentAttributeRelationship.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentAttributeRelationship.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributeRelationship is not found in the empty JSON string", AddDocumentAttributeRelationship.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributeRelationship.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeRelationship` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributeRelationship.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeRelationship` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentAttributeRelationship.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentAttributeRelationship.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + // validate the required field `relationship` + DocumentRelationshipType.validateJsonElement(jsonObj.get("relationship")); + // validate the optional field `inverseRelationship` + if (jsonObj.get("inverseRelationship") != null && !jsonObj.get("inverseRelationship").isJsonNull()) { + DocumentRelationshipType.validateJsonElement(jsonObj.get("inverseRelationship")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - // validate the required field `relationship` - DocumentRelationshipType.validateJsonElement(jsonObj.get("relationship")); - // validate the optional field `inverseRelationship` - if (jsonObj.get("inverseRelationship") != null - && !jsonObj.get("inverseRelationship").isJsonNull()) { - DocumentRelationshipType.validateJsonElement(jsonObj.get("inverseRelationship")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributeRelationship.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributeRelationship' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeRelationship.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributeRelationship value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributeRelationship read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributeRelationship.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributeRelationship' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeRelationship.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributeRelationship value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributeRelationship read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -286,8 +255,7 @@ public AddDocumentAttributeRelationship read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddDocumentAttributeRelationship - * @throws IOException if the JSON string is invalid with respect to - * AddDocumentAttributeRelationship + * @throws IOException if the JSON string is invalid with respect to AddDocumentAttributeRelationship */ public static AddDocumentAttributeRelationship fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocumentAttributeRelationship.class); diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java index 30445ecdc..e910784c3 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * Document Attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeStandard { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -94,7 +85,8 @@ public class AddDocumentAttributeStandard { @javax.annotation.Nullable private Boolean booleanValue; - public AddDocumentAttributeStandard() {} + public AddDocumentAttributeStandard() { + } public AddDocumentAttributeStandard key(@javax.annotation.Nonnull String key) { this.key = key; @@ -103,7 +95,6 @@ public AddDocumentAttributeStandard key(@javax.annotation.Nonnull String key) { /** * Attribute key - * * @return key */ @javax.annotation.Nonnull @@ -123,7 +114,6 @@ public AddDocumentAttributeStandard stringValue(@javax.annotation.Nullable Strin /** * Attribute with string value - * * @return stringValue */ @javax.annotation.Nullable @@ -136,8 +126,7 @@ public void setStringValue(@javax.annotation.Nullable String stringValue) { } - public AddDocumentAttributeStandard stringValues( - @javax.annotation.Nullable List stringValues) { + public AddDocumentAttributeStandard stringValues(@javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; return this; } @@ -152,7 +141,6 @@ public AddDocumentAttributeStandard addStringValuesItem(String stringValuesItem) /** * Attribute with string values - * * @return stringValues */ @javax.annotation.Nullable @@ -165,15 +153,13 @@ public void setStringValues(@javax.annotation.Nullable List stringValues } - public AddDocumentAttributeStandard numberValue( - @javax.annotation.Nullable BigDecimal numberValue) { + public AddDocumentAttributeStandard numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; return this; } /** * Attribute with number value - * * @return numberValue */ @javax.annotation.Nullable @@ -186,8 +172,7 @@ public void setNumberValue(@javax.annotation.Nullable BigDecimal numberValue) { } - public AddDocumentAttributeStandard numberValues( - @javax.annotation.Nullable List numberValues) { + public AddDocumentAttributeStandard numberValues(@javax.annotation.Nullable List numberValues) { this.numberValues = numberValues; return this; } @@ -202,7 +187,6 @@ public AddDocumentAttributeStandard addNumberValuesItem(BigDecimal numberValuesI /** * Attribute with number values - * * @return numberValues */ @javax.annotation.Nullable @@ -215,15 +199,13 @@ public void setNumberValues(@javax.annotation.Nullable List numberVa } - public AddDocumentAttributeStandard booleanValue( - @javax.annotation.Nullable Boolean booleanValue) { + public AddDocumentAttributeStandard booleanValue(@javax.annotation.Nullable Boolean booleanValue) { this.booleanValue = booleanValue; return this; } /** * Attribute with boolean value - * * @return booleanValue */ @javax.annotation.Nullable @@ -246,12 +228,12 @@ public boolean equals(Object o) { return false; } AddDocumentAttributeStandard addDocumentAttributeStandard = (AddDocumentAttributeStandard) o; - return Objects.equals(this.key, addDocumentAttributeStandard.key) - && Objects.equals(this.stringValue, addDocumentAttributeStandard.stringValue) - && Objects.equals(this.stringValues, addDocumentAttributeStandard.stringValues) - && Objects.equals(this.numberValue, addDocumentAttributeStandard.numberValue) - && Objects.equals(this.numberValues, addDocumentAttributeStandard.numberValues) - && Objects.equals(this.booleanValue, addDocumentAttributeStandard.booleanValue); + return Objects.equals(this.key, addDocumentAttributeStandard.key) && + Objects.equals(this.stringValue, addDocumentAttributeStandard.stringValue) && + Objects.equals(this.stringValues, addDocumentAttributeStandard.stringValues) && + Objects.equals(this.numberValue, addDocumentAttributeStandard.numberValue) && + Objects.equals(this.numberValues, addDocumentAttributeStandard.numberValues) && + Objects.equals(this.booleanValue, addDocumentAttributeStandard.booleanValue); } @Override @@ -274,7 +256,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -289,8 +272,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", - "numberValue", "numberValues", "booleanValue")); + openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", "numberValue", "numberValues", "booleanValue")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("key")); @@ -303,88 +285,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributeStandard */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributeStandard.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentAttributeStandard is not found in the empty JSON string", - AddDocumentAttributeStandard.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentAttributeStandard.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributeStandard is not found in the empty JSON string", AddDocumentAttributeStandard.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributeStandard.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeStandard` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributeStandard.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeStandard` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentAttributeStandard.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentAttributeStandard.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) - && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stringValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() - && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValues` to be an array in the JSON string but got `%s`", - jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() - && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberValues` to be an array in the JSON string but got `%s`", - jsonObj.get("numberValues").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributeStandard.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributeStandard' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeStandard.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributeStandard value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributeStandard read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributeStandard.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributeStandard' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeStandard.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributeStandard value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributeStandard read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java index 8196866c2..3f5edd23f 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * Document Attribute Value */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeValue { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; @SerializedName(SERIALIZED_NAME_STRING_VALUE) @@ -89,7 +80,8 @@ public class AddDocumentAttributeValue { @javax.annotation.Nullable private Boolean booleanValue; - public AddDocumentAttributeValue() {} + public AddDocumentAttributeValue() { + } public AddDocumentAttributeValue stringValue(@javax.annotation.Nullable String stringValue) { this.stringValue = stringValue; @@ -98,7 +90,6 @@ public AddDocumentAttributeValue stringValue(@javax.annotation.Nullable String s /** * Attribute with string value - * * @return stringValue */ @javax.annotation.Nullable @@ -111,8 +102,7 @@ public void setStringValue(@javax.annotation.Nullable String stringValue) { } - public AddDocumentAttributeValue stringValues( - @javax.annotation.Nullable List stringValues) { + public AddDocumentAttributeValue stringValues(@javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; return this; } @@ -127,7 +117,6 @@ public AddDocumentAttributeValue addStringValuesItem(String stringValuesItem) { /** * Attribute with string values - * * @return stringValues */ @javax.annotation.Nullable @@ -147,7 +136,6 @@ public AddDocumentAttributeValue numberValue(@javax.annotation.Nullable BigDecim /** * Attribute with number value - * * @return numberValue */ @javax.annotation.Nullable @@ -160,8 +148,7 @@ public void setNumberValue(@javax.annotation.Nullable BigDecimal numberValue) { } - public AddDocumentAttributeValue numberValues( - @javax.annotation.Nullable List numberValues) { + public AddDocumentAttributeValue numberValues(@javax.annotation.Nullable List numberValues) { this.numberValues = numberValues; return this; } @@ -176,7 +163,6 @@ public AddDocumentAttributeValue addNumberValuesItem(BigDecimal numberValuesItem /** * Attribute with number values - * * @return numberValues */ @javax.annotation.Nullable @@ -196,7 +182,6 @@ public AddDocumentAttributeValue booleanValue(@javax.annotation.Nullable Boolean /** * Attribute with boolean value - * * @return booleanValue */ @javax.annotation.Nullable @@ -219,11 +204,11 @@ public boolean equals(Object o) { return false; } AddDocumentAttributeValue addDocumentAttributeValue = (AddDocumentAttributeValue) o; - return Objects.equals(this.stringValue, addDocumentAttributeValue.stringValue) - && Objects.equals(this.stringValues, addDocumentAttributeValue.stringValues) - && Objects.equals(this.numberValue, addDocumentAttributeValue.numberValue) - && Objects.equals(this.numberValues, addDocumentAttributeValue.numberValues) - && Objects.equals(this.booleanValue, addDocumentAttributeValue.booleanValue); + return Objects.equals(this.stringValue, addDocumentAttributeValue.stringValue) && + Objects.equals(this.stringValues, addDocumentAttributeValue.stringValues) && + Objects.equals(this.numberValue, addDocumentAttributeValue.numberValue) && + Objects.equals(this.numberValues, addDocumentAttributeValue.numberValues) && + Objects.equals(this.booleanValue, addDocumentAttributeValue.booleanValue); } @Override @@ -245,7 +230,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -260,8 +246,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("stringValue", "stringValues", "numberValue", - "numberValues", "booleanValue")); + openapiFields = new HashSet(Arrays.asList("stringValue", "stringValues", "numberValue", "numberValues", "booleanValue")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -274,73 +259,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributeValue */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributeValue.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentAttributeValue is not found in the empty JSON string", - AddDocumentAttributeValue.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentAttributeValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributeValue is not found in the empty JSON string", AddDocumentAttributeValue.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributeValue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeValue` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributeValue.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeValue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) - && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stringValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() - && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValues` to be an array in the JSON string but got `%s`", - jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() - && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberValues` to be an array in the JSON string but got `%s`", - jsonObj.get("numberValues").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributeValue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributeValue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeValue.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributeValue value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributeValue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributeValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributeValue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeValue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributeValue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributeValue read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java index 6ad742b1d..bb131af39 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * Add List of document attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributesRequest { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public AddDocumentAttributesRequest() {} + public AddDocumentAttributesRequest() { + } - public AddDocumentAttributesRequest attributes( - @javax.annotation.Nullable List attributes) { + public AddDocumentAttributesRequest attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -87,7 +78,6 @@ public AddDocumentAttributesRequest addAttributesItem(AddDocumentAttribute attri /** * List of document attributes - * * @return attributes */ @javax.annotation.Nullable @@ -128,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -156,70 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributesRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributesRequest.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentAttributesRequest is not found in the empty JSON string", - AddDocumentAttributesRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentAttributesRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributesRequest is not found in the empty JSON string", AddDocumentAttributesRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributesRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentAttributesRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributesRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributesRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributesRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributesRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributesRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributesRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributesRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributesRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributesRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributesRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributesRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributesRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java index 070a5e59c..d1f0c4b19 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -65,9 +58,7 @@ /** * AddDocumentFulltextRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) @@ -129,7 +120,8 @@ public class AddDocumentFulltextRequest { @javax.annotation.Nullable private Map attributes = new HashMap<>(); - public AddDocumentFulltextRequest() {} + public AddDocumentFulltextRequest() { + } public AddDocumentFulltextRequest contentType(@javax.annotation.Nullable String contentType) { this.contentType = contentType; @@ -138,7 +130,6 @@ public AddDocumentFulltextRequest contentType(@javax.annotation.Nullable String /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -158,7 +149,6 @@ public AddDocumentFulltextRequest content(@javax.annotation.Nullable String cont /** * Document content - * * @return content */ @javax.annotation.Nullable @@ -171,8 +161,7 @@ public void setContent(@javax.annotation.Nullable String content) { } - public AddDocumentFulltextRequest contentUrls( - @javax.annotation.Nullable List contentUrls) { + public AddDocumentFulltextRequest contentUrls(@javax.annotation.Nullable List contentUrls) { this.contentUrls = contentUrls; return this; } @@ -187,7 +176,6 @@ public AddDocumentFulltextRequest addContentUrlsItem(String contentUrlsItem) { /** * URL(s) which contain document content - * * @return contentUrls */ @javax.annotation.Nullable @@ -207,7 +195,6 @@ public AddDocumentFulltextRequest path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -227,7 +214,6 @@ public AddDocumentFulltextRequest width(@javax.annotation.Nullable String width) /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -247,7 +233,6 @@ public AddDocumentFulltextRequest height(@javax.annotation.Nullable String heigh /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -267,7 +252,6 @@ public AddDocumentFulltextRequest deepLinkPath(@javax.annotation.Nullable String /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -287,7 +271,6 @@ public AddDocumentFulltextRequest checksum(@javax.annotation.Nullable String che /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -300,15 +283,13 @@ public void setChecksum(@javax.annotation.Nullable String checksum) { } - public AddDocumentFulltextRequest checksumType( - @javax.annotation.Nullable ChecksumType checksumType) { + public AddDocumentFulltextRequest checksumType(@javax.annotation.Nullable ChecksumType checksumType) { this.checksumType = checksumType; return this; } /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -336,7 +317,6 @@ public AddDocumentFulltextRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags - * * @return tags */ @javax.annotation.Nullable @@ -349,8 +329,7 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public AddDocumentFulltextRequest metadata( - @javax.annotation.Nullable List metadata) { + public AddDocumentFulltextRequest metadata(@javax.annotation.Nullable List metadata) { this.metadata = metadata; return this; } @@ -365,7 +344,6 @@ public AddDocumentFulltextRequest addMetadataItem(AddDocumentMetadata metadataIt /** * List of document Metadata - * * @return metadata */ @javax.annotation.Nullable @@ -378,14 +356,12 @@ public void setMetadata(@javax.annotation.Nullable List met } - public AddDocumentFulltextRequest attributes( - @javax.annotation.Nullable Map attributes) { + public AddDocumentFulltextRequest attributes(@javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } - public AddDocumentFulltextRequest putAttributesItem(String key, - FulltextAttribute attributesItem) { + public AddDocumentFulltextRequest putAttributesItem(String key, FulltextAttribute attributesItem) { if (this.attributes == null) { this.attributes = new HashMap<>(); } @@ -395,7 +371,6 @@ public AddDocumentFulltextRequest putAttributesItem(String key, /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -418,24 +393,23 @@ public boolean equals(Object o) { return false; } AddDocumentFulltextRequest addDocumentFulltextRequest = (AddDocumentFulltextRequest) o; - return Objects.equals(this.contentType, addDocumentFulltextRequest.contentType) - && Objects.equals(this.content, addDocumentFulltextRequest.content) - && Objects.equals(this.contentUrls, addDocumentFulltextRequest.contentUrls) - && Objects.equals(this.path, addDocumentFulltextRequest.path) - && Objects.equals(this.width, addDocumentFulltextRequest.width) - && Objects.equals(this.height, addDocumentFulltextRequest.height) - && Objects.equals(this.deepLinkPath, addDocumentFulltextRequest.deepLinkPath) - && Objects.equals(this.checksum, addDocumentFulltextRequest.checksum) - && Objects.equals(this.checksumType, addDocumentFulltextRequest.checksumType) - && Objects.equals(this.tags, addDocumentFulltextRequest.tags) - && Objects.equals(this.metadata, addDocumentFulltextRequest.metadata) - && Objects.equals(this.attributes, addDocumentFulltextRequest.attributes); + return Objects.equals(this.contentType, addDocumentFulltextRequest.contentType) && + Objects.equals(this.content, addDocumentFulltextRequest.content) && + Objects.equals(this.contentUrls, addDocumentFulltextRequest.contentUrls) && + Objects.equals(this.path, addDocumentFulltextRequest.path) && + Objects.equals(this.width, addDocumentFulltextRequest.width) && + Objects.equals(this.height, addDocumentFulltextRequest.height) && + Objects.equals(this.deepLinkPath, addDocumentFulltextRequest.deepLinkPath) && + Objects.equals(this.checksum, addDocumentFulltextRequest.checksum) && + Objects.equals(this.checksumType, addDocumentFulltextRequest.checksumType) && + Objects.equals(this.tags, addDocumentFulltextRequest.tags) && + Objects.equals(this.metadata, addDocumentFulltextRequest.metadata) && + Objects.equals(this.attributes, addDocumentFulltextRequest.attributes); } @Override public int hashCode() { - return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, - checksum, checksumType, tags, metadata, attributes); + return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, checksum, checksumType, tags, metadata, attributes); } @Override @@ -459,7 +433,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -474,9 +449,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", - "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); + openapiFields = new HashSet(Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -489,138 +462,105 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentFulltextRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentFulltextRequest is not found in the empty JSON string", - AddDocumentFulltextRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentFulltextRequest is not found in the empty JSON string", AddDocumentFulltextRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentFulltextRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentFulltextRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) - && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() - && !jsonObj.get("contentUrls").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", - jsonObj.get("contentUrls").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() && !jsonObj.get("contentUrls").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", jsonObj.get("contentUrls").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `metadata` to be an array in the JSON string but got `%s`", - jsonObj.get("metadata").toString())); + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + }; } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentFulltextRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentFulltextRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentFulltextRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentFulltextRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentFulltextRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentFulltextRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentFulltextRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentFulltextRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java index a10a49f06..7325dc570 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddDocumentFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentFulltextResponse() {} + public AddDocumentFulltextResponse() { + } public AddDocumentFulltextResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public AddDocumentFulltextResponse message(@javax.annotation.Nullable String mes /** * Full text processing message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentFulltextResponse is not found in the empty JSON string", - AddDocumentFulltextResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentFulltextResponse is not found in the empty JSON string", AddDocumentFulltextResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentFulltextResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java index 608d114c1..a8b62b029 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -63,9 +56,7 @@ /** * AddDocumentGenerateRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentGenerateRequest { public static final String SERIALIZED_NAME_LOCALE = "locale"; @SerializedName(SERIALIZED_NAME_LOCALE) @@ -97,7 +88,8 @@ public class AddDocumentGenerateRequest { @javax.annotation.Nullable private String path; - public AddDocumentGenerateRequest() {} + public AddDocumentGenerateRequest() { + } public AddDocumentGenerateRequest locale(@javax.annotation.Nullable LocaleInfo locale) { this.locale = locale; @@ -106,7 +98,6 @@ public AddDocumentGenerateRequest locale(@javax.annotation.Nullable LocaleInfo l /** * Get locale - * * @return locale */ @javax.annotation.Nullable @@ -119,14 +110,12 @@ public void setLocale(@javax.annotation.Nullable LocaleInfo locale) { } - public AddDocumentGenerateRequest insertDocuments( - @javax.annotation.Nullable List insertDocuments) { + public AddDocumentGenerateRequest insertDocuments(@javax.annotation.Nullable List insertDocuments) { this.insertDocuments = insertDocuments; return this; } - public AddDocumentGenerateRequest addInsertDocumentsItem( - DocumentGenerateInsertDocument insertDocumentsItem) { + public AddDocumentGenerateRequest addInsertDocumentsItem(DocumentGenerateInsertDocument insertDocumentsItem) { if (this.insertDocuments == null) { this.insertDocuments = new ArrayList<>(); } @@ -136,7 +125,6 @@ public AddDocumentGenerateRequest addInsertDocumentsItem( /** * List of documents to insert - * * @return insertDocuments */ @javax.annotation.Nullable @@ -144,14 +132,12 @@ public List getInsertDocuments() { return insertDocuments; } - public void setInsertDocuments( - @javax.annotation.Nullable List insertDocuments) { + public void setInsertDocuments(@javax.annotation.Nullable List insertDocuments) { this.insertDocuments = insertDocuments; } - public AddDocumentGenerateRequest datasources( - @javax.annotation.Nullable List datasources) { + public AddDocumentGenerateRequest datasources(@javax.annotation.Nullable List datasources) { this.datasources = datasources; return this; } @@ -166,7 +152,6 @@ public AddDocumentGenerateRequest addDatasourcesItem(DocumentGenerateDataSource /** * List of data sources - * * @return datasources */ @javax.annotation.Nullable @@ -174,21 +159,18 @@ public List getDatasources() { return datasources; } - public void setDatasources( - @javax.annotation.Nullable List datasources) { + public void setDatasources(@javax.annotation.Nullable List datasources) { this.datasources = datasources; } - public AddDocumentGenerateRequest outputType( - @javax.annotation.Nullable DocumentGenerateOutputType outputType) { + public AddDocumentGenerateRequest outputType(@javax.annotation.Nullable DocumentGenerateOutputType outputType) { this.outputType = outputType; return this; } /** * Get outputType - * * @return outputType */ @javax.annotation.Nullable @@ -201,15 +183,13 @@ public void setOutputType(@javax.annotation.Nullable DocumentGenerateOutputType } - public AddDocumentGenerateRequest saveAsDocumentId( - @javax.annotation.Nullable String saveAsDocumentId) { + public AddDocumentGenerateRequest saveAsDocumentId(@javax.annotation.Nullable String saveAsDocumentId) { this.saveAsDocumentId = saveAsDocumentId; return this; } /** * Save the generated document with a specific documentId - * * @return saveAsDocumentId */ @javax.annotation.Nullable @@ -229,7 +209,6 @@ public AddDocumentGenerateRequest path(@javax.annotation.Nullable String path) { /** * The path of the generated document - * * @return path */ @javax.annotation.Nullable @@ -252,12 +231,12 @@ public boolean equals(Object o) { return false; } AddDocumentGenerateRequest addDocumentGenerateRequest = (AddDocumentGenerateRequest) o; - return Objects.equals(this.locale, addDocumentGenerateRequest.locale) - && Objects.equals(this.insertDocuments, addDocumentGenerateRequest.insertDocuments) - && Objects.equals(this.datasources, addDocumentGenerateRequest.datasources) - && Objects.equals(this.outputType, addDocumentGenerateRequest.outputType) - && Objects.equals(this.saveAsDocumentId, addDocumentGenerateRequest.saveAsDocumentId) - && Objects.equals(this.path, addDocumentGenerateRequest.path); + return Objects.equals(this.locale, addDocumentGenerateRequest.locale) && + Objects.equals(this.insertDocuments, addDocumentGenerateRequest.insertDocuments) && + Objects.equals(this.datasources, addDocumentGenerateRequest.datasources) && + Objects.equals(this.outputType, addDocumentGenerateRequest.outputType) && + Objects.equals(this.saveAsDocumentId, addDocumentGenerateRequest.saveAsDocumentId) && + Objects.equals(this.path, addDocumentGenerateRequest.path); } @Override @@ -280,7 +259,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -295,8 +275,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("locale", "insertDocuments", "datasources", - "outputType", "saveAsDocumentId", "path")); + openapiFields = new HashSet(Arrays.asList("locale", "insertDocuments", "datasources", "outputType", "saveAsDocumentId", "path")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -309,105 +288,90 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentGenerateRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentGenerateRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentGenerateRequest is not found in the empty JSON string", - AddDocumentGenerateRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentGenerateRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentGenerateRequest is not found in the empty JSON string", AddDocumentGenerateRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentGenerateRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentGenerateRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentGenerateRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentGenerateRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `locale` - if (jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) { - LocaleInfo.validateJsonElement(jsonObj.get("locale")); - } - if (jsonObj.get("insertDocuments") != null && !jsonObj.get("insertDocuments").isJsonNull()) { - JsonArray jsonArrayinsertDocuments = jsonObj.getAsJsonArray("insertDocuments"); - if (jsonArrayinsertDocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("insertDocuments").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertDocuments` to be an array in the JSON string but got `%s`", - jsonObj.get("insertDocuments").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `locale` + if (jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) { + LocaleInfo.validateJsonElement(jsonObj.get("locale")); + } + if (jsonObj.get("insertDocuments") != null && !jsonObj.get("insertDocuments").isJsonNull()) { + JsonArray jsonArrayinsertDocuments = jsonObj.getAsJsonArray("insertDocuments"); + if (jsonArrayinsertDocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("insertDocuments").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertDocuments` to be an array in the JSON string but got `%s`", jsonObj.get("insertDocuments").toString())); + } + + // validate the optional field `insertDocuments` (array) + for (int i = 0; i < jsonArrayinsertDocuments.size(); i++) { + DocumentGenerateInsertDocument.validateJsonElement(jsonArrayinsertDocuments.get(i)); + }; } - - // validate the optional field `insertDocuments` (array) - for (int i = 0; i < jsonArrayinsertDocuments.size(); i++) { - DocumentGenerateInsertDocument.validateJsonElement(jsonArrayinsertDocuments.get(i)); - } ; } - } - if (jsonObj.get("datasources") != null && !jsonObj.get("datasources").isJsonNull()) { - JsonArray jsonArraydatasources = jsonObj.getAsJsonArray("datasources"); - if (jsonArraydatasources != null) { - // ensure the json data is an array - if (!jsonObj.get("datasources").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `datasources` to be an array in the JSON string but got `%s`", - jsonObj.get("datasources").toString())); + if (jsonObj.get("datasources") != null && !jsonObj.get("datasources").isJsonNull()) { + JsonArray jsonArraydatasources = jsonObj.getAsJsonArray("datasources"); + if (jsonArraydatasources != null) { + // ensure the json data is an array + if (!jsonObj.get("datasources").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `datasources` to be an array in the JSON string but got `%s`", jsonObj.get("datasources").toString())); + } + + // validate the optional field `datasources` (array) + for (int i = 0; i < jsonArraydatasources.size(); i++) { + DocumentGenerateDataSource.validateJsonElement(jsonArraydatasources.get(i)); + }; } - - // validate the optional field `datasources` (array) - for (int i = 0; i < jsonArraydatasources.size(); i++) { - DocumentGenerateDataSource.validateJsonElement(jsonArraydatasources.get(i)); - } ; } - } - // validate the optional field `outputType` - if (jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) { - DocumentGenerateOutputType.validateJsonElement(jsonObj.get("outputType")); - } - if ((jsonObj.get("saveAsDocumentId") != null && !jsonObj.get("saveAsDocumentId").isJsonNull()) - && !jsonObj.get("saveAsDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `saveAsDocumentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("saveAsDocumentId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } + // validate the optional field `outputType` + if (jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) { + DocumentGenerateOutputType.validateJsonElement(jsonObj.get("outputType")); + } + if ((jsonObj.get("saveAsDocumentId") != null && !jsonObj.get("saveAsDocumentId").isJsonNull()) && !jsonObj.get("saveAsDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `saveAsDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("saveAsDocumentId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentGenerateRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentGenerateRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentGenerateRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentGenerateRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentGenerateRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentGenerateRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentGenerateRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentGenerateRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentGenerateRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentGenerateRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java index cc602cede..5501535ca 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddDocumentGenerateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentGenerateResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @javax.annotation.Nullable private String documentId; - public AddDocumentGenerateResponse() {} + public AddDocumentGenerateResponse() { + } public AddDocumentGenerateResponse documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -75,7 +67,6 @@ public AddDocumentGenerateResponse documentId(@javax.annotation.Nullable String /** * Generated document identifier - * * @return documentId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentGenerateResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentGenerateResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentGenerateResponse is not found in the empty JSON string", - AddDocumentGenerateResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentGenerateResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentGenerateResponse is not found in the empty JSON string", AddDocumentGenerateResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentGenerateResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentGenerateResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentGenerateResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentGenerateResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentGenerateResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentGenerateResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentGenerateResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentGenerateResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentGenerateResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentGenerateResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentGenerateResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentGenerateResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentGenerateResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentGenerateResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java b/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java index ed1d81627..26166dd25 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * Document Metadata (use either 'value' or 'values' not both) */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentMetadata { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -78,7 +69,8 @@ public class AddDocumentMetadata { @javax.annotation.Nullable private List values = new ArrayList<>(); - public AddDocumentMetadata() {} + public AddDocumentMetadata() { + } public AddDocumentMetadata key(@javax.annotation.Nonnull String key) { this.key = key; @@ -87,7 +79,6 @@ public AddDocumentMetadata key(@javax.annotation.Nonnull String key) { /** * Metadata key - * * @return key */ @javax.annotation.Nonnull @@ -107,7 +98,6 @@ public AddDocumentMetadata value(@javax.annotation.Nullable String value) { /** * Metadata value - * * @return value */ @javax.annotation.Nullable @@ -135,7 +125,6 @@ public AddDocumentMetadata addValuesItem(String valuesItem) { /** * Metadata values - * * @return values */ @javax.annotation.Nullable @@ -158,9 +147,9 @@ public boolean equals(Object o) { return false; } AddDocumentMetadata addDocumentMetadata = (AddDocumentMetadata) o; - return Objects.equals(this.key, addDocumentMetadata.key) - && Objects.equals(this.value, addDocumentMetadata.value) - && Objects.equals(this.values, addDocumentMetadata.values); + return Objects.equals(this.key, addDocumentMetadata.key) && + Objects.equals(this.value, addDocumentMetadata.value) && + Objects.equals(this.values, addDocumentMetadata.values); } @Override @@ -180,7 +169,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -208,80 +198,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentMetadata */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentMetadata is not found in the empty JSON string", - AddDocumentMetadata.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentMetadata is not found in the empty JSON string", AddDocumentMetadata.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentMetadata.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentMetadata` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentMetadata.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentMetadata.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentMetadata.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() - && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `values` to be an array in the JSON string but got `%s`", - jsonObj.get("values").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentMetadata.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentMetadata' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentMetadata.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentMetadata value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentMetadata read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentMetadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentMetadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentMetadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentMetadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentMetadata read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java index c84f1a48f..a38a65d58 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * AddDocumentOcrRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentOcrRequest { public static final String SERIALIZED_NAME_TEXTRACT_QUERIES = "textractQueries"; @SerializedName(SERIALIZED_NAME_TEXTRACT_QUERIES) @@ -76,8 +67,7 @@ public class AddDocumentOcrRequest { @javax.annotation.Nullable private List parseTypes = new ArrayList<>(); - public static final String SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT = - "addPdfDetectedCharactersAsText"; + public static final String SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT = "addPdfDetectedCharactersAsText"; @SerializedName(SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT) @javax.annotation.Nullable private Boolean addPdfDetectedCharactersAsText; @@ -97,10 +87,10 @@ public class AddDocumentOcrRequest { @javax.annotation.Nullable private OcrOutputType ocrOutputType; - public AddDocumentOcrRequest() {} + public AddDocumentOcrRequest() { + } - public AddDocumentOcrRequest textractQueries( - @javax.annotation.Nullable List textractQueries) { + public AddDocumentOcrRequest textractQueries(@javax.annotation.Nullable List textractQueries) { this.textractQueries = textractQueries; return this; } @@ -115,7 +105,6 @@ public AddDocumentOcrRequest addTextractQueriesItem(TextractQuery textractQuerie /** * Get textractQueries - * * @return textractQueries */ @javax.annotation.Nullable @@ -143,7 +132,6 @@ public AddDocumentOcrRequest addParseTypesItem(String parseTypesItem) { /** * OCR Parse types - TEXT, FORMS, TABLES, QUERIES - * * @return parseTypes */ @javax.annotation.Nullable @@ -156,15 +144,13 @@ public void setParseTypes(@javax.annotation.Nullable List parseTypes) { } - public AddDocumentOcrRequest addPdfDetectedCharactersAsText( - @javax.annotation.Nullable Boolean addPdfDetectedCharactersAsText) { + public AddDocumentOcrRequest addPdfDetectedCharactersAsText(@javax.annotation.Nullable Boolean addPdfDetectedCharactersAsText) { this.addPdfDetectedCharactersAsText = addPdfDetectedCharactersAsText; return this; } /** * Rewrite PDF document, converting any Image text to searchable text - * * @return addPdfDetectedCharactersAsText */ @javax.annotation.Nullable @@ -172,8 +158,7 @@ public Boolean getAddPdfDetectedCharactersAsText() { return addPdfDetectedCharactersAsText; } - public void setAddPdfDetectedCharactersAsText( - @javax.annotation.Nullable Boolean addPdfDetectedCharactersAsText) { + public void setAddPdfDetectedCharactersAsText(@javax.annotation.Nullable Boolean addPdfDetectedCharactersAsText) { this.addPdfDetectedCharactersAsText = addPdfDetectedCharactersAsText; } @@ -185,7 +170,6 @@ public AddDocumentOcrRequest ocrEngine(@javax.annotation.Nullable OcrEngine ocrE /** * Get ocrEngine - * * @return ocrEngine */ @javax.annotation.Nullable @@ -198,15 +182,13 @@ public void setOcrEngine(@javax.annotation.Nullable OcrEngine ocrEngine) { } - public AddDocumentOcrRequest ocrNumberOfPages( - @javax.annotation.Nullable String ocrNumberOfPages) { + public AddDocumentOcrRequest ocrNumberOfPages(@javax.annotation.Nullable String ocrNumberOfPages) { this.ocrNumberOfPages = ocrNumberOfPages; return this; } /** * Number of pages to OCR (from start) (-1 all) - * * @return ocrNumberOfPages */ @javax.annotation.Nullable @@ -219,15 +201,13 @@ public void setOcrNumberOfPages(@javax.annotation.Nullable String ocrNumberOfPag } - public AddDocumentOcrRequest ocrOutputType( - @javax.annotation.Nullable OcrOutputType ocrOutputType) { + public AddDocumentOcrRequest ocrOutputType(@javax.annotation.Nullable OcrOutputType ocrOutputType) { this.ocrOutputType = ocrOutputType; return this; } /** * Get ocrOutputType - * * @return ocrOutputType */ @javax.annotation.Nullable @@ -250,19 +230,17 @@ public boolean equals(Object o) { return false; } AddDocumentOcrRequest addDocumentOcrRequest = (AddDocumentOcrRequest) o; - return Objects.equals(this.textractQueries, addDocumentOcrRequest.textractQueries) - && Objects.equals(this.parseTypes, addDocumentOcrRequest.parseTypes) - && Objects.equals(this.addPdfDetectedCharactersAsText, - addDocumentOcrRequest.addPdfDetectedCharactersAsText) - && Objects.equals(this.ocrEngine, addDocumentOcrRequest.ocrEngine) - && Objects.equals(this.ocrNumberOfPages, addDocumentOcrRequest.ocrNumberOfPages) - && Objects.equals(this.ocrOutputType, addDocumentOcrRequest.ocrOutputType); + return Objects.equals(this.textractQueries, addDocumentOcrRequest.textractQueries) && + Objects.equals(this.parseTypes, addDocumentOcrRequest.parseTypes) && + Objects.equals(this.addPdfDetectedCharactersAsText, addDocumentOcrRequest.addPdfDetectedCharactersAsText) && + Objects.equals(this.ocrEngine, addDocumentOcrRequest.ocrEngine) && + Objects.equals(this.ocrNumberOfPages, addDocumentOcrRequest.ocrNumberOfPages) && + Objects.equals(this.ocrOutputType, addDocumentOcrRequest.ocrOutputType); } @Override public int hashCode() { - return Objects.hash(textractQueries, parseTypes, addPdfDetectedCharactersAsText, ocrEngine, - ocrNumberOfPages, ocrOutputType); + return Objects.hash(textractQueries, parseTypes, addPdfDetectedCharactersAsText, ocrEngine, ocrNumberOfPages, ocrOutputType); } @Override @@ -271,8 +249,7 @@ public String toString() { sb.append("class AddDocumentOcrRequest {\n"); sb.append(" textractQueries: ").append(toIndentedString(textractQueries)).append("\n"); sb.append(" parseTypes: ").append(toIndentedString(parseTypes)).append("\n"); - sb.append(" addPdfDetectedCharactersAsText: ") - .append(toIndentedString(addPdfDetectedCharactersAsText)).append("\n"); + sb.append(" addPdfDetectedCharactersAsText: ").append(toIndentedString(addPdfDetectedCharactersAsText)).append("\n"); sb.append(" ocrEngine: ").append(toIndentedString(ocrEngine)).append("\n"); sb.append(" ocrNumberOfPages: ").append(toIndentedString(ocrNumberOfPages)).append("\n"); sb.append(" ocrOutputType: ").append(toIndentedString(ocrOutputType)).append("\n"); @@ -281,7 +258,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,8 +274,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("textractQueries", "parseTypes", - "addPdfDetectedCharactersAsText", "ocrEngine", "ocrNumberOfPages", "ocrOutputType")); + openapiFields = new HashSet(Arrays.asList("textractQueries", "parseTypes", "addPdfDetectedCharactersAsText", "ocrEngine", "ocrNumberOfPages", "ocrOutputType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -310,90 +287,77 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentOcrRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentOcrRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentOcrRequest is not found in the empty JSON string", - AddDocumentOcrRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentOcrRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentOcrRequest is not found in the empty JSON string", AddDocumentOcrRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentOcrRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentOcrRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentOcrRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentOcrRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("textractQueries") != null && !jsonObj.get("textractQueries").isJsonNull()) { - JsonArray jsonArraytextractQueries = jsonObj.getAsJsonArray("textractQueries"); - if (jsonArraytextractQueries != null) { - // ensure the json data is an array - if (!jsonObj.get("textractQueries").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `textractQueries` to be an array in the JSON string but got `%s`", - jsonObj.get("textractQueries").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("textractQueries") != null && !jsonObj.get("textractQueries").isJsonNull()) { + JsonArray jsonArraytextractQueries = jsonObj.getAsJsonArray("textractQueries"); + if (jsonArraytextractQueries != null) { + // ensure the json data is an array + if (!jsonObj.get("textractQueries").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `textractQueries` to be an array in the JSON string but got `%s`", jsonObj.get("textractQueries").toString())); + } + + // validate the optional field `textractQueries` (array) + for (int i = 0; i < jsonArraytextractQueries.size(); i++) { + TextractQuery.validateJsonElement(jsonArraytextractQueries.get(i)); + }; } - - // validate the optional field `textractQueries` (array) - for (int i = 0; i < jsonArraytextractQueries.size(); i++) { - TextractQuery.validateJsonElement(jsonArraytextractQueries.get(i)); - } ; } - } - // ensure the optional json data is an array if present - if (jsonObj.get("parseTypes") != null && !jsonObj.get("parseTypes").isJsonNull() - && !jsonObj.get("parseTypes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `parseTypes` to be an array in the JSON string but got `%s`", - jsonObj.get("parseTypes").toString())); - } - // validate the optional field `ocrEngine` - if (jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) { - OcrEngine.validateJsonElement(jsonObj.get("ocrEngine")); - } - if ((jsonObj.get("ocrNumberOfPages") != null && !jsonObj.get("ocrNumberOfPages").isJsonNull()) - && !jsonObj.get("ocrNumberOfPages").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `ocrNumberOfPages` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("ocrNumberOfPages").toString())); - } - // validate the optional field `ocrOutputType` - if (jsonObj.get("ocrOutputType") != null && !jsonObj.get("ocrOutputType").isJsonNull()) { - OcrOutputType.validateJsonElement(jsonObj.get("ocrOutputType")); - } + // ensure the optional json data is an array if present + if (jsonObj.get("parseTypes") != null && !jsonObj.get("parseTypes").isJsonNull() && !jsonObj.get("parseTypes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `parseTypes` to be an array in the JSON string but got `%s`", jsonObj.get("parseTypes").toString())); + } + // validate the optional field `ocrEngine` + if (jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) { + OcrEngine.validateJsonElement(jsonObj.get("ocrEngine")); + } + if ((jsonObj.get("ocrNumberOfPages") != null && !jsonObj.get("ocrNumberOfPages").isJsonNull()) && !jsonObj.get("ocrNumberOfPages").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrNumberOfPages` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ocrNumberOfPages").toString())); + } + // validate the optional field `ocrOutputType` + if (jsonObj.get("ocrOutputType") != null && !jsonObj.get("ocrOutputType").isJsonNull()) { + OcrOutputType.validateJsonElement(jsonObj.get("ocrOutputType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentOcrRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentOcrRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentOcrRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentOcrRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentOcrRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentOcrRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentOcrRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentOcrRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentOcrRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentOcrRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java index 84c4887d9..d0808c729 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddDocumentOcrResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentOcrResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentOcrResponse() {} + public AddDocumentOcrResponse() { + } public AddDocumentOcrResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public AddDocumentOcrResponse message(@javax.annotation.Nullable String message) /** * OCR processing message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentOcrResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentOcrResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentOcrResponse is not found in the empty JSON string", - AddDocumentOcrResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentOcrResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentOcrResponse is not found in the empty JSON string", AddDocumentOcrResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentOcrResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentOcrResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentOcrResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentOcrResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentOcrResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentOcrResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentOcrResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentOcrResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentOcrResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentOcrResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentOcrResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentOcrResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentOcrResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentOcrResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentRequest.java index 4ef21c6a8..3d946ee8d 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -65,9 +58,7 @@ /** * AddDocumentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentRequest { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -144,7 +135,8 @@ public class AddDocumentRequest { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public AddDocumentRequest() {} + public AddDocumentRequest() { + } public AddDocumentRequest documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -153,7 +145,6 @@ public AddDocumentRequest documentId(@javax.annotation.Nullable String documentI /** * optional Document Identifier (Version 4 UUID), if skipped one will be assigned - * * @return documentId */ @javax.annotation.Nullable @@ -173,7 +164,6 @@ public AddDocumentRequest path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -193,7 +183,6 @@ public AddDocumentRequest checksumType(@javax.annotation.Nullable ChecksumType c /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -213,7 +202,6 @@ public AddDocumentRequest checksum(@javax.annotation.Nullable String checksum) { /** * The checksum value to validate the file against - * * @return checksum */ @javax.annotation.Nullable @@ -233,7 +221,6 @@ public AddDocumentRequest width(@javax.annotation.Nullable String width) { /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -253,7 +240,6 @@ public AddDocumentRequest height(@javax.annotation.Nullable String height) { /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -273,7 +259,6 @@ public AddDocumentRequest deepLinkPath(@javax.annotation.Nullable String deepLin /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -293,7 +278,6 @@ public AddDocumentRequest contentType(@javax.annotation.Nullable String contentT /** * Document media type - * * @return contentType */ @javax.annotation.Nullable @@ -313,7 +297,6 @@ public AddDocumentRequest isBase64(@javax.annotation.Nullable Boolean isBase64) /** * Is the content Base64-encoded? - * * @return isBase64 */ @javax.annotation.Nullable @@ -333,7 +316,6 @@ public AddDocumentRequest content(@javax.annotation.Nonnull String content) { /** * Document content - * * @return content */ @javax.annotation.Nonnull @@ -361,7 +343,6 @@ public AddDocumentRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags - * * @return tags */ @javax.annotation.Nullable @@ -374,8 +355,7 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public AddDocumentRequest metadata( - @javax.annotation.Nullable List metadata) { + public AddDocumentRequest metadata(@javax.annotation.Nullable List metadata) { this.metadata = metadata; return this; } @@ -390,7 +370,6 @@ public AddDocumentRequest addMetadataItem(AddDocumentMetadata metadataItem) { /** * List of document Metadata - * * @return metadata */ @javax.annotation.Nullable @@ -418,7 +397,6 @@ public AddDocumentRequest addActionsItem(AddAction actionsItem) { /** * List of Actions - * * @return actions */ @javax.annotation.Nullable @@ -431,8 +409,7 @@ public void setActions(@javax.annotation.Nullable List actions) { } - public AddDocumentRequest attributes( - @javax.annotation.Nullable List attributes) { + public AddDocumentRequest attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -447,7 +424,6 @@ public AddDocumentRequest addAttributesItem(AddDocumentAttribute attributesItem) /** * List of Attributes to add to document - * * @return attributes */ @javax.annotation.Nullable @@ -475,7 +451,6 @@ public AddDocumentRequest addDocumentsItem(AddChildDocument documentsItem) { /** * List of child documents - * * @return documents */ @javax.annotation.Nullable @@ -498,27 +473,26 @@ public boolean equals(Object o) { return false; } AddDocumentRequest addDocumentRequest = (AddDocumentRequest) o; - return Objects.equals(this.documentId, addDocumentRequest.documentId) - && Objects.equals(this.path, addDocumentRequest.path) - && Objects.equals(this.checksumType, addDocumentRequest.checksumType) - && Objects.equals(this.checksum, addDocumentRequest.checksum) - && Objects.equals(this.width, addDocumentRequest.width) - && Objects.equals(this.height, addDocumentRequest.height) - && Objects.equals(this.deepLinkPath, addDocumentRequest.deepLinkPath) - && Objects.equals(this.contentType, addDocumentRequest.contentType) - && Objects.equals(this.isBase64, addDocumentRequest.isBase64) - && Objects.equals(this.content, addDocumentRequest.content) - && Objects.equals(this.tags, addDocumentRequest.tags) - && Objects.equals(this.metadata, addDocumentRequest.metadata) - && Objects.equals(this.actions, addDocumentRequest.actions) - && Objects.equals(this.attributes, addDocumentRequest.attributes) - && Objects.equals(this.documents, addDocumentRequest.documents); + return Objects.equals(this.documentId, addDocumentRequest.documentId) && + Objects.equals(this.path, addDocumentRequest.path) && + Objects.equals(this.checksumType, addDocumentRequest.checksumType) && + Objects.equals(this.checksum, addDocumentRequest.checksum) && + Objects.equals(this.width, addDocumentRequest.width) && + Objects.equals(this.height, addDocumentRequest.height) && + Objects.equals(this.deepLinkPath, addDocumentRequest.deepLinkPath) && + Objects.equals(this.contentType, addDocumentRequest.contentType) && + Objects.equals(this.isBase64, addDocumentRequest.isBase64) && + Objects.equals(this.content, addDocumentRequest.content) && + Objects.equals(this.tags, addDocumentRequest.tags) && + Objects.equals(this.metadata, addDocumentRequest.metadata) && + Objects.equals(this.actions, addDocumentRequest.actions) && + Objects.equals(this.attributes, addDocumentRequest.attributes) && + Objects.equals(this.documents, addDocumentRequest.documents); } @Override public int hashCode() { - return Objects.hash(documentId, path, checksumType, checksum, width, height, deepLinkPath, - contentType, isBase64, content, tags, metadata, actions, attributes, documents); + return Objects.hash(documentId, path, checksumType, checksum, width, height, deepLinkPath, contentType, isBase64, content, tags, metadata, actions, attributes, documents); } @Override @@ -545,7 +519,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -560,9 +535,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("documentId", "path", "checksumType", - "checksum", "width", "height", "deepLinkPath", "contentType", "isBase64", "content", "tags", - "metadata", "actions", "attributes", "documents")); + openapiFields = new HashSet(Arrays.asList("documentId", "path", "checksumType", "checksum", "width", "height", "deepLinkPath", "contentType", "isBase64", "content", "tags", "metadata", "actions", "attributes", "documents")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("content")); @@ -575,193 +548,153 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentRequest is not found in the empty JSON string", - AddDocumentRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentRequest is not found in the empty JSON string", AddDocumentRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if (!jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if (!jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `metadata` to be an array in the JSON string but got `%s`", - jsonObj.get("metadata").toString())); + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + }; } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - } ; } - } - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - if (jsonArrayactions != null) { - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `actions` to be an array in the JSON string but got `%s`", - jsonObj.get("actions").toString())); + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { + JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); + if (jsonArrayactions != null) { + // ensure the json data is an array + if (!jsonObj.get("actions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); + } + + // validate the optional field `actions` (array) + for (int i = 0; i < jsonArrayactions.size(); i++) { + AddAction.validateJsonElement(jsonArrayactions.get(i)); + }; } - - // validate the optional field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - AddAction.validateJsonElement(jsonArrayactions.get(i)); - } ; } - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + AddChildDocument.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - AddChildDocument.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentResponse.java index 500688a91..664acbbc1 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * AddDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -91,7 +82,8 @@ public class AddDocumentResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public AddDocumentResponse() {} + public AddDocumentResponse() { + } public AddDocumentResponse documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -100,7 +92,6 @@ public AddDocumentResponse documentId(@javax.annotation.Nullable String document /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -120,7 +111,6 @@ public AddDocumentResponse siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -140,7 +130,6 @@ public AddDocumentResponse uploadUrl(@javax.annotation.Nullable String uploadUrl /** * Url to upload document to - * * @return uploadUrl */ @javax.annotation.Nullable @@ -168,7 +157,6 @@ public AddDocumentResponse putHeadersItem(String key, Object headersItem) { /** * Get headers - * * @return headers */ @javax.annotation.Nullable @@ -181,8 +169,7 @@ public void setHeaders(@javax.annotation.Nullable Map headers) { } - public AddDocumentResponse documents( - @javax.annotation.Nullable List documents) { + public AddDocumentResponse documents(@javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -197,7 +184,6 @@ public AddDocumentResponse addDocumentsItem(AddChildDocumentResponse documentsIt /** * List of child documents - * * @return documents */ @javax.annotation.Nullable @@ -220,11 +206,11 @@ public boolean equals(Object o) { return false; } AddDocumentResponse addDocumentResponse = (AddDocumentResponse) o; - return Objects.equals(this.documentId, addDocumentResponse.documentId) - && Objects.equals(this.siteId, addDocumentResponse.siteId) - && Objects.equals(this.uploadUrl, addDocumentResponse.uploadUrl) - && Objects.equals(this.headers, addDocumentResponse.headers) - && Objects.equals(this.documents, addDocumentResponse.documents); + return Objects.equals(this.documentId, addDocumentResponse.documentId) && + Objects.equals(this.siteId, addDocumentResponse.siteId) && + Objects.equals(this.uploadUrl, addDocumentResponse.uploadUrl) && + Objects.equals(this.headers, addDocumentResponse.headers) && + Objects.equals(this.documents, addDocumentResponse.documents); } @Override @@ -246,7 +232,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -261,8 +248,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("documentId", "siteId", "uploadUrl", "headers", "documents")); + openapiFields = new HashSet(Arrays.asList("documentId", "siteId", "uploadUrl", "headers", "documents")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -275,87 +261,71 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentResponse is not found in the empty JSON string", - AddDocumentResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentResponse is not found in the empty JSON string", AddDocumentResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) - && !jsonObj.get("uploadUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("uploadUrl").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) && !jsonObj.get("uploadUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uploadUrl").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + AddChildDocumentResponse.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - AddChildDocumentResponse.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentSync.java b/src/main/java/com/formkiq/client/model/AddDocumentSync.java index 87f867dee..0876919f5 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentSync.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentSync.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * AddDocumentSync */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentSync { public static final String SERIALIZED_NAME_SERVICE = "service"; @SerializedName(SERIALIZED_NAME_SERVICE) @@ -73,7 +64,8 @@ public class AddDocumentSync { @javax.annotation.Nullable private DocumentSyncType type; - public AddDocumentSync() {} + public AddDocumentSync() { + } public AddDocumentSync service(@javax.annotation.Nullable AddDocumentSyncService service) { this.service = service; @@ -82,7 +74,6 @@ public AddDocumentSync service(@javax.annotation.Nullable AddDocumentSyncService /** * Get service - * * @return service */ @javax.annotation.Nullable @@ -102,7 +93,6 @@ public AddDocumentSync type(@javax.annotation.Nullable DocumentSyncType type) { /** * Get type - * * @return type */ @javax.annotation.Nullable @@ -125,8 +115,8 @@ public boolean equals(Object o) { return false; } AddDocumentSync addDocumentSync = (AddDocumentSync) o; - return Objects.equals(this.service, addDocumentSync.service) - && Objects.equals(this.type, addDocumentSync.type); + return Objects.equals(this.service, addDocumentSync.service) && + Objects.equals(this.type, addDocumentSync.type); } @Override @@ -145,7 +135,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,61 +164,56 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentSync */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentSync.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentSync is not found in the empty JSON string", - AddDocumentSync.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentSync.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentSync is not found in the empty JSON string", AddDocumentSync.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentSync.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentSync` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentSync.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentSync` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `service` + if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { + AddDocumentSyncService.validateJsonElement(jsonObj.get("service")); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + DocumentSyncType.validateJsonElement(jsonObj.get("type")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `service` - if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { - AddDocumentSyncService.validateJsonElement(jsonObj.get("service")); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - DocumentSyncType.validateJsonElement(jsonObj.get("type")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentSync.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentSync' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentSync.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentSync value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentSync read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentSync.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentSync' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentSync.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentSync value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentSync read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java index 8539aebb9..977a47acf 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddDocumentSyncRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentSyncRequest { public static final String SERIALIZED_NAME_SYNC = "sync"; @SerializedName(SERIALIZED_NAME_SYNC) @javax.annotation.Nullable private AddDocumentSync sync; - public AddDocumentSyncRequest() {} + public AddDocumentSyncRequest() { + } public AddDocumentSyncRequest sync(@javax.annotation.Nullable AddDocumentSync sync) { this.sync = sync; @@ -76,7 +68,6 @@ public AddDocumentSyncRequest sync(@javax.annotation.Nullable AddDocumentSync sy /** * Get sync - * * @return sync */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentSyncRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentSyncRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentSyncRequest is not found in the empty JSON string", - AddDocumentSyncRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentSyncRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentSyncRequest is not found in the empty JSON string", AddDocumentSyncRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentSyncRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentSyncRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentSyncRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentSyncRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `sync` + if (jsonObj.get("sync") != null && !jsonObj.get("sync").isJsonNull()) { + AddDocumentSync.validateJsonElement(jsonObj.get("sync")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `sync` - if (jsonObj.get("sync") != null && !jsonObj.get("sync").isJsonNull()) { - AddDocumentSync.validateJsonElement(jsonObj.get("sync")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentSyncRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentSyncRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentSyncRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentSyncRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentSyncRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentSyncRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentSyncRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentSyncRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentSyncRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentSyncRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentSyncService.java b/src/main/java/com/formkiq/client/model/AddDocumentSyncService.java index dc9bf1e73..4d1059929 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentSyncService.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentSyncService.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,7 +30,7 @@ */ @JsonAdapter(AddDocumentSyncService.Adapter.class) public enum AddDocumentSyncService { - + FULLTEXT("FULLTEXT"); private String value; @@ -66,8 +59,7 @@ public static AddDocumentSyncService fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AddDocumentSyncService enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final AddDocumentSyncService enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentTag.java b/src/main/java/com/formkiq/client/model/AddDocumentTag.java index 6c07c06b6..735a6ac2e 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentTag.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentTag.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * List of Document Tags (use either 'value' or 'values' not both) */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentTag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -78,7 +69,8 @@ public class AddDocumentTag { @javax.annotation.Nullable private List values = new ArrayList<>(); - public AddDocumentTag() {} + public AddDocumentTag() { + } public AddDocumentTag key(@javax.annotation.Nonnull String key) { this.key = key; @@ -87,7 +79,6 @@ public AddDocumentTag key(@javax.annotation.Nonnull String key) { /** * Tag key - * * @return key */ @javax.annotation.Nonnull @@ -107,7 +98,6 @@ public AddDocumentTag value(@javax.annotation.Nullable String value) { /** * Tag value - * * @return value */ @javax.annotation.Nullable @@ -135,7 +125,6 @@ public AddDocumentTag addValuesItem(String valuesItem) { /** * Tag values - * * @return values */ @javax.annotation.Nullable @@ -158,9 +147,9 @@ public boolean equals(Object o) { return false; } AddDocumentTag addDocumentTag = (AddDocumentTag) o; - return Objects.equals(this.key, addDocumentTag.key) - && Objects.equals(this.value, addDocumentTag.value) - && Objects.equals(this.values, addDocumentTag.values); + return Objects.equals(this.key, addDocumentTag.key) && + Objects.equals(this.value, addDocumentTag.value) && + Objects.equals(this.values, addDocumentTag.values); } @Override @@ -180,7 +169,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -208,80 +198,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentTag is not found in the empty JSON string", - AddDocumentTag.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentTag is not found in the empty JSON string", AddDocumentTag.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentTag` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentTag.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentTag.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() - && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `values` to be an array in the JSON string but got `%s`", - jsonObj.get("values").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java index d3da02414..5a16a6504 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,16 +53,15 @@ /** * Add List of document tags */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentTagsRequest { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @javax.annotation.Nullable private List tags = new ArrayList<>(); - public AddDocumentTagsRequest() {} + public AddDocumentTagsRequest() { + } public AddDocumentTagsRequest tags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -86,7 +78,6 @@ public AddDocumentTagsRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags - * * @return tags */ @javax.annotation.Nullable @@ -127,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,69 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentTagsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentTagsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentTagsRequest is not found in the empty JSON string", - AddDocumentTagsRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentTagsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentTagsRequest is not found in the empty JSON string", AddDocumentTagsRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentTagsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentTagsRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentTagsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentTagsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentTagsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentTagsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentTagsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentTagsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentTagsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentTagsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentTagsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentTagsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentTagsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentTagsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java index 91d0c07dd..5e4337264 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -63,9 +56,7 @@ /** * AddDocumentUploadRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentUploadRequest { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -122,7 +113,8 @@ public class AddDocumentUploadRequest { @javax.annotation.Nullable private List actions = new ArrayList<>(); - public AddDocumentUploadRequest() {} + public AddDocumentUploadRequest() { + } public AddDocumentUploadRequest documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -131,7 +123,6 @@ public AddDocumentUploadRequest documentId(@javax.annotation.Nullable String doc /** * optional Document Identifier, if skipped one will be assigned - * * @return documentId */ @javax.annotation.Nullable @@ -151,7 +142,6 @@ public AddDocumentUploadRequest path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -171,7 +161,6 @@ public AddDocumentUploadRequest contentType(@javax.annotation.Nullable String co /** * Document media type - * * @return contentType */ @javax.annotation.Nullable @@ -191,7 +180,6 @@ public AddDocumentUploadRequest width(@javax.annotation.Nullable String width) { /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -211,7 +199,6 @@ public AddDocumentUploadRequest height(@javax.annotation.Nullable String height) /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -231,7 +218,6 @@ public AddDocumentUploadRequest deepLinkPath(@javax.annotation.Nullable String d /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -244,15 +230,13 @@ public void setDeepLinkPath(@javax.annotation.Nullable String deepLinkPath) { } - public AddDocumentUploadRequest checksumType( - @javax.annotation.Nullable ChecksumType checksumType) { + public AddDocumentUploadRequest checksumType(@javax.annotation.Nullable ChecksumType checksumType) { this.checksumType = checksumType; return this; } /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -272,7 +256,6 @@ public AddDocumentUploadRequest checksum(@javax.annotation.Nullable String check /** * The checksum value to validate the file against - * * @return checksum */ @javax.annotation.Nullable @@ -285,8 +268,7 @@ public void setChecksum(@javax.annotation.Nullable String checksum) { } - public AddDocumentUploadRequest attributes( - @javax.annotation.Nullable List attributes) { + public AddDocumentUploadRequest attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -301,7 +283,6 @@ public AddDocumentUploadRequest addAttributesItem(AddDocumentAttribute attribute /** * List of Attributes to add to document - * * @return attributes */ @javax.annotation.Nullable @@ -329,7 +310,6 @@ public AddDocumentUploadRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags - * * @return tags */ @javax.annotation.Nullable @@ -357,7 +337,6 @@ public AddDocumentUploadRequest addActionsItem(AddAction actionsItem) { /** * List of Actions - * * @return actions */ @javax.annotation.Nullable @@ -380,23 +359,22 @@ public boolean equals(Object o) { return false; } AddDocumentUploadRequest addDocumentUploadRequest = (AddDocumentUploadRequest) o; - return Objects.equals(this.documentId, addDocumentUploadRequest.documentId) - && Objects.equals(this.path, addDocumentUploadRequest.path) - && Objects.equals(this.contentType, addDocumentUploadRequest.contentType) - && Objects.equals(this.width, addDocumentUploadRequest.width) - && Objects.equals(this.height, addDocumentUploadRequest.height) - && Objects.equals(this.deepLinkPath, addDocumentUploadRequest.deepLinkPath) - && Objects.equals(this.checksumType, addDocumentUploadRequest.checksumType) - && Objects.equals(this.checksum, addDocumentUploadRequest.checksum) - && Objects.equals(this.attributes, addDocumentUploadRequest.attributes) - && Objects.equals(this.tags, addDocumentUploadRequest.tags) - && Objects.equals(this.actions, addDocumentUploadRequest.actions); + return Objects.equals(this.documentId, addDocumentUploadRequest.documentId) && + Objects.equals(this.path, addDocumentUploadRequest.path) && + Objects.equals(this.contentType, addDocumentUploadRequest.contentType) && + Objects.equals(this.width, addDocumentUploadRequest.width) && + Objects.equals(this.height, addDocumentUploadRequest.height) && + Objects.equals(this.deepLinkPath, addDocumentUploadRequest.deepLinkPath) && + Objects.equals(this.checksumType, addDocumentUploadRequest.checksumType) && + Objects.equals(this.checksum, addDocumentUploadRequest.checksum) && + Objects.equals(this.attributes, addDocumentUploadRequest.attributes) && + Objects.equals(this.tags, addDocumentUploadRequest.tags) && + Objects.equals(this.actions, addDocumentUploadRequest.actions); } @Override public int hashCode() { - return Objects.hash(documentId, path, contentType, width, height, deepLinkPath, checksumType, - checksum, attributes, tags, actions); + return Objects.hash(documentId, path, contentType, width, height, deepLinkPath, checksumType, checksum, attributes, tags, actions); } @Override @@ -419,7 +397,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -434,8 +413,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("documentId", "path", "contentType", "width", - "height", "deepLinkPath", "checksumType", "checksum", "attributes", "tags", "actions")); + openapiFields = new HashSet(Arrays.asList("documentId", "path", "contentType", "width", "height", "deepLinkPath", "checksumType", "checksum", "attributes", "tags", "actions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -448,147 +426,115 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentUploadRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentUploadRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentUploadRequest is not found in the empty JSON string", - AddDocumentUploadRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentUploadRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentUploadRequest is not found in the empty JSON string", AddDocumentUploadRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentUploadRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentUploadRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentUploadRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentUploadRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - if (jsonArrayactions != null) { - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `actions` to be an array in the JSON string but got `%s`", - jsonObj.get("actions").toString())); + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { + JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); + if (jsonArrayactions != null) { + // ensure the json data is an array + if (!jsonObj.get("actions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); + } + + // validate the optional field `actions` (array) + for (int i = 0; i < jsonArrayactions.size(); i++) { + AddAction.validateJsonElement(jsonArrayactions.get(i)); + }; } - - // validate the optional field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - AddAction.validateJsonElement(jsonArrayactions.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentUploadRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentUploadRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentUploadRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentUploadRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentUploadRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentUploadRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentUploadRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentUploadRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentUploadRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentUploadRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java index 377372104..e108bab68 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * AddDocumentWorkflowDecisionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowDecisionsRequest { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; @SerializedName(SERIALIZED_NAME_STEP_ID) @@ -77,7 +68,7 @@ public class AddDocumentWorkflowDecisionsRequest { @JsonAdapter(DecisionEnum.Adapter.class) public enum DecisionEnum { APPROVE("APPROVE"), - + REJECT("REJECT"); private String value; @@ -106,14 +97,13 @@ public static DecisionEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DecisionEnum enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final DecisionEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public DecisionEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return DecisionEnum.fromValue(value); } } @@ -129,7 +119,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nonnull private DecisionEnum decision; - public AddDocumentWorkflowDecisionsRequest() {} + public AddDocumentWorkflowDecisionsRequest() { + } public AddDocumentWorkflowDecisionsRequest stepId(@javax.annotation.Nullable String stepId) { this.stepId = stepId; @@ -138,7 +129,6 @@ public AddDocumentWorkflowDecisionsRequest stepId(@javax.annotation.Nullable Str /** * Workflow Step Identifier - * * @return stepId */ @javax.annotation.Nullable @@ -158,7 +148,6 @@ public AddDocumentWorkflowDecisionsRequest comments(@javax.annotation.Nullable S /** * Workflow decision comments - * * @return comments */ @javax.annotation.Nullable @@ -171,15 +160,13 @@ public void setComments(@javax.annotation.Nullable String comments) { } - public AddDocumentWorkflowDecisionsRequest decision( - @javax.annotation.Nonnull DecisionEnum decision) { + public AddDocumentWorkflowDecisionsRequest decision(@javax.annotation.Nonnull DecisionEnum decision) { this.decision = decision; return this; } /** * Get decision - * * @return decision */ @javax.annotation.Nonnull @@ -201,11 +188,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest = - (AddDocumentWorkflowDecisionsRequest) o; - return Objects.equals(this.stepId, addDocumentWorkflowDecisionsRequest.stepId) - && Objects.equals(this.comments, addDocumentWorkflowDecisionsRequest.comments) - && Objects.equals(this.decision, addDocumentWorkflowDecisionsRequest.decision); + AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest = (AddDocumentWorkflowDecisionsRequest) o; + return Objects.equals(this.stepId, addDocumentWorkflowDecisionsRequest.stepId) && + Objects.equals(this.comments, addDocumentWorkflowDecisionsRequest.comments) && + Objects.equals(this.decision, addDocumentWorkflowDecisionsRequest.decision); } @Override @@ -225,7 +211,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -250,88 +237,69 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddDocumentWorkflowDecisionsRequest + * @throws IOException if the JSON Element is invalid with respect to AddDocumentWorkflowDecisionsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentWorkflowDecisionsRequest.openapiRequiredFields.isEmpty()) { // has required - // fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentWorkflowDecisionsRequest is not found in the empty JSON string", - AddDocumentWorkflowDecisionsRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentWorkflowDecisionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentWorkflowDecisionsRequest is not found in the empty JSON string", AddDocumentWorkflowDecisionsRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentWorkflowDecisionsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowDecisionsRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentWorkflowDecisionsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowDecisionsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentWorkflowDecisionsRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentWorkflowDecisionsRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) - && !jsonObj.get("stepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stepId").toString())); - } - if ((jsonObj.get("comments") != null && !jsonObj.get("comments").isJsonNull()) - && !jsonObj.get("comments").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `comments` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("comments").toString())); - } - if (!jsonObj.get("decision").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `decision` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("decision").toString())); - } - // validate the required field `decision` - DecisionEnum.validateJsonElement(jsonObj.get("decision")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) && !jsonObj.get("stepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stepId").toString())); + } + if ((jsonObj.get("comments") != null && !jsonObj.get("comments").isJsonNull()) && !jsonObj.get("comments").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `comments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("comments").toString())); + } + if (!jsonObj.get("decision").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `decision` to be a primitive type in the JSON string but got `%s`", jsonObj.get("decision").toString())); + } + // validate the required field `decision` + DecisionEnum.validateJsonElement(jsonObj.get("decision")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentWorkflowDecisionsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentWorkflowDecisionsRequest' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowDecisionsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentWorkflowDecisionsRequest value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentWorkflowDecisionsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentWorkflowDecisionsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentWorkflowDecisionsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowDecisionsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentWorkflowDecisionsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentWorkflowDecisionsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -340,8 +308,7 @@ public AddDocumentWorkflowDecisionsRequest read(JsonReader in) throws IOExceptio * * @param jsonString JSON string * @return An instance of AddDocumentWorkflowDecisionsRequest - * @throws IOException if the JSON string is invalid with respect to - * AddDocumentWorkflowDecisionsRequest + * @throws IOException if the JSON string is invalid with respect to AddDocumentWorkflowDecisionsRequest */ public static AddDocumentWorkflowDecisionsRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocumentWorkflowDecisionsRequest.class); diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java index 5959e0b80..7302583aa 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddDocumentWorkflowDecisionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowDecisionsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentWorkflowDecisionsResponse() {} + public AddDocumentWorkflowDecisionsResponse() { + } public AddDocumentWorkflowDecisionsResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public AddDocumentWorkflowDecisionsResponse message(@javax.annotation.Nullable S /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -97,8 +88,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocumentWorkflowDecisionsResponse addDocumentWorkflowDecisionsResponse = - (AddDocumentWorkflowDecisionsResponse) o; + AddDocumentWorkflowDecisionsResponse addDocumentWorkflowDecisionsResponse = (AddDocumentWorkflowDecisionsResponse) o; return Objects.equals(this.message, addDocumentWorkflowDecisionsResponse.message); } @@ -117,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,67 +133,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddDocumentWorkflowDecisionsResponse + * @throws IOException if the JSON Element is invalid with respect to AddDocumentWorkflowDecisionsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentWorkflowDecisionsResponse.openapiRequiredFields.isEmpty()) { // has required - // fields but - // JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentWorkflowDecisionsResponse is not found in the empty JSON string", - AddDocumentWorkflowDecisionsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentWorkflowDecisionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentWorkflowDecisionsResponse is not found in the empty JSON string", AddDocumentWorkflowDecisionsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentWorkflowDecisionsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowDecisionsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentWorkflowDecisionsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowDecisionsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentWorkflowDecisionsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentWorkflowDecisionsResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowDecisionsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentWorkflowDecisionsResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentWorkflowDecisionsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentWorkflowDecisionsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentWorkflowDecisionsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowDecisionsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentWorkflowDecisionsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentWorkflowDecisionsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -211,11 +189,9 @@ public AddDocumentWorkflowDecisionsResponse read(JsonReader in) throws IOExcepti * * @param jsonString JSON string * @return An instance of AddDocumentWorkflowDecisionsResponse - * @throws IOException if the JSON string is invalid with respect to - * AddDocumentWorkflowDecisionsResponse + * @throws IOException if the JSON string is invalid with respect to AddDocumentWorkflowDecisionsResponse */ - public static AddDocumentWorkflowDecisionsResponse fromJson(String jsonString) - throws IOException { + public static AddDocumentWorkflowDecisionsResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocumentWorkflowDecisionsResponse.class); } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java index b13062fe3..7827c3638 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddDocumentWorkflowRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowRequest { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; @SerializedName(SERIALIZED_NAME_WORKFLOW_ID) @javax.annotation.Nonnull private String workflowId; - public AddDocumentWorkflowRequest() {} + public AddDocumentWorkflowRequest() { + } public AddDocumentWorkflowRequest workflowId(@javax.annotation.Nonnull String workflowId) { this.workflowId = workflowId; @@ -75,7 +67,6 @@ public AddDocumentWorkflowRequest workflowId(@javax.annotation.Nonnull String wo /** * Workflow Identifier - * * @return workflowId */ @javax.annotation.Nonnull @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,67 +136,58 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentWorkflowRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentWorkflowRequest is not found in the empty JSON string", - AddDocumentWorkflowRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentWorkflowRequest is not found in the empty JSON string", AddDocumentWorkflowRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentWorkflowRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentWorkflowRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentWorkflowRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentWorkflowRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workflowId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentWorkflowRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentWorkflowRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentWorkflowRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentWorkflowRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentWorkflowRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentWorkflowRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentWorkflowRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentWorkflowRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java index f87d123be..aeac09224 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddDocumentWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentWorkflowResponse() {} + public AddDocumentWorkflowResponse() { + } public AddDocumentWorkflowResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public AddDocumentWorkflowResponse message(@javax.annotation.Nullable String mes /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocumentWorkflowResponse is not found in the empty JSON string", - AddDocumentWorkflowResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocumentWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentWorkflowResponse is not found in the empty JSON string", AddDocumentWorkflowResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java index c62f52659..2b8bb1b12 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -63,9 +56,7 @@ /** * AddDocusignEnvelopesRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignEnvelopesRequest { public static final String SERIALIZED_NAME_EMAIL_SUBJECT = "emailSubject"; @SerializedName(SERIALIZED_NAME_EMAIL_SUBJECT) @@ -92,7 +83,8 @@ public class AddDocusignEnvelopesRequest { @javax.annotation.Nullable private DocusignNotification notification; - public AddDocusignEnvelopesRequest() {} + public AddDocusignEnvelopesRequest() { + } public AddDocusignEnvelopesRequest emailSubject(@javax.annotation.Nullable String emailSubject) { this.emailSubject = emailSubject; @@ -101,7 +93,6 @@ public AddDocusignEnvelopesRequest emailSubject(@javax.annotation.Nullable Strin /** * The subject line of the email message that is sent to all recipients - * * @return emailSubject */ @javax.annotation.Nullable @@ -114,15 +105,13 @@ public void setEmailSubject(@javax.annotation.Nullable String emailSubject) { } - public AddDocusignEnvelopesRequest environment( - @javax.annotation.Nonnull DocusignEnvironment environment) { + public AddDocusignEnvelopesRequest environment(@javax.annotation.Nonnull DocusignEnvironment environment) { this.environment = environment; return this; } /** * Get environment - * * @return environment */ @javax.annotation.Nonnull @@ -135,8 +124,7 @@ public void setEnvironment(@javax.annotation.Nonnull DocusignEnvironment environ } - public AddDocusignEnvelopesRequest signers( - @javax.annotation.Nullable List signers) { + public AddDocusignEnvelopesRequest signers(@javax.annotation.Nullable List signers) { this.signers = signers; return this; } @@ -151,7 +139,6 @@ public AddDocusignEnvelopesRequest addSignersItem(DocusignSigner signersItem) { /** * List of DocuSign Signers - * * @return signers */ @javax.annotation.Nullable @@ -164,14 +151,12 @@ public void setSigners(@javax.annotation.Nullable List signers) } - public AddDocusignEnvelopesRequest inpersonSigners( - @javax.annotation.Nullable List inpersonSigners) { + public AddDocusignEnvelopesRequest inpersonSigners(@javax.annotation.Nullable List inpersonSigners) { this.inpersonSigners = inpersonSigners; return this; } - public AddDocusignEnvelopesRequest addInpersonSignersItem( - DocusignInpersonSigner inpersonSignersItem) { + public AddDocusignEnvelopesRequest addInpersonSignersItem(DocusignInpersonSigner inpersonSignersItem) { if (this.inpersonSigners == null) { this.inpersonSigners = new ArrayList<>(); } @@ -181,7 +166,6 @@ public AddDocusignEnvelopesRequest addInpersonSignersItem( /** * List of DocuSign Inperson Signers - * * @return inpersonSigners */ @javax.annotation.Nullable @@ -189,21 +173,18 @@ public List getInpersonSigners() { return inpersonSigners; } - public void setInpersonSigners( - @javax.annotation.Nullable List inpersonSigners) { + public void setInpersonSigners(@javax.annotation.Nullable List inpersonSigners) { this.inpersonSigners = inpersonSigners; } - public AddDocusignEnvelopesRequest notification( - @javax.annotation.Nullable DocusignNotification notification) { + public AddDocusignEnvelopesRequest notification(@javax.annotation.Nullable DocusignNotification notification) { this.notification = notification; return this; } /** * Get notification - * * @return notification */ @javax.annotation.Nullable @@ -226,11 +207,11 @@ public boolean equals(Object o) { return false; } AddDocusignEnvelopesRequest addDocusignEnvelopesRequest = (AddDocusignEnvelopesRequest) o; - return Objects.equals(this.emailSubject, addDocusignEnvelopesRequest.emailSubject) - && Objects.equals(this.environment, addDocusignEnvelopesRequest.environment) - && Objects.equals(this.signers, addDocusignEnvelopesRequest.signers) - && Objects.equals(this.inpersonSigners, addDocusignEnvelopesRequest.inpersonSigners) - && Objects.equals(this.notification, addDocusignEnvelopesRequest.notification); + return Objects.equals(this.emailSubject, addDocusignEnvelopesRequest.emailSubject) && + Objects.equals(this.environment, addDocusignEnvelopesRequest.environment) && + Objects.equals(this.signers, addDocusignEnvelopesRequest.signers) && + Objects.equals(this.inpersonSigners, addDocusignEnvelopesRequest.inpersonSigners) && + Objects.equals(this.notification, addDocusignEnvelopesRequest.notification); } @Override @@ -252,7 +233,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -267,8 +249,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("emailSubject", "environment", "signers", "inpersonSigners", "notification")); + openapiFields = new HashSet(Arrays.asList("emailSubject", "environment", "signers", "inpersonSigners", "notification")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("environment")); @@ -281,106 +262,92 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocusignEnvelopesRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocusignEnvelopesRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocusignEnvelopesRequest is not found in the empty JSON string", - AddDocusignEnvelopesRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocusignEnvelopesRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocusignEnvelopesRequest is not found in the empty JSON string", AddDocusignEnvelopesRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocusignEnvelopesRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocusignEnvelopesRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocusignEnvelopesRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocusignEnvelopesRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocusignEnvelopesRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocusignEnvelopesRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("emailSubject") != null && !jsonObj.get("emailSubject").isJsonNull()) - && !jsonObj.get("emailSubject").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `emailSubject` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("emailSubject").toString())); - } - // validate the required field `environment` - DocusignEnvironment.validateJsonElement(jsonObj.get("environment")); - if (jsonObj.get("signers") != null && !jsonObj.get("signers").isJsonNull()) { - JsonArray jsonArraysigners = jsonObj.getAsJsonArray("signers"); - if (jsonArraysigners != null) { - // ensure the json data is an array - if (!jsonObj.get("signers").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `signers` to be an array in the JSON string but got `%s`", - jsonObj.get("signers").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("emailSubject") != null && !jsonObj.get("emailSubject").isJsonNull()) && !jsonObj.get("emailSubject").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `emailSubject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emailSubject").toString())); + } + // validate the required field `environment` + DocusignEnvironment.validateJsonElement(jsonObj.get("environment")); + if (jsonObj.get("signers") != null && !jsonObj.get("signers").isJsonNull()) { + JsonArray jsonArraysigners = jsonObj.getAsJsonArray("signers"); + if (jsonArraysigners != null) { + // ensure the json data is an array + if (!jsonObj.get("signers").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signers` to be an array in the JSON string but got `%s`", jsonObj.get("signers").toString())); + } + + // validate the optional field `signers` (array) + for (int i = 0; i < jsonArraysigners.size(); i++) { + DocusignSigner.validateJsonElement(jsonArraysigners.get(i)); + }; } - - // validate the optional field `signers` (array) - for (int i = 0; i < jsonArraysigners.size(); i++) { - DocusignSigner.validateJsonElement(jsonArraysigners.get(i)); - } ; } - } - if (jsonObj.get("inpersonSigners") != null && !jsonObj.get("inpersonSigners").isJsonNull()) { - JsonArray jsonArrayinpersonSigners = jsonObj.getAsJsonArray("inpersonSigners"); - if (jsonArrayinpersonSigners != null) { - // ensure the json data is an array - if (!jsonObj.get("inpersonSigners").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `inpersonSigners` to be an array in the JSON string but got `%s`", - jsonObj.get("inpersonSigners").toString())); + if (jsonObj.get("inpersonSigners") != null && !jsonObj.get("inpersonSigners").isJsonNull()) { + JsonArray jsonArrayinpersonSigners = jsonObj.getAsJsonArray("inpersonSigners"); + if (jsonArrayinpersonSigners != null) { + // ensure the json data is an array + if (!jsonObj.get("inpersonSigners").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `inpersonSigners` to be an array in the JSON string but got `%s`", jsonObj.get("inpersonSigners").toString())); + } + + // validate the optional field `inpersonSigners` (array) + for (int i = 0; i < jsonArrayinpersonSigners.size(); i++) { + DocusignInpersonSigner.validateJsonElement(jsonArrayinpersonSigners.get(i)); + }; } - - // validate the optional field `inpersonSigners` (array) - for (int i = 0; i < jsonArrayinpersonSigners.size(); i++) { - DocusignInpersonSigner.validateJsonElement(jsonArrayinpersonSigners.get(i)); - } ; } - } - // validate the optional field `notification` - if (jsonObj.get("notification") != null && !jsonObj.get("notification").isJsonNull()) { - DocusignNotification.validateJsonElement(jsonObj.get("notification")); - } + // validate the optional field `notification` + if (jsonObj.get("notification") != null && !jsonObj.get("notification").isJsonNull()) { + DocusignNotification.validateJsonElement(jsonObj.get("notification")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocusignEnvelopesRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocusignEnvelopesRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocusignEnvelopesRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocusignEnvelopesRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocusignEnvelopesRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocusignEnvelopesRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocusignEnvelopesRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocusignEnvelopesRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocusignEnvelopesRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocusignEnvelopesRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java index a119d49a1..71e4f9e84 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddDocusignEnvelopesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignEnvelopesResponse { public static final String SERIALIZED_NAME_ENVELOPE_ID = "envelopeId"; @SerializedName(SERIALIZED_NAME_ENVELOPE_ID) @javax.annotation.Nullable private String envelopeId; - public AddDocusignEnvelopesResponse() {} + public AddDocusignEnvelopesResponse() { + } public AddDocusignEnvelopesResponse envelopeId(@javax.annotation.Nullable String envelopeId) { this.envelopeId = envelopeId; @@ -75,7 +67,6 @@ public AddDocusignEnvelopesResponse envelopeId(@javax.annotation.Nullable String /** * Docusign Envelope Identifier - * * @return envelopeId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,60 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocusignEnvelopesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocusignEnvelopesResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocusignEnvelopesResponse is not found in the empty JSON string", - AddDocusignEnvelopesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocusignEnvelopesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocusignEnvelopesResponse is not found in the empty JSON string", AddDocusignEnvelopesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocusignEnvelopesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocusignEnvelopesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocusignEnvelopesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocusignEnvelopesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("envelopeId") != null && !jsonObj.get("envelopeId").isJsonNull()) && !jsonObj.get("envelopeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `envelopeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("envelopeId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("envelopeId") != null && !jsonObj.get("envelopeId").isJsonNull()) - && !jsonObj.get("envelopeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `envelopeId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("envelopeId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocusignEnvelopesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocusignEnvelopesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocusignEnvelopesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocusignEnvelopesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocusignEnvelopesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocusignEnvelopesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocusignEnvelopesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocusignEnvelopesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocusignEnvelopesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocusignEnvelopesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java index b64ca40cd..7a34013e0 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * AddDocusignRecipientViewRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignRecipientViewRequest { public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; @SerializedName(SERIALIZED_NAME_ENVIRONMENT) @@ -73,17 +64,16 @@ public class AddDocusignRecipientViewRequest { @javax.annotation.Nonnull private DocusignRecipientView recipientView; - public AddDocusignRecipientViewRequest() {} + public AddDocusignRecipientViewRequest() { + } - public AddDocusignRecipientViewRequest environment( - @javax.annotation.Nonnull DocusignEnvironment environment) { + public AddDocusignRecipientViewRequest environment(@javax.annotation.Nonnull DocusignEnvironment environment) { this.environment = environment; return this; } /** * Get environment - * * @return environment */ @javax.annotation.Nonnull @@ -96,15 +86,13 @@ public void setEnvironment(@javax.annotation.Nonnull DocusignEnvironment environ } - public AddDocusignRecipientViewRequest recipientView( - @javax.annotation.Nonnull DocusignRecipientView recipientView) { + public AddDocusignRecipientViewRequest recipientView(@javax.annotation.Nonnull DocusignRecipientView recipientView) { this.recipientView = recipientView; return this; } /** * Get recipientView - * * @return recipientView */ @javax.annotation.Nonnull @@ -126,10 +114,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocusignRecipientViewRequest addDocusignRecipientViewRequest = - (AddDocusignRecipientViewRequest) o; - return Objects.equals(this.environment, addDocusignRecipientViewRequest.environment) - && Objects.equals(this.recipientView, addDocusignRecipientViewRequest.recipientView); + AddDocusignRecipientViewRequest addDocusignRecipientViewRequest = (AddDocusignRecipientViewRequest) o; + return Objects.equals(this.environment, addDocusignRecipientViewRequest.environment) && + Objects.equals(this.recipientView, addDocusignRecipientViewRequest.recipientView); } @Override @@ -148,7 +135,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,73 +161,62 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddDocusignRecipientViewRequest + * @throws IOException if the JSON Element is invalid with respect to AddDocusignRecipientViewRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocusignRecipientViewRequest.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocusignRecipientViewRequest is not found in the empty JSON string", - AddDocusignRecipientViewRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocusignRecipientViewRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocusignRecipientViewRequest is not found in the empty JSON string", AddDocusignRecipientViewRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocusignRecipientViewRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocusignRecipientViewRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocusignRecipientViewRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocusignRecipientViewRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocusignRecipientViewRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocusignRecipientViewRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `environment` - DocusignEnvironment.validateJsonElement(jsonObj.get("environment")); - // validate the required field `recipientView` - DocusignRecipientView.validateJsonElement(jsonObj.get("recipientView")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `environment` + DocusignEnvironment.validateJsonElement(jsonObj.get("environment")); + // validate the required field `recipientView` + DocusignRecipientView.validateJsonElement(jsonObj.get("recipientView")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocusignRecipientViewRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocusignRecipientViewRequest' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocusignRecipientViewRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocusignRecipientViewRequest value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocusignRecipientViewRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocusignRecipientViewRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocusignRecipientViewRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocusignRecipientViewRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocusignRecipientViewRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocusignRecipientViewRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -248,8 +225,7 @@ public AddDocusignRecipientViewRequest read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddDocusignRecipientViewRequest - * @throws IOException if the JSON string is invalid with respect to - * AddDocusignRecipientViewRequest + * @throws IOException if the JSON string is invalid with respect to AddDocusignRecipientViewRequest */ public static AddDocusignRecipientViewRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocusignRecipientViewRequest.class); diff --git a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java index 3e584d2cd..85e8d4296 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddDocusignRecipientViewResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignRecipientViewResponse { public static final String SERIALIZED_NAME_VIEW_URL = "viewUrl"; @SerializedName(SERIALIZED_NAME_VIEW_URL) @javax.annotation.Nullable private String viewUrl; - public AddDocusignRecipientViewResponse() {} + public AddDocusignRecipientViewResponse() { + } public AddDocusignRecipientViewResponse viewUrl(@javax.annotation.Nullable String viewUrl) { this.viewUrl = viewUrl; @@ -75,7 +67,6 @@ public AddDocusignRecipientViewResponse viewUrl(@javax.annotation.Nullable Strin /** * The view URL to be navigated to complete DocuSign signing - * * @return viewUrl */ @javax.annotation.Nullable @@ -97,8 +88,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocusignRecipientViewResponse addDocusignRecipientViewResponse = - (AddDocusignRecipientViewResponse) o; + AddDocusignRecipientViewResponse addDocusignRecipientViewResponse = (AddDocusignRecipientViewResponse) o; return Objects.equals(this.viewUrl, addDocusignRecipientViewResponse.viewUrl); } @@ -117,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,66 +133,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddDocusignRecipientViewResponse + * @throws IOException if the JSON Element is invalid with respect to AddDocusignRecipientViewResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocusignRecipientViewResponse.openapiRequiredFields.isEmpty()) { // has required - // fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddDocusignRecipientViewResponse is not found in the empty JSON string", - AddDocusignRecipientViewResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddDocusignRecipientViewResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocusignRecipientViewResponse is not found in the empty JSON string", AddDocusignRecipientViewResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocusignRecipientViewResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddDocusignRecipientViewResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocusignRecipientViewResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocusignRecipientViewResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("viewUrl") != null && !jsonObj.get("viewUrl").isJsonNull()) && !jsonObj.get("viewUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `viewUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("viewUrl").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("viewUrl") != null && !jsonObj.get("viewUrl").isJsonNull()) - && !jsonObj.get("viewUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `viewUrl` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("viewUrl").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocusignRecipientViewResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocusignRecipientViewResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddDocusignRecipientViewResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocusignRecipientViewResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocusignRecipientViewResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocusignRecipientViewResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocusignRecipientViewResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddDocusignRecipientViewResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocusignRecipientViewResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocusignRecipientViewResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -210,8 +189,7 @@ public AddDocusignRecipientViewResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddDocusignRecipientViewResponse - * @throws IOException if the JSON string is invalid with respect to - * AddDocusignRecipientViewResponse + * @throws IOException if the JSON string is invalid with respect to AddDocusignRecipientViewResponse */ public static AddDocusignRecipientViewResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocusignRecipientViewResponse.class); diff --git a/src/main/java/com/formkiq/client/model/AddEntity.java b/src/main/java/com/formkiq/client/model/AddEntity.java index 44f00e0ba..dd81ceecd 100644 --- a/src/main/java/com/formkiq/client/model/AddEntity.java +++ b/src/main/java/com/formkiq/client/model/AddEntity.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * AddEntity */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntity { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -74,7 +65,8 @@ public class AddEntity { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public AddEntity() {} + public AddEntity() { + } public AddEntity name(@javax.annotation.Nullable String name) { this.name = name; @@ -83,7 +75,6 @@ public AddEntity name(@javax.annotation.Nullable String name) { /** * Entity Name - * * @return name */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public AddEntity addAttributesItem(AddEntityAttribute attributesItem) { /** * List of Entity Attributes - * * @return attributes */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } AddEntity addEntity = (AddEntity) o; - return Objects.equals(this.name, addEntity.name) - && Objects.equals(this.attributes, addEntity.attributes); + return Objects.equals(this.name, addEntity.name) && + Objects.equals(this.attributes, addEntity.attributes); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntity */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddEntity is not found in the empty JSON string", - AddEntity.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddEntity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntity is not found in the empty JSON string", AddEntity.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddEntity` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddEntityAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddEntityAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddEntity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddEntity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityAttribute.java b/src/main/java/com/formkiq/client/model/AddEntityAttribute.java index a6f0dcbda..44f042979 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddEntityAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * AddEntityAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -94,7 +85,8 @@ public class AddEntityAttribute { @javax.annotation.Nullable private Boolean booleanValue; - public AddEntityAttribute() {} + public AddEntityAttribute() { + } public AddEntityAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -103,7 +95,6 @@ public AddEntityAttribute key(@javax.annotation.Nullable String key) { /** * Attribute key - * * @return key */ @javax.annotation.Nullable @@ -123,7 +114,6 @@ public AddEntityAttribute stringValue(@javax.annotation.Nullable String stringVa /** * Attribute with string value - * * @return stringValue */ @javax.annotation.Nullable @@ -151,7 +141,6 @@ public AddEntityAttribute addStringValuesItem(String stringValuesItem) { /** * Attribute with string values - * * @return stringValues */ @javax.annotation.Nullable @@ -171,7 +160,6 @@ public AddEntityAttribute numberValue(@javax.annotation.Nullable BigDecimal numb /** * Attribute with number value - * * @return numberValue */ @javax.annotation.Nullable @@ -199,7 +187,6 @@ public AddEntityAttribute addNumberValuesItem(BigDecimal numberValuesItem) { /** * Attribute with number values - * * @return numberValues */ @javax.annotation.Nullable @@ -219,7 +206,6 @@ public AddEntityAttribute booleanValue(@javax.annotation.Nullable Boolean boolea /** * Attribute with boolean value - * * @return booleanValue */ @javax.annotation.Nullable @@ -242,12 +228,12 @@ public boolean equals(Object o) { return false; } AddEntityAttribute addEntityAttribute = (AddEntityAttribute) o; - return Objects.equals(this.key, addEntityAttribute.key) - && Objects.equals(this.stringValue, addEntityAttribute.stringValue) - && Objects.equals(this.stringValues, addEntityAttribute.stringValues) - && Objects.equals(this.numberValue, addEntityAttribute.numberValue) - && Objects.equals(this.numberValues, addEntityAttribute.numberValues) - && Objects.equals(this.booleanValue, addEntityAttribute.booleanValue); + return Objects.equals(this.key, addEntityAttribute.key) && + Objects.equals(this.stringValue, addEntityAttribute.stringValue) && + Objects.equals(this.stringValues, addEntityAttribute.stringValues) && + Objects.equals(this.numberValue, addEntityAttribute.numberValue) && + Objects.equals(this.numberValues, addEntityAttribute.numberValues) && + Objects.equals(this.booleanValue, addEntityAttribute.booleanValue); } @Override @@ -270,7 +256,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -285,8 +272,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", - "numberValue", "numberValues", "booleanValue")); + openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", "numberValue", "numberValues", "booleanValue")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -299,79 +285,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddEntityAttribute is not found in the empty JSON string", - AddEntityAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddEntityAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityAttribute is not found in the empty JSON string", AddEntityAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddEntityAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) - && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stringValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() - && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValues` to be an array in the JSON string but got `%s`", - jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() - && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberValues` to be an array in the JSON string but got `%s`", - jsonObj.get("numberValues").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddEntityAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddEntityAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityRequest.java b/src/main/java/com/formkiq/client/model/AddEntityRequest.java index 26c455669..8039df77c 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityRequest.java +++ b/src/main/java/com/formkiq/client/model/AddEntityRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddEntityRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityRequest { public static final String SERIALIZED_NAME_ENTITY = "entity"; @SerializedName(SERIALIZED_NAME_ENTITY) @javax.annotation.Nullable private AddEntity entity; - public AddEntityRequest() {} + public AddEntityRequest() { + } public AddEntityRequest entity(@javax.annotation.Nullable AddEntity entity) { this.entity = entity; @@ -76,7 +68,6 @@ public AddEntityRequest entity(@javax.annotation.Nullable AddEntity entity) { /** * Get entity - * * @return entity */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddEntityRequest is not found in the empty JSON string", - AddEntityRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddEntityRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityRequest is not found in the empty JSON string", AddEntityRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddEntityRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `entity` + if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { + AddEntity.validateJsonElement(jsonObj.get("entity")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `entity` - if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { - AddEntity.validateJsonElement(jsonObj.get("entity")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddEntityRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddEntityRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityResponse.java b/src/main/java/com/formkiq/client/model/AddEntityResponse.java index a56fa5d45..85bb7b3ef 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityResponse.java +++ b/src/main/java/com/formkiq/client/model/AddEntityResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddEntityResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityResponse { public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; @SerializedName(SERIALIZED_NAME_ENTITY_ID) @javax.annotation.Nullable private String entityId; - public AddEntityResponse() {} + public AddEntityResponse() { + } public AddEntityResponse entityId(@javax.annotation.Nullable String entityId) { this.entityId = entityId; @@ -75,7 +67,6 @@ public AddEntityResponse entityId(@javax.annotation.Nullable String entityId) { /** * Entity Identifier - * * @return entityId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddEntityResponse is not found in the empty JSON string", - AddEntityResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddEntityResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityResponse is not found in the empty JSON string", AddEntityResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddEntityResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) && !jsonObj.get("entityId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) - && !jsonObj.get("entityId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("entityId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddEntityResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddEntityResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityType.java b/src/main/java/com/formkiq/client/model/AddEntityType.java index b720e6ec7..0854b8eb8 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityType.java +++ b/src/main/java/com/formkiq/client/model/AddEntityType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * AddEntityType */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityType { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -72,7 +63,8 @@ public class AddEntityType { @javax.annotation.Nullable private String name; - public AddEntityType() {} + public AddEntityType() { + } public AddEntityType namespace(@javax.annotation.Nullable EntityTypeNamespace namespace) { this.namespace = namespace; @@ -81,7 +73,6 @@ public AddEntityType namespace(@javax.annotation.Nullable EntityTypeNamespace na /** * Get namespace - * * @return namespace */ @javax.annotation.Nullable @@ -101,7 +92,6 @@ public AddEntityType name(@javax.annotation.Nullable String name) { /** * Entity Type Name - * * @return name */ @javax.annotation.Nullable @@ -124,8 +114,8 @@ public boolean equals(Object o) { return false; } AddEntityType addEntityType = (AddEntityType) o; - return Objects.equals(this.namespace, addEntityType.namespace) - && Objects.equals(this.name, addEntityType.name); + return Objects.equals(this.namespace, addEntityType.namespace) && + Objects.equals(this.name, addEntityType.name); } @Override @@ -144,7 +134,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,63 +163,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityType */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddEntityType is not found in the empty JSON string", - AddEntityType.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddEntityType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityType is not found in the empty JSON string", AddEntityType.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityType.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddEntityType` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityType.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityType` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `namespace` + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { + EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `namespace` - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { - EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityType.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityType' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddEntityType.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityType value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityType read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityType.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityType' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddEntityType.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityType value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityType read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java b/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java index 7f4d2b3a7..148cdfc46 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java +++ b/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddEntityTypeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityTypeRequest { public static final String SERIALIZED_NAME_ENTITY_TYPE = "entityType"; @SerializedName(SERIALIZED_NAME_ENTITY_TYPE) @javax.annotation.Nullable private AddEntityType entityType; - public AddEntityTypeRequest() {} + public AddEntityTypeRequest() { + } public AddEntityTypeRequest entityType(@javax.annotation.Nullable AddEntityType entityType) { this.entityType = entityType; @@ -76,7 +68,6 @@ public AddEntityTypeRequest entityType(@javax.annotation.Nullable AddEntityType /** * Get entityType - * * @return entityType */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityTypeRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityTypeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddEntityTypeRequest is not found in the empty JSON string", - AddEntityTypeRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddEntityTypeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityTypeRequest is not found in the empty JSON string", AddEntityTypeRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityTypeRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddEntityTypeRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityTypeRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityTypeRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `entityType` + if (jsonObj.get("entityType") != null && !jsonObj.get("entityType").isJsonNull()) { + AddEntityType.validateJsonElement(jsonObj.get("entityType")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `entityType` - if (jsonObj.get("entityType") != null && !jsonObj.get("entityType").isJsonNull()) { - AddEntityType.validateJsonElement(jsonObj.get("entityType")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityTypeRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityTypeRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddEntityTypeRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityTypeRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityTypeRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityTypeRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityTypeRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddEntityTypeRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityTypeRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityTypeRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java b/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java index 8e0802181..018fe015b 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java +++ b/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddEntityTypeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityTypeResponse { public static final String SERIALIZED_NAME_ENTITY_TYPE_ID = "entityTypeId"; @SerializedName(SERIALIZED_NAME_ENTITY_TYPE_ID) @javax.annotation.Nullable private String entityTypeId; - public AddEntityTypeResponse() {} + public AddEntityTypeResponse() { + } public AddEntityTypeResponse entityTypeId(@javax.annotation.Nullable String entityTypeId) { this.entityTypeId = entityTypeId; @@ -75,7 +67,6 @@ public AddEntityTypeResponse entityTypeId(@javax.annotation.Nullable String enti /** * Entity Type Identifier - * * @return entityTypeId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityTypeResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityTypeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddEntityTypeResponse is not found in the empty JSON string", - AddEntityTypeResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddEntityTypeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityTypeResponse is not found in the empty JSON string", AddEntityTypeResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityTypeResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddEntityTypeResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityTypeResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityTypeResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) && !jsonObj.get("entityTypeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityTypeId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) - && !jsonObj.get("entityTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("entityTypeId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityTypeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityTypeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddEntityTypeResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityTypeResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityTypeResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityTypeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityTypeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddEntityTypeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityTypeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityTypeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddFolderPermission.java b/src/main/java/com/formkiq/client/model/AddFolderPermission.java index 5f9a9ed2a..5371d0ef5 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderPermission.java +++ b/src/main/java/com/formkiq/client/model/AddFolderPermission.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * AddFolderPermission */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderPermission { public static final String SERIALIZED_NAME_ROLE_NAME = "roleName"; @SerializedName(SERIALIZED_NAME_ROLE_NAME) @@ -74,7 +65,8 @@ public class AddFolderPermission { @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public AddFolderPermission() {} + public AddFolderPermission() { + } public AddFolderPermission roleName(@javax.annotation.Nullable String roleName) { this.roleName = roleName; @@ -83,7 +75,6 @@ public AddFolderPermission roleName(@javax.annotation.Nullable String roleName) /** * Name of Role - * * @return roleName */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setRoleName(@javax.annotation.Nullable String roleName) { } - public AddFolderPermission permissions( - @javax.annotation.Nullable List permissions) { + public AddFolderPermission permissions(@javax.annotation.Nullable List permissions) { this.permissions = permissions; return this; } @@ -112,7 +102,6 @@ public AddFolderPermission addPermissionsItem(FolderPermissionType permissionsIt /** * List of permissions - * * @return permissions */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } AddFolderPermission addFolderPermission = (AddFolderPermission) o; - return Objects.equals(this.roleName, addFolderPermission.roleName) - && Objects.equals(this.permissions, addFolderPermission.permissions); + return Objects.equals(this.roleName, addFolderPermission.roleName) && + Objects.equals(this.permissions, addFolderPermission.permissions); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,66 +173,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddFolderPermission */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddFolderPermission.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddFolderPermission is not found in the empty JSON string", - AddFolderPermission.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddFolderPermission.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddFolderPermission is not found in the empty JSON string", AddFolderPermission.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddFolderPermission.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddFolderPermission` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddFolderPermission.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddFolderPermission` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("roleName") != null && !jsonObj.get("roleName").isJsonNull()) && !jsonObj.get("roleName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `roleName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("roleName").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("roleName") != null && !jsonObj.get("roleName").isJsonNull()) - && !jsonObj.get("roleName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `roleName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("roleName").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() - && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `permissions` to be an array in the JSON string but got `%s`", - jsonObj.get("permissions").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddFolderPermission.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddFolderPermission' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddFolderPermission.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddFolderPermission value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddFolderPermission read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddFolderPermission.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFolderPermission' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddFolderPermission.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddFolderPermission value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddFolderPermission read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddFolderRequest.java b/src/main/java/com/formkiq/client/model/AddFolderRequest.java index b5aa7c672..2250bdb9b 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderRequest.java +++ b/src/main/java/com/formkiq/client/model/AddFolderRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddFolderRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderRequest { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @javax.annotation.Nullable private String path; - public AddFolderRequest() {} + public AddFolderRequest() { + } public AddFolderRequest path(@javax.annotation.Nullable String path) { this.path = path; @@ -75,7 +67,6 @@ public AddFolderRequest path(@javax.annotation.Nullable String path) { /** * Path of Folder to create - * * @return path */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddFolderRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddFolderRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddFolderRequest is not found in the empty JSON string", - AddFolderRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddFolderRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddFolderRequest is not found in the empty JSON string", AddFolderRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddFolderRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddFolderRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddFolderRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddFolderRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddFolderRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddFolderRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddFolderRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddFolderRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddFolderRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddFolderRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFolderRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddFolderRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddFolderRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddFolderRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddFolderResponse.java b/src/main/java/com/formkiq/client/model/AddFolderResponse.java index d7186479f..33ee6a026 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderResponse.java +++ b/src/main/java/com/formkiq/client/model/AddFolderResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * AddFolderResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -71,7 +62,8 @@ public class AddFolderResponse { @javax.annotation.Nullable private String indexKey; - public AddFolderResponse() {} + public AddFolderResponse() { + } public AddFolderResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -80,7 +72,6 @@ public AddFolderResponse message(@javax.annotation.Nullable String message) { /** * Response Message - * * @return message */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public AddFolderResponse indexKey(@javax.annotation.Nullable String indexKey) { /** * Folder Index Key - * * @return indexKey */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } AddFolderResponse addFolderResponse = (AddFolderResponse) o; - return Objects.equals(this.message, addFolderResponse.message) - && Objects.equals(this.indexKey, addFolderResponse.indexKey); + return Objects.equals(this.message, addFolderResponse.message) && + Objects.equals(this.indexKey, addFolderResponse.indexKey); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddFolderResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddFolderResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddFolderResponse is not found in the empty JSON string", - AddFolderResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddFolderResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddFolderResponse is not found in the empty JSON string", AddFolderResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddFolderResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddFolderResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddFolderResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddFolderResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("indexKey") != null && !jsonObj.get("indexKey").isJsonNull()) && !jsonObj.get("indexKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexKey").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } - if ((jsonObj.get("indexKey") != null && !jsonObj.get("indexKey").isJsonNull()) - && !jsonObj.get("indexKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `indexKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("indexKey").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddFolderResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddFolderResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddFolderResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddFolderResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddFolderResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddFolderResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFolderResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddFolderResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddFolderResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddFolderResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java b/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java index 02a4a211b..5272be78f 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java +++ b/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddFolderShareRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderShareRequest { public static final String SERIALIZED_NAME_SHARE = "share"; @SerializedName(SERIALIZED_NAME_SHARE) @javax.annotation.Nullable private AddShare share; - public AddFolderShareRequest() {} + public AddFolderShareRequest() { + } public AddFolderShareRequest share(@javax.annotation.Nullable AddShare share) { this.share = share; @@ -76,7 +68,6 @@ public AddFolderShareRequest share(@javax.annotation.Nullable AddShare share) { /** * Get share - * * @return share */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddFolderShareRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddFolderShareRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddFolderShareRequest is not found in the empty JSON string", - AddFolderShareRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddFolderShareRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddFolderShareRequest is not found in the empty JSON string", AddFolderShareRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddFolderShareRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddFolderShareRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddFolderShareRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddFolderShareRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `share` + if (jsonObj.get("share") != null && !jsonObj.get("share").isJsonNull()) { + AddShare.validateJsonElement(jsonObj.get("share")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `share` - if (jsonObj.get("share") != null && !jsonObj.get("share").isJsonNull()) { - AddShare.validateJsonElement(jsonObj.get("share")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddFolderShareRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddFolderShareRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddFolderShareRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddFolderShareRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddFolderShareRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddFolderShareRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFolderShareRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddFolderShareRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddFolderShareRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddFolderShareRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java b/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java index 8e9eefb9a..ca5ac29aa 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java +++ b/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * AddFolderShareResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderShareResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -71,7 +62,8 @@ public class AddFolderShareResponse { @javax.annotation.Nullable private String shareKey; - public AddFolderShareResponse() {} + public AddFolderShareResponse() { + } public AddFolderShareResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -80,7 +72,6 @@ public AddFolderShareResponse message(@javax.annotation.Nullable String message) /** * API Response message - * * @return message */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public AddFolderShareResponse shareKey(@javax.annotation.Nullable String shareKe /** * Share Identifier - * * @return shareKey */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } AddFolderShareResponse addFolderShareResponse = (AddFolderShareResponse) o; - return Objects.equals(this.message, addFolderShareResponse.message) - && Objects.equals(this.shareKey, addFolderShareResponse.shareKey); + return Objects.equals(this.message, addFolderShareResponse.message) && + Objects.equals(this.shareKey, addFolderShareResponse.shareKey); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddFolderShareResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddFolderShareResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddFolderShareResponse is not found in the empty JSON string", - AddFolderShareResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddFolderShareResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddFolderShareResponse is not found in the empty JSON string", AddFolderShareResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddFolderShareResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddFolderShareResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddFolderShareResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddFolderShareResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("shareKey") != null && !jsonObj.get("shareKey").isJsonNull()) && !jsonObj.get("shareKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareKey").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } - if ((jsonObj.get("shareKey") != null && !jsonObj.get("shareKey").isJsonNull()) - && !jsonObj.get("shareKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `shareKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("shareKey").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddFolderShareResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddFolderShareResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddFolderShareResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddFolderShareResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddFolderShareResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddFolderShareResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFolderShareResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddFolderShareResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddFolderShareResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddFolderShareResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java index 91855ee45..75c14810a 100644 --- a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java +++ b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * AddGoogleDocumentExportRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGoogleDocumentExportRequest { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -72,7 +63,8 @@ public class AddGoogleDocumentExportRequest { @javax.annotation.Nullable private GoogleExportOutputType outputType; - public AddGoogleDocumentExportRequest() {} + public AddGoogleDocumentExportRequest() { + } public AddGoogleDocumentExportRequest path(@javax.annotation.Nullable String path) { this.path = path; @@ -81,7 +73,6 @@ public AddGoogleDocumentExportRequest path(@javax.annotation.Nullable String pat /** * Path of exported file - * * @return path */ @javax.annotation.Nullable @@ -94,15 +85,13 @@ public void setPath(@javax.annotation.Nullable String path) { } - public AddGoogleDocumentExportRequest outputType( - @javax.annotation.Nullable GoogleExportOutputType outputType) { + public AddGoogleDocumentExportRequest outputType(@javax.annotation.Nullable GoogleExportOutputType outputType) { this.outputType = outputType; return this; } /** * Get outputType - * * @return outputType */ @javax.annotation.Nullable @@ -124,10 +113,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddGoogleDocumentExportRequest addGoogleDocumentExportRequest = - (AddGoogleDocumentExportRequest) o; - return Objects.equals(this.path, addGoogleDocumentExportRequest.path) - && Objects.equals(this.outputType, addGoogleDocumentExportRequest.outputType); + AddGoogleDocumentExportRequest addGoogleDocumentExportRequest = (AddGoogleDocumentExportRequest) o; + return Objects.equals(this.path, addGoogleDocumentExportRequest.path) && + Objects.equals(this.outputType, addGoogleDocumentExportRequest.outputType); } @Override @@ -146,7 +134,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,68 +160,58 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddGoogleDocumentExportRequest + * @throws IOException if the JSON Element is invalid with respect to AddGoogleDocumentExportRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddGoogleDocumentExportRequest.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddGoogleDocumentExportRequest is not found in the empty JSON string", - AddGoogleDocumentExportRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddGoogleDocumentExportRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddGoogleDocumentExportRequest is not found in the empty JSON string", AddGoogleDocumentExportRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddGoogleDocumentExportRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddGoogleDocumentExportRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddGoogleDocumentExportRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddGoogleDocumentExportRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + // validate the optional field `outputType` + if (jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) { + GoogleExportOutputType.validateJsonElement(jsonObj.get("outputType")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - // validate the optional field `outputType` - if (jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) { - GoogleExportOutputType.validateJsonElement(jsonObj.get("outputType")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddGoogleDocumentExportRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddGoogleDocumentExportRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddGoogleDocumentExportRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddGoogleDocumentExportRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddGoogleDocumentExportRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddGoogleDocumentExportRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddGoogleDocumentExportRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddGoogleDocumentExportRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddGoogleDocumentExportRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddGoogleDocumentExportRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -241,8 +220,7 @@ public AddGoogleDocumentExportRequest read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddGoogleDocumentExportRequest - * @throws IOException if the JSON string is invalid with respect to - * AddGoogleDocumentExportRequest + * @throws IOException if the JSON string is invalid with respect to AddGoogleDocumentExportRequest */ public static AddGoogleDocumentExportRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddGoogleDocumentExportRequest.class); diff --git a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java index 5991a2a33..ca718f21f 100644 --- a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java +++ b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddGoogleDocumentExportResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGoogleDocumentExportResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @javax.annotation.Nullable private String documentId; - public AddGoogleDocumentExportResponse() {} + public AddGoogleDocumentExportResponse() { + } public AddGoogleDocumentExportResponse documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -75,7 +67,6 @@ public AddGoogleDocumentExportResponse documentId(@javax.annotation.Nullable Str /** * Exported document identifier - * * @return documentId */ @javax.annotation.Nullable @@ -97,8 +88,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddGoogleDocumentExportResponse addGoogleDocumentExportResponse = - (AddGoogleDocumentExportResponse) o; + AddGoogleDocumentExportResponse addGoogleDocumentExportResponse = (AddGoogleDocumentExportResponse) o; return Objects.equals(this.documentId, addGoogleDocumentExportResponse.documentId); } @@ -117,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,66 +133,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddGoogleDocumentExportResponse + * @throws IOException if the JSON Element is invalid with respect to AddGoogleDocumentExportResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddGoogleDocumentExportResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddGoogleDocumentExportResponse is not found in the empty JSON string", - AddGoogleDocumentExportResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddGoogleDocumentExportResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddGoogleDocumentExportResponse is not found in the empty JSON string", AddGoogleDocumentExportResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddGoogleDocumentExportResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddGoogleDocumentExportResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddGoogleDocumentExportResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddGoogleDocumentExportResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddGoogleDocumentExportResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddGoogleDocumentExportResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddGoogleDocumentExportResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddGoogleDocumentExportResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddGoogleDocumentExportResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddGoogleDocumentExportResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddGoogleDocumentExportResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddGoogleDocumentExportResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddGoogleDocumentExportResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddGoogleDocumentExportResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -210,8 +189,7 @@ public AddGoogleDocumentExportResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddGoogleDocumentExportResponse - * @throws IOException if the JSON string is invalid with respect to - * AddGoogleDocumentExportResponse + * @throws IOException if the JSON string is invalid with respect to AddGoogleDocumentExportResponse */ public static AddGoogleDocumentExportResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddGoogleDocumentExportResponse.class); diff --git a/src/main/java/com/formkiq/client/model/AddGroup.java b/src/main/java/com/formkiq/client/model/AddGroup.java index deb5a6983..c4ad044ac 100644 --- a/src/main/java/com/formkiq/client/model/AddGroup.java +++ b/src/main/java/com/formkiq/client/model/AddGroup.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * AddGroup */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGroup { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,7 +62,8 @@ public class AddGroup { @javax.annotation.Nullable private String description; - public AddGroup() {} + public AddGroup() { + } public AddGroup name(@javax.annotation.Nullable String name) { this.name = name; @@ -80,7 +72,6 @@ public AddGroup name(@javax.annotation.Nullable String name) { /** * Name of Group - * * @return name */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public AddGroup description(@javax.annotation.Nullable String description) { /** * Description of Group - * * @return description */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } AddGroup addGroup = (AddGroup) o; - return Objects.equals(this.name, addGroup.name) - && Objects.equals(this.description, addGroup.description); + return Objects.equals(this.name, addGroup.name) && + Objects.equals(this.description, addGroup.description); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddGroup */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddGroup is not found in the empty JSON string", - AddGroup.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddGroup is not found in the empty JSON string", AddGroup.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddGroup.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddGroup` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddGroup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddGroup.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddGroup' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddGroup.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddGroup value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddGroup read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddGroup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddGroup' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddGroup.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddGroup value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddGroup read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddGroupRequest.java b/src/main/java/com/formkiq/client/model/AddGroupRequest.java index b6d9707fa..c6bc1b47f 100644 --- a/src/main/java/com/formkiq/client/model/AddGroupRequest.java +++ b/src/main/java/com/formkiq/client/model/AddGroupRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddGroupRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGroupRequest { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @javax.annotation.Nonnull private AddGroup group; - public AddGroupRequest() {} + public AddGroupRequest() { + } public AddGroupRequest group(@javax.annotation.Nonnull AddGroup group) { this.group = group; @@ -76,7 +68,6 @@ public AddGroupRequest group(@javax.annotation.Nonnull AddGroup group) { /** * Get group - * * @return group */ @javax.annotation.Nonnull @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,64 +137,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddGroupRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddGroupRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddGroupRequest is not found in the empty JSON string", - AddGroupRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddGroupRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddGroupRequest is not found in the empty JSON string", AddGroupRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddGroupRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddGroupRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddGroupRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddGroupRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddGroupRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddGroupRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `group` - AddGroup.validateJsonElement(jsonObj.get("group")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `group` + AddGroup.validateJsonElement(jsonObj.get("group")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddGroupRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddGroupRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddGroupRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddGroupRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddGroupRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddGroupRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddGroupRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddGroupRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddGroupRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddGroupRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddLocaleRequest.java b/src/main/java/com/formkiq/client/model/AddLocaleRequest.java index d223d18aa..4c3205a67 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleRequest.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddLocaleRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleRequest { public static final String SERIALIZED_NAME_LOCALE = "locale"; @SerializedName(SERIALIZED_NAME_LOCALE) @javax.annotation.Nullable private String locale; - public AddLocaleRequest() {} + public AddLocaleRequest() { + } public AddLocaleRequest locale(@javax.annotation.Nullable String locale) { this.locale = locale; @@ -75,7 +67,6 @@ public AddLocaleRequest locale(@javax.annotation.Nullable String locale) { /** * Name of Locale - * * @return locale */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddLocaleRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddLocaleRequest is not found in the empty JSON string", - AddLocaleRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddLocaleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleRequest is not found in the empty JSON string", AddLocaleRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddLocaleRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) && !jsonObj.get("locale").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locale").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) - && !jsonObj.get("locale").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("locale").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddLocaleRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java index a0e18b6e7..ba970693d 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * AddLocaleResourceClassificationItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceClassificationItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; @SerializedName(SERIALIZED_NAME_ITEM_TYPE) @@ -87,17 +78,16 @@ public class AddLocaleResourceClassificationItem { @javax.annotation.Nonnull private String localizedValue; - public AddLocaleResourceClassificationItem() {} + public AddLocaleResourceClassificationItem() { + } - public AddLocaleResourceClassificationItem itemType( - @javax.annotation.Nonnull LocaleResourceType itemType) { + public AddLocaleResourceClassificationItem itemType(@javax.annotation.Nonnull LocaleResourceType itemType) { this.itemType = itemType; return this; } /** * Get itemType - * * @return itemType */ @javax.annotation.Nonnull @@ -110,15 +100,13 @@ public void setItemType(@javax.annotation.Nonnull LocaleResourceType itemType) { } - public AddLocaleResourceClassificationItem classificationId( - @javax.annotation.Nonnull String classificationId) { + public AddLocaleResourceClassificationItem classificationId(@javax.annotation.Nonnull String classificationId) { this.classificationId = classificationId; return this; } /** * Classification Id - * * @return classificationId */ @javax.annotation.Nonnull @@ -131,15 +119,13 @@ public void setClassificationId(@javax.annotation.Nonnull String classificationI } - public AddLocaleResourceClassificationItem attributeKey( - @javax.annotation.Nonnull String attributeKey) { + public AddLocaleResourceClassificationItem attributeKey(@javax.annotation.Nonnull String attributeKey) { this.attributeKey = attributeKey; return this; } /** * Attribute Key - * * @return attributeKey */ @javax.annotation.Nonnull @@ -152,15 +138,13 @@ public void setAttributeKey(@javax.annotation.Nonnull String attributeKey) { } - public AddLocaleResourceClassificationItem allowedValue( - @javax.annotation.Nonnull String allowedValue) { + public AddLocaleResourceClassificationItem allowedValue(@javax.annotation.Nonnull String allowedValue) { this.allowedValue = allowedValue; return this; } /** * Resource value - * * @return allowedValue */ @javax.annotation.Nonnull @@ -173,15 +157,13 @@ public void setAllowedValue(@javax.annotation.Nonnull String allowedValue) { } - public AddLocaleResourceClassificationItem localizedValue( - @javax.annotation.Nonnull String localizedValue) { + public AddLocaleResourceClassificationItem localizedValue(@javax.annotation.Nonnull String localizedValue) { this.localizedValue = localizedValue; return this; } /** * Localized Value - * * @return localizedValue */ @javax.annotation.Nonnull @@ -203,14 +185,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddLocaleResourceClassificationItem addLocaleResourceClassificationItem = - (AddLocaleResourceClassificationItem) o; - return Objects.equals(this.itemType, addLocaleResourceClassificationItem.itemType) - && Objects.equals(this.classificationId, - addLocaleResourceClassificationItem.classificationId) - && Objects.equals(this.attributeKey, addLocaleResourceClassificationItem.attributeKey) - && Objects.equals(this.allowedValue, addLocaleResourceClassificationItem.allowedValue) - && Objects.equals(this.localizedValue, addLocaleResourceClassificationItem.localizedValue); + AddLocaleResourceClassificationItem addLocaleResourceClassificationItem = (AddLocaleResourceClassificationItem) o; + return Objects.equals(this.itemType, addLocaleResourceClassificationItem.itemType) && + Objects.equals(this.classificationId, addLocaleResourceClassificationItem.classificationId) && + Objects.equals(this.attributeKey, addLocaleResourceClassificationItem.attributeKey) && + Objects.equals(this.allowedValue, addLocaleResourceClassificationItem.allowedValue) && + Objects.equals(this.localizedValue, addLocaleResourceClassificationItem.localizedValue); } @Override @@ -232,7 +212,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -247,103 +228,82 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("itemType", "classificationId", - "attributeKey", "allowedValue", "localizedValue")); + openapiFields = new HashSet(Arrays.asList("itemType", "classificationId", "attributeKey", "allowedValue", "localizedValue")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("itemType", "classificationId", - "attributeKey", "allowedValue", "localizedValue")); + openapiRequiredFields = new HashSet(Arrays.asList("itemType", "classificationId", "attributeKey", "allowedValue", "localizedValue")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddLocaleResourceClassificationItem + * @throws IOException if the JSON Element is invalid with respect to AddLocaleResourceClassificationItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleResourceClassificationItem.openapiRequiredFields.isEmpty()) { // has required - // fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddLocaleResourceClassificationItem is not found in the empty JSON string", - AddLocaleResourceClassificationItem.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddLocaleResourceClassificationItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleResourceClassificationItem is not found in the empty JSON string", AddLocaleResourceClassificationItem.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleResourceClassificationItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddLocaleResourceClassificationItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleResourceClassificationItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleResourceClassificationItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddLocaleResourceClassificationItem.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddLocaleResourceClassificationItem.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `itemType` + LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); + if (!jsonObj.get("classificationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("classificationId").toString())); + } + if (!jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); + } + if (!jsonObj.get("allowedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allowedValue").toString())); + } + if (!jsonObj.get("localizedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localizedValue").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `itemType` - LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); - if (!jsonObj.get("classificationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("classificationId").toString())); - } - if (!jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("attributeKey").toString())); - } - if (!jsonObj.get("allowedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("allowedValue").toString())); - } - if (!jsonObj.get("localizedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("localizedValue").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleResourceClassificationItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleResourceClassificationItem' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceClassificationItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleResourceClassificationItem value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleResourceClassificationItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleResourceClassificationItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleResourceClassificationItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceClassificationItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleResourceClassificationItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleResourceClassificationItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -352,8 +312,7 @@ public AddLocaleResourceClassificationItem read(JsonReader in) throws IOExceptio * * @param jsonString JSON string * @return An instance of AddLocaleResourceClassificationItem - * @throws IOException if the JSON string is invalid with respect to - * AddLocaleResourceClassificationItem + * @throws IOException if the JSON string is invalid with respect to AddLocaleResourceClassificationItem */ public static AddLocaleResourceClassificationItem fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddLocaleResourceClassificationItem.class); diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java index 88a22b4e3..af92ba9ef 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * AddLocaleResourceInterfaceItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceInterfaceItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; @SerializedName(SERIALIZED_NAME_ITEM_TYPE) @@ -77,17 +68,16 @@ public class AddLocaleResourceInterfaceItem { @javax.annotation.Nonnull private String interfaceKey; - public AddLocaleResourceInterfaceItem() {} + public AddLocaleResourceInterfaceItem() { + } - public AddLocaleResourceInterfaceItem itemType( - @javax.annotation.Nonnull LocaleResourceType itemType) { + public AddLocaleResourceInterfaceItem itemType(@javax.annotation.Nonnull LocaleResourceType itemType) { this.itemType = itemType; return this; } /** * Get itemType - * * @return itemType */ @javax.annotation.Nonnull @@ -100,15 +90,13 @@ public void setItemType(@javax.annotation.Nonnull LocaleResourceType itemType) { } - public AddLocaleResourceInterfaceItem localizedValue( - @javax.annotation.Nonnull String localizedValue) { + public AddLocaleResourceInterfaceItem localizedValue(@javax.annotation.Nonnull String localizedValue) { this.localizedValue = localizedValue; return this; } /** * Localized Value - * * @return localizedValue */ @javax.annotation.Nonnull @@ -121,15 +109,13 @@ public void setLocalizedValue(@javax.annotation.Nonnull String localizedValue) { } - public AddLocaleResourceInterfaceItem interfaceKey( - @javax.annotation.Nonnull String interfaceKey) { + public AddLocaleResourceInterfaceItem interfaceKey(@javax.annotation.Nonnull String interfaceKey) { this.interfaceKey = interfaceKey; return this; } /** * Interface Key - * * @return interfaceKey */ @javax.annotation.Nonnull @@ -151,11 +137,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddLocaleResourceInterfaceItem addLocaleResourceInterfaceItem = - (AddLocaleResourceInterfaceItem) o; - return Objects.equals(this.itemType, addLocaleResourceInterfaceItem.itemType) - && Objects.equals(this.localizedValue, addLocaleResourceInterfaceItem.localizedValue) - && Objects.equals(this.interfaceKey, addLocaleResourceInterfaceItem.interfaceKey); + AddLocaleResourceInterfaceItem addLocaleResourceInterfaceItem = (AddLocaleResourceInterfaceItem) o; + return Objects.equals(this.itemType, addLocaleResourceInterfaceItem.itemType) && + Objects.equals(this.localizedValue, addLocaleResourceInterfaceItem.localizedValue) && + Objects.equals(this.interfaceKey, addLocaleResourceInterfaceItem.interfaceKey); } @Override @@ -175,7 +160,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,91 +176,76 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey")); + openapiFields = new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = - new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey")); + openapiRequiredFields = new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddLocaleResourceInterfaceItem + * @throws IOException if the JSON Element is invalid with respect to AddLocaleResourceInterfaceItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleResourceInterfaceItem.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddLocaleResourceInterfaceItem is not found in the empty JSON string", - AddLocaleResourceInterfaceItem.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddLocaleResourceInterfaceItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleResourceInterfaceItem is not found in the empty JSON string", AddLocaleResourceInterfaceItem.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleResourceInterfaceItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddLocaleResourceInterfaceItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleResourceInterfaceItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleResourceInterfaceItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddLocaleResourceInterfaceItem.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddLocaleResourceInterfaceItem.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `itemType` + LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); + if (!jsonObj.get("localizedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localizedValue").toString())); + } + if (!jsonObj.get("interfaceKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interfaceKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceKey").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `itemType` - LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); - if (!jsonObj.get("localizedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("localizedValue").toString())); - } - if (!jsonObj.get("interfaceKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `interfaceKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("interfaceKey").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleResourceInterfaceItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleResourceInterfaceItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceInterfaceItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleResourceInterfaceItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleResourceInterfaceItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleResourceInterfaceItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleResourceInterfaceItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceInterfaceItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleResourceInterfaceItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleResourceInterfaceItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -283,8 +254,7 @@ public AddLocaleResourceInterfaceItem read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddLocaleResourceInterfaceItem - * @throws IOException if the JSON string is invalid with respect to - * AddLocaleResourceInterfaceItem + * @throws IOException if the JSON string is invalid with respect to AddLocaleResourceInterfaceItem */ public static AddLocaleResourceInterfaceItem fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddLocaleResourceInterfaceItem.class); diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java index 7313f331f..66afad2be 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * AddLocaleResourceItemRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceItemRequest { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; @SerializedName(SERIALIZED_NAME_RESOURCE_ITEM) @javax.annotation.Nullable private AddResourceItem resourceItem; - public AddLocaleResourceItemRequest() {} + public AddLocaleResourceItemRequest() { + } - public AddLocaleResourceItemRequest resourceItem( - @javax.annotation.Nullable AddResourceItem resourceItem) { + public AddLocaleResourceItemRequest resourceItem(@javax.annotation.Nullable AddResourceItem resourceItem) { this.resourceItem = resourceItem; return this; } /** * Get resourceItem - * * @return resourceItem */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,58 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddLocaleResourceItemRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleResourceItemRequest.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddLocaleResourceItemRequest is not found in the empty JSON string", - AddLocaleResourceItemRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddLocaleResourceItemRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleResourceItemRequest is not found in the empty JSON string", AddLocaleResourceItemRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleResourceItemRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddLocaleResourceItemRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleResourceItemRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleResourceItemRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `resourceItem` + if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { + AddResourceItem.validateJsonElement(jsonObj.get("resourceItem")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `resourceItem` - if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { - AddResourceItem.validateJsonElement(jsonObj.get("resourceItem")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleResourceItemRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleResourceItemRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceItemRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleResourceItemRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleResourceItemRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleResourceItemRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleResourceItemRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceItemRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleResourceItemRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleResourceItemRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java index 6c6737b71..e59ef6a4d 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddLocaleResourceItemResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceItemResponse { public static final String SERIALIZED_NAME_ITEM_KEY = "itemKey"; @SerializedName(SERIALIZED_NAME_ITEM_KEY) @javax.annotation.Nullable private String itemKey; - public AddLocaleResourceItemResponse() {} + public AddLocaleResourceItemResponse() { + } public AddLocaleResourceItemResponse itemKey(@javax.annotation.Nullable String itemKey) { this.itemKey = itemKey; @@ -75,7 +67,6 @@ public AddLocaleResourceItemResponse itemKey(@javax.annotation.Nullable String i /** * Item Key of resource - * * @return itemKey */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -141,64 +133,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * AddLocaleResourceItemResponse + * @throws IOException if the JSON Element is invalid with respect to AddLocaleResourceItemResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleResourceItemResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddLocaleResourceItemResponse is not found in the empty JSON string", - AddLocaleResourceItemResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddLocaleResourceItemResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleResourceItemResponse is not found in the empty JSON string", AddLocaleResourceItemResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleResourceItemResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddLocaleResourceItemResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleResourceItemResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleResourceItemResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("itemKey") != null && !jsonObj.get("itemKey").isJsonNull()) && !jsonObj.get("itemKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `itemKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("itemKey").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("itemKey") != null && !jsonObj.get("itemKey").isJsonNull()) - && !jsonObj.get("itemKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `itemKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("itemKey").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleResourceItemResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleResourceItemResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceItemResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleResourceItemResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleResourceItemResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleResourceItemResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleResourceItemResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceItemResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleResourceItemResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleResourceItemResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java index c0a7994cb..3cc0472e7 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * AddLocaleResourceSchemaItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceSchemaItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; @SerializedName(SERIALIZED_NAME_ITEM_TYPE) @@ -82,17 +73,16 @@ public class AddLocaleResourceSchemaItem { @javax.annotation.Nonnull private String localizedValue; - public AddLocaleResourceSchemaItem() {} + public AddLocaleResourceSchemaItem() { + } - public AddLocaleResourceSchemaItem itemType( - @javax.annotation.Nonnull LocaleResourceType itemType) { + public AddLocaleResourceSchemaItem itemType(@javax.annotation.Nonnull LocaleResourceType itemType) { this.itemType = itemType; return this; } /** * Get itemType - * * @return itemType */ @javax.annotation.Nonnull @@ -112,7 +102,6 @@ public AddLocaleResourceSchemaItem attributeKey(@javax.annotation.Nonnull String /** * Attribute Key - * * @return attributeKey */ @javax.annotation.Nonnull @@ -132,7 +121,6 @@ public AddLocaleResourceSchemaItem allowedValue(@javax.annotation.Nonnull String /** * Resource value - * * @return allowedValue */ @javax.annotation.Nonnull @@ -145,15 +133,13 @@ public void setAllowedValue(@javax.annotation.Nonnull String allowedValue) { } - public AddLocaleResourceSchemaItem localizedValue( - @javax.annotation.Nonnull String localizedValue) { + public AddLocaleResourceSchemaItem localizedValue(@javax.annotation.Nonnull String localizedValue) { this.localizedValue = localizedValue; return this; } /** * Localized Value - * * @return localizedValue */ @javax.annotation.Nonnull @@ -176,10 +162,10 @@ public boolean equals(Object o) { return false; } AddLocaleResourceSchemaItem addLocaleResourceSchemaItem = (AddLocaleResourceSchemaItem) o; - return Objects.equals(this.itemType, addLocaleResourceSchemaItem.itemType) - && Objects.equals(this.attributeKey, addLocaleResourceSchemaItem.attributeKey) - && Objects.equals(this.allowedValue, addLocaleResourceSchemaItem.allowedValue) - && Objects.equals(this.localizedValue, addLocaleResourceSchemaItem.localizedValue); + return Objects.equals(this.itemType, addLocaleResourceSchemaItem.itemType) && + Objects.equals(this.attributeKey, addLocaleResourceSchemaItem.attributeKey) && + Objects.equals(this.allowedValue, addLocaleResourceSchemaItem.allowedValue) && + Objects.equals(this.localizedValue, addLocaleResourceSchemaItem.localizedValue); } @Override @@ -200,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -215,12 +202,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("itemType", "attributeKey", "allowedValue", "localizedValue")); + openapiFields = new HashSet(Arrays.asList("itemType", "attributeKey", "allowedValue", "localizedValue")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet( - Arrays.asList("itemType", "attributeKey", "allowedValue", "localizedValue")); + openapiRequiredFields = new HashSet(Arrays.asList("itemType", "attributeKey", "allowedValue", "localizedValue")); } /** @@ -230,79 +215,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddLocaleResourceSchemaItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleResourceSchemaItem.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddLocaleResourceSchemaItem is not found in the empty JSON string", - AddLocaleResourceSchemaItem.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddLocaleResourceSchemaItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleResourceSchemaItem is not found in the empty JSON string", AddLocaleResourceSchemaItem.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleResourceSchemaItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddLocaleResourceSchemaItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleResourceSchemaItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleResourceSchemaItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddLocaleResourceSchemaItem.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddLocaleResourceSchemaItem.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `itemType` + LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); + if (!jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); + } + if (!jsonObj.get("allowedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allowedValue").toString())); + } + if (!jsonObj.get("localizedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localizedValue").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `itemType` - LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); - if (!jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("attributeKey").toString())); - } - if (!jsonObj.get("allowedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("allowedValue").toString())); - } - if (!jsonObj.get("localizedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("localizedValue").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleResourceSchemaItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleResourceSchemaItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceSchemaItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleResourceSchemaItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleResourceSchemaItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleResourceSchemaItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleResourceSchemaItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceSchemaItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleResourceSchemaItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleResourceSchemaItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddMapping.java b/src/main/java/com/formkiq/client/model/AddMapping.java index 9b21a02f7..b7cef97e3 100644 --- a/src/main/java/com/formkiq/client/model/AddMapping.java +++ b/src/main/java/com/formkiq/client/model/AddMapping.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * AddMapping */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddMapping { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -79,7 +70,8 @@ public class AddMapping { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public AddMapping() {} + public AddMapping() { + } public AddMapping name(@javax.annotation.Nullable String name) { this.name = name; @@ -88,7 +80,6 @@ public AddMapping name(@javax.annotation.Nullable String name) { /** * Name of Mapping - * * @return name */ @javax.annotation.Nullable @@ -108,7 +99,6 @@ public AddMapping description(@javax.annotation.Nullable String description) { /** * Description of Mapping - * * @return description */ @javax.annotation.Nullable @@ -136,7 +126,6 @@ public AddMapping addAttributesItem(MappingAttribute attributesItem) { /** * List of attributes - * * @return attributes */ @javax.annotation.Nullable @@ -159,9 +148,9 @@ public boolean equals(Object o) { return false; } AddMapping addMapping = (AddMapping) o; - return Objects.equals(this.name, addMapping.name) - && Objects.equals(this.description, addMapping.description) - && Objects.equals(this.attributes, addMapping.attributes); + return Objects.equals(this.name, addMapping.name) && + Objects.equals(this.description, addMapping.description) && + Objects.equals(this.attributes, addMapping.attributes); } @Override @@ -181,7 +170,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -209,81 +199,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddMapping */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddMapping is not found in the empty JSON string", - AddMapping.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddMapping is not found in the empty JSON string", AddMapping.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddMapping.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddMapping` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddMapping.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + MappingAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - MappingAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddMapping.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddMapping' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddMapping.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddMapping value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddMapping read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddMapping.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddMapping' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddMapping.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddMapping value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddMapping read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddMappingRequest.java b/src/main/java/com/formkiq/client/model/AddMappingRequest.java index a816936cd..30bd08de7 100644 --- a/src/main/java/com/formkiq/client/model/AddMappingRequest.java +++ b/src/main/java/com/formkiq/client/model/AddMappingRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddMappingRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddMappingRequest { public static final String SERIALIZED_NAME_MAPPING = "mapping"; @SerializedName(SERIALIZED_NAME_MAPPING) @javax.annotation.Nullable private AddMapping mapping; - public AddMappingRequest() {} + public AddMappingRequest() { + } public AddMappingRequest mapping(@javax.annotation.Nullable AddMapping mapping) { this.mapping = mapping; @@ -76,7 +68,6 @@ public AddMappingRequest mapping(@javax.annotation.Nullable AddMapping mapping) /** * Get mapping - * * @return mapping */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddMappingRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddMappingRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddMappingRequest is not found in the empty JSON string", - AddMappingRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddMappingRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddMappingRequest is not found in the empty JSON string", AddMappingRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddMappingRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddMappingRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddMappingRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddMappingRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `mapping` + if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { + AddMapping.validateJsonElement(jsonObj.get("mapping")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `mapping` - if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { - AddMapping.validateJsonElement(jsonObj.get("mapping")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddMappingRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddMappingRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddMappingRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddMappingRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddMappingRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddMappingRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddMappingRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddMappingRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddMappingRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddMappingRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddMappingResponse.java b/src/main/java/com/formkiq/client/model/AddMappingResponse.java index 1223f4366..6c12bccee 100644 --- a/src/main/java/com/formkiq/client/model/AddMappingResponse.java +++ b/src/main/java/com/formkiq/client/model/AddMappingResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddMappingResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddMappingResponse { public static final String SERIALIZED_NAME_MAPPING_ID = "mappingId"; @SerializedName(SERIALIZED_NAME_MAPPING_ID) @javax.annotation.Nullable private String mappingId; - public AddMappingResponse() {} + public AddMappingResponse() { + } public AddMappingResponse mappingId(@javax.annotation.Nullable String mappingId) { this.mappingId = mappingId; @@ -75,7 +67,6 @@ public AddMappingResponse mappingId(@javax.annotation.Nullable String mappingId) /** * Mapping Identifier - * * @return mappingId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddMappingResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddMappingResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddMappingResponse is not found in the empty JSON string", - AddMappingResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddMappingResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddMappingResponse is not found in the empty JSON string", AddMappingResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddMappingResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddMappingResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddMappingResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddMappingResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) && !jsonObj.get("mappingId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mappingId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) - && !jsonObj.get("mappingId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("mappingId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddMappingResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddMappingResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddMappingResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddMappingResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddMappingResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddMappingResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddMappingResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddMappingResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddMappingResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddMappingResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddNigo.java b/src/main/java/com/formkiq/client/model/AddNigo.java index e6f851f1b..0864ad5c2 100644 --- a/src/main/java/com/formkiq/client/model/AddNigo.java +++ b/src/main/java/com/formkiq/client/model/AddNigo.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * AddNigo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddNigo { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -111,7 +102,8 @@ public class AddNigo { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public AddNigo() {} + public AddNigo() { + } public AddNigo name(@javax.annotation.Nonnull String name) { this.name = name; @@ -120,7 +112,6 @@ public AddNigo name(@javax.annotation.Nonnull String name) { /** * Name of Nigo - * * @return name */ @javax.annotation.Nonnull @@ -140,7 +131,6 @@ public AddNigo description(@javax.annotation.Nullable String description) { /** * Description of Nigo - * * @return description */ @javax.annotation.Nullable @@ -160,7 +150,6 @@ public AddNigo status(@javax.annotation.Nullable NigoStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -180,7 +169,6 @@ public AddNigo plannedStartDate(@javax.annotation.Nullable String plannedStartDa /** * Planned Start Date - * * @return plannedStartDate */ @javax.annotation.Nullable @@ -200,7 +188,6 @@ public AddNigo startDate(@javax.annotation.Nullable String startDate) { /** * Start Date - * * @return startDate */ @javax.annotation.Nullable @@ -220,7 +207,6 @@ public AddNigo endDate(@javax.annotation.Nullable String endDate) { /** * End Date - * * @return endDate */ @javax.annotation.Nullable @@ -240,7 +226,6 @@ public AddNigo dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date - * * @return dueDate */ @javax.annotation.Nullable @@ -268,7 +253,6 @@ public AddNigo putMetadataItem(String key, Object metadataItem) { /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -296,7 +280,6 @@ public AddNigo addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds - * * @return documentIds */ @javax.annotation.Nullable @@ -319,21 +302,20 @@ public boolean equals(Object o) { return false; } AddNigo addNigo = (AddNigo) o; - return Objects.equals(this.name, addNigo.name) - && Objects.equals(this.description, addNigo.description) - && Objects.equals(this.status, addNigo.status) - && Objects.equals(this.plannedStartDate, addNigo.plannedStartDate) - && Objects.equals(this.startDate, addNigo.startDate) - && Objects.equals(this.endDate, addNigo.endDate) - && Objects.equals(this.dueDate, addNigo.dueDate) - && Objects.equals(this.metadata, addNigo.metadata) - && Objects.equals(this.documentIds, addNigo.documentIds); + return Objects.equals(this.name, addNigo.name) && + Objects.equals(this.description, addNigo.description) && + Objects.equals(this.status, addNigo.status) && + Objects.equals(this.plannedStartDate, addNigo.plannedStartDate) && + Objects.equals(this.startDate, addNigo.startDate) && + Objects.equals(this.endDate, addNigo.endDate) && + Objects.equals(this.dueDate, addNigo.dueDate) && + Objects.equals(this.metadata, addNigo.metadata) && + Objects.equals(this.documentIds, addNigo.documentIds); } @Override public int hashCode() { - return Objects.hash(name, description, status, plannedStartDate, startDate, endDate, dueDate, - metadata, documentIds); + return Objects.hash(name, description, status, plannedStartDate, startDate, endDate, dueDate, metadata, documentIds); } @Override @@ -354,7 +336,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -369,8 +352,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "description", "status", - "plannedStartDate", "startDate", "endDate", "dueDate", "metadata", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "description", "status", "plannedStartDate", "startDate", "endDate", "dueDate", "metadata", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); @@ -383,108 +365,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddNigo */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddNigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddNigo is not found in the empty JSON string", - AddNigo.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddNigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddNigo is not found in the empty JSON string", AddNigo.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddNigo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddNigo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddNigo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddNigo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddNigo.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddNigo.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + NigoStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - NigoStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) - && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) - && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) - && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) - && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("dueDate").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() - && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentIds` to be an array in the JSON string but got `%s`", - jsonObj.get("documentIds").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddNigo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddNigo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddNigo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddNigo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddNigo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddNigo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddNigo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddNigo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddNigo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddNigo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddNigoRequest.java b/src/main/java/com/formkiq/client/model/AddNigoRequest.java index b9e37220b..12578f5f7 100644 --- a/src/main/java/com/formkiq/client/model/AddNigoRequest.java +++ b/src/main/java/com/formkiq/client/model/AddNigoRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddNigoRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddNigoRequest { public static final String SERIALIZED_NAME_NIGO = "nigo"; @SerializedName(SERIALIZED_NAME_NIGO) @javax.annotation.Nonnull private AddNigo nigo; - public AddNigoRequest() {} + public AddNigoRequest() { + } public AddNigoRequest nigo(@javax.annotation.Nonnull AddNigo nigo) { this.nigo = nigo; @@ -76,7 +68,6 @@ public AddNigoRequest nigo(@javax.annotation.Nonnull AddNigo nigo) { /** * Get nigo - * * @return nigo */ @javax.annotation.Nonnull @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,64 +137,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddNigoRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddNigoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddNigoRequest is not found in the empty JSON string", - AddNigoRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddNigoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddNigoRequest is not found in the empty JSON string", AddNigoRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddNigoRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddNigoRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddNigoRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddNigoRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddNigoRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddNigoRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `nigo` - AddNigo.validateJsonElement(jsonObj.get("nigo")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `nigo` + AddNigo.validateJsonElement(jsonObj.get("nigo")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddNigoRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddNigoRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddNigoRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddNigoRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddNigoRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddNigoRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddNigoRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddNigoRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddNigoRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddNigoRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddNigoResponse.java b/src/main/java/com/formkiq/client/model/AddNigoResponse.java index 2447ec4b1..fd6ee4dd4 100644 --- a/src/main/java/com/formkiq/client/model/AddNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/AddNigoResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddNigoResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddNigoResponse { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; @SerializedName(SERIALIZED_NAME_NIGO_ID) @javax.annotation.Nullable private String nigoId; - public AddNigoResponse() {} + public AddNigoResponse() { + } public AddNigoResponse nigoId(@javax.annotation.Nullable String nigoId) { this.nigoId = nigoId; @@ -75,7 +67,6 @@ public AddNigoResponse nigoId(@javax.annotation.Nullable String nigoId) { /** * Nigo Identifier - * * @return nigoId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddNigoResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddNigoResponse is not found in the empty JSON string", - AddNigoResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddNigoResponse is not found in the empty JSON string", AddNigoResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddNigoResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddNigoResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddNigoResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddNigoResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) && !jsonObj.get("nigoId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nigoId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) - && !jsonObj.get("nigoId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("nigoId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddNigoResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddNigoResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddNigoResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddNigoResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddNigoResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddNigoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddNigoResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddNigoResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddNigoResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddNigoResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddQueueRequest.java b/src/main/java/com/formkiq/client/model/AddQueueRequest.java index 39fea8eb3..cf065a1cd 100644 --- a/src/main/java/com/formkiq/client/model/AddQueueRequest.java +++ b/src/main/java/com/formkiq/client/model/AddQueueRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddQueueRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddQueueRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull private String name; - public AddQueueRequest() {} + public AddQueueRequest() { + } public AddQueueRequest name(@javax.annotation.Nonnull String name) { this.name = name; @@ -75,7 +67,6 @@ public AddQueueRequest name(@javax.annotation.Nonnull String name) { /** * Queue name - * * @return name */ @javax.annotation.Nonnull @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,67 +136,58 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddQueueRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddQueueRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddQueueRequest is not found in the empty JSON string", - AddQueueRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddQueueRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddQueueRequest is not found in the empty JSON string", AddQueueRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddQueueRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddQueueRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddQueueRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddQueueRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddQueueRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddQueueRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddQueueRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddQueueRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddQueueRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddQueueRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddQueueRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddQueueRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddQueueRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddQueueRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddQueueRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddQueueRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddQueueResponse.java b/src/main/java/com/formkiq/client/model/AddQueueResponse.java index a93928ac1..718ba9800 100644 --- a/src/main/java/com/formkiq/client/model/AddQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/AddQueueResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddQueueResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddQueueResponse { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; @SerializedName(SERIALIZED_NAME_QUEUE_ID) @javax.annotation.Nullable private String queueId; - public AddQueueResponse() {} + public AddQueueResponse() { + } public AddQueueResponse queueId(@javax.annotation.Nullable String queueId) { this.queueId = queueId; @@ -75,7 +67,6 @@ public AddQueueResponse queueId(@javax.annotation.Nullable String queueId) { /** * Queue Identifier - * * @return queueId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddQueueResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddQueueResponse is not found in the empty JSON string", - AddQueueResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddQueueResponse is not found in the empty JSON string", AddQueueResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddQueueResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddQueueResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddQueueResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddQueueResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) && !jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) - && !jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("queueId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddQueueResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddQueueResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddQueueResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddQueueResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddQueueResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddQueueResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddQueueResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddQueueResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddQueueResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddQueueResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java b/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java index 57372a45a..804576944 100644 --- a/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddReindexDocumentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddReindexDocumentRequest { public static final String SERIALIZED_NAME_TARGET = "target"; @SerializedName(SERIALIZED_NAME_TARGET) @javax.annotation.Nullable private ReindexTarget target; - public AddReindexDocumentRequest() {} + public AddReindexDocumentRequest() { + } public AddReindexDocumentRequest target(@javax.annotation.Nullable ReindexTarget target) { this.target = target; @@ -76,7 +68,6 @@ public AddReindexDocumentRequest target(@javax.annotation.Nullable ReindexTarget /** * Get target - * * @return target */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddReindexDocumentRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddReindexDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddReindexDocumentRequest is not found in the empty JSON string", - AddReindexDocumentRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddReindexDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddReindexDocumentRequest is not found in the empty JSON string", AddReindexDocumentRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddReindexDocumentRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddReindexDocumentRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddReindexDocumentRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddReindexDocumentRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `target` + if (jsonObj.get("target") != null && !jsonObj.get("target").isJsonNull()) { + ReindexTarget.validateJsonElement(jsonObj.get("target")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `target` - if (jsonObj.get("target") != null && !jsonObj.get("target").isJsonNull()) { - ReindexTarget.validateJsonElement(jsonObj.get("target")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddReindexDocumentRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddReindexDocumentRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddReindexDocumentRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddReindexDocumentRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddReindexDocumentRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddReindexDocumentRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddReindexDocumentRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddReindexDocumentRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddReindexDocumentRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddReindexDocumentRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddResourceItem.java b/src/main/java/com/formkiq/client/model/AddResourceItem.java index db2ee366d..05a9e34a4 100644 --- a/src/main/java/com/formkiq/client/model/AddResourceItem.java +++ b/src/main/java/com/formkiq/client/model/AddResourceItem.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -70,291 +63,261 @@ import com.formkiq.client.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddResourceItem extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AddResourceItem.class.getName()); + private static final Logger log = Logger.getLogger(AddResourceItem.class.getName()); - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddResourceItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddResourceItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAddLocaleResourceInterfaceItem = - gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceInterfaceItem.class)); - final TypeAdapter adapterAddLocaleResourceSchemaItem = - gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceSchemaItem.class)); - final TypeAdapter adapterAddLocaleResourceClassificationItem = - gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceClassificationItem.class)); - - return (TypeAdapter) new TypeAdapter() { + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") @Override - public void write(JsonWriter out, AddResourceItem value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AddResourceItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddResourceItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterAddLocaleResourceInterfaceItem = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceInterfaceItem.class)); + final TypeAdapter adapterAddLocaleResourceSchemaItem = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceSchemaItem.class)); + final TypeAdapter adapterAddLocaleResourceClassificationItem = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceClassificationItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddResourceItem value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); + return; + } + + // check if the actual instance is of the type `AddLocaleResourceInterfaceItem` + if (value.getActualInstance() instanceof AddLocaleResourceInterfaceItem) { + JsonElement element = adapterAddLocaleResourceInterfaceItem.toJsonTree((AddLocaleResourceInterfaceItem)value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + // check if the actual instance is of the type `AddLocaleResourceSchemaItem` + if (value.getActualInstance() instanceof AddLocaleResourceSchemaItem) { + JsonElement element = adapterAddLocaleResourceSchemaItem.toJsonTree((AddLocaleResourceSchemaItem)value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + // check if the actual instance is of the type `AddLocaleResourceClassificationItem` + if (value.getActualInstance() instanceof AddLocaleResourceClassificationItem) { + JsonElement element = adapterAddLocaleResourceClassificationItem.toJsonTree((AddLocaleResourceClassificationItem)value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + throw new IOException("Failed to serialize as the type doesn't match oneOf schemas: AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem"); + } + + @Override + public AddResourceItem read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); + + int match = 0; + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; + + // deserialize AddLocaleResourceInterfaceItem + try { + // validate the JSON object to see if any exception is thrown + AddLocaleResourceInterfaceItem.validateJsonElement(jsonElement); + actualAdapter = adapterAddLocaleResourceInterfaceItem; + match++; + log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceInterfaceItem'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceInterfaceItem failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddLocaleResourceInterfaceItem'", e); + } + // deserialize AddLocaleResourceSchemaItem + try { + // validate the JSON object to see if any exception is thrown + AddLocaleResourceSchemaItem.validateJsonElement(jsonElement); + actualAdapter = adapterAddLocaleResourceSchemaItem; + match++; + log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceSchemaItem'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceSchemaItem failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddLocaleResourceSchemaItem'", e); + } + // deserialize AddLocaleResourceClassificationItem + try { + // validate the JSON object to see if any exception is thrown + AddLocaleResourceClassificationItem.validateJsonElement(jsonElement); + actualAdapter = adapterAddLocaleResourceClassificationItem; + match++; + log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceClassificationItem'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceClassificationItem failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddLocaleResourceClassificationItem'", e); + } + + if (match == 1) { + AddResourceItem ret = new AddResourceItem(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } + + throw new IOException(String.format(Locale.ROOT, "Failed deserialization for AddResourceItem: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); + } + }.nullSafe(); + } + } - // check if the actual instance is of the type `AddLocaleResourceInterfaceItem` - if (value.getActualInstance() instanceof AddLocaleResourceInterfaceItem) { - JsonElement element = adapterAddLocaleResourceInterfaceItem - .toJsonTree((AddLocaleResourceInterfaceItem) value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `AddLocaleResourceSchemaItem` - if (value.getActualInstance() instanceof AddLocaleResourceSchemaItem) { - JsonElement element = adapterAddLocaleResourceSchemaItem - .toJsonTree((AddLocaleResourceSchemaItem) value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `AddLocaleResourceClassificationItem` - if (value.getActualInstance() instanceof AddLocaleResourceClassificationItem) { - JsonElement element = adapterAddLocaleResourceClassificationItem - .toJsonTree((AddLocaleResourceClassificationItem) value.getActualInstance()); - elementAdapter.write(out, element); + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap>(); + + public AddResourceItem() { + super("oneOf", Boolean.FALSE); + } + + public AddResourceItem(Object o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AddLocaleResourceInterfaceItem", AddLocaleResourceInterfaceItem.class); + schemas.put("AddLocaleResourceSchemaItem", AddLocaleResourceSchemaItem.class); + schemas.put("AddLocaleResourceClassificationItem", AddLocaleResourceClassificationItem.class); + } + + @Override + public Map> getSchemas() { + return AddResourceItem.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem + * + * It could be an instance of the 'oneOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof AddLocaleResourceInterfaceItem) { + super.setActualInstance(instance); return; - } - throw new IOException( - "Failed to serialize as the type doesn't match oneOf schemas: AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem"); } - @Override - public AddResourceItem read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - int match = 0; - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; + if (instance instanceof AddLocaleResourceSchemaItem) { + super.setActualInstance(instance); + return; + } - // deserialize AddLocaleResourceInterfaceItem - try { - // validate the JSON object to see if any exception is thrown - AddLocaleResourceInterfaceItem.validateJsonElement(jsonElement); - actualAdapter = adapterAddLocaleResourceInterfaceItem; - match++; - log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceInterfaceItem'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddLocaleResourceInterfaceItem failed with `%s`.", - e.getMessage())); - log.log(Level.FINER, - "Input data does not match schema 'AddLocaleResourceInterfaceItem'", e); - } - // deserialize AddLocaleResourceSchemaItem - try { - // validate the JSON object to see if any exception is thrown - AddLocaleResourceSchemaItem.validateJsonElement(jsonElement); - actualAdapter = adapterAddLocaleResourceSchemaItem; - match++; - log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceSchemaItem'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddLocaleResourceSchemaItem failed with `%s`.", - e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddLocaleResourceSchemaItem'", - e); - } - // deserialize AddLocaleResourceClassificationItem - try { - // validate the JSON object to see if any exception is thrown - AddLocaleResourceClassificationItem.validateJsonElement(jsonElement); - actualAdapter = adapterAddLocaleResourceClassificationItem; - match++; - log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceClassificationItem'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddLocaleResourceClassificationItem failed with `%s`.", - e.getMessage())); - log.log(Level.FINER, - "Input data does not match schema 'AddLocaleResourceClassificationItem'", e); - } - - if (match == 1) { - AddResourceItem ret = new AddResourceItem(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } - - throw new IOException(String.format(Locale.ROOT, - "Failed deserialization for AddResourceItem: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", - match, errorMessages, jsonElement.toString())); + if (instance instanceof AddLocaleResourceClassificationItem) { + super.setActualInstance(instance); + return; } - }.nullSafe(); + + throw new RuntimeException("Invalid instance type. Must be AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem"); } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap>(); - - public AddResourceItem() { - super("oneOf", Boolean.FALSE); - } - - public AddResourceItem(Object o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AddLocaleResourceInterfaceItem", AddLocaleResourceInterfaceItem.class); - schemas.put("AddLocaleResourceSchemaItem", AddLocaleResourceSchemaItem.class); - schemas.put("AddLocaleResourceClassificationItem", AddLocaleResourceClassificationItem.class); - } - - @Override - public Map> getSchemas() { - return AddResourceItem.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check the instance parameter is valid - * against the oneOf child schemas: AddLocaleResourceClassificationItem, - * AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem - * - * It could be an instance of the 'oneOf' schemas. - */ - @Override - public void setActualInstance(Object instance) { - if (instance instanceof AddLocaleResourceInterfaceItem) { - super.setActualInstance(instance); - return; + + /** + * Get the actual instance, which can be the following: + * AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem + * + * @return The actual instance (AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); } - if (instance instanceof AddLocaleResourceSchemaItem) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AddLocaleResourceInterfaceItem`. If the actual instance is not `AddLocaleResourceInterfaceItem`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AddLocaleResourceInterfaceItem` + * @throws ClassCastException if the instance is not `AddLocaleResourceInterfaceItem` + */ + public AddLocaleResourceInterfaceItem getAddLocaleResourceInterfaceItem() throws ClassCastException { + return (AddLocaleResourceInterfaceItem)super.getActualInstance(); } - if (instance instanceof AddLocaleResourceClassificationItem) { - super.setActualInstance(instance); - return; + /** + * Get the actual instance of `AddLocaleResourceSchemaItem`. If the actual instance is not `AddLocaleResourceSchemaItem`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AddLocaleResourceSchemaItem` + * @throws ClassCastException if the instance is not `AddLocaleResourceSchemaItem` + */ + public AddLocaleResourceSchemaItem getAddLocaleResourceSchemaItem() throws ClassCastException { + return (AddLocaleResourceSchemaItem)super.getActualInstance(); } - throw new RuntimeException( - "Invalid instance type. Must be AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem"); - } - - /** - * Get the actual instance, which can be the following: AddLocaleResourceClassificationItem, - * AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem - * - * @return The actual instance (AddLocaleResourceClassificationItem, - * AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AddLocaleResourceInterfaceItem`. If the actual instance is not - * `AddLocaleResourceInterfaceItem`, the ClassCastException will be thrown. - * - * @return The actual instance of `AddLocaleResourceInterfaceItem` - * @throws ClassCastException if the instance is not `AddLocaleResourceInterfaceItem` - */ - public AddLocaleResourceInterfaceItem getAddLocaleResourceInterfaceItem() - throws ClassCastException { - return (AddLocaleResourceInterfaceItem) super.getActualInstance(); - } - - /** - * Get the actual instance of `AddLocaleResourceSchemaItem`. If the actual instance is not - * `AddLocaleResourceSchemaItem`, the ClassCastException will be thrown. - * - * @return The actual instance of `AddLocaleResourceSchemaItem` - * @throws ClassCastException if the instance is not `AddLocaleResourceSchemaItem` - */ - public AddLocaleResourceSchemaItem getAddLocaleResourceSchemaItem() throws ClassCastException { - return (AddLocaleResourceSchemaItem) super.getActualInstance(); - } - - /** - * Get the actual instance of `AddLocaleResourceClassificationItem`. If the actual instance is not - * `AddLocaleResourceClassificationItem`, the ClassCastException will be thrown. - * - * @return The actual instance of `AddLocaleResourceClassificationItem` - * @throws ClassCastException if the instance is not `AddLocaleResourceClassificationItem` - */ - public AddLocaleResourceClassificationItem getAddLocaleResourceClassificationItem() - throws ClassCastException { - return (AddLocaleResourceClassificationItem) super.getActualInstance(); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddResourceItem - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate oneOf schemas one by one - int validCount = 0; - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with AddLocaleResourceInterfaceItem - try { - AddLocaleResourceInterfaceItem.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddLocaleResourceInterfaceItem failed with `%s`.", e.getMessage())); - // continue to the next one + /** + * Get the actual instance of `AddLocaleResourceClassificationItem`. If the actual instance is not `AddLocaleResourceClassificationItem`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `AddLocaleResourceClassificationItem` + * @throws ClassCastException if the instance is not `AddLocaleResourceClassificationItem` + */ + public AddLocaleResourceClassificationItem getAddLocaleResourceClassificationItem() throws ClassCastException { + return (AddLocaleResourceClassificationItem)super.getActualInstance(); } - // validate the json string with AddLocaleResourceSchemaItem - try { - AddLocaleResourceSchemaItem.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddLocaleResourceSchemaItem failed with `%s`.", e.getMessage())); - // continue to the next one + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AddResourceItem + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate oneOf schemas one by one + int validCount = 0; + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with AddLocaleResourceInterfaceItem + try { + AddLocaleResourceInterfaceItem.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceInterfaceItem failed with `%s`.", e.getMessage())); + // continue to the next one + } + // validate the json string with AddLocaleResourceSchemaItem + try { + AddLocaleResourceSchemaItem.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceSchemaItem failed with `%s`.", e.getMessage())); + // continue to the next one + } + // validate the json string with AddLocaleResourceClassificationItem + try { + AddLocaleResourceClassificationItem.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceClassificationItem failed with `%s`.", e.getMessage())); + // continue to the next one + } + if (validCount != 1) { + throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for AddResourceItem with oneOf schemas: AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + } } - // validate the json string with AddLocaleResourceClassificationItem - try { - AddLocaleResourceClassificationItem.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, - "Deserialization for AddLocaleResourceClassificationItem failed with `%s`.", - e.getMessage())); - // continue to the next one + + /** + * Create an instance of AddResourceItem given an JSON string + * + * @param jsonString JSON string + * @return An instance of AddResourceItem + * @throws IOException if the JSON string is invalid with respect to AddResourceItem + */ + public static AddResourceItem fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AddResourceItem.class); } - if (validCount != 1) { - throw new IOException(String.format(Locale.ROOT, - "The JSON string is invalid for AddResourceItem with oneOf schemas: AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", - validCount, errorMessages, jsonElement.toString())); + + /** + * Convert an instance of AddResourceItem to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); } - } - - /** - * Create an instance of AddResourceItem given an JSON string - * - * @param jsonString JSON string - * @return An instance of AddResourceItem - * @throws IOException if the JSON string is invalid with respect to AddResourceItem - */ - public static AddResourceItem fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AddResourceItem.class); - } - - /** - * Convert an instance of AddResourceItem to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } } diff --git a/src/main/java/com/formkiq/client/model/AddResponse.java b/src/main/java/com/formkiq/client/model/AddResponse.java index 1a62bfc5d..29677d02a 100644 --- a/src/main/java/com/formkiq/client/model/AddResponse.java +++ b/src/main/java/com/formkiq/client/model/AddResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddResponse() {} + public AddResponse() { + } public AddResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public AddResponse message(@javax.annotation.Nullable String message) { /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddResponse is not found in the empty JSON string", - AddResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddResponse is not found in the empty JSON string", AddResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRule.java b/src/main/java/com/formkiq/client/model/AddRule.java index c1b79efbc..4d088cdbb 100644 --- a/src/main/java/com/formkiq/client/model/AddRule.java +++ b/src/main/java/com/formkiq/client/model/AddRule.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * AddRule */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRule { public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) @@ -89,7 +80,8 @@ public class AddRule { @javax.annotation.Nullable private RuleCondition conditions; - public AddRule() {} + public AddRule() { + } public AddRule priority(@javax.annotation.Nullable BigDecimal priority) { this.priority = priority; @@ -98,7 +90,6 @@ public AddRule priority(@javax.annotation.Nullable BigDecimal priority) { /** * Rule priority - * * @return priority */ @javax.annotation.Nullable @@ -118,7 +109,6 @@ public AddRule description(@javax.annotation.Nullable String description) { /** * Rule description - * * @return description */ @javax.annotation.Nullable @@ -138,7 +128,6 @@ public AddRule workflowId(@javax.annotation.Nullable String workflowId) { /** * Workflow to start on matching of conditions - * * @return workflowId */ @javax.annotation.Nullable @@ -158,7 +147,6 @@ public AddRule status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -178,7 +166,6 @@ public AddRule conditions(@javax.annotation.Nullable RuleCondition conditions) { /** * Get conditions - * * @return conditions */ @javax.annotation.Nullable @@ -201,11 +188,11 @@ public boolean equals(Object o) { return false; } AddRule addRule = (AddRule) o; - return Objects.equals(this.priority, addRule.priority) - && Objects.equals(this.description, addRule.description) - && Objects.equals(this.workflowId, addRule.workflowId) - && Objects.equals(this.status, addRule.status) - && Objects.equals(this.conditions, addRule.conditions); + return Objects.equals(this.priority, addRule.priority) && + Objects.equals(this.description, addRule.description) && + Objects.equals(this.workflowId, addRule.workflowId) && + Objects.equals(this.status, addRule.status) && + Objects.equals(this.conditions, addRule.conditions); } @Override @@ -227,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,8 +230,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("priority", "description", "workflowId", "status", "conditions")); + openapiFields = new HashSet(Arrays.asList("priority", "description", "workflowId", "status", "conditions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -256,73 +243,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRule */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddRule is not found in the empty JSON string", - AddRule.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRule is not found in the empty JSON string", AddRule.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddRule` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); + } + // validate the optional field `conditions` + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + RuleCondition.validateJsonElement(jsonObj.get("conditions")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) - && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workflowId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); - } - // validate the optional field `conditions` - if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { - RuleCondition.validateJsonElement(jsonObj.get("conditions")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRule.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRule' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddRule.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRule value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRule read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRule read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRuleRequest.java b/src/main/java/com/formkiq/client/model/AddRuleRequest.java index 2a9b0f7d4..9a9673fd7 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleRequest.java +++ b/src/main/java/com/formkiq/client/model/AddRuleRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddRuleRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRuleRequest { public static final String SERIALIZED_NAME_RULE = "rule"; @SerializedName(SERIALIZED_NAME_RULE) @javax.annotation.Nullable private AddRule rule; - public AddRuleRequest() {} + public AddRuleRequest() { + } public AddRuleRequest rule(@javax.annotation.Nullable AddRule rule) { this.rule = rule; @@ -76,7 +68,6 @@ public AddRuleRequest rule(@javax.annotation.Nullable AddRule rule) { /** * Get rule - * * @return rule */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRuleRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRuleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddRuleRequest is not found in the empty JSON string", - AddRuleRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddRuleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRuleRequest is not found in the empty JSON string", AddRuleRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRuleRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddRuleRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRuleRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRuleRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `rule` + if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { + AddRule.validateJsonElement(jsonObj.get("rule")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `rule` - if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { - AddRule.validateJsonElement(jsonObj.get("rule")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRuleRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRuleRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddRuleRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRuleRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRuleRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRuleRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRuleRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddRuleRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRuleRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRuleRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRuleResponse.java b/src/main/java/com/formkiq/client/model/AddRuleResponse.java index cb840e8e5..5223d417a 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/AddRuleResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddRuleResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRuleResponse { public static final String SERIALIZED_NAME_RULE_ID = "ruleId"; @SerializedName(SERIALIZED_NAME_RULE_ID) @javax.annotation.Nullable private String ruleId; - public AddRuleResponse() {} + public AddRuleResponse() { + } public AddRuleResponse ruleId(@javax.annotation.Nullable String ruleId) { this.ruleId = ruleId; @@ -75,7 +67,6 @@ public AddRuleResponse ruleId(@javax.annotation.Nullable String ruleId) { /** * Rule Identifier - * * @return ruleId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRuleResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddRuleResponse is not found in the empty JSON string", - AddRuleResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRuleResponse is not found in the empty JSON string", AddRuleResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRuleResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddRuleResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRuleResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRuleResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("ruleId") != null && !jsonObj.get("ruleId").isJsonNull()) && !jsonObj.get("ruleId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ruleId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ruleId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("ruleId") != null && !jsonObj.get("ruleId").isJsonNull()) - && !jsonObj.get("ruleId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `ruleId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("ruleId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRuleResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRuleResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddRuleResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRuleResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRuleResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRuleResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRuleResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddRuleResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRuleResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRuleResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRuleset.java b/src/main/java/com/formkiq/client/model/AddRuleset.java index 41d227022..15ee36bd4 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleset.java +++ b/src/main/java/com/formkiq/client/model/AddRuleset.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * AddRuleset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRuleset { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -83,7 +74,8 @@ public class AddRuleset { @javax.annotation.Nullable private RulesetStatus status; - public AddRuleset() {} + public AddRuleset() { + } public AddRuleset description(@javax.annotation.Nullable String description) { this.description = description; @@ -92,7 +84,6 @@ public AddRuleset description(@javax.annotation.Nullable String description) { /** * Ruleset description - * * @return description */ @javax.annotation.Nullable @@ -112,7 +103,6 @@ public AddRuleset priority(@javax.annotation.Nullable BigDecimal priority) { /** * Ruleset priority - * * @return priority */ @javax.annotation.Nullable @@ -132,7 +122,6 @@ public AddRuleset version(@javax.annotation.Nullable BigDecimal version) { /** * Ruleset version - * * @return version */ @javax.annotation.Nullable @@ -152,7 +141,6 @@ public AddRuleset status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -175,10 +163,10 @@ public boolean equals(Object o) { return false; } AddRuleset addRuleset = (AddRuleset) o; - return Objects.equals(this.description, addRuleset.description) - && Objects.equals(this.priority, addRuleset.priority) - && Objects.equals(this.version, addRuleset.version) - && Objects.equals(this.status, addRuleset.status); + return Objects.equals(this.description, addRuleset.description) && + Objects.equals(this.priority, addRuleset.priority) && + Objects.equals(this.version, addRuleset.version) && + Objects.equals(this.status, addRuleset.status); } @Override @@ -199,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,8 +203,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("description", "priority", "version", "status")); + openapiFields = new HashSet(Arrays.asList("description", "priority", "version", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -228,63 +216,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRuleset */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRuleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddRuleset is not found in the empty JSON string", - AddRuleset.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddRuleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRuleset is not found in the empty JSON string", AddRuleset.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRuleset.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddRuleset` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRuleset.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRuleset` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRuleset.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRuleset' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddRuleset.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRuleset value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRuleset read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRuleset.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRuleset' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddRuleset.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRuleset value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRuleset read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRulesetRequest.java b/src/main/java/com/formkiq/client/model/AddRulesetRequest.java index 6d2dd2b23..5412635b6 100644 --- a/src/main/java/com/formkiq/client/model/AddRulesetRequest.java +++ b/src/main/java/com/formkiq/client/model/AddRulesetRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddRulesetRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRulesetRequest { public static final String SERIALIZED_NAME_RULESET = "ruleset"; @SerializedName(SERIALIZED_NAME_RULESET) @javax.annotation.Nonnull private AddRuleset ruleset; - public AddRulesetRequest() {} + public AddRulesetRequest() { + } public AddRulesetRequest ruleset(@javax.annotation.Nonnull AddRuleset ruleset) { this.ruleset = ruleset; @@ -76,7 +68,6 @@ public AddRulesetRequest ruleset(@javax.annotation.Nonnull AddRuleset ruleset) { /** * Get ruleset - * * @return ruleset */ @javax.annotation.Nonnull @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,64 +137,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRulesetRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRulesetRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddRulesetRequest is not found in the empty JSON string", - AddRulesetRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddRulesetRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRulesetRequest is not found in the empty JSON string", AddRulesetRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRulesetRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddRulesetRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRulesetRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRulesetRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddRulesetRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddRulesetRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `ruleset` - AddRuleset.validateJsonElement(jsonObj.get("ruleset")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `ruleset` + AddRuleset.validateJsonElement(jsonObj.get("ruleset")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRulesetRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRulesetRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddRulesetRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRulesetRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRulesetRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRulesetRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRulesetRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddRulesetRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRulesetRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRulesetRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRulesetResponse.java b/src/main/java/com/formkiq/client/model/AddRulesetResponse.java index 9646c45f0..73fd8dc83 100644 --- a/src/main/java/com/formkiq/client/model/AddRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/AddRulesetResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddRulesetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRulesetResponse { public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) @javax.annotation.Nullable private String rulesetId; - public AddRulesetResponse() {} + public AddRulesetResponse() { + } public AddRulesetResponse rulesetId(@javax.annotation.Nullable String rulesetId) { this.rulesetId = rulesetId; @@ -75,7 +67,6 @@ public AddRulesetResponse rulesetId(@javax.annotation.Nullable String rulesetId) /** * Ruleset Identifier - * * @return rulesetId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRulesetResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddRulesetResponse is not found in the empty JSON string", - AddRulesetResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRulesetResponse is not found in the empty JSON string", AddRulesetResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRulesetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddRulesetResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRulesetResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRulesetResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("rulesetId") != null && !jsonObj.get("rulesetId").isJsonNull()) && !jsonObj.get("rulesetId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rulesetId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rulesetId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("rulesetId") != null && !jsonObj.get("rulesetId").isJsonNull()) - && !jsonObj.get("rulesetId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `rulesetId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("rulesetId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRulesetResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRulesetResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddRulesetResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRulesetResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRulesetResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRulesetResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRulesetResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddRulesetResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRulesetResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRulesetResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddShare.java b/src/main/java/com/formkiq/client/model/AddShare.java index 5838dc3c3..797a112a8 100644 --- a/src/main/java/com/formkiq/client/model/AddShare.java +++ b/src/main/java/com/formkiq/client/model/AddShare.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * AddShare */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddShare { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -74,7 +65,8 @@ public class AddShare { @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public AddShare() {} + public AddShare() { + } public AddShare group(@javax.annotation.Nullable String group) { this.group = group; @@ -83,7 +75,6 @@ public AddShare group(@javax.annotation.Nullable String group) { /** * Share with Group - * * @return group */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public AddShare addPermissionsItem(UserSharePermission permissionsItem) { /** * List of share permissions - * * @return permissions */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } AddShare addShare = (AddShare) o; - return Objects.equals(this.group, addShare.group) - && Objects.equals(this.permissions, addShare.permissions); + return Objects.equals(this.group, addShare.group) && + Objects.equals(this.permissions, addShare.permissions); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,66 +173,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddShare */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddShare.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddShare is not found in the empty JSON string", - AddShare.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddShare.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddShare is not found in the empty JSON string", AddShare.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddShare.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddShare` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddShare.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddShare` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) - && !jsonObj.get("group").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `group` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("group").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() - && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `permissions` to be an array in the JSON string but got `%s`", - jsonObj.get("permissions").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddShare.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddShare' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddShare.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddShare value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddShare read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddShare.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddShare' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddShare.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddShare value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddShare read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddSite.java b/src/main/java/com/formkiq/client/model/AddSite.java index d150c507b..39bbe8448 100644 --- a/src/main/java/com/formkiq/client/model/AddSite.java +++ b/src/main/java/com/formkiq/client/model/AddSite.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * AddSite */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddSite { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -77,7 +68,8 @@ public class AddSite { @javax.annotation.Nullable private SiteStatus status; - public AddSite() {} + public AddSite() { + } public AddSite id(@javax.annotation.Nullable String id) { this.id = id; @@ -86,7 +78,6 @@ public AddSite id(@javax.annotation.Nullable String id) { /** * Site Id - * * @return id */ @javax.annotation.Nullable @@ -106,7 +97,6 @@ public AddSite title(@javax.annotation.Nullable String title) { /** * Title of Site - * * @return title */ @javax.annotation.Nullable @@ -126,7 +116,6 @@ public AddSite status(@javax.annotation.Nullable SiteStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -149,8 +138,9 @@ public boolean equals(Object o) { return false; } AddSite addSite = (AddSite) o; - return Objects.equals(this.id, addSite.id) && Objects.equals(this.title, addSite.title) - && Objects.equals(this.status, addSite.status); + return Objects.equals(this.id, addSite.id) && + Objects.equals(this.title, addSite.title) && + Objects.equals(this.status, addSite.status); } @Override @@ -170,7 +160,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,69 +189,58 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddSite */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddSite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddSite is not found in the empty JSON string", - AddSite.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddSite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddSite is not found in the empty JSON string", AddSite.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddSite.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddSite` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddSite.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddSite` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + SiteStatus.validateJsonElement(jsonObj.get("status")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) - && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `id` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("id").toString())); - } - if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) - && !jsonObj.get("title").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `title` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("title").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - SiteStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddSite.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddSite' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddSite.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddSite value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddSite read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddSite.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddSite' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddSite.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddSite value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddSite read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddSiteRequest.java b/src/main/java/com/formkiq/client/model/AddSiteRequest.java index c88aadf5a..aff68c7ea 100644 --- a/src/main/java/com/formkiq/client/model/AddSiteRequest.java +++ b/src/main/java/com/formkiq/client/model/AddSiteRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddSiteRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddSiteRequest { public static final String SERIALIZED_NAME_SITE = "site"; @SerializedName(SERIALIZED_NAME_SITE) @javax.annotation.Nullable private AddSite site; - public AddSiteRequest() {} + public AddSiteRequest() { + } public AddSiteRequest site(@javax.annotation.Nullable AddSite site) { this.site = site; @@ -76,7 +68,6 @@ public AddSiteRequest site(@javax.annotation.Nullable AddSite site) { /** * Get site - * * @return site */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddSiteRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddSiteRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddSiteRequest is not found in the empty JSON string", - AddSiteRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddSiteRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddSiteRequest is not found in the empty JSON string", AddSiteRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddSiteRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddSiteRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddSiteRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddSiteRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `site` + if (jsonObj.get("site") != null && !jsonObj.get("site").isJsonNull()) { + AddSite.validateJsonElement(jsonObj.get("site")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `site` - if (jsonObj.get("site") != null && !jsonObj.get("site").isJsonNull()) { - AddSite.validateJsonElement(jsonObj.get("site")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddSiteRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddSiteRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddSiteRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddSiteRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddSiteRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddSiteRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddSiteRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddSiteRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddSiteRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddSiteRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddTask.java b/src/main/java/com/formkiq/client/model/AddTask.java index e87648f92..455b035ac 100644 --- a/src/main/java/com/formkiq/client/model/AddTask.java +++ b/src/main/java/com/formkiq/client/model/AddTask.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * AddTask */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddTask { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -111,7 +102,8 @@ public class AddTask { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public AddTask() {} + public AddTask() { + } public AddTask name(@javax.annotation.Nullable String name) { this.name = name; @@ -120,7 +112,6 @@ public AddTask name(@javax.annotation.Nullable String name) { /** * Name of Task - * * @return name */ @javax.annotation.Nullable @@ -140,7 +131,6 @@ public AddTask description(@javax.annotation.Nonnull String description) { /** * Description of Task - * * @return description */ @javax.annotation.Nonnull @@ -160,7 +150,6 @@ public AddTask status(@javax.annotation.Nullable TaskStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -180,7 +169,6 @@ public AddTask plannedStartDate(@javax.annotation.Nullable String plannedStartDa /** * Planned Start Date - * * @return plannedStartDate */ @javax.annotation.Nullable @@ -200,7 +188,6 @@ public AddTask startDate(@javax.annotation.Nullable String startDate) { /** * Start Date - * * @return startDate */ @javax.annotation.Nullable @@ -220,7 +207,6 @@ public AddTask endDate(@javax.annotation.Nullable String endDate) { /** * End Date - * * @return endDate */ @javax.annotation.Nullable @@ -240,7 +226,6 @@ public AddTask dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date - * * @return dueDate */ @javax.annotation.Nullable @@ -268,7 +253,6 @@ public AddTask putMetadataItem(String key, Object metadataItem) { /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -296,7 +280,6 @@ public AddTask addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds - * * @return documentIds */ @javax.annotation.Nullable @@ -319,21 +302,20 @@ public boolean equals(Object o) { return false; } AddTask addTask = (AddTask) o; - return Objects.equals(this.name, addTask.name) - && Objects.equals(this.description, addTask.description) - && Objects.equals(this.status, addTask.status) - && Objects.equals(this.plannedStartDate, addTask.plannedStartDate) - && Objects.equals(this.startDate, addTask.startDate) - && Objects.equals(this.endDate, addTask.endDate) - && Objects.equals(this.dueDate, addTask.dueDate) - && Objects.equals(this.metadata, addTask.metadata) - && Objects.equals(this.documentIds, addTask.documentIds); + return Objects.equals(this.name, addTask.name) && + Objects.equals(this.description, addTask.description) && + Objects.equals(this.status, addTask.status) && + Objects.equals(this.plannedStartDate, addTask.plannedStartDate) && + Objects.equals(this.startDate, addTask.startDate) && + Objects.equals(this.endDate, addTask.endDate) && + Objects.equals(this.dueDate, addTask.dueDate) && + Objects.equals(this.metadata, addTask.metadata) && + Objects.equals(this.documentIds, addTask.documentIds); } @Override public int hashCode() { - return Objects.hash(name, description, status, plannedStartDate, startDate, endDate, dueDate, - metadata, documentIds); + return Objects.hash(name, description, status, plannedStartDate, startDate, endDate, dueDate, metadata, documentIds); } @Override @@ -354,7 +336,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -369,8 +352,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "description", "status", - "plannedStartDate", "startDate", "endDate", "dueDate", "metadata", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "description", "status", "plannedStartDate", "startDate", "endDate", "dueDate", "metadata", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("description")); @@ -383,108 +365,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddTask */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddTask.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddTask is not found in the empty JSON string", - AddTask.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddTask.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddTask is not found in the empty JSON string", AddTask.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddTask.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddTask` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddTask.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddTask` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddTask.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddTask.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + TaskStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - TaskStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) - && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) - && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) - && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) - && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("dueDate").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() - && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentIds` to be an array in the JSON string but got `%s`", - jsonObj.get("documentIds").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddTask.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddTask' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddTask.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddTask value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddTask read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddTask.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddTask' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddTask.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddTask value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddTask read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddTaskRequest.java b/src/main/java/com/formkiq/client/model/AddTaskRequest.java index 3cbaaf23b..345245759 100644 --- a/src/main/java/com/formkiq/client/model/AddTaskRequest.java +++ b/src/main/java/com/formkiq/client/model/AddTaskRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddTaskRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddTaskRequest { public static final String SERIALIZED_NAME_TASK = "task"; @SerializedName(SERIALIZED_NAME_TASK) @javax.annotation.Nonnull private AddTask task; - public AddTaskRequest() {} + public AddTaskRequest() { + } public AddTaskRequest task(@javax.annotation.Nonnull AddTask task) { this.task = task; @@ -76,7 +68,6 @@ public AddTaskRequest task(@javax.annotation.Nonnull AddTask task) { /** * Get task - * * @return task */ @javax.annotation.Nonnull @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,64 +137,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddTaskRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddTaskRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddTaskRequest is not found in the empty JSON string", - AddTaskRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddTaskRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddTaskRequest is not found in the empty JSON string", AddTaskRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddTaskRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddTaskRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddTaskRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddTaskRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddTaskRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddTaskRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `task` - AddTask.validateJsonElement(jsonObj.get("task")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `task` + AddTask.validateJsonElement(jsonObj.get("task")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddTaskRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddTaskRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddTaskRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddTaskRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddTaskRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddTaskRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddTaskRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddTaskRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddTaskRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddTaskRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddTaskResponse.java b/src/main/java/com/formkiq/client/model/AddTaskResponse.java index 1aabf2d9e..4a29f976b 100644 --- a/src/main/java/com/formkiq/client/model/AddTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/AddTaskResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddTaskResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddTaskResponse { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; @SerializedName(SERIALIZED_NAME_TASK_ID) @javax.annotation.Nullable private String taskId; - public AddTaskResponse() {} + public AddTaskResponse() { + } public AddTaskResponse taskId(@javax.annotation.Nullable String taskId) { this.taskId = taskId; @@ -75,7 +67,6 @@ public AddTaskResponse taskId(@javax.annotation.Nullable String taskId) { /** * Task Identifier - * * @return taskId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddTaskResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddTaskResponse is not found in the empty JSON string", - AddTaskResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddTaskResponse is not found in the empty JSON string", AddTaskResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddTaskResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddTaskResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddTaskResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddTaskResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) && !jsonObj.get("taskId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("taskId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) - && !jsonObj.get("taskId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("taskId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddTaskResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddTaskResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddTaskResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddTaskResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddTaskResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddTaskResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddTaskResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddTaskResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddTaskResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddTaskResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddUser.java b/src/main/java/com/formkiq/client/model/AddUser.java index 65c561cdd..7d74694e2 100644 --- a/src/main/java/com/formkiq/client/model/AddUser.java +++ b/src/main/java/com/formkiq/client/model/AddUser.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * AddUser */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddUser { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) @@ -72,7 +63,8 @@ public class AddUser { @javax.annotation.Nullable private UserAttributes attributes; - public AddUser() {} + public AddUser() { + } public AddUser username(@javax.annotation.Nullable String username) { this.username = username; @@ -81,7 +73,6 @@ public AddUser username(@javax.annotation.Nullable String username) { /** * Email address of user - * * @return username */ @javax.annotation.Nullable @@ -101,7 +92,6 @@ public AddUser attributes(@javax.annotation.Nullable UserAttributes attributes) /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -124,8 +114,8 @@ public boolean equals(Object o) { return false; } AddUser addUser = (AddUser) o; - return Objects.equals(this.username, addUser.username) - && Objects.equals(this.attributes, addUser.attributes); + return Objects.equals(this.username, addUser.username) && + Objects.equals(this.attributes, addUser.attributes); } @Override @@ -144,7 +134,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,63 +163,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddUser */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddUser is not found in the empty JSON string", - AddUser.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddUser is not found in the empty JSON string", AddUser.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddUser.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddUser` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddUser.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddUser` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + UserAttributes.validateJsonElement(jsonObj.get("attributes")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) - && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `username` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("username").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - UserAttributes.validateJsonElement(jsonObj.get("attributes")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddUser.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddUser' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddUser.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddUser value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddUser read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddUser.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddUser' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddUser.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddUser value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddUser read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddUserRequest.java b/src/main/java/com/formkiq/client/model/AddUserRequest.java index 57d63e19d..ff56dde18 100644 --- a/src/main/java/com/formkiq/client/model/AddUserRequest.java +++ b/src/main/java/com/formkiq/client/model/AddUserRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * AddUserRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddUserRequest { public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) @javax.annotation.Nonnull private AddUser user; - public AddUserRequest() {} + public AddUserRequest() { + } public AddUserRequest user(@javax.annotation.Nonnull AddUser user) { this.user = user; @@ -76,7 +68,6 @@ public AddUserRequest user(@javax.annotation.Nonnull AddUser user) { /** * Get user - * * @return user */ @javax.annotation.Nonnull @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,64 +137,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddUserRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddUserRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddUserRequest is not found in the empty JSON string", - AddUserRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddUserRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddUserRequest is not found in the empty JSON string", AddUserRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddUserRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddUserRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddUserRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddUserRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddUserRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddUserRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `user` - AddUser.validateJsonElement(jsonObj.get("user")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `user` + AddUser.validateJsonElement(jsonObj.get("user")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddUserRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddUserRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddUserRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddUserRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddUserRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddUserRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddUserRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddUserRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddUserRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddUserRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWebhookRequest.java b/src/main/java/com/formkiq/client/model/AddWebhookRequest.java index e282e609a..ac007a7fd 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * AddWebhookRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWebhookRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -84,7 +75,8 @@ public class AddWebhookRequest { @javax.annotation.Nullable private List tags = new ArrayList<>(); - public AddWebhookRequest() {} + public AddWebhookRequest() { + } public AddWebhookRequest name(@javax.annotation.Nonnull String name) { this.name = name; @@ -93,7 +85,6 @@ public AddWebhookRequest name(@javax.annotation.Nonnull String name) { /** * Name of webhook - * * @return name */ @javax.annotation.Nonnull @@ -113,7 +104,6 @@ public AddWebhookRequest ttl(@javax.annotation.Nullable String ttl) { /** * Webhook time to live (expiry in seconds) - * * @return ttl */ @javax.annotation.Nullable @@ -133,7 +123,6 @@ public AddWebhookRequest enabled(@javax.annotation.Nullable String enabled) { /** * Is webhook enabled - * * @return enabled */ @javax.annotation.Nullable @@ -161,7 +150,6 @@ public AddWebhookRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags - * * @return tags */ @javax.annotation.Nullable @@ -184,10 +172,10 @@ public boolean equals(Object o) { return false; } AddWebhookRequest addWebhookRequest = (AddWebhookRequest) o; - return Objects.equals(this.name, addWebhookRequest.name) - && Objects.equals(this.ttl, addWebhookRequest.ttl) - && Objects.equals(this.enabled, addWebhookRequest.enabled) - && Objects.equals(this.tags, addWebhookRequest.tags); + return Objects.equals(this.name, addWebhookRequest.name) && + Objects.equals(this.ttl, addWebhookRequest.ttl) && + Objects.equals(this.enabled, addWebhookRequest.enabled) && + Objects.equals(this.tags, addWebhookRequest.tags); } @Override @@ -208,7 +196,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,95 +225,78 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWebhookRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWebhookRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddWebhookRequest is not found in the empty JSON string", - AddWebhookRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddWebhookRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWebhookRequest is not found in the empty JSON string", AddWebhookRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWebhookRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddWebhookRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWebhookRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWebhookRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddWebhookRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddWebhookRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("ttl") != null && !jsonObj.get("ttl").isJsonNull()) - && !jsonObj.get("ttl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `ttl` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("ttl").toString())); - } - if ((jsonObj.get("enabled") != null && !jsonObj.get("enabled").isJsonNull()) - && !jsonObj.get("enabled").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `enabled` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("enabled").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("ttl") != null && !jsonObj.get("ttl").isJsonNull()) && !jsonObj.get("ttl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ttl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ttl").toString())); + } + if ((jsonObj.get("enabled") != null && !jsonObj.get("enabled").isJsonNull()) && !jsonObj.get("enabled").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `enabled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("enabled").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWebhookRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWebhookRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddWebhookRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWebhookRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWebhookRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWebhookRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWebhookRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddWebhookRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWebhookRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWebhookRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWebhookResponse.java b/src/main/java/com/formkiq/client/model/AddWebhookResponse.java index 650eaa059..bebe943d5 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookResponse.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * AddWebhookResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWebhookResponse { public static final String SERIALIZED_NAME_WEBHOOK_ID = "webhookId"; @SerializedName(SERIALIZED_NAME_WEBHOOK_ID) @@ -71,7 +62,8 @@ public class AddWebhookResponse { @javax.annotation.Nullable private String siteId; - public AddWebhookResponse() {} + public AddWebhookResponse() { + } public AddWebhookResponse webhookId(@javax.annotation.Nullable String webhookId) { this.webhookId = webhookId; @@ -80,7 +72,6 @@ public AddWebhookResponse webhookId(@javax.annotation.Nullable String webhookId) /** * Get webhookId - * * @return webhookId */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public AddWebhookResponse siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } AddWebhookResponse addWebhookResponse = (AddWebhookResponse) o; - return Objects.equals(this.webhookId, addWebhookResponse.webhookId) - && Objects.equals(this.siteId, addWebhookResponse.siteId); + return Objects.equals(this.webhookId, addWebhookResponse.webhookId) && + Objects.equals(this.siteId, addWebhookResponse.siteId); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWebhookResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWebhookResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddWebhookResponse is not found in the empty JSON string", - AddWebhookResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddWebhookResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWebhookResponse is not found in the empty JSON string", AddWebhookResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWebhookResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddWebhookResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWebhookResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWebhookResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) && !jsonObj.get("webhookId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("webhookId").toString())); + } + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) - && !jsonObj.get("webhookId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("webhookId").toString())); - } - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWebhookResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWebhookResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddWebhookResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWebhookResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWebhookResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWebhookResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWebhookResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddWebhookResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWebhookResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWebhookResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java b/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java index 3a0052cdd..513831989 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * AddWebhookTagRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWebhookTagRequest { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -78,7 +69,8 @@ public class AddWebhookTagRequest { @javax.annotation.Nullable private String key; - public AddWebhookTagRequest() {} + public AddWebhookTagRequest() { + } public AddWebhookTagRequest value(@javax.annotation.Nullable String value) { this.value = value; @@ -87,7 +79,6 @@ public AddWebhookTagRequest value(@javax.annotation.Nullable String value) { /** * Tag value - * * @return value */ @javax.annotation.Nullable @@ -115,7 +106,6 @@ public AddWebhookTagRequest addValuesItem(String valuesItem) { /** * Tag values - * * @return values */ @javax.annotation.Nullable @@ -135,7 +125,6 @@ public AddWebhookTagRequest key(@javax.annotation.Nullable String key) { /** * Tag key - * * @return key */ @javax.annotation.Nullable @@ -158,9 +147,9 @@ public boolean equals(Object o) { return false; } AddWebhookTagRequest addWebhookTagRequest = (AddWebhookTagRequest) o; - return Objects.equals(this.value, addWebhookTagRequest.value) - && Objects.equals(this.values, addWebhookTagRequest.values) - && Objects.equals(this.key, addWebhookTagRequest.key); + return Objects.equals(this.value, addWebhookTagRequest.value) && + Objects.equals(this.values, addWebhookTagRequest.values) && + Objects.equals(this.key, addWebhookTagRequest.key); } @Override @@ -180,7 +169,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -208,72 +198,58 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWebhookTagRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWebhookTagRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddWebhookTagRequest is not found in the empty JSON string", - AddWebhookTagRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddWebhookTagRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWebhookTagRequest is not found in the empty JSON string", AddWebhookTagRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWebhookTagRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddWebhookTagRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWebhookTagRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWebhookTagRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() - && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `values` to be an array in the JSON string but got `%s`", - jsonObj.get("values").toString())); - } - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWebhookTagRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWebhookTagRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddWebhookTagRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWebhookTagRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWebhookTagRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWebhookTagRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWebhookTagRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddWebhookTagRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWebhookTagRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWebhookTagRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java b/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java index b96716a0f..9342d4eec 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * AddWorkflowRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -85,7 +76,8 @@ public class AddWorkflowRequest { @javax.annotation.Nonnull private List steps = new ArrayList<>(); - public AddWorkflowRequest() {} + public AddWorkflowRequest() { + } public AddWorkflowRequest name(@javax.annotation.Nonnull String name) { this.name = name; @@ -94,7 +86,6 @@ public AddWorkflowRequest name(@javax.annotation.Nonnull String name) { /** * Workflow name - * * @return name */ @javax.annotation.Nonnull @@ -114,7 +105,6 @@ public AddWorkflowRequest description(@javax.annotation.Nullable String descript /** * Workflow description - * * @return description */ @javax.annotation.Nullable @@ -134,7 +124,6 @@ public AddWorkflowRequest status(@javax.annotation.Nonnull WorkflowStatus status /** * Get status - * * @return status */ @javax.annotation.Nonnull @@ -162,7 +151,6 @@ public AddWorkflowRequest addStepsItem(AddWorkflowStep stepsItem) { /** * Workflow Steps - * * @return steps */ @javax.annotation.Nonnull @@ -185,10 +173,10 @@ public boolean equals(Object o) { return false; } AddWorkflowRequest addWorkflowRequest = (AddWorkflowRequest) o; - return Objects.equals(this.name, addWorkflowRequest.name) - && Objects.equals(this.description, addWorkflowRequest.description) - && Objects.equals(this.status, addWorkflowRequest.status) - && Objects.equals(this.steps, addWorkflowRequest.steps); + return Objects.equals(this.name, addWorkflowRequest.name) && + Objects.equals(this.description, addWorkflowRequest.description) && + Objects.equals(this.status, addWorkflowRequest.status) && + Objects.equals(this.steps, addWorkflowRequest.steps); } @Override @@ -209,7 +197,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -237,87 +226,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWorkflowRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddWorkflowRequest is not found in the empty JSON string", - AddWorkflowRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWorkflowRequest is not found in the empty JSON string", AddWorkflowRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWorkflowRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddWorkflowRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWorkflowRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWorkflowRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddWorkflowRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddWorkflowRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // validate the required field `status` + WorkflowStatus.validateJsonElement(jsonObj.get("status")); + // ensure the json data is an array + if (!jsonObj.get("steps").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `steps` to be an array in the JSON string but got `%s`", jsonObj.get("steps").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - // validate the required field `status` - WorkflowStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("steps").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `steps` to be an array in the JSON string but got `%s`", - jsonObj.get("steps").toString())); - } - JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); - // validate the required field `steps` (array) - for (int i = 0; i < jsonArraysteps.size(); i++) { - AddWorkflowStep.validateJsonElement(jsonArraysteps.get(i)); - } ; + JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); + // validate the required field `steps` (array) + for (int i = 0; i < jsonArraysteps.size(); i++) { + AddWorkflowStep.validateJsonElement(jsonArraysteps.get(i)); + }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWorkflowRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWorkflowRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWorkflowRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWorkflowRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWorkflowRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWorkflowRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWorkflowRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWorkflowRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java b/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java index 0621e4b06..f6341579d 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * AddWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowResponse { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; @SerializedName(SERIALIZED_NAME_WORKFLOW_ID) @javax.annotation.Nullable private String workflowId; - public AddWorkflowResponse() {} + public AddWorkflowResponse() { + } public AddWorkflowResponse workflowId(@javax.annotation.Nullable String workflowId) { this.workflowId = workflowId; @@ -75,7 +67,6 @@ public AddWorkflowResponse workflowId(@javax.annotation.Nullable String workflow /** * Workflow Identifier - * * @return workflowId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddWorkflowResponse is not found in the empty JSON string", - AddWorkflowResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWorkflowResponse is not found in the empty JSON string", AddWorkflowResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddWorkflowResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) - && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workflowId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStep.java b/src/main/java/com/formkiq/client/model/AddWorkflowStep.java index fb6743f57..3e93c1b59 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStep.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStep.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * AddWorkflowStep */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowStep { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; @SerializedName(SERIALIZED_NAME_STEP_ID) @@ -86,7 +77,8 @@ public class AddWorkflowStep { @javax.annotation.Nullable private List decisions = new ArrayList<>(); - public AddWorkflowStep() {} + public AddWorkflowStep() { + } public AddWorkflowStep stepId(@javax.annotation.Nullable String stepId) { this.stepId = stepId; @@ -95,7 +87,6 @@ public AddWorkflowStep stepId(@javax.annotation.Nullable String stepId) { /** * Workflow Step Identifier - * * @return stepId */ @javax.annotation.Nullable @@ -115,7 +106,6 @@ public AddWorkflowStep action(@javax.annotation.Nullable AddAction action) { /** * Get action - * * @return action */ @javax.annotation.Nullable @@ -135,7 +125,6 @@ public AddWorkflowStep queue(@javax.annotation.Nullable AddWorkflowStepQueue que /** * Get queue - * * @return queue */ @javax.annotation.Nullable @@ -148,8 +137,7 @@ public void setQueue(@javax.annotation.Nullable AddWorkflowStepQueue queue) { } - public AddWorkflowStep decisions( - @javax.annotation.Nullable List decisions) { + public AddWorkflowStep decisions(@javax.annotation.Nullable List decisions) { this.decisions = decisions; return this; } @@ -164,7 +152,6 @@ public AddWorkflowStep addDecisionsItem(AddWorkflowStepDecision decisionsItem) { /** * Workflow Decisions - * * @return decisions */ @javax.annotation.Nullable @@ -187,10 +174,10 @@ public boolean equals(Object o) { return false; } AddWorkflowStep addWorkflowStep = (AddWorkflowStep) o; - return Objects.equals(this.stepId, addWorkflowStep.stepId) - && Objects.equals(this.action, addWorkflowStep.action) - && Objects.equals(this.queue, addWorkflowStep.queue) - && Objects.equals(this.decisions, addWorkflowStep.decisions); + return Objects.equals(this.stepId, addWorkflowStep.stepId) && + Objects.equals(this.action, addWorkflowStep.action) && + Objects.equals(this.queue, addWorkflowStep.queue) && + Objects.equals(this.decisions, addWorkflowStep.decisions); } @Override @@ -211,7 +198,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -239,83 +227,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWorkflowStep */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWorkflowStep.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddWorkflowStep is not found in the empty JSON string", - AddWorkflowStep.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddWorkflowStep.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWorkflowStep is not found in the empty JSON string", AddWorkflowStep.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWorkflowStep.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddWorkflowStep` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWorkflowStep.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWorkflowStep` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) - && !jsonObj.get("stepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stepId").toString())); - } - // validate the optional field `action` - if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { - AddAction.validateJsonElement(jsonObj.get("action")); - } - // validate the optional field `queue` - if (jsonObj.get("queue") != null && !jsonObj.get("queue").isJsonNull()) { - AddWorkflowStepQueue.validateJsonElement(jsonObj.get("queue")); - } - if (jsonObj.get("decisions") != null && !jsonObj.get("decisions").isJsonNull()) { - JsonArray jsonArraydecisions = jsonObj.getAsJsonArray("decisions"); - if (jsonArraydecisions != null) { - // ensure the json data is an array - if (!jsonObj.get("decisions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `decisions` to be an array in the JSON string but got `%s`", - jsonObj.get("decisions").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) && !jsonObj.get("stepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stepId").toString())); + } + // validate the optional field `action` + if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { + AddAction.validateJsonElement(jsonObj.get("action")); + } + // validate the optional field `queue` + if (jsonObj.get("queue") != null && !jsonObj.get("queue").isJsonNull()) { + AddWorkflowStepQueue.validateJsonElement(jsonObj.get("queue")); + } + if (jsonObj.get("decisions") != null && !jsonObj.get("decisions").isJsonNull()) { + JsonArray jsonArraydecisions = jsonObj.getAsJsonArray("decisions"); + if (jsonArraydecisions != null) { + // ensure the json data is an array + if (!jsonObj.get("decisions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `decisions` to be an array in the JSON string but got `%s`", jsonObj.get("decisions").toString())); + } + + // validate the optional field `decisions` (array) + for (int i = 0; i < jsonArraydecisions.size(); i++) { + AddWorkflowStepDecision.validateJsonElement(jsonArraydecisions.get(i)); + }; } - - // validate the optional field `decisions` (array) - for (int i = 0; i < jsonArraydecisions.size(); i++) { - AddWorkflowStepDecision.validateJsonElement(jsonArraydecisions.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWorkflowStep.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWorkflowStep' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStep.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWorkflowStep value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWorkflowStep read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWorkflowStep.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWorkflowStep' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStep.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWorkflowStep value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWorkflowStep read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java b/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java index 2202a4f67..19ef24977 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * AddWorkflowStepDecision */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowStepDecision { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -72,7 +63,8 @@ public class AddWorkflowStepDecision { @javax.annotation.Nonnull private String nextStepId; - public AddWorkflowStepDecision() {} + public AddWorkflowStepDecision() { + } public AddWorkflowStepDecision type(@javax.annotation.Nonnull WorkflowStepDecisionType type) { this.type = type; @@ -81,7 +73,6 @@ public AddWorkflowStepDecision type(@javax.annotation.Nonnull WorkflowStepDecisi /** * Get type - * * @return type */ @javax.annotation.Nonnull @@ -101,7 +92,6 @@ public AddWorkflowStepDecision nextStepId(@javax.annotation.Nonnull String nextS /** * Workflow Step to move to - * * @return nextStepId */ @javax.annotation.Nonnull @@ -124,8 +114,8 @@ public boolean equals(Object o) { return false; } AddWorkflowStepDecision addWorkflowStepDecision = (AddWorkflowStepDecision) o; - return Objects.equals(this.type, addWorkflowStepDecision.type) - && Objects.equals(this.nextStepId, addWorkflowStepDecision.nextStepId); + return Objects.equals(this.type, addWorkflowStepDecision.type) && + Objects.equals(this.nextStepId, addWorkflowStepDecision.nextStepId); } @Override @@ -144,7 +134,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,69 +163,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWorkflowStepDecision */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWorkflowStepDecision.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddWorkflowStepDecision is not found in the empty JSON string", - AddWorkflowStepDecision.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddWorkflowStepDecision.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWorkflowStepDecision is not found in the empty JSON string", AddWorkflowStepDecision.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWorkflowStepDecision.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddWorkflowStepDecision` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWorkflowStepDecision.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWorkflowStepDecision` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddWorkflowStepDecision.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddWorkflowStepDecision.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `type` + WorkflowStepDecisionType.validateJsonElement(jsonObj.get("type")); + if (!jsonObj.get("nextStepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nextStepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextStepId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `type` - WorkflowStepDecisionType.validateJsonElement(jsonObj.get("type")); - if (!jsonObj.get("nextStepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `nextStepId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("nextStepId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWorkflowStepDecision.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWorkflowStepDecision' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStepDecision.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWorkflowStepDecision value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWorkflowStepDecision read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWorkflowStepDecision.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWorkflowStepDecision' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStepDecision.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWorkflowStepDecision value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWorkflowStepDecision read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java b/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java index 6b7c99339..32c732d47 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * AddWorkflowStepQueue */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowStepQueue { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; @SerializedName(SERIALIZED_NAME_QUEUE_ID) @@ -73,7 +64,8 @@ public class AddWorkflowStepQueue { @javax.annotation.Nullable private List approvalGroups = new ArrayList<>(); - public AddWorkflowStepQueue() {} + public AddWorkflowStepQueue() { + } public AddWorkflowStepQueue queueId(@javax.annotation.Nonnull String queueId) { this.queueId = queueId; @@ -82,7 +74,6 @@ public AddWorkflowStepQueue queueId(@javax.annotation.Nonnull String queueId) { /** * Queue Identifier - * * @return queueId */ @javax.annotation.Nonnull @@ -95,8 +86,7 @@ public void setQueueId(@javax.annotation.Nonnull String queueId) { } - public AddWorkflowStepQueue approvalGroups( - @javax.annotation.Nullable List approvalGroups) { + public AddWorkflowStepQueue approvalGroups(@javax.annotation.Nullable List approvalGroups) { this.approvalGroups = approvalGroups; return this; } @@ -111,7 +101,6 @@ public AddWorkflowStepQueue addApprovalGroupsItem(String approvalGroupsItem) { /** * Get approvalGroups - * * @return approvalGroups */ @javax.annotation.Nullable @@ -134,8 +123,8 @@ public boolean equals(Object o) { return false; } AddWorkflowStepQueue addWorkflowStepQueue = (AddWorkflowStepQueue) o; - return Objects.equals(this.queueId, addWorkflowStepQueue.queueId) - && Objects.equals(this.approvalGroups, addWorkflowStepQueue.approvalGroups); + return Objects.equals(this.queueId, addWorkflowStepQueue.queueId) && + Objects.equals(this.approvalGroups, addWorkflowStepQueue.approvalGroups); } @Override @@ -154,7 +143,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,74 +172,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWorkflowStepQueue */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWorkflowStepQueue.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AddWorkflowStepQueue is not found in the empty JSON string", - AddWorkflowStepQueue.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AddWorkflowStepQueue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWorkflowStepQueue is not found in the empty JSON string", AddWorkflowStepQueue.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWorkflowStepQueue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AddWorkflowStepQueue` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWorkflowStepQueue.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWorkflowStepQueue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddWorkflowStepQueue.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddWorkflowStepQueue.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("approvalGroups") != null && !jsonObj.get("approvalGroups").isJsonNull() && !jsonObj.get("approvalGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `approvalGroups` to be an array in the JSON string but got `%s`", jsonObj.get("approvalGroups").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("queueId").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("approvalGroups") != null && !jsonObj.get("approvalGroups").isJsonNull() - && !jsonObj.get("approvalGroups").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `approvalGroups` to be an array in the JSON string but got `%s`", - jsonObj.get("approvalGroups").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWorkflowStepQueue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWorkflowStepQueue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStepQueue.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWorkflowStepQueue value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWorkflowStepQueue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWorkflowStepQueue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWorkflowStepQueue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStepQueue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWorkflowStepQueue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWorkflowStepQueue read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ApiKey.java b/src/main/java/com/formkiq/client/model/ApiKey.java index b64653050..8e1d501e1 100644 --- a/src/main/java/com/formkiq/client/model/ApiKey.java +++ b/src/main/java/com/formkiq/client/model/ApiKey.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * ApiKey */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ApiKey { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -94,11 +85,11 @@ public class ApiKey { @JsonAdapter(PermissionsEnum.Adapter.class) public enum PermissionsEnum { READ("READ"), - + WRITE("WRITE"), - + DELETE("DELETE"), - + GOVERN("GOVERN"); private String value; @@ -127,14 +118,13 @@ public static PermissionsEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final PermissionsEnum enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final PermissionsEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public PermissionsEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PermissionsEnum.fromValue(value); } } @@ -150,7 +140,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public ApiKey() {} + public ApiKey() { + } public ApiKey name(@javax.annotation.Nullable String name) { this.name = name; @@ -159,7 +150,6 @@ public ApiKey name(@javax.annotation.Nullable String name) { /** * Name of API Key - * * @return name */ @javax.annotation.Nullable @@ -179,7 +169,6 @@ public ApiKey apiKey(@javax.annotation.Nullable String apiKey) { /** * API Key value - * * @return apiKey */ @javax.annotation.Nullable @@ -199,7 +188,6 @@ public ApiKey userId(@javax.annotation.Nullable String userId) { /** * Get userId - * * @return userId */ @javax.annotation.Nullable @@ -219,7 +207,6 @@ public ApiKey siteId(@javax.annotation.Nullable String siteId) { /** * Get siteId - * * @return siteId */ @javax.annotation.Nullable @@ -239,7 +226,6 @@ public ApiKey insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -267,7 +253,6 @@ public ApiKey addPermissionsItem(PermissionsEnum permissionsItem) { /** * List of permissions - * * @return permissions */ @javax.annotation.Nullable @@ -290,10 +275,12 @@ public boolean equals(Object o) { return false; } ApiKey apiKey = (ApiKey) o; - return Objects.equals(this.name, apiKey.name) && Objects.equals(this.apiKey, apiKey.apiKey) - && Objects.equals(this.userId, apiKey.userId) && Objects.equals(this.siteId, apiKey.siteId) - && Objects.equals(this.insertedDate, apiKey.insertedDate) - && Objects.equals(this.permissions, apiKey.permissions); + return Objects.equals(this.name, apiKey.name) && + Objects.equals(this.apiKey, apiKey.apiKey) && + Objects.equals(this.userId, apiKey.userId) && + Objects.equals(this.siteId, apiKey.siteId) && + Objects.equals(this.insertedDate, apiKey.insertedDate) && + Objects.equals(this.permissions, apiKey.permissions); } @Override @@ -316,7 +303,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -331,8 +319,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("name", "apiKey", "userId", "siteId", "insertedDate", "permissions")); + openapiFields = new HashSet(Arrays.asList("name", "apiKey", "userId", "siteId", "insertedDate", "permissions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -345,89 +332,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ApiKey */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiKey.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in ApiKey is not found in the empty JSON string", - ApiKey.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!ApiKey.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ApiKey is not found in the empty JSON string", ApiKey.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ApiKey.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `ApiKey` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ApiKey.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ApiKey` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("apiKey") != null && !jsonObj.get("apiKey").isJsonNull()) && !jsonObj.get("apiKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `apiKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiKey").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("apiKey") != null && !jsonObj.get("apiKey").isJsonNull()) - && !jsonObj.get("apiKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `apiKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("apiKey").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() - && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `permissions` to be an array in the JSON string but got `%s`", - jsonObj.get("permissions").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiKey.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiKey' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(ApiKey.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiKey value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiKey read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ApiKey.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ApiKey' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ApiKey.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ApiKey value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ApiKey read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Attribute.java b/src/main/java/com/formkiq/client/model/Attribute.java index 5ed4dc45f..923857ba3 100644 --- a/src/main/java/com/formkiq/client/model/Attribute.java +++ b/src/main/java/com/formkiq/client/model/Attribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * Attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Attribute { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -84,7 +75,8 @@ public class Attribute { @javax.annotation.Nullable private Watermark watermark; - public Attribute() {} + public Attribute() { + } public Attribute type(@javax.annotation.Nullable AttributeType type) { this.type = type; @@ -93,7 +85,6 @@ public Attribute type(@javax.annotation.Nullable AttributeType type) { /** * Get type - * * @return type */ @javax.annotation.Nullable @@ -113,7 +104,6 @@ public Attribute key(@javax.annotation.Nullable String key) { /** * Attribute Key - * * @return key */ @javax.annotation.Nullable @@ -133,7 +123,6 @@ public Attribute dataType(@javax.annotation.Nullable AttributeDataType dataType) /** * Get dataType - * * @return dataType */ @javax.annotation.Nullable @@ -153,7 +142,6 @@ public Attribute watermark(@javax.annotation.Nullable Watermark watermark) { /** * Get watermark - * * @return watermark */ @javax.annotation.Nullable @@ -176,9 +164,10 @@ public boolean equals(Object o) { return false; } Attribute attribute = (Attribute) o; - return Objects.equals(this.type, attribute.type) && Objects.equals(this.key, attribute.key) - && Objects.equals(this.dataType, attribute.dataType) - && Objects.equals(this.watermark, attribute.watermark); + return Objects.equals(this.type, attribute.type) && + Objects.equals(this.key, attribute.key) && + Objects.equals(this.dataType, attribute.dataType) && + Objects.equals(this.watermark, attribute.watermark); } @Override @@ -199,7 +188,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -227,71 +217,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Attribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Attribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Attribute is not found in the empty JSON string", - Attribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Attribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Attribute is not found in the empty JSON string", Attribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Attribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Attribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Attribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Attribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + AttributeType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + // validate the optional field `dataType` + if (jsonObj.get("dataType") != null && !jsonObj.get("dataType").isJsonNull()) { + AttributeDataType.validateJsonElement(jsonObj.get("dataType")); + } + // validate the optional field `watermark` + if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { + Watermark.validateJsonElement(jsonObj.get("watermark")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - AttributeType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - // validate the optional field `dataType` - if (jsonObj.get("dataType") != null && !jsonObj.get("dataType").isJsonNull()) { - AttributeDataType.validateJsonElement(jsonObj.get("dataType")); - } - // validate the optional field `watermark` - if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { - Watermark.validateJsonElement(jsonObj.get("watermark")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Attribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Attribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Attribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Attribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Attribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Attribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Attribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Attribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Attribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Attribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AttributeDataType.java b/src/main/java/com/formkiq/client/model/AttributeDataType.java index bf01467f0..524c261bf 100644 --- a/src/main/java/com/formkiq/client/model/AttributeDataType.java +++ b/src/main/java/com/formkiq/client/model/AttributeDataType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,19 +30,19 @@ */ @JsonAdapter(AttributeDataType.Adapter.class) public enum AttributeDataType { - + STRING("STRING"), - + NUMBER("NUMBER"), - + BOOLEAN("BOOLEAN"), - + KEY_ONLY("KEY_ONLY"), - + PUBLICATION("PUBLICATION"), - + WATERMARK("WATERMARK"), - + ENTITY("ENTITY"); private String value; @@ -78,8 +71,7 @@ public static AttributeDataType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AttributeDataType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final AttributeDataType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java b/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java index af01d9086..ad8d82b46 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,19 +52,17 @@ /** * AttributeSchemaCompositeKey */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AttributeSchemaCompositeKey { public static final String SERIALIZED_NAME_ATTRIBUTE_KEYS = "attributeKeys"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_KEYS) @javax.annotation.Nullable private List attributeKeys = new ArrayList<>(); - public AttributeSchemaCompositeKey() {} + public AttributeSchemaCompositeKey() { + } - public AttributeSchemaCompositeKey attributeKeys( - @javax.annotation.Nullable List attributeKeys) { + public AttributeSchemaCompositeKey attributeKeys(@javax.annotation.Nullable List attributeKeys) { this.attributeKeys = attributeKeys; return this; } @@ -86,7 +77,6 @@ public AttributeSchemaCompositeKey addAttributeKeysItem(String attributeKeysItem /** * Get attributeKeys - * * @return attributeKeys */ @javax.annotation.Nullable @@ -127,7 +117,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,60 +146,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AttributeSchemaCompositeKey */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AttributeSchemaCompositeKey.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AttributeSchemaCompositeKey is not found in the empty JSON string", - AttributeSchemaCompositeKey.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AttributeSchemaCompositeKey.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AttributeSchemaCompositeKey is not found in the empty JSON string", AttributeSchemaCompositeKey.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AttributeSchemaCompositeKey.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AttributeSchemaCompositeKey` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AttributeSchemaCompositeKey.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AttributeSchemaCompositeKey` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("attributeKeys") != null && !jsonObj.get("attributeKeys").isJsonNull() && !jsonObj.get("attributeKeys").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKeys` to be an array in the JSON string but got `%s`", jsonObj.get("attributeKeys").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("attributeKeys") != null && !jsonObj.get("attributeKeys").isJsonNull() - && !jsonObj.get("attributeKeys").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributeKeys` to be an array in the JSON string but got `%s`", - jsonObj.get("attributeKeys").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AttributeSchemaCompositeKey.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AttributeSchemaCompositeKey' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaCompositeKey.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AttributeSchemaCompositeKey value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AttributeSchemaCompositeKey read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AttributeSchemaCompositeKey.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AttributeSchemaCompositeKey' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaCompositeKey.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AttributeSchemaCompositeKey value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AttributeSchemaCompositeKey read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java b/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java index bb7997b86..b952cfe2d 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * AttributeSchemaOptional */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AttributeSchemaOptional { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; @SerializedName(SERIALIZED_NAME_MIN_NUMBER_OF_VALUES) @@ -91,17 +82,16 @@ public class AttributeSchemaOptional { @javax.annotation.Nullable private Map localizedAllowedValues = new HashMap<>(); - public AttributeSchemaOptional() {} + public AttributeSchemaOptional() { + } - public AttributeSchemaOptional minNumberOfValues( - @javax.annotation.Nullable BigDecimal minNumberOfValues) { + public AttributeSchemaOptional minNumberOfValues(@javax.annotation.Nullable BigDecimal minNumberOfValues) { this.minNumberOfValues = minNumberOfValues; return this; } /** * The minimum number of attribute values - * * @return minNumberOfValues */ @javax.annotation.Nullable @@ -114,15 +104,13 @@ public void setMinNumberOfValues(@javax.annotation.Nullable BigDecimal minNumber } - public AttributeSchemaOptional maxNumberOfValues( - @javax.annotation.Nullable BigDecimal maxNumberOfValues) { + public AttributeSchemaOptional maxNumberOfValues(@javax.annotation.Nullable BigDecimal maxNumberOfValues) { this.maxNumberOfValues = maxNumberOfValues; return this; } /** * The maximum number of attribute values - * * @return maxNumberOfValues */ @javax.annotation.Nullable @@ -142,7 +130,6 @@ public AttributeSchemaOptional attributeKey(@javax.annotation.Nullable String at /** * Get attributeKey - * * @return attributeKey */ @javax.annotation.Nullable @@ -155,8 +142,7 @@ public void setAttributeKey(@javax.annotation.Nullable String attributeKey) { } - public AttributeSchemaOptional allowedValues( - @javax.annotation.Nullable List allowedValues) { + public AttributeSchemaOptional allowedValues(@javax.annotation.Nullable List allowedValues) { this.allowedValues = allowedValues; return this; } @@ -171,7 +157,6 @@ public AttributeSchemaOptional addAllowedValuesItem(String allowedValuesItem) { /** * Only valid string values - * * @return allowedValues */ @javax.annotation.Nullable @@ -184,14 +169,12 @@ public void setAllowedValues(@javax.annotation.Nullable List allowedValu } - public AttributeSchemaOptional localizedAllowedValues( - @javax.annotation.Nullable Map localizedAllowedValues) { + public AttributeSchemaOptional localizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; return this; } - public AttributeSchemaOptional putLocalizedAllowedValuesItem(String key, - String localizedAllowedValuesItem) { + public AttributeSchemaOptional putLocalizedAllowedValuesItem(String key, String localizedAllowedValuesItem) { if (this.localizedAllowedValues == null) { this.localizedAllowedValues = new HashMap<>(); } @@ -201,7 +184,6 @@ public AttributeSchemaOptional putLocalizedAllowedValuesItem(String key, /** * Get localizedAllowedValues - * * @return localizedAllowedValues */ @javax.annotation.Nullable @@ -209,8 +191,7 @@ public Map getLocalizedAllowedValues() { return localizedAllowedValues; } - public void setLocalizedAllowedValues( - @javax.annotation.Nullable Map localizedAllowedValues) { + public void setLocalizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; } @@ -225,17 +206,16 @@ public boolean equals(Object o) { return false; } AttributeSchemaOptional attributeSchemaOptional = (AttributeSchemaOptional) o; - return Objects.equals(this.minNumberOfValues, attributeSchemaOptional.minNumberOfValues) - && Objects.equals(this.maxNumberOfValues, attributeSchemaOptional.maxNumberOfValues) - && Objects.equals(this.attributeKey, attributeSchemaOptional.attributeKey) - && Objects.equals(this.allowedValues, attributeSchemaOptional.allowedValues) && Objects - .equals(this.localizedAllowedValues, attributeSchemaOptional.localizedAllowedValues); + return Objects.equals(this.minNumberOfValues, attributeSchemaOptional.minNumberOfValues) && + Objects.equals(this.maxNumberOfValues, attributeSchemaOptional.maxNumberOfValues) && + Objects.equals(this.attributeKey, attributeSchemaOptional.attributeKey) && + Objects.equals(this.allowedValues, attributeSchemaOptional.allowedValues) && + Objects.equals(this.localizedAllowedValues, attributeSchemaOptional.localizedAllowedValues); } @Override public int hashCode() { - return Objects.hash(minNumberOfValues, maxNumberOfValues, attributeKey, allowedValues, - localizedAllowedValues); + return Objects.hash(minNumberOfValues, maxNumberOfValues, attributeKey, allowedValues, localizedAllowedValues); } @Override @@ -246,14 +226,14 @@ public String toString() { sb.append(" maxNumberOfValues: ").append(toIndentedString(maxNumberOfValues)).append("\n"); sb.append(" attributeKey: ").append(toIndentedString(attributeKey)).append("\n"); sb.append(" allowedValues: ").append(toIndentedString(allowedValues)).append("\n"); - sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)) - .append("\n"); + sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,8 +248,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("minNumberOfValues", "maxNumberOfValues", - "attributeKey", "allowedValues", "localizedAllowedValues")); + openapiFields = new HashSet(Arrays.asList("minNumberOfValues", "maxNumberOfValues", "attributeKey", "allowedValues", "localizedAllowedValues")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -282,66 +261,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AttributeSchemaOptional */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AttributeSchemaOptional.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AttributeSchemaOptional is not found in the empty JSON string", - AttributeSchemaOptional.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AttributeSchemaOptional.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AttributeSchemaOptional is not found in the empty JSON string", AttributeSchemaOptional.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AttributeSchemaOptional.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AttributeSchemaOptional` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AttributeSchemaOptional.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AttributeSchemaOptional` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() && !jsonObj.get("allowedValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", jsonObj.get("allowedValues").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) - && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("attributeKey").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() - && !jsonObj.get("allowedValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", - jsonObj.get("allowedValues").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AttributeSchemaOptional.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AttributeSchemaOptional' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaOptional.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AttributeSchemaOptional value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AttributeSchemaOptional read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AttributeSchemaOptional.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AttributeSchemaOptional' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaOptional.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AttributeSchemaOptional value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AttributeSchemaOptional read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java b/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java index 12d7932ca..667733d2e 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * AttributeSchemaRequired */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AttributeSchemaRequired { public static final String SERIALIZED_NAME_ATTRIBUTE_KEY = "attributeKey"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_KEY) @@ -101,7 +92,8 @@ public class AttributeSchemaRequired { @javax.annotation.Nullable private Map localizedAllowedValues = new HashMap<>(); - public AttributeSchemaRequired() {} + public AttributeSchemaRequired() { + } public AttributeSchemaRequired attributeKey(@javax.annotation.Nullable String attributeKey) { this.attributeKey = attributeKey; @@ -110,7 +102,6 @@ public AttributeSchemaRequired attributeKey(@javax.annotation.Nullable String at /** * Get attributeKey - * * @return attributeKey */ @javax.annotation.Nullable @@ -123,15 +114,13 @@ public void setAttributeKey(@javax.annotation.Nullable String attributeKey) { } - public AttributeSchemaRequired minNumberOfValues( - @javax.annotation.Nullable BigDecimal minNumberOfValues) { + public AttributeSchemaRequired minNumberOfValues(@javax.annotation.Nullable BigDecimal minNumberOfValues) { this.minNumberOfValues = minNumberOfValues; return this; } /** * The minimum number of attribute values - * * @return minNumberOfValues */ @javax.annotation.Nullable @@ -144,15 +133,13 @@ public void setMinNumberOfValues(@javax.annotation.Nullable BigDecimal minNumber } - public AttributeSchemaRequired maxNumberOfValues( - @javax.annotation.Nullable BigDecimal maxNumberOfValues) { + public AttributeSchemaRequired maxNumberOfValues(@javax.annotation.Nullable BigDecimal maxNumberOfValues) { this.maxNumberOfValues = maxNumberOfValues; return this; } /** * The maximum number of attribute values - * * @return maxNumberOfValues */ @javax.annotation.Nullable @@ -172,7 +159,6 @@ public AttributeSchemaRequired defaultValue(@javax.annotation.Nullable String de /** * Default value - * * @return defaultValue */ @javax.annotation.Nullable @@ -185,8 +171,7 @@ public void setDefaultValue(@javax.annotation.Nullable String defaultValue) { } - public AttributeSchemaRequired defaultValues( - @javax.annotation.Nullable List defaultValues) { + public AttributeSchemaRequired defaultValues(@javax.annotation.Nullable List defaultValues) { this.defaultValues = defaultValues; return this; } @@ -201,7 +186,6 @@ public AttributeSchemaRequired addDefaultValuesItem(String defaultValuesItem) { /** * Default values - * * @return defaultValues */ @javax.annotation.Nullable @@ -214,8 +198,7 @@ public void setDefaultValues(@javax.annotation.Nullable List defaultValu } - public AttributeSchemaRequired allowedValues( - @javax.annotation.Nullable List allowedValues) { + public AttributeSchemaRequired allowedValues(@javax.annotation.Nullable List allowedValues) { this.allowedValues = allowedValues; return this; } @@ -230,7 +213,6 @@ public AttributeSchemaRequired addAllowedValuesItem(String allowedValuesItem) { /** * Only valid string values - * * @return allowedValues */ @javax.annotation.Nullable @@ -243,14 +225,12 @@ public void setAllowedValues(@javax.annotation.Nullable List allowedValu } - public AttributeSchemaRequired localizedAllowedValues( - @javax.annotation.Nullable Map localizedAllowedValues) { + public AttributeSchemaRequired localizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; return this; } - public AttributeSchemaRequired putLocalizedAllowedValuesItem(String key, - String localizedAllowedValuesItem) { + public AttributeSchemaRequired putLocalizedAllowedValuesItem(String key, String localizedAllowedValuesItem) { if (this.localizedAllowedValues == null) { this.localizedAllowedValues = new HashMap<>(); } @@ -260,7 +240,6 @@ public AttributeSchemaRequired putLocalizedAllowedValuesItem(String key, /** * Get localizedAllowedValues - * * @return localizedAllowedValues */ @javax.annotation.Nullable @@ -268,8 +247,7 @@ public Map getLocalizedAllowedValues() { return localizedAllowedValues; } - public void setLocalizedAllowedValues( - @javax.annotation.Nullable Map localizedAllowedValues) { + public void setLocalizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; } @@ -284,19 +262,18 @@ public boolean equals(Object o) { return false; } AttributeSchemaRequired attributeSchemaRequired = (AttributeSchemaRequired) o; - return Objects.equals(this.attributeKey, attributeSchemaRequired.attributeKey) - && Objects.equals(this.minNumberOfValues, attributeSchemaRequired.minNumberOfValues) - && Objects.equals(this.maxNumberOfValues, attributeSchemaRequired.maxNumberOfValues) - && Objects.equals(this.defaultValue, attributeSchemaRequired.defaultValue) - && Objects.equals(this.defaultValues, attributeSchemaRequired.defaultValues) - && Objects.equals(this.allowedValues, attributeSchemaRequired.allowedValues) && Objects - .equals(this.localizedAllowedValues, attributeSchemaRequired.localizedAllowedValues); + return Objects.equals(this.attributeKey, attributeSchemaRequired.attributeKey) && + Objects.equals(this.minNumberOfValues, attributeSchemaRequired.minNumberOfValues) && + Objects.equals(this.maxNumberOfValues, attributeSchemaRequired.maxNumberOfValues) && + Objects.equals(this.defaultValue, attributeSchemaRequired.defaultValue) && + Objects.equals(this.defaultValues, attributeSchemaRequired.defaultValues) && + Objects.equals(this.allowedValues, attributeSchemaRequired.allowedValues) && + Objects.equals(this.localizedAllowedValues, attributeSchemaRequired.localizedAllowedValues); } @Override public int hashCode() { - return Objects.hash(attributeKey, minNumberOfValues, maxNumberOfValues, defaultValue, - defaultValues, allowedValues, localizedAllowedValues); + return Objects.hash(attributeKey, minNumberOfValues, maxNumberOfValues, defaultValue, defaultValues, allowedValues, localizedAllowedValues); } @Override @@ -309,14 +286,14 @@ public String toString() { sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); sb.append(" defaultValues: ").append(toIndentedString(defaultValues)).append("\n"); sb.append(" allowedValues: ").append(toIndentedString(allowedValues)).append("\n"); - sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)) - .append("\n"); + sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -331,9 +308,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("attributeKey", "minNumberOfValues", "maxNumberOfValues", - "defaultValue", "defaultValues", "allowedValues", "localizedAllowedValues")); + openapiFields = new HashSet(Arrays.asList("attributeKey", "minNumberOfValues", "maxNumberOfValues", "defaultValue", "defaultValues", "allowedValues", "localizedAllowedValues")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -346,79 +321,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AttributeSchemaRequired */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AttributeSchemaRequired.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in AttributeSchemaRequired is not found in the empty JSON string", - AttributeSchemaRequired.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!AttributeSchemaRequired.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AttributeSchemaRequired is not found in the empty JSON string", AttributeSchemaRequired.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AttributeSchemaRequired.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `AttributeSchemaRequired` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AttributeSchemaRequired.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AttributeSchemaRequired` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); + } + if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) && !jsonObj.get("defaultValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() && !jsonObj.get("defaultValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", jsonObj.get("defaultValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() && !jsonObj.get("allowedValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", jsonObj.get("allowedValues").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) - && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("attributeKey").toString())); - } - if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) - && !jsonObj.get("defaultValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("defaultValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() - && !jsonObj.get("defaultValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", - jsonObj.get("defaultValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() - && !jsonObj.get("allowedValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", - jsonObj.get("allowedValues").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AttributeSchemaRequired.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AttributeSchemaRequired' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaRequired.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AttributeSchemaRequired value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AttributeSchemaRequired read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AttributeSchemaRequired.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AttributeSchemaRequired' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaRequired.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AttributeSchemaRequired value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AttributeSchemaRequired read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AttributeType.java b/src/main/java/com/formkiq/client/model/AttributeType.java index ab669690a..12cf42854 100644 --- a/src/main/java/com/formkiq/client/model/AttributeType.java +++ b/src/main/java/com/formkiq/client/model/AttributeType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(AttributeType.Adapter.class) public enum AttributeType { - + STANDARD("STANDARD"), - + OPA("OPA"), - + GOVERNANCE("GOVERNANCE"); private String value; @@ -70,8 +63,7 @@ public static AttributeType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AttributeType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final AttributeType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/AttributeValueType.java b/src/main/java/com/formkiq/client/model/AttributeValueType.java index 1a80be5f4..d667e049e 100644 --- a/src/main/java/com/formkiq/client/model/AttributeValueType.java +++ b/src/main/java/com/formkiq/client/model/AttributeValueType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,25 +30,25 @@ */ @JsonAdapter(AttributeValueType.Adapter.class) public enum AttributeValueType { - + BOOLEAN("BOOLEAN"), - + KEY_ONLY("KEY_ONLY"), - + NUMBER("NUMBER"), - + STRING("STRING"), - + PUBLICATION("PUBLICATION"), - + CLASSIFICATION("CLASSIFICATION"), - + COMPOSITE_STRING("COMPOSITE_STRING"), - + RELATIONSHIPS("RELATIONSHIPS"), - + WATERMARK("WATERMARK"), - + ENTITY("ENTITY"); private String value; @@ -84,8 +77,7 @@ public static AttributeValueType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AttributeValueType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final AttributeValueType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/CaseStatus.java b/src/main/java/com/formkiq/client/model/CaseStatus.java index fd7d982df..bd38fb52f 100644 --- a/src/main/java/com/formkiq/client/model/CaseStatus.java +++ b/src/main/java/com/formkiq/client/model/CaseStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,23 +30,23 @@ */ @JsonAdapter(CaseStatus.Adapter.class) public enum CaseStatus { - + NEW("NEW"), - + ASSIGNED("ASSIGNED"), - + IN_PROGRESS("IN_PROGRESS"), - + ON_HOLD("ON_HOLD"), - + ESCALATED("ESCALATED"), - + RESOLVED("RESOLVED"), - + CLOSED("CLOSED"), - + UNDER_REVIEW("UNDER_REVIEW"), - + AWAITING_CLIENT_RESPONSE("AWAITING_CLIENT_RESPONSE"); private String value; @@ -82,8 +75,7 @@ public static CaseStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final CaseStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final CaseStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/ChecksumType.java b/src/main/java/com/formkiq/client/model/ChecksumType.java index 19e3e97e6..baa02a409 100644 --- a/src/main/java/com/formkiq/client/model/ChecksumType.java +++ b/src/main/java/com/formkiq/client/model/ChecksumType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(ChecksumType.Adapter.class) public enum ChecksumType { - + SHA1("SHA1"), - + SHA256("SHA256"); private String value; @@ -68,8 +61,7 @@ public static ChecksumType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final ChecksumType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final ChecksumType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/ChildDocument.java b/src/main/java/com/formkiq/client/model/ChildDocument.java index 060aa1039..82bd304a4 100644 --- a/src/main/java/com/formkiq/client/model/ChildDocument.java +++ b/src/main/java/com/formkiq/client/model/ChildDocument.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * ChildDocument */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ChildDocument { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -126,7 +117,8 @@ public class ChildDocument { @javax.annotation.Nullable private String belongsToDocumentId; - public ChildDocument() {} + public ChildDocument() { + } public ChildDocument path(@javax.annotation.Nullable String path) { this.path = path; @@ -135,7 +127,6 @@ public ChildDocument path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -155,7 +146,6 @@ public ChildDocument width(@javax.annotation.Nullable String width) { /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -175,7 +165,6 @@ public ChildDocument height(@javax.annotation.Nullable String height) { /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -195,7 +184,6 @@ public ChildDocument deepLinkPath(@javax.annotation.Nullable String deepLinkPath /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -215,7 +203,6 @@ public ChildDocument insertedDate(@javax.annotation.Nullable String insertedDate /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -235,7 +222,6 @@ public ChildDocument lastModifiedDate(@javax.annotation.Nullable String lastModi /** * Last Modified Timestamp - * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -255,7 +241,6 @@ public ChildDocument checksum(@javax.annotation.Nullable String checksum) { /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -275,7 +260,6 @@ public ChildDocument documentId(@javax.annotation.Nonnull String documentId) { /** * Document Identifier - * * @return documentId */ @javax.annotation.Nonnull @@ -295,7 +279,6 @@ public ChildDocument contentType(@javax.annotation.Nullable String contentType) /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -315,7 +298,6 @@ public ChildDocument userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -335,7 +317,6 @@ public ChildDocument contentLength(@javax.annotation.Nullable Integer contentLen /** * Document size - * * @return contentLength */ @javax.annotation.Nullable @@ -355,7 +336,6 @@ public ChildDocument versionId(@javax.annotation.Nullable String versionId) { /** * Document version - * * @return versionId */ @javax.annotation.Nullable @@ -375,7 +355,6 @@ public ChildDocument belongsToDocumentId(@javax.annotation.Nullable String belon /** * Parent Document Identifier - * * @return belongsToDocumentId */ @javax.annotation.Nullable @@ -398,25 +377,24 @@ public boolean equals(Object o) { return false; } ChildDocument childDocument = (ChildDocument) o; - return Objects.equals(this.path, childDocument.path) - && Objects.equals(this.width, childDocument.width) - && Objects.equals(this.height, childDocument.height) - && Objects.equals(this.deepLinkPath, childDocument.deepLinkPath) - && Objects.equals(this.insertedDate, childDocument.insertedDate) - && Objects.equals(this.lastModifiedDate, childDocument.lastModifiedDate) - && Objects.equals(this.checksum, childDocument.checksum) - && Objects.equals(this.documentId, childDocument.documentId) - && Objects.equals(this.contentType, childDocument.contentType) - && Objects.equals(this.userId, childDocument.userId) - && Objects.equals(this.contentLength, childDocument.contentLength) - && Objects.equals(this.versionId, childDocument.versionId) - && Objects.equals(this.belongsToDocumentId, childDocument.belongsToDocumentId); + return Objects.equals(this.path, childDocument.path) && + Objects.equals(this.width, childDocument.width) && + Objects.equals(this.height, childDocument.height) && + Objects.equals(this.deepLinkPath, childDocument.deepLinkPath) && + Objects.equals(this.insertedDate, childDocument.insertedDate) && + Objects.equals(this.lastModifiedDate, childDocument.lastModifiedDate) && + Objects.equals(this.checksum, childDocument.checksum) && + Objects.equals(this.documentId, childDocument.documentId) && + Objects.equals(this.contentType, childDocument.contentType) && + Objects.equals(this.userId, childDocument.userId) && + Objects.equals(this.contentLength, childDocument.contentLength) && + Objects.equals(this.versionId, childDocument.versionId) && + Objects.equals(this.belongsToDocumentId, childDocument.belongsToDocumentId); } @Override public int hashCode() { - return Objects.hash(path, width, height, deepLinkPath, insertedDate, lastModifiedDate, checksum, - documentId, contentType, userId, contentLength, versionId, belongsToDocumentId); + return Objects.hash(path, width, height, deepLinkPath, insertedDate, lastModifiedDate, checksum, documentId, contentType, userId, contentLength, versionId, belongsToDocumentId); } @Override @@ -435,14 +413,14 @@ public String toString() { sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" contentLength: ").append(toIndentedString(contentLength)).append("\n"); sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); - sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)) - .append("\n"); + sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -457,9 +435,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", - "insertedDate", "lastModifiedDate", "checksum", "documentId", "contentType", "userId", - "contentLength", "versionId", "belongsToDocumentId")); + openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "documentId", "contentType", "userId", "contentLength", "versionId", "belongsToDocumentId")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("documentId")); @@ -472,134 +448,91 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ChildDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ChildDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in ChildDocument is not found in the empty JSON string", - ChildDocument.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!ChildDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ChildDocument is not found in the empty JSON string", ChildDocument.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ChildDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `ChildDocument` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ChildDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ChildDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ChildDocument.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ChildDocument.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) && !jsonObj.get("versionId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionId").toString())); + } + if ((jsonObj.get("belongsToDocumentId") != null && !jsonObj.get("belongsToDocumentId").isJsonNull()) && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("belongsToDocumentId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) - && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) - && !jsonObj.get("versionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("versionId").toString())); - } - if ((jsonObj.get("belongsToDocumentId") != null - && !jsonObj.get("belongsToDocumentId").isJsonNull()) - && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("belongsToDocumentId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ChildDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ChildDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(ChildDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ChildDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ChildDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ChildDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ChildDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ChildDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ChildDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ChildDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Classification.java b/src/main/java/com/formkiq/client/model/Classification.java index bc27ff661..8dcff2dcb 100644 --- a/src/main/java/com/formkiq/client/model/Classification.java +++ b/src/main/java/com/formkiq/client/model/Classification.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * Classification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Classification { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -82,7 +73,8 @@ public class Classification { @javax.annotation.Nullable private SchemaAttributes attributes; - public Classification() {} + public Classification() { + } public Classification name(@javax.annotation.Nullable String name) { this.name = name; @@ -91,7 +83,6 @@ public Classification name(@javax.annotation.Nullable String name) { /** * Name of Classification - * * @return name */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public Classification userId(@javax.annotation.Nullable String userId) { /** * Get userId - * * @return userId */ @javax.annotation.Nullable @@ -131,7 +121,6 @@ public Classification insertedDate(@javax.annotation.Nullable String insertedDat /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -151,7 +140,6 @@ public Classification attributes(@javax.annotation.Nullable SchemaAttributes att /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -174,10 +162,10 @@ public boolean equals(Object o) { return false; } Classification classification = (Classification) o; - return Objects.equals(this.name, classification.name) - && Objects.equals(this.userId, classification.userId) - && Objects.equals(this.insertedDate, classification.insertedDate) - && Objects.equals(this.attributes, classification.attributes); + return Objects.equals(this.name, classification.name) && + Objects.equals(this.userId, classification.userId) && + Objects.equals(this.insertedDate, classification.insertedDate) && + Objects.equals(this.attributes, classification.attributes); } @Override @@ -198,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -213,8 +202,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("name", "userId", "insertedDate", "attributes")); + openapiFields = new HashSet(Arrays.asList("name", "userId", "insertedDate", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -227,75 +215,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Classification */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Classification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Classification is not found in the empty JSON string", - Classification.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Classification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Classification is not found in the empty JSON string", Classification.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Classification.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Classification` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Classification.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Classification` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + SchemaAttributes.validateJsonElement(jsonObj.get("attributes")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - SchemaAttributes.validateJsonElement(jsonObj.get("attributes")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Classification.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Classification' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Classification.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Classification value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Classification read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Classification.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Classification' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Classification.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Classification value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Classification read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ClassificationSummary.java b/src/main/java/com/formkiq/client/model/ClassificationSummary.java index 43f2a46d6..3a9c3a264 100644 --- a/src/main/java/com/formkiq/client/model/ClassificationSummary.java +++ b/src/main/java/com/formkiq/client/model/ClassificationSummary.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * ClassificationSummary */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ClassificationSummary { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION_ID) @@ -81,17 +72,16 @@ public class ClassificationSummary { @javax.annotation.Nullable private String insertedDate; - public ClassificationSummary() {} + public ClassificationSummary() { + } - public ClassificationSummary classificationId( - @javax.annotation.Nullable String classificationId) { + public ClassificationSummary classificationId(@javax.annotation.Nullable String classificationId) { this.classificationId = classificationId; return this; } /** * Classification Identifier - * * @return classificationId */ @javax.annotation.Nullable @@ -111,7 +101,6 @@ public ClassificationSummary name(@javax.annotation.Nullable String name) { /** * Name of Classification - * * @return name */ @javax.annotation.Nullable @@ -131,7 +120,6 @@ public ClassificationSummary userId(@javax.annotation.Nullable String userId) { /** * Get userId - * * @return userId */ @javax.annotation.Nullable @@ -151,7 +139,6 @@ public ClassificationSummary insertedDate(@javax.annotation.Nullable String inse /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -174,10 +161,10 @@ public boolean equals(Object o) { return false; } ClassificationSummary classificationSummary = (ClassificationSummary) o; - return Objects.equals(this.classificationId, classificationSummary.classificationId) - && Objects.equals(this.name, classificationSummary.name) - && Objects.equals(this.userId, classificationSummary.userId) - && Objects.equals(this.insertedDate, classificationSummary.insertedDate); + return Objects.equals(this.classificationId, classificationSummary.classificationId) && + Objects.equals(this.name, classificationSummary.name) && + Objects.equals(this.userId, classificationSummary.userId) && + Objects.equals(this.insertedDate, classificationSummary.insertedDate); } @Override @@ -198,7 +185,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -213,8 +201,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("classificationId", "name", "userId", "insertedDate")); + openapiFields = new HashSet(Arrays.asList("classificationId", "name", "userId", "insertedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -227,77 +214,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ClassificationSummary */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ClassificationSummary.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in ClassificationSummary is not found in the empty JSON string", - ClassificationSummary.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!ClassificationSummary.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ClassificationSummary is not found in the empty JSON string", ClassificationSummary.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ClassificationSummary.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `ClassificationSummary` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ClassificationSummary.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ClassificationSummary` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) && !jsonObj.get("classificationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("classificationId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) - && !jsonObj.get("classificationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("classificationId").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ClassificationSummary.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ClassificationSummary' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(ClassificationSummary.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ClassificationSummary value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ClassificationSummary read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ClassificationSummary.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ClassificationSummary' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ClassificationSummary.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ClassificationSummary value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ClassificationSummary read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DataClassification.java b/src/main/java/com/formkiq/client/model/DataClassification.java index a7abbf29c..78aeda248 100644 --- a/src/main/java/com/formkiq/client/model/DataClassification.java +++ b/src/main/java/com/formkiq/client/model/DataClassification.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * DataClassification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DataClassification { public static final String SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME = "llmPromptEntityName"; @SerializedName(SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME) @@ -89,17 +80,16 @@ public class DataClassification { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public DataClassification() {} + public DataClassification() { + } - public DataClassification llmPromptEntityName( - @javax.annotation.Nullable String llmPromptEntityName) { + public DataClassification llmPromptEntityName(@javax.annotation.Nullable String llmPromptEntityName) { this.llmPromptEntityName = llmPromptEntityName; return this; } /** * Name of the LLM Prompt Entity - * * @return llmPromptEntityName */ @javax.annotation.Nullable @@ -119,7 +109,6 @@ public DataClassification insertedDate(@javax.annotation.Nullable String inserte /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -139,7 +128,6 @@ public DataClassification content(@javax.annotation.Nullable String content) { /** * Result content - * * @return content */ @javax.annotation.Nullable @@ -159,7 +147,6 @@ public DataClassification userId(@javax.annotation.Nullable String userId) { /** * UserId that created Result - * * @return userId */ @javax.annotation.Nullable @@ -172,8 +159,7 @@ public void setUserId(@javax.annotation.Nullable String userId) { } - public DataClassification attributes( - @javax.annotation.Nullable List attributes) { + public DataClassification attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -188,7 +174,6 @@ public DataClassification addAttributesItem(DataClassificationAttribute attribut /** * Attributes extracted from result content - * * @return attributes */ @javax.annotation.Nullable @@ -196,8 +181,7 @@ public List getAttributes() { return attributes; } - public void setAttributes( - @javax.annotation.Nullable List attributes) { + public void setAttributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; } @@ -212,11 +196,11 @@ public boolean equals(Object o) { return false; } DataClassification dataClassification = (DataClassification) o; - return Objects.equals(this.llmPromptEntityName, dataClassification.llmPromptEntityName) - && Objects.equals(this.insertedDate, dataClassification.insertedDate) - && Objects.equals(this.content, dataClassification.content) - && Objects.equals(this.userId, dataClassification.userId) - && Objects.equals(this.attributes, dataClassification.attributes); + return Objects.equals(this.llmPromptEntityName, dataClassification.llmPromptEntityName) && + Objects.equals(this.insertedDate, dataClassification.insertedDate) && + Objects.equals(this.content, dataClassification.content) && + Objects.equals(this.userId, dataClassification.userId) && + Objects.equals(this.attributes, dataClassification.attributes); } @Override @@ -228,8 +212,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DataClassification {\n"); - sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)) - .append("\n"); + sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)).append("\n"); sb.append(" insertedDate: ").append(toIndentedString(insertedDate)).append("\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); @@ -239,7 +222,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -254,8 +238,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("llmPromptEntityName", "insertedDate", "content", "userId", "attributes")); + openapiFields = new HashSet(Arrays.asList("llmPromptEntityName", "insertedDate", "content", "userId", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -268,94 +251,74 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DataClassification */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DataClassification.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DataClassification is not found in the empty JSON string", - DataClassification.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DataClassification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DataClassification is not found in the empty JSON string", DataClassification.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DataClassification.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DataClassification` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DataClassification.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DataClassification` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("llmPromptEntityName") != null - && !jsonObj.get("llmPromptEntityName").isJsonNull()) - && !jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("llmPromptEntityName").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) - && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("llmPromptEntityName") != null && !jsonObj.get("llmPromptEntityName").isJsonNull()) && !jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("llmPromptEntityName").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + DataClassificationAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - DataClassificationAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DataClassification.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DataClassification' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DataClassification.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DataClassification value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DataClassification read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DataClassification.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DataClassification' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DataClassification.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DataClassification value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DataClassification read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java b/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java index d69d23fac..83847d2c4 100644 --- a/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java +++ b/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * DataClassificationAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DataClassificationAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -71,7 +62,8 @@ public class DataClassificationAttribute { @javax.annotation.Nullable private String value; - public DataClassificationAttribute() {} + public DataClassificationAttribute() { + } public DataClassificationAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -80,7 +72,6 @@ public DataClassificationAttribute key(@javax.annotation.Nullable String key) { /** * Data Classification Attribute Key - * * @return key */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public DataClassificationAttribute value(@javax.annotation.Nullable String value /** * Data Classification Attribute Value - * * @return value */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } DataClassificationAttribute dataClassificationAttribute = (DataClassificationAttribute) o; - return Objects.equals(this.key, dataClassificationAttribute.key) - && Objects.equals(this.value, dataClassificationAttribute.value); + return Objects.equals(this.key, dataClassificationAttribute.key) && + Objects.equals(this.value, dataClassificationAttribute.value); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DataClassificationAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DataClassificationAttribute.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DataClassificationAttribute is not found in the empty JSON string", - DataClassificationAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DataClassificationAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DataClassificationAttribute is not found in the empty JSON string", DataClassificationAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DataClassificationAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DataClassificationAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DataClassificationAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DataClassificationAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DataClassificationAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DataClassificationAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DataClassificationAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DataClassificationAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DataClassificationAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DataClassificationAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DataClassificationAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DataClassificationAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DataClassificationAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DataClassificationAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java b/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java index 85997f0a1..2458654bd 100644 --- a/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteApiKeyResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteApiKeyResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteApiKeyResponse() {} + public DeleteApiKeyResponse() { + } public DeleteApiKeyResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteApiKeyResponse message(@javax.annotation.Nullable String message) { /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteApiKeyResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteApiKeyResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteApiKeyResponse is not found in the empty JSON string", - DeleteApiKeyResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteApiKeyResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteApiKeyResponse is not found in the empty JSON string", DeleteApiKeyResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteApiKeyResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteApiKeyResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteApiKeyResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteApiKeyResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteApiKeyResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteApiKeyResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteApiKeyResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteApiKeyResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteApiKeyResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteApiKeyResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteApiKeyResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteApiKeyResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteApiKeyResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteApiKeyResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java index b8c1d2a51..5b30d3dcc 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteCaseDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseDocumentResponse() {} + public DeleteCaseDocumentResponse() { + } public DeleteCaseDocumentResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteCaseDocumentResponse message(@javax.annotation.Nullable String mess /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteCaseDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteCaseDocumentResponse is not found in the empty JSON string", - DeleteCaseDocumentResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteCaseDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseDocumentResponse is not found in the empty JSON string", DeleteCaseDocumentResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteCaseDocumentResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java index 2f889aa1e..a58b6d036 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteCaseNigoDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseNigoDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseNigoDocumentResponse() {} + public DeleteCaseNigoDocumentResponse() { + } public DeleteCaseNigoDocumentResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteCaseNigoDocumentResponse message(@javax.annotation.Nullable String /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -97,8 +88,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeleteCaseNigoDocumentResponse deleteCaseNigoDocumentResponse = - (DeleteCaseNigoDocumentResponse) o; + DeleteCaseNigoDocumentResponse deleteCaseNigoDocumentResponse = (DeleteCaseNigoDocumentResponse) o; return Objects.equals(this.message, deleteCaseNigoDocumentResponse.message); } @@ -117,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,64 +133,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * DeleteCaseNigoDocumentResponse + * @throws IOException if the JSON Element is invalid with respect to DeleteCaseNigoDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseNigoDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteCaseNigoDocumentResponse is not found in the empty JSON string", - DeleteCaseNigoDocumentResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteCaseNigoDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseNigoDocumentResponse is not found in the empty JSON string", DeleteCaseNigoDocumentResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseNigoDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteCaseNigoDocumentResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseNigoDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseNigoDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseNigoDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseNigoDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseNigoDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseNigoDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseNigoDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseNigoDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseNigoDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseNigoDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseNigoDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseNigoDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -208,8 +189,7 @@ public DeleteCaseNigoDocumentResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of DeleteCaseNigoDocumentResponse - * @throws IOException if the JSON string is invalid with respect to - * DeleteCaseNigoDocumentResponse + * @throws IOException if the JSON string is invalid with respect to DeleteCaseNigoDocumentResponse */ public static DeleteCaseNigoDocumentResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DeleteCaseNigoDocumentResponse.class); diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java index 9ca033741..dd8308432 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteCaseNigoResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseNigoResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseNigoResponse() {} + public DeleteCaseNigoResponse() { + } public DeleteCaseNigoResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteCaseNigoResponse message(@javax.annotation.Nullable String message) /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteCaseNigoResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteCaseNigoResponse is not found in the empty JSON string", - DeleteCaseNigoResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteCaseNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseNigoResponse is not found in the empty JSON string", DeleteCaseNigoResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseNigoResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteCaseNigoResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseNigoResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseNigoResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseNigoResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseNigoResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseNigoResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseNigoResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseNigoResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseNigoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseNigoResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseNigoResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseNigoResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseNigoResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java index 7dac16a8b..c8706a4ce 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteCaseResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseResponse() {} + public DeleteCaseResponse() { + } public DeleteCaseResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteCaseResponse message(@javax.annotation.Nullable String message) { /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteCaseResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteCaseResponse is not found in the empty JSON string", - DeleteCaseResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseResponse is not found in the empty JSON string", DeleteCaseResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteCaseResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java index 1adfba64d..2486bdd71 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteCaseTaskDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseTaskDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseTaskDocumentResponse() {} + public DeleteCaseTaskDocumentResponse() { + } public DeleteCaseTaskDocumentResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteCaseTaskDocumentResponse message(@javax.annotation.Nullable String /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -97,8 +88,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeleteCaseTaskDocumentResponse deleteCaseTaskDocumentResponse = - (DeleteCaseTaskDocumentResponse) o; + DeleteCaseTaskDocumentResponse deleteCaseTaskDocumentResponse = (DeleteCaseTaskDocumentResponse) o; return Objects.equals(this.message, deleteCaseTaskDocumentResponse.message); } @@ -117,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,64 +133,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * DeleteCaseTaskDocumentResponse + * @throws IOException if the JSON Element is invalid with respect to DeleteCaseTaskDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseTaskDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteCaseTaskDocumentResponse is not found in the empty JSON string", - DeleteCaseTaskDocumentResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteCaseTaskDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseTaskDocumentResponse is not found in the empty JSON string", DeleteCaseTaskDocumentResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseTaskDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteCaseTaskDocumentResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseTaskDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseTaskDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseTaskDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseTaskDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseTaskDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseTaskDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseTaskDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseTaskDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseTaskDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseTaskDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseTaskDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseTaskDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -208,8 +189,7 @@ public DeleteCaseTaskDocumentResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of DeleteCaseTaskDocumentResponse - * @throws IOException if the JSON string is invalid with respect to - * DeleteCaseTaskDocumentResponse + * @throws IOException if the JSON string is invalid with respect to DeleteCaseTaskDocumentResponse */ public static DeleteCaseTaskDocumentResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DeleteCaseTaskDocumentResponse.class); diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java index f25d96804..2abf996aa 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteCaseTaskResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseTaskResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseTaskResponse() {} + public DeleteCaseTaskResponse() { + } public DeleteCaseTaskResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteCaseTaskResponse message(@javax.annotation.Nullable String message) /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteCaseTaskResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteCaseTaskResponse is not found in the empty JSON string", - DeleteCaseTaskResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteCaseTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseTaskResponse is not found in the empty JSON string", DeleteCaseTaskResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseTaskResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteCaseTaskResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseTaskResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseTaskResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseTaskResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseTaskResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseTaskResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseTaskResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseTaskResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseTaskResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseTaskResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseTaskResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseTaskResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseTaskResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java b/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java index 94d57fc26..4c707cee6 100644 --- a/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteFolderResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteFolderResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteFolderResponse() {} + public DeleteFolderResponse() { + } public DeleteFolderResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteFolderResponse message(@javax.annotation.Nullable String message) { /** * API Response message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteFolderResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteFolderResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteFolderResponse is not found in the empty JSON string", - DeleteFolderResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteFolderResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteFolderResponse is not found in the empty JSON string", DeleteFolderResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteFolderResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteFolderResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteFolderResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteFolderResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteFolderResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteFolderResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteFolderResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteFolderResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteFolderResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteFolderResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteFolderResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteFolderResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteFolderResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteFolderResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java b/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java index a74f53a0b..14dac468a 100644 --- a/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteFulltextResponse() {} + public DeleteFulltextResponse() { + } public DeleteFulltextResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteFulltextResponse message(@javax.annotation.Nullable String message) /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteFulltextResponse is not found in the empty JSON string", - DeleteFulltextResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteFulltextResponse is not found in the empty JSON string", DeleteFulltextResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteFulltextResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java b/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java index 208fb8854..40d26390a 100644 --- a/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteIndicesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteIndicesResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteIndicesResponse() {} + public DeleteIndicesResponse() { + } public DeleteIndicesResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteIndicesResponse message(@javax.annotation.Nullable String message) /** * response message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteIndicesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteIndicesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteIndicesResponse is not found in the empty JSON string", - DeleteIndicesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteIndicesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteIndicesResponse is not found in the empty JSON string", DeleteIndicesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteIndicesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteIndicesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteIndicesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteIndicesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteIndicesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteIndicesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteIndicesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteIndicesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteIndicesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteIndicesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteIndicesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteIndicesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteIndicesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteIndicesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java b/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java index 64e997978..95b2bafd2 100644 --- a/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteQueueResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteQueueResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteQueueResponse() {} + public DeleteQueueResponse() { + } public DeleteQueueResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteQueueResponse message(@javax.annotation.Nullable String message) { /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteQueueResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteQueueResponse is not found in the empty JSON string", - DeleteQueueResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteQueueResponse is not found in the empty JSON string", DeleteQueueResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteQueueResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteQueueResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteQueueResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteQueueResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteQueueResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteQueueResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteQueueResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteQueueResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteQueueResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteQueueResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteQueueResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteQueueResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteQueueResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteQueueResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteResponse.java b/src/main/java/com/formkiq/client/model/DeleteResponse.java index 3fe551643..a6e3af602 100644 --- a/src/main/java/com/formkiq/client/model/DeleteResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteResponse() {} + public DeleteResponse() { + } public DeleteResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteResponse message(@javax.annotation.Nullable String message) { /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteResponse is not found in the empty JSON string", - DeleteResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteResponse is not found in the empty JSON string", DeleteResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java b/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java index 9d66baa4e..6bfb0164f 100644 --- a/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteRuleResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteRuleResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteRuleResponse() {} + public DeleteRuleResponse() { + } public DeleteRuleResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteRuleResponse message(@javax.annotation.Nullable String message) { /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteRuleResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteRuleResponse is not found in the empty JSON string", - DeleteRuleResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteRuleResponse is not found in the empty JSON string", DeleteRuleResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteRuleResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteRuleResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteRuleResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteRuleResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteRuleResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteRuleResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteRuleResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteRuleResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteRuleResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteRuleResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteRuleResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteRuleResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteRuleResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteRuleResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java b/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java index 4396539fd..335673e9e 100644 --- a/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteRulesetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteRulesetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteRulesetResponse() {} + public DeleteRulesetResponse() { + } public DeleteRulesetResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteRulesetResponse message(@javax.annotation.Nullable String message) /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteRulesetResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteRulesetResponse is not found in the empty JSON string", - DeleteRulesetResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteRulesetResponse is not found in the empty JSON string", DeleteRulesetResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteRulesetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteRulesetResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteRulesetResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteRulesetResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteRulesetResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteRulesetResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteRulesetResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteRulesetResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteRulesetResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteRulesetResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteRulesetResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteRulesetResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteRulesetResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteRulesetResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteShareResponse.java b/src/main/java/com/formkiq/client/model/DeleteShareResponse.java index 502b1da97..05156508f 100644 --- a/src/main/java/com/formkiq/client/model/DeleteShareResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteShareResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteShareResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteShareResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteShareResponse() {} + public DeleteShareResponse() { + } public DeleteShareResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteShareResponse message(@javax.annotation.Nullable String message) { /** * API Response message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteShareResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteShareResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteShareResponse is not found in the empty JSON string", - DeleteShareResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteShareResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteShareResponse is not found in the empty JSON string", DeleteShareResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteShareResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteShareResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteShareResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteShareResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteShareResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteShareResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteShareResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteShareResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteShareResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteShareResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteShareResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteShareResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteShareResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteShareResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java b/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java index aaa2202b1..719d8e8d6 100644 --- a/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DeleteWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteWorkflowResponse() {} + public DeleteWorkflowResponse() { + } public DeleteWorkflowResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public DeleteWorkflowResponse message(@javax.annotation.Nullable String message) /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DeleteWorkflowResponse is not found in the empty JSON string", - DeleteWorkflowResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DeleteWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteWorkflowResponse is not found in the empty JSON string", DeleteWorkflowResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DeleteWorkflowResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DeleteWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DeleteWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Document.java b/src/main/java/com/formkiq/client/model/Document.java index 0e1b56d73..4cf447cfd 100644 --- a/src/main/java/com/formkiq/client/model/Document.java +++ b/src/main/java/com/formkiq/client/model/Document.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * Document */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Document { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -155,7 +146,8 @@ public class Document { @javax.annotation.Nullable private List metadata = new ArrayList<>(); - public Document() {} + public Document() { + } public Document siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -164,7 +156,6 @@ public Document siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -184,7 +175,6 @@ public Document path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -204,7 +194,6 @@ public Document width(@javax.annotation.Nullable String width) { /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -224,7 +213,6 @@ public Document height(@javax.annotation.Nullable String height) { /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -244,7 +232,6 @@ public Document deepLinkPath(@javax.annotation.Nullable String deepLinkPath) { /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -264,7 +251,6 @@ public Document insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -284,7 +270,6 @@ public Document lastModifiedDate(@javax.annotation.Nullable String lastModifiedD /** * Last Modified Timestamp - * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -304,7 +289,6 @@ public Document checksum(@javax.annotation.Nullable String checksum) { /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -324,7 +308,6 @@ public Document checksumType(@javax.annotation.Nullable ChecksumType checksumTyp /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -344,7 +327,6 @@ public Document documentId(@javax.annotation.Nullable String documentId) { /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -364,7 +346,6 @@ public Document contentType(@javax.annotation.Nullable String contentType) { /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -384,7 +365,6 @@ public Document userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -404,7 +384,6 @@ public Document contentLength(@javax.annotation.Nullable Integer contentLength) /** * Document size - * * @return contentLength */ @javax.annotation.Nullable @@ -424,7 +403,6 @@ public Document version(@javax.annotation.Nullable String version) { /** * Document version - * * @return version */ @javax.annotation.Nullable @@ -444,7 +422,6 @@ public Document versionKey(@javax.annotation.Nullable String versionKey) { /** * Document Version Identifier - * * @return versionKey */ @javax.annotation.Nullable @@ -464,7 +441,6 @@ public Document s3version(@javax.annotation.Nullable String s3version) { /** * Document storage version - * * @return s3version */ @javax.annotation.Nullable @@ -484,7 +460,6 @@ public Document belongsToDocumentId(@javax.annotation.Nullable String belongsToD /** * Parent Document Identifier - * * @return belongsToDocumentId */ @javax.annotation.Nullable @@ -512,7 +487,6 @@ public Document addMetadataItem(DocumentMetadata metadataItem) { /** * List of document Metadata - * * @return metadata */ @javax.annotation.Nullable @@ -535,30 +509,29 @@ public boolean equals(Object o) { return false; } Document document = (Document) o; - return Objects.equals(this.siteId, document.siteId) && Objects.equals(this.path, document.path) - && Objects.equals(this.width, document.width) - && Objects.equals(this.height, document.height) - && Objects.equals(this.deepLinkPath, document.deepLinkPath) - && Objects.equals(this.insertedDate, document.insertedDate) - && Objects.equals(this.lastModifiedDate, document.lastModifiedDate) - && Objects.equals(this.checksum, document.checksum) - && Objects.equals(this.checksumType, document.checksumType) - && Objects.equals(this.documentId, document.documentId) - && Objects.equals(this.contentType, document.contentType) - && Objects.equals(this.userId, document.userId) - && Objects.equals(this.contentLength, document.contentLength) - && Objects.equals(this.version, document.version) - && Objects.equals(this.versionKey, document.versionKey) - && Objects.equals(this.s3version, document.s3version) - && Objects.equals(this.belongsToDocumentId, document.belongsToDocumentId) - && Objects.equals(this.metadata, document.metadata); + return Objects.equals(this.siteId, document.siteId) && + Objects.equals(this.path, document.path) && + Objects.equals(this.width, document.width) && + Objects.equals(this.height, document.height) && + Objects.equals(this.deepLinkPath, document.deepLinkPath) && + Objects.equals(this.insertedDate, document.insertedDate) && + Objects.equals(this.lastModifiedDate, document.lastModifiedDate) && + Objects.equals(this.checksum, document.checksum) && + Objects.equals(this.checksumType, document.checksumType) && + Objects.equals(this.documentId, document.documentId) && + Objects.equals(this.contentType, document.contentType) && + Objects.equals(this.userId, document.userId) && + Objects.equals(this.contentLength, document.contentLength) && + Objects.equals(this.version, document.version) && + Objects.equals(this.versionKey, document.versionKey) && + Objects.equals(this.s3version, document.s3version) && + Objects.equals(this.belongsToDocumentId, document.belongsToDocumentId) && + Objects.equals(this.metadata, document.metadata); } @Override public int hashCode() { - return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, - checksum, checksumType, documentId, contentType, userId, contentLength, version, versionKey, - s3version, belongsToDocumentId, metadata); + return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, checksum, checksumType, documentId, contentType, userId, contentLength, version, versionKey, s3version, belongsToDocumentId, metadata); } @Override @@ -581,15 +554,15 @@ public String toString() { sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionKey: ").append(toIndentedString(versionKey)).append("\n"); sb.append(" s3version: ").append(toIndentedString(s3version)).append("\n"); - sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)) - .append("\n"); + sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -604,10 +577,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "path", "width", "height", - "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "checksumType", - "documentId", "contentType", "userId", "contentLength", "version", "versionKey", - "s3version", "belongsToDocumentId", "metadata")); + openapiFields = new HashSet(Arrays.asList("siteId", "path", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "checksumType", "documentId", "contentType", "userId", "contentLength", "version", "versionKey", "s3version", "belongsToDocumentId", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -620,164 +590,111 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Document */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Document.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Document is not found in the empty JSON string", - Document.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Document.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Document is not found in the empty JSON string", Document.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Document.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Document` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Document.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Document` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) - && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) - && !jsonObj.get("version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `version` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("version").toString())); - } - if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) - && !jsonObj.get("versionKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("versionKey").toString())); - } - if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) - && !jsonObj.get("s3version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("s3version").toString())); - } - if ((jsonObj.get("belongsToDocumentId") != null - && !jsonObj.get("belongsToDocumentId").isJsonNull()) - && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("belongsToDocumentId").toString())); - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `metadata` to be an array in the JSON string but got `%s`", - jsonObj.get("metadata").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + } + if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) && !jsonObj.get("versionKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionKey").toString())); + } + if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) && !jsonObj.get("s3version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("s3version").toString())); + } + if ((jsonObj.get("belongsToDocumentId") != null && !jsonObj.get("belongsToDocumentId").isJsonNull()) && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("belongsToDocumentId").toString())); + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + }; } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Document.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Document' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Document.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Document value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Document read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Document.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Document' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Document.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Document value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Document read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentAction.java b/src/main/java/com/formkiq/client/model/DocumentAction.java index 5dc2c9304..b492837c9 100644 --- a/src/main/java/com/formkiq/client/model/DocumentAction.java +++ b/src/main/java/com/formkiq/client/model/DocumentAction.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * DocumentAction */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentAction { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -136,7 +127,8 @@ public class DocumentAction { @javax.annotation.Nullable private Map metadata = new HashMap<>(); - public DocumentAction() {} + public DocumentAction() { + } public DocumentAction status(@javax.annotation.Nullable DocumentActionStatus status) { this.status = status; @@ -145,7 +137,6 @@ public DocumentAction status(@javax.annotation.Nullable DocumentActionStatus sta /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -165,7 +156,6 @@ public DocumentAction type(@javax.annotation.Nullable DocumentActionType type) { /** * Get type - * * @return type */ @javax.annotation.Nullable @@ -185,7 +175,6 @@ public DocumentAction retryCount(@javax.annotation.Nullable BigDecimal retryCoun /** * The number of times this action has already been attempted - * * @return retryCount */ @javax.annotation.Nullable @@ -205,7 +194,6 @@ public DocumentAction maxRetries(@javax.annotation.Nullable BigDecimal maxRetrie /** * The maximum number of retry attempts allowed for this action - * * @return maxRetries */ @javax.annotation.Nullable @@ -225,7 +213,6 @@ public DocumentAction queueId(@javax.annotation.Nullable String queueId) { /** * Queue Id - * * @return queueId */ @javax.annotation.Nullable @@ -245,7 +232,6 @@ public DocumentAction workflowId(@javax.annotation.Nullable String workflowId) { /** * Workflow Id - * * @return workflowId */ @javax.annotation.Nullable @@ -265,7 +251,6 @@ public DocumentAction workflowStepId(@javax.annotation.Nullable String workflowS /** * Workflow Step Id - * * @return workflowStepId */ @javax.annotation.Nullable @@ -285,7 +270,6 @@ public DocumentAction message(@javax.annotation.Nullable String message) { /** * Action message information - * * @return message */ @javax.annotation.Nullable @@ -305,7 +289,6 @@ public DocumentAction userId(@javax.annotation.Nullable String userId) { /** * User who requested the Action - * * @return userId */ @javax.annotation.Nullable @@ -325,7 +308,6 @@ public DocumentAction insertedDate(@javax.annotation.Nullable String insertedDat /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -345,7 +327,6 @@ public DocumentAction startDate(@javax.annotation.Nullable String startDate) { /** * Started Timestamp - * * @return startDate */ @javax.annotation.Nullable @@ -365,7 +346,6 @@ public DocumentAction completedDate(@javax.annotation.Nullable String completedD /** * Completed Timestamp - * * @return completedDate */ @javax.annotation.Nullable @@ -393,7 +373,6 @@ public DocumentAction putParametersItem(String key, Object parametersItem) { /** * Action parameters - * * @return parameters */ @javax.annotation.Nullable @@ -421,7 +400,6 @@ public DocumentAction putMetadataItem(String key, String metadataItem) { /** * Action metadata - * * @return metadata */ @javax.annotation.Nullable @@ -444,26 +422,25 @@ public boolean equals(Object o) { return false; } DocumentAction documentAction = (DocumentAction) o; - return Objects.equals(this.status, documentAction.status) - && Objects.equals(this.type, documentAction.type) - && Objects.equals(this.retryCount, documentAction.retryCount) - && Objects.equals(this.maxRetries, documentAction.maxRetries) - && Objects.equals(this.queueId, documentAction.queueId) - && Objects.equals(this.workflowId, documentAction.workflowId) - && Objects.equals(this.workflowStepId, documentAction.workflowStepId) - && Objects.equals(this.message, documentAction.message) - && Objects.equals(this.userId, documentAction.userId) - && Objects.equals(this.insertedDate, documentAction.insertedDate) - && Objects.equals(this.startDate, documentAction.startDate) - && Objects.equals(this.completedDate, documentAction.completedDate) - && Objects.equals(this.parameters, documentAction.parameters) - && Objects.equals(this.metadata, documentAction.metadata); + return Objects.equals(this.status, documentAction.status) && + Objects.equals(this.type, documentAction.type) && + Objects.equals(this.retryCount, documentAction.retryCount) && + Objects.equals(this.maxRetries, documentAction.maxRetries) && + Objects.equals(this.queueId, documentAction.queueId) && + Objects.equals(this.workflowId, documentAction.workflowId) && + Objects.equals(this.workflowStepId, documentAction.workflowStepId) && + Objects.equals(this.message, documentAction.message) && + Objects.equals(this.userId, documentAction.userId) && + Objects.equals(this.insertedDate, documentAction.insertedDate) && + Objects.equals(this.startDate, documentAction.startDate) && + Objects.equals(this.completedDate, documentAction.completedDate) && + Objects.equals(this.parameters, documentAction.parameters) && + Objects.equals(this.metadata, documentAction.metadata); } @Override public int hashCode() { - return Objects.hash(status, type, retryCount, maxRetries, queueId, workflowId, workflowStepId, - message, userId, insertedDate, startDate, completedDate, parameters, metadata); + return Objects.hash(status, type, retryCount, maxRetries, queueId, workflowId, workflowStepId, message, userId, insertedDate, startDate, completedDate, parameters, metadata); } @Override @@ -489,7 +466,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -504,9 +482,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "type", "retryCount", "maxRetries", - "queueId", "workflowId", "workflowStepId", "message", "userId", "insertedDate", "startDate", - "completedDate", "parameters", "metadata")); + openapiFields = new HashSet(Arrays.asList("status", "type", "retryCount", "maxRetries", "queueId", "workflowId", "workflowStepId", "message", "userId", "insertedDate", "startDate", "completedDate", "parameters", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -519,109 +495,80 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentAction */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentAction is not found in the empty JSON string", - DocumentAction.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentAction is not found in the empty JSON string", DocumentAction.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentAction.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentAction` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentAction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentAction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + DocumentActionStatus.validateJsonElement(jsonObj.get("status")); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + DocumentActionType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) && !jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); + } + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); + } + if ((jsonObj.get("workflowStepId") != null && !jsonObj.get("workflowStepId").isJsonNull()) && !jsonObj.get("workflowStepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowStepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowStepId").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("completedDate") != null && !jsonObj.get("completedDate").isJsonNull()) && !jsonObj.get("completedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `completedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("completedDate").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - DocumentActionStatus.validateJsonElement(jsonObj.get("status")); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - DocumentActionType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) - && !jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("queueId").toString())); - } - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) - && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workflowId").toString())); - } - if ((jsonObj.get("workflowStepId") != null && !jsonObj.get("workflowStepId").isJsonNull()) - && !jsonObj.get("workflowStepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflowStepId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workflowStepId").toString())); - } - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) - && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("completedDate") != null && !jsonObj.get("completedDate").isJsonNull()) - && !jsonObj.get("completedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `completedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("completedDate").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentAction.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentAction' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentAction.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentAction value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentAction read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentAction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentAction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentAction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentAction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentAction read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentActionStatus.java b/src/main/java/com/formkiq/client/model/DocumentActionStatus.java index d4d99dea4..6ce216f31 100644 --- a/src/main/java/com/formkiq/client/model/DocumentActionStatus.java +++ b/src/main/java/com/formkiq/client/model/DocumentActionStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,23 +30,23 @@ */ @JsonAdapter(DocumentActionStatus.Adapter.class) public enum DocumentActionStatus { - + COMPLETE("COMPLETE"), - + FAILED("FAILED"), - + IN_QUEUE("IN_QUEUE"), - + PENDING("PENDING"), - + RUNNING("RUNNING"), - + SKIPPED("SKIPPED"), - + FAILED_RETRY("FAILED_RETRY"), - + MAX_RETRIES_REACHED("MAX_RETRIES_REACHED"), - + WAITING_FOR_RETRY("WAITING_FOR_RETRY"); private String value; @@ -82,8 +75,7 @@ public static DocumentActionStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentActionStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentActionStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentActionType.java b/src/main/java/com/formkiq/client/model/DocumentActionType.java index 4cae89888..0580756b3 100644 --- a/src/main/java/com/formkiq/client/model/DocumentActionType.java +++ b/src/main/java/com/formkiq/client/model/DocumentActionType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,33 +30,33 @@ */ @JsonAdapter(DocumentActionType.Adapter.class) public enum DocumentActionType { - + ANTIVIRUS("ANTIVIRUS"), - + DOCUMENTTAGGING("DOCUMENTTAGGING"), - + FULLTEXT("FULLTEXT"), - + NOTIFICATION("NOTIFICATION"), - + OCR("OCR"), - + QUEUE("QUEUE"), - + WEBHOOK("WEBHOOK"), - + IDP("IDP"), - + PUBLISH("PUBLISH"), - + PDFEXPORT("PDFEXPORT"), - + EVENTBRIDGE("EVENTBRIDGE"), - + RESIZE("RESIZE"), - + DATA_CLASSIFICATION("DATA_CLASSIFICATION"), - + MALWARE_SCAN("MALWARE_SCAN"); private String value; @@ -92,8 +85,7 @@ public static DocumentActionType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentActionType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentActionType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentAttribute.java b/src/main/java/com/formkiq/client/model/DocumentAttribute.java index b35115d81..e4f5b1b5d 100644 --- a/src/main/java/com/formkiq/client/model/DocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * DocumentAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -110,7 +101,8 @@ public class DocumentAttribute { @javax.annotation.Nullable private AttributeValueType valueType; - public DocumentAttribute() {} + public DocumentAttribute() { + } public DocumentAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -119,7 +111,6 @@ public DocumentAttribute key(@javax.annotation.Nullable String key) { /** * Attribute key - * * @return key */ @javax.annotation.Nullable @@ -139,7 +130,6 @@ public DocumentAttribute stringValue(@javax.annotation.Nullable String stringVal /** * Attribute with string value - * * @return stringValue */ @javax.annotation.Nullable @@ -167,7 +157,6 @@ public DocumentAttribute addStringValuesItem(String stringValuesItem) { /** * Attribute with string values - * * @return stringValues */ @javax.annotation.Nullable @@ -187,7 +176,6 @@ public DocumentAttribute numberValue(@javax.annotation.Nullable BigDecimal numbe /** * Attribute with number value - * * @return numberValue */ @javax.annotation.Nullable @@ -215,7 +203,6 @@ public DocumentAttribute addNumberValuesItem(BigDecimal numberValuesItem) { /** * Attribute with number values - * * @return numberValues */ @javax.annotation.Nullable @@ -235,7 +222,6 @@ public DocumentAttribute booleanValue(@javax.annotation.Nullable Boolean boolean /** * Attribute with boolean value - * * @return booleanValue */ @javax.annotation.Nullable @@ -255,7 +241,6 @@ public DocumentAttribute insertedDate(@javax.annotation.Nullable String inserted /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -275,7 +260,6 @@ public DocumentAttribute userId(@javax.annotation.Nullable String userId) { /** * User who added attribute - * * @return userId */ @javax.annotation.Nullable @@ -295,7 +279,6 @@ public DocumentAttribute valueType(@javax.annotation.Nullable AttributeValueType /** * Get valueType - * * @return valueType */ @javax.annotation.Nullable @@ -318,21 +301,20 @@ public boolean equals(Object o) { return false; } DocumentAttribute documentAttribute = (DocumentAttribute) o; - return Objects.equals(this.key, documentAttribute.key) - && Objects.equals(this.stringValue, documentAttribute.stringValue) - && Objects.equals(this.stringValues, documentAttribute.stringValues) - && Objects.equals(this.numberValue, documentAttribute.numberValue) - && Objects.equals(this.numberValues, documentAttribute.numberValues) - && Objects.equals(this.booleanValue, documentAttribute.booleanValue) - && Objects.equals(this.insertedDate, documentAttribute.insertedDate) - && Objects.equals(this.userId, documentAttribute.userId) - && Objects.equals(this.valueType, documentAttribute.valueType); + return Objects.equals(this.key, documentAttribute.key) && + Objects.equals(this.stringValue, documentAttribute.stringValue) && + Objects.equals(this.stringValues, documentAttribute.stringValues) && + Objects.equals(this.numberValue, documentAttribute.numberValue) && + Objects.equals(this.numberValues, documentAttribute.numberValues) && + Objects.equals(this.booleanValue, documentAttribute.booleanValue) && + Objects.equals(this.insertedDate, documentAttribute.insertedDate) && + Objects.equals(this.userId, documentAttribute.userId) && + Objects.equals(this.valueType, documentAttribute.valueType); } @Override public int hashCode() { - return Objects.hash(key, stringValue, stringValues, numberValue, numberValues, booleanValue, - insertedDate, userId, valueType); + return Objects.hash(key, stringValue, stringValues, numberValue, numberValues, booleanValue, insertedDate, userId, valueType); } @Override @@ -353,7 +335,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -368,8 +351,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", - "numberValue", "numberValues", "booleanValue", "insertedDate", "userId", "valueType")); + openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", "numberValue", "numberValues", "booleanValue", "insertedDate", "userId", "valueType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -382,95 +364,72 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentAttribute is not found in the empty JSON string", - DocumentAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentAttribute is not found in the empty JSON string", DocumentAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + // validate the optional field `valueType` + if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { + AttributeValueType.validateJsonElement(jsonObj.get("valueType")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) - && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stringValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() - && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValues` to be an array in the JSON string but got `%s`", - jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() - && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberValues` to be an array in the JSON string but got `%s`", - jsonObj.get("numberValues").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - // validate the optional field `valueType` - if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { - AttributeValueType.validateJsonElement(jsonObj.get("valueType")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java b/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java index 62969687f..fec6ee373 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * DocumentFulltextAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextAttribute { public static final String SERIALIZED_NAME_EQ = "eq"; @SerializedName(SERIALIZED_NAME_EQ) @@ -79,7 +70,8 @@ public class DocumentFulltextAttribute { @javax.annotation.Nonnull private String key; - public DocumentFulltextAttribute() {} + public DocumentFulltextAttribute() { + } public DocumentFulltextAttribute eq(@javax.annotation.Nullable DocumentFulltextAttributeEq eq) { this.eq = eq; @@ -88,7 +80,6 @@ public DocumentFulltextAttribute eq(@javax.annotation.Nullable DocumentFulltextA /** * Get eq - * * @return eq */ @javax.annotation.Nullable @@ -101,8 +92,7 @@ public void setEq(@javax.annotation.Nullable DocumentFulltextAttributeEq eq) { } - public DocumentFulltextAttribute eqOr( - @javax.annotation.Nullable List eqOr) { + public DocumentFulltextAttribute eqOr(@javax.annotation.Nullable List eqOr) { this.eqOr = eqOr; return this; } @@ -117,7 +107,6 @@ public DocumentFulltextAttribute addEqOrItem(DocumentFulltextAttributeEq eqOrIte /** * Searches for ANY strings that eq - * * @return eqOr */ @javax.annotation.Nullable @@ -137,7 +126,6 @@ public DocumentFulltextAttribute key(@javax.annotation.Nonnull String key) { /** * Tag key to search - * * @return key */ @javax.annotation.Nonnull @@ -160,9 +148,9 @@ public boolean equals(Object o) { return false; } DocumentFulltextAttribute documentFulltextAttribute = (DocumentFulltextAttribute) o; - return Objects.equals(this.eq, documentFulltextAttribute.eq) - && Objects.equals(this.eqOr, documentFulltextAttribute.eqOr) - && Objects.equals(this.key, documentFulltextAttribute.key); + return Objects.equals(this.eq, documentFulltextAttribute.eq) && + Objects.equals(this.eqOr, documentFulltextAttribute.eqOr) && + Objects.equals(this.key, documentFulltextAttribute.key); } @Override @@ -182,7 +170,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -210,87 +199,76 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextAttribute.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentFulltextAttribute is not found in the empty JSON string", - DocumentFulltextAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentFulltextAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextAttribute is not found in the empty JSON string", DocumentFulltextAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentFulltextAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentFulltextAttribute.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentFulltextAttribute.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `eq` - if (jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) { - DocumentFulltextAttributeEq.validateJsonElement(jsonObj.get("eq")); - } - if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull()) { - JsonArray jsonArrayeqOr = jsonObj.getAsJsonArray("eqOr"); - if (jsonArrayeqOr != null) { - // ensure the json data is an array - if (!jsonObj.get("eqOr").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eqOr` to be an array in the JSON string but got `%s`", - jsonObj.get("eqOr").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `eq` + if (jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) { + DocumentFulltextAttributeEq.validateJsonElement(jsonObj.get("eq")); + } + if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull()) { + JsonArray jsonArrayeqOr = jsonObj.getAsJsonArray("eqOr"); + if (jsonArrayeqOr != null) { + // ensure the json data is an array + if (!jsonObj.get("eqOr").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eqOr` to be an array in the JSON string but got `%s`", jsonObj.get("eqOr").toString())); + } + + // validate the optional field `eqOr` (array) + for (int i = 0; i < jsonArrayeqOr.size(); i++) { + DocumentFulltextAttributeEq.validateJsonElement(jsonArrayeqOr.get(i)); + }; } - - // validate the optional field `eqOr` (array) - for (int i = 0; i < jsonArrayeqOr.size(); i++) { - DocumentFulltextAttributeEq.validateJsonElement(jsonArrayeqOr.get(i)); - } ; } - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java b/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java index df6695988..4ea9f2ebc 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * DocumentFulltextAttributeEq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextAttributeEq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; @SerializedName(SERIALIZED_NAME_STRING_VALUE) @@ -77,7 +68,8 @@ public class DocumentFulltextAttributeEq { @javax.annotation.Nullable private Boolean booleanValue; - public DocumentFulltextAttributeEq() {} + public DocumentFulltextAttributeEq() { + } public DocumentFulltextAttributeEq stringValue(@javax.annotation.Nullable String stringValue) { this.stringValue = stringValue; @@ -86,7 +78,6 @@ public DocumentFulltextAttributeEq stringValue(@javax.annotation.Nullable String /** * Search for string value - * * @return stringValue */ @javax.annotation.Nullable @@ -99,15 +90,13 @@ public void setStringValue(@javax.annotation.Nullable String stringValue) { } - public DocumentFulltextAttributeEq numberValue( - @javax.annotation.Nullable BigDecimal numberValue) { + public DocumentFulltextAttributeEq numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; return this; } /** * Search for number value - * * @return numberValue */ @javax.annotation.Nullable @@ -127,7 +116,6 @@ public DocumentFulltextAttributeEq booleanValue(@javax.annotation.Nullable Boole /** * Search for boolean value - * * @return booleanValue */ @javax.annotation.Nullable @@ -150,9 +138,9 @@ public boolean equals(Object o) { return false; } DocumentFulltextAttributeEq documentFulltextAttributeEq = (DocumentFulltextAttributeEq) o; - return Objects.equals(this.stringValue, documentFulltextAttributeEq.stringValue) - && Objects.equals(this.numberValue, documentFulltextAttributeEq.numberValue) - && Objects.equals(this.booleanValue, documentFulltextAttributeEq.booleanValue); + return Objects.equals(this.stringValue, documentFulltextAttributeEq.stringValue) && + Objects.equals(this.numberValue, documentFulltextAttributeEq.numberValue) && + Objects.equals(this.booleanValue, documentFulltextAttributeEq.booleanValue); } @Override @@ -172,7 +160,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -187,8 +176,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("stringValue", "numberValue", "booleanValue")); + openapiFields = new HashSet(Arrays.asList("stringValue", "numberValue", "booleanValue")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -201,59 +189,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextAttributeEq */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextAttributeEq.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentFulltextAttributeEq is not found in the empty JSON string", - DocumentFulltextAttributeEq.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentFulltextAttributeEq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextAttributeEq is not found in the empty JSON string", DocumentFulltextAttributeEq.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextAttributeEq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentFulltextAttributeEq` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextAttributeEq.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextAttributeEq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) - && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stringValue").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextAttributeEq.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextAttributeEq' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextAttributeEq.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextAttributeEq value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextAttributeEq read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextAttributeEq.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextAttributeEq' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextAttributeEq.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextAttributeEq value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextAttributeEq read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java index e08f96267..bd9524802 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * Document full text search */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextRequest { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) @@ -73,7 +64,8 @@ public class DocumentFulltextRequest { @javax.annotation.Nullable private SearchResponseFields responseFields; - public DocumentFulltextRequest() {} + public DocumentFulltextRequest() { + } public DocumentFulltextRequest query(@javax.annotation.Nonnull DocumentFulltextSearch query) { this.query = query; @@ -82,7 +74,6 @@ public DocumentFulltextRequest query(@javax.annotation.Nonnull DocumentFulltextS /** * Get query - * * @return query */ @javax.annotation.Nonnull @@ -95,15 +86,13 @@ public void setQuery(@javax.annotation.Nonnull DocumentFulltextSearch query) { } - public DocumentFulltextRequest responseFields( - @javax.annotation.Nullable SearchResponseFields responseFields) { + public DocumentFulltextRequest responseFields(@javax.annotation.Nullable SearchResponseFields responseFields) { this.responseFields = responseFields; return this; } /** * Get responseFields - * * @return responseFields */ @javax.annotation.Nullable @@ -126,8 +115,8 @@ public boolean equals(Object o) { return false; } DocumentFulltextRequest documentFulltextRequest = (DocumentFulltextRequest) o; - return Objects.equals(this.query, documentFulltextRequest.query) - && Objects.equals(this.responseFields, documentFulltextRequest.responseFields); + return Objects.equals(this.query, documentFulltextRequest.query) && + Objects.equals(this.responseFields, documentFulltextRequest.responseFields); } @Override @@ -146,7 +135,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -174,68 +164,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentFulltextRequest is not found in the empty JSON string", - DocumentFulltextRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextRequest is not found in the empty JSON string", DocumentFulltextRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentFulltextRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentFulltextRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentFulltextRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `query` + DocumentFulltextSearch.validateJsonElement(jsonObj.get("query")); + // validate the optional field `responseFields` + if (jsonObj.get("responseFields") != null && !jsonObj.get("responseFields").isJsonNull()) { + SearchResponseFields.validateJsonElement(jsonObj.get("responseFields")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `query` - DocumentFulltextSearch.validateJsonElement(jsonObj.get("query")); - // validate the optional field `responseFields` - if (jsonObj.get("responseFields") != null && !jsonObj.get("responseFields").isJsonNull()) { - SearchResponseFields.validateJsonElement(jsonObj.get("responseFields")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java index ebdd8314a..4355840b3 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * DocumentFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextResponse { public static final String SERIALIZED_NAME_DOCUMENTS = "documents"; @SerializedName(SERIALIZED_NAME_DOCUMENTS) @javax.annotation.Nullable private List documents = new ArrayList<>(); - public DocumentFulltextResponse() {} + public DocumentFulltextResponse() { + } - public DocumentFulltextResponse documents( - @javax.annotation.Nullable List documents) { + public DocumentFulltextResponse documents(@javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -87,7 +78,6 @@ public DocumentFulltextResponse addDocumentsItem(FulltextSearchItem documentsIte /** * List of search result documents - * * @return documents */ @javax.annotation.Nullable @@ -128,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -156,69 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentFulltextResponse is not found in the empty JSON string", - DocumentFulltextResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextResponse is not found in the empty JSON string", DocumentFulltextResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentFulltextResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + FulltextSearchItem.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - FulltextSearchItem.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java b/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java index 94eaadbf3..9634fecc0 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * Document full text search criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextSearch { public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) @@ -85,7 +76,8 @@ public class DocumentFulltextSearch { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public DocumentFulltextSearch() {} + public DocumentFulltextSearch() { + } public DocumentFulltextSearch page(@javax.annotation.Nullable Integer page) { this.page = page; @@ -94,7 +86,6 @@ public DocumentFulltextSearch page(@javax.annotation.Nullable Integer page) { /** * Result page to return (starting at 1) - * * @return page */ @javax.annotation.Nullable @@ -114,7 +105,6 @@ public DocumentFulltextSearch text(@javax.annotation.Nullable String text) { /** * Full text search - * * @return text */ @javax.annotation.Nullable @@ -142,7 +132,6 @@ public DocumentFulltextSearch addTagsItem(DocumentFulltextTag tagsItem) { /** * List of search tags - * * @return tags */ @javax.annotation.Nullable @@ -155,8 +144,7 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public DocumentFulltextSearch attributes( - @javax.annotation.Nullable List attributes) { + public DocumentFulltextSearch attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -171,7 +159,6 @@ public DocumentFulltextSearch addAttributesItem(DocumentFulltextAttribute attrib /** * List of search attributes - * * @return attributes */ @javax.annotation.Nullable @@ -194,10 +181,10 @@ public boolean equals(Object o) { return false; } DocumentFulltextSearch documentFulltextSearch = (DocumentFulltextSearch) o; - return Objects.equals(this.page, documentFulltextSearch.page) - && Objects.equals(this.text, documentFulltextSearch.text) - && Objects.equals(this.tags, documentFulltextSearch.tags) - && Objects.equals(this.attributes, documentFulltextSearch.attributes); + return Objects.equals(this.page, documentFulltextSearch.page) && + Objects.equals(this.text, documentFulltextSearch.text) && + Objects.equals(this.tags, documentFulltextSearch.tags) && + Objects.equals(this.attributes, documentFulltextSearch.attributes); } @Override @@ -218,7 +205,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -246,91 +234,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextSearch */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentFulltextSearch is not found in the empty JSON string", - DocumentFulltextSearch.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentFulltextSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextSearch is not found in the empty JSON string", DocumentFulltextSearch.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextSearch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentFulltextSearch` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextSearch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextSearch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) - && !jsonObj.get("text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `text` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("text").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + DocumentFulltextTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - DocumentFulltextTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + DocumentFulltextAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - DocumentFulltextAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextSearch.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextSearch' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextSearch.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextSearch value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextSearch read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextSearch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextSearch' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextSearch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextSearch value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextSearch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java b/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java index 20272c5c1..4002e2b32 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * DocumentFulltextTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextTag { public static final String SERIALIZED_NAME_EQ = "eq"; @SerializedName(SERIALIZED_NAME_EQ) @@ -78,7 +69,8 @@ public class DocumentFulltextTag { @javax.annotation.Nonnull private String key; - public DocumentFulltextTag() {} + public DocumentFulltextTag() { + } public DocumentFulltextTag eq(@javax.annotation.Nullable String eq) { this.eq = eq; @@ -87,7 +79,6 @@ public DocumentFulltextTag eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq - * * @return eq */ @javax.annotation.Nullable @@ -115,7 +106,6 @@ public DocumentFulltextTag addEqOrItem(String eqOrItem) { /** * Searches for ANY strings that eq - * * @return eqOr */ @javax.annotation.Nullable @@ -135,7 +125,6 @@ public DocumentFulltextTag key(@javax.annotation.Nonnull String key) { /** * Tag key to search - * * @return key */ @javax.annotation.Nonnull @@ -158,9 +147,9 @@ public boolean equals(Object o) { return false; } DocumentFulltextTag documentFulltextTag = (DocumentFulltextTag) o; - return Objects.equals(this.eq, documentFulltextTag.eq) - && Objects.equals(this.eqOr, documentFulltextTag.eqOr) - && Objects.equals(this.key, documentFulltextTag.key); + return Objects.equals(this.eq, documentFulltextTag.eq) && + Objects.equals(this.eqOr, documentFulltextTag.eqOr) && + Objects.equals(this.key, documentFulltextTag.key); } @Override @@ -180,7 +169,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -208,80 +198,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentFulltextTag is not found in the empty JSON string", - DocumentFulltextTag.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentFulltextTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextTag is not found in the empty JSON string", DocumentFulltextTag.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentFulltextTag` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentFulltextTag.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentFulltextTag.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() && !jsonObj.get("eqOr").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eqOr` to be an array in the JSON string but got `%s`", jsonObj.get("eqOr").toString())); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) - && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("eq").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() - && !jsonObj.get("eqOr").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eqOr` to be an array in the JSON string but got `%s`", - jsonObj.get("eqOr").toString())); - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java b/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java index 557037c0c..976b7051d 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * DocumentGenerateDataSource */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentGenerateDataSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -76,7 +67,8 @@ public class DocumentGenerateDataSource { @javax.annotation.Nullable private String dataRoot = "data"; - public DocumentGenerateDataSource() {} + public DocumentGenerateDataSource() { + } public DocumentGenerateDataSource name(@javax.annotation.Nullable String name) { this.name = name; @@ -85,7 +77,6 @@ public DocumentGenerateDataSource name(@javax.annotation.Nullable String name) { /** * The data source name - * * @return name */ @javax.annotation.Nullable @@ -105,7 +96,6 @@ public DocumentGenerateDataSource documentId(@javax.annotation.Nonnull String do /** * Document Identifier of the data source document - * * @return documentId */ @javax.annotation.Nonnull @@ -125,7 +115,6 @@ public DocumentGenerateDataSource dataRoot(@javax.annotation.Nullable String dat /** * The default JSON object path for the data object - * * @return dataRoot */ @javax.annotation.Nullable @@ -148,9 +137,9 @@ public boolean equals(Object o) { return false; } DocumentGenerateDataSource documentGenerateDataSource = (DocumentGenerateDataSource) o; - return Objects.equals(this.name, documentGenerateDataSource.name) - && Objects.equals(this.documentId, documentGenerateDataSource.documentId) - && Objects.equals(this.dataRoot, documentGenerateDataSource.dataRoot); + return Objects.equals(this.name, documentGenerateDataSource.name) && + Objects.equals(this.documentId, documentGenerateDataSource.documentId) && + Objects.equals(this.dataRoot, documentGenerateDataSource.dataRoot); } @Override @@ -170,7 +159,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,79 +188,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentGenerateDataSource */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentGenerateDataSource.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentGenerateDataSource is not found in the empty JSON string", - DocumentGenerateDataSource.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentGenerateDataSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentGenerateDataSource is not found in the empty JSON string", DocumentGenerateDataSource.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentGenerateDataSource.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentGenerateDataSource` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentGenerateDataSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentGenerateDataSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentGenerateDataSource.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentGenerateDataSource.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("dataRoot") != null && !jsonObj.get("dataRoot").isJsonNull()) && !jsonObj.get("dataRoot").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dataRoot` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dataRoot").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("dataRoot") != null && !jsonObj.get("dataRoot").isJsonNull()) - && !jsonObj.get("dataRoot").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dataRoot` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("dataRoot").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentGenerateDataSource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentGenerateDataSource' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentGenerateDataSource.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentGenerateDataSource value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentGenerateDataSource read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentGenerateDataSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentGenerateDataSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentGenerateDataSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentGenerateDataSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentGenerateDataSource read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java index f68976560..b98929f33 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * DocumentGenerateInsertDocument */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentGenerateInsertDocument { public static final String SERIALIZED_NAME_POSITION = "position"; @SerializedName(SERIALIZED_NAME_POSITION) @@ -72,17 +63,16 @@ public class DocumentGenerateInsertDocument { @javax.annotation.Nonnull private String documentId; - public DocumentGenerateInsertDocument() {} + public DocumentGenerateInsertDocument() { + } - public DocumentGenerateInsertDocument position( - @javax.annotation.Nonnull DocumentGenerateInsertDocumentPosition position) { + public DocumentGenerateInsertDocument position(@javax.annotation.Nonnull DocumentGenerateInsertDocumentPosition position) { this.position = position; return this; } /** * Get position - * * @return position */ @javax.annotation.Nonnull @@ -90,8 +80,7 @@ public DocumentGenerateInsertDocumentPosition getPosition() { return position; } - public void setPosition( - @javax.annotation.Nonnull DocumentGenerateInsertDocumentPosition position) { + public void setPosition(@javax.annotation.Nonnull DocumentGenerateInsertDocumentPosition position) { this.position = position; } @@ -103,7 +92,6 @@ public DocumentGenerateInsertDocument documentId(@javax.annotation.Nonnull Strin /** * Document Identifier of the data source document - * * @return documentId */ @javax.annotation.Nonnull @@ -125,10 +113,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DocumentGenerateInsertDocument documentGenerateInsertDocument = - (DocumentGenerateInsertDocument) o; - return Objects.equals(this.position, documentGenerateInsertDocument.position) - && Objects.equals(this.documentId, documentGenerateInsertDocument.documentId); + DocumentGenerateInsertDocument documentGenerateInsertDocument = (DocumentGenerateInsertDocument) o; + return Objects.equals(this.position, documentGenerateInsertDocument.position) && + Objects.equals(this.documentId, documentGenerateInsertDocument.documentId); } @Override @@ -147,7 +134,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,74 +160,63 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * DocumentGenerateInsertDocument + * @throws IOException if the JSON Element is invalid with respect to DocumentGenerateInsertDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentGenerateInsertDocument.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentGenerateInsertDocument is not found in the empty JSON string", - DocumentGenerateInsertDocument.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentGenerateInsertDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentGenerateInsertDocument is not found in the empty JSON string", DocumentGenerateInsertDocument.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentGenerateInsertDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentGenerateInsertDocument` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentGenerateInsertDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentGenerateInsertDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentGenerateInsertDocument.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentGenerateInsertDocument.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `position` + DocumentGenerateInsertDocumentPosition.validateJsonElement(jsonObj.get("position")); + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `position` - DocumentGenerateInsertDocumentPosition.validateJsonElement(jsonObj.get("position")); - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentGenerateInsertDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentGenerateInsertDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentGenerateInsertDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentGenerateInsertDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentGenerateInsertDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentGenerateInsertDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentGenerateInsertDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentGenerateInsertDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentGenerateInsertDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentGenerateInsertDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -248,8 +225,7 @@ public DocumentGenerateInsertDocument read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of DocumentGenerateInsertDocument - * @throws IOException if the JSON string is invalid with respect to - * DocumentGenerateInsertDocument + * @throws IOException if the JSON string is invalid with respect to DocumentGenerateInsertDocument */ public static DocumentGenerateInsertDocument fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DocumentGenerateInsertDocument.class); diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPosition.java b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPosition.java index 36d509ff6..d97ad9d73 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPosition.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPosition.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,7 +30,7 @@ */ @JsonAdapter(DocumentGenerateInsertDocumentPosition.Adapter.class) public enum DocumentGenerateInsertDocumentPosition { - + APPEND("APPEND"); private String value; @@ -56,8 +49,7 @@ public String toString() { } public static DocumentGenerateInsertDocumentPosition fromValue(String value) { - for (DocumentGenerateInsertDocumentPosition b : DocumentGenerateInsertDocumentPosition - .values()) { + for (DocumentGenerateInsertDocumentPosition b : DocumentGenerateInsertDocumentPosition.values()) { if (b.value.equals(value)) { return b; } @@ -67,14 +59,12 @@ public static DocumentGenerateInsertDocumentPosition fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, - final DocumentGenerateInsertDocumentPosition enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentGenerateInsertDocumentPosition enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public DocumentGenerateInsertDocumentPosition read(final JsonReader jsonReader) - throws IOException { + public DocumentGenerateInsertDocumentPosition read(final JsonReader jsonReader) throws IOException { String value = jsonReader.nextString(); return DocumentGenerateInsertDocumentPosition.fromValue(value); } diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateOutputType.java b/src/main/java/com/formkiq/client/model/DocumentGenerateOutputType.java index 23a967388..d8bea849a 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateOutputType.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateOutputType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(DocumentGenerateOutputType.Adapter.class) public enum DocumentGenerateOutputType { - + DOCX("DOCX"), - + PDF("PDF"); private String value; @@ -68,8 +61,7 @@ public static DocumentGenerateOutputType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentGenerateOutputType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentGenerateOutputType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentId.java b/src/main/java/com/formkiq/client/model/DocumentId.java index 0892b89fa..a0cacc715 100644 --- a/src/main/java/com/formkiq/client/model/DocumentId.java +++ b/src/main/java/com/formkiq/client/model/DocumentId.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * DocumentId */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentId { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -71,7 +62,8 @@ public class DocumentId { @javax.annotation.Nullable private String siteId; - public DocumentId() {} + public DocumentId() { + } public DocumentId documentId(@javax.annotation.Nonnull String documentId) { this.documentId = documentId; @@ -80,7 +72,6 @@ public DocumentId documentId(@javax.annotation.Nonnull String documentId) { /** * Document Identifier - * * @return documentId */ @javax.annotation.Nonnull @@ -100,7 +91,6 @@ public DocumentId siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } DocumentId documentId = (DocumentId) o; - return Objects.equals(this.documentId, documentId.documentId) - && Objects.equals(this.siteId, documentId.siteId); + return Objects.equals(this.documentId, documentId.documentId) && + Objects.equals(this.siteId, documentId.siteId); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,73 +162,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentId */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentId.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentId is not found in the empty JSON string", - DocumentId.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentId.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentId is not found in the empty JSON string", DocumentId.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentId.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentId` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentId.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentId` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentId.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentId.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentId.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentId' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentId.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentId value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentId read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentId.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentId' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentId.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentId value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentId read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentMetadata.java b/src/main/java/com/formkiq/client/model/DocumentMetadata.java index f8aa7a4d0..9865b9551 100644 --- a/src/main/java/com/formkiq/client/model/DocumentMetadata.java +++ b/src/main/java/com/formkiq/client/model/DocumentMetadata.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * Document Metadata (use either 'value' or 'values' not both) */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentMetadata { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -78,7 +69,8 @@ public class DocumentMetadata { @javax.annotation.Nullable private List values = new ArrayList<>(); - public DocumentMetadata() {} + public DocumentMetadata() { + } public DocumentMetadata key(@javax.annotation.Nullable String key) { this.key = key; @@ -87,7 +79,6 @@ public DocumentMetadata key(@javax.annotation.Nullable String key) { /** * Metadata key - * * @return key */ @javax.annotation.Nullable @@ -107,7 +98,6 @@ public DocumentMetadata value(@javax.annotation.Nullable String value) { /** * Metadata value - * * @return value */ @javax.annotation.Nullable @@ -135,7 +125,6 @@ public DocumentMetadata addValuesItem(String valuesItem) { /** * Metadata values - * * @return values */ @javax.annotation.Nullable @@ -158,9 +147,9 @@ public boolean equals(Object o) { return false; } DocumentMetadata documentMetadata = (DocumentMetadata) o; - return Objects.equals(this.key, documentMetadata.key) - && Objects.equals(this.value, documentMetadata.value) - && Objects.equals(this.values, documentMetadata.values); + return Objects.equals(this.key, documentMetadata.key) && + Objects.equals(this.value, documentMetadata.value) && + Objects.equals(this.values, documentMetadata.values); } @Override @@ -180,7 +169,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -208,72 +198,58 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentMetadata */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentMetadata is not found in the empty JSON string", - DocumentMetadata.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentMetadata is not found in the empty JSON string", DocumentMetadata.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentMetadata.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentMetadata` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentMetadata.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() - && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `values` to be an array in the JSON string but got `%s`", - jsonObj.get("values").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentMetadata.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentMetadata' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentMetadata.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentMetadata value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentMetadata read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentMetadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentMetadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentMetadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentMetadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentMetadata read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentRelationshipType.java b/src/main/java/com/formkiq/client/model/DocumentRelationshipType.java index 4e160720f..b35bb9c4f 100644 --- a/src/main/java/com/formkiq/client/model/DocumentRelationshipType.java +++ b/src/main/java/com/formkiq/client/model/DocumentRelationshipType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,17 +30,17 @@ */ @JsonAdapter(DocumentRelationshipType.Adapter.class) public enum DocumentRelationshipType { - + PRIMARY("PRIMARY"), - + ATTACHMENT("ATTACHMENT"), - + APPENDIX("APPENDIX"), - + SUPPLEMENT("SUPPLEMENT"), - + ASSOCIATED("ASSOCIATED"), - + RENDITION("RENDITION"); private String value; @@ -76,8 +69,7 @@ public static DocumentRelationshipType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentRelationshipType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentRelationshipType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearch.java b/src/main/java/com/formkiq/client/model/DocumentSearch.java index d990800b3..8caffb12c 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearch.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearch.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -63,9 +56,7 @@ /** * Document tag search criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearch { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -102,7 +93,8 @@ public class DocumentSearch { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public DocumentSearch() {} + public DocumentSearch() { + } public DocumentSearch text(@javax.annotation.Nullable String text) { this.text = text; @@ -111,7 +103,6 @@ public DocumentSearch text(@javax.annotation.Nullable String text) { /** * Full text search - * * @return text */ @javax.annotation.Nullable @@ -131,7 +122,6 @@ public DocumentSearch meta(@javax.annotation.Nullable DocumentSearchMeta meta) { /** * Get meta - * * @return meta */ @javax.annotation.Nullable @@ -151,7 +141,6 @@ public DocumentSearch attribute(@javax.annotation.Nullable DocumentSearchAttribu /** * Get attribute - * * @return attribute */ @javax.annotation.Nullable @@ -164,8 +153,7 @@ public void setAttribute(@javax.annotation.Nullable DocumentSearchAttribute attr } - public DocumentSearch attributes( - @javax.annotation.Nullable List attributes) { + public DocumentSearch attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -180,7 +168,6 @@ public DocumentSearch addAttributesItem(DocumentSearchAttribute attributesItem) /** * List of Composite Key attributes to filter search results on - * * @return attributes */ @javax.annotation.Nullable @@ -200,7 +187,6 @@ public DocumentSearch tag(@javax.annotation.Nullable DocumentSearchTag tag) { /** * Get tag - * * @return tag */ @javax.annotation.Nullable @@ -228,7 +214,6 @@ public DocumentSearch addTagsItem(DocumentSearchTags tagsItem) { /** * List of Composite Key tags to filter search results on - * * @return tags */ @javax.annotation.Nullable @@ -256,7 +241,6 @@ public DocumentSearch addDocumentIdsItem(String documentIdsItem) { /** * List of DocumentIds to filter search results on - * * @return documentIds */ @javax.annotation.Nullable @@ -279,13 +263,13 @@ public boolean equals(Object o) { return false; } DocumentSearch documentSearch = (DocumentSearch) o; - return Objects.equals(this.text, documentSearch.text) - && Objects.equals(this.meta, documentSearch.meta) - && Objects.equals(this.attribute, documentSearch.attribute) - && Objects.equals(this.attributes, documentSearch.attributes) - && Objects.equals(this.tag, documentSearch.tag) - && Objects.equals(this.tags, documentSearch.tags) - && Objects.equals(this.documentIds, documentSearch.documentIds); + return Objects.equals(this.text, documentSearch.text) && + Objects.equals(this.meta, documentSearch.meta) && + Objects.equals(this.attribute, documentSearch.attribute) && + Objects.equals(this.attributes, documentSearch.attributes) && + Objects.equals(this.tag, documentSearch.tag) && + Objects.equals(this.tags, documentSearch.tags) && + Objects.equals(this.documentIds, documentSearch.documentIds); } @Override @@ -309,7 +293,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -324,8 +309,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("text", "meta", "attribute", "attributes", "tag", "tags", "documentIds")); + openapiFields = new HashSet(Arrays.asList("text", "meta", "attribute", "attributes", "tag", "tags", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -338,110 +322,95 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearch */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSearch is not found in the empty JSON string", - DocumentSearch.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearch is not found in the empty JSON string", DocumentSearch.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSearch` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) - && !jsonObj.get("text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `text` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("text").toString())); - } - // validate the optional field `meta` - if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { - DocumentSearchMeta.validateJsonElement(jsonObj.get("meta")); - } - // validate the optional field `attribute` - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { - DocumentSearchAttribute.validateJsonElement(jsonObj.get("attribute")); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); + } + // validate the optional field `meta` + if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { + DocumentSearchMeta.validateJsonElement(jsonObj.get("meta")); + } + // validate the optional field `attribute` + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { + DocumentSearchAttribute.validateJsonElement(jsonObj.get("attribute")); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + DocumentSearchAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - DocumentSearchAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } - // validate the optional field `tag` - if (jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) { - DocumentSearchTag.validateJsonElement(jsonObj.get("tag")); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + // validate the optional field `tag` + if (jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) { + DocumentSearchTag.validateJsonElement(jsonObj.get("tag")); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + DocumentSearchTags.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - DocumentSearchTags.validateJsonElement(jsonArraytags.get(i)); - } ; } - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() - && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentIds` to be an array in the JSON string but got `%s`", - jsonObj.get("documentIds").toString())); - } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearch.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearch' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSearch.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearch value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearch read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearch' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearch value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java b/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java index c441b7473..aff26c581 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * DocumentSearchAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchAttribute { public static final String SERIALIZED_NAME_EQ = "eq"; @SerializedName(SERIALIZED_NAME_EQ) @@ -89,7 +80,8 @@ public class DocumentSearchAttribute { @javax.annotation.Nonnull private String key; - public DocumentSearchAttribute() {} + public DocumentSearchAttribute() { + } public DocumentSearchAttribute eq(@javax.annotation.Nullable String eq) { this.eq = eq; @@ -98,7 +90,6 @@ public DocumentSearchAttribute eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq - * * @return eq */ @javax.annotation.Nullable @@ -126,7 +117,6 @@ public DocumentSearchAttribute addEqOrItem(String eqOrItem) { /** * Searches for ANY strings that eq - * * @return eqOr */ @javax.annotation.Nullable @@ -146,7 +136,6 @@ public DocumentSearchAttribute beginsWith(@javax.annotation.Nullable String begi /** * Searches for strings that begin with - * * @return beginsWith */ @javax.annotation.Nullable @@ -166,7 +155,6 @@ public DocumentSearchAttribute range(@javax.annotation.Nullable DocumentSearchRa /** * Get range - * * @return range */ @javax.annotation.Nullable @@ -186,7 +174,6 @@ public DocumentSearchAttribute key(@javax.annotation.Nonnull String key) { /** * Attribute key to search - * * @return key */ @javax.annotation.Nonnull @@ -209,11 +196,11 @@ public boolean equals(Object o) { return false; } DocumentSearchAttribute documentSearchAttribute = (DocumentSearchAttribute) o; - return Objects.equals(this.eq, documentSearchAttribute.eq) - && Objects.equals(this.eqOr, documentSearchAttribute.eqOr) - && Objects.equals(this.beginsWith, documentSearchAttribute.beginsWith) - && Objects.equals(this.range, documentSearchAttribute.range) - && Objects.equals(this.key, documentSearchAttribute.key); + return Objects.equals(this.eq, documentSearchAttribute.eq) && + Objects.equals(this.eqOr, documentSearchAttribute.eqOr) && + Objects.equals(this.beginsWith, documentSearchAttribute.beginsWith) && + Objects.equals(this.range, documentSearchAttribute.range) && + Objects.equals(this.key, documentSearchAttribute.key); } @Override @@ -235,7 +222,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,90 +251,72 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchAttribute.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSearchAttribute is not found in the empty JSON string", - DocumentSearchAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSearchAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchAttribute is not found in the empty JSON string", DocumentSearchAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSearchAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentSearchAttribute.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentSearchAttribute.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() && !jsonObj.get("eqOr").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eqOr` to be an array in the JSON string but got `%s`", jsonObj.get("eqOr").toString())); + } + if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) && !jsonObj.get("beginsWith").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", jsonObj.get("beginsWith").toString())); + } + // validate the optional field `range` + if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { + DocumentSearchRange.validateJsonElement(jsonObj.get("range")); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) - && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("eq").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() - && !jsonObj.get("eqOr").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eqOr` to be an array in the JSON string but got `%s`", - jsonObj.get("eqOr").toString())); - } - if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) - && !jsonObj.get("beginsWith").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("beginsWith").toString())); - } - // validate the optional field `range` - if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { - DocumentSearchRange.validateJsonElement(jsonObj.get("range")); - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java b/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java index 78f9c0fec..2f854cf37 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * DocumentSearchMatchAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchMatchAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -82,7 +73,8 @@ public class DocumentSearchMatchAttribute { @javax.annotation.Nullable private Boolean booleanValue; - public DocumentSearchMatchAttribute() {} + public DocumentSearchMatchAttribute() { + } public DocumentSearchMatchAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -91,7 +83,6 @@ public DocumentSearchMatchAttribute key(@javax.annotation.Nullable String key) { /** * Tag key - * * @return key */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public DocumentSearchMatchAttribute stringValue(@javax.annotation.Nullable Strin /** * Attribute with string value - * * @return stringValue */ @javax.annotation.Nullable @@ -124,15 +114,13 @@ public void setStringValue(@javax.annotation.Nullable String stringValue) { } - public DocumentSearchMatchAttribute numberValue( - @javax.annotation.Nullable BigDecimal numberValue) { + public DocumentSearchMatchAttribute numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; return this; } /** * Attribute with number value - * * @return numberValue */ @javax.annotation.Nullable @@ -145,15 +133,13 @@ public void setNumberValue(@javax.annotation.Nullable BigDecimal numberValue) { } - public DocumentSearchMatchAttribute booleanValue( - @javax.annotation.Nullable Boolean booleanValue) { + public DocumentSearchMatchAttribute booleanValue(@javax.annotation.Nullable Boolean booleanValue) { this.booleanValue = booleanValue; return this; } /** * Attribute with boolean value - * * @return booleanValue */ @javax.annotation.Nullable @@ -176,10 +162,10 @@ public boolean equals(Object o) { return false; } DocumentSearchMatchAttribute documentSearchMatchAttribute = (DocumentSearchMatchAttribute) o; - return Objects.equals(this.key, documentSearchMatchAttribute.key) - && Objects.equals(this.stringValue, documentSearchMatchAttribute.stringValue) - && Objects.equals(this.numberValue, documentSearchMatchAttribute.numberValue) - && Objects.equals(this.booleanValue, documentSearchMatchAttribute.booleanValue); + return Objects.equals(this.key, documentSearchMatchAttribute.key) && + Objects.equals(this.stringValue, documentSearchMatchAttribute.stringValue) && + Objects.equals(this.numberValue, documentSearchMatchAttribute.numberValue) && + Objects.equals(this.booleanValue, documentSearchMatchAttribute.booleanValue); } @Override @@ -200,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -215,8 +202,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("key", "stringValue", "numberValue", "booleanValue")); + openapiFields = new HashSet(Arrays.asList("key", "stringValue", "numberValue", "booleanValue")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -229,66 +215,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchMatchAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchMatchAttribute.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSearchMatchAttribute is not found in the empty JSON string", - DocumentSearchMatchAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSearchMatchAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchMatchAttribute is not found in the empty JSON string", DocumentSearchMatchAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchMatchAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSearchMatchAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchMatchAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchMatchAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) - && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stringValue").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchMatchAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchMatchAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMatchAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchMatchAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchMatchAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchMatchAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchMatchAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMatchAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchMatchAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchMatchAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java b/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java index ac0b13a41..e2cca1f9e 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * DocumentSearchMatchTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchMatchTag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -76,7 +67,8 @@ public class DocumentSearchMatchTag { @javax.annotation.Nullable private String type; - public DocumentSearchMatchTag() {} + public DocumentSearchMatchTag() { + } public DocumentSearchMatchTag key(@javax.annotation.Nullable String key) { this.key = key; @@ -85,7 +77,6 @@ public DocumentSearchMatchTag key(@javax.annotation.Nullable String key) { /** * Tag key - * * @return key */ @javax.annotation.Nullable @@ -105,7 +96,6 @@ public DocumentSearchMatchTag value(@javax.annotation.Nullable String value) { /** * Tag value - * * @return value */ @javax.annotation.Nullable @@ -125,7 +115,6 @@ public DocumentSearchMatchTag type(@javax.annotation.Nullable String type) { /** * Tag type - * * @return type */ @javax.annotation.Nullable @@ -148,9 +137,9 @@ public boolean equals(Object o) { return false; } DocumentSearchMatchTag documentSearchMatchTag = (DocumentSearchMatchTag) o; - return Objects.equals(this.key, documentSearchMatchTag.key) - && Objects.equals(this.value, documentSearchMatchTag.value) - && Objects.equals(this.type, documentSearchMatchTag.type); + return Objects.equals(this.key, documentSearchMatchTag.key) && + Objects.equals(this.value, documentSearchMatchTag.value) && + Objects.equals(this.type, documentSearchMatchTag.type); } @Override @@ -170,7 +159,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,71 +188,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchMatchTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchMatchTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSearchMatchTag is not found in the empty JSON string", - DocumentSearchMatchTag.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSearchMatchTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchMatchTag is not found in the empty JSON string", DocumentSearchMatchTag.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchMatchTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSearchMatchTag` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchMatchTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchMatchTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) - && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `type` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("type").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchMatchTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchMatchTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMatchTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchMatchTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchMatchTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchMatchTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchMatchTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMatchTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchMatchTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchMatchTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java b/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java index 4f11fdff3..3fe936858 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * DocumentSearchMeta */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchMeta { public static final String SERIALIZED_NAME_FOLDER = "folder"; @SerializedName(SERIALIZED_NAME_FOLDER) @@ -109,14 +100,13 @@ public static IndexTypeEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final IndexTypeEnum enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final IndexTypeEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public IndexTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return IndexTypeEnum.fromValue(value); } } @@ -137,7 +127,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private String indexFilterBeginsWith; - public DocumentSearchMeta() {} + public DocumentSearchMeta() { + } public DocumentSearchMeta folder(@javax.annotation.Nullable String folder) { this.folder = folder; @@ -146,7 +137,6 @@ public DocumentSearchMeta folder(@javax.annotation.Nullable String folder) { /** * Searches for a folder - * * @return folder */ @javax.annotation.Nullable @@ -166,7 +156,6 @@ public DocumentSearchMeta path(@javax.annotation.Nullable String path) { /** * Searches for a Path of document - * * @return path */ @javax.annotation.Nullable @@ -186,7 +175,6 @@ public DocumentSearchMeta eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq - * * @return eq */ @javax.annotation.Nullable @@ -206,7 +194,6 @@ public DocumentSearchMeta indexType(@javax.annotation.Nullable IndexTypeEnum ind /** * Searches in an index - * * @return indexType */ @javax.annotation.Nullable @@ -219,15 +206,13 @@ public void setIndexType(@javax.annotation.Nullable IndexTypeEnum indexType) { } - public DocumentSearchMeta indexFilterBeginsWith( - @javax.annotation.Nullable String indexFilterBeginsWith) { + public DocumentSearchMeta indexFilterBeginsWith(@javax.annotation.Nullable String indexFilterBeginsWith) { this.indexFilterBeginsWith = indexFilterBeginsWith; return this; } /** * Returns index records that begins with a particular substring - * * @return indexFilterBeginsWith */ @javax.annotation.Nullable @@ -250,11 +235,11 @@ public boolean equals(Object o) { return false; } DocumentSearchMeta documentSearchMeta = (DocumentSearchMeta) o; - return Objects.equals(this.folder, documentSearchMeta.folder) - && Objects.equals(this.path, documentSearchMeta.path) - && Objects.equals(this.eq, documentSearchMeta.eq) - && Objects.equals(this.indexType, documentSearchMeta.indexType) - && Objects.equals(this.indexFilterBeginsWith, documentSearchMeta.indexFilterBeginsWith); + return Objects.equals(this.folder, documentSearchMeta.folder) && + Objects.equals(this.path, documentSearchMeta.path) && + Objects.equals(this.eq, documentSearchMeta.eq) && + Objects.equals(this.indexType, documentSearchMeta.indexType) && + Objects.equals(this.indexFilterBeginsWith, documentSearchMeta.indexFilterBeginsWith); } @Override @@ -270,14 +255,14 @@ public String toString() { sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" eq: ").append(toIndentedString(eq)).append("\n"); sb.append(" indexType: ").append(toIndentedString(indexType)).append("\n"); - sb.append(" indexFilterBeginsWith: ").append(toIndentedString(indexFilterBeginsWith)) - .append("\n"); + sb.append(" indexFilterBeginsWith: ").append(toIndentedString(indexFilterBeginsWith)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -292,8 +277,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("folder", "path", "eq", "indexType", "indexFilterBeginsWith")); + openapiFields = new HashSet(Arrays.asList("folder", "path", "eq", "indexType", "indexFilterBeginsWith")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -306,88 +290,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchMeta */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSearchMeta is not found in the empty JSON string", - DocumentSearchMeta.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSearchMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchMeta is not found in the empty JSON string", DocumentSearchMeta.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchMeta.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSearchMeta` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchMeta.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchMeta` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("folder") != null && !jsonObj.get("folder").isJsonNull()) && !jsonObj.get("folder").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `folder` to be a primitive type in the JSON string but got `%s`", jsonObj.get("folder").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); + } + if ((jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) && !jsonObj.get("indexType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexType").toString())); + } + // validate the optional field `indexType` + if (jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) { + IndexTypeEnum.validateJsonElement(jsonObj.get("indexType")); + } + if ((jsonObj.get("indexFilterBeginsWith") != null && !jsonObj.get("indexFilterBeginsWith").isJsonNull()) && !jsonObj.get("indexFilterBeginsWith").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexFilterBeginsWith` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexFilterBeginsWith").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("folder") != null && !jsonObj.get("folder").isJsonNull()) - && !jsonObj.get("folder").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `folder` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("folder").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) - && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("eq").toString())); - } - if ((jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) - && !jsonObj.get("indexType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `indexType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("indexType").toString())); - } - // validate the optional field `indexType` - if (jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) { - IndexTypeEnum.validateJsonElement(jsonObj.get("indexType")); - } - if ((jsonObj.get("indexFilterBeginsWith") != null - && !jsonObj.get("indexFilterBeginsWith").isJsonNull()) - && !jsonObj.get("indexFilterBeginsWith").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `indexFilterBeginsWith` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("indexFilterBeginsWith").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchMeta.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchMeta' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMeta.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchMeta value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchMeta read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchMeta.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchMeta' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMeta.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchMeta value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchMeta read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchRange.java b/src/main/java/com/formkiq/client/model/DocumentSearchRange.java index e1845168a..1601ca78e 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchRange.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchRange.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * DocumentSearchRange */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchRange { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) @@ -77,7 +68,8 @@ public class DocumentSearchRange { @javax.annotation.Nullable private SearchRangeDataType type = SearchRangeDataType.STRING; - public DocumentSearchRange() {} + public DocumentSearchRange() { + } public DocumentSearchRange start(@javax.annotation.Nonnull String start) { this.start = start; @@ -86,7 +78,6 @@ public DocumentSearchRange start(@javax.annotation.Nonnull String start) { /** * Start of range query - * * @return start */ @javax.annotation.Nonnull @@ -106,7 +97,6 @@ public DocumentSearchRange end(@javax.annotation.Nonnull String end) { /** * End of range query - * * @return end */ @javax.annotation.Nonnull @@ -126,7 +116,6 @@ public DocumentSearchRange type(@javax.annotation.Nullable SearchRangeDataType t /** * Get type - * * @return type */ @javax.annotation.Nullable @@ -149,9 +138,9 @@ public boolean equals(Object o) { return false; } DocumentSearchRange documentSearchRange = (DocumentSearchRange) o; - return Objects.equals(this.start, documentSearchRange.start) - && Objects.equals(this.end, documentSearchRange.end) - && Objects.equals(this.type, documentSearchRange.type); + return Objects.equals(this.start, documentSearchRange.start) && + Objects.equals(this.end, documentSearchRange.end) && + Objects.equals(this.type, documentSearchRange.type); } @Override @@ -171,7 +160,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,76 +189,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchRange */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSearchRange is not found in the empty JSON string", - DocumentSearchRange.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSearchRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchRange is not found in the empty JSON string", DocumentSearchRange.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchRange.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSearchRange` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchRange.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentSearchRange.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentSearchRange.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("start").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `start` to be a primitive type in the JSON string but got `%s`", jsonObj.get("start").toString())); + } + if (!jsonObj.get("end").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `end` to be a primitive type in the JSON string but got `%s`", jsonObj.get("end").toString())); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + SearchRangeDataType.validateJsonElement(jsonObj.get("type")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("start").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `start` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("start").toString())); - } - if (!jsonObj.get("end").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `end` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("end").toString())); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - SearchRangeDataType.validateJsonElement(jsonObj.get("type")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchRange.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchRange' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchRange.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchRange value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchRange read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchRange.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchRange' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchRange.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchRange value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchRange read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java b/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java index 8db642247..21e393c70 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * Document search tag criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchRequest { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) @@ -73,7 +64,8 @@ public class DocumentSearchRequest { @javax.annotation.Nullable private SearchResponseFields responseFields; - public DocumentSearchRequest() {} + public DocumentSearchRequest() { + } public DocumentSearchRequest query(@javax.annotation.Nonnull DocumentSearch query) { this.query = query; @@ -82,7 +74,6 @@ public DocumentSearchRequest query(@javax.annotation.Nonnull DocumentSearch quer /** * Get query - * * @return query */ @javax.annotation.Nonnull @@ -95,15 +86,13 @@ public void setQuery(@javax.annotation.Nonnull DocumentSearch query) { } - public DocumentSearchRequest responseFields( - @javax.annotation.Nullable SearchResponseFields responseFields) { + public DocumentSearchRequest responseFields(@javax.annotation.Nullable SearchResponseFields responseFields) { this.responseFields = responseFields; return this; } /** * Get responseFields - * * @return responseFields */ @javax.annotation.Nullable @@ -126,8 +115,8 @@ public boolean equals(Object o) { return false; } DocumentSearchRequest documentSearchRequest = (DocumentSearchRequest) o; - return Objects.equals(this.query, documentSearchRequest.query) - && Objects.equals(this.responseFields, documentSearchRequest.responseFields); + return Objects.equals(this.query, documentSearchRequest.query) && + Objects.equals(this.responseFields, documentSearchRequest.responseFields); } @Override @@ -146,7 +135,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -174,68 +164,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSearchRequest is not found in the empty JSON string", - DocumentSearchRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchRequest is not found in the empty JSON string", DocumentSearchRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSearchRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentSearchRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentSearchRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `query` + DocumentSearch.validateJsonElement(jsonObj.get("query")); + // validate the optional field `responseFields` + if (jsonObj.get("responseFields") != null && !jsonObj.get("responseFields").isJsonNull()) { + SearchResponseFields.validateJsonElement(jsonObj.get("responseFields")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `query` - DocumentSearch.validateJsonElement(jsonObj.get("query")); - // validate the optional field `responseFields` - if (jsonObj.get("responseFields") != null && !jsonObj.get("responseFields").isJsonNull()) { - SearchResponseFields.validateJsonElement(jsonObj.get("responseFields")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java b/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java index 528d70868..51512e6e1 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * DocumentSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -79,7 +70,8 @@ public class DocumentSearchResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public DocumentSearchResponse() {} + public DocumentSearchResponse() { + } public DocumentSearchResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -88,7 +80,6 @@ public DocumentSearchResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -108,7 +99,6 @@ public DocumentSearchResponse previous(@javax.annotation.Nullable String previou /** * Previous page of results token - * * @return previous */ @javax.annotation.Nullable @@ -121,8 +111,7 @@ public void setPrevious(@javax.annotation.Nullable String previous) { } - public DocumentSearchResponse documents( - @javax.annotation.Nullable List documents) { + public DocumentSearchResponse documents(@javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -137,7 +126,6 @@ public DocumentSearchResponse addDocumentsItem(SearchResultDocument documentsIte /** * List of search result documents - * * @return documents */ @javax.annotation.Nullable @@ -160,9 +148,9 @@ public boolean equals(Object o) { return false; } DocumentSearchResponse documentSearchResponse = (DocumentSearchResponse) o; - return Objects.equals(this.next, documentSearchResponse.next) - && Objects.equals(this.previous, documentSearchResponse.previous) - && Objects.equals(this.documents, documentSearchResponse.documents); + return Objects.equals(this.next, documentSearchResponse.next) && + Objects.equals(this.previous, documentSearchResponse.previous) && + Objects.equals(this.documents, documentSearchResponse.documents); } @Override @@ -182,7 +170,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -210,81 +199,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSearchResponse is not found in the empty JSON string", - DocumentSearchResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchResponse is not found in the empty JSON string", DocumentSearchResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSearchResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) - && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("previous").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + SearchResultDocument.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - SearchResultDocument.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchTag.java b/src/main/java/com/formkiq/client/model/DocumentSearchTag.java index e3a7c6e89..94324c2e1 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchTag.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * DocumentSearchTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchTag { public static final String SERIALIZED_NAME_BEGINS_WITH = "beginsWith"; @SerializedName(SERIALIZED_NAME_BEGINS_WITH) @@ -89,7 +80,8 @@ public class DocumentSearchTag { @javax.annotation.Nonnull private String key; - public DocumentSearchTag() {} + public DocumentSearchTag() { + } public DocumentSearchTag beginsWith(@javax.annotation.Nullable String beginsWith) { this.beginsWith = beginsWith; @@ -98,7 +90,6 @@ public DocumentSearchTag beginsWith(@javax.annotation.Nullable String beginsWith /** * Searches for strings that begin with - * * @return beginsWith */ @javax.annotation.Nullable @@ -118,7 +109,6 @@ public DocumentSearchTag eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq - * * @return eq */ @javax.annotation.Nullable @@ -146,7 +136,6 @@ public DocumentSearchTag addEqOrItem(String eqOrItem) { /** * Searches for ANY strings that eq - * * @return eqOr */ @javax.annotation.Nullable @@ -166,7 +155,6 @@ public DocumentSearchTag range(@javax.annotation.Nullable DocumentSearchRange ra /** * Get range - * * @return range */ @javax.annotation.Nullable @@ -186,7 +174,6 @@ public DocumentSearchTag key(@javax.annotation.Nonnull String key) { /** * Tag key to search - * * @return key */ @javax.annotation.Nonnull @@ -209,11 +196,11 @@ public boolean equals(Object o) { return false; } DocumentSearchTag documentSearchTag = (DocumentSearchTag) o; - return Objects.equals(this.beginsWith, documentSearchTag.beginsWith) - && Objects.equals(this.eq, documentSearchTag.eq) - && Objects.equals(this.eqOr, documentSearchTag.eqOr) - && Objects.equals(this.range, documentSearchTag.range) - && Objects.equals(this.key, documentSearchTag.key); + return Objects.equals(this.beginsWith, documentSearchTag.beginsWith) && + Objects.equals(this.eq, documentSearchTag.eq) && + Objects.equals(this.eqOr, documentSearchTag.eqOr) && + Objects.equals(this.range, documentSearchTag.range) && + Objects.equals(this.key, documentSearchTag.key); } @Override @@ -235,7 +222,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -263,90 +251,72 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSearchTag is not found in the empty JSON string", - DocumentSearchTag.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSearchTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchTag is not found in the empty JSON string", DocumentSearchTag.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSearchTag` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentSearchTag.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentSearchTag.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) && !jsonObj.get("beginsWith").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", jsonObj.get("beginsWith").toString())); + } + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() && !jsonObj.get("eqOr").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eqOr` to be an array in the JSON string but got `%s`", jsonObj.get("eqOr").toString())); + } + // validate the optional field `range` + if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { + DocumentSearchRange.validateJsonElement(jsonObj.get("range")); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) - && !jsonObj.get("beginsWith").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("beginsWith").toString())); - } - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) - && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("eq").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() - && !jsonObj.get("eqOr").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eqOr` to be an array in the JSON string but got `%s`", - jsonObj.get("eqOr").toString())); - } - // validate the optional field `range` - if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { - DocumentSearchRange.validateJsonElement(jsonObj.get("range")); - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchTags.java b/src/main/java/com/formkiq/client/model/DocumentSearchTags.java index 89fb3cc18..a134a62ee 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchTags.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchTags.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * DocumentSearchTags */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchTags { public static final String SERIALIZED_NAME_EQ = "eq"; @SerializedName(SERIALIZED_NAME_EQ) @@ -82,7 +73,8 @@ public class DocumentSearchTags { @javax.annotation.Nonnull private String key; - public DocumentSearchTags() {} + public DocumentSearchTags() { + } public DocumentSearchTags eq(@javax.annotation.Nullable String eq) { this.eq = eq; @@ -91,7 +83,6 @@ public DocumentSearchTags eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq - * * @return eq */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public DocumentSearchTags beginsWith(@javax.annotation.Nullable String beginsWit /** * Searches for strings that begin with - * * @return beginsWith */ @javax.annotation.Nullable @@ -131,7 +121,6 @@ public DocumentSearchTags range(@javax.annotation.Nullable DocumentSearchRange r /** * Get range - * * @return range */ @javax.annotation.Nullable @@ -151,7 +140,6 @@ public DocumentSearchTags key(@javax.annotation.Nonnull String key) { /** * Tag key to search - * * @return key */ @javax.annotation.Nonnull @@ -174,10 +162,10 @@ public boolean equals(Object o) { return false; } DocumentSearchTags documentSearchTags = (DocumentSearchTags) o; - return Objects.equals(this.eq, documentSearchTags.eq) - && Objects.equals(this.beginsWith, documentSearchTags.beginsWith) - && Objects.equals(this.range, documentSearchTags.range) - && Objects.equals(this.key, documentSearchTags.key); + return Objects.equals(this.eq, documentSearchTags.eq) && + Objects.equals(this.beginsWith, documentSearchTags.beginsWith) && + Objects.equals(this.range, documentSearchTags.range) && + Objects.equals(this.key, documentSearchTags.key); } @Override @@ -198,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,83 +215,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchTags */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchTags.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSearchTags is not found in the empty JSON string", - DocumentSearchTags.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSearchTags.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchTags is not found in the empty JSON string", DocumentSearchTags.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchTags.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSearchTags` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchTags.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchTags` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentSearchTags.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentSearchTags.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); + } + if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) && !jsonObj.get("beginsWith").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", jsonObj.get("beginsWith").toString())); + } + // validate the optional field `range` + if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { + DocumentSearchRange.validateJsonElement(jsonObj.get("range")); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) - && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("eq").toString())); - } - if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) - && !jsonObj.get("beginsWith").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("beginsWith").toString())); - } - // validate the optional field `range` - if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { - DocumentSearchRange.validateJsonElement(jsonObj.get("range")); - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchTags.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchTags' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchTags.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchTags value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchTags read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchTags.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchTags' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchTags.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchTags value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchTags read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSync.java b/src/main/java/com/formkiq/client/model/DocumentSync.java index 28ea1d37c..f1297facb 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSync.java +++ b/src/main/java/com/formkiq/client/model/DocumentSync.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * DocumentSync */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSync { public static final String SERIALIZED_NAME_SERVICE = "service"; @SerializedName(SERIALIZED_NAME_SERVICE) @@ -99,7 +90,8 @@ public class DocumentSync { @javax.annotation.Nullable private String message; - public DocumentSync() {} + public DocumentSync() { + } public DocumentSync service(@javax.annotation.Nullable DocumentSyncService service) { this.service = service; @@ -108,7 +100,6 @@ public DocumentSync service(@javax.annotation.Nullable DocumentSyncService servi /** * Get service - * * @return service */ @javax.annotation.Nullable @@ -128,7 +119,6 @@ public DocumentSync status(@javax.annotation.Nullable DocumentSyncStatus status) /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -148,7 +138,6 @@ public DocumentSync type(@javax.annotation.Nullable DocumentSyncType type) { /** * Get type - * * @return type */ @javax.annotation.Nullable @@ -168,7 +157,6 @@ public DocumentSync insertedDate(@javax.annotation.Nullable String insertedDate) /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -188,7 +176,6 @@ public DocumentSync syncDate(@javax.annotation.Nullable String syncDate) { /** * Timestamp of synchronization - * * @return syncDate */ @javax.annotation.Nullable @@ -208,7 +195,6 @@ public DocumentSync userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -228,7 +214,6 @@ public DocumentSync message(@javax.annotation.Nullable String message) { /** * Document sync message - * * @return message */ @javax.annotation.Nullable @@ -251,13 +236,13 @@ public boolean equals(Object o) { return false; } DocumentSync documentSync = (DocumentSync) o; - return Objects.equals(this.service, documentSync.service) - && Objects.equals(this.status, documentSync.status) - && Objects.equals(this.type, documentSync.type) - && Objects.equals(this.insertedDate, documentSync.insertedDate) - && Objects.equals(this.syncDate, documentSync.syncDate) - && Objects.equals(this.userId, documentSync.userId) - && Objects.equals(this.message, documentSync.message); + return Objects.equals(this.service, documentSync.service) && + Objects.equals(this.status, documentSync.status) && + Objects.equals(this.type, documentSync.type) && + Objects.equals(this.insertedDate, documentSync.insertedDate) && + Objects.equals(this.syncDate, documentSync.syncDate) && + Objects.equals(this.userId, documentSync.userId) && + Objects.equals(this.message, documentSync.message); } @Override @@ -281,7 +266,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -296,8 +282,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("service", "status", "type", "insertedDate", - "syncDate", "userId", "message")); + openapiFields = new HashSet(Arrays.asList("service", "status", "type", "insertedDate", "syncDate", "userId", "message")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -310,89 +295,72 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSync */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSync.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentSync is not found in the empty JSON string", - DocumentSync.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentSync.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSync is not found in the empty JSON string", DocumentSync.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSync.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentSync` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSync.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSync` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `service` + if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { + DocumentSyncService.validateJsonElement(jsonObj.get("service")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + DocumentSyncStatus.validateJsonElement(jsonObj.get("status")); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + DocumentSyncType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("syncDate") != null && !jsonObj.get("syncDate").isJsonNull()) && !jsonObj.get("syncDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `syncDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("syncDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `service` - if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { - DocumentSyncService.validateJsonElement(jsonObj.get("service")); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - DocumentSyncStatus.validateJsonElement(jsonObj.get("status")); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - DocumentSyncType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("syncDate") != null && !jsonObj.get("syncDate").isJsonNull()) - && !jsonObj.get("syncDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `syncDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("syncDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSync.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSync' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentSync.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSync value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSync read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSync.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSync' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentSync.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSync value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSync read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSyncService.java b/src/main/java/com/formkiq/client/model/DocumentSyncService.java index e059372cc..fe3ff1e54 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSyncService.java +++ b/src/main/java/com/formkiq/client/model/DocumentSyncService.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(DocumentSyncService.Adapter.class) public enum DocumentSyncService { - + TYPESENSE("TYPESENSE"), - + OPENSEARCH("OPENSEARCH"); private String value; @@ -68,8 +61,7 @@ public static DocumentSyncService fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentSyncService enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentSyncService enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentSyncStatus.java b/src/main/java/com/formkiq/client/model/DocumentSyncStatus.java index d44988808..b28ae77a7 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSyncStatus.java +++ b/src/main/java/com/formkiq/client/model/DocumentSyncStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,13 +30,13 @@ */ @JsonAdapter(DocumentSyncStatus.Adapter.class) public enum DocumentSyncStatus { - + COMPLETE("COMPLETE"), - + FAILED("FAILED"), - + FAILED_RETRY("FAILED_RETRY"), - + PENDING("PENDING"); private String value; @@ -72,8 +65,7 @@ public static DocumentSyncStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentSyncStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentSyncStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentSyncType.java b/src/main/java/com/formkiq/client/model/DocumentSyncType.java index 5705b59d5..41c2f88b2 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSyncType.java +++ b/src/main/java/com/formkiq/client/model/DocumentSyncType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,13 +30,13 @@ */ @JsonAdapter(DocumentSyncType.Adapter.class) public enum DocumentSyncType { - + METADATA("METADATA"), - + CONTENT("CONTENT"), - + SOFT_DELETE("SOFT_DELETE"), - + DELETE("DELETE"); private String value; @@ -72,8 +65,7 @@ public static DocumentSyncType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentSyncType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentSyncType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentTag.java b/src/main/java/com/formkiq/client/model/DocumentTag.java index 8e4a9314c..6173f816e 100644 --- a/src/main/java/com/formkiq/client/model/DocumentTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentTag.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * DocumentTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentTag { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; @SerializedName(SERIALIZED_NAME_INSERTED_DATE) @@ -98,7 +89,8 @@ public class DocumentTag { @javax.annotation.Nullable private String key; - public DocumentTag() {} + public DocumentTag() { + } public DocumentTag insertedDate(@javax.annotation.Nullable String insertedDate) { this.insertedDate = insertedDate; @@ -107,7 +99,6 @@ public DocumentTag insertedDate(@javax.annotation.Nullable String insertedDate) /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -127,7 +118,6 @@ public DocumentTag documentId(@javax.annotation.Nullable String documentId) { /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -147,7 +137,6 @@ public DocumentTag type(@javax.annotation.Nullable String type) { /** * Tag type - * * @return type */ @javax.annotation.Nullable @@ -167,7 +156,6 @@ public DocumentTag userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -187,7 +175,6 @@ public DocumentTag value(@javax.annotation.Nullable String value) { /** * Tag value - * * @return value */ @javax.annotation.Nullable @@ -215,7 +202,6 @@ public DocumentTag addValuesItem(String valuesItem) { /** * Tag values - * * @return values */ @javax.annotation.Nullable @@ -235,7 +221,6 @@ public DocumentTag key(@javax.annotation.Nullable String key) { /** * Tag key - * * @return key */ @javax.annotation.Nullable @@ -258,13 +243,13 @@ public boolean equals(Object o) { return false; } DocumentTag documentTag = (DocumentTag) o; - return Objects.equals(this.insertedDate, documentTag.insertedDate) - && Objects.equals(this.documentId, documentTag.documentId) - && Objects.equals(this.type, documentTag.type) - && Objects.equals(this.userId, documentTag.userId) - && Objects.equals(this.value, documentTag.value) - && Objects.equals(this.values, documentTag.values) - && Objects.equals(this.key, documentTag.key); + return Objects.equals(this.insertedDate, documentTag.insertedDate) && + Objects.equals(this.documentId, documentTag.documentId) && + Objects.equals(this.type, documentTag.type) && + Objects.equals(this.userId, documentTag.userId) && + Objects.equals(this.value, documentTag.value) && + Objects.equals(this.values, documentTag.values) && + Objects.equals(this.key, documentTag.key); } @Override @@ -288,7 +273,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -303,8 +289,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("insertedDate", "documentId", "type", "userId", "value", "values", "key")); + openapiFields = new HashSet(Arrays.asList("insertedDate", "documentId", "type", "userId", "value", "values", "key")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -317,96 +302,70 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentTag is not found in the empty JSON string", - DocumentTag.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentTag is not found in the empty JSON string", DocumentTag.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentTag` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) - && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `type` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("type").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() - && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `values` to be an array in the JSON string but got `%s`", - jsonObj.get("values").toString())); - } - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentVersion.java b/src/main/java/com/formkiq/client/model/DocumentVersion.java index 17795544b..07b3f4139 100644 --- a/src/main/java/com/formkiq/client/model/DocumentVersion.java +++ b/src/main/java/com/formkiq/client/model/DocumentVersion.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * DocumentVersion */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentVersion { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; @SerializedName(SERIALIZED_NAME_INSERTED_DATE) @@ -102,7 +93,8 @@ public class DocumentVersion { @javax.annotation.Nullable private String s3version; - public DocumentVersion() {} + public DocumentVersion() { + } public DocumentVersion insertedDate(@javax.annotation.Nullable String insertedDate) { this.insertedDate = insertedDate; @@ -111,7 +103,6 @@ public DocumentVersion insertedDate(@javax.annotation.Nullable String insertedDa /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -131,7 +122,6 @@ public DocumentVersion checksum(@javax.annotation.Nullable String checksum) { /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -151,7 +141,6 @@ public DocumentVersion checksumType(@javax.annotation.Nullable ChecksumType chec /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -171,7 +160,6 @@ public DocumentVersion contentType(@javax.annotation.Nullable String contentType /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -191,7 +179,6 @@ public DocumentVersion userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -211,7 +198,6 @@ public DocumentVersion contentLength(@javax.annotation.Nullable Integer contentL /** * Document size - * * @return contentLength */ @javax.annotation.Nullable @@ -231,7 +217,6 @@ public DocumentVersion versionKey(@javax.annotation.Nullable String versionKey) /** * Document Version Identifier - * * @return versionKey */ @javax.annotation.Nullable @@ -251,7 +236,6 @@ public DocumentVersion s3version(@javax.annotation.Nullable String s3version) { /** * Document storage version - * * @return s3version */ @javax.annotation.Nullable @@ -274,20 +258,19 @@ public boolean equals(Object o) { return false; } DocumentVersion documentVersion = (DocumentVersion) o; - return Objects.equals(this.insertedDate, documentVersion.insertedDate) - && Objects.equals(this.checksum, documentVersion.checksum) - && Objects.equals(this.checksumType, documentVersion.checksumType) - && Objects.equals(this.contentType, documentVersion.contentType) - && Objects.equals(this.userId, documentVersion.userId) - && Objects.equals(this.contentLength, documentVersion.contentLength) - && Objects.equals(this.versionKey, documentVersion.versionKey) - && Objects.equals(this.s3version, documentVersion.s3version); + return Objects.equals(this.insertedDate, documentVersion.insertedDate) && + Objects.equals(this.checksum, documentVersion.checksum) && + Objects.equals(this.checksumType, documentVersion.checksumType) && + Objects.equals(this.contentType, documentVersion.contentType) && + Objects.equals(this.userId, documentVersion.userId) && + Objects.equals(this.contentLength, documentVersion.contentLength) && + Objects.equals(this.versionKey, documentVersion.versionKey) && + Objects.equals(this.s3version, documentVersion.s3version); } @Override public int hashCode() { - return Objects.hash(insertedDate, checksum, checksumType, contentType, userId, contentLength, - versionKey, s3version); + return Objects.hash(insertedDate, checksum, checksumType, contentType, userId, contentLength, versionKey, s3version); } @Override @@ -307,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -322,8 +306,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("insertedDate", "checksum", "checksumType", - "contentType", "userId", "contentLength", "versionKey", "s3version")); + openapiFields = new HashSet(Arrays.asList("insertedDate", "checksum", "checksumType", "contentType", "userId", "contentLength", "versionKey", "s3version")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -336,93 +319,70 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentVersion */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentVersion is not found in the empty JSON string", - DocumentVersion.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentVersion is not found in the empty JSON string", DocumentVersion.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentVersion.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentVersion` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentVersion.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentVersion` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) && !jsonObj.get("versionKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionKey").toString())); + } + if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) && !jsonObj.get("s3version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("s3version").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) - && !jsonObj.get("versionKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("versionKey").toString())); - } - if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) - && !jsonObj.get("s3version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("s3version").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentVersion.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentVersion' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentVersion.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentVersion value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentVersion read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentVersion.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentVersion' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentVersion.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentVersion value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentVersion read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentWorkflow.java b/src/main/java/com/formkiq/client/model/DocumentWorkflow.java index 0dc1c2a98..ca30bd5a4 100644 --- a/src/main/java/com/formkiq/client/model/DocumentWorkflow.java +++ b/src/main/java/com/formkiq/client/model/DocumentWorkflow.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * DocumentWorkflow */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentWorkflow { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; @SerializedName(SERIALIZED_NAME_WORKFLOW_ID) @@ -92,7 +83,8 @@ public class DocumentWorkflow { @javax.annotation.Nullable private String insertedDate; - public DocumentWorkflow() {} + public DocumentWorkflow() { + } public DocumentWorkflow workflowId(@javax.annotation.Nullable String workflowId) { this.workflowId = workflowId; @@ -101,7 +93,6 @@ public DocumentWorkflow workflowId(@javax.annotation.Nullable String workflowId) /** * Workflow identifier - * * @return workflowId */ @javax.annotation.Nullable @@ -121,7 +112,6 @@ public DocumentWorkflow name(@javax.annotation.Nullable String name) { /** * Workflow name - * * @return name */ @javax.annotation.Nullable @@ -141,7 +131,6 @@ public DocumentWorkflow description(@javax.annotation.Nullable String descriptio /** * Workflow description - * * @return description */ @javax.annotation.Nullable @@ -161,7 +150,6 @@ public DocumentWorkflow currentStepId(@javax.annotation.Nullable String currentS /** * The current step workflow is on - * * @return currentStepId */ @javax.annotation.Nullable @@ -181,7 +169,6 @@ public DocumentWorkflow status(@javax.annotation.Nullable DocumentWorkflowStatus /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -201,7 +188,6 @@ public DocumentWorkflow insertedDate(@javax.annotation.Nullable String insertedD /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -224,12 +210,12 @@ public boolean equals(Object o) { return false; } DocumentWorkflow documentWorkflow = (DocumentWorkflow) o; - return Objects.equals(this.workflowId, documentWorkflow.workflowId) - && Objects.equals(this.name, documentWorkflow.name) - && Objects.equals(this.description, documentWorkflow.description) - && Objects.equals(this.currentStepId, documentWorkflow.currentStepId) - && Objects.equals(this.status, documentWorkflow.status) - && Objects.equals(this.insertedDate, documentWorkflow.insertedDate); + return Objects.equals(this.workflowId, documentWorkflow.workflowId) && + Objects.equals(this.name, documentWorkflow.name) && + Objects.equals(this.description, documentWorkflow.description) && + Objects.equals(this.currentStepId, documentWorkflow.currentStepId) && + Objects.equals(this.status, documentWorkflow.status) && + Objects.equals(this.insertedDate, documentWorkflow.insertedDate); } @Override @@ -252,7 +238,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -267,8 +254,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("workflowId", "name", "description", - "currentStepId", "status", "insertedDate")); + openapiFields = new HashSet(Arrays.asList("workflowId", "name", "description", "currentStepId", "status", "insertedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -281,87 +267,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentWorkflow */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentWorkflow.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentWorkflow is not found in the empty JSON string", - DocumentWorkflow.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentWorkflow.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentWorkflow is not found in the empty JSON string", DocumentWorkflow.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentWorkflow.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentWorkflow` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentWorkflow.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentWorkflow` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("currentStepId") != null && !jsonObj.get("currentStepId").isJsonNull()) && !jsonObj.get("currentStepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `currentStepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currentStepId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + DocumentWorkflowStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) - && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workflowId").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("currentStepId") != null && !jsonObj.get("currentStepId").isJsonNull()) - && !jsonObj.get("currentStepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `currentStepId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("currentStepId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - DocumentWorkflowStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentWorkflow.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentWorkflow' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentWorkflow.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentWorkflow value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentWorkflow read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentWorkflow.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentWorkflow' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentWorkflow.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentWorkflow value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentWorkflow read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentWorkflowStatus.java b/src/main/java/com/formkiq/client/model/DocumentWorkflowStatus.java index 3277c0b11..6cde750d2 100644 --- a/src/main/java/com/formkiq/client/model/DocumentWorkflowStatus.java +++ b/src/main/java/com/formkiq/client/model/DocumentWorkflowStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(DocumentWorkflowStatus.Adapter.class) public enum DocumentWorkflowStatus { - + COMPLETE("COMPLETE"), - + IN_PROGRESS("IN_PROGRESS"), - + FAILED("FAILED"); private String value; @@ -70,8 +63,7 @@ public static DocumentWorkflowStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentWorkflowStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentWorkflowStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java b/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java index 65d800673..7fe226d93 100644 --- a/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,16 +52,15 @@ /** * DocumentsCompressRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentsCompressRequest { public static final String SERIALIZED_NAME_DOCUMENT_IDS = "documentIds"; @SerializedName(SERIALIZED_NAME_DOCUMENT_IDS) @javax.annotation.Nonnull private List documentIds = new ArrayList<>(); - public DocumentsCompressRequest() {} + public DocumentsCompressRequest() { + } public DocumentsCompressRequest documentIds(@javax.annotation.Nonnull List documentIds) { this.documentIds = documentIds; @@ -85,7 +77,6 @@ public DocumentsCompressRequest addDocumentIdsItem(String documentIdsItem) { /** * Documents to compress - * * @return documentIds */ @javax.annotation.Nonnull @@ -126,7 +117,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,71 +146,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentsCompressRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentsCompressRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentsCompressRequest is not found in the empty JSON string", - DocumentsCompressRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentsCompressRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentsCompressRequest is not found in the empty JSON string", DocumentsCompressRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentsCompressRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentsCompressRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentsCompressRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentsCompressRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentsCompressRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentsCompressRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("documentIds") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the required json array is present - if (jsonObj.get("documentIds") == null) { - throw new IllegalArgumentException( - "Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentIds` to be an array in the JSON string but got `%s`", - jsonObj.get("documentIds").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentsCompressRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentsCompressRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentsCompressRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentsCompressRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentsCompressRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentsCompressRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentsCompressRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentsCompressRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentsCompressRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentsCompressRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java b/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java index aa7fdd437..8b4ad4998 100644 --- a/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * DocumentsCompressResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentsCompressResponse { public static final String SERIALIZED_NAME_DOWNLOAD_URL = "downloadUrl"; @SerializedName(SERIALIZED_NAME_DOWNLOAD_URL) @javax.annotation.Nullable private String downloadUrl; - public DocumentsCompressResponse() {} + public DocumentsCompressResponse() { + } public DocumentsCompressResponse downloadUrl(@javax.annotation.Nullable String downloadUrl) { this.downloadUrl = downloadUrl; @@ -75,7 +67,6 @@ public DocumentsCompressResponse downloadUrl(@javax.annotation.Nullable String d /** * Archive download URL - * * @return downloadUrl */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentsCompressResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentsCompressResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocumentsCompressResponse is not found in the empty JSON string", - DocumentsCompressResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocumentsCompressResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentsCompressResponse is not found in the empty JSON string", DocumentsCompressResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentsCompressResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocumentsCompressResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentsCompressResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentsCompressResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("downloadUrl") != null && !jsonObj.get("downloadUrl").isJsonNull()) && !jsonObj.get("downloadUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `downloadUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("downloadUrl").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("downloadUrl") != null && !jsonObj.get("downloadUrl").isJsonNull()) - && !jsonObj.get("downloadUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `downloadUrl` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("downloadUrl").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentsCompressResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentsCompressResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocumentsCompressResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentsCompressResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentsCompressResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentsCompressResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentsCompressResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocumentsCompressResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentsCompressResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentsCompressResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignConfig.java b/src/main/java/com/formkiq/client/model/DocusignConfig.java index 5c113e583..5261d0416 100644 --- a/src/main/java/com/formkiq/client/model/DocusignConfig.java +++ b/src/main/java/com/formkiq/client/model/DocusignConfig.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * DocusignConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignConfig { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) @@ -81,7 +72,8 @@ public class DocusignConfig { @javax.annotation.Nullable private String hmacSignature; - public DocusignConfig() {} + public DocusignConfig() { + } public DocusignConfig userId(@javax.annotation.Nullable String userId) { this.userId = userId; @@ -90,7 +82,6 @@ public DocusignConfig userId(@javax.annotation.Nullable String userId) { /** * Docusign UserId - * * @return userId */ @javax.annotation.Nullable @@ -110,7 +101,6 @@ public DocusignConfig integrationKey(@javax.annotation.Nullable String integrati /** * Docusign Integration Key or ClientId - * * @return integrationKey */ @javax.annotation.Nullable @@ -130,7 +120,6 @@ public DocusignConfig rsaPrivateKey(@javax.annotation.Nullable String rsaPrivate /** * Docusign Rsa Private Key - * * @return rsaPrivateKey */ @javax.annotation.Nullable @@ -149,10 +138,7 @@ public DocusignConfig hmacSignature(@javax.annotation.Nullable String hmacSignat } /** - * Enabled security with Docusign Connect using HMAC keys. When enabled these keys are known only - * by Docusign and your app, and will be used to sign all Connect messages sent from your Docusign - * account to your application. - * + * Enabled security with Docusign Connect using HMAC keys. When enabled these keys are known only by Docusign and your app, and will be used to sign all Connect messages sent from your Docusign account to your application. * @return hmacSignature */ @javax.annotation.Nullable @@ -175,10 +161,10 @@ public boolean equals(Object o) { return false; } DocusignConfig docusignConfig = (DocusignConfig) o; - return Objects.equals(this.userId, docusignConfig.userId) - && Objects.equals(this.integrationKey, docusignConfig.integrationKey) - && Objects.equals(this.rsaPrivateKey, docusignConfig.rsaPrivateKey) - && Objects.equals(this.hmacSignature, docusignConfig.hmacSignature); + return Objects.equals(this.userId, docusignConfig.userId) && + Objects.equals(this.integrationKey, docusignConfig.integrationKey) && + Objects.equals(this.rsaPrivateKey, docusignConfig.rsaPrivateKey) && + Objects.equals(this.hmacSignature, docusignConfig.hmacSignature); } @Override @@ -199,7 +185,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,8 +201,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("userId", "integrationKey", "rsaPrivateKey", "hmacSignature")); + openapiFields = new HashSet(Arrays.asList("userId", "integrationKey", "rsaPrivateKey", "hmacSignature")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -228,77 +214,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignConfig */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocusignConfig is not found in the empty JSON string", - DocusignConfig.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocusignConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignConfig is not found in the empty JSON string", DocusignConfig.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignConfig.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocusignConfig` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("integrationKey") != null && !jsonObj.get("integrationKey").isJsonNull()) && !jsonObj.get("integrationKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `integrationKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("integrationKey").toString())); + } + if ((jsonObj.get("rsaPrivateKey") != null && !jsonObj.get("rsaPrivateKey").isJsonNull()) && !jsonObj.get("rsaPrivateKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rsaPrivateKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rsaPrivateKey").toString())); + } + if ((jsonObj.get("hmacSignature") != null && !jsonObj.get("hmacSignature").isJsonNull()) && !jsonObj.get("hmacSignature").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hmacSignature` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hmacSignature").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("integrationKey") != null && !jsonObj.get("integrationKey").isJsonNull()) - && !jsonObj.get("integrationKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `integrationKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("integrationKey").toString())); - } - if ((jsonObj.get("rsaPrivateKey") != null && !jsonObj.get("rsaPrivateKey").isJsonNull()) - && !jsonObj.get("rsaPrivateKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `rsaPrivateKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("rsaPrivateKey").toString())); - } - if ((jsonObj.get("hmacSignature") != null && !jsonObj.get("hmacSignature").isJsonNull()) - && !jsonObj.get("hmacSignature").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `hmacSignature` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("hmacSignature").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignConfig.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignConfig' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocusignConfig.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignConfig value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignConfig read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocusignConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignConfig read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignEnvironment.java b/src/main/java/com/formkiq/client/model/DocusignEnvironment.java index 7e7f17ca9..e2ddd1064 100644 --- a/src/main/java/com/formkiq/client/model/DocusignEnvironment.java +++ b/src/main/java/com/formkiq/client/model/DocusignEnvironment.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(DocusignEnvironment.Adapter.class) public enum DocusignEnvironment { - + PRODUCTION("PRODUCTION"), - + DEVELOPMENT("DEVELOPMENT"); private String value; @@ -68,8 +61,7 @@ public static DocusignEnvironment fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocusignEnvironment enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final DocusignEnvironment enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java b/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java index e30e2ca9d..a0506f358 100644 --- a/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java +++ b/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * DocusignInpersonSigner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignInpersonSigner { public static final String SERIALIZED_NAME_HOST_EMAIL = "hostEmail"; @SerializedName(SERIALIZED_NAME_HOST_EMAIL) @@ -102,7 +93,8 @@ public class DocusignInpersonSigner { @javax.annotation.Nullable private DocusignSigningTabs tabs; - public DocusignInpersonSigner() {} + public DocusignInpersonSigner() { + } public DocusignInpersonSigner hostEmail(@javax.annotation.Nonnull String hostEmail) { this.hostEmail = hostEmail; @@ -111,7 +103,6 @@ public DocusignInpersonSigner hostEmail(@javax.annotation.Nonnull String hostEma /** * The email of the signing host - * * @return hostEmail */ @javax.annotation.Nonnull @@ -131,7 +122,6 @@ public DocusignInpersonSigner hostName(@javax.annotation.Nonnull String hostName /** * The name of the signing host - * * @return hostName */ @javax.annotation.Nonnull @@ -151,7 +141,6 @@ public DocusignInpersonSigner signerName(@javax.annotation.Nonnull String signer /** * The full legal name of a signer - * * @return signerName */ @javax.annotation.Nonnull @@ -171,7 +160,6 @@ public DocusignInpersonSigner signerEmail(@javax.annotation.Nullable String sign /** * The in-person signer's email address - * * @return signerEmail */ @javax.annotation.Nullable @@ -191,7 +179,6 @@ public DocusignInpersonSigner recipientId(@javax.annotation.Nullable String reci /** * A reference used to map recipients to other objects, such as specific document tabs. - * * @return recipientId */ @javax.annotation.Nullable @@ -211,7 +198,6 @@ public DocusignInpersonSigner routingOrder(@javax.annotation.Nullable String rou /** * Specifies the routing order of the recipient in the envelope. - * * @return routingOrder */ @javax.annotation.Nullable @@ -230,9 +216,7 @@ public DocusignInpersonSigner suppressEmails(@javax.annotation.Nullable String s } /** - * When true, email notifications are suppressed for the recipient, and they must access envelopes - * and documents from their Docusign inbox. - * + * When true, email notifications are suppressed for the recipient, and they must access envelopes and documents from their Docusign inbox. * @return suppressEmails */ @javax.annotation.Nullable @@ -252,7 +236,6 @@ public DocusignInpersonSigner tabs(@javax.annotation.Nullable DocusignSigningTab /** * Get tabs - * * @return tabs */ @javax.annotation.Nullable @@ -275,20 +258,19 @@ public boolean equals(Object o) { return false; } DocusignInpersonSigner docusignInpersonSigner = (DocusignInpersonSigner) o; - return Objects.equals(this.hostEmail, docusignInpersonSigner.hostEmail) - && Objects.equals(this.hostName, docusignInpersonSigner.hostName) - && Objects.equals(this.signerName, docusignInpersonSigner.signerName) - && Objects.equals(this.signerEmail, docusignInpersonSigner.signerEmail) - && Objects.equals(this.recipientId, docusignInpersonSigner.recipientId) - && Objects.equals(this.routingOrder, docusignInpersonSigner.routingOrder) - && Objects.equals(this.suppressEmails, docusignInpersonSigner.suppressEmails) - && Objects.equals(this.tabs, docusignInpersonSigner.tabs); + return Objects.equals(this.hostEmail, docusignInpersonSigner.hostEmail) && + Objects.equals(this.hostName, docusignInpersonSigner.hostName) && + Objects.equals(this.signerName, docusignInpersonSigner.signerName) && + Objects.equals(this.signerEmail, docusignInpersonSigner.signerEmail) && + Objects.equals(this.recipientId, docusignInpersonSigner.recipientId) && + Objects.equals(this.routingOrder, docusignInpersonSigner.routingOrder) && + Objects.equals(this.suppressEmails, docusignInpersonSigner.suppressEmails) && + Objects.equals(this.tabs, docusignInpersonSigner.tabs); } @Override public int hashCode() { - return Objects.hash(hostEmail, hostName, signerName, signerEmail, recipientId, routingOrder, - suppressEmails, tabs); + return Objects.hash(hostEmail, hostName, signerName, signerEmail, recipientId, routingOrder, suppressEmails, tabs); } @Override @@ -308,7 +290,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -323,12 +306,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("hostEmail", "hostName", "signerName", - "signerEmail", "recipientId", "routingOrder", "suppressEmails", "tabs")); + openapiFields = new HashSet(Arrays.asList("hostEmail", "hostName", "signerName", "signerEmail", "recipientId", "routingOrder", "suppressEmails", "tabs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = - new HashSet(Arrays.asList("hostEmail", "hostName", "signerName")); + openapiRequiredFields = new HashSet(Arrays.asList("hostEmail", "hostName", "signerName")); } /** @@ -338,105 +319,80 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignInpersonSigner */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignInpersonSigner.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocusignInpersonSigner is not found in the empty JSON string", - DocusignInpersonSigner.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocusignInpersonSigner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignInpersonSigner is not found in the empty JSON string", DocusignInpersonSigner.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignInpersonSigner.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocusignInpersonSigner` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignInpersonSigner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignInpersonSigner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocusignInpersonSigner.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocusignInpersonSigner.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("hostEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hostEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostEmail").toString())); + } + if (!jsonObj.get("hostName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hostName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostName").toString())); + } + if (!jsonObj.get("signerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signerName").toString())); + } + if ((jsonObj.get("signerEmail") != null && !jsonObj.get("signerEmail").isJsonNull()) && !jsonObj.get("signerEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signerEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signerEmail").toString())); + } + if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) && !jsonObj.get("recipientId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recipientId").toString())); + } + if ((jsonObj.get("routingOrder") != null && !jsonObj.get("routingOrder").isJsonNull()) && !jsonObj.get("routingOrder").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `routingOrder` to be a primitive type in the JSON string but got `%s`", jsonObj.get("routingOrder").toString())); + } + if ((jsonObj.get("suppressEmails") != null && !jsonObj.get("suppressEmails").isJsonNull()) && !jsonObj.get("suppressEmails").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `suppressEmails` to be a primitive type in the JSON string but got `%s`", jsonObj.get("suppressEmails").toString())); + } + // validate the optional field `tabs` + if (jsonObj.get("tabs") != null && !jsonObj.get("tabs").isJsonNull()) { + DocusignSigningTabs.validateJsonElement(jsonObj.get("tabs")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("hostEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `hostEmail` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("hostEmail").toString())); - } - if (!jsonObj.get("hostName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `hostName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("hostName").toString())); - } - if (!jsonObj.get("signerName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `signerName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("signerName").toString())); - } - if ((jsonObj.get("signerEmail") != null && !jsonObj.get("signerEmail").isJsonNull()) - && !jsonObj.get("signerEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `signerEmail` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("signerEmail").toString())); - } - if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) - && !jsonObj.get("recipientId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("recipientId").toString())); - } - if ((jsonObj.get("routingOrder") != null && !jsonObj.get("routingOrder").isJsonNull()) - && !jsonObj.get("routingOrder").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `routingOrder` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("routingOrder").toString())); - } - if ((jsonObj.get("suppressEmails") != null && !jsonObj.get("suppressEmails").isJsonNull()) - && !jsonObj.get("suppressEmails").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `suppressEmails` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("suppressEmails").toString())); - } - // validate the optional field `tabs` - if (jsonObj.get("tabs") != null && !jsonObj.get("tabs").isJsonNull()) { - DocusignSigningTabs.validateJsonElement(jsonObj.get("tabs")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignInpersonSigner.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignInpersonSigner' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocusignInpersonSigner.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignInpersonSigner value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignInpersonSigner read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignInpersonSigner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignInpersonSigner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocusignInpersonSigner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignInpersonSigner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignInpersonSigner read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignNotification.java b/src/main/java/com/formkiq/client/model/DocusignNotification.java index 840355b95..bd2ff7119 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotification.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotification.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * DocusignNotification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignNotification { public static final String SERIALIZED_NAME_USE_ACCOUNT_DEFAULTS = "useAccountDefaults"; @SerializedName(SERIALIZED_NAME_USE_ACCOUNT_DEFAULTS) @@ -78,19 +69,16 @@ public class DocusignNotification { @javax.annotation.Nullable private DocusignNotificationReminders reminders; - public DocusignNotification() {} + public DocusignNotification() { + } - public DocusignNotification useAccountDefaults( - @javax.annotation.Nullable String useAccountDefaults) { + public DocusignNotification useAccountDefaults(@javax.annotation.Nullable String useAccountDefaults) { this.useAccountDefaults = useAccountDefaults; return this; } /** - * When true, the account default notification settings are used for the envelope, overriding the - * reminders and expirations settings. When false, the reminders and expirations settings - * specified in this request are used. The default value is false. - * + * When true, the account default notification settings are used for the envelope, overriding the reminders and expirations settings. When false, the reminders and expirations settings specified in this request are used. The default value is false. * @return useAccountDefaults */ @javax.annotation.Nullable @@ -103,15 +91,13 @@ public void setUseAccountDefaults(@javax.annotation.Nullable String useAccountDe } - public DocusignNotification expirations( - @javax.annotation.Nullable DocusignNotificationExpirations expirations) { + public DocusignNotification expirations(@javax.annotation.Nullable DocusignNotificationExpirations expirations) { this.expirations = expirations; return this; } /** * Get expirations - * * @return expirations */ @javax.annotation.Nullable @@ -119,21 +105,18 @@ public DocusignNotificationExpirations getExpirations() { return expirations; } - public void setExpirations( - @javax.annotation.Nullable DocusignNotificationExpirations expirations) { + public void setExpirations(@javax.annotation.Nullable DocusignNotificationExpirations expirations) { this.expirations = expirations; } - public DocusignNotification reminders( - @javax.annotation.Nullable DocusignNotificationReminders reminders) { + public DocusignNotification reminders(@javax.annotation.Nullable DocusignNotificationReminders reminders) { this.reminders = reminders; return this; } /** * Get reminders - * * @return reminders */ @javax.annotation.Nullable @@ -156,9 +139,9 @@ public boolean equals(Object o) { return false; } DocusignNotification docusignNotification = (DocusignNotification) o; - return Objects.equals(this.useAccountDefaults, docusignNotification.useAccountDefaults) - && Objects.equals(this.expirations, docusignNotification.expirations) - && Objects.equals(this.reminders, docusignNotification.reminders); + return Objects.equals(this.useAccountDefaults, docusignNotification.useAccountDefaults) && + Objects.equals(this.expirations, docusignNotification.expirations) && + Objects.equals(this.reminders, docusignNotification.reminders); } @Override @@ -178,7 +161,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -193,8 +177,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("useAccountDefaults", "expirations", "reminders")); + openapiFields = new HashSet(Arrays.asList("useAccountDefaults", "expirations", "reminders")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -207,68 +190,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignNotification */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignNotification.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocusignNotification is not found in the empty JSON string", - DocusignNotification.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocusignNotification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignNotification is not found in the empty JSON string", DocusignNotification.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignNotification.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocusignNotification` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignNotification.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignNotification` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("useAccountDefaults") != null && !jsonObj.get("useAccountDefaults").isJsonNull()) && !jsonObj.get("useAccountDefaults").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `useAccountDefaults` to be a primitive type in the JSON string but got `%s`", jsonObj.get("useAccountDefaults").toString())); + } + // validate the optional field `expirations` + if (jsonObj.get("expirations") != null && !jsonObj.get("expirations").isJsonNull()) { + DocusignNotificationExpirations.validateJsonElement(jsonObj.get("expirations")); + } + // validate the optional field `reminders` + if (jsonObj.get("reminders") != null && !jsonObj.get("reminders").isJsonNull()) { + DocusignNotificationReminders.validateJsonElement(jsonObj.get("reminders")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("useAccountDefaults") != null - && !jsonObj.get("useAccountDefaults").isJsonNull()) - && !jsonObj.get("useAccountDefaults").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `useAccountDefaults` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("useAccountDefaults").toString())); - } - // validate the optional field `expirations` - if (jsonObj.get("expirations") != null && !jsonObj.get("expirations").isJsonNull()) { - DocusignNotificationExpirations.validateJsonElement(jsonObj.get("expirations")); - } - // validate the optional field `reminders` - if (jsonObj.get("reminders") != null && !jsonObj.get("reminders").isJsonNull()) { - DocusignNotificationReminders.validateJsonElement(jsonObj.get("reminders")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignNotification.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignNotification' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocusignNotification.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignNotification value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignNotification read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignNotification.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignNotification' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocusignNotification.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignNotification value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignNotification read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java b/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java index 0b3211507..2fc982595 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * DocusignNotificationExpirations */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignNotificationExpirations { public static final String SERIALIZED_NAME_EXPIRE_AFTER = "expireAfter"; @SerializedName(SERIALIZED_NAME_EXPIRE_AFTER) @@ -76,18 +67,16 @@ public class DocusignNotificationExpirations { @javax.annotation.Nullable private String expireWarn; - public DocusignNotificationExpirations() {} + public DocusignNotificationExpirations() { + } - public DocusignNotificationExpirations expireAfter( - @javax.annotation.Nullable String expireAfter) { + public DocusignNotificationExpirations expireAfter(@javax.annotation.Nullable String expireAfter) { this.expireAfter = expireAfter; return this; } /** - * An integer that sets the number of days the envelope is active. For this value to be used, - * expireEnabled must be explicitly set to true. - * + * An integer that sets the number of days the envelope is active. For this value to be used, expireEnabled must be explicitly set to true. * @return expireAfter */ @javax.annotation.Nullable @@ -100,15 +89,13 @@ public void setExpireAfter(@javax.annotation.Nullable String expireAfter) { } - public DocusignNotificationExpirations expireEnabled( - @javax.annotation.Nullable String expireEnabled) { + public DocusignNotificationExpirations expireEnabled(@javax.annotation.Nullable String expireEnabled) { this.expireEnabled = expireEnabled; return this; } /** * When true, the envelope expires in the number of days set by expireAfter. - * * @return expireEnabled */ @javax.annotation.Nullable @@ -127,9 +114,7 @@ public DocusignNotificationExpirations expireWarn(@javax.annotation.Nullable Str } /** - * An integer that specifying the number of days before the envelope expires that an expiration - * warning email is sent to the recipient. - * + * An integer that specifying the number of days before the envelope expires that an expiration warning email is sent to the recipient. * @return expireWarn */ @javax.annotation.Nullable @@ -151,11 +136,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DocusignNotificationExpirations docusignNotificationExpirations = - (DocusignNotificationExpirations) o; - return Objects.equals(this.expireAfter, docusignNotificationExpirations.expireAfter) - && Objects.equals(this.expireEnabled, docusignNotificationExpirations.expireEnabled) - && Objects.equals(this.expireWarn, docusignNotificationExpirations.expireWarn); + DocusignNotificationExpirations docusignNotificationExpirations = (DocusignNotificationExpirations) o; + return Objects.equals(this.expireAfter, docusignNotificationExpirations.expireAfter) && + Objects.equals(this.expireEnabled, docusignNotificationExpirations.expireEnabled) && + Objects.equals(this.expireWarn, docusignNotificationExpirations.expireWarn); } @Override @@ -175,7 +159,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,8 +175,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("expireAfter", "expireEnabled", "expireWarn")); + openapiFields = new HashSet(Arrays.asList("expireAfter", "expireEnabled", "expireWarn")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -201,78 +185,60 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * DocusignNotificationExpirations + * @throws IOException if the JSON Element is invalid with respect to DocusignNotificationExpirations */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignNotificationExpirations.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocusignNotificationExpirations is not found in the empty JSON string", - DocusignNotificationExpirations.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocusignNotificationExpirations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignNotificationExpirations is not found in the empty JSON string", DocusignNotificationExpirations.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignNotificationExpirations.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocusignNotificationExpirations` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignNotificationExpirations.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignNotificationExpirations` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("expireAfter") != null && !jsonObj.get("expireAfter").isJsonNull()) && !jsonObj.get("expireAfter").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expireAfter` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expireAfter").toString())); + } + if ((jsonObj.get("expireEnabled") != null && !jsonObj.get("expireEnabled").isJsonNull()) && !jsonObj.get("expireEnabled").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expireEnabled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expireEnabled").toString())); + } + if ((jsonObj.get("expireWarn") != null && !jsonObj.get("expireWarn").isJsonNull()) && !jsonObj.get("expireWarn").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expireWarn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expireWarn").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("expireAfter") != null && !jsonObj.get("expireAfter").isJsonNull()) - && !jsonObj.get("expireAfter").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `expireAfter` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("expireAfter").toString())); - } - if ((jsonObj.get("expireEnabled") != null && !jsonObj.get("expireEnabled").isJsonNull()) - && !jsonObj.get("expireEnabled").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `expireEnabled` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("expireEnabled").toString())); - } - if ((jsonObj.get("expireWarn") != null && !jsonObj.get("expireWarn").isJsonNull()) - && !jsonObj.get("expireWarn").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `expireWarn` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("expireWarn").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignNotificationExpirations.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignNotificationExpirations' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocusignNotificationExpirations.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignNotificationExpirations value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignNotificationExpirations read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignNotificationExpirations.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignNotificationExpirations' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocusignNotificationExpirations.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignNotificationExpirations value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignNotificationExpirations read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -281,8 +247,7 @@ public DocusignNotificationExpirations read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of DocusignNotificationExpirations - * @throws IOException if the JSON string is invalid with respect to - * DocusignNotificationExpirations + * @throws IOException if the JSON string is invalid with respect to DocusignNotificationExpirations */ public static DocusignNotificationExpirations fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DocusignNotificationExpirations.class); diff --git a/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java b/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java index e5e0a1b01..2969254d5 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * DocusignNotificationReminders */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignNotificationReminders { public static final String SERIALIZED_NAME_REMINDER_DELAY = "reminderDelay"; @SerializedName(SERIALIZED_NAME_REMINDER_DELAY) @@ -76,18 +67,16 @@ public class DocusignNotificationReminders { @javax.annotation.Nullable private String reminderFrequency; - public DocusignNotificationReminders() {} + public DocusignNotificationReminders() { + } - public DocusignNotificationReminders reminderDelay( - @javax.annotation.Nullable String reminderDelay) { + public DocusignNotificationReminders reminderDelay(@javax.annotation.Nullable String reminderDelay) { this.reminderDelay = reminderDelay; return this; } /** - * An integer specifying the number of days after the recipient receives the envelope that - * reminder emails are sent to the recipient. - * + * An integer specifying the number of days after the recipient receives the envelope that reminder emails are sent to the recipient. * @return reminderDelay */ @javax.annotation.Nullable @@ -100,15 +89,13 @@ public void setReminderDelay(@javax.annotation.Nullable String reminderDelay) { } - public DocusignNotificationReminders reminderEnabled( - @javax.annotation.Nullable String reminderEnabled) { + public DocusignNotificationReminders reminderEnabled(@javax.annotation.Nullable String reminderEnabled) { this.reminderEnabled = reminderEnabled; return this; } /** * When true, reminders are enabled. The default value is false. - * * @return reminderEnabled */ @javax.annotation.Nullable @@ -121,15 +108,13 @@ public void setReminderEnabled(@javax.annotation.Nullable String reminderEnabled } - public DocusignNotificationReminders reminderFrequency( - @javax.annotation.Nullable String reminderFrequency) { + public DocusignNotificationReminders reminderFrequency(@javax.annotation.Nullable String reminderFrequency) { this.reminderFrequency = reminderFrequency; return this; } /** * An integer specifying the interval in days between reminder emails. - * * @return reminderFrequency */ @javax.annotation.Nullable @@ -152,9 +137,9 @@ public boolean equals(Object o) { return false; } DocusignNotificationReminders docusignNotificationReminders = (DocusignNotificationReminders) o; - return Objects.equals(this.reminderDelay, docusignNotificationReminders.reminderDelay) - && Objects.equals(this.reminderEnabled, docusignNotificationReminders.reminderEnabled) - && Objects.equals(this.reminderFrequency, docusignNotificationReminders.reminderFrequency); + return Objects.equals(this.reminderDelay, docusignNotificationReminders.reminderDelay) && + Objects.equals(this.reminderEnabled, docusignNotificationReminders.reminderEnabled) && + Objects.equals(this.reminderFrequency, docusignNotificationReminders.reminderFrequency); } @Override @@ -174,7 +159,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,8 +175,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("reminderDelay", "reminderEnabled", "reminderFrequency")); + openapiFields = new HashSet(Arrays.asList("reminderDelay", "reminderEnabled", "reminderFrequency")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -200,76 +185,60 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * DocusignNotificationReminders + * @throws IOException if the JSON Element is invalid with respect to DocusignNotificationReminders */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignNotificationReminders.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocusignNotificationReminders is not found in the empty JSON string", - DocusignNotificationReminders.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocusignNotificationReminders.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignNotificationReminders is not found in the empty JSON string", DocusignNotificationReminders.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignNotificationReminders.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocusignNotificationReminders` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignNotificationReminders.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignNotificationReminders` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("reminderDelay") != null && !jsonObj.get("reminderDelay").isJsonNull()) && !jsonObj.get("reminderDelay").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reminderDelay` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reminderDelay").toString())); + } + if ((jsonObj.get("reminderEnabled") != null && !jsonObj.get("reminderEnabled").isJsonNull()) && !jsonObj.get("reminderEnabled").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reminderEnabled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reminderEnabled").toString())); + } + if ((jsonObj.get("reminderFrequency") != null && !jsonObj.get("reminderFrequency").isJsonNull()) && !jsonObj.get("reminderFrequency").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reminderFrequency` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reminderFrequency").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("reminderDelay") != null && !jsonObj.get("reminderDelay").isJsonNull()) - && !jsonObj.get("reminderDelay").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `reminderDelay` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("reminderDelay").toString())); - } - if ((jsonObj.get("reminderEnabled") != null && !jsonObj.get("reminderEnabled").isJsonNull()) - && !jsonObj.get("reminderEnabled").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `reminderEnabled` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("reminderEnabled").toString())); - } - if ((jsonObj.get("reminderFrequency") != null && !jsonObj.get("reminderFrequency").isJsonNull()) - && !jsonObj.get("reminderFrequency").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `reminderFrequency` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("reminderFrequency").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignNotificationReminders.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignNotificationReminders' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocusignNotificationReminders.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignNotificationReminders value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignNotificationReminders read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignNotificationReminders.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignNotificationReminders' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocusignNotificationReminders.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignNotificationReminders value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignNotificationReminders read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignRecipientView.java b/src/main/java/com/formkiq/client/model/DocusignRecipientView.java index f4660a45e..88bb1580b 100644 --- a/src/main/java/com/formkiq/client/model/DocusignRecipientView.java +++ b/src/main/java/com/formkiq/client/model/DocusignRecipientView.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * DocusignRecipientView */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignRecipientView { public static final String SERIALIZED_NAME_RETURN_URL = "returnUrl"; @SerializedName(SERIALIZED_NAME_RETURN_URL) @@ -98,7 +89,8 @@ public class DocusignRecipientView { @javax.annotation.Nullable private List messageOrigins = new ArrayList<>(); - public DocusignRecipientView() {} + public DocusignRecipientView() { + } public DocusignRecipientView returnUrl(@javax.annotation.Nullable String returnUrl) { this.returnUrl = returnUrl; @@ -107,7 +99,6 @@ public DocusignRecipientView returnUrl(@javax.annotation.Nullable String returnU /** * Identifies the return point after sending the envelope - * * @return returnUrl */ @javax.annotation.Nullable @@ -127,7 +118,6 @@ public DocusignRecipientView recipientId(@javax.annotation.Nullable String recip /** * A reference used to map recipients to other objects, such as specific document tabs. - * * @return recipientId */ @javax.annotation.Nullable @@ -147,7 +137,6 @@ public DocusignRecipientView userName(@javax.annotation.Nullable String userName /** * The username of the recipient. You can use either email and userName. - * * @return userName */ @javax.annotation.Nullable @@ -167,7 +156,6 @@ public DocusignRecipientView clientUserId(@javax.annotation.Nullable String clie /** * Specifies unique identifier for signer - * * @return clientUserId */ @javax.annotation.Nullable @@ -187,7 +175,6 @@ public DocusignRecipientView email(@javax.annotation.Nullable String email) { /** * Specifies the email of the recipient - * * @return email */ @javax.annotation.Nullable @@ -200,8 +187,7 @@ public void setEmail(@javax.annotation.Nullable String email) { } - public DocusignRecipientView frameAncestors( - @javax.annotation.Nullable List frameAncestors) { + public DocusignRecipientView frameAncestors(@javax.annotation.Nullable List frameAncestors) { this.frameAncestors = frameAncestors; return this; } @@ -215,9 +201,7 @@ public DocusignRecipientView addFrameAncestorsItem(String frameAncestorsItem) { } /** - * An array of ancestors that can embed the frame. Include the domain where the envelope will be - * embedded and the same URL as messageOrigins. - * + * An array of ancestors that can embed the frame. Include the domain where the envelope will be embedded and the same URL as messageOrigins. * @return frameAncestors */ @javax.annotation.Nullable @@ -230,8 +214,7 @@ public void setFrameAncestors(@javax.annotation.Nullable List frameAnces } - public DocusignRecipientView messageOrigins( - @javax.annotation.Nullable List messageOrigins) { + public DocusignRecipientView messageOrigins(@javax.annotation.Nullable List messageOrigins) { this.messageOrigins = messageOrigins; return this; } @@ -246,7 +229,6 @@ public DocusignRecipientView addMessageOriginsItem(String messageOriginsItem) { /** * The originating domain for the signature request message - * * @return messageOrigins */ @javax.annotation.Nullable @@ -269,19 +251,18 @@ public boolean equals(Object o) { return false; } DocusignRecipientView docusignRecipientView = (DocusignRecipientView) o; - return Objects.equals(this.returnUrl, docusignRecipientView.returnUrl) - && Objects.equals(this.recipientId, docusignRecipientView.recipientId) - && Objects.equals(this.userName, docusignRecipientView.userName) - && Objects.equals(this.clientUserId, docusignRecipientView.clientUserId) - && Objects.equals(this.email, docusignRecipientView.email) - && Objects.equals(this.frameAncestors, docusignRecipientView.frameAncestors) - && Objects.equals(this.messageOrigins, docusignRecipientView.messageOrigins); + return Objects.equals(this.returnUrl, docusignRecipientView.returnUrl) && + Objects.equals(this.recipientId, docusignRecipientView.recipientId) && + Objects.equals(this.userName, docusignRecipientView.userName) && + Objects.equals(this.clientUserId, docusignRecipientView.clientUserId) && + Objects.equals(this.email, docusignRecipientView.email) && + Objects.equals(this.frameAncestors, docusignRecipientView.frameAncestors) && + Objects.equals(this.messageOrigins, docusignRecipientView.messageOrigins); } @Override public int hashCode() { - return Objects.hash(returnUrl, recipientId, userName, clientUserId, email, frameAncestors, - messageOrigins); + return Objects.hash(returnUrl, recipientId, userName, clientUserId, email, frameAncestors, messageOrigins); } @Override @@ -300,7 +281,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -315,8 +297,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("returnUrl", "recipientId", "userName", - "clientUserId", "email", "frameAncestors", "messageOrigins")); + openapiFields = new HashSet(Arrays.asList("returnUrl", "recipientId", "userName", "clientUserId", "email", "frameAncestors", "messageOrigins")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -329,97 +310,71 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignRecipientView */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignRecipientView.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocusignRecipientView is not found in the empty JSON string", - DocusignRecipientView.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocusignRecipientView.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignRecipientView is not found in the empty JSON string", DocusignRecipientView.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignRecipientView.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocusignRecipientView` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignRecipientView.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignRecipientView` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("returnUrl") != null && !jsonObj.get("returnUrl").isJsonNull()) && !jsonObj.get("returnUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `returnUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("returnUrl").toString())); + } + if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) && !jsonObj.get("recipientId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recipientId").toString())); + } + if ((jsonObj.get("userName") != null && !jsonObj.get("userName").isJsonNull()) && !jsonObj.get("userName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userName").toString())); + } + if ((jsonObj.get("clientUserId") != null && !jsonObj.get("clientUserId").isJsonNull()) && !jsonObj.get("clientUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `clientUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientUserId").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("frameAncestors") != null && !jsonObj.get("frameAncestors").isJsonNull() && !jsonObj.get("frameAncestors").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `frameAncestors` to be an array in the JSON string but got `%s`", jsonObj.get("frameAncestors").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("messageOrigins") != null && !jsonObj.get("messageOrigins").isJsonNull() && !jsonObj.get("messageOrigins").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `messageOrigins` to be an array in the JSON string but got `%s`", jsonObj.get("messageOrigins").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("returnUrl") != null && !jsonObj.get("returnUrl").isJsonNull()) - && !jsonObj.get("returnUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `returnUrl` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("returnUrl").toString())); - } - if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) - && !jsonObj.get("recipientId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("recipientId").toString())); - } - if ((jsonObj.get("userName") != null && !jsonObj.get("userName").isJsonNull()) - && !jsonObj.get("userName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userName").toString())); - } - if ((jsonObj.get("clientUserId") != null && !jsonObj.get("clientUserId").isJsonNull()) - && !jsonObj.get("clientUserId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `clientUserId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("clientUserId").toString())); - } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) - && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `email` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("email").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("frameAncestors") != null && !jsonObj.get("frameAncestors").isJsonNull() - && !jsonObj.get("frameAncestors").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `frameAncestors` to be an array in the JSON string but got `%s`", - jsonObj.get("frameAncestors").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("messageOrigins") != null && !jsonObj.get("messageOrigins").isJsonNull() - && !jsonObj.get("messageOrigins").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `messageOrigins` to be an array in the JSON string but got `%s`", - jsonObj.get("messageOrigins").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignRecipientView.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignRecipientView' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocusignRecipientView.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignRecipientView value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignRecipientView read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignRecipientView.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignRecipientView' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocusignRecipientView.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignRecipientView value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignRecipientView read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java b/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java index 9706eb220..ea5869bc5 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java +++ b/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * DocusignSignHereTabs */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignSignHereTabs { public static final String SERIALIZED_NAME_ANCHOR_STRING = "anchorString"; @SerializedName(SERIALIZED_NAME_ANCHOR_STRING) @@ -76,8 +67,7 @@ public class DocusignSignHereTabs { @javax.annotation.Nullable private String anchorYOffset; - public static final String SERIALIZED_NAME_ANCHOR_IGNORE_IF_NOT_PRESENT = - "anchorIgnoreIfNotPresent"; + public static final String SERIALIZED_NAME_ANCHOR_IGNORE_IF_NOT_PRESENT = "anchorIgnoreIfNotPresent"; @SerializedName(SERIALIZED_NAME_ANCHOR_IGNORE_IF_NOT_PRESENT) @javax.annotation.Nullable private String anchorIgnoreIfNotPresent; @@ -102,7 +92,8 @@ public class DocusignSignHereTabs { @javax.annotation.Nullable private String pageNumber; - public DocusignSignHereTabs() {} + public DocusignSignHereTabs() { + } public DocusignSignHereTabs anchorString(@javax.annotation.Nullable String anchorString) { this.anchorString = anchorString; @@ -111,7 +102,6 @@ public DocusignSignHereTabs anchorString(@javax.annotation.Nullable String ancho /** * Specifies the string to find in the document and use as the basis for tab placement. - * * @return anchorString */ @javax.annotation.Nullable @@ -131,7 +121,6 @@ public DocusignSignHereTabs anchorXOffset(@javax.annotation.Nullable String anch /** * Specifies the X axis location of the tab in anchorUnits relative to the anchorString. - * * @return anchorXOffset */ @javax.annotation.Nullable @@ -151,7 +140,6 @@ public DocusignSignHereTabs anchorYOffset(@javax.annotation.Nullable String anch /** * Specifies the Y axis location of the tab in anchorUnits relative to the anchorString. - * * @return anchorYOffset */ @javax.annotation.Nullable @@ -164,15 +152,13 @@ public void setAnchorYOffset(@javax.annotation.Nullable String anchorYOffset) { } - public DocusignSignHereTabs anchorIgnoreIfNotPresent( - @javax.annotation.Nullable String anchorIgnoreIfNotPresent) { + public DocusignSignHereTabs anchorIgnoreIfNotPresent(@javax.annotation.Nullable String anchorIgnoreIfNotPresent) { this.anchorIgnoreIfNotPresent = anchorIgnoreIfNotPresent; return this; } /** * When true, this tab is ignored if the anchorString is not found in the document. - * * @return anchorIgnoreIfNotPresent */ @javax.annotation.Nullable @@ -180,8 +166,7 @@ public String getAnchorIgnoreIfNotPresent() { return anchorIgnoreIfNotPresent; } - public void setAnchorIgnoreIfNotPresent( - @javax.annotation.Nullable String anchorIgnoreIfNotPresent) { + public void setAnchorIgnoreIfNotPresent(@javax.annotation.Nullable String anchorIgnoreIfNotPresent) { this.anchorIgnoreIfNotPresent = anchorIgnoreIfNotPresent; } @@ -193,7 +178,6 @@ public DocusignSignHereTabs anchorUnits(@javax.annotation.Nullable String anchor /** * Specifies units of the anchorXOffset and anchorYOffset - * * @return anchorUnits */ @javax.annotation.Nullable @@ -213,7 +197,6 @@ public DocusignSignHereTabs xPosition(@javax.annotation.Nullable String xPositio /** * This property indicates the horizontal offset of the object on the page - * * @return xPosition */ @javax.annotation.Nullable @@ -233,7 +216,6 @@ public DocusignSignHereTabs yPosition(@javax.annotation.Nullable String yPositio /** * This property indicates the vertical offset of the object on the page - * * @return yPosition */ @javax.annotation.Nullable @@ -253,7 +235,6 @@ public DocusignSignHereTabs pageNumber(@javax.annotation.Nullable String pageNum /** * Specifies the page number on which the tab is located - * * @return pageNumber */ @javax.annotation.Nullable @@ -276,21 +257,19 @@ public boolean equals(Object o) { return false; } DocusignSignHereTabs docusignSignHereTabs = (DocusignSignHereTabs) o; - return Objects.equals(this.anchorString, docusignSignHereTabs.anchorString) - && Objects.equals(this.anchorXOffset, docusignSignHereTabs.anchorXOffset) - && Objects.equals(this.anchorYOffset, docusignSignHereTabs.anchorYOffset) - && Objects.equals(this.anchorIgnoreIfNotPresent, - docusignSignHereTabs.anchorIgnoreIfNotPresent) - && Objects.equals(this.anchorUnits, docusignSignHereTabs.anchorUnits) - && Objects.equals(this.xPosition, docusignSignHereTabs.xPosition) - && Objects.equals(this.yPosition, docusignSignHereTabs.yPosition) - && Objects.equals(this.pageNumber, docusignSignHereTabs.pageNumber); + return Objects.equals(this.anchorString, docusignSignHereTabs.anchorString) && + Objects.equals(this.anchorXOffset, docusignSignHereTabs.anchorXOffset) && + Objects.equals(this.anchorYOffset, docusignSignHereTabs.anchorYOffset) && + Objects.equals(this.anchorIgnoreIfNotPresent, docusignSignHereTabs.anchorIgnoreIfNotPresent) && + Objects.equals(this.anchorUnits, docusignSignHereTabs.anchorUnits) && + Objects.equals(this.xPosition, docusignSignHereTabs.xPosition) && + Objects.equals(this.yPosition, docusignSignHereTabs.yPosition) && + Objects.equals(this.pageNumber, docusignSignHereTabs.pageNumber); } @Override public int hashCode() { - return Objects.hash(anchorString, anchorXOffset, anchorYOffset, anchorIgnoreIfNotPresent, - anchorUnits, xPosition, yPosition, pageNumber); + return Objects.hash(anchorString, anchorXOffset, anchorYOffset, anchorIgnoreIfNotPresent, anchorUnits, xPosition, yPosition, pageNumber); } @Override @@ -300,8 +279,7 @@ public String toString() { sb.append(" anchorString: ").append(toIndentedString(anchorString)).append("\n"); sb.append(" anchorXOffset: ").append(toIndentedString(anchorXOffset)).append("\n"); sb.append(" anchorYOffset: ").append(toIndentedString(anchorYOffset)).append("\n"); - sb.append(" anchorIgnoreIfNotPresent: ").append(toIndentedString(anchorIgnoreIfNotPresent)) - .append("\n"); + sb.append(" anchorIgnoreIfNotPresent: ").append(toIndentedString(anchorIgnoreIfNotPresent)).append("\n"); sb.append(" anchorUnits: ").append(toIndentedString(anchorUnits)).append("\n"); sb.append(" xPosition: ").append(toIndentedString(xPosition)).append("\n"); sb.append(" yPosition: ").append(toIndentedString(yPosition)).append("\n"); @@ -311,7 +289,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -326,9 +305,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("anchorString", "anchorXOffset", "anchorYOffset", - "anchorIgnoreIfNotPresent", "anchorUnits", "xPosition", "yPosition", "pageNumber")); + openapiFields = new HashSet(Arrays.asList("anchorString", "anchorXOffset", "anchorYOffset", "anchorIgnoreIfNotPresent", "anchorUnits", "xPosition", "yPosition", "pageNumber")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -341,102 +318,72 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignSignHereTabs */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignSignHereTabs.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocusignSignHereTabs is not found in the empty JSON string", - DocusignSignHereTabs.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocusignSignHereTabs.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignSignHereTabs is not found in the empty JSON string", DocusignSignHereTabs.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignSignHereTabs.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocusignSignHereTabs` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignSignHereTabs.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignSignHereTabs` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("anchorString") != null && !jsonObj.get("anchorString").isJsonNull()) && !jsonObj.get("anchorString").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anchorString` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anchorString").toString())); + } + if ((jsonObj.get("anchorXOffset") != null && !jsonObj.get("anchorXOffset").isJsonNull()) && !jsonObj.get("anchorXOffset").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anchorXOffset` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anchorXOffset").toString())); + } + if ((jsonObj.get("anchorYOffset") != null && !jsonObj.get("anchorYOffset").isJsonNull()) && !jsonObj.get("anchorYOffset").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anchorYOffset` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anchorYOffset").toString())); + } + if ((jsonObj.get("anchorIgnoreIfNotPresent") != null && !jsonObj.get("anchorIgnoreIfNotPresent").isJsonNull()) && !jsonObj.get("anchorIgnoreIfNotPresent").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anchorIgnoreIfNotPresent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anchorIgnoreIfNotPresent").toString())); + } + if ((jsonObj.get("anchorUnits") != null && !jsonObj.get("anchorUnits").isJsonNull()) && !jsonObj.get("anchorUnits").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anchorUnits` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anchorUnits").toString())); + } + if ((jsonObj.get("xPosition") != null && !jsonObj.get("xPosition").isJsonNull()) && !jsonObj.get("xPosition").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `xPosition` to be a primitive type in the JSON string but got `%s`", jsonObj.get("xPosition").toString())); + } + if ((jsonObj.get("yPosition") != null && !jsonObj.get("yPosition").isJsonNull()) && !jsonObj.get("yPosition").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `yPosition` to be a primitive type in the JSON string but got `%s`", jsonObj.get("yPosition").toString())); + } + if ((jsonObj.get("pageNumber") != null && !jsonObj.get("pageNumber").isJsonNull()) && !jsonObj.get("pageNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pageNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pageNumber").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("anchorString") != null && !jsonObj.get("anchorString").isJsonNull()) - && !jsonObj.get("anchorString").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `anchorString` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("anchorString").toString())); - } - if ((jsonObj.get("anchorXOffset") != null && !jsonObj.get("anchorXOffset").isJsonNull()) - && !jsonObj.get("anchorXOffset").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `anchorXOffset` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("anchorXOffset").toString())); - } - if ((jsonObj.get("anchorYOffset") != null && !jsonObj.get("anchorYOffset").isJsonNull()) - && !jsonObj.get("anchorYOffset").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `anchorYOffset` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("anchorYOffset").toString())); - } - if ((jsonObj.get("anchorIgnoreIfNotPresent") != null - && !jsonObj.get("anchorIgnoreIfNotPresent").isJsonNull()) - && !jsonObj.get("anchorIgnoreIfNotPresent").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `anchorIgnoreIfNotPresent` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("anchorIgnoreIfNotPresent").toString())); - } - if ((jsonObj.get("anchorUnits") != null && !jsonObj.get("anchorUnits").isJsonNull()) - && !jsonObj.get("anchorUnits").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `anchorUnits` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("anchorUnits").toString())); - } - if ((jsonObj.get("xPosition") != null && !jsonObj.get("xPosition").isJsonNull()) - && !jsonObj.get("xPosition").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `xPosition` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("xPosition").toString())); - } - if ((jsonObj.get("yPosition") != null && !jsonObj.get("yPosition").isJsonNull()) - && !jsonObj.get("yPosition").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `yPosition` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("yPosition").toString())); - } - if ((jsonObj.get("pageNumber") != null && !jsonObj.get("pageNumber").isJsonNull()) - && !jsonObj.get("pageNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `pageNumber` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("pageNumber").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignSignHereTabs.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignSignHereTabs' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocusignSignHereTabs.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignSignHereTabs value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignSignHereTabs read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignSignHereTabs.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignSignHereTabs' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocusignSignHereTabs.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignSignHereTabs value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignSignHereTabs read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignSigner.java b/src/main/java/com/formkiq/client/model/DocusignSigner.java index b53338f09..e09f2ea33 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSigner.java +++ b/src/main/java/com/formkiq/client/model/DocusignSigner.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * DocusignSigner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignSigner { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -97,7 +88,8 @@ public class DocusignSigner { @javax.annotation.Nullable private DocusignSigningTabs tabs; - public DocusignSigner() {} + public DocusignSigner() { + } public DocusignSigner name(@javax.annotation.Nonnull String name) { this.name = name; @@ -106,7 +98,6 @@ public DocusignSigner name(@javax.annotation.Nonnull String name) { /** * Name of Signer - * * @return name */ @javax.annotation.Nonnull @@ -126,7 +117,6 @@ public DocusignSigner email(@javax.annotation.Nullable String email) { /** * Email of Signer - * * @return email */ @javax.annotation.Nullable @@ -146,7 +136,6 @@ public DocusignSigner clientUserId(@javax.annotation.Nullable String clientUserI /** * Specifies unique identifier for signer - * * @return clientUserId */ @javax.annotation.Nullable @@ -166,7 +155,6 @@ public DocusignSigner recipientId(@javax.annotation.Nullable String recipientId) /** * A reference used to map recipients to other objects, such as specific document tabs. - * * @return recipientId */ @javax.annotation.Nullable @@ -186,7 +174,6 @@ public DocusignSigner routingOrder(@javax.annotation.Nullable String routingOrde /** * Specifies the routing order of the recipient in the envelope. - * * @return routingOrder */ @javax.annotation.Nullable @@ -205,9 +192,7 @@ public DocusignSigner suppressEmails(@javax.annotation.Nullable String suppressE } /** - * When true, email notifications are suppressed for the recipient, and they must access envelopes - * and documents from their Docusign inbox. - * + * When true, email notifications are suppressed for the recipient, and they must access envelopes and documents from their Docusign inbox. * @return suppressEmails */ @javax.annotation.Nullable @@ -227,7 +212,6 @@ public DocusignSigner tabs(@javax.annotation.Nullable DocusignSigningTabs tabs) /** * Get tabs - * * @return tabs */ @javax.annotation.Nullable @@ -250,13 +234,13 @@ public boolean equals(Object o) { return false; } DocusignSigner docusignSigner = (DocusignSigner) o; - return Objects.equals(this.name, docusignSigner.name) - && Objects.equals(this.email, docusignSigner.email) - && Objects.equals(this.clientUserId, docusignSigner.clientUserId) - && Objects.equals(this.recipientId, docusignSigner.recipientId) - && Objects.equals(this.routingOrder, docusignSigner.routingOrder) - && Objects.equals(this.suppressEmails, docusignSigner.suppressEmails) - && Objects.equals(this.tabs, docusignSigner.tabs); + return Objects.equals(this.name, docusignSigner.name) && + Objects.equals(this.email, docusignSigner.email) && + Objects.equals(this.clientUserId, docusignSigner.clientUserId) && + Objects.equals(this.recipientId, docusignSigner.recipientId) && + Objects.equals(this.routingOrder, docusignSigner.routingOrder) && + Objects.equals(this.suppressEmails, docusignSigner.suppressEmails) && + Objects.equals(this.tabs, docusignSigner.tabs); } @Override @@ -280,7 +264,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -295,8 +280,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "email", "clientUserId", - "recipientId", "routingOrder", "suppressEmails", "tabs")); + openapiFields = new HashSet(Arrays.asList("name", "email", "clientUserId", "recipientId", "routingOrder", "suppressEmails", "tabs")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); @@ -309,101 +293,77 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignSigner */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignSigner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocusignSigner is not found in the empty JSON string", - DocusignSigner.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocusignSigner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignSigner is not found in the empty JSON string", DocusignSigner.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignSigner.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocusignSigner` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignSigner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignSigner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocusignSigner.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocusignSigner.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + } + if ((jsonObj.get("clientUserId") != null && !jsonObj.get("clientUserId").isJsonNull()) && !jsonObj.get("clientUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `clientUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientUserId").toString())); + } + if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) && !jsonObj.get("recipientId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recipientId").toString())); + } + if ((jsonObj.get("routingOrder") != null && !jsonObj.get("routingOrder").isJsonNull()) && !jsonObj.get("routingOrder").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `routingOrder` to be a primitive type in the JSON string but got `%s`", jsonObj.get("routingOrder").toString())); + } + if ((jsonObj.get("suppressEmails") != null && !jsonObj.get("suppressEmails").isJsonNull()) && !jsonObj.get("suppressEmails").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `suppressEmails` to be a primitive type in the JSON string but got `%s`", jsonObj.get("suppressEmails").toString())); + } + // validate the optional field `tabs` + if (jsonObj.get("tabs") != null && !jsonObj.get("tabs").isJsonNull()) { + DocusignSigningTabs.validateJsonElement(jsonObj.get("tabs")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) - && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `email` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("email").toString())); - } - if ((jsonObj.get("clientUserId") != null && !jsonObj.get("clientUserId").isJsonNull()) - && !jsonObj.get("clientUserId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `clientUserId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("clientUserId").toString())); - } - if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) - && !jsonObj.get("recipientId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("recipientId").toString())); - } - if ((jsonObj.get("routingOrder") != null && !jsonObj.get("routingOrder").isJsonNull()) - && !jsonObj.get("routingOrder").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `routingOrder` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("routingOrder").toString())); - } - if ((jsonObj.get("suppressEmails") != null && !jsonObj.get("suppressEmails").isJsonNull()) - && !jsonObj.get("suppressEmails").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `suppressEmails` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("suppressEmails").toString())); - } - // validate the optional field `tabs` - if (jsonObj.get("tabs") != null && !jsonObj.get("tabs").isJsonNull()) { - DocusignSigningTabs.validateJsonElement(jsonObj.get("tabs")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignSigner.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignSigner' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocusignSigner.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignSigner value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignSigner read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignSigner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignSigner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocusignSigner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignSigner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignSigner read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java b/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java index 2628329ed..5207b7a55 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java +++ b/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * DocusignSigningTabs */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignSigningTabs { public static final String SERIALIZED_NAME_SIGN_HERE_TABS = "signHereTabs"; @SerializedName(SERIALIZED_NAME_SIGN_HERE_TABS) @javax.annotation.Nullable private List signHereTabs = new ArrayList<>(); - public DocusignSigningTabs() {} + public DocusignSigningTabs() { + } - public DocusignSigningTabs signHereTabs( - @javax.annotation.Nullable List signHereTabs) { + public DocusignSigningTabs signHereTabs(@javax.annotation.Nullable List signHereTabs) { this.signHereTabs = signHereTabs; return this; } @@ -87,7 +78,6 @@ public DocusignSigningTabs addSignHereTabsItem(DocusignSignHereTabs signHereTabs /** * A list of Sign Here tabs - * * @return signHereTabs */ @javax.annotation.Nullable @@ -128,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -156,69 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignSigningTabs */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignSigningTabs.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in DocusignSigningTabs is not found in the empty JSON string", - DocusignSigningTabs.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!DocusignSigningTabs.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignSigningTabs is not found in the empty JSON string", DocusignSigningTabs.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignSigningTabs.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `DocusignSigningTabs` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignSigningTabs.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignSigningTabs` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("signHereTabs") != null && !jsonObj.get("signHereTabs").isJsonNull()) { - JsonArray jsonArraysignHereTabs = jsonObj.getAsJsonArray("signHereTabs"); - if (jsonArraysignHereTabs != null) { - // ensure the json data is an array - if (!jsonObj.get("signHereTabs").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `signHereTabs` to be an array in the JSON string but got `%s`", - jsonObj.get("signHereTabs").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("signHereTabs") != null && !jsonObj.get("signHereTabs").isJsonNull()) { + JsonArray jsonArraysignHereTabs = jsonObj.getAsJsonArray("signHereTabs"); + if (jsonArraysignHereTabs != null) { + // ensure the json data is an array + if (!jsonObj.get("signHereTabs").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signHereTabs` to be an array in the JSON string but got `%s`", jsonObj.get("signHereTabs").toString())); + } + + // validate the optional field `signHereTabs` (array) + for (int i = 0; i < jsonArraysignHereTabs.size(); i++) { + DocusignSignHereTabs.validateJsonElement(jsonArraysignHereTabs.get(i)); + }; } - - // validate the optional field `signHereTabs` (array) - for (int i = 0; i < jsonArraysignHereTabs.size(); i++) { - DocusignSignHereTabs.validateJsonElement(jsonArraysignHereTabs.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignSigningTabs.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignSigningTabs' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DocusignSigningTabs.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignSigningTabs value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignSigningTabs read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignSigningTabs.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignSigningTabs' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DocusignSigningTabs.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignSigningTabs value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignSigningTabs read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Entity.java b/src/main/java/com/formkiq/client/model/Entity.java index dfe6b644a..63a598f4e 100644 --- a/src/main/java/com/formkiq/client/model/Entity.java +++ b/src/main/java/com/formkiq/client/model/Entity.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * Entity */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Entity { public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; @SerializedName(SERIALIZED_NAME_ENTITY_ID) @@ -89,7 +80,8 @@ public class Entity { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public Entity() {} + public Entity() { + } public Entity entityId(@javax.annotation.Nullable String entityId) { this.entityId = entityId; @@ -98,7 +90,6 @@ public Entity entityId(@javax.annotation.Nullable String entityId) { /** * Entity identifier - * * @return entityId */ @javax.annotation.Nullable @@ -118,7 +109,6 @@ public Entity entityTypeId(@javax.annotation.Nullable String entityTypeId) { /** * Entity Type identifier - * * @return entityTypeId */ @javax.annotation.Nullable @@ -138,7 +128,6 @@ public Entity name(@javax.annotation.Nullable String name) { /** * Entity Name - * * @return name */ @javax.annotation.Nullable @@ -158,7 +147,6 @@ public Entity insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -186,7 +174,6 @@ public Entity addAttributesItem(EntityAttribute attributesItem) { /** * List of Entity Attributes - * * @return attributes */ @javax.annotation.Nullable @@ -209,11 +196,11 @@ public boolean equals(Object o) { return false; } Entity entity = (Entity) o; - return Objects.equals(this.entityId, entity.entityId) - && Objects.equals(this.entityTypeId, entity.entityTypeId) - && Objects.equals(this.name, entity.name) - && Objects.equals(this.insertedDate, entity.insertedDate) - && Objects.equals(this.attributes, entity.attributes); + return Objects.equals(this.entityId, entity.entityId) && + Objects.equals(this.entityTypeId, entity.entityTypeId) && + Objects.equals(this.name, entity.name) && + Objects.equals(this.insertedDate, entity.insertedDate) && + Objects.equals(this.attributes, entity.attributes); } @Override @@ -235,7 +222,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -250,8 +238,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("entityId", "entityTypeId", "name", "insertedDate", "attributes")); + openapiFields = new HashSet(Arrays.asList("entityId", "entityTypeId", "name", "insertedDate", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -264,92 +251,74 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Entity */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Entity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Entity is not found in the empty JSON string", - Entity.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Entity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Entity is not found in the empty JSON string", Entity.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Entity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Entity` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Entity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Entity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) - && !jsonObj.get("entityId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("entityId").toString())); - } - if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) - && !jsonObj.get("entityTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("entityTypeId").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) && !jsonObj.get("entityId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityId").toString())); + } + if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) && !jsonObj.get("entityTypeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityTypeId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + EntityAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - EntityAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Entity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Entity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Entity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Entity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Entity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Entity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Entity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Entity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Entity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Entity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/EntityAttribute.java b/src/main/java/com/formkiq/client/model/EntityAttribute.java index 6caab5946..123211648 100644 --- a/src/main/java/com/formkiq/client/model/EntityAttribute.java +++ b/src/main/java/com/formkiq/client/model/EntityAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * EntityAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class EntityAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -100,7 +91,8 @@ public class EntityAttribute { @javax.annotation.Nullable private AttributeValueType valueType; - public EntityAttribute() {} + public EntityAttribute() { + } public EntityAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -109,7 +101,6 @@ public EntityAttribute key(@javax.annotation.Nullable String key) { /** * Attribute key - * * @return key */ @javax.annotation.Nullable @@ -129,7 +120,6 @@ public EntityAttribute stringValue(@javax.annotation.Nullable String stringValue /** * Attribute with string value - * * @return stringValue */ @javax.annotation.Nullable @@ -157,7 +147,6 @@ public EntityAttribute addStringValuesItem(String stringValuesItem) { /** * Attribute with string values - * * @return stringValues */ @javax.annotation.Nullable @@ -177,7 +166,6 @@ public EntityAttribute numberValue(@javax.annotation.Nullable BigDecimal numberV /** * Attribute with number value - * * @return numberValue */ @javax.annotation.Nullable @@ -205,7 +193,6 @@ public EntityAttribute addNumberValuesItem(BigDecimal numberValuesItem) { /** * Attribute with number values - * * @return numberValues */ @javax.annotation.Nullable @@ -225,7 +212,6 @@ public EntityAttribute booleanValue(@javax.annotation.Nullable Boolean booleanVa /** * Attribute with boolean value - * * @return booleanValue */ @javax.annotation.Nullable @@ -245,7 +231,6 @@ public EntityAttribute valueType(@javax.annotation.Nullable AttributeValueType v /** * Get valueType - * * @return valueType */ @javax.annotation.Nullable @@ -268,19 +253,18 @@ public boolean equals(Object o) { return false; } EntityAttribute entityAttribute = (EntityAttribute) o; - return Objects.equals(this.key, entityAttribute.key) - && Objects.equals(this.stringValue, entityAttribute.stringValue) - && Objects.equals(this.stringValues, entityAttribute.stringValues) - && Objects.equals(this.numberValue, entityAttribute.numberValue) - && Objects.equals(this.numberValues, entityAttribute.numberValues) - && Objects.equals(this.booleanValue, entityAttribute.booleanValue) - && Objects.equals(this.valueType, entityAttribute.valueType); + return Objects.equals(this.key, entityAttribute.key) && + Objects.equals(this.stringValue, entityAttribute.stringValue) && + Objects.equals(this.stringValues, entityAttribute.stringValues) && + Objects.equals(this.numberValue, entityAttribute.numberValue) && + Objects.equals(this.numberValues, entityAttribute.numberValues) && + Objects.equals(this.booleanValue, entityAttribute.booleanValue) && + Objects.equals(this.valueType, entityAttribute.valueType); } @Override public int hashCode() { - return Objects.hash(key, stringValue, stringValues, numberValue, numberValues, booleanValue, - valueType); + return Objects.hash(key, stringValue, stringValues, numberValue, numberValues, booleanValue, valueType); } @Override @@ -299,7 +283,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -314,8 +299,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", - "numberValue", "numberValues", "booleanValue", "valueType")); + openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", "numberValue", "numberValues", "booleanValue", "valueType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -328,83 +312,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to EntityAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!EntityAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in EntityAttribute is not found in the empty JSON string", - EntityAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!EntityAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in EntityAttribute is not found in the empty JSON string", EntityAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!EntityAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `EntityAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!EntityAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `EntityAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); + } + // validate the optional field `valueType` + if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { + AttributeValueType.validateJsonElement(jsonObj.get("valueType")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) - && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stringValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() - && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValues` to be an array in the JSON string but got `%s`", - jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() - && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberValues` to be an array in the JSON string but got `%s`", - jsonObj.get("numberValues").toString())); - } - // validate the optional field `valueType` - if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { - AttributeValueType.validateJsonElement(jsonObj.get("valueType")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!EntityAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'EntityAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(EntityAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, EntityAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public EntityAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!EntityAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'EntityAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(EntityAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, EntityAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public EntityAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/EntityType.java b/src/main/java/com/formkiq/client/model/EntityType.java index c4b107b3d..3ef5c13d1 100644 --- a/src/main/java/com/formkiq/client/model/EntityType.java +++ b/src/main/java/com/formkiq/client/model/EntityType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * EntityType */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class EntityType { public static final String SERIALIZED_NAME_ENTITY_TYPE_ID = "entityTypeId"; @SerializedName(SERIALIZED_NAME_ENTITY_TYPE_ID) @@ -82,7 +73,8 @@ public class EntityType { @javax.annotation.Nullable private String insertedDate; - public EntityType() {} + public EntityType() { + } public EntityType entityTypeId(@javax.annotation.Nullable String entityTypeId) { this.entityTypeId = entityTypeId; @@ -91,7 +83,6 @@ public EntityType entityTypeId(@javax.annotation.Nullable String entityTypeId) { /** * Entity Type identifier - * * @return entityTypeId */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public EntityType namespace(@javax.annotation.Nullable EntityTypeNamespace names /** * Get namespace - * * @return namespace */ @javax.annotation.Nullable @@ -131,7 +121,6 @@ public EntityType name(@javax.annotation.Nullable String name) { /** * Entity Type Name - * * @return name */ @javax.annotation.Nullable @@ -151,7 +140,6 @@ public EntityType insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -174,10 +162,10 @@ public boolean equals(Object o) { return false; } EntityType entityType = (EntityType) o; - return Objects.equals(this.entityTypeId, entityType.entityTypeId) - && Objects.equals(this.namespace, entityType.namespace) - && Objects.equals(this.name, entityType.name) - && Objects.equals(this.insertedDate, entityType.insertedDate); + return Objects.equals(this.entityTypeId, entityType.entityTypeId) && + Objects.equals(this.namespace, entityType.namespace) && + Objects.equals(this.name, entityType.name) && + Objects.equals(this.insertedDate, entityType.insertedDate); } @Override @@ -198,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -213,8 +202,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("entityTypeId", "namespace", "name", "insertedDate")); + openapiFields = new HashSet(Arrays.asList("entityTypeId", "namespace", "name", "insertedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -227,75 +215,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to EntityType */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!EntityType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in EntityType is not found in the empty JSON string", - EntityType.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!EntityType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in EntityType is not found in the empty JSON string", EntityType.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!EntityType.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `EntityType` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!EntityType.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `EntityType` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) && !jsonObj.get("entityTypeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityTypeId").toString())); + } + // validate the optional field `namespace` + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { + EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) - && !jsonObj.get("entityTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("entityTypeId").toString())); - } - // validate the optional field `namespace` - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { - EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!EntityType.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'EntityType' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(EntityType.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, EntityType value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public EntityType read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!EntityType.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'EntityType' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(EntityType.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, EntityType value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public EntityType read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/EntityTypeNamespace.java b/src/main/java/com/formkiq/client/model/EntityTypeNamespace.java index 8cbf3002f..85f8e9317 100644 --- a/src/main/java/com/formkiq/client/model/EntityTypeNamespace.java +++ b/src/main/java/com/formkiq/client/model/EntityTypeNamespace.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(EntityTypeNamespace.Adapter.class) public enum EntityTypeNamespace { - + PRESET("PRESET"), - + CUSTOM("CUSTOM"); private String value; @@ -68,8 +61,7 @@ public static EntityTypeNamespace fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final EntityTypeNamespace enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final EntityTypeNamespace enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/Error.java b/src/main/java/com/formkiq/client/model/Error.java index 41e059e6d..d0d77096c 100644 --- a/src/main/java/com/formkiq/client/model/Error.java +++ b/src/main/java/com/formkiq/client/model/Error.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * Error */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Error { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -71,7 +62,8 @@ public class Error { @javax.annotation.Nullable private String error; - public Error() {} + public Error() { + } public Error key(@javax.annotation.Nullable String key) { this.key = key; @@ -80,7 +72,6 @@ public Error key(@javax.annotation.Nullable String key) { /** * Error Key - * * @return key */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public Error error(@javax.annotation.Nullable String error) { /** * Error Message - * * @return error */ @javax.annotation.Nullable @@ -123,7 +113,8 @@ public boolean equals(Object o) { return false; } Error error = (Error) o; - return Objects.equals(this.key, error.key) && Objects.equals(this.error, error.error); + return Objects.equals(this.key, error.key) && + Objects.equals(this.error, error.error); } @Override @@ -142,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -170,64 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Error */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Error.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Error is not found in the empty JSON string", - Error.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Error.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Error is not found in the empty JSON string", Error.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Error.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Error` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Error.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Error` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) && !jsonObj.get("error").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) - && !jsonObj.get("error").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `error` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("error").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Error.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Error' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Error.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Error value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Error read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Error.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Error' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Error.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Error value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Error read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ErrorsResponse.java b/src/main/java/com/formkiq/client/model/ErrorsResponse.java index ec413231e..4f72e57d1 100644 --- a/src/main/java/com/formkiq/client/model/ErrorsResponse.java +++ b/src/main/java/com/formkiq/client/model/ErrorsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,16 +53,15 @@ /** * ErrorsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ErrorsResponse { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors = new ArrayList<>(); - public ErrorsResponse() {} + public ErrorsResponse() { + } public ErrorsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; @@ -86,7 +78,6 @@ public ErrorsResponse addErrorsItem(Error errorsItem) { /** * List of errors - * * @return errors */ @javax.annotation.Nullable @@ -127,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,69 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ErrorsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ErrorsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in ErrorsResponse is not found in the empty JSON string", - ErrorsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!ErrorsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ErrorsResponse is not found in the empty JSON string", ErrorsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ErrorsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `ErrorsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ErrorsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ErrorsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - if (jsonArrayerrors != null) { - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `errors` to be an array in the JSON string but got `%s`", - jsonObj.get("errors").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + Error.validateJsonElement(jsonArrayerrors.get(i)); + }; } - - // validate the optional field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - Error.validateJsonElement(jsonArrayerrors.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ErrorsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ErrorsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(ErrorsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ErrorsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ErrorsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ErrorsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ErrorsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ErrorsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ErrorsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ErrorsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/FolderPermission.java b/src/main/java/com/formkiq/client/model/FolderPermission.java index 582721b45..6b493c958 100644 --- a/src/main/java/com/formkiq/client/model/FolderPermission.java +++ b/src/main/java/com/formkiq/client/model/FolderPermission.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * FolderPermission */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class FolderPermission { public static final String SERIALIZED_NAME_ROLE_NAME = "roleName"; @SerializedName(SERIALIZED_NAME_ROLE_NAME) @@ -74,7 +65,8 @@ public class FolderPermission { @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public FolderPermission() {} + public FolderPermission() { + } public FolderPermission roleName(@javax.annotation.Nullable String roleName) { this.roleName = roleName; @@ -83,7 +75,6 @@ public FolderPermission roleName(@javax.annotation.Nullable String roleName) { /** * Name of Role - * * @return roleName */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setRoleName(@javax.annotation.Nullable String roleName) { } - public FolderPermission permissions( - @javax.annotation.Nullable List permissions) { + public FolderPermission permissions(@javax.annotation.Nullable List permissions) { this.permissions = permissions; return this; } @@ -112,7 +102,6 @@ public FolderPermission addPermissionsItem(FolderPermissionType permissionsItem) /** * Get permissions - * * @return permissions */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } FolderPermission folderPermission = (FolderPermission) o; - return Objects.equals(this.roleName, folderPermission.roleName) - && Objects.equals(this.permissions, folderPermission.permissions); + return Objects.equals(this.roleName, folderPermission.roleName) && + Objects.equals(this.permissions, folderPermission.permissions); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,66 +173,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to FolderPermission */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FolderPermission.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in FolderPermission is not found in the empty JSON string", - FolderPermission.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!FolderPermission.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in FolderPermission is not found in the empty JSON string", FolderPermission.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FolderPermission.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `FolderPermission` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FolderPermission.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `FolderPermission` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("roleName") != null && !jsonObj.get("roleName").isJsonNull()) && !jsonObj.get("roleName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `roleName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("roleName").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("roleName") != null && !jsonObj.get("roleName").isJsonNull()) - && !jsonObj.get("roleName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `roleName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("roleName").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() - && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `permissions` to be an array in the JSON string but got `%s`", - jsonObj.get("permissions").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!FolderPermission.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FolderPermission' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(FolderPermission.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FolderPermission value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FolderPermission read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!FolderPermission.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FolderPermission' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FolderPermission.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FolderPermission value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FolderPermission read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/FolderPermissionType.java b/src/main/java/com/formkiq/client/model/FolderPermissionType.java index 9604d0a2a..cbb167b93 100644 --- a/src/main/java/com/formkiq/client/model/FolderPermissionType.java +++ b/src/main/java/com/formkiq/client/model/FolderPermissionType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(FolderPermissionType.Adapter.class) public enum FolderPermissionType { - + READ("READ"), - + WRITE("WRITE"), - + DELETE("DELETE"); private String value; @@ -70,8 +63,7 @@ public static FolderPermissionType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final FolderPermissionType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final FolderPermissionType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/FulltextAttribute.java b/src/main/java/com/formkiq/client/model/FulltextAttribute.java index 76af53bc8..2fb413cda 100644 --- a/src/main/java/com/formkiq/client/model/FulltextAttribute.java +++ b/src/main/java/com/formkiq/client/model/FulltextAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * FulltextAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class FulltextAttribute { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; @SerializedName(SERIALIZED_NAME_STRING_VALUES) @@ -85,7 +76,8 @@ public class FulltextAttribute { @javax.annotation.Nullable private AttributeValueType valueType; - public FulltextAttribute() {} + public FulltextAttribute() { + } public FulltextAttribute stringValues(@javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; @@ -102,7 +94,6 @@ public FulltextAttribute addStringValuesItem(String stringValuesItem) { /** * Attribute with string values - * * @return stringValues */ @javax.annotation.Nullable @@ -130,7 +121,6 @@ public FulltextAttribute addNumberValuesItem(BigDecimal numberValuesItem) { /** * Attribute with number values - * * @return numberValues */ @javax.annotation.Nullable @@ -150,7 +140,6 @@ public FulltextAttribute booleanValue(@javax.annotation.Nullable Boolean boolean /** * Attribute with boolean value - * * @return booleanValue */ @javax.annotation.Nullable @@ -170,7 +159,6 @@ public FulltextAttribute valueType(@javax.annotation.Nullable AttributeValueType /** * Get valueType - * * @return valueType */ @javax.annotation.Nullable @@ -193,10 +181,10 @@ public boolean equals(Object o) { return false; } FulltextAttribute fulltextAttribute = (FulltextAttribute) o; - return Objects.equals(this.stringValues, fulltextAttribute.stringValues) - && Objects.equals(this.numberValues, fulltextAttribute.numberValues) - && Objects.equals(this.booleanValue, fulltextAttribute.booleanValue) - && Objects.equals(this.valueType, fulltextAttribute.valueType); + return Objects.equals(this.stringValues, fulltextAttribute.stringValues) && + Objects.equals(this.numberValues, fulltextAttribute.numberValues) && + Objects.equals(this.booleanValue, fulltextAttribute.booleanValue) && + Objects.equals(this.valueType, fulltextAttribute.valueType); } @Override @@ -217,7 +205,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -232,8 +221,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("stringValues", "numberValues", "booleanValue", "valueType")); + openapiFields = new HashSet(Arrays.asList("stringValues", "numberValues", "booleanValue", "valueType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -246,71 +234,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to FulltextAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FulltextAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in FulltextAttribute is not found in the empty JSON string", - FulltextAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!FulltextAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in FulltextAttribute is not found in the empty JSON string", FulltextAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FulltextAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `FulltextAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FulltextAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `FulltextAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); + } + // validate the optional field `valueType` + if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { + AttributeValueType.validateJsonElement(jsonObj.get("valueType")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() - && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValues` to be an array in the JSON string but got `%s`", - jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() - && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberValues` to be an array in the JSON string but got `%s`", - jsonObj.get("numberValues").toString())); - } - // validate the optional field `valueType` - if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { - AttributeValueType.validateJsonElement(jsonObj.get("valueType")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!FulltextAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FulltextAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(FulltextAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FulltextAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FulltextAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!FulltextAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FulltextAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FulltextAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FulltextAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FulltextAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/FulltextSearchItem.java b/src/main/java/com/formkiq/client/model/FulltextSearchItem.java index a60f83117..c5f10a792 100644 --- a/src/main/java/com/formkiq/client/model/FulltextSearchItem.java +++ b/src/main/java/com/formkiq/client/model/FulltextSearchItem.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * FulltextSearchItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class FulltextSearchItem { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -145,7 +136,8 @@ public class FulltextSearchItem { @javax.annotation.Nullable private Map attributes = new HashMap<>(); - public FulltextSearchItem() {} + public FulltextSearchItem() { + } public FulltextSearchItem siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -154,7 +146,6 @@ public FulltextSearchItem siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -174,7 +165,6 @@ public FulltextSearchItem path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -194,7 +184,6 @@ public FulltextSearchItem contentType(@javax.annotation.Nullable String contentT /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -214,7 +203,6 @@ public FulltextSearchItem width(@javax.annotation.Nullable String width) { /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -234,7 +222,6 @@ public FulltextSearchItem height(@javax.annotation.Nullable String height) { /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -254,7 +241,6 @@ public FulltextSearchItem deepLinkPath(@javax.annotation.Nullable String deepLin /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -274,7 +260,6 @@ public FulltextSearchItem insertedDate(@javax.annotation.Nullable String inserte /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -294,7 +279,6 @@ public FulltextSearchItem lastModifiedDate(@javax.annotation.Nullable String las /** * Last Modified Timestamp - * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -314,7 +298,6 @@ public FulltextSearchItem checksum(@javax.annotation.Nullable String checksum) { /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -334,7 +317,6 @@ public FulltextSearchItem checksumType(@javax.annotation.Nullable ChecksumType c /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -354,7 +336,6 @@ public FulltextSearchItem documentId(@javax.annotation.Nullable String documentI /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -374,7 +355,6 @@ public FulltextSearchItem contentLength(@javax.annotation.Nullable Integer conte /** * Document size - * * @return contentLength */ @javax.annotation.Nullable @@ -394,7 +374,6 @@ public FulltextSearchItem createdBy(@javax.annotation.Nullable String createdBy) /** * User who added document - * * @return createdBy */ @javax.annotation.Nullable @@ -422,7 +401,6 @@ public FulltextSearchItem putTagsItem(String key, Object tagsItem) { /** * Get tags - * * @return tags */ @javax.annotation.Nullable @@ -450,7 +428,6 @@ public FulltextSearchItem putMetadataItem(String key, Object metadataItem) { /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -463,8 +440,7 @@ public void setMetadata(@javax.annotation.Nullable Map metadata) } - public FulltextSearchItem attributes( - @javax.annotation.Nullable Map attributes) { + public FulltextSearchItem attributes(@javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } @@ -479,7 +455,6 @@ public FulltextSearchItem putAttributesItem(String key, FulltextAttribute attrib /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -502,29 +477,27 @@ public boolean equals(Object o) { return false; } FulltextSearchItem fulltextSearchItem = (FulltextSearchItem) o; - return Objects.equals(this.siteId, fulltextSearchItem.siteId) - && Objects.equals(this.path, fulltextSearchItem.path) - && Objects.equals(this.contentType, fulltextSearchItem.contentType) - && Objects.equals(this.width, fulltextSearchItem.width) - && Objects.equals(this.height, fulltextSearchItem.height) - && Objects.equals(this.deepLinkPath, fulltextSearchItem.deepLinkPath) - && Objects.equals(this.insertedDate, fulltextSearchItem.insertedDate) - && Objects.equals(this.lastModifiedDate, fulltextSearchItem.lastModifiedDate) - && Objects.equals(this.checksum, fulltextSearchItem.checksum) - && Objects.equals(this.checksumType, fulltextSearchItem.checksumType) - && Objects.equals(this.documentId, fulltextSearchItem.documentId) - && Objects.equals(this.contentLength, fulltextSearchItem.contentLength) - && Objects.equals(this.createdBy, fulltextSearchItem.createdBy) - && Objects.equals(this.tags, fulltextSearchItem.tags) - && Objects.equals(this.metadata, fulltextSearchItem.metadata) - && Objects.equals(this.attributes, fulltextSearchItem.attributes); + return Objects.equals(this.siteId, fulltextSearchItem.siteId) && + Objects.equals(this.path, fulltextSearchItem.path) && + Objects.equals(this.contentType, fulltextSearchItem.contentType) && + Objects.equals(this.width, fulltextSearchItem.width) && + Objects.equals(this.height, fulltextSearchItem.height) && + Objects.equals(this.deepLinkPath, fulltextSearchItem.deepLinkPath) && + Objects.equals(this.insertedDate, fulltextSearchItem.insertedDate) && + Objects.equals(this.lastModifiedDate, fulltextSearchItem.lastModifiedDate) && + Objects.equals(this.checksum, fulltextSearchItem.checksum) && + Objects.equals(this.checksumType, fulltextSearchItem.checksumType) && + Objects.equals(this.documentId, fulltextSearchItem.documentId) && + Objects.equals(this.contentLength, fulltextSearchItem.contentLength) && + Objects.equals(this.createdBy, fulltextSearchItem.createdBy) && + Objects.equals(this.tags, fulltextSearchItem.tags) && + Objects.equals(this.metadata, fulltextSearchItem.metadata) && + Objects.equals(this.attributes, fulltextSearchItem.attributes); } @Override public int hashCode() { - return Objects.hash(siteId, path, contentType, width, height, deepLinkPath, insertedDate, - lastModifiedDate, checksum, checksumType, documentId, contentLength, createdBy, tags, - metadata, attributes); + return Objects.hash(siteId, path, contentType, width, height, deepLinkPath, insertedDate, lastModifiedDate, checksum, checksumType, documentId, contentLength, createdBy, tags, metadata, attributes); } @Override @@ -552,7 +525,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -567,9 +541,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "path", "contentType", "width", - "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "checksumType", - "documentId", "contentLength", "createdBy", "tags", "metadata", "attributes")); + openapiFields = new HashSet(Arrays.asList("siteId", "path", "contentType", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "checksumType", "documentId", "contentLength", "createdBy", "tags", "metadata", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -582,123 +554,85 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to FulltextSearchItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FulltextSearchItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in FulltextSearchItem is not found in the empty JSON string", - FulltextSearchItem.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!FulltextSearchItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in FulltextSearchItem is not found in the empty JSON string", FulltextSearchItem.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FulltextSearchItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `FulltextSearchItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FulltextSearchItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `FulltextSearchItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) - && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) - && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("createdBy").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!FulltextSearchItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FulltextSearchItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(FulltextSearchItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FulltextSearchItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FulltextSearchItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!FulltextSearchItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FulltextSearchItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FulltextSearchItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FulltextSearchItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FulltextSearchItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetActivitesResponse.java b/src/main/java/com/formkiq/client/model/GetActivitesResponse.java index 805573338..c9074294b 100644 --- a/src/main/java/com/formkiq/client/model/GetActivitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetActivitesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetActivitesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetActivitesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetActivitesResponse { @javax.annotation.Nullable private List activities = new ArrayList<>(); - public GetActivitesResponse() {} + public GetActivitesResponse() { + } public GetActivitesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetActivitesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetActivitesResponse addActivitiesItem(Activity activitiesItem) { /** * List of Entity Type activities - * * @return activities */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetActivitesResponse getActivitesResponse = (GetActivitesResponse) o; - return Objects.equals(this.next, getActivitesResponse.next) - && Objects.equals(this.activities, getActivitesResponse.activities); + return Objects.equals(this.next, getActivitesResponse.next) && + Objects.equals(this.activities, getActivitesResponse.activities); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetActivitesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetActivitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetActivitesResponse is not found in the empty JSON string", - GetActivitesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetActivitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetActivitesResponse is not found in the empty JSON string", GetActivitesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetActivitesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetActivitesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetActivitesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetActivitesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("activities") != null && !jsonObj.get("activities").isJsonNull()) { - JsonArray jsonArrayactivities = jsonObj.getAsJsonArray("activities"); - if (jsonArrayactivities != null) { - // ensure the json data is an array - if (!jsonObj.get("activities").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `activities` to be an array in the JSON string but got `%s`", - jsonObj.get("activities").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("activities") != null && !jsonObj.get("activities").isJsonNull()) { + JsonArray jsonArrayactivities = jsonObj.getAsJsonArray("activities"); + if (jsonArrayactivities != null) { + // ensure the json data is an array + if (!jsonObj.get("activities").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `activities` to be an array in the JSON string but got `%s`", jsonObj.get("activities").toString())); + } + + // validate the optional field `activities` (array) + for (int i = 0; i < jsonArrayactivities.size(); i++) { + Activity.validateJsonElement(jsonArrayactivities.get(i)); + }; } - - // validate the optional field `activities` (array) - for (int i = 0; i < jsonArrayactivities.size(); i++) { - Activity.validateJsonElement(jsonArrayactivities.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetActivitesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetActivitesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetActivitesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetActivitesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetActivitesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetActivitesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetActivitesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetActivitesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetActivitesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetActivitesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java b/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java index 2589e8dba..cfe2497d6 100644 --- a/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java +++ b/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetApiKeysResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetApiKeysResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetApiKeysResponse { @javax.annotation.Nullable private List apiKeys = new ArrayList<>(); - public GetApiKeysResponse() {} + public GetApiKeysResponse() { + } public GetApiKeysResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetApiKeysResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetApiKeysResponse addApiKeysItem(ApiKey apiKeysItem) { /** * List of ApiKeys - * * @return apiKeys */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetApiKeysResponse getApiKeysResponse = (GetApiKeysResponse) o; - return Objects.equals(this.next, getApiKeysResponse.next) - && Objects.equals(this.apiKeys, getApiKeysResponse.apiKeys); + return Objects.equals(this.next, getApiKeysResponse.next) && + Objects.equals(this.apiKeys, getApiKeysResponse.apiKeys); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetApiKeysResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetApiKeysResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetApiKeysResponse is not found in the empty JSON string", - GetApiKeysResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetApiKeysResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetApiKeysResponse is not found in the empty JSON string", GetApiKeysResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetApiKeysResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetApiKeysResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetApiKeysResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetApiKeysResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("apiKeys") != null && !jsonObj.get("apiKeys").isJsonNull()) { - JsonArray jsonArrayapiKeys = jsonObj.getAsJsonArray("apiKeys"); - if (jsonArrayapiKeys != null) { - // ensure the json data is an array - if (!jsonObj.get("apiKeys").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `apiKeys` to be an array in the JSON string but got `%s`", - jsonObj.get("apiKeys").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("apiKeys") != null && !jsonObj.get("apiKeys").isJsonNull()) { + JsonArray jsonArrayapiKeys = jsonObj.getAsJsonArray("apiKeys"); + if (jsonArrayapiKeys != null) { + // ensure the json data is an array + if (!jsonObj.get("apiKeys").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `apiKeys` to be an array in the JSON string but got `%s`", jsonObj.get("apiKeys").toString())); + } + + // validate the optional field `apiKeys` (array) + for (int i = 0; i < jsonArrayapiKeys.size(); i++) { + ApiKey.validateJsonElement(jsonArrayapiKeys.get(i)); + }; } - - // validate the optional field `apiKeys` (array) - for (int i = 0; i < jsonArrayapiKeys.size(); i++) { - ApiKey.validateJsonElement(jsonArrayapiKeys.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetApiKeysResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetApiKeysResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetApiKeysResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetApiKeysResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetApiKeysResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetApiKeysResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetApiKeysResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetApiKeysResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetApiKeysResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetApiKeysResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java b/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java index 49aa4fd24..027ec8176 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * GetAttributeAllowedValuesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetAttributeAllowedValuesResponse { public static final String SERIALIZED_NAME_ALLOWED_VALUES = "allowedValues"; @SerializedName(SERIALIZED_NAME_ALLOWED_VALUES) @@ -75,10 +66,10 @@ public class GetAttributeAllowedValuesResponse { @javax.annotation.Nullable private Map localizedAllowedValues = new HashMap<>(); - public GetAttributeAllowedValuesResponse() {} + public GetAttributeAllowedValuesResponse() { + } - public GetAttributeAllowedValuesResponse allowedValues( - @javax.annotation.Nullable List allowedValues) { + public GetAttributeAllowedValuesResponse allowedValues(@javax.annotation.Nullable List allowedValues) { this.allowedValues = allowedValues; return this; } @@ -93,7 +84,6 @@ public GetAttributeAllowedValuesResponse addAllowedValuesItem(String allowedValu /** * Attribute's allowed values - * * @return allowedValues */ @javax.annotation.Nullable @@ -106,14 +96,12 @@ public void setAllowedValues(@javax.annotation.Nullable List allowedValu } - public GetAttributeAllowedValuesResponse localizedAllowedValues( - @javax.annotation.Nullable Map localizedAllowedValues) { + public GetAttributeAllowedValuesResponse localizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; return this; } - public GetAttributeAllowedValuesResponse putLocalizedAllowedValuesItem(String key, - String localizedAllowedValuesItem) { + public GetAttributeAllowedValuesResponse putLocalizedAllowedValuesItem(String key, String localizedAllowedValuesItem) { if (this.localizedAllowedValues == null) { this.localizedAllowedValues = new HashMap<>(); } @@ -123,7 +111,6 @@ public GetAttributeAllowedValuesResponse putLocalizedAllowedValuesItem(String ke /** * Get localizedAllowedValues - * * @return localizedAllowedValues */ @javax.annotation.Nullable @@ -131,8 +118,7 @@ public Map getLocalizedAllowedValues() { return localizedAllowedValues; } - public void setLocalizedAllowedValues( - @javax.annotation.Nullable Map localizedAllowedValues) { + public void setLocalizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; } @@ -146,11 +132,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetAttributeAllowedValuesResponse getAttributeAllowedValuesResponse = - (GetAttributeAllowedValuesResponse) o; - return Objects.equals(this.allowedValues, getAttributeAllowedValuesResponse.allowedValues) - && Objects.equals(this.localizedAllowedValues, - getAttributeAllowedValuesResponse.localizedAllowedValues); + GetAttributeAllowedValuesResponse getAttributeAllowedValuesResponse = (GetAttributeAllowedValuesResponse) o; + return Objects.equals(this.allowedValues, getAttributeAllowedValuesResponse.allowedValues) && + Objects.equals(this.localizedAllowedValues, getAttributeAllowedValuesResponse.localizedAllowedValues); } @Override @@ -163,14 +147,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetAttributeAllowedValuesResponse {\n"); sb.append(" allowedValues: ").append(toIndentedString(allowedValues)).append("\n"); - sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)) - .append("\n"); + sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -195,67 +179,55 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * GetAttributeAllowedValuesResponse + * @throws IOException if the JSON Element is invalid with respect to GetAttributeAllowedValuesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetAttributeAllowedValuesResponse.openapiRequiredFields.isEmpty()) { // has required - // fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetAttributeAllowedValuesResponse is not found in the empty JSON string", - GetAttributeAllowedValuesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetAttributeAllowedValuesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAttributeAllowedValuesResponse is not found in the empty JSON string", GetAttributeAllowedValuesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetAttributeAllowedValuesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetAttributeAllowedValuesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetAttributeAllowedValuesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetAttributeAllowedValuesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() && !jsonObj.get("allowedValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", jsonObj.get("allowedValues").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() - && !jsonObj.get("allowedValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", - jsonObj.get("allowedValues").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetAttributeAllowedValuesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetAttributeAllowedValuesResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetAttributeAllowedValuesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetAttributeAllowedValuesResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetAttributeAllowedValuesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetAttributeAllowedValuesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetAttributeAllowedValuesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetAttributeAllowedValuesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetAttributeAllowedValuesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetAttributeAllowedValuesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -264,8 +236,7 @@ public GetAttributeAllowedValuesResponse read(JsonReader in) throws IOException * * @param jsonString JSON string * @return An instance of GetAttributeAllowedValuesResponse - * @throws IOException if the JSON string is invalid with respect to - * GetAttributeAllowedValuesResponse + * @throws IOException if the JSON string is invalid with respect to GetAttributeAllowedValuesResponse */ public static GetAttributeAllowedValuesResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetAttributeAllowedValuesResponse.class); diff --git a/src/main/java/com/formkiq/client/model/GetAttributeResponse.java b/src/main/java/com/formkiq/client/model/GetAttributeResponse.java index 616601d7b..a3afe5d90 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributeResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetAttributeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetAttributeResponse { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @javax.annotation.Nullable private Attribute attribute; - public GetAttributeResponse() {} + public GetAttributeResponse() { + } public GetAttributeResponse attribute(@javax.annotation.Nullable Attribute attribute) { this.attribute = attribute; @@ -76,7 +68,6 @@ public GetAttributeResponse attribute(@javax.annotation.Nullable Attribute attri /** * Get attribute - * * @return attribute */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetAttributeResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetAttributeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetAttributeResponse is not found in the empty JSON string", - GetAttributeResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetAttributeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAttributeResponse is not found in the empty JSON string", GetAttributeResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetAttributeResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetAttributeResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetAttributeResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetAttributeResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `attribute` + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { + Attribute.validateJsonElement(jsonObj.get("attribute")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `attribute` - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { - Attribute.validateJsonElement(jsonObj.get("attribute")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetAttributeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetAttributeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetAttributeResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetAttributeResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetAttributeResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetAttributeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetAttributeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetAttributeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetAttributeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetAttributeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetAttributesResponse.java b/src/main/java/com/formkiq/client/model/GetAttributesResponse.java index e78e29e99..f49010584 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetAttributesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetAttributesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetAttributesResponse { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public GetAttributesResponse() {} + public GetAttributesResponse() { + } public GetAttributesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetAttributesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetAttributesResponse addAttributesItem(Attribute attributesItem) { /** * List of attributes - * * @return attributes */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetAttributesResponse getAttributesResponse = (GetAttributesResponse) o; - return Objects.equals(this.next, getAttributesResponse.next) - && Objects.equals(this.attributes, getAttributesResponse.attributes); + return Objects.equals(this.next, getAttributesResponse.next) && + Objects.equals(this.attributes, getAttributesResponse.attributes); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetAttributesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetAttributesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetAttributesResponse is not found in the empty JSON string", - GetAttributesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetAttributesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAttributesResponse is not found in the empty JSON string", GetAttributesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetAttributesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetAttributesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetAttributesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetAttributesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + Attribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - Attribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetAttributesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetAttributesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetAttributesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetAttributesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetAttributesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetAttributesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetAttributesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetAttributesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetAttributesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetAttributesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java index 032152c2b..5112f1d94 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetCaseDocumentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetCaseDocumentsResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetCaseDocumentsResponse() {} + public GetCaseDocumentsResponse() { + } public GetCaseDocumentsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetCaseDocumentsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetCaseDocumentsResponse addDocumentsItem(Document documentsItem) { /** * List of documents - * * @return documents */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetCaseDocumentsResponse getCaseDocumentsResponse = (GetCaseDocumentsResponse) o; - return Objects.equals(this.next, getCaseDocumentsResponse.next) - && Objects.equals(this.documents, getCaseDocumentsResponse.documents); + return Objects.equals(this.next, getCaseDocumentsResponse.next) && + Objects.equals(this.documents, getCaseDocumentsResponse.documents); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseDocumentsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetCaseDocumentsResponse is not found in the empty JSON string", - GetCaseDocumentsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetCaseDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseDocumentsResponse is not found in the empty JSON string", GetCaseDocumentsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseDocumentsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetCaseDocumentsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseDocumentsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseDocumentsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + Document.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - Document.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseDocumentsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseDocumentsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetCaseDocumentsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseDocumentsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseDocumentsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseDocumentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseDocumentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetCaseDocumentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseDocumentsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseDocumentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java b/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java index 7314ccdde..398017ae5 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetCaseNigoResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseNigoResponse { public static final String SERIALIZED_NAME_NIGO = "nigo"; @SerializedName(SERIALIZED_NAME_NIGO) @javax.annotation.Nullable private Nigo nigo; - public GetCaseNigoResponse() {} + public GetCaseNigoResponse() { + } public GetCaseNigoResponse nigo(@javax.annotation.Nullable Nigo nigo) { this.nigo = nigo; @@ -76,7 +68,6 @@ public GetCaseNigoResponse nigo(@javax.annotation.Nullable Nigo nigo) { /** * Get nigo - * * @return nigo */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseNigoResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetCaseNigoResponse is not found in the empty JSON string", - GetCaseNigoResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetCaseNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseNigoResponse is not found in the empty JSON string", GetCaseNigoResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseNigoResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetCaseNigoResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseNigoResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseNigoResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `nigo` + if (jsonObj.get("nigo") != null && !jsonObj.get("nigo").isJsonNull()) { + Nigo.validateJsonElement(jsonObj.get("nigo")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `nigo` - if (jsonObj.get("nigo") != null && !jsonObj.get("nigo").isJsonNull()) { - Nigo.validateJsonElement(jsonObj.get("nigo")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseNigoResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseNigoResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetCaseNigoResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseNigoResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseNigoResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseNigoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseNigoResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetCaseNigoResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseNigoResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseNigoResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java b/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java index 118878a32..cc75568ee 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetCaseNigosResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseNigosResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetCaseNigosResponse { @javax.annotation.Nullable private List nigos = new ArrayList<>(); - public GetCaseNigosResponse() {} + public GetCaseNigosResponse() { + } public GetCaseNigosResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetCaseNigosResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetCaseNigosResponse addNigosItem(Nigo nigosItem) { /** * List of Nigos - * * @return nigos */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetCaseNigosResponse getCaseNigosResponse = (GetCaseNigosResponse) o; - return Objects.equals(this.next, getCaseNigosResponse.next) - && Objects.equals(this.nigos, getCaseNigosResponse.nigos); + return Objects.equals(this.next, getCaseNigosResponse.next) && + Objects.equals(this.nigos, getCaseNigosResponse.nigos); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseNigosResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseNigosResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetCaseNigosResponse is not found in the empty JSON string", - GetCaseNigosResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetCaseNigosResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseNigosResponse is not found in the empty JSON string", GetCaseNigosResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseNigosResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetCaseNigosResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseNigosResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseNigosResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("nigos") != null && !jsonObj.get("nigos").isJsonNull()) { - JsonArray jsonArraynigos = jsonObj.getAsJsonArray("nigos"); - if (jsonArraynigos != null) { - // ensure the json data is an array - if (!jsonObj.get("nigos").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `nigos` to be an array in the JSON string but got `%s`", - jsonObj.get("nigos").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("nigos") != null && !jsonObj.get("nigos").isJsonNull()) { + JsonArray jsonArraynigos = jsonObj.getAsJsonArray("nigos"); + if (jsonArraynigos != null) { + // ensure the json data is an array + if (!jsonObj.get("nigos").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nigos` to be an array in the JSON string but got `%s`", jsonObj.get("nigos").toString())); + } + + // validate the optional field `nigos` (array) + for (int i = 0; i < jsonArraynigos.size(); i++) { + Nigo.validateJsonElement(jsonArraynigos.get(i)); + }; } - - // validate the optional field `nigos` (array) - for (int i = 0; i < jsonArraynigos.size(); i++) { - Nigo.validateJsonElement(jsonArraynigos.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseNigosResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseNigosResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetCaseNigosResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseNigosResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseNigosResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseNigosResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseNigosResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetCaseNigosResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseNigosResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseNigosResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseResponse.java b/src/main/java/com/formkiq/client/model/GetCaseResponse.java index acf2665da..f9d0e52d9 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetCaseResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseResponse { public static final String SERIALIZED_NAME_CASE = "case"; @SerializedName(SERIALIZED_NAME_CASE) @javax.annotation.Nullable private ModelCase _case; - public GetCaseResponse() {} + public GetCaseResponse() { + } public GetCaseResponse _case(@javax.annotation.Nullable ModelCase _case) { this._case = _case; @@ -76,7 +68,6 @@ public GetCaseResponse _case(@javax.annotation.Nullable ModelCase _case) { /** * Get _case - * * @return _case */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetCaseResponse is not found in the empty JSON string", - GetCaseResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseResponse is not found in the empty JSON string", GetCaseResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetCaseResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `case` + if (jsonObj.get("case") != null && !jsonObj.get("case").isJsonNull()) { + ModelCase.validateJsonElement(jsonObj.get("case")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `case` - if (jsonObj.get("case") != null && !jsonObj.get("case").isJsonNull()) { - ModelCase.validateJsonElement(jsonObj.get("case")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetCaseResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetCaseResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java b/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java index 4eaba3981..e648bd802 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetCaseTaskResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseTaskResponse { public static final String SERIALIZED_NAME_TASK = "task"; @SerializedName(SERIALIZED_NAME_TASK) @javax.annotation.Nullable private Task task; - public GetCaseTaskResponse() {} + public GetCaseTaskResponse() { + } public GetCaseTaskResponse task(@javax.annotation.Nullable Task task) { this.task = task; @@ -76,7 +68,6 @@ public GetCaseTaskResponse task(@javax.annotation.Nullable Task task) { /** * Get task - * * @return task */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseTaskResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetCaseTaskResponse is not found in the empty JSON string", - GetCaseTaskResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetCaseTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseTaskResponse is not found in the empty JSON string", GetCaseTaskResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseTaskResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetCaseTaskResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseTaskResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseTaskResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `task` + if (jsonObj.get("task") != null && !jsonObj.get("task").isJsonNull()) { + Task.validateJsonElement(jsonObj.get("task")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `task` - if (jsonObj.get("task") != null && !jsonObj.get("task").isJsonNull()) { - Task.validateJsonElement(jsonObj.get("task")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseTaskResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseTaskResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetCaseTaskResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseTaskResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseTaskResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseTaskResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseTaskResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetCaseTaskResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseTaskResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseTaskResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java b/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java index d8875a438..7c0acb5b2 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetCaseTasksResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseTasksResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetCaseTasksResponse { @javax.annotation.Nullable private List tasks = new ArrayList<>(); - public GetCaseTasksResponse() {} + public GetCaseTasksResponse() { + } public GetCaseTasksResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetCaseTasksResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetCaseTasksResponse addTasksItem(Task tasksItem) { /** * List of tasks - * * @return tasks */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetCaseTasksResponse getCaseTasksResponse = (GetCaseTasksResponse) o; - return Objects.equals(this.next, getCaseTasksResponse.next) - && Objects.equals(this.tasks, getCaseTasksResponse.tasks); + return Objects.equals(this.next, getCaseTasksResponse.next) && + Objects.equals(this.tasks, getCaseTasksResponse.tasks); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseTasksResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseTasksResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetCaseTasksResponse is not found in the empty JSON string", - GetCaseTasksResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetCaseTasksResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseTasksResponse is not found in the empty JSON string", GetCaseTasksResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseTasksResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetCaseTasksResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseTasksResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseTasksResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("tasks") != null && !jsonObj.get("tasks").isJsonNull()) { - JsonArray jsonArraytasks = jsonObj.getAsJsonArray("tasks"); - if (jsonArraytasks != null) { - // ensure the json data is an array - if (!jsonObj.get("tasks").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tasks` to be an array in the JSON string but got `%s`", - jsonObj.get("tasks").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("tasks") != null && !jsonObj.get("tasks").isJsonNull()) { + JsonArray jsonArraytasks = jsonObj.getAsJsonArray("tasks"); + if (jsonArraytasks != null) { + // ensure the json data is an array + if (!jsonObj.get("tasks").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tasks` to be an array in the JSON string but got `%s`", jsonObj.get("tasks").toString())); + } + + // validate the optional field `tasks` (array) + for (int i = 0; i < jsonArraytasks.size(); i++) { + Task.validateJsonElement(jsonArraytasks.get(i)); + }; } - - // validate the optional field `tasks` (array) - for (int i = 0; i < jsonArraytasks.size(); i++) { - Task.validateJsonElement(jsonArraytasks.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseTasksResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseTasksResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetCaseTasksResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseTasksResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseTasksResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseTasksResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseTasksResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetCaseTasksResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseTasksResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseTasksResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCasesResponse.java b/src/main/java/com/formkiq/client/model/GetCasesResponse.java index 2b04ae6a2..ff5af7b4c 100644 --- a/src/main/java/com/formkiq/client/model/GetCasesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCasesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetCasesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCasesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetCasesResponse { @javax.annotation.Nullable private List cases = new ArrayList<>(); - public GetCasesResponse() {} + public GetCasesResponse() { + } public GetCasesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetCasesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetCasesResponse addCasesItem(ModelCase casesItem) { /** * List of cases - * * @return cases */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetCasesResponse getCasesResponse = (GetCasesResponse) o; - return Objects.equals(this.next, getCasesResponse.next) - && Objects.equals(this.cases, getCasesResponse.cases); + return Objects.equals(this.next, getCasesResponse.next) && + Objects.equals(this.cases, getCasesResponse.cases); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCasesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCasesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetCasesResponse is not found in the empty JSON string", - GetCasesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetCasesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCasesResponse is not found in the empty JSON string", GetCasesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCasesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetCasesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCasesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCasesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("cases") != null && !jsonObj.get("cases").isJsonNull()) { - JsonArray jsonArraycases = jsonObj.getAsJsonArray("cases"); - if (jsonArraycases != null) { - // ensure the json data is an array - if (!jsonObj.get("cases").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `cases` to be an array in the JSON string but got `%s`", - jsonObj.get("cases").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("cases") != null && !jsonObj.get("cases").isJsonNull()) { + JsonArray jsonArraycases = jsonObj.getAsJsonArray("cases"); + if (jsonArraycases != null) { + // ensure the json data is an array + if (!jsonObj.get("cases").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cases` to be an array in the JSON string but got `%s`", jsonObj.get("cases").toString())); + } + + // validate the optional field `cases` (array) + for (int i = 0; i < jsonArraycases.size(); i++) { + ModelCase.validateJsonElement(jsonArraycases.get(i)); + }; } - - // validate the optional field `cases` (array) - for (int i = 0; i < jsonArraycases.size(); i++) { - ModelCase.validateJsonElement(jsonArraycases.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCasesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCasesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetCasesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCasesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCasesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCasesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCasesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetCasesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCasesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCasesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetClassificationResponse.java b/src/main/java/com/formkiq/client/model/GetClassificationResponse.java index a40a24c22..2e9e1c14a 100644 --- a/src/main/java/com/formkiq/client/model/GetClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetClassificationResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * GetClassificationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetClassificationResponse { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION) @javax.annotation.Nullable private Classification classification; - public GetClassificationResponse() {} + public GetClassificationResponse() { + } - public GetClassificationResponse classification( - @javax.annotation.Nullable Classification classification) { + public GetClassificationResponse classification(@javax.annotation.Nullable Classification classification) { this.classification = classification; return this; } /** * Get classification - * * @return classification */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetClassificationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetClassificationResponse is not found in the empty JSON string", - GetClassificationResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetClassificationResponse is not found in the empty JSON string", GetClassificationResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetClassificationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetClassificationResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetClassificationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetClassificationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `classification` + if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { + Classification.validateJsonElement(jsonObj.get("classification")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `classification` - if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { - Classification.validateJsonElement(jsonObj.get("classification")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetClassificationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetClassificationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetClassificationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetClassificationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetClassificationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetClassificationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetClassificationResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetClassificationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetClassificationResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetClassificationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java b/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java index d067aa4ab..324a51e07 100644 --- a/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetClassificationsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetClassificationsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetClassificationsResponse { @javax.annotation.Nullable private List classifications = new ArrayList<>(); - public GetClassificationsResponse() {} + public GetClassificationsResponse() { + } public GetClassificationsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetClassificationsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,14 +87,12 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetClassificationsResponse classifications( - @javax.annotation.Nullable List classifications) { + public GetClassificationsResponse classifications(@javax.annotation.Nullable List classifications) { this.classifications = classifications; return this; } - public GetClassificationsResponse addClassificationsItem( - ClassificationSummary classificationsItem) { + public GetClassificationsResponse addClassificationsItem(ClassificationSummary classificationsItem) { if (this.classifications == null) { this.classifications = new ArrayList<>(); } @@ -113,7 +102,6 @@ public GetClassificationsResponse addClassificationsItem( /** * List of classifications - * * @return classifications */ @javax.annotation.Nullable @@ -121,8 +109,7 @@ public List getClassifications() { return classifications; } - public void setClassifications( - @javax.annotation.Nullable List classifications) { + public void setClassifications(@javax.annotation.Nullable List classifications) { this.classifications = classifications; } @@ -137,8 +124,8 @@ public boolean equals(Object o) { return false; } GetClassificationsResponse getClassificationsResponse = (GetClassificationsResponse) o; - return Objects.equals(this.next, getClassificationsResponse.next) - && Objects.equals(this.classifications, getClassificationsResponse.classifications); + return Objects.equals(this.next, getClassificationsResponse.next) && + Objects.equals(this.classifications, getClassificationsResponse.classifications); } @Override @@ -157,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -185,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetClassificationsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetClassificationsResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetClassificationsResponse is not found in the empty JSON string", - GetClassificationsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetClassificationsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetClassificationsResponse is not found in the empty JSON string", GetClassificationsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetClassificationsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetClassificationsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetClassificationsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetClassificationsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("classifications") != null && !jsonObj.get("classifications").isJsonNull()) { - JsonArray jsonArrayclassifications = jsonObj.getAsJsonArray("classifications"); - if (jsonArrayclassifications != null) { - // ensure the json data is an array - if (!jsonObj.get("classifications").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `classifications` to be an array in the JSON string but got `%s`", - jsonObj.get("classifications").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("classifications") != null && !jsonObj.get("classifications").isJsonNull()) { + JsonArray jsonArrayclassifications = jsonObj.getAsJsonArray("classifications"); + if (jsonArrayclassifications != null) { + // ensure the json data is an array + if (!jsonObj.get("classifications").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classifications` to be an array in the JSON string but got `%s`", jsonObj.get("classifications").toString())); + } + + // validate the optional field `classifications` (array) + for (int i = 0; i < jsonArrayclassifications.size(); i++) { + ClassificationSummary.validateJsonElement(jsonArrayclassifications.get(i)); + }; } - - // validate the optional field `classifications` (array) - for (int i = 0; i < jsonArrayclassifications.size(); i++) { - ClassificationSummary.validateJsonElement(jsonArrayclassifications.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetClassificationsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetClassificationsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetClassificationsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetClassificationsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetClassificationsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetClassificationsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetClassificationsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetClassificationsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetClassificationsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetClassificationsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java b/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java index a626bda29..d1634959e 100644 --- a/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetConfigurationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetConfigurationResponse { public static final String SERIALIZED_NAME_CHAT_GPT_API_KEY = "chatGptApiKey"; @SerializedName(SERIALIZED_NAME_CHAT_GPT_API_KEY) @@ -104,7 +95,8 @@ public class GetConfigurationResponse { @javax.annotation.Nullable private DocusignConfig docusign; - public GetConfigurationResponse() {} + public GetConfigurationResponse() { + } public GetConfigurationResponse chatGptApiKey(@javax.annotation.Nullable String chatGptApiKey) { this.chatGptApiKey = chatGptApiKey; @@ -113,7 +105,6 @@ public GetConfigurationResponse chatGptApiKey(@javax.annotation.Nullable String /** * ChatGPT API Key - * * @return chatGptApiKey */ @javax.annotation.Nullable @@ -126,15 +117,13 @@ public void setChatGptApiKey(@javax.annotation.Nullable String chatGptApiKey) { } - public GetConfigurationResponse maxContentLengthBytes( - @javax.annotation.Nullable String maxContentLengthBytes) { + public GetConfigurationResponse maxContentLengthBytes(@javax.annotation.Nullable String maxContentLengthBytes) { this.maxContentLengthBytes = maxContentLengthBytes; return this; } /** * Set Maximum Document Content Length in Bytes - * * @return maxContentLengthBytes */ @javax.annotation.Nullable @@ -154,7 +143,6 @@ public GetConfigurationResponse maxDocuments(@javax.annotation.Nullable String m /** * Set Maximum number of Documents allowed - * * @return maxDocuments */ @javax.annotation.Nullable @@ -174,7 +162,6 @@ public GetConfigurationResponse maxWebhooks(@javax.annotation.Nullable String ma /** * Set Maximum number of Webhooks allowed - * * @return maxWebhooks */ @javax.annotation.Nullable @@ -187,15 +174,13 @@ public void setMaxWebhooks(@javax.annotation.Nullable String maxWebhooks) { } - public GetConfigurationResponse notificationEmail( - @javax.annotation.Nullable String notificationEmail) { + public GetConfigurationResponse notificationEmail(@javax.annotation.Nullable String notificationEmail) { this.notificationEmail = notificationEmail; return this; } /** * Email address to use for notifications (Must be verified identity created in AWS SES) - * * @return notificationEmail */ @javax.annotation.Nullable @@ -215,7 +200,6 @@ public GetConfigurationResponse ocr(@javax.annotation.Nullable OcrConfig ocr) { /** * Get ocr - * * @return ocr */ @javax.annotation.Nullable @@ -235,7 +219,6 @@ public GetConfigurationResponse google(@javax.annotation.Nullable GoogleConfig g /** * Get google - * * @return google */ @javax.annotation.Nullable @@ -255,7 +238,6 @@ public GetConfigurationResponse docusign(@javax.annotation.Nullable DocusignConf /** * Get docusign - * * @return docusign */ @javax.annotation.Nullable @@ -278,21 +260,19 @@ public boolean equals(Object o) { return false; } GetConfigurationResponse getConfigurationResponse = (GetConfigurationResponse) o; - return Objects.equals(this.chatGptApiKey, getConfigurationResponse.chatGptApiKey) - && Objects.equals(this.maxContentLengthBytes, - getConfigurationResponse.maxContentLengthBytes) - && Objects.equals(this.maxDocuments, getConfigurationResponse.maxDocuments) - && Objects.equals(this.maxWebhooks, getConfigurationResponse.maxWebhooks) - && Objects.equals(this.notificationEmail, getConfigurationResponse.notificationEmail) - && Objects.equals(this.ocr, getConfigurationResponse.ocr) - && Objects.equals(this.google, getConfigurationResponse.google) - && Objects.equals(this.docusign, getConfigurationResponse.docusign); + return Objects.equals(this.chatGptApiKey, getConfigurationResponse.chatGptApiKey) && + Objects.equals(this.maxContentLengthBytes, getConfigurationResponse.maxContentLengthBytes) && + Objects.equals(this.maxDocuments, getConfigurationResponse.maxDocuments) && + Objects.equals(this.maxWebhooks, getConfigurationResponse.maxWebhooks) && + Objects.equals(this.notificationEmail, getConfigurationResponse.notificationEmail) && + Objects.equals(this.ocr, getConfigurationResponse.ocr) && + Objects.equals(this.google, getConfigurationResponse.google) && + Objects.equals(this.docusign, getConfigurationResponse.docusign); } @Override public int hashCode() { - return Objects.hash(chatGptApiKey, maxContentLengthBytes, maxDocuments, maxWebhooks, - notificationEmail, ocr, google, docusign); + return Objects.hash(chatGptApiKey, maxContentLengthBytes, maxDocuments, maxWebhooks, notificationEmail, ocr, google, docusign); } @Override @@ -300,8 +280,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetConfigurationResponse {\n"); sb.append(" chatGptApiKey: ").append(toIndentedString(chatGptApiKey)).append("\n"); - sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)) - .append("\n"); + sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)).append("\n"); sb.append(" maxDocuments: ").append(toIndentedString(maxDocuments)).append("\n"); sb.append(" maxWebhooks: ").append(toIndentedString(maxWebhooks)).append("\n"); sb.append(" notificationEmail: ").append(toIndentedString(notificationEmail)).append("\n"); @@ -313,7 +292,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -328,8 +308,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("chatGptApiKey", "maxContentLengthBytes", - "maxDocuments", "maxWebhooks", "notificationEmail", "ocr", "google", "docusign")); + openapiFields = new HashSet(Arrays.asList("chatGptApiKey", "maxContentLengthBytes", "maxDocuments", "maxWebhooks", "notificationEmail", "ocr", "google", "docusign")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -342,96 +321,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetConfigurationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetConfigurationResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetConfigurationResponse is not found in the empty JSON string", - GetConfigurationResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetConfigurationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetConfigurationResponse is not found in the empty JSON string", GetConfigurationResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetConfigurationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetConfigurationResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetConfigurationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetConfigurationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("chatGptApiKey") != null && !jsonObj.get("chatGptApiKey").isJsonNull()) && !jsonObj.get("chatGptApiKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `chatGptApiKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("chatGptApiKey").toString())); + } + if ((jsonObj.get("maxContentLengthBytes") != null && !jsonObj.get("maxContentLengthBytes").isJsonNull()) && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxContentLengthBytes").toString())); + } + if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) && !jsonObj.get("maxDocuments").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxDocuments").toString())); + } + if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxWebhooks").toString())); + } + if ((jsonObj.get("notificationEmail") != null && !jsonObj.get("notificationEmail").isJsonNull()) && !jsonObj.get("notificationEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationEmail").toString())); + } + // validate the optional field `ocr` + if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { + OcrConfig.validateJsonElement(jsonObj.get("ocr")); + } + // validate the optional field `google` + if (jsonObj.get("google") != null && !jsonObj.get("google").isJsonNull()) { + GoogleConfig.validateJsonElement(jsonObj.get("google")); + } + // validate the optional field `docusign` + if (jsonObj.get("docusign") != null && !jsonObj.get("docusign").isJsonNull()) { + DocusignConfig.validateJsonElement(jsonObj.get("docusign")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("chatGptApiKey") != null && !jsonObj.get("chatGptApiKey").isJsonNull()) - && !jsonObj.get("chatGptApiKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `chatGptApiKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("chatGptApiKey").toString())); - } - if ((jsonObj.get("maxContentLengthBytes") != null - && !jsonObj.get("maxContentLengthBytes").isJsonNull()) - && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("maxContentLengthBytes").toString())); - } - if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) - && !jsonObj.get("maxDocuments").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("maxDocuments").toString())); - } - if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) - && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("maxWebhooks").toString())); - } - if ((jsonObj.get("notificationEmail") != null && !jsonObj.get("notificationEmail").isJsonNull()) - && !jsonObj.get("notificationEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `notificationEmail` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("notificationEmail").toString())); - } - // validate the optional field `ocr` - if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { - OcrConfig.validateJsonElement(jsonObj.get("ocr")); - } - // validate the optional field `google` - if (jsonObj.get("google") != null && !jsonObj.get("google").isJsonNull()) { - GoogleConfig.validateJsonElement(jsonObj.get("google")); - } - // validate the optional field `docusign` - if (jsonObj.get("docusign") != null && !jsonObj.get("docusign").isJsonNull()) { - DocusignConfig.validateJsonElement(jsonObj.get("docusign")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetConfigurationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetConfigurationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetConfigurationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetConfigurationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetConfigurationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetConfigurationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetConfigurationResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetConfigurationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetConfigurationResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetConfigurationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java index 2758bdc68..973413a57 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetDocumentActionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentActionsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetDocumentActionsResponse { @javax.annotation.Nullable private List actions = new ArrayList<>(); - public GetDocumentActionsResponse() {} + public GetDocumentActionsResponse() { + } public GetDocumentActionsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetDocumentActionsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetDocumentActionsResponse actions( - @javax.annotation.Nullable List actions) { + public GetDocumentActionsResponse actions(@javax.annotation.Nullable List actions) { this.actions = actions; return this; } @@ -112,7 +102,6 @@ public GetDocumentActionsResponse addActionsItem(DocumentAction actionsItem) { /** * List of document actions - * * @return actions */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } GetDocumentActionsResponse getDocumentActionsResponse = (GetDocumentActionsResponse) o; - return Objects.equals(this.next, getDocumentActionsResponse.next) - && Objects.equals(this.actions, getDocumentActionsResponse.actions); + return Objects.equals(this.next, getDocumentActionsResponse.next) && + Objects.equals(this.actions, getDocumentActionsResponse.actions); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentActionsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentActionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentActionsResponse is not found in the empty JSON string", - GetDocumentActionsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentActionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentActionsResponse is not found in the empty JSON string", GetDocumentActionsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentActionsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentActionsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentActionsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentActionsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - if (jsonArrayactions != null) { - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `actions` to be an array in the JSON string but got `%s`", - jsonObj.get("actions").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { + JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); + if (jsonArrayactions != null) { + // ensure the json data is an array + if (!jsonObj.get("actions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); + } + + // validate the optional field `actions` (array) + for (int i = 0; i < jsonArrayactions.size(); i++) { + DocumentAction.validateJsonElement(jsonArrayactions.get(i)); + }; } - - // validate the optional field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - DocumentAction.validateJsonElement(jsonArrayactions.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentActionsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentActionsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentActionsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentActionsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentActionsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentActionsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentActionsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentActionsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentActionsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentActionsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java index 970e4e797..bb7e4fbe2 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * GetDocumentAttributeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentAttributeResponse { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @javax.annotation.Nullable private DocumentAttribute attribute; - public GetDocumentAttributeResponse() {} + public GetDocumentAttributeResponse() { + } - public GetDocumentAttributeResponse attribute( - @javax.annotation.Nullable DocumentAttribute attribute) { + public GetDocumentAttributeResponse attribute(@javax.annotation.Nullable DocumentAttribute attribute) { this.attribute = attribute; return this; } /** * Get attribute - * * @return attribute */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,58 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentAttributeResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentAttributeResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentAttributeResponse is not found in the empty JSON string", - GetDocumentAttributeResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentAttributeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentAttributeResponse is not found in the empty JSON string", GetDocumentAttributeResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentAttributeResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentAttributeResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentAttributeResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentAttributeResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `attribute` + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { + DocumentAttribute.validateJsonElement(jsonObj.get("attribute")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `attribute` - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { - DocumentAttribute.validateJsonElement(jsonObj.get("attribute")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentAttributeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentAttributeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentAttributeResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentAttributeResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentAttributeResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentAttributeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentAttributeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentAttributeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentAttributeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentAttributeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java index 7e00c4bdd..bc8ed1090 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetDocumentAttributesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentAttributesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetDocumentAttributesResponse { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public GetDocumentAttributesResponse() {} + public GetDocumentAttributesResponse() { + } public GetDocumentAttributesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetDocumentAttributesResponse next(@javax.annotation.Nullable String next /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetDocumentAttributesResponse attributes( - @javax.annotation.Nullable List attributes) { + public GetDocumentAttributesResponse attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -112,7 +102,6 @@ public GetDocumentAttributesResponse addAttributesItem(DocumentAttribute attribu /** * List of attributes - * * @return attributes */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } GetDocumentAttributesResponse getDocumentAttributesResponse = (GetDocumentAttributesResponse) o; - return Objects.equals(this.next, getDocumentAttributesResponse.next) - && Objects.equals(this.attributes, getDocumentAttributesResponse.attributes); + return Objects.equals(this.next, getDocumentAttributesResponse.next) && + Objects.equals(this.attributes, getDocumentAttributesResponse.attributes); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -180,80 +170,68 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * GetDocumentAttributesResponse + * @throws IOException if the JSON Element is invalid with respect to GetDocumentAttributesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentAttributesResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentAttributesResponse is not found in the empty JSON string", - GetDocumentAttributesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentAttributesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentAttributesResponse is not found in the empty JSON string", GetDocumentAttributesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentAttributesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentAttributesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentAttributesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentAttributesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + DocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - DocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentAttributesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentAttributesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentAttributesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentAttributesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentAttributesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentAttributesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentAttributesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentAttributesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentAttributesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentAttributesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java index 89a243891..df9e48d45 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * GetDocumentContentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentContentResponse { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) @@ -81,7 +72,8 @@ public class GetDocumentContentResponse { @javax.annotation.Nullable private Boolean isBase64; - public GetDocumentContentResponse() {} + public GetDocumentContentResponse() { + } public GetDocumentContentResponse content(@javax.annotation.Nullable String content) { this.content = content; @@ -90,7 +82,6 @@ public GetDocumentContentResponse content(@javax.annotation.Nullable String cont /** * Document content - * * @return content */ @javax.annotation.Nullable @@ -110,7 +101,6 @@ public GetDocumentContentResponse contentUrl(@javax.annotation.Nullable String c /** * URL to retrieve document content - * * @return contentUrl */ @javax.annotation.Nullable @@ -130,7 +120,6 @@ public GetDocumentContentResponse contentType(@javax.annotation.Nullable String /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -150,7 +139,6 @@ public GetDocumentContentResponse isBase64(@javax.annotation.Nullable Boolean is /** * Is the content Base64-encoded? - * * @return isBase64 */ @javax.annotation.Nullable @@ -173,10 +161,10 @@ public boolean equals(Object o) { return false; } GetDocumentContentResponse getDocumentContentResponse = (GetDocumentContentResponse) o; - return Objects.equals(this.content, getDocumentContentResponse.content) - && Objects.equals(this.contentUrl, getDocumentContentResponse.contentUrl) - && Objects.equals(this.contentType, getDocumentContentResponse.contentType) - && Objects.equals(this.isBase64, getDocumentContentResponse.isBase64); + return Objects.equals(this.content, getDocumentContentResponse.content) && + Objects.equals(this.contentUrl, getDocumentContentResponse.contentUrl) && + Objects.equals(this.contentType, getDocumentContentResponse.contentType) && + Objects.equals(this.isBase64, getDocumentContentResponse.isBase64); } @Override @@ -197,7 +185,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -212,8 +201,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("content", "contentUrl", "contentType", "isBase64")); + openapiFields = new HashSet(Arrays.asList("content", "contentUrl", "contentType", "isBase64")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -226,71 +214,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentContentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentContentResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentContentResponse is not found in the empty JSON string", - GetDocumentContentResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentContentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentContentResponse is not found in the empty JSON string", GetDocumentContentResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentContentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentContentResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentContentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentContentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + } + if ((jsonObj.get("contentUrl") != null && !jsonObj.get("contentUrl").isJsonNull()) && !jsonObj.get("contentUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentUrl").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) - && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } - if ((jsonObj.get("contentUrl") != null && !jsonObj.get("contentUrl").isJsonNull()) - && !jsonObj.get("contentUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentUrl` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentUrl").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentContentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentContentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentContentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentContentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentContentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentContentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentContentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentContentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentContentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentContentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java index 4dd808835..8c763a670 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetDocumentDataClassificationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentDataClassificationResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetDocumentDataClassificationResponse { @javax.annotation.Nullable private List dataClassifications = new ArrayList<>(); - public GetDocumentDataClassificationResponse() {} + public GetDocumentDataClassificationResponse() { + } public GetDocumentDataClassificationResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetDocumentDataClassificationResponse next(@javax.annotation.Nullable Str /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,14 +87,12 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetDocumentDataClassificationResponse dataClassifications( - @javax.annotation.Nullable List dataClassifications) { + public GetDocumentDataClassificationResponse dataClassifications(@javax.annotation.Nullable List dataClassifications) { this.dataClassifications = dataClassifications; return this; } - public GetDocumentDataClassificationResponse addDataClassificationsItem( - DataClassification dataClassificationsItem) { + public GetDocumentDataClassificationResponse addDataClassificationsItem(DataClassification dataClassificationsItem) { if (this.dataClassifications == null) { this.dataClassifications = new ArrayList<>(); } @@ -113,7 +102,6 @@ public GetDocumentDataClassificationResponse addDataClassificationsItem( /** * List of Data Classifications - * * @return dataClassifications */ @javax.annotation.Nullable @@ -121,8 +109,7 @@ public List getDataClassifications() { return dataClassifications; } - public void setDataClassifications( - @javax.annotation.Nullable List dataClassifications) { + public void setDataClassifications(@javax.annotation.Nullable List dataClassifications) { this.dataClassifications = dataClassifications; } @@ -136,10 +123,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetDocumentDataClassificationResponse getDocumentDataClassificationResponse = - (GetDocumentDataClassificationResponse) o; - return Objects.equals(this.next, getDocumentDataClassificationResponse.next) && Objects.equals( - this.dataClassifications, getDocumentDataClassificationResponse.dataClassifications); + GetDocumentDataClassificationResponse getDocumentDataClassificationResponse = (GetDocumentDataClassificationResponse) o; + return Objects.equals(this.next, getDocumentDataClassificationResponse.next) && + Objects.equals(this.dataClassifications, getDocumentDataClassificationResponse.dataClassifications); } @Override @@ -152,14 +138,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetDocumentDataClassificationResponse {\n"); sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append(" dataClassifications: ").append(toIndentedString(dataClassifications)) - .append("\n"); + sb.append(" dataClassifications: ").append(toIndentedString(dataClassifications)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -184,84 +170,68 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * GetDocumentDataClassificationResponse + * @throws IOException if the JSON Element is invalid with respect to GetDocumentDataClassificationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentDataClassificationResponse.openapiRequiredFields.isEmpty()) { // has required - // fields but - // JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentDataClassificationResponse is not found in the empty JSON string", - GetDocumentDataClassificationResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentDataClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentDataClassificationResponse is not found in the empty JSON string", GetDocumentDataClassificationResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentDataClassificationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentDataClassificationResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentDataClassificationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentDataClassificationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("dataClassifications") != null - && !jsonObj.get("dataClassifications").isJsonNull()) { - JsonArray jsonArraydataClassifications = jsonObj.getAsJsonArray("dataClassifications"); - if (jsonArraydataClassifications != null) { - // ensure the json data is an array - if (!jsonObj.get("dataClassifications").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dataClassifications` to be an array in the JSON string but got `%s`", - jsonObj.get("dataClassifications").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("dataClassifications") != null && !jsonObj.get("dataClassifications").isJsonNull()) { + JsonArray jsonArraydataClassifications = jsonObj.getAsJsonArray("dataClassifications"); + if (jsonArraydataClassifications != null) { + // ensure the json data is an array + if (!jsonObj.get("dataClassifications").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dataClassifications` to be an array in the JSON string but got `%s`", jsonObj.get("dataClassifications").toString())); + } + + // validate the optional field `dataClassifications` (array) + for (int i = 0; i < jsonArraydataClassifications.size(); i++) { + DataClassification.validateJsonElement(jsonArraydataClassifications.get(i)); + }; } - - // validate the optional field `dataClassifications` (array) - for (int i = 0; i < jsonArraydataClassifications.size(); i++) { - DataClassification.validateJsonElement(jsonArraydataClassifications.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentDataClassificationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentDataClassificationResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentDataClassificationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentDataClassificationResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentDataClassificationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentDataClassificationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentDataClassificationResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentDataClassificationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentDataClassificationResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentDataClassificationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -270,11 +240,9 @@ public GetDocumentDataClassificationResponse read(JsonReader in) throws IOExcept * * @param jsonString JSON string * @return An instance of GetDocumentDataClassificationResponse - * @throws IOException if the JSON string is invalid with respect to - * GetDocumentDataClassificationResponse + * @throws IOException if the JSON string is invalid with respect to GetDocumentDataClassificationResponse */ - public static GetDocumentDataClassificationResponse fromJson(String jsonString) - throws IOException { + public static GetDocumentDataClassificationResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetDocumentDataClassificationResponse.class); } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java index 1b59cfbca..f02cdef69 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * GetDocumentFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentFulltextResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -150,7 +141,8 @@ public class GetDocumentFulltextResponse { @javax.annotation.Nullable private Map attributes = new HashMap<>(); - public GetDocumentFulltextResponse() {} + public GetDocumentFulltextResponse() { + } public GetDocumentFulltextResponse siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -159,7 +151,6 @@ public GetDocumentFulltextResponse siteId(@javax.annotation.Nullable String site /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -179,7 +170,6 @@ public GetDocumentFulltextResponse content(@javax.annotation.Nullable String con /** * Content of document - * * @return content */ @javax.annotation.Nullable @@ -199,7 +189,6 @@ public GetDocumentFulltextResponse contentType(@javax.annotation.Nullable String /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -219,7 +208,6 @@ public GetDocumentFulltextResponse path(@javax.annotation.Nullable String path) /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -239,7 +227,6 @@ public GetDocumentFulltextResponse width(@javax.annotation.Nullable String width /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -259,7 +246,6 @@ public GetDocumentFulltextResponse height(@javax.annotation.Nullable String heig /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -279,7 +265,6 @@ public GetDocumentFulltextResponse deepLinkPath(@javax.annotation.Nullable Strin /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -299,7 +284,6 @@ public GetDocumentFulltextResponse insertedDate(@javax.annotation.Nullable Strin /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -312,15 +296,13 @@ public void setInsertedDate(@javax.annotation.Nullable String insertedDate) { } - public GetDocumentFulltextResponse lastModifiedDate( - @javax.annotation.Nullable String lastModifiedDate) { + public GetDocumentFulltextResponse lastModifiedDate(@javax.annotation.Nullable String lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; return this; } /** * Last Modified Timestamp - * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -340,7 +322,6 @@ public GetDocumentFulltextResponse documentId(@javax.annotation.Nullable String /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -360,7 +341,6 @@ public GetDocumentFulltextResponse createdBy(@javax.annotation.Nullable String c /** * User who added document - * * @return createdBy */ @javax.annotation.Nullable @@ -373,15 +353,13 @@ public void setCreatedBy(@javax.annotation.Nullable String createdBy) { } - public GetDocumentFulltextResponse contentLength( - @javax.annotation.Nullable Integer contentLength) { + public GetDocumentFulltextResponse contentLength(@javax.annotation.Nullable Integer contentLength) { this.contentLength = contentLength; return this; } /** * Document size - * * @return contentLength */ @javax.annotation.Nullable @@ -401,7 +379,6 @@ public GetDocumentFulltextResponse checksum(@javax.annotation.Nullable String ch /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -414,15 +391,13 @@ public void setChecksum(@javax.annotation.Nullable String checksum) { } - public GetDocumentFulltextResponse checksumType( - @javax.annotation.Nullable ChecksumType checksumType) { + public GetDocumentFulltextResponse checksumType(@javax.annotation.Nullable ChecksumType checksumType) { this.checksumType = checksumType; return this; } /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -450,7 +425,6 @@ public GetDocumentFulltextResponse putTagsItem(String key, Object tagsItem) { /** * Get tags - * * @return tags */ @javax.annotation.Nullable @@ -463,8 +437,7 @@ public void setTags(@javax.annotation.Nullable Map tags) { } - public GetDocumentFulltextResponse metadata( - @javax.annotation.Nullable Map metadata) { + public GetDocumentFulltextResponse metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -479,7 +452,6 @@ public GetDocumentFulltextResponse putMetadataItem(String key, Object metadataIt /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -492,14 +464,12 @@ public void setMetadata(@javax.annotation.Nullable Map metadata) } - public GetDocumentFulltextResponse attributes( - @javax.annotation.Nullable Map attributes) { + public GetDocumentFulltextResponse attributes(@javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } - public GetDocumentFulltextResponse putAttributesItem(String key, - FulltextAttribute attributesItem) { + public GetDocumentFulltextResponse putAttributesItem(String key, FulltextAttribute attributesItem) { if (this.attributes == null) { this.attributes = new HashMap<>(); } @@ -509,7 +479,6 @@ public GetDocumentFulltextResponse putAttributesItem(String key, /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -532,30 +501,28 @@ public boolean equals(Object o) { return false; } GetDocumentFulltextResponse getDocumentFulltextResponse = (GetDocumentFulltextResponse) o; - return Objects.equals(this.siteId, getDocumentFulltextResponse.siteId) - && Objects.equals(this.content, getDocumentFulltextResponse.content) - && Objects.equals(this.contentType, getDocumentFulltextResponse.contentType) - && Objects.equals(this.path, getDocumentFulltextResponse.path) - && Objects.equals(this.width, getDocumentFulltextResponse.width) - && Objects.equals(this.height, getDocumentFulltextResponse.height) - && Objects.equals(this.deepLinkPath, getDocumentFulltextResponse.deepLinkPath) - && Objects.equals(this.insertedDate, getDocumentFulltextResponse.insertedDate) - && Objects.equals(this.lastModifiedDate, getDocumentFulltextResponse.lastModifiedDate) - && Objects.equals(this.documentId, getDocumentFulltextResponse.documentId) - && Objects.equals(this.createdBy, getDocumentFulltextResponse.createdBy) - && Objects.equals(this.contentLength, getDocumentFulltextResponse.contentLength) - && Objects.equals(this.checksum, getDocumentFulltextResponse.checksum) - && Objects.equals(this.checksumType, getDocumentFulltextResponse.checksumType) - && Objects.equals(this.tags, getDocumentFulltextResponse.tags) - && Objects.equals(this.metadata, getDocumentFulltextResponse.metadata) - && Objects.equals(this.attributes, getDocumentFulltextResponse.attributes); + return Objects.equals(this.siteId, getDocumentFulltextResponse.siteId) && + Objects.equals(this.content, getDocumentFulltextResponse.content) && + Objects.equals(this.contentType, getDocumentFulltextResponse.contentType) && + Objects.equals(this.path, getDocumentFulltextResponse.path) && + Objects.equals(this.width, getDocumentFulltextResponse.width) && + Objects.equals(this.height, getDocumentFulltextResponse.height) && + Objects.equals(this.deepLinkPath, getDocumentFulltextResponse.deepLinkPath) && + Objects.equals(this.insertedDate, getDocumentFulltextResponse.insertedDate) && + Objects.equals(this.lastModifiedDate, getDocumentFulltextResponse.lastModifiedDate) && + Objects.equals(this.documentId, getDocumentFulltextResponse.documentId) && + Objects.equals(this.createdBy, getDocumentFulltextResponse.createdBy) && + Objects.equals(this.contentLength, getDocumentFulltextResponse.contentLength) && + Objects.equals(this.checksum, getDocumentFulltextResponse.checksum) && + Objects.equals(this.checksumType, getDocumentFulltextResponse.checksumType) && + Objects.equals(this.tags, getDocumentFulltextResponse.tags) && + Objects.equals(this.metadata, getDocumentFulltextResponse.metadata) && + Objects.equals(this.attributes, getDocumentFulltextResponse.attributes); } @Override public int hashCode() { - return Objects.hash(siteId, content, contentType, path, width, height, deepLinkPath, - insertedDate, lastModifiedDate, documentId, createdBy, contentLength, checksum, - checksumType, tags, metadata, attributes); + return Objects.hash(siteId, content, contentType, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, documentId, createdBy, contentLength, checksum, checksumType, tags, metadata, attributes); } @Override @@ -584,7 +551,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -599,10 +567,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("siteId", "content", "contentType", "path", "width", - "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "documentId", "createdBy", - "contentLength", "checksum", "checksumType", "tags", "metadata", "attributes")); + openapiFields = new HashSet(Arrays.asList("siteId", "content", "contentType", "path", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "documentId", "createdBy", "contentLength", "checksum", "checksumType", "tags", "metadata", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -615,129 +580,88 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentFulltextResponse is not found in the empty JSON string", - GetDocumentFulltextResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentFulltextResponse is not found in the empty JSON string", GetDocumentFulltextResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentFulltextResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) - && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) - && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) - && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("createdBy").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java index c3181fc2b..df6aa31f1 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * GetDocumentOcrResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentOcrResponse { public static final String SERIALIZED_NAME_CONTENT_URLS = "contentUrls"; @SerializedName(SERIALIZED_NAME_CONTENT_URLS) @@ -120,7 +111,8 @@ public class GetDocumentOcrResponse { @javax.annotation.Nullable private String insertedDate; - public GetDocumentOcrResponse() {} + public GetDocumentOcrResponse() { + } public GetDocumentOcrResponse contentUrls(@javax.annotation.Nullable List contentUrls) { this.contentUrls = contentUrls; @@ -137,7 +129,6 @@ public GetDocumentOcrResponse addContentUrlsItem(String contentUrlsItem) { /** * Presigned S3 Urls for the OCR content - * * @return contentUrls */ @javax.annotation.Nullable @@ -165,7 +156,6 @@ public GetDocumentOcrResponse addKeyValuesItem(OcrKeyValues keyValuesItem) { /** * List of ocr key / values - * * @return keyValues */ @javax.annotation.Nullable @@ -193,7 +183,6 @@ public GetDocumentOcrResponse addTablesItem(OcrTable tablesItem) { /** * Get tables - * * @return tables */ @javax.annotation.Nullable @@ -213,7 +202,6 @@ public GetDocumentOcrResponse data(@javax.annotation.Nullable String data) { /** * OCR text result - * * @return data */ @javax.annotation.Nullable @@ -233,7 +221,6 @@ public GetDocumentOcrResponse ocrEngine(@javax.annotation.Nullable String ocrEng /** * The OCR technique used - * * @return ocrEngine */ @javax.annotation.Nullable @@ -253,7 +240,6 @@ public GetDocumentOcrResponse ocrStatus(@javax.annotation.Nullable String ocrSta /** * The status of the OCR request - * * @return ocrStatus */ @javax.annotation.Nullable @@ -273,7 +259,6 @@ public GetDocumentOcrResponse contentType(@javax.annotation.Nullable String cont /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -293,7 +278,6 @@ public GetDocumentOcrResponse isBase64(@javax.annotation.Nullable Boolean isBase /** * Is the content Base64-encoded? - * * @return isBase64 */ @javax.annotation.Nullable @@ -313,7 +297,6 @@ public GetDocumentOcrResponse userId(@javax.annotation.Nullable String userId) { /** * User who requested the OCR - * * @return userId */ @javax.annotation.Nullable @@ -333,7 +316,6 @@ public GetDocumentOcrResponse documentId(@javax.annotation.Nullable String docum /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -353,7 +335,6 @@ public GetDocumentOcrResponse insertedDate(@javax.annotation.Nullable String ins /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -376,23 +357,22 @@ public boolean equals(Object o) { return false; } GetDocumentOcrResponse getDocumentOcrResponse = (GetDocumentOcrResponse) o; - return Objects.equals(this.contentUrls, getDocumentOcrResponse.contentUrls) - && Objects.equals(this.keyValues, getDocumentOcrResponse.keyValues) - && Objects.equals(this.tables, getDocumentOcrResponse.tables) - && Objects.equals(this.data, getDocumentOcrResponse.data) - && Objects.equals(this.ocrEngine, getDocumentOcrResponse.ocrEngine) - && Objects.equals(this.ocrStatus, getDocumentOcrResponse.ocrStatus) - && Objects.equals(this.contentType, getDocumentOcrResponse.contentType) - && Objects.equals(this.isBase64, getDocumentOcrResponse.isBase64) - && Objects.equals(this.userId, getDocumentOcrResponse.userId) - && Objects.equals(this.documentId, getDocumentOcrResponse.documentId) - && Objects.equals(this.insertedDate, getDocumentOcrResponse.insertedDate); + return Objects.equals(this.contentUrls, getDocumentOcrResponse.contentUrls) && + Objects.equals(this.keyValues, getDocumentOcrResponse.keyValues) && + Objects.equals(this.tables, getDocumentOcrResponse.tables) && + Objects.equals(this.data, getDocumentOcrResponse.data) && + Objects.equals(this.ocrEngine, getDocumentOcrResponse.ocrEngine) && + Objects.equals(this.ocrStatus, getDocumentOcrResponse.ocrStatus) && + Objects.equals(this.contentType, getDocumentOcrResponse.contentType) && + Objects.equals(this.isBase64, getDocumentOcrResponse.isBase64) && + Objects.equals(this.userId, getDocumentOcrResponse.userId) && + Objects.equals(this.documentId, getDocumentOcrResponse.documentId) && + Objects.equals(this.insertedDate, getDocumentOcrResponse.insertedDate); } @Override public int hashCode() { - return Objects.hash(contentUrls, keyValues, tables, data, ocrEngine, ocrStatus, contentType, - isBase64, userId, documentId, insertedDate); + return Objects.hash(contentUrls, keyValues, tables, data, ocrEngine, ocrStatus, contentType, isBase64, userId, documentId, insertedDate); } @Override @@ -415,7 +395,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -430,9 +411,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("contentUrls", "keyValues", "tables", "data", "ocrEngine", - "ocrStatus", "contentType", "isBase64", "userId", "documentId", "insertedDate")); + openapiFields = new HashSet(Arrays.asList("contentUrls", "keyValues", "tables", "data", "ocrEngine", "ocrStatus", "contentType", "isBase64", "userId", "documentId", "insertedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -445,134 +424,101 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentOcrResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentOcrResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentOcrResponse is not found in the empty JSON string", - GetDocumentOcrResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentOcrResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentOcrResponse is not found in the empty JSON string", GetDocumentOcrResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentOcrResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentOcrResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentOcrResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentOcrResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() - && !jsonObj.get("contentUrls").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", - jsonObj.get("contentUrls").toString())); - } - if (jsonObj.get("keyValues") != null && !jsonObj.get("keyValues").isJsonNull()) { - JsonArray jsonArraykeyValues = jsonObj.getAsJsonArray("keyValues"); - if (jsonArraykeyValues != null) { - // ensure the json data is an array - if (!jsonObj.get("keyValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `keyValues` to be an array in the JSON string but got `%s`", - jsonObj.get("keyValues").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() && !jsonObj.get("contentUrls").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", jsonObj.get("contentUrls").toString())); + } + if (jsonObj.get("keyValues") != null && !jsonObj.get("keyValues").isJsonNull()) { + JsonArray jsonArraykeyValues = jsonObj.getAsJsonArray("keyValues"); + if (jsonArraykeyValues != null) { + // ensure the json data is an array + if (!jsonObj.get("keyValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `keyValues` to be an array in the JSON string but got `%s`", jsonObj.get("keyValues").toString())); + } + + // validate the optional field `keyValues` (array) + for (int i = 0; i < jsonArraykeyValues.size(); i++) { + OcrKeyValues.validateJsonElement(jsonArraykeyValues.get(i)); + }; } - - // validate the optional field `keyValues` (array) - for (int i = 0; i < jsonArraykeyValues.size(); i++) { - OcrKeyValues.validateJsonElement(jsonArraykeyValues.get(i)); - } ; } - } - if (jsonObj.get("tables") != null && !jsonObj.get("tables").isJsonNull()) { - JsonArray jsonArraytables = jsonObj.getAsJsonArray("tables"); - if (jsonArraytables != null) { - // ensure the json data is an array - if (!jsonObj.get("tables").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tables` to be an array in the JSON string but got `%s`", - jsonObj.get("tables").toString())); + if (jsonObj.get("tables") != null && !jsonObj.get("tables").isJsonNull()) { + JsonArray jsonArraytables = jsonObj.getAsJsonArray("tables"); + if (jsonArraytables != null) { + // ensure the json data is an array + if (!jsonObj.get("tables").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tables` to be an array in the JSON string but got `%s`", jsonObj.get("tables").toString())); + } + + // validate the optional field `tables` (array) + for (int i = 0; i < jsonArraytables.size(); i++) { + OcrTable.validateJsonElement(jsonArraytables.get(i)); + }; } - - // validate the optional field `tables` (array) - for (int i = 0; i < jsonArraytables.size(); i++) { - OcrTable.validateJsonElement(jsonArraytables.get(i)); - } ; } - } - if ((jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) - && !jsonObj.get("data").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `data` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("data").toString())); - } - if ((jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) - && !jsonObj.get("ocrEngine").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `ocrEngine` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("ocrEngine").toString())); - } - if ((jsonObj.get("ocrStatus") != null && !jsonObj.get("ocrStatus").isJsonNull()) - && !jsonObj.get("ocrStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `ocrStatus` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("ocrStatus").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } + if ((jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) && !jsonObj.get("data").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be a primitive type in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + if ((jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) && !jsonObj.get("ocrEngine").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrEngine` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ocrEngine").toString())); + } + if ((jsonObj.get("ocrStatus") != null && !jsonObj.get("ocrStatus").isJsonNull()) && !jsonObj.get("ocrStatus").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ocrStatus").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentOcrResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentOcrResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentOcrResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentOcrResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentOcrResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentOcrResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentOcrResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentOcrResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentOcrResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentOcrResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentResponse.java index 3d0b3e18d..f6c57c75b 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * GetDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -151,7 +142,8 @@ public class GetDocumentResponse { @javax.annotation.Nullable private List metadata = new ArrayList<>(); - public GetDocumentResponse() {} + public GetDocumentResponse() { + } public GetDocumentResponse siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -160,7 +152,6 @@ public GetDocumentResponse siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -180,7 +171,6 @@ public GetDocumentResponse path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -200,7 +190,6 @@ public GetDocumentResponse width(@javax.annotation.Nullable String width) { /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -220,7 +209,6 @@ public GetDocumentResponse height(@javax.annotation.Nullable String height) { /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -240,7 +228,6 @@ public GetDocumentResponse deepLinkPath(@javax.annotation.Nullable String deepLi /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -260,7 +247,6 @@ public GetDocumentResponse insertedDate(@javax.annotation.Nullable String insert /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -280,7 +266,6 @@ public GetDocumentResponse lastModifiedDate(@javax.annotation.Nullable String la /** * Last Modified Timestamp - * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -300,7 +285,6 @@ public GetDocumentResponse checksum(@javax.annotation.Nullable String checksum) /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -320,7 +304,6 @@ public GetDocumentResponse checksumType(@javax.annotation.Nullable ChecksumType /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -340,7 +323,6 @@ public GetDocumentResponse documentId(@javax.annotation.Nonnull String documentI /** * Document Identifier - * * @return documentId */ @javax.annotation.Nonnull @@ -360,7 +342,6 @@ public GetDocumentResponse contentType(@javax.annotation.Nullable String content /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -380,7 +361,6 @@ public GetDocumentResponse userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -400,7 +380,6 @@ public GetDocumentResponse contentLength(@javax.annotation.Nullable Integer cont /** * Document size - * * @return contentLength */ @javax.annotation.Nullable @@ -420,7 +399,6 @@ public GetDocumentResponse versionId(@javax.annotation.Nullable String versionId /** * Document version - * * @return versionId */ @javax.annotation.Nullable @@ -448,7 +426,6 @@ public GetDocumentResponse addDocumentsItem(ChildDocument documentsItem) { /** * List of child documents - * * @return documents */ @javax.annotation.Nullable @@ -461,15 +438,13 @@ public void setDocuments(@javax.annotation.Nullable List document } - public GetDocumentResponse belongsToDocumentId( - @javax.annotation.Nullable String belongsToDocumentId) { + public GetDocumentResponse belongsToDocumentId(@javax.annotation.Nullable String belongsToDocumentId) { this.belongsToDocumentId = belongsToDocumentId; return this; } /** * Parent Document Identifier - * * @return belongsToDocumentId */ @javax.annotation.Nullable @@ -497,7 +472,6 @@ public GetDocumentResponse addMetadataItem(DocumentMetadata metadataItem) { /** * List of document Metadata - * * @return metadata */ @javax.annotation.Nullable @@ -520,30 +494,28 @@ public boolean equals(Object o) { return false; } GetDocumentResponse getDocumentResponse = (GetDocumentResponse) o; - return Objects.equals(this.siteId, getDocumentResponse.siteId) - && Objects.equals(this.path, getDocumentResponse.path) - && Objects.equals(this.width, getDocumentResponse.width) - && Objects.equals(this.height, getDocumentResponse.height) - && Objects.equals(this.deepLinkPath, getDocumentResponse.deepLinkPath) - && Objects.equals(this.insertedDate, getDocumentResponse.insertedDate) - && Objects.equals(this.lastModifiedDate, getDocumentResponse.lastModifiedDate) - && Objects.equals(this.checksum, getDocumentResponse.checksum) - && Objects.equals(this.checksumType, getDocumentResponse.checksumType) - && Objects.equals(this.documentId, getDocumentResponse.documentId) - && Objects.equals(this.contentType, getDocumentResponse.contentType) - && Objects.equals(this.userId, getDocumentResponse.userId) - && Objects.equals(this.contentLength, getDocumentResponse.contentLength) - && Objects.equals(this.versionId, getDocumentResponse.versionId) - && Objects.equals(this.documents, getDocumentResponse.documents) - && Objects.equals(this.belongsToDocumentId, getDocumentResponse.belongsToDocumentId) - && Objects.equals(this.metadata, getDocumentResponse.metadata); + return Objects.equals(this.siteId, getDocumentResponse.siteId) && + Objects.equals(this.path, getDocumentResponse.path) && + Objects.equals(this.width, getDocumentResponse.width) && + Objects.equals(this.height, getDocumentResponse.height) && + Objects.equals(this.deepLinkPath, getDocumentResponse.deepLinkPath) && + Objects.equals(this.insertedDate, getDocumentResponse.insertedDate) && + Objects.equals(this.lastModifiedDate, getDocumentResponse.lastModifiedDate) && + Objects.equals(this.checksum, getDocumentResponse.checksum) && + Objects.equals(this.checksumType, getDocumentResponse.checksumType) && + Objects.equals(this.documentId, getDocumentResponse.documentId) && + Objects.equals(this.contentType, getDocumentResponse.contentType) && + Objects.equals(this.userId, getDocumentResponse.userId) && + Objects.equals(this.contentLength, getDocumentResponse.contentLength) && + Objects.equals(this.versionId, getDocumentResponse.versionId) && + Objects.equals(this.documents, getDocumentResponse.documents) && + Objects.equals(this.belongsToDocumentId, getDocumentResponse.belongsToDocumentId) && + Objects.equals(this.metadata, getDocumentResponse.metadata); } @Override public int hashCode() { - return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, - checksum, checksumType, documentId, contentType, userId, contentLength, versionId, - documents, belongsToDocumentId, metadata); + return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, checksum, checksumType, documentId, contentType, userId, contentLength, versionId, documents, belongsToDocumentId, metadata); } @Override @@ -565,15 +537,15 @@ public String toString() { sb.append(" contentLength: ").append(toIndentedString(contentLength)).append("\n"); sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); sb.append(" documents: ").append(toIndentedString(documents)).append("\n"); - sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)) - .append("\n"); + sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -588,10 +560,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("siteId", "path", "width", "height", "deepLinkPath", "insertedDate", - "lastModifiedDate", "checksum", "checksumType", "documentId", "contentType", "userId", - "contentLength", "versionId", "documents", "belongsToDocumentId", "metadata")); + openapiFields = new HashSet(Arrays.asList("siteId", "path", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "checksumType", "documentId", "contentType", "userId", "contentLength", "versionId", "documents", "belongsToDocumentId", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("documentId")); @@ -604,176 +573,126 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentResponse is not found in the empty JSON string", - GetDocumentResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentResponse is not found in the empty JSON string", GetDocumentResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GetDocumentResponse.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetDocumentResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) - && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) - && !jsonObj.get("versionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("versionId").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) && !jsonObj.get("versionId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionId").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + ChildDocument.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - ChildDocument.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } - if ((jsonObj.get("belongsToDocumentId") != null - && !jsonObj.get("belongsToDocumentId").isJsonNull()) - && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("belongsToDocumentId").toString())); - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `metadata` to be an array in the JSON string but got `%s`", - jsonObj.get("metadata").toString())); + if ((jsonObj.get("belongsToDocumentId") != null && !jsonObj.get("belongsToDocumentId").isJsonNull()) && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("belongsToDocumentId").toString())); + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + }; } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java index 89d060f46..23162182c 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetDocumentSyncResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentSyncResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetDocumentSyncResponse { @javax.annotation.Nullable private List syncs = new ArrayList<>(); - public GetDocumentSyncResponse() {} + public GetDocumentSyncResponse() { + } public GetDocumentSyncResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetDocumentSyncResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetDocumentSyncResponse addSyncsItem(DocumentSync syncsItem) { /** * List of document syncs - * * @return syncs */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetDocumentSyncResponse getDocumentSyncResponse = (GetDocumentSyncResponse) o; - return Objects.equals(this.next, getDocumentSyncResponse.next) - && Objects.equals(this.syncs, getDocumentSyncResponse.syncs); + return Objects.equals(this.next, getDocumentSyncResponse.next) && + Objects.equals(this.syncs, getDocumentSyncResponse.syncs); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentSyncResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentSyncResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentSyncResponse is not found in the empty JSON string", - GetDocumentSyncResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentSyncResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentSyncResponse is not found in the empty JSON string", GetDocumentSyncResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentSyncResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentSyncResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentSyncResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentSyncResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("syncs") != null && !jsonObj.get("syncs").isJsonNull()) { - JsonArray jsonArraysyncs = jsonObj.getAsJsonArray("syncs"); - if (jsonArraysyncs != null) { - // ensure the json data is an array - if (!jsonObj.get("syncs").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `syncs` to be an array in the JSON string but got `%s`", - jsonObj.get("syncs").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("syncs") != null && !jsonObj.get("syncs").isJsonNull()) { + JsonArray jsonArraysyncs = jsonObj.getAsJsonArray("syncs"); + if (jsonArraysyncs != null) { + // ensure the json data is an array + if (!jsonObj.get("syncs").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `syncs` to be an array in the JSON string but got `%s`", jsonObj.get("syncs").toString())); + } + + // validate the optional field `syncs` (array) + for (int i = 0; i < jsonArraysyncs.size(); i++) { + DocumentSync.validateJsonElement(jsonArraysyncs.get(i)); + }; } - - // validate the optional field `syncs` (array) - for (int i = 0; i < jsonArraysyncs.size(); i++) { - DocumentSync.validateJsonElement(jsonArraysyncs.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentSyncResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentSyncResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentSyncResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentSyncResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentSyncResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentSyncResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentSyncResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentSyncResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentSyncResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentSyncResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java index 9e703db4e..aa7ad728c 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * GetDocumentTagResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentTagResponse { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; @SerializedName(SERIALIZED_NAME_INSERTED_DATE) @@ -98,7 +89,8 @@ public class GetDocumentTagResponse { @javax.annotation.Nullable private String key; - public GetDocumentTagResponse() {} + public GetDocumentTagResponse() { + } public GetDocumentTagResponse insertedDate(@javax.annotation.Nullable String insertedDate) { this.insertedDate = insertedDate; @@ -107,7 +99,6 @@ public GetDocumentTagResponse insertedDate(@javax.annotation.Nullable String ins /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -127,7 +118,6 @@ public GetDocumentTagResponse documentId(@javax.annotation.Nullable String docum /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -147,7 +137,6 @@ public GetDocumentTagResponse type(@javax.annotation.Nullable String type) { /** * Tag type - * * @return type */ @javax.annotation.Nullable @@ -167,7 +156,6 @@ public GetDocumentTagResponse userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -187,7 +175,6 @@ public GetDocumentTagResponse value(@javax.annotation.Nullable String value) { /** * Tag value - * * @return value */ @javax.annotation.Nullable @@ -215,7 +202,6 @@ public GetDocumentTagResponse addValuesItem(String valuesItem) { /** * Tag values - * * @return values */ @javax.annotation.Nullable @@ -235,7 +221,6 @@ public GetDocumentTagResponse key(@javax.annotation.Nullable String key) { /** * Tag key - * * @return key */ @javax.annotation.Nullable @@ -258,13 +243,13 @@ public boolean equals(Object o) { return false; } GetDocumentTagResponse getDocumentTagResponse = (GetDocumentTagResponse) o; - return Objects.equals(this.insertedDate, getDocumentTagResponse.insertedDate) - && Objects.equals(this.documentId, getDocumentTagResponse.documentId) - && Objects.equals(this.type, getDocumentTagResponse.type) - && Objects.equals(this.userId, getDocumentTagResponse.userId) - && Objects.equals(this.value, getDocumentTagResponse.value) - && Objects.equals(this.values, getDocumentTagResponse.values) - && Objects.equals(this.key, getDocumentTagResponse.key); + return Objects.equals(this.insertedDate, getDocumentTagResponse.insertedDate) && + Objects.equals(this.documentId, getDocumentTagResponse.documentId) && + Objects.equals(this.type, getDocumentTagResponse.type) && + Objects.equals(this.userId, getDocumentTagResponse.userId) && + Objects.equals(this.value, getDocumentTagResponse.value) && + Objects.equals(this.values, getDocumentTagResponse.values) && + Objects.equals(this.key, getDocumentTagResponse.key); } @Override @@ -288,7 +273,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -303,8 +289,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("insertedDate", "documentId", "type", "userId", "value", "values", "key")); + openapiFields = new HashSet(Arrays.asList("insertedDate", "documentId", "type", "userId", "value", "values", "key")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -317,96 +302,70 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentTagResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentTagResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentTagResponse is not found in the empty JSON string", - GetDocumentTagResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentTagResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentTagResponse is not found in the empty JSON string", GetDocumentTagResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentTagResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentTagResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentTagResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentTagResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) - && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `type` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("type").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() - && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `values` to be an array in the JSON string but got `%s`", - jsonObj.get("values").toString())); - } - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentTagResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentTagResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentTagResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentTagResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentTagResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentTagResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentTagResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentTagResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentTagResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentTagResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java index f3967f453..9771de7b1 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetDocumentTagsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentTagsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -79,7 +70,8 @@ public class GetDocumentTagsResponse { @javax.annotation.Nullable private List tags = new ArrayList<>(); - public GetDocumentTagsResponse() {} + public GetDocumentTagsResponse() { + } public GetDocumentTagsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -88,7 +80,6 @@ public GetDocumentTagsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -108,7 +99,6 @@ public GetDocumentTagsResponse previous(@javax.annotation.Nullable String previo /** * Previous page of results token - * * @return previous */ @javax.annotation.Nullable @@ -136,7 +126,6 @@ public GetDocumentTagsResponse addTagsItem(DocumentTag tagsItem) { /** * List of tags - * * @return tags */ @javax.annotation.Nullable @@ -159,9 +148,9 @@ public boolean equals(Object o) { return false; } GetDocumentTagsResponse getDocumentTagsResponse = (GetDocumentTagsResponse) o; - return Objects.equals(this.next, getDocumentTagsResponse.next) - && Objects.equals(this.previous, getDocumentTagsResponse.previous) - && Objects.equals(this.tags, getDocumentTagsResponse.tags); + return Objects.equals(this.next, getDocumentTagsResponse.next) && + Objects.equals(this.previous, getDocumentTagsResponse.previous) && + Objects.equals(this.tags, getDocumentTagsResponse.tags); } @Override @@ -181,7 +170,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -209,81 +199,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentTagsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentTagsResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentTagsResponse is not found in the empty JSON string", - GetDocumentTagsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentTagsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentTagsResponse is not found in the empty JSON string", GetDocumentTagsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentTagsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentTagsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentTagsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentTagsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) - && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("previous").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + DocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - DocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentTagsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentTagsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentTagsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentTagsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentTagsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentTagsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentTagsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentTagsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentTagsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentTagsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java index 54975804f..02e8147a1 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * GetDocumentUrlResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentUrlResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -78,7 +69,8 @@ public class GetDocumentUrlResponse { @javax.annotation.Nullable private Map headers = new HashMap<>(); - public GetDocumentUrlResponse() {} + public GetDocumentUrlResponse() { + } public GetDocumentUrlResponse documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -87,7 +79,6 @@ public GetDocumentUrlResponse documentId(@javax.annotation.Nullable String docum /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -107,7 +98,6 @@ public GetDocumentUrlResponse url(@javax.annotation.Nullable String url) { /** * Document content url - * * @return url */ @javax.annotation.Nullable @@ -135,7 +125,6 @@ public GetDocumentUrlResponse putHeadersItem(String key, Object headersItem) { /** * Get headers - * * @return headers */ @javax.annotation.Nullable @@ -158,9 +147,9 @@ public boolean equals(Object o) { return false; } GetDocumentUrlResponse getDocumentUrlResponse = (GetDocumentUrlResponse) o; - return Objects.equals(this.documentId, getDocumentUrlResponse.documentId) - && Objects.equals(this.url, getDocumentUrlResponse.url) - && Objects.equals(this.headers, getDocumentUrlResponse.headers); + return Objects.equals(this.documentId, getDocumentUrlResponse.documentId) && + Objects.equals(this.url, getDocumentUrlResponse.url) && + Objects.equals(this.headers, getDocumentUrlResponse.headers); } @Override @@ -180,7 +169,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -208,65 +198,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentUrlResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentUrlResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentUrlResponse is not found in the empty JSON string", - GetDocumentUrlResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentUrlResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentUrlResponse is not found in the empty JSON string", GetDocumentUrlResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentUrlResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentUrlResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentUrlResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentUrlResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) - && !jsonObj.get("url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `url` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("url").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentUrlResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentUrlResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentUrlResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentUrlResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentUrlResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentUrlResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentUrlResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentUrlResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentUrlResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentUrlResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java index e7d6afb7c..e4a0e31e8 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetDocumentVersionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentVersionsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetDocumentVersionsResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetDocumentVersionsResponse() {} + public GetDocumentVersionsResponse() { + } public GetDocumentVersionsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetDocumentVersionsResponse next(@javax.annotation.Nullable String next) /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetDocumentVersionsResponse documents( - @javax.annotation.Nullable List documents) { + public GetDocumentVersionsResponse documents(@javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -112,7 +102,6 @@ public GetDocumentVersionsResponse addDocumentsItem(DocumentVersion documentsIte /** * List of document versions - * * @return documents */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } GetDocumentVersionsResponse getDocumentVersionsResponse = (GetDocumentVersionsResponse) o; - return Objects.equals(this.next, getDocumentVersionsResponse.next) - && Objects.equals(this.documents, getDocumentVersionsResponse.documents); + return Objects.equals(this.next, getDocumentVersionsResponse.next) && + Objects.equals(this.documents, getDocumentVersionsResponse.documents); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentVersionsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentVersionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentVersionsResponse is not found in the empty JSON string", - GetDocumentVersionsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentVersionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentVersionsResponse is not found in the empty JSON string", GetDocumentVersionsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentVersionsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentVersionsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentVersionsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentVersionsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + DocumentVersion.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - DocumentVersion.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentVersionsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentVersionsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentVersionsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentVersionsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentVersionsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentVersionsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentVersionsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentVersionsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentVersionsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentVersionsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java index 8600b6f81..aebe6691e 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * GetDocumentWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentWorkflowResponse { public static final String SERIALIZED_NAME_WORKFLOW = "workflow"; @SerializedName(SERIALIZED_NAME_WORKFLOW) @javax.annotation.Nullable private DocumentWorkflow workflow; - public GetDocumentWorkflowResponse() {} + public GetDocumentWorkflowResponse() { + } - public GetDocumentWorkflowResponse workflow( - @javax.annotation.Nullable DocumentWorkflow workflow) { + public GetDocumentWorkflowResponse workflow(@javax.annotation.Nullable DocumentWorkflow workflow) { this.workflow = workflow; return this; } /** * Get workflow - * * @return workflow */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentWorkflowResponse is not found in the empty JSON string", - GetDocumentWorkflowResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentWorkflowResponse is not found in the empty JSON string", GetDocumentWorkflowResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentWorkflowResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `workflow` + if (jsonObj.get("workflow") != null && !jsonObj.get("workflow").isJsonNull()) { + DocumentWorkflow.validateJsonElement(jsonObj.get("workflow")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `workflow` - if (jsonObj.get("workflow") != null && !jsonObj.get("workflow").isJsonNull()) { - DocumentWorkflow.validateJsonElement(jsonObj.get("workflow")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java index e4d7e3d90..19ca36900 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetDocumentWorkflowsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentWorkflowsResponse { public static final String SERIALIZED_NAME_WORKFLOWS = "workflows"; @SerializedName(SERIALIZED_NAME_WORKFLOWS) @@ -74,10 +65,10 @@ public class GetDocumentWorkflowsResponse { @javax.annotation.Nullable private String next; - public GetDocumentWorkflowsResponse() {} + public GetDocumentWorkflowsResponse() { + } - public GetDocumentWorkflowsResponse workflows( - @javax.annotation.Nullable List workflows) { + public GetDocumentWorkflowsResponse workflows(@javax.annotation.Nullable List workflows) { this.workflows = workflows; return this; } @@ -92,7 +83,6 @@ public GetDocumentWorkflowsResponse addWorkflowsItem(DocumentWorkflow workflowsI /** * List of Document Workflows - * * @return workflows */ @javax.annotation.Nullable @@ -112,7 +102,6 @@ public GetDocumentWorkflowsResponse next(@javax.annotation.Nullable String next) /** * Get next - * * @return next */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } GetDocumentWorkflowsResponse getDocumentWorkflowsResponse = (GetDocumentWorkflowsResponse) o; - return Objects.equals(this.workflows, getDocumentWorkflowsResponse.workflows) - && Objects.equals(this.next, getDocumentWorkflowsResponse.next); + return Objects.equals(this.workflows, getDocumentWorkflowsResponse.workflows) && + Objects.equals(this.next, getDocumentWorkflowsResponse.next); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,76 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentWorkflowsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentWorkflowsResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentWorkflowsResponse is not found in the empty JSON string", - GetDocumentWorkflowsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentWorkflowsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentWorkflowsResponse is not found in the empty JSON string", GetDocumentWorkflowsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentWorkflowsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentWorkflowsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentWorkflowsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentWorkflowsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("workflows") != null && !jsonObj.get("workflows").isJsonNull()) { - JsonArray jsonArrayworkflows = jsonObj.getAsJsonArray("workflows"); - if (jsonArrayworkflows != null) { - // ensure the json data is an array - if (!jsonObj.get("workflows").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflows` to be an array in the JSON string but got `%s`", - jsonObj.get("workflows").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("workflows") != null && !jsonObj.get("workflows").isJsonNull()) { + JsonArray jsonArrayworkflows = jsonObj.getAsJsonArray("workflows"); + if (jsonArrayworkflows != null) { + // ensure the json data is an array + if (!jsonObj.get("workflows").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflows` to be an array in the JSON string but got `%s`", jsonObj.get("workflows").toString())); + } + + // validate the optional field `workflows` (array) + for (int i = 0; i < jsonArrayworkflows.size(); i++) { + DocumentWorkflow.validateJsonElement(jsonArrayworkflows.get(i)); + }; } - - // validate the optional field `workflows` (array) - for (int i = 0; i < jsonArrayworkflows.size(); i++) { - DocumentWorkflow.validateJsonElement(jsonArrayworkflows.get(i)); - } ; } - } - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentWorkflowsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentWorkflowsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentWorkflowsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentWorkflowsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentWorkflowsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentWorkflowsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentWorkflowsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentWorkflowsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentWorkflowsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentWorkflowsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java index 1762f6ade..f9e10fba6 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetDocumentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -79,7 +70,8 @@ public class GetDocumentsResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetDocumentsResponse() {} + public GetDocumentsResponse() { + } public GetDocumentsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -88,7 +80,6 @@ public GetDocumentsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -108,7 +99,6 @@ public GetDocumentsResponse previous(@javax.annotation.Nullable String previous) /** * Previous page of results token - * * @return previous */ @javax.annotation.Nullable @@ -136,7 +126,6 @@ public GetDocumentsResponse addDocumentsItem(Document documentsItem) { /** * List of documents - * * @return documents */ @javax.annotation.Nullable @@ -159,9 +148,9 @@ public boolean equals(Object o) { return false; } GetDocumentsResponse getDocumentsResponse = (GetDocumentsResponse) o; - return Objects.equals(this.next, getDocumentsResponse.next) - && Objects.equals(this.previous, getDocumentsResponse.previous) - && Objects.equals(this.documents, getDocumentsResponse.documents); + return Objects.equals(this.next, getDocumentsResponse.next) && + Objects.equals(this.previous, getDocumentsResponse.previous) && + Objects.equals(this.documents, getDocumentsResponse.documents); } @Override @@ -181,7 +170,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -209,81 +199,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetDocumentsResponse is not found in the empty JSON string", - GetDocumentsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentsResponse is not found in the empty JSON string", GetDocumentsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetDocumentsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) - && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("previous").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + Document.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - Document.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetDocumentsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java b/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java index aa90e9e42..242ed2734 100644 --- a/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetEntitiesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntitiesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetEntitiesResponse { @javax.annotation.Nullable private List entities = new ArrayList<>(); - public GetEntitiesResponse() {} + public GetEntitiesResponse() { + } public GetEntitiesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetEntitiesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetEntitiesResponse addEntitiesItem(Entity entitiesItem) { /** * List of Entities - * * @return entities */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetEntitiesResponse getEntitiesResponse = (GetEntitiesResponse) o; - return Objects.equals(this.next, getEntitiesResponse.next) - && Objects.equals(this.entities, getEntitiesResponse.entities); + return Objects.equals(this.next, getEntitiesResponse.next) && + Objects.equals(this.entities, getEntitiesResponse.entities); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetEntitiesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetEntitiesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetEntitiesResponse is not found in the empty JSON string", - GetEntitiesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetEntitiesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetEntitiesResponse is not found in the empty JSON string", GetEntitiesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetEntitiesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetEntitiesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetEntitiesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetEntitiesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("entities") != null && !jsonObj.get("entities").isJsonNull()) { - JsonArray jsonArrayentities = jsonObj.getAsJsonArray("entities"); - if (jsonArrayentities != null) { - // ensure the json data is an array - if (!jsonObj.get("entities").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entities` to be an array in the JSON string but got `%s`", - jsonObj.get("entities").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("entities") != null && !jsonObj.get("entities").isJsonNull()) { + JsonArray jsonArrayentities = jsonObj.getAsJsonArray("entities"); + if (jsonArrayentities != null) { + // ensure the json data is an array + if (!jsonObj.get("entities").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entities` to be an array in the JSON string but got `%s`", jsonObj.get("entities").toString())); + } + + // validate the optional field `entities` (array) + for (int i = 0; i < jsonArrayentities.size(); i++) { + Entity.validateJsonElement(jsonArrayentities.get(i)); + }; } - - // validate the optional field `entities` (array) - for (int i = 0; i < jsonArrayentities.size(); i++) { - Entity.validateJsonElement(jsonArrayentities.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEntitiesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEntitiesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetEntitiesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEntitiesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetEntitiesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetEntitiesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEntitiesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetEntitiesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetEntitiesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetEntitiesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetEntityResponse.java b/src/main/java/com/formkiq/client/model/GetEntityResponse.java index 568d65d5b..641bf1eb8 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetEntityResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntityResponse { public static final String SERIALIZED_NAME_ENTITY = "entity"; @SerializedName(SERIALIZED_NAME_ENTITY) @javax.annotation.Nullable private Entity entity; - public GetEntityResponse() {} + public GetEntityResponse() { + } public GetEntityResponse entity(@javax.annotation.Nullable Entity entity) { this.entity = entity; @@ -76,7 +68,6 @@ public GetEntityResponse entity(@javax.annotation.Nullable Entity entity) { /** * Get entity - * * @return entity */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetEntityResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetEntityResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetEntityResponse is not found in the empty JSON string", - GetEntityResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetEntityResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetEntityResponse is not found in the empty JSON string", GetEntityResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetEntityResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetEntityResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetEntityResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetEntityResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `entity` + if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { + Entity.validateJsonElement(jsonObj.get("entity")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `entity` - if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { - Entity.validateJsonElement(jsonObj.get("entity")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEntityResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEntityResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetEntityResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEntityResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetEntityResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetEntityResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEntityResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetEntityResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetEntityResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetEntityResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java b/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java index 6b59b7a94..9cbbb6535 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetEntityTypeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntityTypeResponse { public static final String SERIALIZED_NAME_ENTITY_TYPE = "entityType"; @SerializedName(SERIALIZED_NAME_ENTITY_TYPE) @javax.annotation.Nullable private EntityType entityType; - public GetEntityTypeResponse() {} + public GetEntityTypeResponse() { + } public GetEntityTypeResponse entityType(@javax.annotation.Nullable EntityType entityType) { this.entityType = entityType; @@ -76,7 +68,6 @@ public GetEntityTypeResponse entityType(@javax.annotation.Nullable EntityType en /** * Get entityType - * * @return entityType */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetEntityTypeResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetEntityTypeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetEntityTypeResponse is not found in the empty JSON string", - GetEntityTypeResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetEntityTypeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetEntityTypeResponse is not found in the empty JSON string", GetEntityTypeResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetEntityTypeResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetEntityTypeResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetEntityTypeResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetEntityTypeResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `entityType` + if (jsonObj.get("entityType") != null && !jsonObj.get("entityType").isJsonNull()) { + EntityType.validateJsonElement(jsonObj.get("entityType")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `entityType` - if (jsonObj.get("entityType") != null && !jsonObj.get("entityType").isJsonNull()) { - EntityType.validateJsonElement(jsonObj.get("entityType")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEntityTypeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEntityTypeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetEntityTypeResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEntityTypeResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetEntityTypeResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetEntityTypeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEntityTypeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetEntityTypeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetEntityTypeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetEntityTypeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java b/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java index 2f2a27990..a954d1c64 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetEntityTypesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntityTypesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetEntityTypesResponse { @javax.annotation.Nullable private List entityTypes = new ArrayList<>(); - public GetEntityTypesResponse() {} + public GetEntityTypesResponse() { + } public GetEntityTypesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetEntityTypesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetEntityTypesResponse entityTypes( - @javax.annotation.Nullable List entityTypes) { + public GetEntityTypesResponse entityTypes(@javax.annotation.Nullable List entityTypes) { this.entityTypes = entityTypes; return this; } @@ -112,7 +102,6 @@ public GetEntityTypesResponse addEntityTypesItem(EntityType entityTypesItem) { /** * List of Entity Types - * * @return entityTypes */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } GetEntityTypesResponse getEntityTypesResponse = (GetEntityTypesResponse) o; - return Objects.equals(this.next, getEntityTypesResponse.next) - && Objects.equals(this.entityTypes, getEntityTypesResponse.entityTypes); + return Objects.equals(this.next, getEntityTypesResponse.next) && + Objects.equals(this.entityTypes, getEntityTypesResponse.entityTypes); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetEntityTypesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetEntityTypesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetEntityTypesResponse is not found in the empty JSON string", - GetEntityTypesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetEntityTypesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetEntityTypesResponse is not found in the empty JSON string", GetEntityTypesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetEntityTypesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetEntityTypesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetEntityTypesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetEntityTypesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("entityTypes") != null && !jsonObj.get("entityTypes").isJsonNull()) { - JsonArray jsonArrayentityTypes = jsonObj.getAsJsonArray("entityTypes"); - if (jsonArrayentityTypes != null) { - // ensure the json data is an array - if (!jsonObj.get("entityTypes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `entityTypes` to be an array in the JSON string but got `%s`", - jsonObj.get("entityTypes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("entityTypes") != null && !jsonObj.get("entityTypes").isJsonNull()) { + JsonArray jsonArrayentityTypes = jsonObj.getAsJsonArray("entityTypes"); + if (jsonArrayentityTypes != null) { + // ensure the json data is an array + if (!jsonObj.get("entityTypes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypes` to be an array in the JSON string but got `%s`", jsonObj.get("entityTypes").toString())); + } + + // validate the optional field `entityTypes` (array) + for (int i = 0; i < jsonArrayentityTypes.size(); i++) { + EntityType.validateJsonElement(jsonArrayentityTypes.get(i)); + }; } - - // validate the optional field `entityTypes` (array) - for (int i = 0; i < jsonArrayentityTypes.size(); i++) { - EntityType.validateJsonElement(jsonArrayentityTypes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEntityTypesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEntityTypesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetEntityTypesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEntityTypesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetEntityTypesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetEntityTypesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEntityTypesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetEntityTypesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetEntityTypesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetEntityTypesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java b/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java index 3da53cdce..1f87ef90a 100644 --- a/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java +++ b/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetExaminePdfResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetExaminePdfResponse { public static final String SERIALIZED_NAME_FILEINFO = "fileinfo"; @SerializedName(SERIALIZED_NAME_FILEINFO) @javax.annotation.Nullable private PdfDocument fileinfo; - public GetExaminePdfResponse() {} + public GetExaminePdfResponse() { + } public GetExaminePdfResponse fileinfo(@javax.annotation.Nullable PdfDocument fileinfo) { this.fileinfo = fileinfo; @@ -76,7 +68,6 @@ public GetExaminePdfResponse fileinfo(@javax.annotation.Nullable PdfDocument fil /** * Get fileinfo - * * @return fileinfo */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetExaminePdfResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetExaminePdfResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetExaminePdfResponse is not found in the empty JSON string", - GetExaminePdfResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetExaminePdfResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetExaminePdfResponse is not found in the empty JSON string", GetExaminePdfResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetExaminePdfResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetExaminePdfResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetExaminePdfResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetExaminePdfResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `fileinfo` + if (jsonObj.get("fileinfo") != null && !jsonObj.get("fileinfo").isJsonNull()) { + PdfDocument.validateJsonElement(jsonObj.get("fileinfo")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `fileinfo` - if (jsonObj.get("fileinfo") != null && !jsonObj.get("fileinfo").isJsonNull()) { - PdfDocument.validateJsonElement(jsonObj.get("fileinfo")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetExaminePdfResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetExaminePdfResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetExaminePdfResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetExaminePdfResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetExaminePdfResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetExaminePdfResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetExaminePdfResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetExaminePdfResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetExaminePdfResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetExaminePdfResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java b/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java index 7cecc7eae..56c9c28db 100644 --- a/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java +++ b/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * GetExaminePdfUrlResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetExaminePdfUrlResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -71,7 +62,8 @@ public class GetExaminePdfUrlResponse { @javax.annotation.Nullable private String uploadUrl; - public GetExaminePdfUrlResponse() {} + public GetExaminePdfUrlResponse() { + } public GetExaminePdfUrlResponse id(@javax.annotation.Nullable String id) { this.id = id; @@ -80,7 +72,6 @@ public GetExaminePdfUrlResponse id(@javax.annotation.Nullable String id) { /** * Uploaded document identifier - * * @return id */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public GetExaminePdfUrlResponse uploadUrl(@javax.annotation.Nullable String uplo /** * Url to upload document to - * * @return uploadUrl */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } GetExaminePdfUrlResponse getExaminePdfUrlResponse = (GetExaminePdfUrlResponse) o; - return Objects.equals(this.id, getExaminePdfUrlResponse.id) - && Objects.equals(this.uploadUrl, getExaminePdfUrlResponse.uploadUrl); + return Objects.equals(this.id, getExaminePdfUrlResponse.id) && + Objects.equals(this.uploadUrl, getExaminePdfUrlResponse.uploadUrl); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetExaminePdfUrlResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetExaminePdfUrlResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetExaminePdfUrlResponse is not found in the empty JSON string", - GetExaminePdfUrlResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetExaminePdfUrlResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetExaminePdfUrlResponse is not found in the empty JSON string", GetExaminePdfUrlResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetExaminePdfUrlResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetExaminePdfUrlResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetExaminePdfUrlResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetExaminePdfUrlResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) && !jsonObj.get("uploadUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uploadUrl").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) - && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `id` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("id").toString())); - } - if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) - && !jsonObj.get("uploadUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("uploadUrl").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetExaminePdfUrlResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetExaminePdfUrlResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetExaminePdfUrlResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetExaminePdfUrlResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetExaminePdfUrlResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetExaminePdfUrlResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetExaminePdfUrlResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetExaminePdfUrlResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetExaminePdfUrlResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetExaminePdfUrlResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java b/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java index e26c2c936..48eb5df6f 100644 --- a/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * GetFolderPermissionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetFolderPermissionsResponse { public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) @javax.annotation.Nullable private List roles = new ArrayList<>(); - public GetFolderPermissionsResponse() {} + public GetFolderPermissionsResponse() { + } - public GetFolderPermissionsResponse roles( - @javax.annotation.Nullable List roles) { + public GetFolderPermissionsResponse roles(@javax.annotation.Nullable List roles) { this.roles = roles; return this; } @@ -87,7 +78,6 @@ public GetFolderPermissionsResponse addRolesItem(FolderPermission rolesItem) { /** * Get roles - * * @return roles */ @javax.annotation.Nullable @@ -128,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -156,70 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetFolderPermissionsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetFolderPermissionsResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetFolderPermissionsResponse is not found in the empty JSON string", - GetFolderPermissionsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetFolderPermissionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetFolderPermissionsResponse is not found in the empty JSON string", GetFolderPermissionsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetFolderPermissionsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetFolderPermissionsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetFolderPermissionsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetFolderPermissionsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull()) { - JsonArray jsonArrayroles = jsonObj.getAsJsonArray("roles"); - if (jsonArrayroles != null) { - // ensure the json data is an array - if (!jsonObj.get("roles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `roles` to be an array in the JSON string but got `%s`", - jsonObj.get("roles").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull()) { + JsonArray jsonArrayroles = jsonObj.getAsJsonArray("roles"); + if (jsonArrayroles != null) { + // ensure the json data is an array + if (!jsonObj.get("roles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `roles` to be an array in the JSON string but got `%s`", jsonObj.get("roles").toString())); + } + + // validate the optional field `roles` (array) + for (int i = 0; i < jsonArrayroles.size(); i++) { + FolderPermission.validateJsonElement(jsonArrayroles.get(i)); + }; } - - // validate the optional field `roles` (array) - for (int i = 0; i < jsonArrayroles.size(); i++) { - FolderPermission.validateJsonElement(jsonArrayroles.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetFolderPermissionsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetFolderPermissionsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetFolderPermissionsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetFolderPermissionsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetFolderPermissionsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetFolderPermissionsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetFolderPermissionsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetFolderPermissionsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetFolderPermissionsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetFolderPermissionsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetFoldersResponse.java b/src/main/java/com/formkiq/client/model/GetFoldersResponse.java index 0f8ae3178..9bbf499d6 100644 --- a/src/main/java/com/formkiq/client/model/GetFoldersResponse.java +++ b/src/main/java/com/formkiq/client/model/GetFoldersResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetFoldersResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetFoldersResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -79,7 +70,8 @@ public class GetFoldersResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetFoldersResponse() {} + public GetFoldersResponse() { + } public GetFoldersResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -88,7 +80,6 @@ public GetFoldersResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -108,7 +99,6 @@ public GetFoldersResponse previous(@javax.annotation.Nullable String previous) { /** * Previous page of results token - * * @return previous */ @javax.annotation.Nullable @@ -121,8 +111,7 @@ public void setPrevious(@javax.annotation.Nullable String previous) { } - public GetFoldersResponse documents( - @javax.annotation.Nullable List documents) { + public GetFoldersResponse documents(@javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -137,7 +126,6 @@ public GetFoldersResponse addDocumentsItem(SearchResultDocument documentsItem) { /** * List of search result documents - * * @return documents */ @javax.annotation.Nullable @@ -160,9 +148,9 @@ public boolean equals(Object o) { return false; } GetFoldersResponse getFoldersResponse = (GetFoldersResponse) o; - return Objects.equals(this.next, getFoldersResponse.next) - && Objects.equals(this.previous, getFoldersResponse.previous) - && Objects.equals(this.documents, getFoldersResponse.documents); + return Objects.equals(this.next, getFoldersResponse.next) && + Objects.equals(this.previous, getFoldersResponse.previous) && + Objects.equals(this.documents, getFoldersResponse.documents); } @Override @@ -182,7 +170,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -210,81 +199,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetFoldersResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetFoldersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetFoldersResponse is not found in the empty JSON string", - GetFoldersResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetFoldersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetFoldersResponse is not found in the empty JSON string", GetFoldersResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetFoldersResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetFoldersResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetFoldersResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetFoldersResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) - && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("previous").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + SearchResultDocument.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - SearchResultDocument.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetFoldersResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetFoldersResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetFoldersResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetFoldersResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetFoldersResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetFoldersResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetFoldersResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetFoldersResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetFoldersResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetFoldersResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetGroupResponse.java b/src/main/java/com/formkiq/client/model/GetGroupResponse.java index 7173ef4f5..de21fef74 100644 --- a/src/main/java/com/formkiq/client/model/GetGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetGroupResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetGroupResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetGroupResponse { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @javax.annotation.Nullable private Group group; - public GetGroupResponse() {} + public GetGroupResponse() { + } public GetGroupResponse group(@javax.annotation.Nullable Group group) { this.group = group; @@ -76,7 +68,6 @@ public GetGroupResponse group(@javax.annotation.Nullable Group group) { /** * Get group - * * @return group */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetGroupResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetGroupResponse is not found in the empty JSON string", - GetGroupResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetGroupResponse is not found in the empty JSON string", GetGroupResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetGroupResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetGroupResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetGroupResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetGroupResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `group` + if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { + Group.validateJsonElement(jsonObj.get("group")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `group` - if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { - Group.validateJsonElement(jsonObj.get("group")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetGroupResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetGroupResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetGroupResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetGroupResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetGroupResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetGroupResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetGroupResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetGroupResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetGroupResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetGroupResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetGroupsResponse.java index 77eae3457..faad207b1 100644 --- a/src/main/java/com/formkiq/client/model/GetGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetGroupsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetGroupsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetGroupsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetGroupsResponse { @javax.annotation.Nullable private List groups = new ArrayList<>(); - public GetGroupsResponse() {} + public GetGroupsResponse() { + } public GetGroupsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetGroupsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetGroupsResponse addGroupsItem(Group groupsItem) { /** * List of groups - * * @return groups */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetGroupsResponse getGroupsResponse = (GetGroupsResponse) o; - return Objects.equals(this.next, getGroupsResponse.next) - && Objects.equals(this.groups, getGroupsResponse.groups); + return Objects.equals(this.next, getGroupsResponse.next) && + Objects.equals(this.groups, getGroupsResponse.groups); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetGroupsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetGroupsResponse is not found in the empty JSON string", - GetGroupsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetGroupsResponse is not found in the empty JSON string", GetGroupsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetGroupsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetGroupsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetGroupsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetGroupsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { - JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); - if (jsonArraygroups != null) { - // ensure the json data is an array - if (!jsonObj.get("groups").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `groups` to be an array in the JSON string but got `%s`", - jsonObj.get("groups").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { + JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); + if (jsonArraygroups != null) { + // ensure the json data is an array + if (!jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); + } + + // validate the optional field `groups` (array) + for (int i = 0; i < jsonArraygroups.size(); i++) { + Group.validateJsonElement(jsonArraygroups.get(i)); + }; } - - // validate the optional field `groups` (array) - for (int i = 0; i < jsonArraygroups.size(); i++) { - Group.validateJsonElement(jsonArraygroups.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetGroupsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetGroupsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetGroupsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetGroupsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetGroupsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetGroupsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetGroupsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetGroupsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetGroupsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetGroupsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java index 816ab9954..4cf2c8fde 100644 --- a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * GetLocaleResourceItemResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetLocaleResourceItemResponse { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; @SerializedName(SERIALIZED_NAME_RESOURCE_ITEM) @javax.annotation.Nullable private ResourceItem resourceItem; - public GetLocaleResourceItemResponse() {} + public GetLocaleResourceItemResponse() { + } - public GetLocaleResourceItemResponse resourceItem( - @javax.annotation.Nullable ResourceItem resourceItem) { + public GetLocaleResourceItemResponse resourceItem(@javax.annotation.Nullable ResourceItem resourceItem) { this.resourceItem = resourceItem; return this; } /** * Get resourceItem - * * @return resourceItem */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -143,62 +134,55 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * GetLocaleResourceItemResponse + * @throws IOException if the JSON Element is invalid with respect to GetLocaleResourceItemResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetLocaleResourceItemResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetLocaleResourceItemResponse is not found in the empty JSON string", - GetLocaleResourceItemResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetLocaleResourceItemResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetLocaleResourceItemResponse is not found in the empty JSON string", GetLocaleResourceItemResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetLocaleResourceItemResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetLocaleResourceItemResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetLocaleResourceItemResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetLocaleResourceItemResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `resourceItem` + if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { + ResourceItem.validateJsonElement(jsonObj.get("resourceItem")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `resourceItem` - if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { - ResourceItem.validateJsonElement(jsonObj.get("resourceItem")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetLocaleResourceItemResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetLocaleResourceItemResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetLocaleResourceItemResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetLocaleResourceItemResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetLocaleResourceItemResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetLocaleResourceItemResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetLocaleResourceItemResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetLocaleResourceItemResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetLocaleResourceItemResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetLocaleResourceItemResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java index ec83f4673..16038b13e 100644 --- a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetLocaleResourceItemsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetLocaleResourceItemsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetLocaleResourceItemsResponse { @javax.annotation.Nullable private List resourceItems = new ArrayList<>(); - public GetLocaleResourceItemsResponse() {} + public GetLocaleResourceItemsResponse() { + } public GetLocaleResourceItemsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetLocaleResourceItemsResponse next(@javax.annotation.Nullable String nex /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetLocaleResourceItemsResponse resourceItems( - @javax.annotation.Nullable List resourceItems) { + public GetLocaleResourceItemsResponse resourceItems(@javax.annotation.Nullable List resourceItems) { this.resourceItems = resourceItems; return this; } @@ -112,7 +102,6 @@ public GetLocaleResourceItemsResponse addResourceItemsItem(ResourceItem resource /** * List of permissions - * * @return resourceItems */ @javax.annotation.Nullable @@ -134,10 +123,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetLocaleResourceItemsResponse getLocaleResourceItemsResponse = - (GetLocaleResourceItemsResponse) o; - return Objects.equals(this.next, getLocaleResourceItemsResponse.next) - && Objects.equals(this.resourceItems, getLocaleResourceItemsResponse.resourceItems); + GetLocaleResourceItemsResponse getLocaleResourceItemsResponse = (GetLocaleResourceItemsResponse) o; + return Objects.equals(this.next, getLocaleResourceItemsResponse.next) && + Objects.equals(this.resourceItems, getLocaleResourceItemsResponse.resourceItems); } @Override @@ -156,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,80 +170,68 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * GetLocaleResourceItemsResponse + * @throws IOException if the JSON Element is invalid with respect to GetLocaleResourceItemsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetLocaleResourceItemsResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetLocaleResourceItemsResponse is not found in the empty JSON string", - GetLocaleResourceItemsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetLocaleResourceItemsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetLocaleResourceItemsResponse is not found in the empty JSON string", GetLocaleResourceItemsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetLocaleResourceItemsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetLocaleResourceItemsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetLocaleResourceItemsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetLocaleResourceItemsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("resourceItems") != null && !jsonObj.get("resourceItems").isJsonNull()) { - JsonArray jsonArrayresourceItems = jsonObj.getAsJsonArray("resourceItems"); - if (jsonArrayresourceItems != null) { - // ensure the json data is an array - if (!jsonObj.get("resourceItems").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `resourceItems` to be an array in the JSON string but got `%s`", - jsonObj.get("resourceItems").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("resourceItems") != null && !jsonObj.get("resourceItems").isJsonNull()) { + JsonArray jsonArrayresourceItems = jsonObj.getAsJsonArray("resourceItems"); + if (jsonArrayresourceItems != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceItems").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resourceItems` to be an array in the JSON string but got `%s`", jsonObj.get("resourceItems").toString())); + } + + // validate the optional field `resourceItems` (array) + for (int i = 0; i < jsonArrayresourceItems.size(); i++) { + ResourceItem.validateJsonElement(jsonArrayresourceItems.get(i)); + }; } - - // validate the optional field `resourceItems` (array) - for (int i = 0; i < jsonArrayresourceItems.size(); i++) { - ResourceItem.validateJsonElement(jsonArrayresourceItems.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetLocaleResourceItemsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetLocaleResourceItemsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetLocaleResourceItemsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetLocaleResourceItemsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetLocaleResourceItemsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetLocaleResourceItemsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetLocaleResourceItemsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetLocaleResourceItemsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetLocaleResourceItemsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetLocaleResourceItemsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -263,8 +240,7 @@ public GetLocaleResourceItemsResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of GetLocaleResourceItemsResponse - * @throws IOException if the JSON string is invalid with respect to - * GetLocaleResourceItemsResponse + * @throws IOException if the JSON string is invalid with respect to GetLocaleResourceItemsResponse */ public static GetLocaleResourceItemsResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetLocaleResourceItemsResponse.class); diff --git a/src/main/java/com/formkiq/client/model/GetLocalesResponse.java b/src/main/java/com/formkiq/client/model/GetLocalesResponse.java index 73e5a0d8b..84ed56544 100644 --- a/src/main/java/com/formkiq/client/model/GetLocalesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocalesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetLocalesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetLocalesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetLocalesResponse { @javax.annotation.Nullable private List locales = new ArrayList<>(); - public GetLocalesResponse() {} + public GetLocalesResponse() { + } public GetLocalesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetLocalesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetLocalesResponse addLocalesItem(LocaleInfo localesItem) { /** * List of Locale - * * @return locales */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetLocalesResponse getLocalesResponse = (GetLocalesResponse) o; - return Objects.equals(this.next, getLocalesResponse.next) - && Objects.equals(this.locales, getLocalesResponse.locales); + return Objects.equals(this.next, getLocalesResponse.next) && + Objects.equals(this.locales, getLocalesResponse.locales); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetLocalesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetLocalesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetLocalesResponse is not found in the empty JSON string", - GetLocalesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetLocalesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetLocalesResponse is not found in the empty JSON string", GetLocalesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetLocalesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetLocalesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetLocalesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetLocalesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("locales") != null && !jsonObj.get("locales").isJsonNull()) { - JsonArray jsonArraylocales = jsonObj.getAsJsonArray("locales"); - if (jsonArraylocales != null) { - // ensure the json data is an array - if (!jsonObj.get("locales").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `locales` to be an array in the JSON string but got `%s`", - jsonObj.get("locales").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("locales") != null && !jsonObj.get("locales").isJsonNull()) { + JsonArray jsonArraylocales = jsonObj.getAsJsonArray("locales"); + if (jsonArraylocales != null) { + // ensure the json data is an array + if (!jsonObj.get("locales").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `locales` to be an array in the JSON string but got `%s`", jsonObj.get("locales").toString())); + } + + // validate the optional field `locales` (array) + for (int i = 0; i < jsonArraylocales.size(); i++) { + LocaleInfo.validateJsonElement(jsonArraylocales.get(i)); + }; } - - // validate the optional field `locales` (array) - for (int i = 0; i < jsonArraylocales.size(); i++) { - LocaleInfo.validateJsonElement(jsonArraylocales.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetLocalesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetLocalesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetLocalesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetLocalesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetLocalesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetLocalesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetLocalesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetLocalesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetLocalesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetLocalesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java b/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java index 4f0951d85..b1c68c10f 100644 --- a/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetMalwareScanResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetMalwareScanResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetMalwareScanResponse { @javax.annotation.Nullable private List malwareScanResults = new ArrayList<>(); - public GetMalwareScanResponse() {} + public GetMalwareScanResponse() { + } public GetMalwareScanResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetMalwareScanResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,14 +87,12 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetMalwareScanResponse malwareScanResults( - @javax.annotation.Nullable List malwareScanResults) { + public GetMalwareScanResponse malwareScanResults(@javax.annotation.Nullable List malwareScanResults) { this.malwareScanResults = malwareScanResults; return this; } - public GetMalwareScanResponse addMalwareScanResultsItem( - MalwareScanResult malwareScanResultsItem) { + public GetMalwareScanResponse addMalwareScanResultsItem(MalwareScanResult malwareScanResultsItem) { if (this.malwareScanResults == null) { this.malwareScanResults = new ArrayList<>(); } @@ -113,7 +102,6 @@ public GetMalwareScanResponse addMalwareScanResultsItem( /** * List of Malware Scan Results - * * @return malwareScanResults */ @javax.annotation.Nullable @@ -121,8 +109,7 @@ public List getMalwareScanResults() { return malwareScanResults; } - public void setMalwareScanResults( - @javax.annotation.Nullable List malwareScanResults) { + public void setMalwareScanResults(@javax.annotation.Nullable List malwareScanResults) { this.malwareScanResults = malwareScanResults; } @@ -137,8 +124,8 @@ public boolean equals(Object o) { return false; } GetMalwareScanResponse getMalwareScanResponse = (GetMalwareScanResponse) o; - return Objects.equals(this.next, getMalwareScanResponse.next) - && Objects.equals(this.malwareScanResults, getMalwareScanResponse.malwareScanResults); + return Objects.equals(this.next, getMalwareScanResponse.next) && + Objects.equals(this.malwareScanResults, getMalwareScanResponse.malwareScanResults); } @Override @@ -157,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -185,76 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetMalwareScanResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetMalwareScanResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetMalwareScanResponse is not found in the empty JSON string", - GetMalwareScanResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetMalwareScanResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetMalwareScanResponse is not found in the empty JSON string", GetMalwareScanResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetMalwareScanResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetMalwareScanResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetMalwareScanResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetMalwareScanResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("malwareScanResults") != null - && !jsonObj.get("malwareScanResults").isJsonNull()) { - JsonArray jsonArraymalwareScanResults = jsonObj.getAsJsonArray("malwareScanResults"); - if (jsonArraymalwareScanResults != null) { - // ensure the json data is an array - if (!jsonObj.get("malwareScanResults").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `malwareScanResults` to be an array in the JSON string but got `%s`", - jsonObj.get("malwareScanResults").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("malwareScanResults") != null && !jsonObj.get("malwareScanResults").isJsonNull()) { + JsonArray jsonArraymalwareScanResults = jsonObj.getAsJsonArray("malwareScanResults"); + if (jsonArraymalwareScanResults != null) { + // ensure the json data is an array + if (!jsonObj.get("malwareScanResults").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `malwareScanResults` to be an array in the JSON string but got `%s`", jsonObj.get("malwareScanResults").toString())); + } + + // validate the optional field `malwareScanResults` (array) + for (int i = 0; i < jsonArraymalwareScanResults.size(); i++) { + MalwareScanResult.validateJsonElement(jsonArraymalwareScanResults.get(i)); + }; } - - // validate the optional field `malwareScanResults` (array) - for (int i = 0; i < jsonArraymalwareScanResults.size(); i++) { - MalwareScanResult.validateJsonElement(jsonArraymalwareScanResults.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetMalwareScanResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetMalwareScanResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetMalwareScanResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetMalwareScanResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetMalwareScanResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetMalwareScanResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetMalwareScanResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetMalwareScanResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetMalwareScanResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetMalwareScanResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetMappingResponse.java b/src/main/java/com/formkiq/client/model/GetMappingResponse.java index 9dc380655..67304b44f 100644 --- a/src/main/java/com/formkiq/client/model/GetMappingResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMappingResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetMappingResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetMappingResponse { public static final String SERIALIZED_NAME_MAPPING = "mapping"; @SerializedName(SERIALIZED_NAME_MAPPING) @javax.annotation.Nullable private Mapping mapping; - public GetMappingResponse() {} + public GetMappingResponse() { + } public GetMappingResponse mapping(@javax.annotation.Nullable Mapping mapping) { this.mapping = mapping; @@ -76,7 +68,6 @@ public GetMappingResponse mapping(@javax.annotation.Nullable Mapping mapping) { /** * Get mapping - * * @return mapping */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetMappingResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetMappingResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetMappingResponse is not found in the empty JSON string", - GetMappingResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetMappingResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetMappingResponse is not found in the empty JSON string", GetMappingResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetMappingResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetMappingResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetMappingResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetMappingResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `mapping` + if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { + Mapping.validateJsonElement(jsonObj.get("mapping")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `mapping` - if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { - Mapping.validateJsonElement(jsonObj.get("mapping")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetMappingResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetMappingResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetMappingResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetMappingResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetMappingResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetMappingResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetMappingResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetMappingResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetMappingResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetMappingResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetMappingsResponse.java b/src/main/java/com/formkiq/client/model/GetMappingsResponse.java index b44c88cbc..740cc099e 100644 --- a/src/main/java/com/formkiq/client/model/GetMappingsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMappingsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetMappingsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetMappingsResponse { public static final String SERIALIZED_NAME_MAPPINGS = "mappings"; @SerializedName(SERIALIZED_NAME_MAPPINGS) @@ -74,7 +65,8 @@ public class GetMappingsResponse { @javax.annotation.Nullable private String next; - public GetMappingsResponse() {} + public GetMappingsResponse() { + } public GetMappingsResponse mappings(@javax.annotation.Nullable List mappings) { this.mappings = mappings; @@ -91,7 +83,6 @@ public GetMappingsResponse addMappingsItem(Mapping mappingsItem) { /** * Get mappings - * * @return mappings */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetMappingsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetMappingsResponse getMappingsResponse = (GetMappingsResponse) o; - return Objects.equals(this.mappings, getMappingsResponse.mappings) - && Objects.equals(this.next, getMappingsResponse.next); + return Objects.equals(this.mappings, getMappingsResponse.mappings) && + Objects.equals(this.next, getMappingsResponse.next); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetMappingsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetMappingsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetMappingsResponse is not found in the empty JSON string", - GetMappingsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetMappingsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetMappingsResponse is not found in the empty JSON string", GetMappingsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetMappingsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetMappingsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetMappingsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetMappingsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("mappings") != null && !jsonObj.get("mappings").isJsonNull()) { - JsonArray jsonArraymappings = jsonObj.getAsJsonArray("mappings"); - if (jsonArraymappings != null) { - // ensure the json data is an array - if (!jsonObj.get("mappings").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `mappings` to be an array in the JSON string but got `%s`", - jsonObj.get("mappings").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("mappings") != null && !jsonObj.get("mappings").isJsonNull()) { + JsonArray jsonArraymappings = jsonObj.getAsJsonArray("mappings"); + if (jsonArraymappings != null) { + // ensure the json data is an array + if (!jsonObj.get("mappings").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mappings` to be an array in the JSON string but got `%s`", jsonObj.get("mappings").toString())); + } + + // validate the optional field `mappings` (array) + for (int i = 0; i < jsonArraymappings.size(); i++) { + Mapping.validateJsonElement(jsonArraymappings.get(i)); + }; } - - // validate the optional field `mappings` (array) - for (int i = 0; i < jsonArraymappings.size(); i++) { - Mapping.validateJsonElement(jsonArraymappings.get(i)); - } ; } - } - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetMappingsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetMappingsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetMappingsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetMappingsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetMappingsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetMappingsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetMappingsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetMappingsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetMappingsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetMappingsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java index 1bd1474a8..511cd9393 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetOpaAccessPoliciesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpaAccessPoliciesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetOpaAccessPoliciesResponse { @javax.annotation.Nullable private List opaPolicies = new ArrayList<>(); - public GetOpaAccessPoliciesResponse() {} + public GetOpaAccessPoliciesResponse() { + } public GetOpaAccessPoliciesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetOpaAccessPoliciesResponse next(@javax.annotation.Nullable String next) /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetOpaAccessPoliciesResponse opaPolicies( - @javax.annotation.Nullable List opaPolicies) { + public GetOpaAccessPoliciesResponse opaPolicies(@javax.annotation.Nullable List opaPolicies) { this.opaPolicies = opaPolicies; return this; } @@ -112,7 +102,6 @@ public GetOpaAccessPoliciesResponse addOpaPoliciesItem(OpaPolicy opaPoliciesItem /** * List of OPA policies - * * @return opaPolicies */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } GetOpaAccessPoliciesResponse getOpaAccessPoliciesResponse = (GetOpaAccessPoliciesResponse) o; - return Objects.equals(this.next, getOpaAccessPoliciesResponse.next) - && Objects.equals(this.opaPolicies, getOpaAccessPoliciesResponse.opaPolicies); + return Objects.equals(this.next, getOpaAccessPoliciesResponse.next) && + Objects.equals(this.opaPolicies, getOpaAccessPoliciesResponse.opaPolicies); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,76 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetOpaAccessPoliciesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpaAccessPoliciesResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetOpaAccessPoliciesResponse is not found in the empty JSON string", - GetOpaAccessPoliciesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetOpaAccessPoliciesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpaAccessPoliciesResponse is not found in the empty JSON string", GetOpaAccessPoliciesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpaAccessPoliciesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetOpaAccessPoliciesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpaAccessPoliciesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpaAccessPoliciesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("opaPolicies") != null && !jsonObj.get("opaPolicies").isJsonNull()) { - JsonArray jsonArrayopaPolicies = jsonObj.getAsJsonArray("opaPolicies"); - if (jsonArrayopaPolicies != null) { - // ensure the json data is an array - if (!jsonObj.get("opaPolicies").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `opaPolicies` to be an array in the JSON string but got `%s`", - jsonObj.get("opaPolicies").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("opaPolicies") != null && !jsonObj.get("opaPolicies").isJsonNull()) { + JsonArray jsonArrayopaPolicies = jsonObj.getAsJsonArray("opaPolicies"); + if (jsonArrayopaPolicies != null) { + // ensure the json data is an array + if (!jsonObj.get("opaPolicies").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `opaPolicies` to be an array in the JSON string but got `%s`", jsonObj.get("opaPolicies").toString())); + } + + // validate the optional field `opaPolicies` (array) + for (int i = 0; i < jsonArrayopaPolicies.size(); i++) { + OpaPolicy.validateJsonElement(jsonArrayopaPolicies.get(i)); + }; } - - // validate the optional field `opaPolicies` (array) - for (int i = 0; i < jsonArrayopaPolicies.size(); i++) { - OpaPolicy.validateJsonElement(jsonArrayopaPolicies.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpaAccessPoliciesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpaAccessPoliciesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPoliciesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpaAccessPoliciesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpaAccessPoliciesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpaAccessPoliciesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpaAccessPoliciesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPoliciesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpaAccessPoliciesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpaAccessPoliciesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java index 821b2fc87..74c5f3a88 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * GetOpaAccessPolicyItemsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpaAccessPolicyItemsResponse { public static final String SERIALIZED_NAME_POLICY_ITEMS = "policyItems"; @SerializedName(SERIALIZED_NAME_POLICY_ITEMS) @javax.annotation.Nullable private List policyItems = new ArrayList<>(); - public GetOpaAccessPolicyItemsResponse() {} + public GetOpaAccessPolicyItemsResponse() { + } - public GetOpaAccessPolicyItemsResponse policyItems( - @javax.annotation.Nullable List policyItems) { + public GetOpaAccessPolicyItemsResponse policyItems(@javax.annotation.Nullable List policyItems) { this.policyItems = policyItems; return this; } @@ -87,7 +78,6 @@ public GetOpaAccessPolicyItemsResponse addPolicyItemsItem(OpaPolicyItem policyIt /** * Get policyItems - * * @return policyItems */ @javax.annotation.Nullable @@ -109,8 +99,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetOpaAccessPolicyItemsResponse getOpaAccessPolicyItemsResponse = - (GetOpaAccessPolicyItemsResponse) o; + GetOpaAccessPolicyItemsResponse getOpaAccessPolicyItemsResponse = (GetOpaAccessPolicyItemsResponse) o; return Objects.equals(this.policyItems, getOpaAccessPolicyItemsResponse.policyItems); } @@ -129,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,76 +144,65 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * GetOpaAccessPolicyItemsResponse + * @throws IOException if the JSON Element is invalid with respect to GetOpaAccessPolicyItemsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpaAccessPolicyItemsResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetOpaAccessPolicyItemsResponse is not found in the empty JSON string", - GetOpaAccessPolicyItemsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetOpaAccessPolicyItemsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpaAccessPolicyItemsResponse is not found in the empty JSON string", GetOpaAccessPolicyItemsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpaAccessPolicyItemsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetOpaAccessPolicyItemsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpaAccessPolicyItemsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpaAccessPolicyItemsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("policyItems") != null && !jsonObj.get("policyItems").isJsonNull()) { - JsonArray jsonArraypolicyItems = jsonObj.getAsJsonArray("policyItems"); - if (jsonArraypolicyItems != null) { - // ensure the json data is an array - if (!jsonObj.get("policyItems").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `policyItems` to be an array in the JSON string but got `%s`", - jsonObj.get("policyItems").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("policyItems") != null && !jsonObj.get("policyItems").isJsonNull()) { + JsonArray jsonArraypolicyItems = jsonObj.getAsJsonArray("policyItems"); + if (jsonArraypolicyItems != null) { + // ensure the json data is an array + if (!jsonObj.get("policyItems").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policyItems` to be an array in the JSON string but got `%s`", jsonObj.get("policyItems").toString())); + } + + // validate the optional field `policyItems` (array) + for (int i = 0; i < jsonArraypolicyItems.size(); i++) { + OpaPolicyItem.validateJsonElement(jsonArraypolicyItems.get(i)); + }; } - - // validate the optional field `policyItems` (array) - for (int i = 0; i < jsonArraypolicyItems.size(); i++) { - OpaPolicyItem.validateJsonElement(jsonArraypolicyItems.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpaAccessPolicyItemsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpaAccessPolicyItemsResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPolicyItemsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpaAccessPolicyItemsResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpaAccessPolicyItemsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpaAccessPolicyItemsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpaAccessPolicyItemsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPolicyItemsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpaAccessPolicyItemsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpaAccessPolicyItemsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -232,8 +211,7 @@ public GetOpaAccessPolicyItemsResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of GetOpaAccessPolicyItemsResponse - * @throws IOException if the JSON string is invalid with respect to - * GetOpaAccessPolicyItemsResponse + * @throws IOException if the JSON string is invalid with respect to GetOpaAccessPolicyItemsResponse */ public static GetOpaAccessPolicyItemsResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetOpaAccessPolicyItemsResponse.class); diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java index b927c7fb9..f291979b5 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * GetOpaAccessPolicyResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpaAccessPolicyResponse { public static final String SERIALIZED_NAME_OPA_POLICY = "opaPolicy"; @SerializedName(SERIALIZED_NAME_OPA_POLICY) @javax.annotation.Nullable private String opaPolicy; - public GetOpaAccessPolicyResponse() {} + public GetOpaAccessPolicyResponse() { + } public GetOpaAccessPolicyResponse opaPolicy(@javax.annotation.Nullable String opaPolicy) { this.opaPolicy = opaPolicy; @@ -75,7 +67,6 @@ public GetOpaAccessPolicyResponse opaPolicy(@javax.annotation.Nullable String op /** * OPA Policy in REGO format - * * @return opaPolicy */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetOpaAccessPolicyResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpaAccessPolicyResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetOpaAccessPolicyResponse is not found in the empty JSON string", - GetOpaAccessPolicyResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetOpaAccessPolicyResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpaAccessPolicyResponse is not found in the empty JSON string", GetOpaAccessPolicyResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpaAccessPolicyResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetOpaAccessPolicyResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpaAccessPolicyResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpaAccessPolicyResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("opaPolicy") != null && !jsonObj.get("opaPolicy").isJsonNull()) && !jsonObj.get("opaPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `opaPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("opaPolicy").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("opaPolicy") != null && !jsonObj.get("opaPolicy").isJsonNull()) - && !jsonObj.get("opaPolicy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `opaPolicy` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("opaPolicy").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpaAccessPolicyResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpaAccessPolicyResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPolicyResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpaAccessPolicyResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpaAccessPolicyResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpaAccessPolicyResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpaAccessPolicyResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPolicyResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpaAccessPolicyResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpaAccessPolicyResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java index 23f66f3ab..c760a3bdd 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * GetOpenSearchIndexResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchIndexResponse { public static final String SERIALIZED_NAME_INDEX_SETTINGS = "indexSettings"; @SerializedName(SERIALIZED_NAME_INDEX_SETTINGS) @javax.annotation.Nullable private OpenSearchIndexSetting indexSettings; - public GetOpenSearchIndexResponse() {} + public GetOpenSearchIndexResponse() { + } - public GetOpenSearchIndexResponse indexSettings( - @javax.annotation.Nullable OpenSearchIndexSetting indexSettings) { + public GetOpenSearchIndexResponse indexSettings(@javax.annotation.Nullable OpenSearchIndexSetting indexSettings) { this.indexSettings = indexSettings; return this; } /** * Get indexSettings - * * @return indexSettings */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetOpenSearchIndexResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpenSearchIndexResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetOpenSearchIndexResponse is not found in the empty JSON string", - GetOpenSearchIndexResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetOpenSearchIndexResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpenSearchIndexResponse is not found in the empty JSON string", GetOpenSearchIndexResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpenSearchIndexResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetOpenSearchIndexResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpenSearchIndexResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpenSearchIndexResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `indexSettings` + if (jsonObj.get("indexSettings") != null && !jsonObj.get("indexSettings").isJsonNull()) { + OpenSearchIndexSetting.validateJsonElement(jsonObj.get("indexSettings")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `indexSettings` - if (jsonObj.get("indexSettings") != null && !jsonObj.get("indexSettings").isJsonNull()) { - OpenSearchIndexSetting.validateJsonElement(jsonObj.get("indexSettings")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpenSearchIndexResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpenSearchIndexResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchIndexResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpenSearchIndexResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpenSearchIndexResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpenSearchIndexResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpenSearchIndexResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchIndexResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpenSearchIndexResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpenSearchIndexResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java index ba7bbd475..b7629f02f 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * GetOpenSearchIndiceResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchIndiceResponse { public static final String SERIALIZED_NAME_INDICES = "indices"; @SerializedName(SERIALIZED_NAME_INDICES) @javax.annotation.Nullable private List indices = new ArrayList<>(); - public GetOpenSearchIndiceResponse() {} + public GetOpenSearchIndiceResponse() { + } - public GetOpenSearchIndiceResponse indices( - @javax.annotation.Nullable List indices) { + public GetOpenSearchIndiceResponse indices(@javax.annotation.Nullable List indices) { this.indices = indices; return this; } @@ -87,7 +78,6 @@ public GetOpenSearchIndiceResponse addIndicesItem(OpenSearchIndex indicesItem) { /** * OpenSearch Indices - * * @return indices */ @javax.annotation.Nullable @@ -128,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -156,69 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetOpenSearchIndiceResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpenSearchIndiceResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetOpenSearchIndiceResponse is not found in the empty JSON string", - GetOpenSearchIndiceResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetOpenSearchIndiceResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpenSearchIndiceResponse is not found in the empty JSON string", GetOpenSearchIndiceResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpenSearchIndiceResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetOpenSearchIndiceResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpenSearchIndiceResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpenSearchIndiceResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("indices") != null && !jsonObj.get("indices").isJsonNull()) { - JsonArray jsonArrayindices = jsonObj.getAsJsonArray("indices"); - if (jsonArrayindices != null) { - // ensure the json data is an array - if (!jsonObj.get("indices").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `indices` to be an array in the JSON string but got `%s`", - jsonObj.get("indices").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("indices") != null && !jsonObj.get("indices").isJsonNull()) { + JsonArray jsonArrayindices = jsonObj.getAsJsonArray("indices"); + if (jsonArrayindices != null) { + // ensure the json data is an array + if (!jsonObj.get("indices").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indices` to be an array in the JSON string but got `%s`", jsonObj.get("indices").toString())); + } + + // validate the optional field `indices` (array) + for (int i = 0; i < jsonArrayindices.size(); i++) { + OpenSearchIndex.validateJsonElement(jsonArrayindices.get(i)); + }; } - - // validate the optional field `indices` (array) - for (int i = 0; i < jsonArrayindices.size(); i++) { - OpenSearchIndex.validateJsonElement(jsonArrayindices.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpenSearchIndiceResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpenSearchIndiceResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchIndiceResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpenSearchIndiceResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpenSearchIndiceResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpenSearchIndiceResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpenSearchIndiceResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchIndiceResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpenSearchIndiceResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpenSearchIndiceResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java index 95cb173f1..4bbb49389 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,25 +53,22 @@ /** * GetOpenSearchSnapshotRepositoryResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchSnapshotRepositoryResponse { public static final String SERIALIZED_NAME_S3_REPOSITORIES = "s3Repositories"; @SerializedName(SERIALIZED_NAME_S3_REPOSITORIES) @javax.annotation.Nullable private List s3Repositories = new ArrayList<>(); - public GetOpenSearchSnapshotRepositoryResponse() {} + public GetOpenSearchSnapshotRepositoryResponse() { + } - public GetOpenSearchSnapshotRepositoryResponse s3Repositories( - @javax.annotation.Nullable List s3Repositories) { + public GetOpenSearchSnapshotRepositoryResponse s3Repositories(@javax.annotation.Nullable List s3Repositories) { this.s3Repositories = s3Repositories; return this; } - public GetOpenSearchSnapshotRepositoryResponse addS3RepositoriesItem( - OpenSearchS3Repository s3RepositoriesItem) { + public GetOpenSearchSnapshotRepositoryResponse addS3RepositoriesItem(OpenSearchS3Repository s3RepositoriesItem) { if (this.s3Repositories == null) { this.s3Repositories = new ArrayList<>(); } @@ -88,7 +78,6 @@ public GetOpenSearchSnapshotRepositoryResponse addS3RepositoriesItem( /** * Get s3Repositories - * * @return s3Repositories */ @javax.annotation.Nullable @@ -96,8 +85,7 @@ public List getS3Repositories() { return s3Repositories; } - public void setS3Repositories( - @javax.annotation.Nullable List s3Repositories) { + public void setS3Repositories(@javax.annotation.Nullable List s3Repositories) { this.s3Repositories = s3Repositories; } @@ -111,10 +99,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepositoryResponse = - (GetOpenSearchSnapshotRepositoryResponse) o; - return Objects.equals(this.s3Repositories, - getOpenSearchSnapshotRepositoryResponse.s3Repositories); + GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepositoryResponse = (GetOpenSearchSnapshotRepositoryResponse) o; + return Objects.equals(this.s3Repositories, getOpenSearchSnapshotRepositoryResponse.s3Repositories); } @Override @@ -132,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -157,79 +144,65 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * GetOpenSearchSnapshotRepositoryResponse + * @throws IOException if the JSON Element is invalid with respect to GetOpenSearchSnapshotRepositoryResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpenSearchSnapshotRepositoryResponse.openapiRequiredFields.isEmpty()) { // has - // required - // fields but - // JSON - // element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetOpenSearchSnapshotRepositoryResponse is not found in the empty JSON string", - GetOpenSearchSnapshotRepositoryResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetOpenSearchSnapshotRepositoryResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpenSearchSnapshotRepositoryResponse is not found in the empty JSON string", GetOpenSearchSnapshotRepositoryResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpenSearchSnapshotRepositoryResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetOpenSearchSnapshotRepositoryResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpenSearchSnapshotRepositoryResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpenSearchSnapshotRepositoryResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("s3Repositories") != null && !jsonObj.get("s3Repositories").isJsonNull()) { - JsonArray jsonArrays3Repositories = jsonObj.getAsJsonArray("s3Repositories"); - if (jsonArrays3Repositories != null) { - // ensure the json data is an array - if (!jsonObj.get("s3Repositories").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `s3Repositories` to be an array in the JSON string but got `%s`", - jsonObj.get("s3Repositories").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("s3Repositories") != null && !jsonObj.get("s3Repositories").isJsonNull()) { + JsonArray jsonArrays3Repositories = jsonObj.getAsJsonArray("s3Repositories"); + if (jsonArrays3Repositories != null) { + // ensure the json data is an array + if (!jsonObj.get("s3Repositories").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `s3Repositories` to be an array in the JSON string but got `%s`", jsonObj.get("s3Repositories").toString())); + } + + // validate the optional field `s3Repositories` (array) + for (int i = 0; i < jsonArrays3Repositories.size(); i++) { + OpenSearchS3Repository.validateJsonElement(jsonArrays3Repositories.get(i)); + }; } - - // validate the optional field `s3Repositories` (array) - for (int i = 0; i < jsonArrays3Repositories.size(); i++) { - OpenSearchS3Repository.validateJsonElement(jsonArrays3Repositories.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpenSearchSnapshotRepositoryResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpenSearchSnapshotRepositoryResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = gson - .getDelegateAdapter(this, TypeToken.get(GetOpenSearchSnapshotRepositoryResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpenSearchSnapshotRepositoryResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpenSearchSnapshotRepositoryResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpenSearchSnapshotRepositoryResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpenSearchSnapshotRepositoryResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchSnapshotRepositoryResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpenSearchSnapshotRepositoryResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpenSearchSnapshotRepositoryResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -238,11 +211,9 @@ public GetOpenSearchSnapshotRepositoryResponse read(JsonReader in) throws IOExce * * @param jsonString JSON string * @return An instance of GetOpenSearchSnapshotRepositoryResponse - * @throws IOException if the JSON string is invalid with respect to - * GetOpenSearchSnapshotRepositoryResponse + * @throws IOException if the JSON string is invalid with respect to GetOpenSearchSnapshotRepositoryResponse */ - public static GetOpenSearchSnapshotRepositoryResponse fromJson(String jsonString) - throws IOException { + public static GetOpenSearchSnapshotRepositoryResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetOpenSearchSnapshotRepositoryResponse.class); } diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java index fb838c0c2..5d6ceb9b1 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * GetOpenSearchSnapshotResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchSnapshotResponse { public static final String SERIALIZED_NAME_SNAPSHOTS = "snapshots"; @SerializedName(SERIALIZED_NAME_SNAPSHOTS) @javax.annotation.Nullable private List snapshots = new ArrayList<>(); - public GetOpenSearchSnapshotResponse() {} + public GetOpenSearchSnapshotResponse() { + } - public GetOpenSearchSnapshotResponse snapshots( - @javax.annotation.Nullable List snapshots) { + public GetOpenSearchSnapshotResponse snapshots(@javax.annotation.Nullable List snapshots) { this.snapshots = snapshots; return this; } @@ -87,7 +78,6 @@ public GetOpenSearchSnapshotResponse addSnapshotsItem(OpenSearchSnapshot snapsho /** * Get snapshots - * * @return snapshots */ @javax.annotation.Nullable @@ -128,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -153,74 +144,65 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * GetOpenSearchSnapshotResponse + * @throws IOException if the JSON Element is invalid with respect to GetOpenSearchSnapshotResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpenSearchSnapshotResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetOpenSearchSnapshotResponse is not found in the empty JSON string", - GetOpenSearchSnapshotResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetOpenSearchSnapshotResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpenSearchSnapshotResponse is not found in the empty JSON string", GetOpenSearchSnapshotResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpenSearchSnapshotResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetOpenSearchSnapshotResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpenSearchSnapshotResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpenSearchSnapshotResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("snapshots") != null && !jsonObj.get("snapshots").isJsonNull()) { - JsonArray jsonArraysnapshots = jsonObj.getAsJsonArray("snapshots"); - if (jsonArraysnapshots != null) { - // ensure the json data is an array - if (!jsonObj.get("snapshots").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `snapshots` to be an array in the JSON string but got `%s`", - jsonObj.get("snapshots").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("snapshots") != null && !jsonObj.get("snapshots").isJsonNull()) { + JsonArray jsonArraysnapshots = jsonObj.getAsJsonArray("snapshots"); + if (jsonArraysnapshots != null) { + // ensure the json data is an array + if (!jsonObj.get("snapshots").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `snapshots` to be an array in the JSON string but got `%s`", jsonObj.get("snapshots").toString())); + } + + // validate the optional field `snapshots` (array) + for (int i = 0; i < jsonArraysnapshots.size(); i++) { + OpenSearchSnapshot.validateJsonElement(jsonArraysnapshots.get(i)); + }; } - - // validate the optional field `snapshots` (array) - for (int i = 0; i < jsonArraysnapshots.size(); i++) { - OpenSearchSnapshot.validateJsonElement(jsonArraysnapshots.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpenSearchSnapshotResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpenSearchSnapshotResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchSnapshotResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpenSearchSnapshotResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpenSearchSnapshotResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpenSearchSnapshotResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpenSearchSnapshotResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchSnapshotResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpenSearchSnapshotResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpenSearchSnapshotResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetQueueResponse.java b/src/main/java/com/formkiq/client/model/GetQueueResponse.java index 4d2f55971..b7b486551 100644 --- a/src/main/java/com/formkiq/client/model/GetQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/GetQueueResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * GetQueueResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetQueueResponse { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nullable private String name; - public GetQueueResponse() {} + public GetQueueResponse() { + } public GetQueueResponse name(@javax.annotation.Nullable String name) { this.name = name; @@ -75,7 +67,6 @@ public GetQueueResponse name(@javax.annotation.Nullable String name) { /** * Queue name - * * @return name */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetQueueResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetQueueResponse is not found in the empty JSON string", - GetQueueResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetQueueResponse is not found in the empty JSON string", GetQueueResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetQueueResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetQueueResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetQueueResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetQueueResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQueueResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQueueResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetQueueResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetQueueResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetQueueResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetQueueResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetQueueResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetQueueResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetQueueResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetQueueResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetQueuesResponse.java b/src/main/java/com/formkiq/client/model/GetQueuesResponse.java index bd59a5dae..20e40083d 100644 --- a/src/main/java/com/formkiq/client/model/GetQueuesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetQueuesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetQueuesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetQueuesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetQueuesResponse { @javax.annotation.Nullable private List queues = new ArrayList<>(); - public GetQueuesResponse() {} + public GetQueuesResponse() { + } public GetQueuesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetQueuesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetQueuesResponse addQueuesItem(Queue queuesItem) { /** * List of queues - * * @return queues */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetQueuesResponse getQueuesResponse = (GetQueuesResponse) o; - return Objects.equals(this.next, getQueuesResponse.next) - && Objects.equals(this.queues, getQueuesResponse.queues); + return Objects.equals(this.next, getQueuesResponse.next) && + Objects.equals(this.queues, getQueuesResponse.queues); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetQueuesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetQueuesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetQueuesResponse is not found in the empty JSON string", - GetQueuesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetQueuesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetQueuesResponse is not found in the empty JSON string", GetQueuesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetQueuesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetQueuesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetQueuesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetQueuesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("queues") != null && !jsonObj.get("queues").isJsonNull()) { - JsonArray jsonArrayqueues = jsonObj.getAsJsonArray("queues"); - if (jsonArrayqueues != null) { - // ensure the json data is an array - if (!jsonObj.get("queues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `queues` to be an array in the JSON string but got `%s`", - jsonObj.get("queues").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("queues") != null && !jsonObj.get("queues").isJsonNull()) { + JsonArray jsonArrayqueues = jsonObj.getAsJsonArray("queues"); + if (jsonArrayqueues != null) { + // ensure the json data is an array + if (!jsonObj.get("queues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queues` to be an array in the JSON string but got `%s`", jsonObj.get("queues").toString())); + } + + // validate the optional field `queues` (array) + for (int i = 0; i < jsonArrayqueues.size(); i++) { + Queue.validateJsonElement(jsonArrayqueues.get(i)); + }; } - - // validate the optional field `queues` (array) - for (int i = 0; i < jsonArrayqueues.size(); i++) { - Queue.validateJsonElement(jsonArrayqueues.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQueuesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQueuesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetQueuesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetQueuesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetQueuesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetQueuesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetQueuesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetQueuesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetQueuesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetQueuesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetRuleResponse.java b/src/main/java/com/formkiq/client/model/GetRuleResponse.java index b591f202a..6dad88529 100644 --- a/src/main/java/com/formkiq/client/model/GetRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRuleResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetRuleResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRuleResponse { public static final String SERIALIZED_NAME_RULE = "rule"; @SerializedName(SERIALIZED_NAME_RULE) @javax.annotation.Nullable private Rule rule; - public GetRuleResponse() {} + public GetRuleResponse() { + } public GetRuleResponse rule(@javax.annotation.Nullable Rule rule) { this.rule = rule; @@ -76,7 +68,6 @@ public GetRuleResponse rule(@javax.annotation.Nullable Rule rule) { /** * Get rule - * * @return rule */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetRuleResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetRuleResponse is not found in the empty JSON string", - GetRuleResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRuleResponse is not found in the empty JSON string", GetRuleResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetRuleResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetRuleResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetRuleResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetRuleResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `rule` + if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { + Rule.validateJsonElement(jsonObj.get("rule")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `rule` - if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { - Rule.validateJsonElement(jsonObj.get("rule")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetRuleResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetRuleResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetRuleResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetRuleResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetRuleResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetRuleResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetRuleResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetRuleResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetRuleResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetRuleResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetRulesResponse.java b/src/main/java/com/formkiq/client/model/GetRulesResponse.java index 99af9d4a2..a5f17e7cb 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetRulesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRulesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetRulesResponse { @javax.annotation.Nullable private List rules = new ArrayList<>(); - public GetRulesResponse() {} + public GetRulesResponse() { + } public GetRulesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetRulesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetRulesResponse addRulesItem(Rule rulesItem) { /** * List of rules - * * @return rules */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetRulesResponse getRulesResponse = (GetRulesResponse) o; - return Objects.equals(this.next, getRulesResponse.next) - && Objects.equals(this.rules, getRulesResponse.rules); + return Objects.equals(this.next, getRulesResponse.next) && + Objects.equals(this.rules, getRulesResponse.rules); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetRulesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetRulesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetRulesResponse is not found in the empty JSON string", - GetRulesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetRulesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRulesResponse is not found in the empty JSON string", GetRulesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetRulesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetRulesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetRulesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetRulesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { - JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); - if (jsonArrayrules != null) { - // ensure the json data is an array - if (!jsonObj.get("rules").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `rules` to be an array in the JSON string but got `%s`", - jsonObj.get("rules").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { + JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); + if (jsonArrayrules != null) { + // ensure the json data is an array + if (!jsonObj.get("rules").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); + } + + // validate the optional field `rules` (array) + for (int i = 0; i < jsonArrayrules.size(); i++) { + Rule.validateJsonElement(jsonArrayrules.get(i)); + }; } - - // validate the optional field `rules` (array) - for (int i = 0; i < jsonArrayrules.size(); i++) { - Rule.validateJsonElement(jsonArrayrules.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetRulesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetRulesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetRulesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetRulesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetRulesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetRulesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetRulesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetRulesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetRulesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetRulesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetRulesetResponse.java b/src/main/java/com/formkiq/client/model/GetRulesetResponse.java index fdfd71a10..1a2f4e619 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesetResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetRulesetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRulesetResponse { public static final String SERIALIZED_NAME_RULESET = "ruleset"; @SerializedName(SERIALIZED_NAME_RULESET) @javax.annotation.Nullable private Ruleset ruleset; - public GetRulesetResponse() {} + public GetRulesetResponse() { + } public GetRulesetResponse ruleset(@javax.annotation.Nullable Ruleset ruleset) { this.ruleset = ruleset; @@ -76,7 +68,6 @@ public GetRulesetResponse ruleset(@javax.annotation.Nullable Ruleset ruleset) { /** * Get ruleset - * * @return ruleset */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetRulesetResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetRulesetResponse is not found in the empty JSON string", - GetRulesetResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRulesetResponse is not found in the empty JSON string", GetRulesetResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetRulesetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetRulesetResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetRulesetResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetRulesetResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `ruleset` + if (jsonObj.get("ruleset") != null && !jsonObj.get("ruleset").isJsonNull()) { + Ruleset.validateJsonElement(jsonObj.get("ruleset")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `ruleset` - if (jsonObj.get("ruleset") != null && !jsonObj.get("ruleset").isJsonNull()) { - Ruleset.validateJsonElement(jsonObj.get("ruleset")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetRulesetResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetRulesetResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetRulesetResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetRulesetResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetRulesetResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetRulesetResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetRulesetResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetRulesetResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetRulesetResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetRulesetResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java b/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java index 762a47639..aa1f575c0 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetRulesetsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRulesetsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetRulesetsResponse { @javax.annotation.Nullable private List rulesets = new ArrayList<>(); - public GetRulesetsResponse() {} + public GetRulesetsResponse() { + } public GetRulesetsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetRulesetsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetRulesetsResponse addRulesetsItem(Ruleset rulesetsItem) { /** * List of rulesets - * * @return rulesets */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetRulesetsResponse getRulesetsResponse = (GetRulesetsResponse) o; - return Objects.equals(this.next, getRulesetsResponse.next) - && Objects.equals(this.rulesets, getRulesetsResponse.rulesets); + return Objects.equals(this.next, getRulesetsResponse.next) && + Objects.equals(this.rulesets, getRulesetsResponse.rulesets); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetRulesetsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetRulesetsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetRulesetsResponse is not found in the empty JSON string", - GetRulesetsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetRulesetsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRulesetsResponse is not found in the empty JSON string", GetRulesetsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetRulesetsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetRulesetsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetRulesetsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetRulesetsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("rulesets") != null && !jsonObj.get("rulesets").isJsonNull()) { - JsonArray jsonArrayrulesets = jsonObj.getAsJsonArray("rulesets"); - if (jsonArrayrulesets != null) { - // ensure the json data is an array - if (!jsonObj.get("rulesets").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `rulesets` to be an array in the JSON string but got `%s`", - jsonObj.get("rulesets").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("rulesets") != null && !jsonObj.get("rulesets").isJsonNull()) { + JsonArray jsonArrayrulesets = jsonObj.getAsJsonArray("rulesets"); + if (jsonArrayrulesets != null) { + // ensure the json data is an array + if (!jsonObj.get("rulesets").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rulesets` to be an array in the JSON string but got `%s`", jsonObj.get("rulesets").toString())); + } + + // validate the optional field `rulesets` (array) + for (int i = 0; i < jsonArrayrulesets.size(); i++) { + Ruleset.validateJsonElement(jsonArrayrulesets.get(i)); + }; } - - // validate the optional field `rulesets` (array) - for (int i = 0; i < jsonArrayrulesets.size(); i++) { - Ruleset.validateJsonElement(jsonArrayrulesets.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetRulesetsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetRulesetsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetRulesetsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetRulesetsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetRulesetsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetRulesetsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetRulesetsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetRulesetsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetRulesetsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetRulesetsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java b/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java index 04e4bf896..c476ce68f 100644 --- a/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetSiteGroupResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSiteGroupResponse { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @javax.annotation.Nullable private SiteGroup group; - public GetSiteGroupResponse() {} + public GetSiteGroupResponse() { + } public GetSiteGroupResponse group(@javax.annotation.Nullable SiteGroup group) { this.group = group; @@ -76,7 +68,6 @@ public GetSiteGroupResponse group(@javax.annotation.Nullable SiteGroup group) { /** * Get group - * * @return group */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetSiteGroupResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetSiteGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetSiteGroupResponse is not found in the empty JSON string", - GetSiteGroupResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetSiteGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetSiteGroupResponse is not found in the empty JSON string", GetSiteGroupResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetSiteGroupResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetSiteGroupResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetSiteGroupResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetSiteGroupResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `group` + if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { + SiteGroup.validateJsonElement(jsonObj.get("group")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `group` - if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { - SiteGroup.validateJsonElement(jsonObj.get("group")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSiteGroupResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSiteGroupResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetSiteGroupResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSiteGroupResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetSiteGroupResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetSiteGroupResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSiteGroupResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetSiteGroupResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSiteGroupResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetSiteGroupResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java index 43baf01ae..0fd3a10b0 100644 --- a/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,16 +52,15 @@ /** * GetSiteGroupsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSiteGroupsResponse { public static final String SERIALIZED_NAME_GROUP_NAMES = "groupNames"; @SerializedName(SERIALIZED_NAME_GROUP_NAMES) @javax.annotation.Nullable private List groupNames = new ArrayList<>(); - public GetSiteGroupsResponse() {} + public GetSiteGroupsResponse() { + } public GetSiteGroupsResponse groupNames(@javax.annotation.Nullable List groupNames) { this.groupNames = groupNames; @@ -85,7 +77,6 @@ public GetSiteGroupsResponse addGroupNamesItem(String groupNamesItem) { /** * Get groupNames - * * @return groupNames */ @javax.annotation.Nullable @@ -126,7 +117,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,60 +146,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetSiteGroupsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetSiteGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetSiteGroupsResponse is not found in the empty JSON string", - GetSiteGroupsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetSiteGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetSiteGroupsResponse is not found in the empty JSON string", GetSiteGroupsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetSiteGroupsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetSiteGroupsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetSiteGroupsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetSiteGroupsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("groupNames") != null && !jsonObj.get("groupNames").isJsonNull() && !jsonObj.get("groupNames").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `groupNames` to be an array in the JSON string but got `%s`", jsonObj.get("groupNames").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("groupNames") != null && !jsonObj.get("groupNames").isJsonNull() - && !jsonObj.get("groupNames").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `groupNames` to be an array in the JSON string but got `%s`", - jsonObj.get("groupNames").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSiteGroupsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSiteGroupsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetSiteGroupsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSiteGroupsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetSiteGroupsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetSiteGroupsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSiteGroupsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetSiteGroupsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSiteGroupsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetSiteGroupsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetSitesResponse.java b/src/main/java/com/formkiq/client/model/GetSitesResponse.java index af9d44cc4..e71a68cf0 100644 --- a/src/main/java/com/formkiq/client/model/GetSitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSitesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetSitesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSitesResponse { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) @@ -79,7 +70,8 @@ public class GetSitesResponse { @javax.annotation.Nullable private List sites = new ArrayList<>(); - public GetSitesResponse() {} + public GetSitesResponse() { + } public GetSitesResponse username(@javax.annotation.Nullable String username) { this.username = username; @@ -88,7 +80,6 @@ public GetSitesResponse username(@javax.annotation.Nullable String username) { /** * Username of request caller - * * @return username */ @javax.annotation.Nullable @@ -116,7 +107,6 @@ public GetSitesResponse addRolesItem(String rolesItem) { /** * Get roles - * * @return roles */ @javax.annotation.Nullable @@ -144,7 +134,6 @@ public GetSitesResponse addSitesItem(Site sitesItem) { /** * List of sites - * * @return sites */ @javax.annotation.Nullable @@ -167,9 +156,9 @@ public boolean equals(Object o) { return false; } GetSitesResponse getSitesResponse = (GetSitesResponse) o; - return Objects.equals(this.username, getSitesResponse.username) - && Objects.equals(this.roles, getSitesResponse.roles) - && Objects.equals(this.sites, getSitesResponse.sites); + return Objects.equals(this.username, getSitesResponse.username) && + Objects.equals(this.roles, getSitesResponse.roles) && + Objects.equals(this.sites, getSitesResponse.sites); } @Override @@ -189,7 +178,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -217,82 +207,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetSitesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetSitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetSitesResponse is not found in the empty JSON string", - GetSitesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetSitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetSitesResponse is not found in the empty JSON string", GetSitesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetSitesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetSitesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetSitesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetSitesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) - && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `username` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("username").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull() - && !jsonObj.get("roles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `roles` to be an array in the JSON string but got `%s`", - jsonObj.get("roles").toString())); - } - if (jsonObj.get("sites") != null && !jsonObj.get("sites").isJsonNull()) { - JsonArray jsonArraysites = jsonObj.getAsJsonArray("sites"); - if (jsonArraysites != null) { - // ensure the json data is an array - if (!jsonObj.get("sites").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `sites` to be an array in the JSON string but got `%s`", - jsonObj.get("sites").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull() && !jsonObj.get("roles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `roles` to be an array in the JSON string but got `%s`", jsonObj.get("roles").toString())); + } + if (jsonObj.get("sites") != null && !jsonObj.get("sites").isJsonNull()) { + JsonArray jsonArraysites = jsonObj.getAsJsonArray("sites"); + if (jsonArraysites != null) { + // ensure the json data is an array + if (!jsonObj.get("sites").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sites` to be an array in the JSON string but got `%s`", jsonObj.get("sites").toString())); + } + + // validate the optional field `sites` (array) + for (int i = 0; i < jsonArraysites.size(); i++) { + Site.validateJsonElement(jsonArraysites.get(i)); + }; } - - // validate the optional field `sites` (array) - for (int i = 0; i < jsonArraysites.size(); i++) { - Site.validateJsonElement(jsonArraysites.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSitesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSitesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetSitesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSitesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetSitesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetSitesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSitesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetSitesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSitesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetSitesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java b/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java index 2b6b4ea5a..a743dfa61 100644 --- a/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * GetSitesSchemaResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSitesSchemaResponse { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -72,7 +63,8 @@ public class GetSitesSchemaResponse { @javax.annotation.Nullable private SchemaAttributes attributes; - public GetSitesSchemaResponse() {} + public GetSitesSchemaResponse() { + } public GetSitesSchemaResponse name(@javax.annotation.Nullable String name) { this.name = name; @@ -81,7 +73,6 @@ public GetSitesSchemaResponse name(@javax.annotation.Nullable String name) { /** * Name of schema - * * @return name */ @javax.annotation.Nullable @@ -101,7 +92,6 @@ public GetSitesSchemaResponse attributes(@javax.annotation.Nullable SchemaAttrib /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -124,8 +114,8 @@ public boolean equals(Object o) { return false; } GetSitesSchemaResponse getSitesSchemaResponse = (GetSitesSchemaResponse) o; - return Objects.equals(this.name, getSitesSchemaResponse.name) - && Objects.equals(this.attributes, getSitesSchemaResponse.attributes); + return Objects.equals(this.name, getSitesSchemaResponse.name) && + Objects.equals(this.attributes, getSitesSchemaResponse.attributes); } @Override @@ -144,7 +134,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,63 +163,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetSitesSchemaResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetSitesSchemaResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetSitesSchemaResponse is not found in the empty JSON string", - GetSitesSchemaResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetSitesSchemaResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetSitesSchemaResponse is not found in the empty JSON string", GetSitesSchemaResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetSitesSchemaResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetSitesSchemaResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetSitesSchemaResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetSitesSchemaResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + SchemaAttributes.validateJsonElement(jsonObj.get("attributes")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - SchemaAttributes.validateJsonElement(jsonObj.get("attributes")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSitesSchemaResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSitesSchemaResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetSitesSchemaResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSitesSchemaResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetSitesSchemaResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetSitesSchemaResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSitesSchemaResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetSitesSchemaResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSitesSchemaResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetSitesSchemaResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java b/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java index 62ea6deb1..9572bea69 100644 --- a/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetUserActivitesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserActivitesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetUserActivitesResponse { @javax.annotation.Nullable private List userActivities = new ArrayList<>(); - public GetUserActivitesResponse() {} + public GetUserActivitesResponse() { + } public GetUserActivitesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetUserActivitesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetUserActivitesResponse userActivities( - @javax.annotation.Nullable List userActivities) { + public GetUserActivitesResponse userActivities(@javax.annotation.Nullable List userActivities) { this.userActivities = userActivities; return this; } @@ -112,7 +102,6 @@ public GetUserActivitesResponse addUserActivitiesItem(UserActivity userActivitie /** * List of user activities - * * @return userActivities */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } GetUserActivitesResponse getUserActivitesResponse = (GetUserActivitesResponse) o; - return Objects.equals(this.next, getUserActivitesResponse.next) - && Objects.equals(this.userActivities, getUserActivitesResponse.userActivities); + return Objects.equals(this.next, getUserActivitesResponse.next) && + Objects.equals(this.userActivities, getUserActivitesResponse.userActivities); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUserActivitesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUserActivitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetUserActivitesResponse is not found in the empty JSON string", - GetUserActivitesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetUserActivitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUserActivitesResponse is not found in the empty JSON string", GetUserActivitesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUserActivitesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetUserActivitesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUserActivitesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUserActivitesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("userActivities") != null && !jsonObj.get("userActivities").isJsonNull()) { - JsonArray jsonArrayuserActivities = jsonObj.getAsJsonArray("userActivities"); - if (jsonArrayuserActivities != null) { - // ensure the json data is an array - if (!jsonObj.get("userActivities").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userActivities` to be an array in the JSON string but got `%s`", - jsonObj.get("userActivities").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("userActivities") != null && !jsonObj.get("userActivities").isJsonNull()) { + JsonArray jsonArrayuserActivities = jsonObj.getAsJsonArray("userActivities"); + if (jsonArrayuserActivities != null) { + // ensure the json data is an array + if (!jsonObj.get("userActivities").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userActivities` to be an array in the JSON string but got `%s`", jsonObj.get("userActivities").toString())); + } + + // validate the optional field `userActivities` (array) + for (int i = 0; i < jsonArrayuserActivities.size(); i++) { + UserActivity.validateJsonElement(jsonArrayuserActivities.get(i)); + }; } - - // validate the optional field `userActivities` (array) - for (int i = 0; i < jsonArrayuserActivities.size(); i++) { - UserActivity.validateJsonElement(jsonArrayuserActivities.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserActivitesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserActivitesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetUserActivitesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserActivitesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUserActivitesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUserActivitesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserActivitesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetUserActivitesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserActivitesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUserActivitesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java index 33973c6ce..5874d1e0b 100644 --- a/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetUserGroupsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserGroupsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetUserGroupsResponse { @javax.annotation.Nullable private List groups = new ArrayList<>(); - public GetUserGroupsResponse() {} + public GetUserGroupsResponse() { + } public GetUserGroupsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetUserGroupsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetUserGroupsResponse addGroupsItem(Group groupsItem) { /** * List of groups - * * @return groups */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetUserGroupsResponse getUserGroupsResponse = (GetUserGroupsResponse) o; - return Objects.equals(this.next, getUserGroupsResponse.next) - && Objects.equals(this.groups, getUserGroupsResponse.groups); + return Objects.equals(this.next, getUserGroupsResponse.next) && + Objects.equals(this.groups, getUserGroupsResponse.groups); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUserGroupsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUserGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetUserGroupsResponse is not found in the empty JSON string", - GetUserGroupsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetUserGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUserGroupsResponse is not found in the empty JSON string", GetUserGroupsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUserGroupsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetUserGroupsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUserGroupsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUserGroupsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { - JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); - if (jsonArraygroups != null) { - // ensure the json data is an array - if (!jsonObj.get("groups").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `groups` to be an array in the JSON string but got `%s`", - jsonObj.get("groups").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { + JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); + if (jsonArraygroups != null) { + // ensure the json data is an array + if (!jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); + } + + // validate the optional field `groups` (array) + for (int i = 0; i < jsonArraygroups.size(); i++) { + Group.validateJsonElement(jsonArraygroups.get(i)); + }; } - - // validate the optional field `groups` (array) - for (int i = 0; i < jsonArraygroups.size(); i++) { - Group.validateJsonElement(jsonArraygroups.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserGroupsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserGroupsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetUserGroupsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserGroupsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUserGroupsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUserGroupsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserGroupsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetUserGroupsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserGroupsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUserGroupsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUserResponse.java b/src/main/java/com/formkiq/client/model/GetUserResponse.java index 01aeebdfa..1c15497c9 100644 --- a/src/main/java/com/formkiq/client/model/GetUserResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * GetUserResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserResponse { public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) @javax.annotation.Nullable private User user; - public GetUserResponse() {} + public GetUserResponse() { + } public GetUserResponse user(@javax.annotation.Nullable User user) { this.user = user; @@ -76,7 +68,6 @@ public GetUserResponse user(@javax.annotation.Nullable User user) { /** * Get user - * * @return user */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUserResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUserResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetUserResponse is not found in the empty JSON string", - GetUserResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetUserResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUserResponse is not found in the empty JSON string", GetUserResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUserResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetUserResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUserResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUserResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `user` + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { + User.validateJsonElement(jsonObj.get("user")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `user` - if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { - User.validateJsonElement(jsonObj.get("user")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetUserResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUserResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUserResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetUserResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUserResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java b/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java index 3ee37a6e0..b82bcc39c 100644 --- a/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetUserSharesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserSharesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetUserSharesResponse { @javax.annotation.Nullable private List shares = new ArrayList<>(); - public GetUserSharesResponse() {} + public GetUserSharesResponse() { + } public GetUserSharesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetUserSharesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetUserSharesResponse addSharesItem(UserShare sharesItem) { /** * List of user's shares - * * @return shares */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetUserSharesResponse getUserSharesResponse = (GetUserSharesResponse) o; - return Objects.equals(this.next, getUserSharesResponse.next) - && Objects.equals(this.shares, getUserSharesResponse.shares); + return Objects.equals(this.next, getUserSharesResponse.next) && + Objects.equals(this.shares, getUserSharesResponse.shares); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUserSharesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUserSharesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetUserSharesResponse is not found in the empty JSON string", - GetUserSharesResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetUserSharesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUserSharesResponse is not found in the empty JSON string", GetUserSharesResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUserSharesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetUserSharesResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUserSharesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUserSharesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("shares") != null && !jsonObj.get("shares").isJsonNull()) { - JsonArray jsonArrayshares = jsonObj.getAsJsonArray("shares"); - if (jsonArrayshares != null) { - // ensure the json data is an array - if (!jsonObj.get("shares").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `shares` to be an array in the JSON string but got `%s`", - jsonObj.get("shares").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("shares") != null && !jsonObj.get("shares").isJsonNull()) { + JsonArray jsonArrayshares = jsonObj.getAsJsonArray("shares"); + if (jsonArrayshares != null) { + // ensure the json data is an array + if (!jsonObj.get("shares").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shares` to be an array in the JSON string but got `%s`", jsonObj.get("shares").toString())); + } + + // validate the optional field `shares` (array) + for (int i = 0; i < jsonArrayshares.size(); i++) { + UserShare.validateJsonElement(jsonArrayshares.get(i)); + }; } - - // validate the optional field `shares` (array) - for (int i = 0; i < jsonArrayshares.size(); i++) { - UserShare.validateJsonElement(jsonArrayshares.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserSharesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserSharesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetUserSharesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserSharesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUserSharesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUserSharesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserSharesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetUserSharesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserSharesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUserSharesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java b/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java index da37e6e08..c9b99beb0 100644 --- a/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetUsersInGroupResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUsersInGroupResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetUsersInGroupResponse { @javax.annotation.Nullable private List users = new ArrayList<>(); - public GetUsersInGroupResponse() {} + public GetUsersInGroupResponse() { + } public GetUsersInGroupResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetUsersInGroupResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetUsersInGroupResponse addUsersItem(User usersItem) { /** * List of users - * * @return users */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetUsersInGroupResponse getUsersInGroupResponse = (GetUsersInGroupResponse) o; - return Objects.equals(this.next, getUsersInGroupResponse.next) - && Objects.equals(this.users, getUsersInGroupResponse.users); + return Objects.equals(this.next, getUsersInGroupResponse.next) && + Objects.equals(this.users, getUsersInGroupResponse.users); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUsersInGroupResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUsersInGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetUsersInGroupResponse is not found in the empty JSON string", - GetUsersInGroupResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetUsersInGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUsersInGroupResponse is not found in the empty JSON string", GetUsersInGroupResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUsersInGroupResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetUsersInGroupResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUsersInGroupResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUsersInGroupResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { - JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); - if (jsonArrayusers != null) { - // ensure the json data is an array - if (!jsonObj.get("users").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `users` to be an array in the JSON string but got `%s`", - jsonObj.get("users").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + if (jsonArrayusers != null) { + // ensure the json data is an array + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + + // validate the optional field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + User.validateJsonElement(jsonArrayusers.get(i)); + }; } - - // validate the optional field `users` (array) - for (int i = 0; i < jsonArrayusers.size(); i++) { - User.validateJsonElement(jsonArrayusers.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUsersInGroupResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUsersInGroupResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetUsersInGroupResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUsersInGroupResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUsersInGroupResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUsersInGroupResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUsersInGroupResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetUsersInGroupResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUsersInGroupResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUsersInGroupResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUsersResponse.java b/src/main/java/com/formkiq/client/model/GetUsersResponse.java index 309e1e805..2cb9e9e79 100644 --- a/src/main/java/com/formkiq/client/model/GetUsersResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUsersResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetUsersResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUsersResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetUsersResponse { @javax.annotation.Nullable private List users = new ArrayList<>(); - public GetUsersResponse() {} + public GetUsersResponse() { + } public GetUsersResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetUsersResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public GetUsersResponse addUsersItem(User usersItem) { /** * List of users - * * @return users */ @javax.annotation.Nullable @@ -134,8 +124,8 @@ public boolean equals(Object o) { return false; } GetUsersResponse getUsersResponse = (GetUsersResponse) o; - return Objects.equals(this.next, getUsersResponse.next) - && Objects.equals(this.users, getUsersResponse.users); + return Objects.equals(this.next, getUsersResponse.next) && + Objects.equals(this.users, getUsersResponse.users); } @Override @@ -154,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -182,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUsersResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUsersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetUsersResponse is not found in the empty JSON string", - GetUsersResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetUsersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUsersResponse is not found in the empty JSON string", GetUsersResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUsersResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetUsersResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUsersResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUsersResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { - JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); - if (jsonArrayusers != null) { - // ensure the json data is an array - if (!jsonObj.get("users").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `users` to be an array in the JSON string but got `%s`", - jsonObj.get("users").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + if (jsonArrayusers != null) { + // ensure the json data is an array + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + + // validate the optional field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + User.validateJsonElement(jsonArrayusers.get(i)); + }; } - - // validate the optional field `users` (array) - for (int i = 0; i < jsonArrayusers.size(); i++) { - User.validateJsonElement(jsonArrayusers.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUsersResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUsersResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetUsersResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUsersResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUsersResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUsersResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUsersResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetUsersResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUsersResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUsersResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetVersionResponse.java b/src/main/java/com/formkiq/client/model/GetVersionResponse.java index 6c5fbaf6a..4a40346d4 100644 --- a/src/main/java/com/formkiq/client/model/GetVersionResponse.java +++ b/src/main/java/com/formkiq/client/model/GetVersionResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * GetVersionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetVersionResponse { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) @@ -83,7 +74,8 @@ public class GetVersionResponse { @javax.annotation.Nullable private List modules = new ArrayList<>(); - public GetVersionResponse() {} + public GetVersionResponse() { + } public GetVersionResponse version(@javax.annotation.Nullable String version) { this.version = version; @@ -92,7 +84,6 @@ public GetVersionResponse version(@javax.annotation.Nullable String version) { /** * FormKiQ version - * * @return version */ @javax.annotation.Nullable @@ -112,7 +103,6 @@ public GetVersionResponse type(@javax.annotation.Nullable String type) { /** * FormKiQ type - * * @return type */ @javax.annotation.Nullable @@ -132,7 +122,6 @@ public GetVersionResponse appEnvironment(@javax.annotation.Nullable String appEn /** * FormKiQ App Environment - * * @return appEnvironment */ @javax.annotation.Nullable @@ -160,7 +149,6 @@ public GetVersionResponse addModulesItem(String modulesItem) { /** * List of installed modules - * * @return modules */ @javax.annotation.Nullable @@ -183,10 +171,10 @@ public boolean equals(Object o) { return false; } GetVersionResponse getVersionResponse = (GetVersionResponse) o; - return Objects.equals(this.version, getVersionResponse.version) - && Objects.equals(this.type, getVersionResponse.type) - && Objects.equals(this.appEnvironment, getVersionResponse.appEnvironment) - && Objects.equals(this.modules, getVersionResponse.modules); + return Objects.equals(this.version, getVersionResponse.version) && + Objects.equals(this.type, getVersionResponse.type) && + Objects.equals(this.appEnvironment, getVersionResponse.appEnvironment) && + Objects.equals(this.modules, getVersionResponse.modules); } @Override @@ -207,7 +195,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -222,8 +211,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("version", "type", "appEnvironment", "modules")); + openapiFields = new HashSet(Arrays.asList("version", "type", "appEnvironment", "modules")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -236,78 +224,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetVersionResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetVersionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetVersionResponse is not found in the empty JSON string", - GetVersionResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetVersionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetVersionResponse is not found in the empty JSON string", GetVersionResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetVersionResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetVersionResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetVersionResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetVersionResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if ((jsonObj.get("appEnvironment") != null && !jsonObj.get("appEnvironment").isJsonNull()) && !jsonObj.get("appEnvironment").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `appEnvironment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("appEnvironment").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("modules") != null && !jsonObj.get("modules").isJsonNull() && !jsonObj.get("modules").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `modules` to be an array in the JSON string but got `%s`", jsonObj.get("modules").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) - && !jsonObj.get("version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `version` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("version").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) - && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `type` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("type").toString())); - } - if ((jsonObj.get("appEnvironment") != null && !jsonObj.get("appEnvironment").isJsonNull()) - && !jsonObj.get("appEnvironment").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `appEnvironment` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("appEnvironment").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("modules") != null && !jsonObj.get("modules").isJsonNull() - && !jsonObj.get("modules").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `modules` to be an array in the JSON string but got `%s`", - jsonObj.get("modules").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetVersionResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetVersionResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetVersionResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetVersionResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetVersionResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetVersionResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetVersionResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetVersionResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetVersionResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetVersionResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWebhookResponse.java b/src/main/java/com/formkiq/client/model/GetWebhookResponse.java index f29465544..85cd96226 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhookResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhookResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * GetWebhookResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWebhookResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -101,7 +92,8 @@ public class GetWebhookResponse { @javax.annotation.Nullable private String ttl; - public GetWebhookResponse() {} + public GetWebhookResponse() { + } public GetWebhookResponse siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -110,7 +102,6 @@ public GetWebhookResponse siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -130,7 +121,6 @@ public GetWebhookResponse name(@javax.annotation.Nullable String name) { /** * Webhook name - * * @return name */ @javax.annotation.Nullable @@ -150,7 +140,6 @@ public GetWebhookResponse url(@javax.annotation.Nullable String url) { /** * Webhook url - * * @return url */ @javax.annotation.Nullable @@ -170,7 +159,6 @@ public GetWebhookResponse insertedDate(@javax.annotation.Nullable String inserte /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -190,7 +178,6 @@ public GetWebhookResponse webhookId(@javax.annotation.Nullable String webhookId) /** * Webhook Identifier - * * @return webhookId */ @javax.annotation.Nullable @@ -210,7 +197,6 @@ public GetWebhookResponse userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -230,7 +216,6 @@ public GetWebhookResponse enabled(@javax.annotation.Nullable String enabled) { /** * Is webhook enabled - * * @return enabled */ @javax.annotation.Nullable @@ -250,7 +235,6 @@ public GetWebhookResponse ttl(@javax.annotation.Nullable String ttl) { /** * Webhook time to live (expiry in seconds) - * * @return ttl */ @javax.annotation.Nullable @@ -273,14 +257,14 @@ public boolean equals(Object o) { return false; } GetWebhookResponse getWebhookResponse = (GetWebhookResponse) o; - return Objects.equals(this.siteId, getWebhookResponse.siteId) - && Objects.equals(this.name, getWebhookResponse.name) - && Objects.equals(this.url, getWebhookResponse.url) - && Objects.equals(this.insertedDate, getWebhookResponse.insertedDate) - && Objects.equals(this.webhookId, getWebhookResponse.webhookId) - && Objects.equals(this.userId, getWebhookResponse.userId) - && Objects.equals(this.enabled, getWebhookResponse.enabled) - && Objects.equals(this.ttl, getWebhookResponse.ttl); + return Objects.equals(this.siteId, getWebhookResponse.siteId) && + Objects.equals(this.name, getWebhookResponse.name) && + Objects.equals(this.url, getWebhookResponse.url) && + Objects.equals(this.insertedDate, getWebhookResponse.insertedDate) && + Objects.equals(this.webhookId, getWebhookResponse.webhookId) && + Objects.equals(this.userId, getWebhookResponse.userId) && + Objects.equals(this.enabled, getWebhookResponse.enabled) && + Objects.equals(this.ttl, getWebhookResponse.ttl); } @Override @@ -305,7 +289,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -320,8 +305,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "name", "url", "insertedDate", - "webhookId", "userId", "enabled", "ttl")); + openapiFields = new HashSet(Arrays.asList("siteId", "name", "url", "insertedDate", "webhookId", "userId", "enabled", "ttl")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -334,101 +318,72 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWebhookResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWebhookResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetWebhookResponse is not found in the empty JSON string", - GetWebhookResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetWebhookResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWebhookResponse is not found in the empty JSON string", GetWebhookResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWebhookResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetWebhookResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWebhookResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWebhookResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) && !jsonObj.get("webhookId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("webhookId").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("enabled") != null && !jsonObj.get("enabled").isJsonNull()) && !jsonObj.get("enabled").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `enabled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("enabled").toString())); + } + if ((jsonObj.get("ttl") != null && !jsonObj.get("ttl").isJsonNull()) && !jsonObj.get("ttl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ttl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ttl").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) - && !jsonObj.get("url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `url` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("url").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) - && !jsonObj.get("webhookId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("webhookId").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("enabled") != null && !jsonObj.get("enabled").isJsonNull()) - && !jsonObj.get("enabled").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `enabled` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("enabled").toString())); - } - if ((jsonObj.get("ttl") != null && !jsonObj.get("ttl").isJsonNull()) - && !jsonObj.get("ttl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `ttl` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("ttl").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWebhookResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWebhookResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetWebhookResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWebhookResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWebhookResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWebhookResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWebhookResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetWebhookResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWebhookResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWebhookResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java b/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java index e46183ac0..68b2ec03b 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetWebhookTagsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWebhookTagsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -79,7 +70,8 @@ public class GetWebhookTagsResponse { @javax.annotation.Nullable private List tags = new ArrayList<>(); - public GetWebhookTagsResponse() {} + public GetWebhookTagsResponse() { + } public GetWebhookTagsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -88,7 +80,6 @@ public GetWebhookTagsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -108,7 +99,6 @@ public GetWebhookTagsResponse previous(@javax.annotation.Nullable String previou /** * Previous page of results token - * * @return previous */ @javax.annotation.Nullable @@ -136,7 +126,6 @@ public GetWebhookTagsResponse addTagsItem(WebhookTag tagsItem) { /** * List of webhook tags - * * @return tags */ @javax.annotation.Nullable @@ -159,9 +148,9 @@ public boolean equals(Object o) { return false; } GetWebhookTagsResponse getWebhookTagsResponse = (GetWebhookTagsResponse) o; - return Objects.equals(this.next, getWebhookTagsResponse.next) - && Objects.equals(this.previous, getWebhookTagsResponse.previous) - && Objects.equals(this.tags, getWebhookTagsResponse.tags); + return Objects.equals(this.next, getWebhookTagsResponse.next) && + Objects.equals(this.previous, getWebhookTagsResponse.previous) && + Objects.equals(this.tags, getWebhookTagsResponse.tags); } @Override @@ -181,7 +170,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -209,81 +199,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWebhookTagsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWebhookTagsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetWebhookTagsResponse is not found in the empty JSON string", - GetWebhookTagsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetWebhookTagsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWebhookTagsResponse is not found in the empty JSON string", GetWebhookTagsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWebhookTagsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetWebhookTagsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWebhookTagsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWebhookTagsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) - && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("previous").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + WebhookTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - WebhookTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWebhookTagsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWebhookTagsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetWebhookTagsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWebhookTagsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWebhookTagsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWebhookTagsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWebhookTagsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetWebhookTagsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWebhookTagsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWebhookTagsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java b/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java index c2c833f38..1cb71b22e 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetWebhooksResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWebhooksResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetWebhooksResponse { @javax.annotation.Nullable private List webhooks = new ArrayList<>(); - public GetWebhooksResponse() {} + public GetWebhooksResponse() { + } public GetWebhooksResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetWebhooksResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetWebhooksResponse webhooks( - @javax.annotation.Nullable List webhooks) { + public GetWebhooksResponse webhooks(@javax.annotation.Nullable List webhooks) { this.webhooks = webhooks; return this; } @@ -112,7 +102,6 @@ public GetWebhooksResponse addWebhooksItem(GetWebhookResponse webhooksItem) { /** * List of webhooks - * * @return webhooks */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } GetWebhooksResponse getWebhooksResponse = (GetWebhooksResponse) o; - return Objects.equals(this.next, getWebhooksResponse.next) - && Objects.equals(this.webhooks, getWebhooksResponse.webhooks); + return Objects.equals(this.next, getWebhooksResponse.next) && + Objects.equals(this.webhooks, getWebhooksResponse.webhooks); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWebhooksResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWebhooksResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetWebhooksResponse is not found in the empty JSON string", - GetWebhooksResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetWebhooksResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWebhooksResponse is not found in the empty JSON string", GetWebhooksResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWebhooksResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetWebhooksResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWebhooksResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWebhooksResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("webhooks") != null && !jsonObj.get("webhooks").isJsonNull()) { - JsonArray jsonArraywebhooks = jsonObj.getAsJsonArray("webhooks"); - if (jsonArraywebhooks != null) { - // ensure the json data is an array - if (!jsonObj.get("webhooks").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `webhooks` to be an array in the JSON string but got `%s`", - jsonObj.get("webhooks").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("webhooks") != null && !jsonObj.get("webhooks").isJsonNull()) { + JsonArray jsonArraywebhooks = jsonObj.getAsJsonArray("webhooks"); + if (jsonArraywebhooks != null) { + // ensure the json data is an array + if (!jsonObj.get("webhooks").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webhooks` to be an array in the JSON string but got `%s`", jsonObj.get("webhooks").toString())); + } + + // validate the optional field `webhooks` (array) + for (int i = 0; i < jsonArraywebhooks.size(); i++) { + GetWebhookResponse.validateJsonElement(jsonArraywebhooks.get(i)); + }; } - - // validate the optional field `webhooks` (array) - for (int i = 0; i < jsonArraywebhooks.size(); i++) { - GetWebhookResponse.validateJsonElement(jsonArraywebhooks.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWebhooksResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWebhooksResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetWebhooksResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWebhooksResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWebhooksResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWebhooksResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWebhooksResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetWebhooksResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWebhooksResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWebhooksResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java index 33a872e57..a1ff968f9 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetWorkflowDocumentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetWorkflowDocumentsResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetWorkflowDocumentsResponse() {} + public GetWorkflowDocumentsResponse() { + } public GetWorkflowDocumentsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetWorkflowDocumentsResponse next(@javax.annotation.Nullable String next) /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetWorkflowDocumentsResponse documents( - @javax.annotation.Nullable List documents) { + public GetWorkflowDocumentsResponse documents(@javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -112,7 +102,6 @@ public GetWorkflowDocumentsResponse addDocumentsItem(Document documentsItem) { /** * List of workflow documents - * * @return documents */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } GetWorkflowDocumentsResponse getWorkflowDocumentsResponse = (GetWorkflowDocumentsResponse) o; - return Objects.equals(this.next, getWorkflowDocumentsResponse.next) - && Objects.equals(this.documents, getWorkflowDocumentsResponse.documents); + return Objects.equals(this.next, getWorkflowDocumentsResponse.next) && + Objects.equals(this.documents, getWorkflowDocumentsResponse.documents); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,76 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWorkflowDocumentsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWorkflowDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetWorkflowDocumentsResponse is not found in the empty JSON string", - GetWorkflowDocumentsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetWorkflowDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWorkflowDocumentsResponse is not found in the empty JSON string", GetWorkflowDocumentsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWorkflowDocumentsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetWorkflowDocumentsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWorkflowDocumentsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWorkflowDocumentsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + Document.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - Document.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWorkflowDocumentsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWorkflowDocumentsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowDocumentsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWorkflowDocumentsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWorkflowDocumentsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWorkflowDocumentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWorkflowDocumentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowDocumentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWorkflowDocumentsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWorkflowDocumentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java index 389398705..75c910f4e 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetWorkflowQueueDocumentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowQueueDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetWorkflowQueueDocumentsResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetWorkflowQueueDocumentsResponse() {} + public GetWorkflowQueueDocumentsResponse() { + } public GetWorkflowQueueDocumentsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetWorkflowQueueDocumentsResponse next(@javax.annotation.Nullable String /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetWorkflowQueueDocumentsResponse documents( - @javax.annotation.Nullable List documents) { + public GetWorkflowQueueDocumentsResponse documents(@javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -112,7 +102,6 @@ public GetWorkflowQueueDocumentsResponse addDocumentsItem(WorkflowDocument docum /** * List of search result documents - * * @return documents */ @javax.annotation.Nullable @@ -134,10 +123,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetWorkflowQueueDocumentsResponse getWorkflowQueueDocumentsResponse = - (GetWorkflowQueueDocumentsResponse) o; - return Objects.equals(this.next, getWorkflowQueueDocumentsResponse.next) - && Objects.equals(this.documents, getWorkflowQueueDocumentsResponse.documents); + GetWorkflowQueueDocumentsResponse getWorkflowQueueDocumentsResponse = (GetWorkflowQueueDocumentsResponse) o; + return Objects.equals(this.next, getWorkflowQueueDocumentsResponse.next) && + Objects.equals(this.documents, getWorkflowQueueDocumentsResponse.documents); } @Override @@ -156,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,82 +170,68 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * GetWorkflowQueueDocumentsResponse + * @throws IOException if the JSON Element is invalid with respect to GetWorkflowQueueDocumentsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWorkflowQueueDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required - // fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetWorkflowQueueDocumentsResponse is not found in the empty JSON string", - GetWorkflowQueueDocumentsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetWorkflowQueueDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWorkflowQueueDocumentsResponse is not found in the empty JSON string", GetWorkflowQueueDocumentsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWorkflowQueueDocumentsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetWorkflowQueueDocumentsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWorkflowQueueDocumentsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWorkflowQueueDocumentsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + WorkflowDocument.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - WorkflowDocument.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWorkflowQueueDocumentsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWorkflowQueueDocumentsResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowQueueDocumentsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWorkflowQueueDocumentsResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWorkflowQueueDocumentsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWorkflowQueueDocumentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWorkflowQueueDocumentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowQueueDocumentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWorkflowQueueDocumentsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWorkflowQueueDocumentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -265,8 +240,7 @@ public GetWorkflowQueueDocumentsResponse read(JsonReader in) throws IOException * * @param jsonString JSON string * @return An instance of GetWorkflowQueueDocumentsResponse - * @throws IOException if the JSON string is invalid with respect to - * GetWorkflowQueueDocumentsResponse + * @throws IOException if the JSON string is invalid with respect to GetWorkflowQueueDocumentsResponse */ public static GetWorkflowQueueDocumentsResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetWorkflowQueueDocumentsResponse.class); diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java index 86ca87974..0ad26cb42 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * GetWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowResponse { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -90,7 +81,8 @@ public class GetWorkflowResponse { @javax.annotation.Nullable private List steps = new ArrayList<>(); - public GetWorkflowResponse() {} + public GetWorkflowResponse() { + } public GetWorkflowResponse name(@javax.annotation.Nullable String name) { this.name = name; @@ -99,7 +91,6 @@ public GetWorkflowResponse name(@javax.annotation.Nullable String name) { /** * Workflow name - * * @return name */ @javax.annotation.Nullable @@ -119,7 +110,6 @@ public GetWorkflowResponse description(@javax.annotation.Nullable String descrip /** * Workflow description - * * @return description */ @javax.annotation.Nullable @@ -139,7 +129,6 @@ public GetWorkflowResponse inUse(@javax.annotation.Nullable Boolean inUse) { /** * Whether the Workflow is in use - * * @return inUse */ @javax.annotation.Nullable @@ -159,7 +148,6 @@ public GetWorkflowResponse status(@javax.annotation.Nullable WorkflowStatus stat /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -187,7 +175,6 @@ public GetWorkflowResponse addStepsItem(WorkflowStep stepsItem) { /** * Workflow steps - * * @return steps */ @javax.annotation.Nullable @@ -210,11 +197,11 @@ public boolean equals(Object o) { return false; } GetWorkflowResponse getWorkflowResponse = (GetWorkflowResponse) o; - return Objects.equals(this.name, getWorkflowResponse.name) - && Objects.equals(this.description, getWorkflowResponse.description) - && Objects.equals(this.inUse, getWorkflowResponse.inUse) - && Objects.equals(this.status, getWorkflowResponse.status) - && Objects.equals(this.steps, getWorkflowResponse.steps); + return Objects.equals(this.name, getWorkflowResponse.name) && + Objects.equals(this.description, getWorkflowResponse.description) && + Objects.equals(this.inUse, getWorkflowResponse.inUse) && + Objects.equals(this.status, getWorkflowResponse.status) && + Objects.equals(this.steps, getWorkflowResponse.steps); } @Override @@ -236,7 +223,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -251,8 +239,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("name", "description", "inUse", "status", "steps")); + openapiFields = new HashSet(Arrays.asList("name", "description", "inUse", "status", "steps")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -265,85 +252,72 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetWorkflowResponse is not found in the empty JSON string", - GetWorkflowResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWorkflowResponse is not found in the empty JSON string", GetWorkflowResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetWorkflowResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - WorkflowStatus.validateJsonElement(jsonObj.get("status")); - } - if (jsonObj.get("steps") != null && !jsonObj.get("steps").isJsonNull()) { - JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); - if (jsonArraysteps != null) { - // ensure the json data is an array - if (!jsonObj.get("steps").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `steps` to be an array in the JSON string but got `%s`", - jsonObj.get("steps").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + WorkflowStatus.validateJsonElement(jsonObj.get("status")); + } + if (jsonObj.get("steps") != null && !jsonObj.get("steps").isJsonNull()) { + JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); + if (jsonArraysteps != null) { + // ensure the json data is an array + if (!jsonObj.get("steps").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `steps` to be an array in the JSON string but got `%s`", jsonObj.get("steps").toString())); + } + + // validate the optional field `steps` (array) + for (int i = 0; i < jsonArraysteps.size(); i++) { + WorkflowStep.validateJsonElement(jsonArraysteps.get(i)); + }; } - - // validate the optional field `steps` (array) - for (int i = 0; i < jsonArraysteps.size(); i++) { - WorkflowStep.validateJsonElement(jsonArraysteps.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java index d6f3fbbe4..7ed14636c 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * GetWorkflowsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -74,7 +65,8 @@ public class GetWorkflowsResponse { @javax.annotation.Nullable private List workflows = new ArrayList<>(); - public GetWorkflowsResponse() {} + public GetWorkflowsResponse() { + } public GetWorkflowsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -83,7 +75,6 @@ public GetWorkflowsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetWorkflowsResponse workflows( - @javax.annotation.Nullable List workflows) { + public GetWorkflowsResponse workflows(@javax.annotation.Nullable List workflows) { this.workflows = workflows; return this; } @@ -112,7 +102,6 @@ public GetWorkflowsResponse addWorkflowsItem(WorkflowSummary workflowsItem) { /** * List of workflows - * * @return workflows */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } GetWorkflowsResponse getWorkflowsResponse = (GetWorkflowsResponse) o; - return Objects.equals(this.next, getWorkflowsResponse.next) - && Objects.equals(this.workflows, getWorkflowsResponse.workflows); + return Objects.equals(this.next, getWorkflowsResponse.next) && + Objects.equals(this.workflows, getWorkflowsResponse.workflows); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWorkflowsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWorkflowsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GetWorkflowsResponse is not found in the empty JSON string", - GetWorkflowsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GetWorkflowsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWorkflowsResponse is not found in the empty JSON string", GetWorkflowsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWorkflowsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GetWorkflowsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWorkflowsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWorkflowsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if (jsonObj.get("workflows") != null && !jsonObj.get("workflows").isJsonNull()) { - JsonArray jsonArrayworkflows = jsonObj.getAsJsonArray("workflows"); - if (jsonArrayworkflows != null) { - // ensure the json data is an array - if (!jsonObj.get("workflows").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflows` to be an array in the JSON string but got `%s`", - jsonObj.get("workflows").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if (jsonObj.get("workflows") != null && !jsonObj.get("workflows").isJsonNull()) { + JsonArray jsonArrayworkflows = jsonObj.getAsJsonArray("workflows"); + if (jsonArrayworkflows != null) { + // ensure the json data is an array + if (!jsonObj.get("workflows").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflows` to be an array in the JSON string but got `%s`", jsonObj.get("workflows").toString())); + } + + // validate the optional field `workflows` (array) + for (int i = 0; i < jsonArrayworkflows.size(); i++) { + WorkflowSummary.validateJsonElement(jsonArrayworkflows.get(i)); + }; } - - // validate the optional field `workflows` (array) - for (int i = 0; i < jsonArrayworkflows.size(); i++) { - WorkflowSummary.validateJsonElement(jsonArrayworkflows.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWorkflowsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWorkflowsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWorkflowsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWorkflowsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWorkflowsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWorkflowsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWorkflowsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWorkflowsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GoogleConfig.java b/src/main/java/com/formkiq/client/model/GoogleConfig.java index 4c620740a..3368f2919 100644 --- a/src/main/java/com/formkiq/client/model/GoogleConfig.java +++ b/src/main/java/com/formkiq/client/model/GoogleConfig.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,33 +50,28 @@ /** * GoogleConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GoogleConfig { - public static final String SERIALIZED_NAME_WORKLOAD_IDENTITY_AUDIENCE = - "workloadIdentityAudience"; + public static final String SERIALIZED_NAME_WORKLOAD_IDENTITY_AUDIENCE = "workloadIdentityAudience"; @SerializedName(SERIALIZED_NAME_WORKLOAD_IDENTITY_AUDIENCE) @javax.annotation.Nullable private String workloadIdentityAudience; - public static final String SERIALIZED_NAME_WORKLOAD_IDENTITY_SERVICE_ACCOUNT = - "workloadIdentityServiceAccount"; + public static final String SERIALIZED_NAME_WORKLOAD_IDENTITY_SERVICE_ACCOUNT = "workloadIdentityServiceAccount"; @SerializedName(SERIALIZED_NAME_WORKLOAD_IDENTITY_SERVICE_ACCOUNT) @javax.annotation.Nullable private String workloadIdentityServiceAccount; - public GoogleConfig() {} + public GoogleConfig() { + } - public GoogleConfig workloadIdentityAudience( - @javax.annotation.Nullable String workloadIdentityAudience) { + public GoogleConfig workloadIdentityAudience(@javax.annotation.Nullable String workloadIdentityAudience) { this.workloadIdentityAudience = workloadIdentityAudience; return this; } /** * Workload Identity Audience - * * @return workloadIdentityAudience */ @javax.annotation.Nullable @@ -91,21 +79,18 @@ public String getWorkloadIdentityAudience() { return workloadIdentityAudience; } - public void setWorkloadIdentityAudience( - @javax.annotation.Nullable String workloadIdentityAudience) { + public void setWorkloadIdentityAudience(@javax.annotation.Nullable String workloadIdentityAudience) { this.workloadIdentityAudience = workloadIdentityAudience; } - public GoogleConfig workloadIdentityServiceAccount( - @javax.annotation.Nullable String workloadIdentityServiceAccount) { + public GoogleConfig workloadIdentityServiceAccount(@javax.annotation.Nullable String workloadIdentityServiceAccount) { this.workloadIdentityServiceAccount = workloadIdentityServiceAccount; return this; } /** * Workload Service Account - * * @return workloadIdentityServiceAccount */ @javax.annotation.Nullable @@ -113,8 +98,7 @@ public String getWorkloadIdentityServiceAccount() { return workloadIdentityServiceAccount; } - public void setWorkloadIdentityServiceAccount( - @javax.annotation.Nullable String workloadIdentityServiceAccount) { + public void setWorkloadIdentityServiceAccount(@javax.annotation.Nullable String workloadIdentityServiceAccount) { this.workloadIdentityServiceAccount = workloadIdentityServiceAccount; } @@ -129,9 +113,8 @@ public boolean equals(Object o) { return false; } GoogleConfig googleConfig = (GoogleConfig) o; - return Objects.equals(this.workloadIdentityAudience, googleConfig.workloadIdentityAudience) - && Objects.equals(this.workloadIdentityServiceAccount, - googleConfig.workloadIdentityServiceAccount); + return Objects.equals(this.workloadIdentityAudience, googleConfig.workloadIdentityAudience) && + Objects.equals(this.workloadIdentityServiceAccount, googleConfig.workloadIdentityServiceAccount); } @Override @@ -143,16 +126,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GoogleConfig {\n"); - sb.append(" workloadIdentityAudience: ").append(toIndentedString(workloadIdentityAudience)) - .append("\n"); - sb.append(" workloadIdentityServiceAccount: ") - .append(toIndentedString(workloadIdentityServiceAccount)).append("\n"); + sb.append(" workloadIdentityAudience: ").append(toIndentedString(workloadIdentityAudience)).append("\n"); + sb.append(" workloadIdentityServiceAccount: ").append(toIndentedString(workloadIdentityServiceAccount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -167,8 +149,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("workloadIdentityAudience", "workloadIdentityServiceAccount")); + openapiFields = new HashSet(Arrays.asList("workloadIdentityAudience", "workloadIdentityServiceAccount")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -181,67 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GoogleConfig */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GoogleConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in GoogleConfig is not found in the empty JSON string", - GoogleConfig.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!GoogleConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GoogleConfig is not found in the empty JSON string", GoogleConfig.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GoogleConfig.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `GoogleConfig` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GoogleConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GoogleConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("workloadIdentityAudience") != null && !jsonObj.get("workloadIdentityAudience").isJsonNull()) && !jsonObj.get("workloadIdentityAudience").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workloadIdentityAudience` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workloadIdentityAudience").toString())); + } + if ((jsonObj.get("workloadIdentityServiceAccount") != null && !jsonObj.get("workloadIdentityServiceAccount").isJsonNull()) && !jsonObj.get("workloadIdentityServiceAccount").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workloadIdentityServiceAccount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workloadIdentityServiceAccount").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("workloadIdentityAudience") != null - && !jsonObj.get("workloadIdentityAudience").isJsonNull()) - && !jsonObj.get("workloadIdentityAudience").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workloadIdentityAudience` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workloadIdentityAudience").toString())); - } - if ((jsonObj.get("workloadIdentityServiceAccount") != null - && !jsonObj.get("workloadIdentityServiceAccount").isJsonNull()) - && !jsonObj.get("workloadIdentityServiceAccount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workloadIdentityServiceAccount` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workloadIdentityServiceAccount").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GoogleConfig.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GoogleConfig' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(GoogleConfig.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GoogleConfig value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GoogleConfig read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GoogleConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GoogleConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GoogleConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GoogleConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GoogleConfig read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GoogleExportOutputType.java b/src/main/java/com/formkiq/client/model/GoogleExportOutputType.java index 1ed85fafb..38f653627 100644 --- a/src/main/java/com/formkiq/client/model/GoogleExportOutputType.java +++ b/src/main/java/com/formkiq/client/model/GoogleExportOutputType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,7 +30,7 @@ */ @JsonAdapter(GoogleExportOutputType.Adapter.class) public enum GoogleExportOutputType { - + PDF("PDF"); private String value; @@ -66,8 +59,7 @@ public static GoogleExportOutputType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final GoogleExportOutputType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final GoogleExportOutputType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/Group.java b/src/main/java/com/formkiq/client/model/Group.java index 2641b49b4..f462c49d2 100644 --- a/src/main/java/com/formkiq/client/model/Group.java +++ b/src/main/java/com/formkiq/client/model/Group.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * Group */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Group { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -81,7 +72,8 @@ public class Group { @javax.annotation.Nullable private String lastModifiedDate; - public Group() {} + public Group() { + } public Group name(@javax.annotation.Nullable String name) { this.name = name; @@ -90,7 +82,6 @@ public Group name(@javax.annotation.Nullable String name) { /** * Name of group - * * @return name */ @javax.annotation.Nullable @@ -110,7 +101,6 @@ public Group description(@javax.annotation.Nullable String description) { /** * Description of group - * * @return description */ @javax.annotation.Nullable @@ -130,7 +120,6 @@ public Group insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted timestamp of group - * * @return insertedDate */ @javax.annotation.Nullable @@ -150,7 +139,6 @@ public Group lastModifiedDate(@javax.annotation.Nullable String lastModifiedDate /** * Last nodified timestamp of group - * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -173,10 +161,10 @@ public boolean equals(Object o) { return false; } Group group = (Group) o; - return Objects.equals(this.name, group.name) - && Objects.equals(this.description, group.description) - && Objects.equals(this.insertedDate, group.insertedDate) - && Objects.equals(this.lastModifiedDate, group.lastModifiedDate); + return Objects.equals(this.name, group.name) && + Objects.equals(this.description, group.description) && + Objects.equals(this.insertedDate, group.insertedDate) && + Objects.equals(this.lastModifiedDate, group.lastModifiedDate); } @Override @@ -197,7 +185,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -212,8 +201,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("name", "description", "insertedDate", "lastModifiedDate")); + openapiFields = new HashSet(Arrays.asList("name", "description", "insertedDate", "lastModifiedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -226,76 +214,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Group */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Group.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Group is not found in the empty JSON string", - Group.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Group.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Group is not found in the empty JSON string", Group.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Group.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Group` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Group.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Group` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) - && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("lastModifiedDate").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Group.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Group' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Group.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Group value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Group read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Group.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Group' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Group.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Group value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Group read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java b/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java index 1d76498e8..d79693069 100644 --- a/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java +++ b/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * IndexFolderMoveRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexFolderMoveRequest { public static final String SERIALIZED_NAME_SOURCE = "source"; @SerializedName(SERIALIZED_NAME_SOURCE) @@ -71,7 +62,8 @@ public class IndexFolderMoveRequest { @javax.annotation.Nullable private String target; - public IndexFolderMoveRequest() {} + public IndexFolderMoveRequest() { + } public IndexFolderMoveRequest source(@javax.annotation.Nullable String source) { this.source = source; @@ -80,7 +72,6 @@ public IndexFolderMoveRequest source(@javax.annotation.Nullable String source) { /** * Source path - * * @return source */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public IndexFolderMoveRequest target(@javax.annotation.Nullable String target) { /** * Target path - * * @return target */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } IndexFolderMoveRequest indexFolderMoveRequest = (IndexFolderMoveRequest) o; - return Objects.equals(this.source, indexFolderMoveRequest.source) - && Objects.equals(this.target, indexFolderMoveRequest.target); + return Objects.equals(this.source, indexFolderMoveRequest.source) && + Objects.equals(this.target, indexFolderMoveRequest.target); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to IndexFolderMoveRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IndexFolderMoveRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in IndexFolderMoveRequest is not found in the empty JSON string", - IndexFolderMoveRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!IndexFolderMoveRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IndexFolderMoveRequest is not found in the empty JSON string", IndexFolderMoveRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IndexFolderMoveRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `IndexFolderMoveRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!IndexFolderMoveRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IndexFolderMoveRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) && !jsonObj.get("source").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); + } + if ((jsonObj.get("target") != null && !jsonObj.get("target").isJsonNull()) && !jsonObj.get("target").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `target` to be a primitive type in the JSON string but got `%s`", jsonObj.get("target").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) - && !jsonObj.get("source").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `source` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("source").toString())); - } - if ((jsonObj.get("target") != null && !jsonObj.get("target").isJsonNull()) - && !jsonObj.get("target").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `target` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("target").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!IndexFolderMoveRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IndexFolderMoveRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(IndexFolderMoveRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IndexFolderMoveRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IndexFolderMoveRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!IndexFolderMoveRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'IndexFolderMoveRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(IndexFolderMoveRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, IndexFolderMoveRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public IndexFolderMoveRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java b/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java index aa3cc5a5a..05bfe856c 100644 --- a/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java +++ b/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * IndexFolderMoveResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexFolderMoveResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public IndexFolderMoveResponse() {} + public IndexFolderMoveResponse() { + } public IndexFolderMoveResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public IndexFolderMoveResponse message(@javax.annotation.Nullable String message /** * Folder move message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to IndexFolderMoveResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IndexFolderMoveResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in IndexFolderMoveResponse is not found in the empty JSON string", - IndexFolderMoveResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!IndexFolderMoveResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IndexFolderMoveResponse is not found in the empty JSON string", IndexFolderMoveResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IndexFolderMoveResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `IndexFolderMoveResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!IndexFolderMoveResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IndexFolderMoveResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!IndexFolderMoveResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IndexFolderMoveResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(IndexFolderMoveResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IndexFolderMoveResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IndexFolderMoveResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!IndexFolderMoveResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'IndexFolderMoveResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(IndexFolderMoveResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, IndexFolderMoveResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public IndexFolderMoveResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/IndexSearch.java b/src/main/java/com/formkiq/client/model/IndexSearch.java index c54ae9b2e..8629e0d4e 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearch.java +++ b/src/main/java/com/formkiq/client/model/IndexSearch.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * IndexSearch */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexSearch { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @javax.annotation.Nullable private String value; - public IndexSearch() {} + public IndexSearch() { + } public IndexSearch value(@javax.annotation.Nullable String value) { this.value = value; @@ -75,7 +67,6 @@ public IndexSearch value(@javax.annotation.Nullable String value) { /** * value of index - * * @return value */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to IndexSearch */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IndexSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in IndexSearch is not found in the empty JSON string", - IndexSearch.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!IndexSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IndexSearch is not found in the empty JSON string", IndexSearch.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IndexSearch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `IndexSearch` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!IndexSearch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IndexSearch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!IndexSearch.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IndexSearch' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(IndexSearch.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IndexSearch value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IndexSearch read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!IndexSearch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'IndexSearch' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(IndexSearch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, IndexSearch value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public IndexSearch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/IndexSearchRequest.java b/src/main/java/com/formkiq/client/model/IndexSearchRequest.java index 9dad70a9b..18993781f 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearchRequest.java +++ b/src/main/java/com/formkiq/client/model/IndexSearchRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * IndexSearchRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexSearchRequest { public static final String SERIALIZED_NAME_INDEX_TYPE = "indexType"; @SerializedName(SERIALIZED_NAME_INDEX_TYPE) @javax.annotation.Nullable private String indexType; - public IndexSearchRequest() {} + public IndexSearchRequest() { + } public IndexSearchRequest indexType(@javax.annotation.Nullable String indexType) { this.indexType = indexType; @@ -75,7 +67,6 @@ public IndexSearchRequest indexType(@javax.annotation.Nullable String indexType) /** * The name of the index to search - * * @return indexType */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to IndexSearchRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IndexSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in IndexSearchRequest is not found in the empty JSON string", - IndexSearchRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!IndexSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IndexSearchRequest is not found in the empty JSON string", IndexSearchRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IndexSearchRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `IndexSearchRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!IndexSearchRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IndexSearchRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) && !jsonObj.get("indexType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexType").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) - && !jsonObj.get("indexType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `indexType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("indexType").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!IndexSearchRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IndexSearchRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(IndexSearchRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IndexSearchRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IndexSearchRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!IndexSearchRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'IndexSearchRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(IndexSearchRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, IndexSearchRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public IndexSearchRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/IndexSearchResponse.java b/src/main/java/com/formkiq/client/model/IndexSearchResponse.java index 9ce8f7269..b008a99a4 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearchResponse.java +++ b/src/main/java/com/formkiq/client/model/IndexSearchResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * IndexSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexSearchResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -79,7 +70,8 @@ public class IndexSearchResponse { @javax.annotation.Nullable private List values = new ArrayList<>(); - public IndexSearchResponse() {} + public IndexSearchResponse() { + } public IndexSearchResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -88,7 +80,6 @@ public IndexSearchResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token - * * @return next */ @javax.annotation.Nullable @@ -108,7 +99,6 @@ public IndexSearchResponse previous(@javax.annotation.Nullable String previous) /** * Previous page of results token - * * @return previous */ @javax.annotation.Nullable @@ -136,7 +126,6 @@ public IndexSearchResponse addValuesItem(IndexSearch valuesItem) { /** * List of search results - * * @return values */ @javax.annotation.Nullable @@ -159,9 +148,9 @@ public boolean equals(Object o) { return false; } IndexSearchResponse indexSearchResponse = (IndexSearchResponse) o; - return Objects.equals(this.next, indexSearchResponse.next) - && Objects.equals(this.previous, indexSearchResponse.previous) - && Objects.equals(this.values, indexSearchResponse.values); + return Objects.equals(this.next, indexSearchResponse.next) && + Objects.equals(this.previous, indexSearchResponse.previous) && + Objects.equals(this.values, indexSearchResponse.values); } @Override @@ -181,7 +170,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -209,81 +199,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to IndexSearchResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IndexSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in IndexSearchResponse is not found in the empty JSON string", - IndexSearchResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!IndexSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IndexSearchResponse is not found in the empty JSON string", IndexSearchResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IndexSearchResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `IndexSearchResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!IndexSearchResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IndexSearchResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) - && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `next` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) - && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("previous").toString())); - } - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull()) { - JsonArray jsonArrayvalues = jsonObj.getAsJsonArray("values"); - if (jsonArrayvalues != null) { - // ensure the json data is an array - if (!jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `values` to be an array in the JSON string but got `%s`", - jsonObj.get("values").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); + } + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull()) { + JsonArray jsonArrayvalues = jsonObj.getAsJsonArray("values"); + if (jsonArrayvalues != null) { + // ensure the json data is an array + if (!jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + } + + // validate the optional field `values` (array) + for (int i = 0; i < jsonArrayvalues.size(); i++) { + IndexSearch.validateJsonElement(jsonArrayvalues.get(i)); + }; } - - // validate the optional field `values` (array) - for (int i = 0; i < jsonArrayvalues.size(); i++) { - IndexSearch.validateJsonElement(jsonArrayvalues.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!IndexSearchResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IndexSearchResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(IndexSearchResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IndexSearchResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IndexSearchResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!IndexSearchResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'IndexSearchResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(IndexSearchResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, IndexSearchResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public IndexSearchResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/LocaleInfo.java b/src/main/java/com/formkiq/client/model/LocaleInfo.java index 8347e373d..2191dc9b8 100644 --- a/src/main/java/com/formkiq/client/model/LocaleInfo.java +++ b/src/main/java/com/formkiq/client/model/LocaleInfo.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * LocaleInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class LocaleInfo { public static final String SERIALIZED_NAME_LOCALE = "locale"; @SerializedName(SERIALIZED_NAME_LOCALE) @javax.annotation.Nullable private String locale; - public LocaleInfo() {} + public LocaleInfo() { + } public LocaleInfo locale(@javax.annotation.Nullable String locale) { this.locale = locale; @@ -75,7 +67,6 @@ public LocaleInfo locale(@javax.annotation.Nullable String locale) { /** * Name of Locale - * * @return locale */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to LocaleInfo */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!LocaleInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in LocaleInfo is not found in the empty JSON string", - LocaleInfo.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!LocaleInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in LocaleInfo is not found in the empty JSON string", LocaleInfo.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!LocaleInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `LocaleInfo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!LocaleInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `LocaleInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) && !jsonObj.get("locale").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locale").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) - && !jsonObj.get("locale").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("locale").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!LocaleInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LocaleInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(LocaleInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, LocaleInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public LocaleInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!LocaleInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LocaleInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LocaleInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LocaleInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public LocaleInfo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/LocaleResourceType.java b/src/main/java/com/formkiq/client/model/LocaleResourceType.java index 24f3c75c3..4ecb6712a 100644 --- a/src/main/java/com/formkiq/client/model/LocaleResourceType.java +++ b/src/main/java/com/formkiq/client/model/LocaleResourceType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(LocaleResourceType.Adapter.class) public enum LocaleResourceType { - + INTERFACE("INTERFACE"), - + SCHEMA("SCHEMA"), - + CLASSIFICATION("CLASSIFICATION"); private String value; @@ -70,8 +63,7 @@ public static LocaleResourceType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final LocaleResourceType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final LocaleResourceType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/MalwareEngine.java b/src/main/java/com/formkiq/client/model/MalwareEngine.java index 708c3dc7a..8c473aca5 100644 --- a/src/main/java/com/formkiq/client/model/MalwareEngine.java +++ b/src/main/java/com/formkiq/client/model/MalwareEngine.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,7 +30,7 @@ */ @JsonAdapter(MalwareEngine.Adapter.class) public enum MalwareEngine { - + CLAM_AV("CLAM_AV"); private String value; @@ -66,8 +59,7 @@ public static MalwareEngine fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final MalwareEngine enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final MalwareEngine enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/MalwareScanResult.java b/src/main/java/com/formkiq/client/model/MalwareScanResult.java index 4cb89109a..9eb7f5595 100644 --- a/src/main/java/com/formkiq/client/model/MalwareScanResult.java +++ b/src/main/java/com/formkiq/client/model/MalwareScanResult.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * MalwareScanResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class MalwareScanResult { public static final String SERIALIZED_NAME_SCAN_STATUS = "scanStatus"; @SerializedName(SERIALIZED_NAME_SCAN_STATUS) @@ -88,7 +79,8 @@ public class MalwareScanResult { @javax.annotation.Nullable private String scannedDate; - public MalwareScanResult() {} + public MalwareScanResult() { + } public MalwareScanResult scanStatus(@javax.annotation.Nullable MalwareScanStatus scanStatus) { this.scanStatus = scanStatus; @@ -97,7 +89,6 @@ public MalwareScanResult scanStatus(@javax.annotation.Nullable MalwareScanStatus /** * Get scanStatus - * * @return scanStatus */ @javax.annotation.Nullable @@ -117,7 +108,6 @@ public MalwareScanResult scanEngine(@javax.annotation.Nullable MalwareEngine sca /** * Get scanEngine - * * @return scanEngine */ @javax.annotation.Nullable @@ -137,7 +127,6 @@ public MalwareScanResult s3version(@javax.annotation.Nullable String s3version) /** * Document storage version - * * @return s3version */ @javax.annotation.Nullable @@ -157,7 +146,6 @@ public MalwareScanResult scanMessage(@javax.annotation.Nullable String scanMessa /** * Document Malware scan message - * * @return scanMessage */ @javax.annotation.Nullable @@ -177,7 +165,6 @@ public MalwareScanResult scannedDate(@javax.annotation.Nullable String scannedDa /** * Scanned Timestamp - * * @return scannedDate */ @javax.annotation.Nullable @@ -200,11 +187,11 @@ public boolean equals(Object o) { return false; } MalwareScanResult malwareScanResult = (MalwareScanResult) o; - return Objects.equals(this.scanStatus, malwareScanResult.scanStatus) - && Objects.equals(this.scanEngine, malwareScanResult.scanEngine) - && Objects.equals(this.s3version, malwareScanResult.s3version) - && Objects.equals(this.scanMessage, malwareScanResult.scanMessage) - && Objects.equals(this.scannedDate, malwareScanResult.scannedDate); + return Objects.equals(this.scanStatus, malwareScanResult.scanStatus) && + Objects.equals(this.scanEngine, malwareScanResult.scanEngine) && + Objects.equals(this.s3version, malwareScanResult.s3version) && + Objects.equals(this.scanMessage, malwareScanResult.scanMessage) && + Objects.equals(this.scannedDate, malwareScanResult.scannedDate); } @Override @@ -226,7 +213,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -241,8 +229,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("scanStatus", "scanEngine", "s3version", "scanMessage", "scannedDate")); + openapiFields = new HashSet(Arrays.asList("scanStatus", "scanEngine", "s3version", "scanMessage", "scannedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -255,79 +242,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to MalwareScanResult */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MalwareScanResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in MalwareScanResult is not found in the empty JSON string", - MalwareScanResult.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!MalwareScanResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MalwareScanResult is not found in the empty JSON string", MalwareScanResult.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MalwareScanResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `MalwareScanResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MalwareScanResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `MalwareScanResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `scanStatus` + if (jsonObj.get("scanStatus") != null && !jsonObj.get("scanStatus").isJsonNull()) { + MalwareScanStatus.validateJsonElement(jsonObj.get("scanStatus")); + } + // validate the optional field `scanEngine` + if (jsonObj.get("scanEngine") != null && !jsonObj.get("scanEngine").isJsonNull()) { + MalwareEngine.validateJsonElement(jsonObj.get("scanEngine")); + } + if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) && !jsonObj.get("s3version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("s3version").toString())); + } + if ((jsonObj.get("scanMessage") != null && !jsonObj.get("scanMessage").isJsonNull()) && !jsonObj.get("scanMessage").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scanMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scanMessage").toString())); + } + if ((jsonObj.get("scannedDate") != null && !jsonObj.get("scannedDate").isJsonNull()) && !jsonObj.get("scannedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scannedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scannedDate").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `scanStatus` - if (jsonObj.get("scanStatus") != null && !jsonObj.get("scanStatus").isJsonNull()) { - MalwareScanStatus.validateJsonElement(jsonObj.get("scanStatus")); - } - // validate the optional field `scanEngine` - if (jsonObj.get("scanEngine") != null && !jsonObj.get("scanEngine").isJsonNull()) { - MalwareEngine.validateJsonElement(jsonObj.get("scanEngine")); - } - if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) - && !jsonObj.get("s3version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("s3version").toString())); - } - if ((jsonObj.get("scanMessage") != null && !jsonObj.get("scanMessage").isJsonNull()) - && !jsonObj.get("scanMessage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `scanMessage` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("scanMessage").toString())); - } - if ((jsonObj.get("scannedDate") != null && !jsonObj.get("scannedDate").isJsonNull()) - && !jsonObj.get("scannedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `scannedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("scannedDate").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!MalwareScanResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MalwareScanResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(MalwareScanResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MalwareScanResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public MalwareScanResult read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!MalwareScanResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MalwareScanResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MalwareScanResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MalwareScanResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public MalwareScanResult read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/MalwareScanStatus.java b/src/main/java/com/formkiq/client/model/MalwareScanStatus.java index ce72c35d0..b883bb211 100644 --- a/src/main/java/com/formkiq/client/model/MalwareScanStatus.java +++ b/src/main/java/com/formkiq/client/model/MalwareScanStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(MalwareScanStatus.Adapter.class) public enum MalwareScanStatus { - + MALICIOUS("MALICIOUS"), - + ERROR("ERROR"), - + CLEAN("CLEAN"); private String value; @@ -70,8 +63,7 @@ public static MalwareScanStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final MalwareScanStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final MalwareScanStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/Mapping.java b/src/main/java/com/formkiq/client/model/Mapping.java index de1f5b6f4..46036de1d 100644 --- a/src/main/java/com/formkiq/client/model/Mapping.java +++ b/src/main/java/com/formkiq/client/model/Mapping.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * Mapping */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Mapping { public static final String SERIALIZED_NAME_MAPPING_ID = "mappingId"; @SerializedName(SERIALIZED_NAME_MAPPING_ID) @@ -84,7 +75,8 @@ public class Mapping { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public Mapping() {} + public Mapping() { + } public Mapping mappingId(@javax.annotation.Nullable String mappingId) { this.mappingId = mappingId; @@ -93,7 +85,6 @@ public Mapping mappingId(@javax.annotation.Nullable String mappingId) { /** * Mapping Identifier - * * @return mappingId */ @javax.annotation.Nullable @@ -113,7 +104,6 @@ public Mapping name(@javax.annotation.Nullable String name) { /** * Name of Mapping - * * @return name */ @javax.annotation.Nullable @@ -133,7 +123,6 @@ public Mapping description(@javax.annotation.Nullable String description) { /** * Description of Mapping - * * @return description */ @javax.annotation.Nullable @@ -161,7 +150,6 @@ public Mapping addAttributesItem(MappingAttribute attributesItem) { /** * List of attributes - * * @return attributes */ @javax.annotation.Nullable @@ -184,10 +172,10 @@ public boolean equals(Object o) { return false; } Mapping mapping = (Mapping) o; - return Objects.equals(this.mappingId, mapping.mappingId) - && Objects.equals(this.name, mapping.name) - && Objects.equals(this.description, mapping.description) - && Objects.equals(this.attributes, mapping.attributes); + return Objects.equals(this.mappingId, mapping.mappingId) && + Objects.equals(this.name, mapping.name) && + Objects.equals(this.description, mapping.description) && + Objects.equals(this.attributes, mapping.attributes); } @Override @@ -208,7 +196,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -223,8 +212,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("mappingId", "name", "description", "attributes")); + openapiFields = new HashSet(Arrays.asList("mappingId", "name", "description", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -237,87 +225,71 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Mapping */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Mapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Mapping is not found in the empty JSON string", - Mapping.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Mapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Mapping is not found in the empty JSON string", Mapping.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Mapping.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Mapping` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Mapping.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Mapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) - && !jsonObj.get("mappingId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("mappingId").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) && !jsonObj.get("mappingId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mappingId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + MappingAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - MappingAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Mapping.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Mapping' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Mapping.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Mapping value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Mapping read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Mapping.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Mapping' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Mapping.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Mapping value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Mapping read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/MappingAttribute.java b/src/main/java/com/formkiq/client/model/MappingAttribute.java index 59d354c16..9621df78b 100644 --- a/src/main/java/com/formkiq/client/model/MappingAttribute.java +++ b/src/main/java/com/formkiq/client/model/MappingAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * MappingAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class MappingAttribute { public static final String SERIALIZED_NAME_ATTRIBUTE_KEY = "attributeKey"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_KEY) @@ -106,7 +97,8 @@ public class MappingAttribute { @javax.annotation.Nullable private String validationRegex; - public MappingAttribute() {} + public MappingAttribute() { + } public MappingAttribute attributeKey(@javax.annotation.Nullable String attributeKey) { this.attributeKey = attributeKey; @@ -115,7 +107,6 @@ public MappingAttribute attributeKey(@javax.annotation.Nullable String attribute /** * Attribute Key - * * @return attributeKey */ @javax.annotation.Nullable @@ -128,15 +119,13 @@ public void setAttributeKey(@javax.annotation.Nullable String attributeKey) { } - public MappingAttribute sourceType( - @javax.annotation.Nullable MappingAttributeSourceType sourceType) { + public MappingAttribute sourceType(@javax.annotation.Nullable MappingAttributeSourceType sourceType) { this.sourceType = sourceType; return this; } /** * Get sourceType - * * @return sourceType */ @javax.annotation.Nullable @@ -156,7 +145,6 @@ public MappingAttribute defaultValue(@javax.annotation.Nullable String defaultVa /** * Default value - * * @return defaultValue */ @javax.annotation.Nullable @@ -184,7 +172,6 @@ public MappingAttribute addDefaultValuesItem(String defaultValuesItem) { /** * Default values - * * @return defaultValues */ @javax.annotation.Nullable @@ -212,7 +199,6 @@ public MappingAttribute addLabelTextsItem(String labelTextsItem) { /** * Get labelTexts - * * @return labelTexts */ @javax.annotation.Nullable @@ -225,15 +211,13 @@ public void setLabelTexts(@javax.annotation.Nullable List labelTexts) { } - public MappingAttribute labelMatchingType( - @javax.annotation.Nullable MappingAttributeLabelMatchingType labelMatchingType) { + public MappingAttribute labelMatchingType(@javax.annotation.Nullable MappingAttributeLabelMatchingType labelMatchingType) { this.labelMatchingType = labelMatchingType; return this; } /** * Get labelMatchingType - * * @return labelMatchingType */ @javax.annotation.Nullable @@ -241,21 +225,18 @@ public MappingAttributeLabelMatchingType getLabelMatchingType() { return labelMatchingType; } - public void setLabelMatchingType( - @javax.annotation.Nullable MappingAttributeLabelMatchingType labelMatchingType) { + public void setLabelMatchingType(@javax.annotation.Nullable MappingAttributeLabelMatchingType labelMatchingType) { this.labelMatchingType = labelMatchingType; } - public MappingAttribute metadataField( - @javax.annotation.Nullable MappingAttributeMetadataField metadataField) { + public MappingAttribute metadataField(@javax.annotation.Nullable MappingAttributeMetadataField metadataField) { this.metadataField = metadataField; return this; } /** * Get metadataField - * * @return metadataField */ @javax.annotation.Nullable @@ -263,8 +244,7 @@ public MappingAttributeMetadataField getMetadataField() { return metadataField; } - public void setMetadataField( - @javax.annotation.Nullable MappingAttributeMetadataField metadataField) { + public void setMetadataField(@javax.annotation.Nullable MappingAttributeMetadataField metadataField) { this.metadataField = metadataField; } @@ -276,7 +256,6 @@ public MappingAttribute validationRegex(@javax.annotation.Nullable String valida /** * Attribute Value Regex Validation - * * @return validationRegex */ @javax.annotation.Nullable @@ -299,20 +278,19 @@ public boolean equals(Object o) { return false; } MappingAttribute mappingAttribute = (MappingAttribute) o; - return Objects.equals(this.attributeKey, mappingAttribute.attributeKey) - && Objects.equals(this.sourceType, mappingAttribute.sourceType) - && Objects.equals(this.defaultValue, mappingAttribute.defaultValue) - && Objects.equals(this.defaultValues, mappingAttribute.defaultValues) - && Objects.equals(this.labelTexts, mappingAttribute.labelTexts) - && Objects.equals(this.labelMatchingType, mappingAttribute.labelMatchingType) - && Objects.equals(this.metadataField, mappingAttribute.metadataField) - && Objects.equals(this.validationRegex, mappingAttribute.validationRegex); + return Objects.equals(this.attributeKey, mappingAttribute.attributeKey) && + Objects.equals(this.sourceType, mappingAttribute.sourceType) && + Objects.equals(this.defaultValue, mappingAttribute.defaultValue) && + Objects.equals(this.defaultValues, mappingAttribute.defaultValues) && + Objects.equals(this.labelTexts, mappingAttribute.labelTexts) && + Objects.equals(this.labelMatchingType, mappingAttribute.labelMatchingType) && + Objects.equals(this.metadataField, mappingAttribute.metadataField) && + Objects.equals(this.validationRegex, mappingAttribute.validationRegex); } @Override public int hashCode() { - return Objects.hash(attributeKey, sourceType, defaultValue, defaultValues, labelTexts, - labelMatchingType, metadataField, validationRegex); + return Objects.hash(attributeKey, sourceType, defaultValue, defaultValues, labelTexts, labelMatchingType, metadataField, validationRegex); } @Override @@ -332,7 +310,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -347,8 +326,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("attributeKey", "sourceType", "defaultValue", - "defaultValues", "labelTexts", "labelMatchingType", "metadataField", "validationRegex")); + openapiFields = new HashSet(Arrays.asList("attributeKey", "sourceType", "defaultValue", "defaultValues", "labelTexts", "labelMatchingType", "metadataField", "validationRegex")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -361,98 +339,77 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to MappingAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MappingAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in MappingAttribute is not found in the empty JSON string", - MappingAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!MappingAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MappingAttribute is not found in the empty JSON string", MappingAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MappingAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `MappingAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MappingAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `MappingAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); + } + // validate the optional field `sourceType` + if (jsonObj.get("sourceType") != null && !jsonObj.get("sourceType").isJsonNull()) { + MappingAttributeSourceType.validateJsonElement(jsonObj.get("sourceType")); + } + if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) && !jsonObj.get("defaultValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() && !jsonObj.get("defaultValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", jsonObj.get("defaultValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("labelTexts") != null && !jsonObj.get("labelTexts").isJsonNull() && !jsonObj.get("labelTexts").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `labelTexts` to be an array in the JSON string but got `%s`", jsonObj.get("labelTexts").toString())); + } + // validate the optional field `labelMatchingType` + if (jsonObj.get("labelMatchingType") != null && !jsonObj.get("labelMatchingType").isJsonNull()) { + MappingAttributeLabelMatchingType.validateJsonElement(jsonObj.get("labelMatchingType")); + } + // validate the optional field `metadataField` + if (jsonObj.get("metadataField") != null && !jsonObj.get("metadataField").isJsonNull()) { + MappingAttributeMetadataField.validateJsonElement(jsonObj.get("metadataField")); + } + if ((jsonObj.get("validationRegex") != null && !jsonObj.get("validationRegex").isJsonNull()) && !jsonObj.get("validationRegex").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `validationRegex` to be a primitive type in the JSON string but got `%s`", jsonObj.get("validationRegex").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) - && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("attributeKey").toString())); - } - // validate the optional field `sourceType` - if (jsonObj.get("sourceType") != null && !jsonObj.get("sourceType").isJsonNull()) { - MappingAttributeSourceType.validateJsonElement(jsonObj.get("sourceType")); - } - if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) - && !jsonObj.get("defaultValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("defaultValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() - && !jsonObj.get("defaultValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", - jsonObj.get("defaultValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("labelTexts") != null && !jsonObj.get("labelTexts").isJsonNull() - && !jsonObj.get("labelTexts").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `labelTexts` to be an array in the JSON string but got `%s`", - jsonObj.get("labelTexts").toString())); - } - // validate the optional field `labelMatchingType` - if (jsonObj.get("labelMatchingType") != null - && !jsonObj.get("labelMatchingType").isJsonNull()) { - MappingAttributeLabelMatchingType.validateJsonElement(jsonObj.get("labelMatchingType")); - } - // validate the optional field `metadataField` - if (jsonObj.get("metadataField") != null && !jsonObj.get("metadataField").isJsonNull()) { - MappingAttributeMetadataField.validateJsonElement(jsonObj.get("metadataField")); - } - if ((jsonObj.get("validationRegex") != null && !jsonObj.get("validationRegex").isJsonNull()) - && !jsonObj.get("validationRegex").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `validationRegex` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("validationRegex").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!MappingAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MappingAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(MappingAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MappingAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public MappingAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!MappingAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MappingAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MappingAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MappingAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public MappingAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/MappingAttributeLabelMatchingType.java b/src/main/java/com/formkiq/client/model/MappingAttributeLabelMatchingType.java index 0c9d62d2d..1294bf192 100644 --- a/src/main/java/com/formkiq/client/model/MappingAttributeLabelMatchingType.java +++ b/src/main/java/com/formkiq/client/model/MappingAttributeLabelMatchingType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,13 +30,13 @@ */ @JsonAdapter(MappingAttributeLabelMatchingType.Adapter.class) public enum MappingAttributeLabelMatchingType { - + FUZZY("FUZZY"), - + EXACT("EXACT"), - + BEGINS_WITH("BEGINS_WITH"), - + CONTAINS("CONTAINS"); private String value; @@ -72,8 +65,7 @@ public static MappingAttributeLabelMatchingType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, - final MappingAttributeLabelMatchingType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final MappingAttributeLabelMatchingType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/MappingAttributeMetadataField.java b/src/main/java/com/formkiq/client/model/MappingAttributeMetadataField.java index f54234878..9d52fb4a9 100644 --- a/src/main/java/com/formkiq/client/model/MappingAttributeMetadataField.java +++ b/src/main/java/com/formkiq/client/model/MappingAttributeMetadataField.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(MappingAttributeMetadataField.Adapter.class) public enum MappingAttributeMetadataField { - + USERNAME("USERNAME"), - + PATH("PATH"), - + CONTENT_TYPE("CONTENT_TYPE"); private String value; @@ -70,8 +63,7 @@ public static MappingAttributeMetadataField fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final MappingAttributeMetadataField enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final MappingAttributeMetadataField enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/MappingAttributeSourceType.java b/src/main/java/com/formkiq/client/model/MappingAttributeSourceType.java index c7064ed79..cd0db09f9 100644 --- a/src/main/java/com/formkiq/client/model/MappingAttributeSourceType.java +++ b/src/main/java/com/formkiq/client/model/MappingAttributeSourceType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,17 +30,17 @@ */ @JsonAdapter(MappingAttributeSourceType.Adapter.class) public enum MappingAttributeSourceType { - + CONTENT("CONTENT"), - + CONTENT_KEY_VALUE("CONTENT_KEY_VALUE"), - + METADATA("METADATA"), - + MANUAL("MANUAL"), - + DATA_CLASSIFICATION("DATA_CLASSIFICATION"), - + MALWARE_SCAN("MALWARE_SCAN"); private String value; @@ -76,8 +69,7 @@ public static MappingAttributeSourceType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final MappingAttributeSourceType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final MappingAttributeSourceType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/MatchDocumentTag.java b/src/main/java/com/formkiq/client/model/MatchDocumentTag.java index a37965b3a..3019c7716 100644 --- a/src/main/java/com/formkiq/client/model/MatchDocumentTag.java +++ b/src/main/java/com/formkiq/client/model/MatchDocumentTag.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * Match Document Tag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class MatchDocumentTag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -76,7 +67,8 @@ public class MatchDocumentTag { @javax.annotation.Nullable private String eq; - public MatchDocumentTag() {} + public MatchDocumentTag() { + } public MatchDocumentTag key(@javax.annotation.Nonnull String key) { this.key = key; @@ -85,7 +77,6 @@ public MatchDocumentTag key(@javax.annotation.Nonnull String key) { /** * Tag key - * * @return key */ @javax.annotation.Nonnull @@ -105,7 +96,6 @@ public MatchDocumentTag beginsWith(@javax.annotation.Nullable String beginsWith) /** * Searches for strings that begin with - * * @return beginsWith */ @javax.annotation.Nullable @@ -125,7 +115,6 @@ public MatchDocumentTag eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq - * * @return eq */ @javax.annotation.Nullable @@ -148,9 +137,9 @@ public boolean equals(Object o) { return false; } MatchDocumentTag matchDocumentTag = (MatchDocumentTag) o; - return Objects.equals(this.key, matchDocumentTag.key) - && Objects.equals(this.beginsWith, matchDocumentTag.beginsWith) - && Objects.equals(this.eq, matchDocumentTag.eq); + return Objects.equals(this.key, matchDocumentTag.key) && + Objects.equals(this.beginsWith, matchDocumentTag.beginsWith) && + Objects.equals(this.eq, matchDocumentTag.eq); } @Override @@ -170,7 +159,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,79 +188,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to MatchDocumentTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MatchDocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in MatchDocumentTag is not found in the empty JSON string", - MatchDocumentTag.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!MatchDocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MatchDocumentTag is not found in the empty JSON string", MatchDocumentTag.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MatchDocumentTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `MatchDocumentTag` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MatchDocumentTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `MatchDocumentTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MatchDocumentTag.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : MatchDocumentTag.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) && !jsonObj.get("beginsWith").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", jsonObj.get("beginsWith").toString())); + } + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) - && !jsonObj.get("beginsWith").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("beginsWith").toString())); - } - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) - && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("eq").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!MatchDocumentTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MatchDocumentTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(MatchDocumentTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MatchDocumentTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public MatchDocumentTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!MatchDocumentTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MatchDocumentTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MatchDocumentTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MatchDocumentTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public MatchDocumentTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ModelCase.java b/src/main/java/com/formkiq/client/model/ModelCase.java index 40fed61d2..025e42d52 100644 --- a/src/main/java/com/formkiq/client/model/ModelCase.java +++ b/src/main/java/com/formkiq/client/model/ModelCase.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * ModelCase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ModelCase { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; @SerializedName(SERIALIZED_NAME_CASE_ID) @@ -129,7 +120,8 @@ public class ModelCase { @javax.annotation.Nullable private String userId; - public ModelCase() {} + public ModelCase() { + } public ModelCase caseId(@javax.annotation.Nullable String caseId) { this.caseId = caseId; @@ -138,7 +130,6 @@ public ModelCase caseId(@javax.annotation.Nullable String caseId) { /** * Case Identifier - * * @return caseId */ @javax.annotation.Nullable @@ -158,7 +149,6 @@ public ModelCase caseNumber(@javax.annotation.Nullable String caseNumber) { /** * Case Number - * * @return caseNumber */ @javax.annotation.Nullable @@ -178,7 +168,6 @@ public ModelCase documentNumber(@javax.annotation.Nullable String documentNumber /** * Document Number - * * @return documentNumber */ @javax.annotation.Nullable @@ -198,7 +187,6 @@ public ModelCase plannedStartDate(@javax.annotation.Nullable String plannedStart /** * Planned Start Date - * * @return plannedStartDate */ @javax.annotation.Nullable @@ -218,7 +206,6 @@ public ModelCase startDate(@javax.annotation.Nullable String startDate) { /** * Start Date - * * @return startDate */ @javax.annotation.Nullable @@ -238,7 +225,6 @@ public ModelCase endDate(@javax.annotation.Nullable String endDate) { /** * End Date - * * @return endDate */ @javax.annotation.Nullable @@ -258,7 +244,6 @@ public ModelCase dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date - * * @return dueDate */ @javax.annotation.Nullable @@ -278,7 +263,6 @@ public ModelCase insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -298,7 +282,6 @@ public ModelCase name(@javax.annotation.Nullable String name) { /** * Case Name - * * @return name */ @javax.annotation.Nullable @@ -318,7 +301,6 @@ public ModelCase description(@javax.annotation.Nullable String description) { /** * Case Description - * * @return description */ @javax.annotation.Nullable @@ -346,7 +328,6 @@ public ModelCase putMetadataItem(String key, Object metadataItem) { /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -366,7 +347,6 @@ public ModelCase status(@javax.annotation.Nullable CaseStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -386,7 +366,6 @@ public ModelCase userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -409,24 +388,24 @@ public boolean equals(Object o) { return false; } ModelCase _case = (ModelCase) o; - return Objects.equals(this.caseId, _case.caseId) - && Objects.equals(this.caseNumber, _case.caseNumber) - && Objects.equals(this.documentNumber, _case.documentNumber) - && Objects.equals(this.plannedStartDate, _case.plannedStartDate) - && Objects.equals(this.startDate, _case.startDate) - && Objects.equals(this.endDate, _case.endDate) - && Objects.equals(this.dueDate, _case.dueDate) - && Objects.equals(this.insertedDate, _case.insertedDate) - && Objects.equals(this.name, _case.name) - && Objects.equals(this.description, _case.description) - && Objects.equals(this.metadata, _case.metadata) - && Objects.equals(this.status, _case.status) && Objects.equals(this.userId, _case.userId); + return Objects.equals(this.caseId, _case.caseId) && + Objects.equals(this.caseNumber, _case.caseNumber) && + Objects.equals(this.documentNumber, _case.documentNumber) && + Objects.equals(this.plannedStartDate, _case.plannedStartDate) && + Objects.equals(this.startDate, _case.startDate) && + Objects.equals(this.endDate, _case.endDate) && + Objects.equals(this.dueDate, _case.dueDate) && + Objects.equals(this.insertedDate, _case.insertedDate) && + Objects.equals(this.name, _case.name) && + Objects.equals(this.description, _case.description) && + Objects.equals(this.metadata, _case.metadata) && + Objects.equals(this.status, _case.status) && + Objects.equals(this.userId, _case.userId); } @Override public int hashCode() { - return Objects.hash(caseId, caseNumber, documentNumber, plannedStartDate, startDate, endDate, - dueDate, insertedDate, name, description, metadata, status, userId); + return Objects.hash(caseId, caseNumber, documentNumber, plannedStartDate, startDate, endDate, dueDate, insertedDate, name, description, metadata, status, userId); } @Override @@ -451,7 +430,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -466,9 +446,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("caseId", "caseNumber", "documentNumber", - "plannedStartDate", "startDate", "endDate", "dueDate", "insertedDate", "name", - "description", "metadata", "status", "userId")); + openapiFields = new HashSet(Arrays.asList("caseId", "caseNumber", "documentNumber", "plannedStartDate", "startDate", "endDate", "dueDate", "insertedDate", "name", "description", "metadata", "status", "userId")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -481,123 +459,85 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ModelCase */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ModelCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in ModelCase is not found in the empty JSON string", - ModelCase.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!ModelCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ModelCase is not found in the empty JSON string", ModelCase.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ModelCase.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `ModelCase` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModelCase.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModelCase` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) && !jsonObj.get("caseId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("caseId").toString())); + } + if ((jsonObj.get("caseNumber") != null && !jsonObj.get("caseNumber").isJsonNull()) && !jsonObj.get("caseNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caseNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("caseNumber").toString())); + } + if ((jsonObj.get("documentNumber") != null && !jsonObj.get("documentNumber").isJsonNull()) && !jsonObj.get("documentNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentNumber").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + CaseStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) - && !jsonObj.get("caseId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("caseId").toString())); - } - if ((jsonObj.get("caseNumber") != null && !jsonObj.get("caseNumber").isJsonNull()) - && !jsonObj.get("caseNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `caseNumber` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("caseNumber").toString())); - } - if ((jsonObj.get("documentNumber") != null && !jsonObj.get("documentNumber").isJsonNull()) - && !jsonObj.get("documentNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentNumber` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentNumber").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) - && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) - && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) - && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) - && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("dueDate").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - CaseStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ModelCase.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ModelCase' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(ModelCase.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ModelCase value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ModelCase read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ModelCase.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModelCase' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ModelCase.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModelCase value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModelCase read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Nigo.java b/src/main/java/com/formkiq/client/model/Nigo.java index 50787403f..eb976019a 100644 --- a/src/main/java/com/formkiq/client/model/Nigo.java +++ b/src/main/java/com/formkiq/client/model/Nigo.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * Nigo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Nigo { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; @SerializedName(SERIALIZED_NAME_NIGO_ID) @@ -119,7 +110,8 @@ public class Nigo { @javax.annotation.Nullable private Map metadata = new HashMap<>(); - public Nigo() {} + public Nigo() { + } public Nigo nigoId(@javax.annotation.Nullable String nigoId) { this.nigoId = nigoId; @@ -128,7 +120,6 @@ public Nigo nigoId(@javax.annotation.Nullable String nigoId) { /** * Nigo Identifier - * * @return nigoId */ @javax.annotation.Nullable @@ -148,7 +139,6 @@ public Nigo insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -168,7 +158,6 @@ public Nigo name(@javax.annotation.Nullable String name) { /** * Name of Nigo - * * @return name */ @javax.annotation.Nullable @@ -188,7 +177,6 @@ public Nigo description(@javax.annotation.Nullable String description) { /** * Description of Nigo - * * @return description */ @javax.annotation.Nullable @@ -208,7 +196,6 @@ public Nigo plannedStartDate(@javax.annotation.Nullable String plannedStartDate) /** * Planned Start Date - * * @return plannedStartDate */ @javax.annotation.Nullable @@ -228,7 +215,6 @@ public Nigo startDate(@javax.annotation.Nullable String startDate) { /** * Start Date - * * @return startDate */ @javax.annotation.Nullable @@ -248,7 +234,6 @@ public Nigo endDate(@javax.annotation.Nullable String endDate) { /** * End Date - * * @return endDate */ @javax.annotation.Nullable @@ -268,7 +253,6 @@ public Nigo dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date - * * @return dueDate */ @javax.annotation.Nullable @@ -288,7 +272,6 @@ public Nigo userId(@javax.annotation.Nullable String userId) { /** * User who added Nigo - * * @return userId */ @javax.annotation.Nullable @@ -308,7 +291,6 @@ public Nigo status(@javax.annotation.Nullable NigoStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -336,7 +318,6 @@ public Nigo putMetadataItem(String key, Object metadataItem) { /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -359,21 +340,22 @@ public boolean equals(Object o) { return false; } Nigo nigo = (Nigo) o; - return Objects.equals(this.nigoId, nigo.nigoId) - && Objects.equals(this.insertedDate, nigo.insertedDate) - && Objects.equals(this.name, nigo.name) - && Objects.equals(this.description, nigo.description) - && Objects.equals(this.plannedStartDate, nigo.plannedStartDate) - && Objects.equals(this.startDate, nigo.startDate) - && Objects.equals(this.endDate, nigo.endDate) && Objects.equals(this.dueDate, nigo.dueDate) - && Objects.equals(this.userId, nigo.userId) && Objects.equals(this.status, nigo.status) - && Objects.equals(this.metadata, nigo.metadata); + return Objects.equals(this.nigoId, nigo.nigoId) && + Objects.equals(this.insertedDate, nigo.insertedDate) && + Objects.equals(this.name, nigo.name) && + Objects.equals(this.description, nigo.description) && + Objects.equals(this.plannedStartDate, nigo.plannedStartDate) && + Objects.equals(this.startDate, nigo.startDate) && + Objects.equals(this.endDate, nigo.endDate) && + Objects.equals(this.dueDate, nigo.dueDate) && + Objects.equals(this.userId, nigo.userId) && + Objects.equals(this.status, nigo.status) && + Objects.equals(this.metadata, nigo.metadata); } @Override public int hashCode() { - return Objects.hash(nigoId, insertedDate, name, description, plannedStartDate, startDate, - endDate, dueDate, userId, status, metadata); + return Objects.hash(nigoId, insertedDate, name, description, plannedStartDate, startDate, endDate, dueDate, userId, status, metadata); } @Override @@ -396,7 +378,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -411,9 +394,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("nigoId", "insertedDate", "name", "description", - "plannedStartDate", "startDate", "endDate", "dueDate", "userId", "status", "metadata")); + openapiFields = new HashSet(Arrays.asList("nigoId", "insertedDate", "name", "description", "plannedStartDate", "startDate", "endDate", "dueDate", "userId", "status", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -426,110 +407,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Nigo */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Nigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Nigo is not found in the empty JSON string", - Nigo.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Nigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Nigo is not found in the empty JSON string", Nigo.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Nigo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Nigo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Nigo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Nigo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) && !jsonObj.get("nigoId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nigoId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + NigoStatus.validateJsonElement(jsonObj.get("status")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) - && !jsonObj.get("nigoId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("nigoId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) - && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) - && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) - && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) - && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("dueDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - NigoStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Nigo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Nigo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Nigo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Nigo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Nigo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Nigo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Nigo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Nigo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Nigo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Nigo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/NigoStatus.java b/src/main/java/com/formkiq/client/model/NigoStatus.java index de6cc7d7e..b10ba23d8 100644 --- a/src/main/java/com/formkiq/client/model/NigoStatus.java +++ b/src/main/java/com/formkiq/client/model/NigoStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,23 +30,23 @@ */ @JsonAdapter(NigoStatus.Adapter.class) public enum NigoStatus { - + NEW("NEW"), - + ASSIGNED("ASSIGNED"), - + IN_PROGRESS("IN_PROGRESS"), - + ON_HOLD("ON_HOLD"), - + ESCALATED("ESCALATED"), - + RESOLVED("RESOLVED"), - + CLOSED("CLOSED"), - + UNDER_REVIEW("UNDER_REVIEW"), - + AWAITING_CLIENT_RESPONSE("AWAITING_CLIENT_RESPONSE"); private String value; @@ -82,8 +75,7 @@ public static NigoStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final NigoStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final NigoStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/OcrConfig.java b/src/main/java/com/formkiq/client/model/OcrConfig.java index a16897f0b..0bd596b60 100644 --- a/src/main/java/com/formkiq/client/model/OcrConfig.java +++ b/src/main/java/com/formkiq/client/model/OcrConfig.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * OcrConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrConfig { public static final String SERIALIZED_NAME_MAX_PAGES_PER_TRANSACTION = "maxPagesPerTransaction"; @SerializedName(SERIALIZED_NAME_MAX_PAGES_PER_TRANSACTION) @@ -72,17 +63,16 @@ public class OcrConfig { @javax.annotation.Nullable private BigDecimal maxTransactions; - public OcrConfig() {} + public OcrConfig() { + } - public OcrConfig maxPagesPerTransaction( - @javax.annotation.Nullable BigDecimal maxPagesPerTransaction) { + public OcrConfig maxPagesPerTransaction(@javax.annotation.Nullable BigDecimal maxPagesPerTransaction) { this.maxPagesPerTransaction = maxPagesPerTransaction; return this; } /** * Max number of OCR pages (-1 for unlimited) - * * @return maxPagesPerTransaction */ @javax.annotation.Nullable @@ -90,8 +80,7 @@ public BigDecimal getMaxPagesPerTransaction() { return maxPagesPerTransaction; } - public void setMaxPagesPerTransaction( - @javax.annotation.Nullable BigDecimal maxPagesPerTransaction) { + public void setMaxPagesPerTransaction(@javax.annotation.Nullable BigDecimal maxPagesPerTransaction) { this.maxPagesPerTransaction = maxPagesPerTransaction; } @@ -103,7 +92,6 @@ public OcrConfig maxTransactions(@javax.annotation.Nullable BigDecimal maxTransa /** * Max number of OCR actions that can be created (-1 for unlimited) - * * @return maxTransactions */ @javax.annotation.Nullable @@ -126,8 +114,8 @@ public boolean equals(Object o) { return false; } OcrConfig ocrConfig = (OcrConfig) o; - return Objects.equals(this.maxPagesPerTransaction, ocrConfig.maxPagesPerTransaction) - && Objects.equals(this.maxTransactions, ocrConfig.maxTransactions); + return Objects.equals(this.maxPagesPerTransaction, ocrConfig.maxPagesPerTransaction) && + Objects.equals(this.maxTransactions, ocrConfig.maxTransactions); } @Override @@ -139,15 +127,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OcrConfig {\n"); - sb.append(" maxPagesPerTransaction: ").append(toIndentedString(maxPagesPerTransaction)) - .append("\n"); + sb.append(" maxPagesPerTransaction: ").append(toIndentedString(maxPagesPerTransaction)).append("\n"); sb.append(" maxTransactions: ").append(toIndentedString(maxTransactions)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,53 +163,48 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OcrConfig */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OcrConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OcrConfig is not found in the empty JSON string", - OcrConfig.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OcrConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OcrConfig is not found in the empty JSON string", OcrConfig.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OcrConfig.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OcrConfig` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OcrConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OcrConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OcrConfig.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OcrConfig' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OcrConfig.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OcrConfig value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OcrConfig read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OcrConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OcrConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OcrConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OcrConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OcrConfig read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OcrEngine.java b/src/main/java/com/formkiq/client/model/OcrEngine.java index 7f010bac6..d12223e5c 100644 --- a/src/main/java/com/formkiq/client/model/OcrEngine.java +++ b/src/main/java/com/formkiq/client/model/OcrEngine.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(OcrEngine.Adapter.class) public enum OcrEngine { - + TESSERACT("TESSERACT"), - + TEXTRACT("TEXTRACT"); private String value; diff --git a/src/main/java/com/formkiq/client/model/OcrKeyValues.java b/src/main/java/com/formkiq/client/model/OcrKeyValues.java index 1f15ec850..50e32f246 100644 --- a/src/main/java/com/formkiq/client/model/OcrKeyValues.java +++ b/src/main/java/com/formkiq/client/model/OcrKeyValues.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * OcrKeyValues */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrKeyValues { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -73,7 +64,8 @@ public class OcrKeyValues { @javax.annotation.Nullable private List values = new ArrayList<>(); - public OcrKeyValues() {} + public OcrKeyValues() { + } public OcrKeyValues key(@javax.annotation.Nullable String key) { this.key = key; @@ -82,7 +74,6 @@ public OcrKeyValues key(@javax.annotation.Nullable String key) { /** * Ocr Key - * * @return key */ @javax.annotation.Nullable @@ -110,7 +101,6 @@ public OcrKeyValues addValuesItem(String valuesItem) { /** * Get values - * * @return values */ @javax.annotation.Nullable @@ -133,8 +123,8 @@ public boolean equals(Object o) { return false; } OcrKeyValues ocrKeyValues = (OcrKeyValues) o; - return Objects.equals(this.key, ocrKeyValues.key) - && Objects.equals(this.values, ocrKeyValues.values); + return Objects.equals(this.key, ocrKeyValues.key) && + Objects.equals(this.values, ocrKeyValues.values); } @Override @@ -153,7 +143,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,66 +172,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OcrKeyValues */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OcrKeyValues.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OcrKeyValues is not found in the empty JSON string", - OcrKeyValues.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OcrKeyValues.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OcrKeyValues is not found in the empty JSON string", OcrKeyValues.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OcrKeyValues.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OcrKeyValues` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OcrKeyValues.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OcrKeyValues` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() - && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `values` to be an array in the JSON string but got `%s`", - jsonObj.get("values").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OcrKeyValues.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OcrKeyValues' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OcrKeyValues.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OcrKeyValues value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OcrKeyValues read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OcrKeyValues.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OcrKeyValues' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OcrKeyValues.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OcrKeyValues value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OcrKeyValues read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OcrOutputType.java b/src/main/java/com/formkiq/client/model/OcrOutputType.java index e552b5a9d..dbe7de766 100644 --- a/src/main/java/com/formkiq/client/model/OcrOutputType.java +++ b/src/main/java/com/formkiq/client/model/OcrOutputType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,7 +30,7 @@ */ @JsonAdapter(OcrOutputType.Adapter.class) public enum OcrOutputType { - + CSV("CSV"); private String value; @@ -66,8 +59,7 @@ public static OcrOutputType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final OcrOutputType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final OcrOutputType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/OcrTable.java b/src/main/java/com/formkiq/client/model/OcrTable.java index 9121e3611..f109b9a98 100644 --- a/src/main/java/com/formkiq/client/model/OcrTable.java +++ b/src/main/java/com/formkiq/client/model/OcrTable.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * OcrTable */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrTable { public static final String SERIALIZED_NAME_HEADERS = "headers"; @SerializedName(SERIALIZED_NAME_HEADERS) @@ -74,7 +65,8 @@ public class OcrTable { @javax.annotation.Nullable private List> data = new ArrayList<>(); - public OcrTable() {} + public OcrTable() { + } public OcrTable headers(@javax.annotation.Nullable List headers) { this.headers = headers; @@ -91,7 +83,6 @@ public OcrTable addHeadersItem(String headersItem) { /** * Get headers - * * @return headers */ @javax.annotation.Nullable @@ -119,7 +110,6 @@ public OcrTable addDataItem(List dataItem) { /** * Get data - * * @return data */ @javax.annotation.Nullable @@ -142,8 +132,8 @@ public boolean equals(Object o) { return false; } OcrTable ocrTable = (OcrTable) o; - return Objects.equals(this.headers, ocrTable.headers) - && Objects.equals(this.data, ocrTable.data); + return Objects.equals(this.headers, ocrTable.headers) && + Objects.equals(this.data, ocrTable.data); } @Override @@ -162,7 +152,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,67 +181,56 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OcrTable */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OcrTable.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OcrTable is not found in the empty JSON string", - OcrTable.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OcrTable.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OcrTable is not found in the empty JSON string", OcrTable.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OcrTable.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OcrTable` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OcrTable.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OcrTable` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("headers") != null && !jsonObj.get("headers").isJsonNull() && !jsonObj.get("headers").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `headers` to be an array in the JSON string but got `%s`", jsonObj.get("headers").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull() && !jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("headers") != null && !jsonObj.get("headers").isJsonNull() - && !jsonObj.get("headers").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `headers` to be an array in the JSON string but got `%s`", - jsonObj.get("headers").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull() - && !jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `data` to be an array in the JSON string but got `%s`", - jsonObj.get("data").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OcrTable.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OcrTable' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OcrTable.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OcrTable value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OcrTable read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OcrTable.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OcrTable' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OcrTable.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OcrTable value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OcrTable read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OcrTableData.java b/src/main/java/com/formkiq/client/model/OcrTableData.java index 8fafd704b..3361039ad 100644 --- a/src/main/java/com/formkiq/client/model/OcrTableData.java +++ b/src/main/java/com/formkiq/client/model/OcrTableData.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * OcrTableData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrTableData { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @javax.annotation.Nullable private String value; - public OcrTableData() {} + public OcrTableData() { + } public OcrTableData value(@javax.annotation.Nullable String value) { this.value = value; @@ -75,7 +67,6 @@ public OcrTableData value(@javax.annotation.Nullable String value) { /** * Table Value - * * @return value */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OcrTableData */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OcrTableData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OcrTableData is not found in the empty JSON string", - OcrTableData.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OcrTableData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OcrTableData is not found in the empty JSON string", OcrTableData.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OcrTableData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OcrTableData` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OcrTableData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OcrTableData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OcrTableData.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OcrTableData' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OcrTableData.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OcrTableData value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OcrTableData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OcrTableData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OcrTableData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OcrTableData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OcrTableData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OcrTableData read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicy.java b/src/main/java/com/formkiq/client/model/OpaPolicy.java index e74895e95..c5201b204 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicy.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicy.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * OpaPolicy */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicy { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -71,7 +62,8 @@ public class OpaPolicy { @javax.annotation.Nullable private String policy; - public OpaPolicy() {} + public OpaPolicy() { + } public OpaPolicy siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -80,7 +72,6 @@ public OpaPolicy siteId(@javax.annotation.Nullable String siteId) { /** * SiteId to apply OPA Policy to - * * @return siteId */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public OpaPolicy policy(@javax.annotation.Nullable String policy) { /** * OPA Policy in REGO format - * * @return policy */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } OpaPolicy opaPolicy = (OpaPolicy) o; - return Objects.equals(this.siteId, opaPolicy.siteId) - && Objects.equals(this.policy, opaPolicy.policy); + return Objects.equals(this.siteId, opaPolicy.siteId) && + Objects.equals(this.policy, opaPolicy.policy); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicy */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicy is not found in the empty JSON string", - OpaPolicy.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicy is not found in the empty JSON string", OpaPolicy.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicy` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("policy") != null && !jsonObj.get("policy").isJsonNull()) && !jsonObj.get("policy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policy").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("policy") != null && !jsonObj.get("policy").isJsonNull()) - && !jsonObj.get("policy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `policy` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("policy").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicy.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicy' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicy.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicy value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicy read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java index a111f042a..dc94d4fe4 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -65,9 +58,7 @@ /** * OpaPolicyAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -114,7 +105,8 @@ public class OpaPolicyAttribute { @javax.annotation.Nullable private OpaPolicyAttributeNotIn notIn; - public OpaPolicyAttribute() {} + public OpaPolicyAttribute() { + } public OpaPolicyAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -123,7 +115,6 @@ public OpaPolicyAttribute key(@javax.annotation.Nullable String key) { /** * Attribute Key - * * @return key */ @javax.annotation.Nullable @@ -143,7 +134,6 @@ public OpaPolicyAttribute eq(@javax.annotation.Nullable OpaPolicyAttributeEq eq) /** * Get eq - * * @return eq */ @javax.annotation.Nullable @@ -163,7 +153,6 @@ public OpaPolicyAttribute gt(@javax.annotation.Nullable OpaPolicyAttributeGt gt) /** * Get gt - * * @return gt */ @javax.annotation.Nullable @@ -183,7 +172,6 @@ public OpaPolicyAttribute gte(@javax.annotation.Nullable OpaPolicyAttributeGte g /** * Get gte - * * @return gte */ @javax.annotation.Nullable @@ -203,7 +191,6 @@ public OpaPolicyAttribute lt(@javax.annotation.Nullable OpaPolicyAttributeLt lt) /** * Get lt - * * @return lt */ @javax.annotation.Nullable @@ -223,7 +210,6 @@ public OpaPolicyAttribute lte(@javax.annotation.Nullable OpaPolicyAttributeLte l /** * Get lte - * * @return lte */ @javax.annotation.Nullable @@ -243,7 +229,6 @@ public OpaPolicyAttribute neq(@javax.annotation.Nullable OpaPolicyAttributeNeq n /** * Get neq - * * @return neq */ @javax.annotation.Nullable @@ -263,7 +248,6 @@ public OpaPolicyAttribute in(@javax.annotation.Nullable OpaPolicyAttributeIn in) /** * Get in - * * @return in */ @javax.annotation.Nullable @@ -283,7 +267,6 @@ public OpaPolicyAttribute notIn(@javax.annotation.Nullable OpaPolicyAttributeNot /** * Get notIn - * * @return notIn */ @javax.annotation.Nullable @@ -306,15 +289,15 @@ public boolean equals(Object o) { return false; } OpaPolicyAttribute opaPolicyAttribute = (OpaPolicyAttribute) o; - return Objects.equals(this.key, opaPolicyAttribute.key) - && Objects.equals(this.eq, opaPolicyAttribute.eq) - && Objects.equals(this.gt, opaPolicyAttribute.gt) - && Objects.equals(this.gte, opaPolicyAttribute.gte) - && Objects.equals(this.lt, opaPolicyAttribute.lt) - && Objects.equals(this.lte, opaPolicyAttribute.lte) - && Objects.equals(this.neq, opaPolicyAttribute.neq) - && Objects.equals(this.in, opaPolicyAttribute.in) - && Objects.equals(this.notIn, opaPolicyAttribute.notIn); + return Objects.equals(this.key, opaPolicyAttribute.key) && + Objects.equals(this.eq, opaPolicyAttribute.eq) && + Objects.equals(this.gt, opaPolicyAttribute.gt) && + Objects.equals(this.gte, opaPolicyAttribute.gte) && + Objects.equals(this.lt, opaPolicyAttribute.lt) && + Objects.equals(this.lte, opaPolicyAttribute.lte) && + Objects.equals(this.neq, opaPolicyAttribute.neq) && + Objects.equals(this.in, opaPolicyAttribute.in) && + Objects.equals(this.notIn, opaPolicyAttribute.notIn); } @Override @@ -340,7 +323,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -355,8 +339,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("key", "eq", "gt", "gte", "lt", "lte", "neq", "in", "notIn")); + openapiFields = new HashSet(Arrays.asList("key", "eq", "gt", "gte", "lt", "lte", "neq", "in", "notIn")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -369,91 +352,83 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyAttribute is not found in the empty JSON string", - OpaPolicyAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttribute is not found in the empty JSON string", OpaPolicyAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + // validate the optional field `eq` + if (jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) { + OpaPolicyAttributeEq.validateJsonElement(jsonObj.get("eq")); + } + // validate the optional field `gt` + if (jsonObj.get("gt") != null && !jsonObj.get("gt").isJsonNull()) { + OpaPolicyAttributeGt.validateJsonElement(jsonObj.get("gt")); + } + // validate the optional field `gte` + if (jsonObj.get("gte") != null && !jsonObj.get("gte").isJsonNull()) { + OpaPolicyAttributeGte.validateJsonElement(jsonObj.get("gte")); + } + // validate the optional field `lt` + if (jsonObj.get("lt") != null && !jsonObj.get("lt").isJsonNull()) { + OpaPolicyAttributeLt.validateJsonElement(jsonObj.get("lt")); + } + // validate the optional field `lte` + if (jsonObj.get("lte") != null && !jsonObj.get("lte").isJsonNull()) { + OpaPolicyAttributeLte.validateJsonElement(jsonObj.get("lte")); + } + // validate the optional field `neq` + if (jsonObj.get("neq") != null && !jsonObj.get("neq").isJsonNull()) { + OpaPolicyAttributeNeq.validateJsonElement(jsonObj.get("neq")); + } + // validate the optional field `in` + if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull()) { + OpaPolicyAttributeIn.validateJsonElement(jsonObj.get("in")); + } + // validate the optional field `notIn` + if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull()) { + OpaPolicyAttributeNotIn.validateJsonElement(jsonObj.get("notIn")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - // validate the optional field `eq` - if (jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) { - OpaPolicyAttributeEq.validateJsonElement(jsonObj.get("eq")); - } - // validate the optional field `gt` - if (jsonObj.get("gt") != null && !jsonObj.get("gt").isJsonNull()) { - OpaPolicyAttributeGt.validateJsonElement(jsonObj.get("gt")); - } - // validate the optional field `gte` - if (jsonObj.get("gte") != null && !jsonObj.get("gte").isJsonNull()) { - OpaPolicyAttributeGte.validateJsonElement(jsonObj.get("gte")); - } - // validate the optional field `lt` - if (jsonObj.get("lt") != null && !jsonObj.get("lt").isJsonNull()) { - OpaPolicyAttributeLt.validateJsonElement(jsonObj.get("lt")); - } - // validate the optional field `lte` - if (jsonObj.get("lte") != null && !jsonObj.get("lte").isJsonNull()) { - OpaPolicyAttributeLte.validateJsonElement(jsonObj.get("lte")); - } - // validate the optional field `neq` - if (jsonObj.get("neq") != null && !jsonObj.get("neq").isJsonNull()) { - OpaPolicyAttributeNeq.validateJsonElement(jsonObj.get("neq")); - } - // validate the optional field `in` - if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull()) { - OpaPolicyAttributeIn.validateJsonElement(jsonObj.get("in")); - } - // validate the optional field `notIn` - if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull()) { - OpaPolicyAttributeNotIn.validateJsonElement(jsonObj.get("notIn")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java index 2f065d1c1..22ae64a1d 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * Attribute EQ criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeEq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; @SerializedName(SERIALIZED_NAME_STRING_VALUE) @@ -83,7 +74,8 @@ public class OpaPolicyAttributeEq { @javax.annotation.Nullable private OpaPolicyAttributeInput input; - public OpaPolicyAttributeEq() {} + public OpaPolicyAttributeEq() { + } public OpaPolicyAttributeEq stringValue(@javax.annotation.Nullable String stringValue) { this.stringValue = stringValue; @@ -92,7 +84,6 @@ public OpaPolicyAttributeEq stringValue(@javax.annotation.Nullable String string /** * The value to compare the Attribute Key value to - * * @return stringValue */ @javax.annotation.Nullable @@ -112,7 +103,6 @@ public OpaPolicyAttributeEq numberValue(@javax.annotation.Nullable BigDecimal nu /** * The value to compare the Attribute Key value to - * * @return numberValue */ @javax.annotation.Nullable @@ -132,7 +122,6 @@ public OpaPolicyAttributeEq booleanValue(@javax.annotation.Nullable Boolean bool /** * The value to compare the Attribute Key value to - * * @return booleanValue */ @javax.annotation.Nullable @@ -152,7 +141,6 @@ public OpaPolicyAttributeEq input(@javax.annotation.Nullable OpaPolicyAttributeI /** * Get input - * * @return input */ @javax.annotation.Nullable @@ -175,10 +163,10 @@ public boolean equals(Object o) { return false; } OpaPolicyAttributeEq opaPolicyAttributeEq = (OpaPolicyAttributeEq) o; - return Objects.equals(this.stringValue, opaPolicyAttributeEq.stringValue) - && Objects.equals(this.numberValue, opaPolicyAttributeEq.numberValue) - && Objects.equals(this.booleanValue, opaPolicyAttributeEq.booleanValue) - && Objects.equals(this.input, opaPolicyAttributeEq.input); + return Objects.equals(this.stringValue, opaPolicyAttributeEq.stringValue) && + Objects.equals(this.numberValue, opaPolicyAttributeEq.numberValue) && + Objects.equals(this.booleanValue, opaPolicyAttributeEq.booleanValue) && + Objects.equals(this.input, opaPolicyAttributeEq.input); } @Override @@ -199,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,8 +203,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("stringValue", "numberValue", "booleanValue", "input")); + openapiFields = new HashSet(Arrays.asList("stringValue", "numberValue", "booleanValue", "input")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -228,63 +216,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeEq */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeEq.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyAttributeEq is not found in the empty JSON string", - OpaPolicyAttributeEq.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyAttributeEq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeEq is not found in the empty JSON string", OpaPolicyAttributeEq.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeEq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeEq` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeEq.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeEq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); + } + // validate the optional field `input` + if (jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) { + OpaPolicyAttributeInput.validateJsonElement(jsonObj.get("input")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) - && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stringValue").toString())); - } - // validate the optional field `input` - if (jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) { - OpaPolicyAttributeInput.validateJsonElement(jsonObj.get("input")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeEq.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeEq' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeEq.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeEq value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeEq read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeEq.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeEq' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeEq.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeEq value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeEq read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java index 7d082ac8c..1acebc034 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * Attribute greater than criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeGt { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; @SerializedName(SERIALIZED_NAME_NUMBER_VALUE) @javax.annotation.Nullable private BigDecimal numberValue; - public OpaPolicyAttributeGt() {} + public OpaPolicyAttributeGt() { + } public OpaPolicyAttributeGt numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; @@ -76,7 +68,6 @@ public OpaPolicyAttributeGt numberValue(@javax.annotation.Nullable BigDecimal nu /** * The value to compare the Attribute Key value to - * * @return numberValue */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,53 +137,48 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeGt */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeGt.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyAttributeGt is not found in the empty JSON string", - OpaPolicyAttributeGt.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyAttributeGt.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeGt is not found in the empty JSON string", OpaPolicyAttributeGt.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeGt.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeGt` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeGt.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeGt` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeGt.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeGt' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeGt.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeGt value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeGt read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeGt.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeGt' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeGt.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeGt value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeGt read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java index d37ff4bbe..6a6d87b57 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * Attribute greater than and equals to criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeGte { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; @SerializedName(SERIALIZED_NAME_NUMBER_VALUE) @javax.annotation.Nullable private BigDecimal numberValue; - public OpaPolicyAttributeGte() {} + public OpaPolicyAttributeGte() { + } public OpaPolicyAttributeGte numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; @@ -76,7 +68,6 @@ public OpaPolicyAttributeGte numberValue(@javax.annotation.Nullable BigDecimal n /** * The value to compare the Attribute Key value to - * * @return numberValue */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,53 +137,48 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeGte */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeGte.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyAttributeGte is not found in the empty JSON string", - OpaPolicyAttributeGte.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyAttributeGte.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeGte is not found in the empty JSON string", OpaPolicyAttributeGte.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeGte.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeGte` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeGte.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeGte` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeGte.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeGte' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeGte.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeGte value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeGte read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeGte.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeGte' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeGte.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeGte value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeGte read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java index 5edb955ac..eade387d5 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,16 +52,15 @@ /** * Attribute In to criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeIn { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; @SerializedName(SERIALIZED_NAME_STRING_VALUES) @javax.annotation.Nullable private List stringValues = new ArrayList<>(); - public OpaPolicyAttributeIn() {} + public OpaPolicyAttributeIn() { + } public OpaPolicyAttributeIn stringValues(@javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; @@ -85,7 +77,6 @@ public OpaPolicyAttributeIn addStringValuesItem(String stringValuesItem) { /** * The value to compare the Attribute Key value to - * * @return stringValues */ @javax.annotation.Nullable @@ -126,7 +117,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,60 +146,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeIn */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeIn.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyAttributeIn is not found in the empty JSON string", - OpaPolicyAttributeIn.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyAttributeIn.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeIn is not found in the empty JSON string", OpaPolicyAttributeIn.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeIn.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeIn` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeIn.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeIn` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() - && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValues` to be an array in the JSON string but got `%s`", - jsonObj.get("stringValues").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeIn.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeIn' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeIn.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeIn value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeIn read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeIn.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeIn' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeIn.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeIn value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeIn read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java index b97735225..39691f02a 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * OpaPolicyAttributeInput */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeInput { public static final String SERIALIZED_NAME_MATCH_USERNAME = "matchUsername"; @SerializedName(SERIALIZED_NAME_MATCH_USERNAME) @javax.annotation.Nullable private Boolean matchUsername; - public OpaPolicyAttributeInput() {} + public OpaPolicyAttributeInput() { + } public OpaPolicyAttributeInput matchUsername(@javax.annotation.Nullable Boolean matchUsername) { this.matchUsername = matchUsername; @@ -75,7 +67,6 @@ public OpaPolicyAttributeInput matchUsername(@javax.annotation.Nullable Boolean /** * Match Input Username - * * @return matchUsername */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,53 +136,48 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeInput */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeInput.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyAttributeInput is not found in the empty JSON string", - OpaPolicyAttributeInput.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyAttributeInput.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeInput is not found in the empty JSON string", OpaPolicyAttributeInput.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeInput.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeInput` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeInput.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeInput` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeInput.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeInput' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeInput.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeInput value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeInput read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeInput.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeInput' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeInput.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeInput value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeInput read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java index 77c50d023..bbcea7a4c 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * Attribute less than criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeLt { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; @SerializedName(SERIALIZED_NAME_NUMBER_VALUE) @javax.annotation.Nullable private BigDecimal numberValue; - public OpaPolicyAttributeLt() {} + public OpaPolicyAttributeLt() { + } public OpaPolicyAttributeLt numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; @@ -76,7 +68,6 @@ public OpaPolicyAttributeLt numberValue(@javax.annotation.Nullable BigDecimal nu /** * The value to compare the Attribute Key value to - * * @return numberValue */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,53 +137,48 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeLt */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeLt.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyAttributeLt is not found in the empty JSON string", - OpaPolicyAttributeLt.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyAttributeLt.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeLt is not found in the empty JSON string", OpaPolicyAttributeLt.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeLt.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeLt` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeLt.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeLt` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeLt.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeLt' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeLt.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeLt value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeLt read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeLt.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeLt' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeLt.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeLt value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeLt read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java index 00c4abecf..ec71bc04c 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * Attribute less than and equals to criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeLte { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; @SerializedName(SERIALIZED_NAME_NUMBER_VALUE) @javax.annotation.Nullable private BigDecimal numberValue; - public OpaPolicyAttributeLte() {} + public OpaPolicyAttributeLte() { + } public OpaPolicyAttributeLte numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; @@ -76,7 +68,6 @@ public OpaPolicyAttributeLte numberValue(@javax.annotation.Nullable BigDecimal n /** * The value to compare the Attribute Key value to - * * @return numberValue */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,53 +137,48 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeLte */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeLte.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyAttributeLte is not found in the empty JSON string", - OpaPolicyAttributeLte.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyAttributeLte.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeLte is not found in the empty JSON string", OpaPolicyAttributeLte.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeLte.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeLte` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeLte.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeLte` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeLte.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeLte' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeLte.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeLte value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeLte read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeLte.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeLte' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeLte.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeLte value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeLte read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java index c2c9b3162..8ab49c178 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * Attribute not equal to criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeNeq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; @SerializedName(SERIALIZED_NAME_STRING_VALUE) @javax.annotation.Nullable private String stringValue; - public OpaPolicyAttributeNeq() {} + public OpaPolicyAttributeNeq() { + } public OpaPolicyAttributeNeq stringValue(@javax.annotation.Nullable String stringValue) { this.stringValue = stringValue; @@ -75,7 +67,6 @@ public OpaPolicyAttributeNeq stringValue(@javax.annotation.Nullable String strin /** * The value to compare the Attribute Key value to - * * @return stringValue */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeNeq */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeNeq.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyAttributeNeq is not found in the empty JSON string", - OpaPolicyAttributeNeq.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyAttributeNeq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeNeq is not found in the empty JSON string", OpaPolicyAttributeNeq.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeNeq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeNeq` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeNeq.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeNeq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) - && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stringValue").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeNeq.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeNeq' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeNeq.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeNeq value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeNeq read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeNeq.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeNeq' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeNeq.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeNeq value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeNeq read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java index a22d62838..6713346fa 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,19 +52,17 @@ /** * Attribute Not In to criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeNotIn { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; @SerializedName(SERIALIZED_NAME_STRING_VALUES) @javax.annotation.Nullable private List stringValues = new ArrayList<>(); - public OpaPolicyAttributeNotIn() {} + public OpaPolicyAttributeNotIn() { + } - public OpaPolicyAttributeNotIn stringValues( - @javax.annotation.Nullable List stringValues) { + public OpaPolicyAttributeNotIn stringValues(@javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; return this; } @@ -86,7 +77,6 @@ public OpaPolicyAttributeNotIn addStringValuesItem(String stringValuesItem) { /** * The value to compare the Attribute Key value to - * * @return stringValues */ @javax.annotation.Nullable @@ -127,7 +117,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,60 +146,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeNotIn */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeNotIn.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyAttributeNotIn is not found in the empty JSON string", - OpaPolicyAttributeNotIn.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyAttributeNotIn.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeNotIn is not found in the empty JSON string", OpaPolicyAttributeNotIn.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeNotIn.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeNotIn` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeNotIn.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeNotIn` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() - && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValues` to be an array in the JSON string but got `%s`", - jsonObj.get("stringValues").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeNotIn.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeNotIn' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeNotIn.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeNotIn value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeNotIn read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeNotIn.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeNotIn' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeNotIn.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeNotIn value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeNotIn read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInput.java b/src/main/java/com/formkiq/client/model/OpaPolicyInput.java index ee13b3e6a..6d706c610 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInput.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInput.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * OpaPolicyInput */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyInput { public static final String SERIALIZED_NAME_HTTP_METHOD = "httpMethod"; @SerializedName(SERIALIZED_NAME_HTTP_METHOD) @@ -73,7 +64,8 @@ public class OpaPolicyInput { @javax.annotation.Nullable private OpaPolicyInputResource resource; - public OpaPolicyInput() {} + public OpaPolicyInput() { + } public OpaPolicyInput httpMethod(@javax.annotation.Nullable OpaPolicyInputMethod httpMethod) { this.httpMethod = httpMethod; @@ -82,7 +74,6 @@ public OpaPolicyInput httpMethod(@javax.annotation.Nullable OpaPolicyInputMethod /** * Get httpMethod - * * @return httpMethod */ @javax.annotation.Nullable @@ -102,7 +93,6 @@ public OpaPolicyInput resource(@javax.annotation.Nullable OpaPolicyInputResource /** * Get resource - * * @return resource */ @javax.annotation.Nullable @@ -125,8 +115,8 @@ public boolean equals(Object o) { return false; } OpaPolicyInput opaPolicyInput = (OpaPolicyInput) o; - return Objects.equals(this.httpMethod, opaPolicyInput.httpMethod) - && Objects.equals(this.resource, opaPolicyInput.resource); + return Objects.equals(this.httpMethod, opaPolicyInput.httpMethod) && + Objects.equals(this.resource, opaPolicyInput.resource); } @Override @@ -145,7 +135,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,61 +164,56 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyInput */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyInput.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyInput is not found in the empty JSON string", - OpaPolicyInput.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyInput.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyInput is not found in the empty JSON string", OpaPolicyInput.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyInput.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyInput` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyInput.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyInput` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `httpMethod` + if (jsonObj.get("httpMethod") != null && !jsonObj.get("httpMethod").isJsonNull()) { + OpaPolicyInputMethod.validateJsonElement(jsonObj.get("httpMethod")); + } + // validate the optional field `resource` + if (jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) { + OpaPolicyInputResource.validateJsonElement(jsonObj.get("resource")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `httpMethod` - if (jsonObj.get("httpMethod") != null && !jsonObj.get("httpMethod").isJsonNull()) { - OpaPolicyInputMethod.validateJsonElement(jsonObj.get("httpMethod")); - } - // validate the optional field `resource` - if (jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) { - OpaPolicyInputResource.validateJsonElement(jsonObj.get("resource")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyInput.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyInput' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInput.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyInput value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyInput read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyInput.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyInput' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInput.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyInput value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyInput read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java b/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java index 78ad98619..7968b5658 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * OpaPolicyInputMethod */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyInputMethod { public static final String SERIALIZED_NAME_IN = "in"; @SerializedName(SERIALIZED_NAME_IN) @@ -73,7 +64,8 @@ public class OpaPolicyInputMethod { @javax.annotation.Nullable private List notIn = new ArrayList<>(); - public OpaPolicyInputMethod() {} + public OpaPolicyInputMethod() { + } public OpaPolicyInputMethod in(@javax.annotation.Nullable List in) { this.in = in; @@ -90,7 +82,6 @@ public OpaPolicyInputMethod addInItem(String inItem) { /** * List of HTTP Methods - * * @return in */ @javax.annotation.Nullable @@ -118,7 +109,6 @@ public OpaPolicyInputMethod addNotInItem(String notInItem) { /** * List of HTTP Methods - * * @return notIn */ @javax.annotation.Nullable @@ -141,8 +131,8 @@ public boolean equals(Object o) { return false; } OpaPolicyInputMethod opaPolicyInputMethod = (OpaPolicyInputMethod) o; - return Objects.equals(this.in, opaPolicyInputMethod.in) - && Objects.equals(this.notIn, opaPolicyInputMethod.notIn); + return Objects.equals(this.in, opaPolicyInputMethod.in) && + Objects.equals(this.notIn, opaPolicyInputMethod.notIn); } @Override @@ -161,7 +151,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,67 +180,56 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyInputMethod */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyInputMethod.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyInputMethod is not found in the empty JSON string", - OpaPolicyInputMethod.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyInputMethod.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyInputMethod is not found in the empty JSON string", OpaPolicyInputMethod.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyInputMethod.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyInputMethod` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyInputMethod.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyInputMethod` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull() && !jsonObj.get("in").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `in` to be an array in the JSON string but got `%s`", jsonObj.get("in").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull() && !jsonObj.get("notIn").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notIn` to be an array in the JSON string but got `%s`", jsonObj.get("notIn").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull() - && !jsonObj.get("in").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `in` to be an array in the JSON string but got `%s`", - jsonObj.get("in").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull() - && !jsonObj.get("notIn").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `notIn` to be an array in the JSON string but got `%s`", - jsonObj.get("notIn").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyInputMethod.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyInputMethod' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInputMethod.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyInputMethod value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyInputMethod read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyInputMethod.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyInputMethod' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInputMethod.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyInputMethod value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyInputMethod read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java b/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java index 784caf57b..a8761d7a8 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * OpaPolicyInputResource */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyInputResource { public static final String SERIALIZED_NAME_IN = "in"; @SerializedName(SERIALIZED_NAME_IN) @@ -73,7 +64,8 @@ public class OpaPolicyInputResource { @javax.annotation.Nullable private List notIn = new ArrayList<>(); - public OpaPolicyInputResource() {} + public OpaPolicyInputResource() { + } public OpaPolicyInputResource in(@javax.annotation.Nullable List in) { this.in = in; @@ -90,7 +82,6 @@ public OpaPolicyInputResource addInItem(String inItem) { /** * List of Resources - * * @return in */ @javax.annotation.Nullable @@ -118,7 +109,6 @@ public OpaPolicyInputResource addNotInItem(String notInItem) { /** * List of Resources - * * @return notIn */ @javax.annotation.Nullable @@ -141,8 +131,8 @@ public boolean equals(Object o) { return false; } OpaPolicyInputResource opaPolicyInputResource = (OpaPolicyInputResource) o; - return Objects.equals(this.in, opaPolicyInputResource.in) - && Objects.equals(this.notIn, opaPolicyInputResource.notIn); + return Objects.equals(this.in, opaPolicyInputResource.in) && + Objects.equals(this.notIn, opaPolicyInputResource.notIn); } @Override @@ -161,7 +151,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,67 +180,56 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyInputResource */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyInputResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyInputResource is not found in the empty JSON string", - OpaPolicyInputResource.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyInputResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyInputResource is not found in the empty JSON string", OpaPolicyInputResource.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyInputResource.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyInputResource` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyInputResource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyInputResource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull() && !jsonObj.get("in").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `in` to be an array in the JSON string but got `%s`", jsonObj.get("in").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull() && !jsonObj.get("notIn").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notIn` to be an array in the JSON string but got `%s`", jsonObj.get("notIn").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull() - && !jsonObj.get("in").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `in` to be an array in the JSON string but got `%s`", - jsonObj.get("in").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull() - && !jsonObj.get("notIn").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `notIn` to be an array in the JSON string but got `%s`", - jsonObj.get("notIn").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyInputResource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyInputResource' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInputResource.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyInputResource value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyInputResource read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyInputResource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyInputResource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInputResource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyInputResource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyInputResource read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyItem.java b/src/main/java/com/formkiq/client/model/OpaPolicyItem.java index cea078c5e..397fa45a9 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyItem.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyItem.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * OpaPolicyItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyItem { public static final String SERIALIZED_NAME_POLICY = "policy"; @SerializedName(SERIALIZED_NAME_POLICY) @@ -95,7 +86,8 @@ public class OpaPolicyItem { @javax.annotation.Nullable private OpaPolicyInput input; - public OpaPolicyItem() {} + public OpaPolicyItem() { + } public OpaPolicyItem policy(@javax.annotation.Nullable String policy) { this.policy = policy; @@ -104,7 +96,6 @@ public OpaPolicyItem policy(@javax.annotation.Nullable String policy) { /** * OPA Policy in REGO format - * * @return policy */ @javax.annotation.Nullable @@ -132,7 +123,6 @@ public OpaPolicyItem addAllRolesItem(String allRolesItem) { /** * User must match all roles - * * @return allRoles */ @javax.annotation.Nullable @@ -160,7 +150,6 @@ public OpaPolicyItem addAnyRolesItem(String anyRolesItem) { /** * User must match any role - * * @return anyRoles */ @javax.annotation.Nullable @@ -188,7 +177,6 @@ public OpaPolicyItem addExcludedRolesItem(String excludedRolesItem) { /** * User must NOT have these roles - * * @return excludedRoles */ @javax.annotation.Nullable @@ -216,7 +204,6 @@ public OpaPolicyItem addAttributesItem(OpaPolicyAttribute attributesItem) { /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -236,7 +223,6 @@ public OpaPolicyItem input(@javax.annotation.Nullable OpaPolicyInput input) { /** * Get input - * * @return input */ @javax.annotation.Nullable @@ -259,12 +245,12 @@ public boolean equals(Object o) { return false; } OpaPolicyItem opaPolicyItem = (OpaPolicyItem) o; - return Objects.equals(this.policy, opaPolicyItem.policy) - && Objects.equals(this.allRoles, opaPolicyItem.allRoles) - && Objects.equals(this.anyRoles, opaPolicyItem.anyRoles) - && Objects.equals(this.excludedRoles, opaPolicyItem.excludedRoles) - && Objects.equals(this.attributes, opaPolicyItem.attributes) - && Objects.equals(this.input, opaPolicyItem.input); + return Objects.equals(this.policy, opaPolicyItem.policy) && + Objects.equals(this.allRoles, opaPolicyItem.allRoles) && + Objects.equals(this.anyRoles, opaPolicyItem.anyRoles) && + Objects.equals(this.excludedRoles, opaPolicyItem.excludedRoles) && + Objects.equals(this.attributes, opaPolicyItem.attributes) && + Objects.equals(this.input, opaPolicyItem.input); } @Override @@ -287,7 +273,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -302,8 +289,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("policy", "allRoles", "anyRoles", "excludedRoles", "attributes", "input")); + openapiFields = new HashSet(Arrays.asList("policy", "allRoles", "anyRoles", "excludedRoles", "attributes", "input")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -316,100 +302,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpaPolicyItem is not found in the empty JSON string", - OpaPolicyItem.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpaPolicyItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyItem is not found in the empty JSON string", OpaPolicyItem.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpaPolicyItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("policy") != null && !jsonObj.get("policy").isJsonNull()) - && !jsonObj.get("policy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `policy` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("policy").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allRoles") != null && !jsonObj.get("allRoles").isJsonNull() - && !jsonObj.get("allRoles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `allRoles` to be an array in the JSON string but got `%s`", - jsonObj.get("allRoles").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("anyRoles") != null && !jsonObj.get("anyRoles").isJsonNull() - && !jsonObj.get("anyRoles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `anyRoles` to be an array in the JSON string but got `%s`", - jsonObj.get("anyRoles").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("excludedRoles") != null && !jsonObj.get("excludedRoles").isJsonNull() - && !jsonObj.get("excludedRoles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `excludedRoles` to be an array in the JSON string but got `%s`", - jsonObj.get("excludedRoles").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("policy") != null && !jsonObj.get("policy").isJsonNull()) && !jsonObj.get("policy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policy").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allRoles") != null && !jsonObj.get("allRoles").isJsonNull() && !jsonObj.get("allRoles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allRoles` to be an array in the JSON string but got `%s`", jsonObj.get("allRoles").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("anyRoles") != null && !jsonObj.get("anyRoles").isJsonNull() && !jsonObj.get("anyRoles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anyRoles` to be an array in the JSON string but got `%s`", jsonObj.get("anyRoles").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("excludedRoles") != null && !jsonObj.get("excludedRoles").isJsonNull() && !jsonObj.get("excludedRoles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `excludedRoles` to be an array in the JSON string but got `%s`", jsonObj.get("excludedRoles").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + OpaPolicyAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - OpaPolicyAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } - // validate the optional field `input` - if (jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) { - OpaPolicyInput.validateJsonElement(jsonObj.get("input")); - } + // validate the optional field `input` + if (jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) { + OpaPolicyInput.validateJsonElement(jsonObj.get("input")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchAlias.java b/src/main/java/com/formkiq/client/model/OpenSearchAlias.java index 47934af86..ca38077bb 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchAlias.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchAlias.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * OpenSearchAlias */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchAlias { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nullable private String name; - public OpenSearchAlias() {} + public OpenSearchAlias() { + } public OpenSearchAlias name(@javax.annotation.Nullable String name) { this.name = name; @@ -75,7 +67,6 @@ public OpenSearchAlias name(@javax.annotation.Nullable String name) { /** * Name of Alias - * * @return name */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchAlias */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchAlias.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpenSearchAlias is not found in the empty JSON string", - OpenSearchAlias.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpenSearchAlias.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchAlias is not found in the empty JSON string", OpenSearchAlias.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchAlias.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpenSearchAlias` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchAlias.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchAlias` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchAlias.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchAlias' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpenSearchAlias.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchAlias value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchAlias read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchAlias.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchAlias' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchAlias.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchAlias value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchAlias read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchIndex.java b/src/main/java/com/formkiq/client/model/OpenSearchIndex.java index e0ae8c75d..4539bee35 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchIndex.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchIndex.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * OpenSearchIndex */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchIndex { public static final String SERIALIZED_NAME_NUMBER_OF_REPLICAS = "numberOfReplicas"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_REPLICAS) @@ -94,7 +85,8 @@ public class OpenSearchIndex { @javax.annotation.Nullable private List aliases = new ArrayList<>(); - public OpenSearchIndex() {} + public OpenSearchIndex() { + } public OpenSearchIndex numberOfReplicas(@javax.annotation.Nullable String numberOfReplicas) { this.numberOfReplicas = numberOfReplicas; @@ -103,7 +95,6 @@ public OpenSearchIndex numberOfReplicas(@javax.annotation.Nullable String number /** * The number of replicas per shard - * * @return numberOfReplicas */ @javax.annotation.Nullable @@ -123,7 +114,6 @@ public OpenSearchIndex numberOfShards(@javax.annotation.Nullable String numberOf /** * The number of shards in index - * * @return numberOfShards */ @javax.annotation.Nullable @@ -143,7 +133,6 @@ public OpenSearchIndex documentCount(@javax.annotation.Nullable String documentC /** * The number of documents in index - * * @return documentCount */ @javax.annotation.Nullable @@ -163,7 +152,6 @@ public OpenSearchIndex storeSize(@javax.annotation.Nullable String storeSize) { /** * The store size of the index - * * @return storeSize */ @javax.annotation.Nullable @@ -183,7 +171,6 @@ public OpenSearchIndex name(@javax.annotation.Nullable String name) { /** * Name of Index - * * @return name */ @javax.annotation.Nullable @@ -211,7 +198,6 @@ public OpenSearchIndex addAliasesItem(OpenSearchAlias aliasesItem) { /** * Get aliases - * * @return aliases */ @javax.annotation.Nullable @@ -234,12 +220,12 @@ public boolean equals(Object o) { return false; } OpenSearchIndex openSearchIndex = (OpenSearchIndex) o; - return Objects.equals(this.numberOfReplicas, openSearchIndex.numberOfReplicas) - && Objects.equals(this.numberOfShards, openSearchIndex.numberOfShards) - && Objects.equals(this.documentCount, openSearchIndex.documentCount) - && Objects.equals(this.storeSize, openSearchIndex.storeSize) - && Objects.equals(this.name, openSearchIndex.name) - && Objects.equals(this.aliases, openSearchIndex.aliases); + return Objects.equals(this.numberOfReplicas, openSearchIndex.numberOfReplicas) && + Objects.equals(this.numberOfShards, openSearchIndex.numberOfShards) && + Objects.equals(this.documentCount, openSearchIndex.documentCount) && + Objects.equals(this.storeSize, openSearchIndex.storeSize) && + Objects.equals(this.name, openSearchIndex.name) && + Objects.equals(this.aliases, openSearchIndex.aliases); } @Override @@ -262,7 +248,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -277,8 +264,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("numberOfReplicas", "numberOfShards", - "documentCount", "storeSize", "name", "aliases")); + openapiFields = new HashSet(Arrays.asList("numberOfReplicas", "numberOfShards", "documentCount", "storeSize", "name", "aliases")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -291,99 +277,77 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchIndex */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchIndex.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpenSearchIndex is not found in the empty JSON string", - OpenSearchIndex.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpenSearchIndex.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchIndex is not found in the empty JSON string", OpenSearchIndex.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchIndex.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpenSearchIndex` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchIndex.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchIndex` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("numberOfReplicas") != null && !jsonObj.get("numberOfReplicas").isJsonNull()) - && !jsonObj.get("numberOfReplicas").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberOfReplicas` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("numberOfReplicas").toString())); - } - if ((jsonObj.get("numberOfShards") != null && !jsonObj.get("numberOfShards").isJsonNull()) - && !jsonObj.get("numberOfShards").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberOfShards` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("numberOfShards").toString())); - } - if ((jsonObj.get("documentCount") != null && !jsonObj.get("documentCount").isJsonNull()) - && !jsonObj.get("documentCount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentCount` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentCount").toString())); - } - if ((jsonObj.get("storeSize") != null && !jsonObj.get("storeSize").isJsonNull()) - && !jsonObj.get("storeSize").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `storeSize` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("storeSize").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if (jsonObj.get("aliases") != null && !jsonObj.get("aliases").isJsonNull()) { - JsonArray jsonArrayaliases = jsonObj.getAsJsonArray("aliases"); - if (jsonArrayaliases != null) { - // ensure the json data is an array - if (!jsonObj.get("aliases").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `aliases` to be an array in the JSON string but got `%s`", - jsonObj.get("aliases").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("numberOfReplicas") != null && !jsonObj.get("numberOfReplicas").isJsonNull()) && !jsonObj.get("numberOfReplicas").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberOfReplicas` to be a primitive type in the JSON string but got `%s`", jsonObj.get("numberOfReplicas").toString())); + } + if ((jsonObj.get("numberOfShards") != null && !jsonObj.get("numberOfShards").isJsonNull()) && !jsonObj.get("numberOfShards").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberOfShards` to be a primitive type in the JSON string but got `%s`", jsonObj.get("numberOfShards").toString())); + } + if ((jsonObj.get("documentCount") != null && !jsonObj.get("documentCount").isJsonNull()) && !jsonObj.get("documentCount").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentCount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentCount").toString())); + } + if ((jsonObj.get("storeSize") != null && !jsonObj.get("storeSize").isJsonNull()) && !jsonObj.get("storeSize").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `storeSize` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storeSize").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("aliases") != null && !jsonObj.get("aliases").isJsonNull()) { + JsonArray jsonArrayaliases = jsonObj.getAsJsonArray("aliases"); + if (jsonArrayaliases != null) { + // ensure the json data is an array + if (!jsonObj.get("aliases").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `aliases` to be an array in the JSON string but got `%s`", jsonObj.get("aliases").toString())); + } + + // validate the optional field `aliases` (array) + for (int i = 0; i < jsonArrayaliases.size(); i++) { + OpenSearchAlias.validateJsonElement(jsonArrayaliases.get(i)); + }; } - - // validate the optional field `aliases` (array) - for (int i = 0; i < jsonArrayaliases.size(); i++) { - OpenSearchAlias.validateJsonElement(jsonArrayaliases.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchIndex.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchIndex' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpenSearchIndex.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchIndex value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchIndex read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchIndex.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchIndex' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchIndex.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchIndex value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchIndex read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java b/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java index 191251b6d..78781a8ee 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * OpenSearchIndexSetting */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchIndexSetting { public static final String SERIALIZED_NAME_NUMBER_OF_REPLICAS = "numberOfReplicas"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_REPLICAS) @@ -71,17 +62,16 @@ public class OpenSearchIndexSetting { @javax.annotation.Nullable private String numberOfShards; - public OpenSearchIndexSetting() {} + public OpenSearchIndexSetting() { + } - public OpenSearchIndexSetting numberOfReplicas( - @javax.annotation.Nullable String numberOfReplicas) { + public OpenSearchIndexSetting numberOfReplicas(@javax.annotation.Nullable String numberOfReplicas) { this.numberOfReplicas = numberOfReplicas; return this; } /** * The number of replicas per shard - * * @return numberOfReplicas */ @javax.annotation.Nullable @@ -101,7 +91,6 @@ public OpenSearchIndexSetting numberOfShards(@javax.annotation.Nullable String n /** * The number of shards in index - * * @return numberOfShards */ @javax.annotation.Nullable @@ -124,8 +113,8 @@ public boolean equals(Object o) { return false; } OpenSearchIndexSetting openSearchIndexSetting = (OpenSearchIndexSetting) o; - return Objects.equals(this.numberOfReplicas, openSearchIndexSetting.numberOfReplicas) - && Objects.equals(this.numberOfShards, openSearchIndexSetting.numberOfShards); + return Objects.equals(this.numberOfReplicas, openSearchIndexSetting.numberOfReplicas) && + Objects.equals(this.numberOfShards, openSearchIndexSetting.numberOfShards); } @Override @@ -144,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchIndexSetting */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchIndexSetting.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpenSearchIndexSetting is not found in the empty JSON string", - OpenSearchIndexSetting.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpenSearchIndexSetting.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchIndexSetting is not found in the empty JSON string", OpenSearchIndexSetting.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchIndexSetting.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpenSearchIndexSetting` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchIndexSetting.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchIndexSetting` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("numberOfReplicas") != null && !jsonObj.get("numberOfReplicas").isJsonNull()) && !jsonObj.get("numberOfReplicas").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberOfReplicas` to be a primitive type in the JSON string but got `%s`", jsonObj.get("numberOfReplicas").toString())); + } + if ((jsonObj.get("numberOfShards") != null && !jsonObj.get("numberOfShards").isJsonNull()) && !jsonObj.get("numberOfShards").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberOfShards` to be a primitive type in the JSON string but got `%s`", jsonObj.get("numberOfShards").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("numberOfReplicas") != null && !jsonObj.get("numberOfReplicas").isJsonNull()) - && !jsonObj.get("numberOfReplicas").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberOfReplicas` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("numberOfReplicas").toString())); - } - if ((jsonObj.get("numberOfShards") != null && !jsonObj.get("numberOfShards").isJsonNull()) - && !jsonObj.get("numberOfShards").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberOfShards` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("numberOfShards").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchIndexSetting.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchIndexSetting' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpenSearchIndexSetting.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchIndexSetting value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchIndexSetting read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchIndexSetting.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchIndexSetting' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchIndexSetting.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchIndexSetting value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchIndexSetting read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java b/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java index daae72df1..89af44e51 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * OpenSearchS3Repository */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchS3Repository { public static final String SERIALIZED_NAME_REPOSITORY = "repository"; @SerializedName(SERIALIZED_NAME_REPOSITORY) @@ -71,7 +62,8 @@ public class OpenSearchS3Repository { @javax.annotation.Nullable private String bucket; - public OpenSearchS3Repository() {} + public OpenSearchS3Repository() { + } public OpenSearchS3Repository repository(@javax.annotation.Nullable String repository) { this.repository = repository; @@ -80,7 +72,6 @@ public OpenSearchS3Repository repository(@javax.annotation.Nullable String repos /** * Name of the Repository - * * @return repository */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public OpenSearchS3Repository bucket(@javax.annotation.Nullable String bucket) { /** * Name of the S3 bucket - * * @return bucket */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } OpenSearchS3Repository openSearchS3Repository = (OpenSearchS3Repository) o; - return Objects.equals(this.repository, openSearchS3Repository.repository) - && Objects.equals(this.bucket, openSearchS3Repository.bucket); + return Objects.equals(this.repository, openSearchS3Repository.repository) && + Objects.equals(this.bucket, openSearchS3Repository.bucket); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchS3Repository */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchS3Repository.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpenSearchS3Repository is not found in the empty JSON string", - OpenSearchS3Repository.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpenSearchS3Repository.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchS3Repository is not found in the empty JSON string", OpenSearchS3Repository.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchS3Repository.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpenSearchS3Repository` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchS3Repository.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchS3Repository` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("repository") != null && !jsonObj.get("repository").isJsonNull()) && !jsonObj.get("repository").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `repository` to be a primitive type in the JSON string but got `%s`", jsonObj.get("repository").toString())); + } + if ((jsonObj.get("bucket") != null && !jsonObj.get("bucket").isJsonNull()) && !jsonObj.get("bucket").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bucket` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bucket").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("repository") != null && !jsonObj.get("repository").isJsonNull()) - && !jsonObj.get("repository").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `repository` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("repository").toString())); - } - if ((jsonObj.get("bucket") != null && !jsonObj.get("bucket").isJsonNull()) - && !jsonObj.get("bucket").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `bucket` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("bucket").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchS3Repository.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchS3Repository' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpenSearchS3Repository.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchS3Repository value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchS3Repository read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchS3Repository.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchS3Repository' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchS3Repository.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchS3Repository value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchS3Repository read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java index e7bb9c875..65b206f6d 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * OpenSearchSnapshot */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchSnapshot { public static final String SERIALIZED_NAME_SNAPSHOT = "snapshot"; @SerializedName(SERIALIZED_NAME_SNAPSHOT) @@ -126,7 +117,8 @@ public class OpenSearchSnapshot { @javax.annotation.Nullable private BigDecimal durationInMillis; - public OpenSearchSnapshot() {} + public OpenSearchSnapshot() { + } public OpenSearchSnapshot snapshot(@javax.annotation.Nullable String snapshot) { this.snapshot = snapshot; @@ -135,7 +127,6 @@ public OpenSearchSnapshot snapshot(@javax.annotation.Nullable String snapshot) { /** * Snapshot name - * * @return snapshot */ @javax.annotation.Nullable @@ -155,7 +146,6 @@ public OpenSearchSnapshot uuid(@javax.annotation.Nullable String uuid) { /** * Snapshot’s universally unique identifier (UUID) - * * @return uuid */ @javax.annotation.Nullable @@ -175,7 +165,6 @@ public OpenSearchSnapshot version(@javax.annotation.Nullable String version) { /** * Open Search version that created the snapshot - * * @return version */ @javax.annotation.Nullable @@ -203,7 +192,6 @@ public OpenSearchSnapshot addIndicesItem(String indicesItem) { /** * Indices in the snapshot - * * @return indices */ @javax.annotation.Nullable @@ -223,7 +211,6 @@ public OpenSearchSnapshot shards(@javax.annotation.Nullable OpenSearchSnapshotSh /** * Get shards - * * @return shards */ @javax.annotation.Nullable @@ -236,8 +223,7 @@ public void setShards(@javax.annotation.Nullable OpenSearchSnapshotShard shards) } - public OpenSearchSnapshot failures( - @javax.annotation.Nullable List failures) { + public OpenSearchSnapshot failures(@javax.annotation.Nullable List failures) { this.failures = failures; return this; } @@ -252,7 +238,6 @@ public OpenSearchSnapshot addFailuresItem(OpenSearchSnapshotFailure failuresItem /** * Get failures - * * @return failures */ @javax.annotation.Nullable @@ -272,7 +257,6 @@ public OpenSearchSnapshot state(@javax.annotation.Nullable String state) { /** * Snapshot status. Possible values: IN_PROGRESS, SUCCESS, FAILED, PARTIAL - * * @return state */ @javax.annotation.Nullable @@ -292,7 +276,6 @@ public OpenSearchSnapshot startTime(@javax.annotation.Nullable String startTime) /** * Date/time when the snapshot creation process began - * * @return startTime */ @javax.annotation.Nullable @@ -305,15 +288,13 @@ public void setStartTime(@javax.annotation.Nullable String startTime) { } - public OpenSearchSnapshot startTimeInMillis( - @javax.annotation.Nullable BigDecimal startTimeInMillis) { + public OpenSearchSnapshot startTimeInMillis(@javax.annotation.Nullable BigDecimal startTimeInMillis) { this.startTimeInMillis = startTimeInMillis; return this; } /** * Time (in milliseconds) when the snapshot creation process began - * * @return startTimeInMillis */ @javax.annotation.Nullable @@ -333,7 +314,6 @@ public OpenSearchSnapshot endTime(@javax.annotation.Nullable String endTime) { /** * Date/time when the snapshot creation process ended - * * @return endTime */ @javax.annotation.Nullable @@ -353,7 +333,6 @@ public OpenSearchSnapshot endTimeInMillis(@javax.annotation.Nullable BigDecimal /** * Time (in milliseconds) when the snapshot creation process ended - * * @return endTimeInMillis */ @javax.annotation.Nullable @@ -366,15 +345,13 @@ public void setEndTimeInMillis(@javax.annotation.Nullable BigDecimal endTimeInMi } - public OpenSearchSnapshot durationInMillis( - @javax.annotation.Nullable BigDecimal durationInMillis) { + public OpenSearchSnapshot durationInMillis(@javax.annotation.Nullable BigDecimal durationInMillis) { this.durationInMillis = durationInMillis; return this; } /** * Total time (in milliseconds) that the snapshot creation process lasted - * * @return durationInMillis */ @javax.annotation.Nullable @@ -397,24 +374,23 @@ public boolean equals(Object o) { return false; } OpenSearchSnapshot openSearchSnapshot = (OpenSearchSnapshot) o; - return Objects.equals(this.snapshot, openSearchSnapshot.snapshot) - && Objects.equals(this.uuid, openSearchSnapshot.uuid) - && Objects.equals(this.version, openSearchSnapshot.version) - && Objects.equals(this.indices, openSearchSnapshot.indices) - && Objects.equals(this.shards, openSearchSnapshot.shards) - && Objects.equals(this.failures, openSearchSnapshot.failures) - && Objects.equals(this.state, openSearchSnapshot.state) - && Objects.equals(this.startTime, openSearchSnapshot.startTime) - && Objects.equals(this.startTimeInMillis, openSearchSnapshot.startTimeInMillis) - && Objects.equals(this.endTime, openSearchSnapshot.endTime) - && Objects.equals(this.endTimeInMillis, openSearchSnapshot.endTimeInMillis) - && Objects.equals(this.durationInMillis, openSearchSnapshot.durationInMillis); + return Objects.equals(this.snapshot, openSearchSnapshot.snapshot) && + Objects.equals(this.uuid, openSearchSnapshot.uuid) && + Objects.equals(this.version, openSearchSnapshot.version) && + Objects.equals(this.indices, openSearchSnapshot.indices) && + Objects.equals(this.shards, openSearchSnapshot.shards) && + Objects.equals(this.failures, openSearchSnapshot.failures) && + Objects.equals(this.state, openSearchSnapshot.state) && + Objects.equals(this.startTime, openSearchSnapshot.startTime) && + Objects.equals(this.startTimeInMillis, openSearchSnapshot.startTimeInMillis) && + Objects.equals(this.endTime, openSearchSnapshot.endTime) && + Objects.equals(this.endTimeInMillis, openSearchSnapshot.endTimeInMillis) && + Objects.equals(this.durationInMillis, openSearchSnapshot.durationInMillis); } @Override public int hashCode() { - return Objects.hash(snapshot, uuid, version, indices, shards, failures, state, startTime, - startTimeInMillis, endTime, endTimeInMillis, durationInMillis); + return Objects.hash(snapshot, uuid, version, indices, shards, failures, state, startTime, startTimeInMillis, endTime, endTimeInMillis, durationInMillis); } @Override @@ -438,7 +414,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -453,9 +430,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("snapshot", "uuid", "version", "indices", - "shards", "failures", "state", "start_time", "start_time_in_millis", "end_time", - "end_time_in_millis", "duration_in_millis")); + openapiFields = new HashSet(Arrays.asList("snapshot", "uuid", "version", "indices", "shards", "failures", "state", "start_time", "start_time_in_millis", "end_time", "end_time_in_millis", "duration_in_millis")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -468,116 +443,88 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchSnapshot */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchSnapshot.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpenSearchSnapshot is not found in the empty JSON string", - OpenSearchSnapshot.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpenSearchSnapshot.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchSnapshot is not found in the empty JSON string", OpenSearchSnapshot.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchSnapshot.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshot` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchSnapshot.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshot` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("snapshot") != null && !jsonObj.get("snapshot").isJsonNull()) - && !jsonObj.get("snapshot").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `snapshot` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("snapshot").toString())); - } - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) - && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("uuid").toString())); - } - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) - && !jsonObj.get("version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `version` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("version").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("indices") != null && !jsonObj.get("indices").isJsonNull() - && !jsonObj.get("indices").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `indices` to be an array in the JSON string but got `%s`", - jsonObj.get("indices").toString())); - } - // validate the optional field `shards` - if (jsonObj.get("shards") != null && !jsonObj.get("shards").isJsonNull()) { - OpenSearchSnapshotShard.validateJsonElement(jsonObj.get("shards")); - } - if (jsonObj.get("failures") != null && !jsonObj.get("failures").isJsonNull()) { - JsonArray jsonArrayfailures = jsonObj.getAsJsonArray("failures"); - if (jsonArrayfailures != null) { - // ensure the json data is an array - if (!jsonObj.get("failures").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `failures` to be an array in the JSON string but got `%s`", - jsonObj.get("failures").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("snapshot") != null && !jsonObj.get("snapshot").isJsonNull()) && !jsonObj.get("snapshot").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `snapshot` to be a primitive type in the JSON string but got `%s`", jsonObj.get("snapshot").toString())); + } + if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + } + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("indices") != null && !jsonObj.get("indices").isJsonNull() && !jsonObj.get("indices").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indices` to be an array in the JSON string but got `%s`", jsonObj.get("indices").toString())); + } + // validate the optional field `shards` + if (jsonObj.get("shards") != null && !jsonObj.get("shards").isJsonNull()) { + OpenSearchSnapshotShard.validateJsonElement(jsonObj.get("shards")); + } + if (jsonObj.get("failures") != null && !jsonObj.get("failures").isJsonNull()) { + JsonArray jsonArrayfailures = jsonObj.getAsJsonArray("failures"); + if (jsonArrayfailures != null) { + // ensure the json data is an array + if (!jsonObj.get("failures").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `failures` to be an array in the JSON string but got `%s`", jsonObj.get("failures").toString())); + } + + // validate the optional field `failures` (array) + for (int i = 0; i < jsonArrayfailures.size(); i++) { + OpenSearchSnapshotFailure.validateJsonElement(jsonArrayfailures.get(i)); + }; } - - // validate the optional field `failures` (array) - for (int i = 0; i < jsonArrayfailures.size(); i++) { - OpenSearchSnapshotFailure.validateJsonElement(jsonArrayfailures.get(i)); - } ; } - } - if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) - && !jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `state` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("state").toString())); - } - if ((jsonObj.get("start_time") != null && !jsonObj.get("start_time").isJsonNull()) - && !jsonObj.get("start_time").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `start_time` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("start_time").toString())); - } - if ((jsonObj.get("end_time") != null && !jsonObj.get("end_time").isJsonNull()) - && !jsonObj.get("end_time").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `end_time` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("end_time").toString())); - } + if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + } + if ((jsonObj.get("start_time") != null && !jsonObj.get("start_time").isJsonNull()) && !jsonObj.get("start_time").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `start_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("start_time").toString())); + } + if ((jsonObj.get("end_time") != null && !jsonObj.get("end_time").isJsonNull()) && !jsonObj.get("end_time").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `end_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("end_time").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchSnapshot.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchSnapshot' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshot.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchSnapshot value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchSnapshot read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchSnapshot.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchSnapshot' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshot.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchSnapshot value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchSnapshot read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java index 234a7e0bf..279a2280a 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * Details about a failure for a specific shard in a snapshot. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchSnapshotFailure { public static final String SERIALIZED_NAME_INDEX = "index"; @SerializedName(SERIALIZED_NAME_INDEX) @@ -91,7 +82,8 @@ public class OpenSearchSnapshotFailure { @javax.annotation.Nullable private String status; - public OpenSearchSnapshotFailure() {} + public OpenSearchSnapshotFailure() { + } public OpenSearchSnapshotFailure index(@javax.annotation.Nullable String index) { this.index = index; @@ -100,7 +92,6 @@ public OpenSearchSnapshotFailure index(@javax.annotation.Nullable String index) /** * The index name. - * * @return index */ @javax.annotation.Nullable @@ -120,7 +111,6 @@ public OpenSearchSnapshotFailure indexUuid(@javax.annotation.Nullable String ind /** * UUID of the index. - * * @return indexUuid */ @javax.annotation.Nullable @@ -140,7 +130,6 @@ public OpenSearchSnapshotFailure shardId(@javax.annotation.Nullable Integer shar /** * Shard identifier. - * * @return shardId */ @javax.annotation.Nullable @@ -160,7 +149,6 @@ public OpenSearchSnapshotFailure reason(@javax.annotation.Nullable String reason /** * Full exception/message explaining why the failure occurred. - * * @return reason */ @javax.annotation.Nullable @@ -180,7 +168,6 @@ public OpenSearchSnapshotFailure nodeId(@javax.annotation.Nullable String nodeId /** * ID of the node handling that shard. - * * @return nodeId */ @javax.annotation.Nullable @@ -200,7 +187,6 @@ public OpenSearchSnapshotFailure status(@javax.annotation.Nullable String status /** * Status of the failure (e.g., INTERNAL_SERVER_ERROR). - * * @return status */ @javax.annotation.Nullable @@ -223,12 +209,12 @@ public boolean equals(Object o) { return false; } OpenSearchSnapshotFailure openSearchSnapshotFailure = (OpenSearchSnapshotFailure) o; - return Objects.equals(this.index, openSearchSnapshotFailure.index) - && Objects.equals(this.indexUuid, openSearchSnapshotFailure.indexUuid) - && Objects.equals(this.shardId, openSearchSnapshotFailure.shardId) - && Objects.equals(this.reason, openSearchSnapshotFailure.reason) - && Objects.equals(this.nodeId, openSearchSnapshotFailure.nodeId) - && Objects.equals(this.status, openSearchSnapshotFailure.status); + return Objects.equals(this.index, openSearchSnapshotFailure.index) && + Objects.equals(this.indexUuid, openSearchSnapshotFailure.indexUuid) && + Objects.equals(this.shardId, openSearchSnapshotFailure.shardId) && + Objects.equals(this.reason, openSearchSnapshotFailure.reason) && + Objects.equals(this.nodeId, openSearchSnapshotFailure.nodeId) && + Objects.equals(this.status, openSearchSnapshotFailure.status); } @Override @@ -251,7 +237,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -266,8 +253,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("index", "index_uuid", "shard_id", "reason", "node_id", "status")); + openapiFields = new HashSet(Arrays.asList("index", "index_uuid", "shard_id", "reason", "node_id", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -280,83 +266,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchSnapshotFailure */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchSnapshotFailure.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpenSearchSnapshotFailure is not found in the empty JSON string", - OpenSearchSnapshotFailure.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpenSearchSnapshotFailure.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchSnapshotFailure is not found in the empty JSON string", OpenSearchSnapshotFailure.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchSnapshotFailure.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshotFailure` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchSnapshotFailure.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshotFailure` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("index") != null && !jsonObj.get("index").isJsonNull()) && !jsonObj.get("index").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `index` to be a primitive type in the JSON string but got `%s`", jsonObj.get("index").toString())); + } + if ((jsonObj.get("index_uuid") != null && !jsonObj.get("index_uuid").isJsonNull()) && !jsonObj.get("index_uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `index_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("index_uuid").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); + } + if ((jsonObj.get("node_id") != null && !jsonObj.get("node_id").isJsonNull()) && !jsonObj.get("node_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `node_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("node_id").toString())); + } + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("index") != null && !jsonObj.get("index").isJsonNull()) - && !jsonObj.get("index").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `index` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("index").toString())); - } - if ((jsonObj.get("index_uuid") != null && !jsonObj.get("index_uuid").isJsonNull()) - && !jsonObj.get("index_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `index_uuid` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("index_uuid").toString())); - } - if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) - && !jsonObj.get("reason").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("reason").toString())); - } - if ((jsonObj.get("node_id") != null && !jsonObj.get("node_id").isJsonNull()) - && !jsonObj.get("node_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `node_id` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("node_id").toString())); - } - if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) - && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `status` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("status").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchSnapshotFailure.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchSnapshotFailure' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshotFailure.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchSnapshotFailure value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchSnapshotFailure read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchSnapshotFailure.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchSnapshotFailure' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshotFailure.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchSnapshotFailure value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchSnapshotFailure read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java index 588094b4b..2b81f5170 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * OpenSearchSnapshotShard */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchSnapshotShard { public static final String SERIALIZED_NAME_TOTAL = "total"; @SerializedName(SERIALIZED_NAME_TOTAL) @@ -77,7 +68,8 @@ public class OpenSearchSnapshotShard { @javax.annotation.Nullable private BigDecimal successful; - public OpenSearchSnapshotShard() {} + public OpenSearchSnapshotShard() { + } public OpenSearchSnapshotShard total(@javax.annotation.Nullable BigDecimal total) { this.total = total; @@ -86,7 +78,6 @@ public OpenSearchSnapshotShard total(@javax.annotation.Nullable BigDecimal total /** * Total number of shards - * * @return total */ @javax.annotation.Nullable @@ -106,7 +97,6 @@ public OpenSearchSnapshotShard failed(@javax.annotation.Nullable BigDecimal fail /** * Failed number of shards - * * @return failed */ @javax.annotation.Nullable @@ -126,7 +116,6 @@ public OpenSearchSnapshotShard successful(@javax.annotation.Nullable BigDecimal /** * Successful number of shards - * * @return successful */ @javax.annotation.Nullable @@ -149,9 +138,9 @@ public boolean equals(Object o) { return false; } OpenSearchSnapshotShard openSearchSnapshotShard = (OpenSearchSnapshotShard) o; - return Objects.equals(this.total, openSearchSnapshotShard.total) - && Objects.equals(this.failed, openSearchSnapshotShard.failed) - && Objects.equals(this.successful, openSearchSnapshotShard.successful); + return Objects.equals(this.total, openSearchSnapshotShard.total) && + Objects.equals(this.failed, openSearchSnapshotShard.failed) && + Objects.equals(this.successful, openSearchSnapshotShard.successful); } @Override @@ -171,7 +160,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,53 +189,48 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchSnapshotShard */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchSnapshotShard.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in OpenSearchSnapshotShard is not found in the empty JSON string", - OpenSearchSnapshotShard.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!OpenSearchSnapshotShard.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchSnapshotShard is not found in the empty JSON string", OpenSearchSnapshotShard.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchSnapshotShard.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshotShard` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchSnapshotShard.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshotShard` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchSnapshotShard.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchSnapshotShard' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshotShard.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchSnapshotShard value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchSnapshotShard read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchSnapshotShard.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchSnapshotShard' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshotShard.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchSnapshotShard value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchSnapshotShard read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/PdfDocument.java b/src/main/java/com/formkiq/client/model/PdfDocument.java index 995b0906f..930956002 100644 --- a/src/main/java/com/formkiq/client/model/PdfDocument.java +++ b/src/main/java/com/formkiq/client/model/PdfDocument.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,16 +53,15 @@ /** * PdfDocument */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class PdfDocument { public static final String SERIALIZED_NAME_FIELDS = "fields"; @SerializedName(SERIALIZED_NAME_FIELDS) @javax.annotation.Nullable private List fields = new ArrayList<>(); - public PdfDocument() {} + public PdfDocument() { + } public PdfDocument fields(@javax.annotation.Nullable List fields) { this.fields = fields; @@ -86,7 +78,6 @@ public PdfDocument addFieldsItem(PdfDocumentField fieldsItem) { /** * List of document fields - * * @return fields */ @javax.annotation.Nullable @@ -127,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,69 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to PdfDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!PdfDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in PdfDocument is not found in the empty JSON string", - PdfDocument.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!PdfDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PdfDocument is not found in the empty JSON string", PdfDocument.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PdfDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `PdfDocument` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!PdfDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PdfDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonNull()) { - JsonArray jsonArrayfields = jsonObj.getAsJsonArray("fields"); - if (jsonArrayfields != null) { - // ensure the json data is an array - if (!jsonObj.get("fields").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `fields` to be an array in the JSON string but got `%s`", - jsonObj.get("fields").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonNull()) { + JsonArray jsonArrayfields = jsonObj.getAsJsonArray("fields"); + if (jsonArrayfields != null) { + // ensure the json data is an array + if (!jsonObj.get("fields").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fields` to be an array in the JSON string but got `%s`", jsonObj.get("fields").toString())); + } + + // validate the optional field `fields` (array) + for (int i = 0; i < jsonArrayfields.size(); i++) { + PdfDocumentField.validateJsonElement(jsonArrayfields.get(i)); + }; } - - // validate the optional field `fields` (array) - for (int i = 0; i < jsonArrayfields.size(); i++) { - PdfDocumentField.validateJsonElement(jsonArrayfields.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PdfDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PdfDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(PdfDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PdfDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public PdfDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!PdfDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PdfDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PdfDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PdfDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PdfDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/PdfDocumentField.java b/src/main/java/com/formkiq/client/model/PdfDocumentField.java index b7e4be605..7f52e34eb 100644 --- a/src/main/java/com/formkiq/client/model/PdfDocumentField.java +++ b/src/main/java/com/formkiq/client/model/PdfDocumentField.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * PdfDocumentField */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class PdfDocumentField { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) @@ -71,7 +62,8 @@ public class PdfDocumentField { @javax.annotation.Nullable private String value; - public PdfDocumentField() {} + public PdfDocumentField() { + } public PdfDocumentField field(@javax.annotation.Nullable String field) { this.field = field; @@ -80,7 +72,6 @@ public PdfDocumentField field(@javax.annotation.Nullable String field) { /** * Name of Field - * * @return field */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public PdfDocumentField value(@javax.annotation.Nullable String value) { /** * Value of Field - * * @return value */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } PdfDocumentField pdfDocumentField = (PdfDocumentField) o; - return Objects.equals(this.field, pdfDocumentField.field) - && Objects.equals(this.value, pdfDocumentField.value); + return Objects.equals(this.field, pdfDocumentField.field) && + Objects.equals(this.value, pdfDocumentField.value); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to PdfDocumentField */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!PdfDocumentField.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in PdfDocumentField is not found in the empty JSON string", - PdfDocumentField.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!PdfDocumentField.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PdfDocumentField is not found in the empty JSON string", PdfDocumentField.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PdfDocumentField.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `PdfDocumentField` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!PdfDocumentField.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PdfDocumentField` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("field") != null && !jsonObj.get("field").isJsonNull()) && !jsonObj.get("field").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `field` to be a primitive type in the JSON string but got `%s`", jsonObj.get("field").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("field") != null && !jsonObj.get("field").isJsonNull()) - && !jsonObj.get("field").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `field` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("field").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PdfDocumentField.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PdfDocumentField' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(PdfDocumentField.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PdfDocumentField value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public PdfDocumentField read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!PdfDocumentField.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PdfDocumentField' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PdfDocumentField.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PdfDocumentField value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PdfDocumentField read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java b/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java index 9c5a9bc2e..375851d8a 100644 --- a/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * QueryFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class QueryFulltextResponse { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) @javax.annotation.Nullable private Object result; - public QueryFulltextResponse() {} + public QueryFulltextResponse() { + } public QueryFulltextResponse result(@javax.annotation.Nullable Object result) { this.result = result; @@ -75,7 +67,6 @@ public QueryFulltextResponse result(@javax.annotation.Nullable Object result) { /** * Get result - * * @return result */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,53 +136,48 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to QueryFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!QueryFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in QueryFulltextResponse is not found in the empty JSON string", - QueryFulltextResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!QueryFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in QueryFulltextResponse is not found in the empty JSON string", QueryFulltextResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!QueryFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `QueryFulltextResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!QueryFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `QueryFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!QueryFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'QueryFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(QueryFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, QueryFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public QueryFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!QueryFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'QueryFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(QueryFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, QueryFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public QueryFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Queue.java b/src/main/java/com/formkiq/client/model/Queue.java index 79bdf0730..994694db8 100644 --- a/src/main/java/com/formkiq/client/model/Queue.java +++ b/src/main/java/com/formkiq/client/model/Queue.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * Queue */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Queue { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -71,7 +62,8 @@ public class Queue { @javax.annotation.Nullable private String queueId; - public Queue() {} + public Queue() { + } public Queue name(@javax.annotation.Nullable String name) { this.name = name; @@ -80,7 +72,6 @@ public Queue name(@javax.annotation.Nullable String name) { /** * Name of Queue - * * @return name */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public Queue queueId(@javax.annotation.Nullable String queueId) { /** * Queue identifier - * * @return queueId */ @javax.annotation.Nullable @@ -123,7 +113,8 @@ public boolean equals(Object o) { return false; } Queue queue = (Queue) o; - return Objects.equals(this.name, queue.name) && Objects.equals(this.queueId, queue.queueId); + return Objects.equals(this.name, queue.name) && + Objects.equals(this.queueId, queue.queueId); } @Override @@ -142,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -170,64 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Queue */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Queue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Queue is not found in the empty JSON string", - Queue.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Queue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Queue is not found in the empty JSON string", Queue.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Queue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Queue` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Queue.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Queue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) && !jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) - && !jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("queueId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Queue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Queue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Queue.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Queue value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Queue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Queue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Queue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Queue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Queue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Queue read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ReindexTarget.java b/src/main/java/com/formkiq/client/model/ReindexTarget.java index 8592cb0ec..7b7f35483 100644 --- a/src/main/java/com/formkiq/client/model/ReindexTarget.java +++ b/src/main/java/com/formkiq/client/model/ReindexTarget.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,7 +30,7 @@ */ @JsonAdapter(ReindexTarget.Adapter.class) public enum ReindexTarget { - + ATTRIBUTES("ATTRIBUTES"); private String value; @@ -66,8 +59,7 @@ public static ReindexTarget fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final ReindexTarget enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final ReindexTarget enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/ResourceItem.java b/src/main/java/com/formkiq/client/model/ResourceItem.java index ec6a9df83..7db0d7e0b 100644 --- a/src/main/java/com/formkiq/client/model/ResourceItem.java +++ b/src/main/java/com/formkiq/client/model/ResourceItem.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * ResourceItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ResourceItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; @SerializedName(SERIALIZED_NAME_ITEM_TYPE) @@ -97,7 +88,8 @@ public class ResourceItem { @javax.annotation.Nullable private String classificationId; - public ResourceItem() {} + public ResourceItem() { + } public ResourceItem itemType(@javax.annotation.Nullable LocaleResourceType itemType) { this.itemType = itemType; @@ -106,7 +98,6 @@ public ResourceItem itemType(@javax.annotation.Nullable LocaleResourceType itemT /** * Get itemType - * * @return itemType */ @javax.annotation.Nullable @@ -126,7 +117,6 @@ public ResourceItem localizedValue(@javax.annotation.Nullable String localizedVa /** * Localized Value - * * @return localizedValue */ @javax.annotation.Nullable @@ -146,7 +136,6 @@ public ResourceItem interfaceKey(@javax.annotation.Nullable String interfaceKey) /** * Interface Key - * * @return interfaceKey */ @javax.annotation.Nullable @@ -166,7 +155,6 @@ public ResourceItem itemKey(@javax.annotation.Nullable String itemKey) { /** * Item Key - * * @return itemKey */ @javax.annotation.Nullable @@ -186,7 +174,6 @@ public ResourceItem attributeKey(@javax.annotation.Nullable String attributeKey) /** * Attribute Key - * * @return attributeKey */ @javax.annotation.Nullable @@ -206,7 +193,6 @@ public ResourceItem allowedValue(@javax.annotation.Nullable String allowedValue) /** * Resource value - * * @return allowedValue */ @javax.annotation.Nullable @@ -226,7 +212,6 @@ public ResourceItem classificationId(@javax.annotation.Nullable String classific /** * Classification Id - * * @return classificationId */ @javax.annotation.Nullable @@ -249,19 +234,18 @@ public boolean equals(Object o) { return false; } ResourceItem resourceItem = (ResourceItem) o; - return Objects.equals(this.itemType, resourceItem.itemType) - && Objects.equals(this.localizedValue, resourceItem.localizedValue) - && Objects.equals(this.interfaceKey, resourceItem.interfaceKey) - && Objects.equals(this.itemKey, resourceItem.itemKey) - && Objects.equals(this.attributeKey, resourceItem.attributeKey) - && Objects.equals(this.allowedValue, resourceItem.allowedValue) - && Objects.equals(this.classificationId, resourceItem.classificationId); + return Objects.equals(this.itemType, resourceItem.itemType) && + Objects.equals(this.localizedValue, resourceItem.localizedValue) && + Objects.equals(this.interfaceKey, resourceItem.interfaceKey) && + Objects.equals(this.itemKey, resourceItem.itemKey) && + Objects.equals(this.attributeKey, resourceItem.attributeKey) && + Objects.equals(this.allowedValue, resourceItem.allowedValue) && + Objects.equals(this.classificationId, resourceItem.classificationId); } @Override public int hashCode() { - return Objects.hash(itemType, localizedValue, interfaceKey, itemKey, attributeKey, allowedValue, - classificationId); + return Objects.hash(itemType, localizedValue, interfaceKey, itemKey, attributeKey, allowedValue, classificationId); } @Override @@ -280,7 +264,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -295,8 +280,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey", - "itemKey", "attributeKey", "allowedValue", "classificationId")); + openapiFields = new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey", "itemKey", "attributeKey", "allowedValue", "classificationId")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -309,93 +293,70 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ResourceItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ResourceItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in ResourceItem is not found in the empty JSON string", - ResourceItem.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!ResourceItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ResourceItem is not found in the empty JSON string", ResourceItem.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ResourceItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `ResourceItem` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ResourceItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ResourceItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `itemType` + if (jsonObj.get("itemType") != null && !jsonObj.get("itemType").isJsonNull()) { + LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); + } + if ((jsonObj.get("localizedValue") != null && !jsonObj.get("localizedValue").isJsonNull()) && !jsonObj.get("localizedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localizedValue").toString())); + } + if ((jsonObj.get("interfaceKey") != null && !jsonObj.get("interfaceKey").isJsonNull()) && !jsonObj.get("interfaceKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interfaceKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceKey").toString())); + } + if ((jsonObj.get("itemKey") != null && !jsonObj.get("itemKey").isJsonNull()) && !jsonObj.get("itemKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `itemKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("itemKey").toString())); + } + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); + } + if ((jsonObj.get("allowedValue") != null && !jsonObj.get("allowedValue").isJsonNull()) && !jsonObj.get("allowedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allowedValue").toString())); + } + if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) && !jsonObj.get("classificationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("classificationId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `itemType` - if (jsonObj.get("itemType") != null && !jsonObj.get("itemType").isJsonNull()) { - LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); - } - if ((jsonObj.get("localizedValue") != null && !jsonObj.get("localizedValue").isJsonNull()) - && !jsonObj.get("localizedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("localizedValue").toString())); - } - if ((jsonObj.get("interfaceKey") != null && !jsonObj.get("interfaceKey").isJsonNull()) - && !jsonObj.get("interfaceKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `interfaceKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("interfaceKey").toString())); - } - if ((jsonObj.get("itemKey") != null && !jsonObj.get("itemKey").isJsonNull()) - && !jsonObj.get("itemKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `itemKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("itemKey").toString())); - } - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) - && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("attributeKey").toString())); - } - if ((jsonObj.get("allowedValue") != null && !jsonObj.get("allowedValue").isJsonNull()) - && !jsonObj.get("allowedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("allowedValue").toString())); - } - if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) - && !jsonObj.get("classificationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("classificationId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResourceItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResourceItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(ResourceItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ResourceItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ResourceItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ResourceItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResourceItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ResourceItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Rule.java b/src/main/java/com/formkiq/client/model/Rule.java index fe5333ec3..6c7692311 100644 --- a/src/main/java/com/formkiq/client/model/Rule.java +++ b/src/main/java/com/formkiq/client/model/Rule.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * Rule */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Rule { public static final String SERIALIZED_NAME_RULE_ID = "ruleId"; @SerializedName(SERIALIZED_NAME_RULE_ID) @@ -94,7 +85,8 @@ public class Rule { @javax.annotation.Nullable private RuleCondition conditions; - public Rule() {} + public Rule() { + } public Rule ruleId(@javax.annotation.Nullable String ruleId) { this.ruleId = ruleId; @@ -103,7 +95,6 @@ public Rule ruleId(@javax.annotation.Nullable String ruleId) { /** * Workflow to start on matching of conditions - * * @return ruleId */ @javax.annotation.Nullable @@ -123,7 +114,6 @@ public Rule priority(@javax.annotation.Nullable BigDecimal priority) { /** * Rule priority - * * @return priority */ @javax.annotation.Nullable @@ -143,7 +133,6 @@ public Rule description(@javax.annotation.Nullable String description) { /** * Ruleset description - * * @return description */ @javax.annotation.Nullable @@ -163,7 +152,6 @@ public Rule workflowId(@javax.annotation.Nullable String workflowId) { /** * Workflow to start on matching of conditions - * * @return workflowId */ @javax.annotation.Nullable @@ -183,7 +171,6 @@ public Rule status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -203,7 +190,6 @@ public Rule conditions(@javax.annotation.Nullable RuleCondition conditions) { /** * Get conditions - * * @return conditions */ @javax.annotation.Nullable @@ -226,11 +212,12 @@ public boolean equals(Object o) { return false; } Rule rule = (Rule) o; - return Objects.equals(this.ruleId, rule.ruleId) && Objects.equals(this.priority, rule.priority) - && Objects.equals(this.description, rule.description) - && Objects.equals(this.workflowId, rule.workflowId) - && Objects.equals(this.status, rule.status) - && Objects.equals(this.conditions, rule.conditions); + return Objects.equals(this.ruleId, rule.ruleId) && + Objects.equals(this.priority, rule.priority) && + Objects.equals(this.description, rule.description) && + Objects.equals(this.workflowId, rule.workflowId) && + Objects.equals(this.status, rule.status) && + Objects.equals(this.conditions, rule.conditions); } @Override @@ -253,7 +240,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,8 +256,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("ruleId", "priority", "description", "workflowId", "status", "conditions")); + openapiFields = new HashSet(Arrays.asList("ruleId", "priority", "description", "workflowId", "status", "conditions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -282,78 +269,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Rule */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Rule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Rule is not found in the empty JSON string", - Rule.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Rule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Rule is not found in the empty JSON string", Rule.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Rule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Rule` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Rule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Rule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("ruleId") != null && !jsonObj.get("ruleId").isJsonNull()) && !jsonObj.get("ruleId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ruleId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ruleId").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); + } + // validate the optional field `conditions` + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + RuleCondition.validateJsonElement(jsonObj.get("conditions")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("ruleId") != null && !jsonObj.get("ruleId").isJsonNull()) - && !jsonObj.get("ruleId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `ruleId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("ruleId").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) - && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workflowId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); - } - // validate the optional field `conditions` - if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { - RuleCondition.validateJsonElement(jsonObj.get("conditions")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Rule.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Rule' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Rule.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Rule value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Rule read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Rule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Rule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Rule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Rule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Rule read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/RuleCondition.java b/src/main/java/com/formkiq/client/model/RuleCondition.java index 1894b9b36..e92c58991 100644 --- a/src/main/java/com/formkiq/client/model/RuleCondition.java +++ b/src/main/java/com/formkiq/client/model/RuleCondition.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,16 +53,15 @@ /** * RuleCondition */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class RuleCondition { public static final String SERIALIZED_NAME_MUST = "must"; @SerializedName(SERIALIZED_NAME_MUST) @javax.annotation.Nullable private List must = new ArrayList<>(); - public RuleCondition() {} + public RuleCondition() { + } public RuleCondition must(@javax.annotation.Nullable List must) { this.must = must; @@ -86,7 +78,6 @@ public RuleCondition addMustItem(RuleConditionMust mustItem) { /** * List of rule conditions - * * @return must */ @javax.annotation.Nullable @@ -127,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,69 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to RuleCondition */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RuleCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in RuleCondition is not found in the empty JSON string", - RuleCondition.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!RuleCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RuleCondition is not found in the empty JSON string", RuleCondition.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RuleCondition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `RuleCondition` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!RuleCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `RuleCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("must") != null && !jsonObj.get("must").isJsonNull()) { - JsonArray jsonArraymust = jsonObj.getAsJsonArray("must"); - if (jsonArraymust != null) { - // ensure the json data is an array - if (!jsonObj.get("must").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `must` to be an array in the JSON string but got `%s`", - jsonObj.get("must").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("must") != null && !jsonObj.get("must").isJsonNull()) { + JsonArray jsonArraymust = jsonObj.getAsJsonArray("must"); + if (jsonArraymust != null) { + // ensure the json data is an array + if (!jsonObj.get("must").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `must` to be an array in the JSON string but got `%s`", jsonObj.get("must").toString())); + } + + // validate the optional field `must` (array) + for (int i = 0; i < jsonArraymust.size(); i++) { + RuleConditionMust.validateJsonElement(jsonArraymust.get(i)); + }; } - - // validate the optional field `must` (array) - for (int i = 0; i < jsonArraymust.size(); i++) { - RuleConditionMust.validateJsonElement(jsonArraymust.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RuleCondition.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RuleCondition' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(RuleCondition.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RuleCondition value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public RuleCondition read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!RuleCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RuleCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RuleCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RuleCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RuleCondition read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/RuleConditionAttribute.java b/src/main/java/com/formkiq/client/model/RuleConditionAttribute.java index d646fd903..0228a49ba 100644 --- a/src/main/java/com/formkiq/client/model/RuleConditionAttribute.java +++ b/src/main/java/com/formkiq/client/model/RuleConditionAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,15 +30,15 @@ */ @JsonAdapter(RuleConditionAttribute.Adapter.class) public enum RuleConditionAttribute { - + TEXT("TEXT"), - + CONTENT_TYPE("CONTENT_TYPE"), - + BARCODE("BARCODE"), - + FIELD("FIELD"), - + ATTRIBUTE("ATTRIBUTE"); private String value; @@ -74,8 +67,7 @@ public static RuleConditionAttribute fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final RuleConditionAttribute enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final RuleConditionAttribute enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/RuleConditionCriterion.java b/src/main/java/com/formkiq/client/model/RuleConditionCriterion.java index 70a2eb146..8341563f9 100644 --- a/src/main/java/com/formkiq/client/model/RuleConditionCriterion.java +++ b/src/main/java/com/formkiq/client/model/RuleConditionCriterion.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,15 +30,15 @@ */ @JsonAdapter(RuleConditionCriterion.Adapter.class) public enum RuleConditionCriterion { - + TEXT("TEXT"), - + CONTENT_TYPE("CONTENT_TYPE"), - + BARCODE("BARCODE"), - + FIELD("FIELD"), - + ATTRIBUTE("ATTRIBUTE"); private String value; @@ -74,8 +67,7 @@ public static RuleConditionCriterion fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final RuleConditionCriterion enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final RuleConditionCriterion enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/RuleConditionMust.java b/src/main/java/com/formkiq/client/model/RuleConditionMust.java index 6d7bbb5c0..c28b6a3e7 100644 --- a/src/main/java/com/formkiq/client/model/RuleConditionMust.java +++ b/src/main/java/com/formkiq/client/model/RuleConditionMust.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * RuleConditionMust */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class RuleConditionMust { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @@ -94,7 +85,8 @@ public class RuleConditionMust { @javax.annotation.Nullable private RuleConditionOperation operation; - public RuleConditionMust() {} + public RuleConditionMust() { + } public RuleConditionMust attribute(@javax.annotation.Nullable RuleConditionAttribute attribute) { this.attribute = attribute; @@ -103,7 +95,6 @@ public RuleConditionMust attribute(@javax.annotation.Nullable RuleConditionAttri /** * Get attribute - * * @return attribute */ @javax.annotation.Nullable @@ -123,7 +114,6 @@ public RuleConditionMust criterion(@javax.annotation.Nullable RuleConditionCrite /** * Get criterion - * * @return criterion */ @javax.annotation.Nullable @@ -143,7 +133,6 @@ public RuleConditionMust attributeKey(@javax.annotation.Nullable String attribut /** * Rule attribute key (only required for ATTRIBUTE criterion) - * * @return attributeKey */ @javax.annotation.Nullable @@ -163,7 +152,6 @@ public RuleConditionMust fieldName(@javax.annotation.Nullable String fieldName) /** * Rule field name (only required for FIELD criterion) - * * @return fieldName */ @javax.annotation.Nullable @@ -183,7 +171,6 @@ public RuleConditionMust value(@javax.annotation.Nullable String value) { /** * Rule condition value - * * @return value */ @javax.annotation.Nullable @@ -203,7 +190,6 @@ public RuleConditionMust operation(@javax.annotation.Nullable RuleConditionOpera /** * Get operation - * * @return operation */ @javax.annotation.Nullable @@ -226,12 +212,12 @@ public boolean equals(Object o) { return false; } RuleConditionMust ruleConditionMust = (RuleConditionMust) o; - return Objects.equals(this.attribute, ruleConditionMust.attribute) - && Objects.equals(this.criterion, ruleConditionMust.criterion) - && Objects.equals(this.attributeKey, ruleConditionMust.attributeKey) - && Objects.equals(this.fieldName, ruleConditionMust.fieldName) - && Objects.equals(this.value, ruleConditionMust.value) - && Objects.equals(this.operation, ruleConditionMust.operation); + return Objects.equals(this.attribute, ruleConditionMust.attribute) && + Objects.equals(this.criterion, ruleConditionMust.criterion) && + Objects.equals(this.attributeKey, ruleConditionMust.attributeKey) && + Objects.equals(this.fieldName, ruleConditionMust.fieldName) && + Objects.equals(this.value, ruleConditionMust.value) && + Objects.equals(this.operation, ruleConditionMust.operation); } @Override @@ -254,7 +240,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -269,8 +256,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("attribute", "criterion", "attributeKey", "fieldName", "value", "operation")); + openapiFields = new HashSet(Arrays.asList("attribute", "criterion", "attributeKey", "fieldName", "value", "operation")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -283,83 +269,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to RuleConditionMust */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RuleConditionMust.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in RuleConditionMust is not found in the empty JSON string", - RuleConditionMust.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!RuleConditionMust.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RuleConditionMust is not found in the empty JSON string", RuleConditionMust.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RuleConditionMust.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `RuleConditionMust` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!RuleConditionMust.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `RuleConditionMust` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `attribute` + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { + RuleConditionAttribute.validateJsonElement(jsonObj.get("attribute")); + } + // validate the optional field `criterion` + if (jsonObj.get("criterion") != null && !jsonObj.get("criterion").isJsonNull()) { + RuleConditionCriterion.validateJsonElement(jsonObj.get("criterion")); + } + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); + } + if ((jsonObj.get("fieldName") != null && !jsonObj.get("fieldName").isJsonNull()) && !jsonObj.get("fieldName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fieldName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldName").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + // validate the optional field `operation` + if (jsonObj.get("operation") != null && !jsonObj.get("operation").isJsonNull()) { + RuleConditionOperation.validateJsonElement(jsonObj.get("operation")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `attribute` - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { - RuleConditionAttribute.validateJsonElement(jsonObj.get("attribute")); - } - // validate the optional field `criterion` - if (jsonObj.get("criterion") != null && !jsonObj.get("criterion").isJsonNull()) { - RuleConditionCriterion.validateJsonElement(jsonObj.get("criterion")); - } - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) - && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("attributeKey").toString())); - } - if ((jsonObj.get("fieldName") != null && !jsonObj.get("fieldName").isJsonNull()) - && !jsonObj.get("fieldName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `fieldName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("fieldName").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } - // validate the optional field `operation` - if (jsonObj.get("operation") != null && !jsonObj.get("operation").isJsonNull()) { - RuleConditionOperation.validateJsonElement(jsonObj.get("operation")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RuleConditionMust.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RuleConditionMust' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(RuleConditionMust.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RuleConditionMust value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public RuleConditionMust read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!RuleConditionMust.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RuleConditionMust' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RuleConditionMust.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RuleConditionMust value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RuleConditionMust read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/RuleConditionOperation.java b/src/main/java/com/formkiq/client/model/RuleConditionOperation.java index d630b3639..954b1b98d 100644 --- a/src/main/java/com/formkiq/client/model/RuleConditionOperation.java +++ b/src/main/java/com/formkiq/client/model/RuleConditionOperation.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(RuleConditionOperation.Adapter.class) public enum RuleConditionOperation { - + EQ("EQ"), - + CONTAINS("CONTAINS"); private String value; @@ -68,8 +61,7 @@ public static RuleConditionOperation fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final RuleConditionOperation enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final RuleConditionOperation enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/Ruleset.java b/src/main/java/com/formkiq/client/model/Ruleset.java index 97d530c8b..0a199f642 100644 --- a/src/main/java/com/formkiq/client/model/Ruleset.java +++ b/src/main/java/com/formkiq/client/model/Ruleset.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * Ruleset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Ruleset { public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) @@ -93,7 +84,8 @@ public class Ruleset { @javax.annotation.Nullable private RulesetStatus status; - public Ruleset() {} + public Ruleset() { + } public Ruleset rulesetId(@javax.annotation.Nullable String rulesetId) { this.rulesetId = rulesetId; @@ -102,7 +94,6 @@ public Ruleset rulesetId(@javax.annotation.Nullable String rulesetId) { /** * Ruleset identifier - * * @return rulesetId */ @javax.annotation.Nullable @@ -122,7 +113,6 @@ public Ruleset description(@javax.annotation.Nullable String description) { /** * Ruleset description - * * @return description */ @javax.annotation.Nullable @@ -142,7 +132,6 @@ public Ruleset priority(@javax.annotation.Nullable BigDecimal priority) { /** * Ruleset priority - * * @return priority */ @javax.annotation.Nullable @@ -162,7 +151,6 @@ public Ruleset version(@javax.annotation.Nullable BigDecimal version) { /** * Ruleset version - * * @return version */ @javax.annotation.Nullable @@ -182,7 +170,6 @@ public Ruleset insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -202,7 +189,6 @@ public Ruleset status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -225,12 +211,12 @@ public boolean equals(Object o) { return false; } Ruleset ruleset = (Ruleset) o; - return Objects.equals(this.rulesetId, ruleset.rulesetId) - && Objects.equals(this.description, ruleset.description) - && Objects.equals(this.priority, ruleset.priority) - && Objects.equals(this.version, ruleset.version) - && Objects.equals(this.insertedDate, ruleset.insertedDate) - && Objects.equals(this.status, ruleset.status); + return Objects.equals(this.rulesetId, ruleset.rulesetId) && + Objects.equals(this.description, ruleset.description) && + Objects.equals(this.priority, ruleset.priority) && + Objects.equals(this.version, ruleset.version) && + Objects.equals(this.insertedDate, ruleset.insertedDate) && + Objects.equals(this.status, ruleset.status); } @Override @@ -253,7 +239,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -268,8 +255,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("rulesetId", "description", "priority", "version", "insertedDate", "status")); + openapiFields = new HashSet(Arrays.asList("rulesetId", "description", "priority", "version", "insertedDate", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -282,75 +268,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Ruleset */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Ruleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Ruleset is not found in the empty JSON string", - Ruleset.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Ruleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Ruleset is not found in the empty JSON string", Ruleset.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Ruleset.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Ruleset` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Ruleset.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Ruleset` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("rulesetId") != null && !jsonObj.get("rulesetId").isJsonNull()) && !jsonObj.get("rulesetId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rulesetId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rulesetId").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("rulesetId") != null && !jsonObj.get("rulesetId").isJsonNull()) - && !jsonObj.get("rulesetId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `rulesetId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("rulesetId").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Ruleset.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Ruleset' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Ruleset.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Ruleset value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Ruleset read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Ruleset.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Ruleset' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Ruleset.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Ruleset value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Ruleset read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/RulesetStatus.java b/src/main/java/com/formkiq/client/model/RulesetStatus.java index 09c1759b9..ef3251bc6 100644 --- a/src/main/java/com/formkiq/client/model/RulesetStatus.java +++ b/src/main/java/com/formkiq/client/model/RulesetStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(RulesetStatus.Adapter.class) public enum RulesetStatus { - + ACTIVE("ACTIVE"), - + INACTIVE("INACTIVE"); private String value; @@ -68,8 +61,7 @@ public static RulesetStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final RulesetStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final RulesetStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/SchemaAttributes.java b/src/main/java/com/formkiq/client/model/SchemaAttributes.java index 64283b7e6..1bf216796 100644 --- a/src/main/java/com/formkiq/client/model/SchemaAttributes.java +++ b/src/main/java/com/formkiq/client/model/SchemaAttributes.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * SchemaAttributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SchemaAttributes { public static final String SERIALIZED_NAME_COMPOSITE_KEYS = "compositeKeys"; @SerializedName(SERIALIZED_NAME_COMPOSITE_KEYS) @@ -81,16 +72,15 @@ public class SchemaAttributes { @javax.annotation.Nullable private List optional = new ArrayList<>(); - public static final String SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES = - "allowAdditionalAttributes"; + public static final String SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES = "allowAdditionalAttributes"; @SerializedName(SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES) @javax.annotation.Nullable private Boolean allowAdditionalAttributes = true; - public SchemaAttributes() {} + public SchemaAttributes() { + } - public SchemaAttributes compositeKeys( - @javax.annotation.Nullable List compositeKeys) { + public SchemaAttributes compositeKeys(@javax.annotation.Nullable List compositeKeys) { this.compositeKeys = compositeKeys; return this; } @@ -105,7 +95,6 @@ public SchemaAttributes addCompositeKeysItem(AttributeSchemaCompositeKey composi /** * List of Composite Keys - * * @return compositeKeys */ @javax.annotation.Nullable @@ -113,14 +102,12 @@ public List getCompositeKeys() { return compositeKeys; } - public void setCompositeKeys( - @javax.annotation.Nullable List compositeKeys) { + public void setCompositeKeys(@javax.annotation.Nullable List compositeKeys) { this.compositeKeys = compositeKeys; } - public SchemaAttributes required( - @javax.annotation.Nullable List required) { + public SchemaAttributes required(@javax.annotation.Nullable List required) { this.required = required; return this; } @@ -135,7 +122,6 @@ public SchemaAttributes addRequiredItem(AttributeSchemaRequired requiredItem) { /** * List of Required Attributes - * * @return required */ @javax.annotation.Nullable @@ -148,8 +134,7 @@ public void setRequired(@javax.annotation.Nullable List } - public SchemaAttributes optional( - @javax.annotation.Nullable List optional) { + public SchemaAttributes optional(@javax.annotation.Nullable List optional) { this.optional = optional; return this; } @@ -164,7 +149,6 @@ public SchemaAttributes addOptionalItem(AttributeSchemaOptional optionalItem) { /** * List of Optional Attribute - * * @return optional */ @javax.annotation.Nullable @@ -177,15 +161,13 @@ public void setOptional(@javax.annotation.Nullable List } - public SchemaAttributes allowAdditionalAttributes( - @javax.annotation.Nullable Boolean allowAdditionalAttributes) { + public SchemaAttributes allowAdditionalAttributes(@javax.annotation.Nullable Boolean allowAdditionalAttributes) { this.allowAdditionalAttributes = allowAdditionalAttributes; return this; } /** * Get allowAdditionalAttributes - * * @return allowAdditionalAttributes */ @javax.annotation.Nullable @@ -193,8 +175,7 @@ public Boolean getAllowAdditionalAttributes() { return allowAdditionalAttributes; } - public void setAllowAdditionalAttributes( - @javax.annotation.Nullable Boolean allowAdditionalAttributes) { + public void setAllowAdditionalAttributes(@javax.annotation.Nullable Boolean allowAdditionalAttributes) { this.allowAdditionalAttributes = allowAdditionalAttributes; } @@ -209,10 +190,10 @@ public boolean equals(Object o) { return false; } SchemaAttributes schemaAttributes = (SchemaAttributes) o; - return Objects.equals(this.compositeKeys, schemaAttributes.compositeKeys) - && Objects.equals(this.required, schemaAttributes.required) - && Objects.equals(this.optional, schemaAttributes.optional) && Objects - .equals(this.allowAdditionalAttributes, schemaAttributes.allowAdditionalAttributes); + return Objects.equals(this.compositeKeys, schemaAttributes.compositeKeys) && + Objects.equals(this.required, schemaAttributes.required) && + Objects.equals(this.optional, schemaAttributes.optional) && + Objects.equals(this.allowAdditionalAttributes, schemaAttributes.allowAdditionalAttributes); } @Override @@ -227,14 +208,14 @@ public String toString() { sb.append(" compositeKeys: ").append(toIndentedString(compositeKeys)).append("\n"); sb.append(" required: ").append(toIndentedString(required)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); - sb.append(" allowAdditionalAttributes: ").append(toIndentedString(allowAdditionalAttributes)) - .append("\n"); + sb.append(" allowAdditionalAttributes: ").append(toIndentedString(allowAdditionalAttributes)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -249,8 +230,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("compositeKeys", "required", "optional", "allowAdditionalAttributes")); + openapiFields = new HashSet(Arrays.asList("compositeKeys", "required", "optional", "allowAdditionalAttributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -263,101 +243,90 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SchemaAttributes */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SchemaAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SchemaAttributes is not found in the empty JSON string", - SchemaAttributes.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SchemaAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SchemaAttributes is not found in the empty JSON string", SchemaAttributes.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SchemaAttributes.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SchemaAttributes` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SchemaAttributes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SchemaAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("compositeKeys") != null && !jsonObj.get("compositeKeys").isJsonNull()) { - JsonArray jsonArraycompositeKeys = jsonObj.getAsJsonArray("compositeKeys"); - if (jsonArraycompositeKeys != null) { - // ensure the json data is an array - if (!jsonObj.get("compositeKeys").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `compositeKeys` to be an array in the JSON string but got `%s`", - jsonObj.get("compositeKeys").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("compositeKeys") != null && !jsonObj.get("compositeKeys").isJsonNull()) { + JsonArray jsonArraycompositeKeys = jsonObj.getAsJsonArray("compositeKeys"); + if (jsonArraycompositeKeys != null) { + // ensure the json data is an array + if (!jsonObj.get("compositeKeys").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `compositeKeys` to be an array in the JSON string but got `%s`", jsonObj.get("compositeKeys").toString())); + } + + // validate the optional field `compositeKeys` (array) + for (int i = 0; i < jsonArraycompositeKeys.size(); i++) { + AttributeSchemaCompositeKey.validateJsonElement(jsonArraycompositeKeys.get(i)); + }; } - - // validate the optional field `compositeKeys` (array) - for (int i = 0; i < jsonArraycompositeKeys.size(); i++) { - AttributeSchemaCompositeKey.validateJsonElement(jsonArraycompositeKeys.get(i)); - } ; } - } - if (jsonObj.get("required") != null && !jsonObj.get("required").isJsonNull()) { - JsonArray jsonArrayrequired = jsonObj.getAsJsonArray("required"); - if (jsonArrayrequired != null) { - // ensure the json data is an array - if (!jsonObj.get("required").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `required` to be an array in the JSON string but got `%s`", - jsonObj.get("required").toString())); + if (jsonObj.get("required") != null && !jsonObj.get("required").isJsonNull()) { + JsonArray jsonArrayrequired = jsonObj.getAsJsonArray("required"); + if (jsonArrayrequired != null) { + // ensure the json data is an array + if (!jsonObj.get("required").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `required` to be an array in the JSON string but got `%s`", jsonObj.get("required").toString())); + } + + // validate the optional field `required` (array) + for (int i = 0; i < jsonArrayrequired.size(); i++) { + AttributeSchemaRequired.validateJsonElement(jsonArrayrequired.get(i)); + }; } - - // validate the optional field `required` (array) - for (int i = 0; i < jsonArrayrequired.size(); i++) { - AttributeSchemaRequired.validateJsonElement(jsonArrayrequired.get(i)); - } ; } - } - if (jsonObj.get("optional") != null && !jsonObj.get("optional").isJsonNull()) { - JsonArray jsonArrayoptional = jsonObj.getAsJsonArray("optional"); - if (jsonArrayoptional != null) { - // ensure the json data is an array - if (!jsonObj.get("optional").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `optional` to be an array in the JSON string but got `%s`", - jsonObj.get("optional").toString())); + if (jsonObj.get("optional") != null && !jsonObj.get("optional").isJsonNull()) { + JsonArray jsonArrayoptional = jsonObj.getAsJsonArray("optional"); + if (jsonArrayoptional != null) { + // ensure the json data is an array + if (!jsonObj.get("optional").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `optional` to be an array in the JSON string but got `%s`", jsonObj.get("optional").toString())); + } + + // validate the optional field `optional` (array) + for (int i = 0; i < jsonArrayoptional.size(); i++) { + AttributeSchemaOptional.validateJsonElement(jsonArrayoptional.get(i)); + }; } - - // validate the optional field `optional` (array) - for (int i = 0; i < jsonArrayoptional.size(); i++) { - AttributeSchemaOptional.validateJsonElement(jsonArrayoptional.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SchemaAttributes.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SchemaAttributes' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SchemaAttributes.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SchemaAttributes value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SchemaAttributes read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SchemaAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SchemaAttributes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SchemaAttributes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SchemaAttributes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SchemaAttributes read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SearchRangeDataType.java b/src/main/java/com/formkiq/client/model/SearchRangeDataType.java index 656945bd5..580bf2092 100644 --- a/src/main/java/com/formkiq/client/model/SearchRangeDataType.java +++ b/src/main/java/com/formkiq/client/model/SearchRangeDataType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(SearchRangeDataType.Adapter.class) public enum SearchRangeDataType { - + STRING("STRING"), - + NUMBER("NUMBER"); private String value; @@ -68,8 +61,7 @@ public static SearchRangeDataType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final SearchRangeDataType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final SearchRangeDataType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/SearchResponseFields.java b/src/main/java/com/formkiq/client/model/SearchResponseFields.java index a837df24d..fa09a5e73 100644 --- a/src/main/java/com/formkiq/client/model/SearchResponseFields.java +++ b/src/main/java/com/formkiq/client/model/SearchResponseFields.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * SearchResponseFields */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SearchResponseFields { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @@ -73,7 +64,8 @@ public class SearchResponseFields { @javax.annotation.Nullable private List tags = new ArrayList<>(); - public SearchResponseFields() {} + public SearchResponseFields() { + } public SearchResponseFields attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; @@ -90,7 +82,6 @@ public SearchResponseFields addAttributesItem(String attributesItem) { /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -118,7 +109,6 @@ public SearchResponseFields addTagsItem(String tagsItem) { /** * Get tags - * * @return tags */ @javax.annotation.Nullable @@ -141,8 +131,8 @@ public boolean equals(Object o) { return false; } SearchResponseFields searchResponseFields = (SearchResponseFields) o; - return Objects.equals(this.attributes, searchResponseFields.attributes) - && Objects.equals(this.tags, searchResponseFields.tags); + return Objects.equals(this.attributes, searchResponseFields.attributes) && + Objects.equals(this.tags, searchResponseFields.tags); } @Override @@ -161,7 +151,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,67 +180,56 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SearchResponseFields */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SearchResponseFields.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SearchResponseFields is not found in the empty JSON string", - SearchResponseFields.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SearchResponseFields.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SearchResponseFields is not found in the empty JSON string", SearchResponseFields.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SearchResponseFields.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SearchResponseFields` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SearchResponseFields.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SearchResponseFields` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull() && !jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull() - && !jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() - && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SearchResponseFields.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SearchResponseFields' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SearchResponseFields.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SearchResponseFields value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SearchResponseFields read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SearchResponseFields.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SearchResponseFields' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SearchResponseFields.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SearchResponseFields value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SearchResponseFields read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SearchResultDocument.java b/src/main/java/com/formkiq/client/model/SearchResultDocument.java index 3cd5081ae..54d3531dc 100644 --- a/src/main/java/com/formkiq/client/model/SearchResultDocument.java +++ b/src/main/java/com/formkiq/client/model/SearchResultDocument.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -66,9 +59,7 @@ /** * SearchResultDocument */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SearchResultDocument { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -185,7 +176,8 @@ public class SearchResultDocument { @javax.annotation.Nullable private List metadata = new ArrayList<>(); - public SearchResultDocument() {} + public SearchResultDocument() { + } public SearchResultDocument siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -194,7 +186,6 @@ public SearchResultDocument siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -214,7 +205,6 @@ public SearchResultDocument path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -234,7 +224,6 @@ public SearchResultDocument width(@javax.annotation.Nullable String width) { /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -254,7 +243,6 @@ public SearchResultDocument height(@javax.annotation.Nullable String height) { /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -274,7 +262,6 @@ public SearchResultDocument deepLinkPath(@javax.annotation.Nullable String deepL /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -294,7 +281,6 @@ public SearchResultDocument insertedDate(@javax.annotation.Nullable String inser /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -314,7 +300,6 @@ public SearchResultDocument lastModifiedDate(@javax.annotation.Nullable String l /** * Last Modified Timestamp - * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -334,7 +319,6 @@ public SearchResultDocument folder(@javax.annotation.Nullable Boolean folder) { /** * Is Result a Document Folder - * * @return folder */ @javax.annotation.Nullable @@ -354,7 +338,6 @@ public SearchResultDocument indexKey(@javax.annotation.Nullable String indexKey) /** * populated if search result are from an index - * * @return indexKey */ @javax.annotation.Nullable @@ -374,7 +357,6 @@ public SearchResultDocument checksum(@javax.annotation.Nullable String checksum) /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -394,7 +376,6 @@ public SearchResultDocument checksumType(@javax.annotation.Nullable ChecksumType /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -414,7 +395,6 @@ public SearchResultDocument documentId(@javax.annotation.Nullable String documen /** * Document Identifier - * * @return documentId */ @javax.annotation.Nullable @@ -434,7 +414,6 @@ public SearchResultDocument contentType(@javax.annotation.Nullable String conten /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -454,7 +433,6 @@ public SearchResultDocument userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -474,7 +452,6 @@ public SearchResultDocument contentLength(@javax.annotation.Nullable Integer con /** * Document size - * * @return contentLength */ @javax.annotation.Nullable @@ -494,7 +471,6 @@ public SearchResultDocument versionId(@javax.annotation.Nullable String versionI /** * Document version - * * @return versionId */ @javax.annotation.Nullable @@ -507,15 +483,13 @@ public void setVersionId(@javax.annotation.Nullable String versionId) { } - public SearchResultDocument belongsToDocumentId( - @javax.annotation.Nullable String belongsToDocumentId) { + public SearchResultDocument belongsToDocumentId(@javax.annotation.Nullable String belongsToDocumentId) { this.belongsToDocumentId = belongsToDocumentId; return this; } /** * Parent Document Identifier - * * @return belongsToDocumentId */ @javax.annotation.Nullable @@ -528,15 +502,13 @@ public void setBelongsToDocumentId(@javax.annotation.Nullable String belongsToDo } - public SearchResultDocument matchedAttribute( - @javax.annotation.Nullable DocumentSearchMatchAttribute matchedAttribute) { + public SearchResultDocument matchedAttribute(@javax.annotation.Nullable DocumentSearchMatchAttribute matchedAttribute) { this.matchedAttribute = matchedAttribute; return this; } /** * Get matchedAttribute - * * @return matchedAttribute */ @javax.annotation.Nullable @@ -544,21 +516,18 @@ public DocumentSearchMatchAttribute getMatchedAttribute() { return matchedAttribute; } - public void setMatchedAttribute( - @javax.annotation.Nullable DocumentSearchMatchAttribute matchedAttribute) { + public void setMatchedAttribute(@javax.annotation.Nullable DocumentSearchMatchAttribute matchedAttribute) { this.matchedAttribute = matchedAttribute; } - public SearchResultDocument matchedTag( - @javax.annotation.Nullable DocumentSearchMatchTag matchedTag) { + public SearchResultDocument matchedTag(@javax.annotation.Nullable DocumentSearchMatchTag matchedTag) { this.matchedTag = matchedTag; return this; } /** * Get matchedTag - * * @return matchedTag */ @javax.annotation.Nullable @@ -571,8 +540,7 @@ public void setMatchedTag(@javax.annotation.Nullable DocumentSearchMatchTag matc } - public SearchResultDocument matchedTags( - @javax.annotation.Nullable List matchedTags) { + public SearchResultDocument matchedTags(@javax.annotation.Nullable List matchedTags) { this.matchedTags = matchedTags; return this; } @@ -587,7 +555,6 @@ public SearchResultDocument addMatchedTagsItem(DocumentSearchMatchTag matchedTag /** * Get matchedTags - * * @return matchedTags */ @javax.annotation.Nullable @@ -615,7 +582,6 @@ public SearchResultDocument putTagsItem(String key, Object tagsItem) { /** * Get tags - * * @return tags */ @javax.annotation.Nullable @@ -628,14 +594,12 @@ public void setTags(@javax.annotation.Nullable Map tags) { } - public SearchResultDocument attributes( - @javax.annotation.Nullable Map attributes) { + public SearchResultDocument attributes(@javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } - public SearchResultDocument putAttributesItem(String key, - SearchResultDocumentAttribute attributesItem) { + public SearchResultDocument putAttributesItem(String key, SearchResultDocumentAttribute attributesItem) { if (this.attributes == null) { this.attributes = new HashMap<>(); } @@ -645,7 +609,6 @@ public SearchResultDocument putAttributesItem(String key, /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -653,8 +616,7 @@ public Map getAttributes() { return attributes; } - public void setAttributes( - @javax.annotation.Nullable Map attributes) { + public void setAttributes(@javax.annotation.Nullable Map attributes) { this.attributes = attributes; } @@ -674,7 +636,6 @@ public SearchResultDocument addMetadataItem(DocumentMetadata metadataItem) { /** * List of document Metadata - * * @return metadata */ @javax.annotation.Nullable @@ -697,37 +658,34 @@ public boolean equals(Object o) { return false; } SearchResultDocument searchResultDocument = (SearchResultDocument) o; - return Objects.equals(this.siteId, searchResultDocument.siteId) - && Objects.equals(this.path, searchResultDocument.path) - && Objects.equals(this.width, searchResultDocument.width) - && Objects.equals(this.height, searchResultDocument.height) - && Objects.equals(this.deepLinkPath, searchResultDocument.deepLinkPath) - && Objects.equals(this.insertedDate, searchResultDocument.insertedDate) - && Objects.equals(this.lastModifiedDate, searchResultDocument.lastModifiedDate) - && Objects.equals(this.folder, searchResultDocument.folder) - && Objects.equals(this.indexKey, searchResultDocument.indexKey) - && Objects.equals(this.checksum, searchResultDocument.checksum) - && Objects.equals(this.checksumType, searchResultDocument.checksumType) - && Objects.equals(this.documentId, searchResultDocument.documentId) - && Objects.equals(this.contentType, searchResultDocument.contentType) - && Objects.equals(this.userId, searchResultDocument.userId) - && Objects.equals(this.contentLength, searchResultDocument.contentLength) - && Objects.equals(this.versionId, searchResultDocument.versionId) - && Objects.equals(this.belongsToDocumentId, searchResultDocument.belongsToDocumentId) - && Objects.equals(this.matchedAttribute, searchResultDocument.matchedAttribute) - && Objects.equals(this.matchedTag, searchResultDocument.matchedTag) - && Objects.equals(this.matchedTags, searchResultDocument.matchedTags) - && Objects.equals(this.tags, searchResultDocument.tags) - && Objects.equals(this.attributes, searchResultDocument.attributes) - && Objects.equals(this.metadata, searchResultDocument.metadata); + return Objects.equals(this.siteId, searchResultDocument.siteId) && + Objects.equals(this.path, searchResultDocument.path) && + Objects.equals(this.width, searchResultDocument.width) && + Objects.equals(this.height, searchResultDocument.height) && + Objects.equals(this.deepLinkPath, searchResultDocument.deepLinkPath) && + Objects.equals(this.insertedDate, searchResultDocument.insertedDate) && + Objects.equals(this.lastModifiedDate, searchResultDocument.lastModifiedDate) && + Objects.equals(this.folder, searchResultDocument.folder) && + Objects.equals(this.indexKey, searchResultDocument.indexKey) && + Objects.equals(this.checksum, searchResultDocument.checksum) && + Objects.equals(this.checksumType, searchResultDocument.checksumType) && + Objects.equals(this.documentId, searchResultDocument.documentId) && + Objects.equals(this.contentType, searchResultDocument.contentType) && + Objects.equals(this.userId, searchResultDocument.userId) && + Objects.equals(this.contentLength, searchResultDocument.contentLength) && + Objects.equals(this.versionId, searchResultDocument.versionId) && + Objects.equals(this.belongsToDocumentId, searchResultDocument.belongsToDocumentId) && + Objects.equals(this.matchedAttribute, searchResultDocument.matchedAttribute) && + Objects.equals(this.matchedTag, searchResultDocument.matchedTag) && + Objects.equals(this.matchedTags, searchResultDocument.matchedTags) && + Objects.equals(this.tags, searchResultDocument.tags) && + Objects.equals(this.attributes, searchResultDocument.attributes) && + Objects.equals(this.metadata, searchResultDocument.metadata); } @Override public int hashCode() { - return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, - folder, indexKey, checksum, checksumType, documentId, contentType, userId, contentLength, - versionId, belongsToDocumentId, matchedAttribute, matchedTag, matchedTags, tags, attributes, - metadata); + return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, folder, indexKey, checksum, checksumType, documentId, contentType, userId, contentLength, versionId, belongsToDocumentId, matchedAttribute, matchedTag, matchedTags, tags, attributes, metadata); } @Override @@ -750,8 +708,7 @@ public String toString() { sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" contentLength: ").append(toIndentedString(contentLength)).append("\n"); sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); - sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)) - .append("\n"); + sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)).append("\n"); sb.append(" matchedAttribute: ").append(toIndentedString(matchedAttribute)).append("\n"); sb.append(" matchedTag: ").append(toIndentedString(matchedTag)).append("\n"); sb.append(" matchedTags: ").append(toIndentedString(matchedTags)).append("\n"); @@ -763,7 +720,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -778,11 +736,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("siteId", "path", "width", "height", "deepLinkPath", "insertedDate", - "lastModifiedDate", "folder", "indexKey", "checksum", "checksumType", "documentId", - "contentType", "userId", "contentLength", "versionId", "belongsToDocumentId", - "matchedAttribute", "matchedTag", "matchedTags", "tags", "attributes", "metadata")); + openapiFields = new HashSet(Arrays.asList("siteId", "path", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "folder", "indexKey", "checksum", "checksumType", "documentId", "contentType", "userId", "contentLength", "versionId", "belongsToDocumentId", "matchedAttribute", "matchedTag", "matchedTags", "tags", "attributes", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -795,182 +749,130 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SearchResultDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SearchResultDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SearchResultDocument is not found in the empty JSON string", - SearchResultDocument.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SearchResultDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SearchResultDocument is not found in the empty JSON string", SearchResultDocument.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SearchResultDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SearchResultDocument` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SearchResultDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SearchResultDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) - && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("indexKey") != null && !jsonObj.get("indexKey").isJsonNull()) - && !jsonObj.get("indexKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `indexKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("indexKey").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) - && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) - && !jsonObj.get("versionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("versionId").toString())); - } - if ((jsonObj.get("belongsToDocumentId") != null - && !jsonObj.get("belongsToDocumentId").isJsonNull()) - && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("belongsToDocumentId").toString())); - } - // validate the optional field `matchedAttribute` - if (jsonObj.get("matchedAttribute") != null && !jsonObj.get("matchedAttribute").isJsonNull()) { - DocumentSearchMatchAttribute.validateJsonElement(jsonObj.get("matchedAttribute")); - } - // validate the optional field `matchedTag` - if (jsonObj.get("matchedTag") != null && !jsonObj.get("matchedTag").isJsonNull()) { - DocumentSearchMatchTag.validateJsonElement(jsonObj.get("matchedTag")); - } - if (jsonObj.get("matchedTags") != null && !jsonObj.get("matchedTags").isJsonNull()) { - JsonArray jsonArraymatchedTags = jsonObj.getAsJsonArray("matchedTags"); - if (jsonArraymatchedTags != null) { - // ensure the json data is an array - if (!jsonObj.get("matchedTags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `matchedTags` to be an array in the JSON string but got `%s`", - jsonObj.get("matchedTags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("indexKey") != null && !jsonObj.get("indexKey").isJsonNull()) && !jsonObj.get("indexKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexKey").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) && !jsonObj.get("versionId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionId").toString())); + } + if ((jsonObj.get("belongsToDocumentId") != null && !jsonObj.get("belongsToDocumentId").isJsonNull()) && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("belongsToDocumentId").toString())); + } + // validate the optional field `matchedAttribute` + if (jsonObj.get("matchedAttribute") != null && !jsonObj.get("matchedAttribute").isJsonNull()) { + DocumentSearchMatchAttribute.validateJsonElement(jsonObj.get("matchedAttribute")); + } + // validate the optional field `matchedTag` + if (jsonObj.get("matchedTag") != null && !jsonObj.get("matchedTag").isJsonNull()) { + DocumentSearchMatchTag.validateJsonElement(jsonObj.get("matchedTag")); + } + if (jsonObj.get("matchedTags") != null && !jsonObj.get("matchedTags").isJsonNull()) { + JsonArray jsonArraymatchedTags = jsonObj.getAsJsonArray("matchedTags"); + if (jsonArraymatchedTags != null) { + // ensure the json data is an array + if (!jsonObj.get("matchedTags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `matchedTags` to be an array in the JSON string but got `%s`", jsonObj.get("matchedTags").toString())); + } + + // validate the optional field `matchedTags` (array) + for (int i = 0; i < jsonArraymatchedTags.size(); i++) { + DocumentSearchMatchTag.validateJsonElement(jsonArraymatchedTags.get(i)); + }; } - - // validate the optional field `matchedTags` (array) - for (int i = 0; i < jsonArraymatchedTags.size(); i++) { - DocumentSearchMatchTag.validateJsonElement(jsonArraymatchedTags.get(i)); - } ; } - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `metadata` to be an array in the JSON string but got `%s`", - jsonObj.get("metadata").toString())); + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + }; } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SearchResultDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SearchResultDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SearchResultDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SearchResultDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SearchResultDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SearchResultDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SearchResultDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SearchResultDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SearchResultDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SearchResultDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java b/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java index 14c1c5247..3d17e6883 100644 --- a/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * SearchResultDocumentAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SearchResultDocumentAttribute { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; @SerializedName(SERIALIZED_NAME_STRING_VALUES) @@ -85,10 +76,10 @@ public class SearchResultDocumentAttribute { @javax.annotation.Nullable private AttributeValueType valueType; - public SearchResultDocumentAttribute() {} + public SearchResultDocumentAttribute() { + } - public SearchResultDocumentAttribute stringValues( - @javax.annotation.Nullable List stringValues) { + public SearchResultDocumentAttribute stringValues(@javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; return this; } @@ -103,7 +94,6 @@ public SearchResultDocumentAttribute addStringValuesItem(String stringValuesItem /** * Attribute with string values - * * @return stringValues */ @javax.annotation.Nullable @@ -116,8 +106,7 @@ public void setStringValues(@javax.annotation.Nullable List stringValues } - public SearchResultDocumentAttribute numberValues( - @javax.annotation.Nullable List numberValues) { + public SearchResultDocumentAttribute numberValues(@javax.annotation.Nullable List numberValues) { this.numberValues = numberValues; return this; } @@ -132,7 +121,6 @@ public SearchResultDocumentAttribute addNumberValuesItem(BigDecimal numberValues /** * Attribute with number values - * * @return numberValues */ @javax.annotation.Nullable @@ -145,15 +133,13 @@ public void setNumberValues(@javax.annotation.Nullable List numberVa } - public SearchResultDocumentAttribute booleanValue( - @javax.annotation.Nullable Boolean booleanValue) { + public SearchResultDocumentAttribute booleanValue(@javax.annotation.Nullable Boolean booleanValue) { this.booleanValue = booleanValue; return this; } /** * Attribute with boolean value - * * @return booleanValue */ @javax.annotation.Nullable @@ -166,15 +152,13 @@ public void setBooleanValue(@javax.annotation.Nullable Boolean booleanValue) { } - public SearchResultDocumentAttribute valueType( - @javax.annotation.Nullable AttributeValueType valueType) { + public SearchResultDocumentAttribute valueType(@javax.annotation.Nullable AttributeValueType valueType) { this.valueType = valueType; return this; } /** * Get valueType - * * @return valueType */ @javax.annotation.Nullable @@ -197,10 +181,10 @@ public boolean equals(Object o) { return false; } SearchResultDocumentAttribute searchResultDocumentAttribute = (SearchResultDocumentAttribute) o; - return Objects.equals(this.stringValues, searchResultDocumentAttribute.stringValues) - && Objects.equals(this.numberValues, searchResultDocumentAttribute.numberValues) - && Objects.equals(this.booleanValue, searchResultDocumentAttribute.booleanValue) - && Objects.equals(this.valueType, searchResultDocumentAttribute.valueType); + return Objects.equals(this.stringValues, searchResultDocumentAttribute.stringValues) && + Objects.equals(this.numberValues, searchResultDocumentAttribute.numberValues) && + Objects.equals(this.booleanValue, searchResultDocumentAttribute.booleanValue) && + Objects.equals(this.valueType, searchResultDocumentAttribute.valueType); } @Override @@ -221,7 +205,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -236,8 +221,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("stringValues", "numberValues", "booleanValue", "valueType")); + openapiFields = new HashSet(Arrays.asList("stringValues", "numberValues", "booleanValue", "valueType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -247,76 +231,63 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * SearchResultDocumentAttribute + * @throws IOException if the JSON Element is invalid with respect to SearchResultDocumentAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SearchResultDocumentAttribute.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SearchResultDocumentAttribute is not found in the empty JSON string", - SearchResultDocumentAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SearchResultDocumentAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SearchResultDocumentAttribute is not found in the empty JSON string", SearchResultDocumentAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SearchResultDocumentAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SearchResultDocumentAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SearchResultDocumentAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SearchResultDocumentAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); + } + // validate the optional field `valueType` + if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { + AttributeValueType.validateJsonElement(jsonObj.get("valueType")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() - && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stringValues` to be an array in the JSON string but got `%s`", - jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() - && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `numberValues` to be an array in the JSON string but got `%s`", - jsonObj.get("numberValues").toString())); - } - // validate the optional field `valueType` - if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { - AttributeValueType.validateJsonElement(jsonObj.get("valueType")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SearchResultDocumentAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SearchResultDocumentAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SearchResultDocumentAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SearchResultDocumentAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SearchResultDocumentAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SearchResultDocumentAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SearchResultDocumentAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SearchResultDocumentAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SearchResultDocumentAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SearchResultDocumentAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetClassificationRequest.java b/src/main/java/com/formkiq/client/model/SetClassificationRequest.java index caf6ce67a..df77e55cb 100644 --- a/src/main/java/com/formkiq/client/model/SetClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/SetClassificationRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * SetClassificationRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetClassificationRequest { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION) @javax.annotation.Nullable private AddClassification classification; - public SetClassificationRequest() {} + public SetClassificationRequest() { + } - public SetClassificationRequest classification( - @javax.annotation.Nullable AddClassification classification) { + public SetClassificationRequest classification(@javax.annotation.Nullable AddClassification classification) { this.classification = classification; return this; } /** * Get classification - * * @return classification */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetClassificationRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetClassificationRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetClassificationRequest is not found in the empty JSON string", - SetClassificationRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetClassificationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetClassificationRequest is not found in the empty JSON string", SetClassificationRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetClassificationRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetClassificationRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetClassificationRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetClassificationRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `classification` + if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { + AddClassification.validateJsonElement(jsonObj.get("classification")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `classification` - if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { - AddClassification.validateJsonElement(jsonObj.get("classification")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetClassificationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetClassificationRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetClassificationRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetClassificationRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetClassificationRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetClassificationRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetClassificationRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetClassificationRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetClassificationRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetClassificationRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java index 9f735e99f..77e66c930 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * Set List of document attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @javax.annotation.Nullable private AddDocumentAttributeValue attribute; - public SetDocumentAttributeRequest() {} + public SetDocumentAttributeRequest() { + } - public SetDocumentAttributeRequest attribute( - @javax.annotation.Nullable AddDocumentAttributeValue attribute) { + public SetDocumentAttributeRequest attribute(@javax.annotation.Nullable AddDocumentAttributeValue attribute) { this.attribute = attribute; return this; } /** * Get attribute - * * @return attribute */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentAttributeRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentAttributeRequest is not found in the empty JSON string", - SetDocumentAttributeRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentAttributeRequest is not found in the empty JSON string", SetDocumentAttributeRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentAttributeRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentAttributeRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentAttributeRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentAttributeRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `attribute` + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { + AddDocumentAttributeValue.validateJsonElement(jsonObj.get("attribute")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `attribute` - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { - AddDocumentAttributeValue.validateJsonElement(jsonObj.get("attribute")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentAttributeRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentAttributeRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentAttributeRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentAttributeRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentAttributeRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentAttributeRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentAttributeRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentAttributeRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentAttributeRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentAttributeRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java index 59b454feb..34cb24adc 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * Set List of document attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentAttributesRequest { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public SetDocumentAttributesRequest() {} + public SetDocumentAttributesRequest() { + } - public SetDocumentAttributesRequest attributes( - @javax.annotation.Nullable List attributes) { + public SetDocumentAttributesRequest attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -87,7 +78,6 @@ public SetDocumentAttributesRequest addAttributesItem(AddDocumentAttribute attri /** * List of document attributes - * * @return attributes */ @javax.annotation.Nullable @@ -128,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -156,70 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentAttributesRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentAttributesRequest.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentAttributesRequest is not found in the empty JSON string", - SetDocumentAttributesRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentAttributesRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentAttributesRequest is not found in the empty JSON string", SetDocumentAttributesRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentAttributesRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentAttributesRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentAttributesRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentAttributesRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentAttributesRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentAttributesRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentAttributesRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentAttributesRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentAttributesRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentAttributesRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentAttributesRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentAttributesRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentAttributesRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentAttributesRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java index 0b650a34d..59efacda3 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,26 +50,23 @@ /** * SetDocumentDataClassificationRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentDataClassificationRequest { public static final String SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME = "llmPromptEntityName"; @SerializedName(SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME) @javax.annotation.Nonnull private String llmPromptEntityName; - public SetDocumentDataClassificationRequest() {} + public SetDocumentDataClassificationRequest() { + } - public SetDocumentDataClassificationRequest llmPromptEntityName( - @javax.annotation.Nonnull String llmPromptEntityName) { + public SetDocumentDataClassificationRequest llmPromptEntityName(@javax.annotation.Nonnull String llmPromptEntityName) { this.llmPromptEntityName = llmPromptEntityName; return this; } /** * Name of the LLM Prompt Entity - * * @return llmPromptEntityName */ @javax.annotation.Nonnull @@ -98,10 +88,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SetDocumentDataClassificationRequest setDocumentDataClassificationRequest = - (SetDocumentDataClassificationRequest) o; - return Objects.equals(this.llmPromptEntityName, - setDocumentDataClassificationRequest.llmPromptEntityName); + SetDocumentDataClassificationRequest setDocumentDataClassificationRequest = (SetDocumentDataClassificationRequest) o; + return Objects.equals(this.llmPromptEntityName, setDocumentDataClassificationRequest.llmPromptEntityName); } @Override @@ -113,14 +101,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SetDocumentDataClassificationRequest {\n"); - sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)) - .append("\n"); + sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,75 +133,61 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * SetDocumentDataClassificationRequest + * @throws IOException if the JSON Element is invalid with respect to SetDocumentDataClassificationRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentDataClassificationRequest.openapiRequiredFields.isEmpty()) { // has required - // fields but - // JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentDataClassificationRequest is not found in the empty JSON string", - SetDocumentDataClassificationRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentDataClassificationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentDataClassificationRequest is not found in the empty JSON string", SetDocumentDataClassificationRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentDataClassificationRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentDataClassificationRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentDataClassificationRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentDataClassificationRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SetDocumentDataClassificationRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetDocumentDataClassificationRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("llmPromptEntityName").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("llmPromptEntityName").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentDataClassificationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentDataClassificationRequest' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentDataClassificationRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentDataClassificationRequest value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentDataClassificationRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentDataClassificationRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentDataClassificationRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentDataClassificationRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentDataClassificationRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentDataClassificationRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -222,11 +196,9 @@ public SetDocumentDataClassificationRequest read(JsonReader in) throws IOExcepti * * @param jsonString JSON string * @return An instance of SetDocumentDataClassificationRequest - * @throws IOException if the JSON string is invalid with respect to - * SetDocumentDataClassificationRequest + * @throws IOException if the JSON string is invalid with respect to SetDocumentDataClassificationRequest */ - public static SetDocumentDataClassificationRequest fromJson(String jsonString) - throws IOException { + public static SetDocumentDataClassificationRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SetDocumentDataClassificationRequest.class); } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java index 0587a4f99..dcd567084 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * SetDocumentDataClassificationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentDataClassificationResponse { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) @@ -74,7 +65,8 @@ public class SetDocumentDataClassificationResponse { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public SetDocumentDataClassificationResponse() {} + public SetDocumentDataClassificationResponse() { + } public SetDocumentDataClassificationResponse content(@javax.annotation.Nullable String content) { this.content = content; @@ -83,7 +75,6 @@ public SetDocumentDataClassificationResponse content(@javax.annotation.Nullable /** * Result content - * * @return content */ @javax.annotation.Nullable @@ -96,14 +87,12 @@ public void setContent(@javax.annotation.Nullable String content) { } - public SetDocumentDataClassificationResponse attributes( - @javax.annotation.Nullable List attributes) { + public SetDocumentDataClassificationResponse attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } - public SetDocumentDataClassificationResponse addAttributesItem( - DataClassificationAttribute attributesItem) { + public SetDocumentDataClassificationResponse addAttributesItem(DataClassificationAttribute attributesItem) { if (this.attributes == null) { this.attributes = new ArrayList<>(); } @@ -113,7 +102,6 @@ public SetDocumentDataClassificationResponse addAttributesItem( /** * Attributes extracted from result content - * * @return attributes */ @javax.annotation.Nullable @@ -121,8 +109,7 @@ public List getAttributes() { return attributes; } - public void setAttributes( - @javax.annotation.Nullable List attributes) { + public void setAttributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; } @@ -136,10 +123,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SetDocumentDataClassificationResponse setDocumentDataClassificationResponse = - (SetDocumentDataClassificationResponse) o; - return Objects.equals(this.content, setDocumentDataClassificationResponse.content) - && Objects.equals(this.attributes, setDocumentDataClassificationResponse.attributes); + SetDocumentDataClassificationResponse setDocumentDataClassificationResponse = (SetDocumentDataClassificationResponse) o; + return Objects.equals(this.content, setDocumentDataClassificationResponse.content) && + Objects.equals(this.attributes, setDocumentDataClassificationResponse.attributes); } @Override @@ -158,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,83 +170,68 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * SetDocumentDataClassificationResponse + * @throws IOException if the JSON Element is invalid with respect to SetDocumentDataClassificationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentDataClassificationResponse.openapiRequiredFields.isEmpty()) { // has required - // fields but - // JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentDataClassificationResponse is not found in the empty JSON string", - SetDocumentDataClassificationResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentDataClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentDataClassificationResponse is not found in the empty JSON string", SetDocumentDataClassificationResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentDataClassificationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentDataClassificationResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentDataClassificationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentDataClassificationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) - && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + DataClassificationAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - DataClassificationAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentDataClassificationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentDataClassificationResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentDataClassificationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentDataClassificationResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentDataClassificationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentDataClassificationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentDataClassificationResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentDataClassificationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentDataClassificationResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentDataClassificationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -268,11 +240,9 @@ public SetDocumentDataClassificationResponse read(JsonReader in) throws IOExcept * * @param jsonString JSON string * @return An instance of SetDocumentDataClassificationResponse - * @throws IOException if the JSON string is invalid with respect to - * SetDocumentDataClassificationResponse + * @throws IOException if the JSON string is invalid with respect to SetDocumentDataClassificationResponse */ - public static SetDocumentDataClassificationResponse fromJson(String jsonString) - throws IOException { + public static SetDocumentDataClassificationResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SetDocumentDataClassificationResponse.class); } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java index 3173ac9ee..a3f6e04df 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -65,9 +58,7 @@ /** * SetDocumentFulltextRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) @@ -129,7 +120,8 @@ public class SetDocumentFulltextRequest { @javax.annotation.Nullable private Map attributes = new HashMap<>(); - public SetDocumentFulltextRequest() {} + public SetDocumentFulltextRequest() { + } public SetDocumentFulltextRequest contentType(@javax.annotation.Nullable String contentType) { this.contentType = contentType; @@ -138,7 +130,6 @@ public SetDocumentFulltextRequest contentType(@javax.annotation.Nullable String /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -158,7 +149,6 @@ public SetDocumentFulltextRequest content(@javax.annotation.Nullable String cont /** * Document content - * * @return content */ @javax.annotation.Nullable @@ -171,8 +161,7 @@ public void setContent(@javax.annotation.Nullable String content) { } - public SetDocumentFulltextRequest contentUrls( - @javax.annotation.Nullable List contentUrls) { + public SetDocumentFulltextRequest contentUrls(@javax.annotation.Nullable List contentUrls) { this.contentUrls = contentUrls; return this; } @@ -187,7 +176,6 @@ public SetDocumentFulltextRequest addContentUrlsItem(String contentUrlsItem) { /** * URL(s) which contain document content - * * @return contentUrls */ @javax.annotation.Nullable @@ -207,7 +195,6 @@ public SetDocumentFulltextRequest path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -227,7 +214,6 @@ public SetDocumentFulltextRequest width(@javax.annotation.Nullable String width) /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -247,7 +233,6 @@ public SetDocumentFulltextRequest height(@javax.annotation.Nullable String heigh /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -267,7 +252,6 @@ public SetDocumentFulltextRequest deepLinkPath(@javax.annotation.Nullable String /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -287,7 +271,6 @@ public SetDocumentFulltextRequest checksum(@javax.annotation.Nullable String che /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -300,15 +283,13 @@ public void setChecksum(@javax.annotation.Nullable String checksum) { } - public SetDocumentFulltextRequest checksumType( - @javax.annotation.Nullable ChecksumType checksumType) { + public SetDocumentFulltextRequest checksumType(@javax.annotation.Nullable ChecksumType checksumType) { this.checksumType = checksumType; return this; } /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -336,7 +317,6 @@ public SetDocumentFulltextRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags - * * @return tags */ @javax.annotation.Nullable @@ -349,8 +329,7 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public SetDocumentFulltextRequest metadata( - @javax.annotation.Nullable List metadata) { + public SetDocumentFulltextRequest metadata(@javax.annotation.Nullable List metadata) { this.metadata = metadata; return this; } @@ -365,7 +344,6 @@ public SetDocumentFulltextRequest addMetadataItem(AddDocumentMetadata metadataIt /** * List of document Metadata - * * @return metadata */ @javax.annotation.Nullable @@ -378,14 +356,12 @@ public void setMetadata(@javax.annotation.Nullable List met } - public SetDocumentFulltextRequest attributes( - @javax.annotation.Nullable Map attributes) { + public SetDocumentFulltextRequest attributes(@javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } - public SetDocumentFulltextRequest putAttributesItem(String key, - FulltextAttribute attributesItem) { + public SetDocumentFulltextRequest putAttributesItem(String key, FulltextAttribute attributesItem) { if (this.attributes == null) { this.attributes = new HashMap<>(); } @@ -395,7 +371,6 @@ public SetDocumentFulltextRequest putAttributesItem(String key, /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -418,24 +393,23 @@ public boolean equals(Object o) { return false; } SetDocumentFulltextRequest setDocumentFulltextRequest = (SetDocumentFulltextRequest) o; - return Objects.equals(this.contentType, setDocumentFulltextRequest.contentType) - && Objects.equals(this.content, setDocumentFulltextRequest.content) - && Objects.equals(this.contentUrls, setDocumentFulltextRequest.contentUrls) - && Objects.equals(this.path, setDocumentFulltextRequest.path) - && Objects.equals(this.width, setDocumentFulltextRequest.width) - && Objects.equals(this.height, setDocumentFulltextRequest.height) - && Objects.equals(this.deepLinkPath, setDocumentFulltextRequest.deepLinkPath) - && Objects.equals(this.checksum, setDocumentFulltextRequest.checksum) - && Objects.equals(this.checksumType, setDocumentFulltextRequest.checksumType) - && Objects.equals(this.tags, setDocumentFulltextRequest.tags) - && Objects.equals(this.metadata, setDocumentFulltextRequest.metadata) - && Objects.equals(this.attributes, setDocumentFulltextRequest.attributes); + return Objects.equals(this.contentType, setDocumentFulltextRequest.contentType) && + Objects.equals(this.content, setDocumentFulltextRequest.content) && + Objects.equals(this.contentUrls, setDocumentFulltextRequest.contentUrls) && + Objects.equals(this.path, setDocumentFulltextRequest.path) && + Objects.equals(this.width, setDocumentFulltextRequest.width) && + Objects.equals(this.height, setDocumentFulltextRequest.height) && + Objects.equals(this.deepLinkPath, setDocumentFulltextRequest.deepLinkPath) && + Objects.equals(this.checksum, setDocumentFulltextRequest.checksum) && + Objects.equals(this.checksumType, setDocumentFulltextRequest.checksumType) && + Objects.equals(this.tags, setDocumentFulltextRequest.tags) && + Objects.equals(this.metadata, setDocumentFulltextRequest.metadata) && + Objects.equals(this.attributes, setDocumentFulltextRequest.attributes); } @Override public int hashCode() { - return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, - checksum, checksumType, tags, metadata, attributes); + return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, checksum, checksumType, tags, metadata, attributes); } @Override @@ -459,7 +433,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -474,9 +449,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", - "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); + openapiFields = new HashSet(Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -489,138 +462,105 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentFulltextRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentFulltextRequest is not found in the empty JSON string", - SetDocumentFulltextRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentFulltextRequest is not found in the empty JSON string", SetDocumentFulltextRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentFulltextRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentFulltextRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) - && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() - && !jsonObj.get("contentUrls").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", - jsonObj.get("contentUrls").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() && !jsonObj.get("contentUrls").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", jsonObj.get("contentUrls").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `metadata` to be an array in the JSON string but got `%s`", - jsonObj.get("metadata").toString())); + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + }; } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentFulltextRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentFulltextRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentFulltextRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentFulltextRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentFulltextRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentFulltextRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentFulltextRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentFulltextRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java index fd5e557c8..a0465a93f 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * SetDocumentFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetDocumentFulltextResponse() {} + public SetDocumentFulltextResponse() { + } public SetDocumentFulltextResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public SetDocumentFulltextResponse message(@javax.annotation.Nullable String mes /** * Full text processing message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentFulltextResponse is not found in the empty JSON string", - SetDocumentFulltextResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentFulltextResponse is not found in the empty JSON string", SetDocumentFulltextResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentFulltextResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java index 01b631fbd..cb7068f10 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * SetDocumentOcrRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentOcrRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) @@ -76,7 +67,8 @@ public class SetDocumentOcrRequest { @javax.annotation.Nonnull private String content; - public SetDocumentOcrRequest() {} + public SetDocumentOcrRequest() { + } public SetDocumentOcrRequest contentType(@javax.annotation.Nullable String contentType) { this.contentType = contentType; @@ -85,7 +77,6 @@ public SetDocumentOcrRequest contentType(@javax.annotation.Nullable String conte /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -105,7 +96,6 @@ public SetDocumentOcrRequest isBase64(@javax.annotation.Nullable Boolean isBase6 /** * Is the content Base64-encoded? - * * @return isBase64 */ @javax.annotation.Nullable @@ -125,7 +115,6 @@ public SetDocumentOcrRequest content(@javax.annotation.Nonnull String content) { /** * Document content - * * @return content */ @javax.annotation.Nonnull @@ -148,9 +137,9 @@ public boolean equals(Object o) { return false; } SetDocumentOcrRequest setDocumentOcrRequest = (SetDocumentOcrRequest) o; - return Objects.equals(this.contentType, setDocumentOcrRequest.contentType) - && Objects.equals(this.isBase64, setDocumentOcrRequest.isBase64) - && Objects.equals(this.content, setDocumentOcrRequest.content); + return Objects.equals(this.contentType, setDocumentOcrRequest.contentType) && + Objects.equals(this.isBase64, setDocumentOcrRequest.isBase64) && + Objects.equals(this.content, setDocumentOcrRequest.content); } @Override @@ -170,7 +159,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,73 +188,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentOcrRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentOcrRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentOcrRequest is not found in the empty JSON string", - SetDocumentOcrRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentOcrRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentOcrRequest is not found in the empty JSON string", SetDocumentOcrRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentOcrRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentOcrRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentOcrRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentOcrRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SetDocumentOcrRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetDocumentOcrRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if (!jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if (!jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentOcrRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentOcrRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentOcrRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentOcrRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentOcrRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentOcrRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentOcrRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentOcrRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentOcrRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentOcrRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java index 38de3e845..65974d253 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * SetDocumentRestoreResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentRestoreResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetDocumentRestoreResponse() {} + public SetDocumentRestoreResponse() { + } public SetDocumentRestoreResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public SetDocumentRestoreResponse message(@javax.annotation.Nullable String mess /** * Document Document restore message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentRestoreResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentRestoreResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentRestoreResponse is not found in the empty JSON string", - SetDocumentRestoreResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentRestoreResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentRestoreResponse is not found in the empty JSON string", SetDocumentRestoreResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentRestoreResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentRestoreResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentRestoreResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentRestoreResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentRestoreResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentRestoreResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentRestoreResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentRestoreResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentRestoreResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentRestoreResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentRestoreResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentRestoreResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentRestoreResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentRestoreResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java index a43f7d67b..cbef07187 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * SetDocumentTagKeyRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentTagKeyRequest { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -73,7 +64,8 @@ public class SetDocumentTagKeyRequest { @javax.annotation.Nullable private List values = new ArrayList<>(); - public SetDocumentTagKeyRequest() {} + public SetDocumentTagKeyRequest() { + } public SetDocumentTagKeyRequest value(@javax.annotation.Nullable String value) { this.value = value; @@ -82,7 +74,6 @@ public SetDocumentTagKeyRequest value(@javax.annotation.Nullable String value) { /** * Tag value - * * @return value */ @javax.annotation.Nullable @@ -110,7 +101,6 @@ public SetDocumentTagKeyRequest addValuesItem(String valuesItem) { /** * Tag values - * * @return values */ @javax.annotation.Nullable @@ -133,8 +123,8 @@ public boolean equals(Object o) { return false; } SetDocumentTagKeyRequest setDocumentTagKeyRequest = (SetDocumentTagKeyRequest) o; - return Objects.equals(this.value, setDocumentTagKeyRequest.value) - && Objects.equals(this.values, setDocumentTagKeyRequest.values); + return Objects.equals(this.value, setDocumentTagKeyRequest.value) && + Objects.equals(this.values, setDocumentTagKeyRequest.values); } @Override @@ -153,7 +143,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,66 +172,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentTagKeyRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentTagKeyRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentTagKeyRequest is not found in the empty JSON string", - SetDocumentTagKeyRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentTagKeyRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentTagKeyRequest is not found in the empty JSON string", SetDocumentTagKeyRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentTagKeyRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentTagKeyRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentTagKeyRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentTagKeyRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) - && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() - && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `values` to be an array in the JSON string but got `%s`", - jsonObj.get("values").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentTagKeyRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentTagKeyRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentTagKeyRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentTagKeyRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentTagKeyRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentTagKeyRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentTagKeyRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentTagKeyRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentTagKeyRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentTagKeyRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java index 5b0be08ac..da3e40206 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * SetDocumentVersionRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentVersionRequest { public static final String SERIALIZED_NAME_VERSION_KEY = "versionKey"; @SerializedName(SERIALIZED_NAME_VERSION_KEY) @javax.annotation.Nullable private String versionKey; - public SetDocumentVersionRequest() {} + public SetDocumentVersionRequest() { + } public SetDocumentVersionRequest versionKey(@javax.annotation.Nullable String versionKey) { this.versionKey = versionKey; @@ -75,7 +67,6 @@ public SetDocumentVersionRequest versionKey(@javax.annotation.Nullable String ve /** * VersionKey returned by the GET /documents/{documentId}/versions to revert to - * * @return versionKey */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentVersionRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentVersionRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentVersionRequest is not found in the empty JSON string", - SetDocumentVersionRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentVersionRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentVersionRequest is not found in the empty JSON string", SetDocumentVersionRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentVersionRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentVersionRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentVersionRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentVersionRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) && !jsonObj.get("versionKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionKey").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) - && !jsonObj.get("versionKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("versionKey").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentVersionRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentVersionRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentVersionRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentVersionRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentVersionRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentVersionRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentVersionRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentVersionRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentVersionRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentVersionRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java index b9b846b52..5d45affb9 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * SetDocumentVersionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentVersionResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetDocumentVersionResponse() {} + public SetDocumentVersionResponse() { + } public SetDocumentVersionResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public SetDocumentVersionResponse message(@javax.annotation.Nullable String mess /** * Response Message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentVersionResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentVersionResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetDocumentVersionResponse is not found in the empty JSON string", - SetDocumentVersionResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetDocumentVersionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentVersionResponse is not found in the empty JSON string", SetDocumentVersionResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentVersionResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetDocumentVersionResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentVersionResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentVersionResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentVersionResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentVersionResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetDocumentVersionResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentVersionResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentVersionResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentVersionResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentVersionResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentVersionResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentVersionResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentVersionResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java b/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java index 3d69aac44..92f210d3a 100644 --- a/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * SetFolderPermissionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetFolderPermissionsRequest { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -74,7 +65,8 @@ public class SetFolderPermissionsRequest { @javax.annotation.Nullable private List roles = new ArrayList<>(); - public SetFolderPermissionsRequest() {} + public SetFolderPermissionsRequest() { + } public SetFolderPermissionsRequest path(@javax.annotation.Nullable String path) { this.path = path; @@ -83,7 +75,6 @@ public SetFolderPermissionsRequest path(@javax.annotation.Nullable String path) /** * Path of Folder - * * @return path */ @javax.annotation.Nullable @@ -96,8 +87,7 @@ public void setPath(@javax.annotation.Nullable String path) { } - public SetFolderPermissionsRequest roles( - @javax.annotation.Nullable List roles) { + public SetFolderPermissionsRequest roles(@javax.annotation.Nullable List roles) { this.roles = roles; return this; } @@ -112,7 +102,6 @@ public SetFolderPermissionsRequest addRolesItem(AddFolderPermission rolesItem) { /** * Get roles - * * @return roles */ @javax.annotation.Nullable @@ -135,8 +124,8 @@ public boolean equals(Object o) { return false; } SetFolderPermissionsRequest setFolderPermissionsRequest = (SetFolderPermissionsRequest) o; - return Objects.equals(this.path, setFolderPermissionsRequest.path) - && Objects.equals(this.roles, setFolderPermissionsRequest.roles); + return Objects.equals(this.path, setFolderPermissionsRequest.path) && + Objects.equals(this.roles, setFolderPermissionsRequest.roles); } @Override @@ -155,7 +144,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -183,75 +173,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetFolderPermissionsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetFolderPermissionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetFolderPermissionsRequest is not found in the empty JSON string", - SetFolderPermissionsRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetFolderPermissionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetFolderPermissionsRequest is not found in the empty JSON string", SetFolderPermissionsRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetFolderPermissionsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetFolderPermissionsRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetFolderPermissionsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetFolderPermissionsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull()) { - JsonArray jsonArrayroles = jsonObj.getAsJsonArray("roles"); - if (jsonArrayroles != null) { - // ensure the json data is an array - if (!jsonObj.get("roles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `roles` to be an array in the JSON string but got `%s`", - jsonObj.get("roles").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull()) { + JsonArray jsonArrayroles = jsonObj.getAsJsonArray("roles"); + if (jsonArrayroles != null) { + // ensure the json data is an array + if (!jsonObj.get("roles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `roles` to be an array in the JSON string but got `%s`", jsonObj.get("roles").toString())); + } + + // validate the optional field `roles` (array) + for (int i = 0; i < jsonArrayroles.size(); i++) { + AddFolderPermission.validateJsonElement(jsonArrayroles.get(i)); + }; } - - // validate the optional field `roles` (array) - for (int i = 0; i < jsonArrayroles.size(); i++) { - AddFolderPermission.validateJsonElement(jsonArrayroles.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetFolderPermissionsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetFolderPermissionsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetFolderPermissionsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetFolderPermissionsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetFolderPermissionsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetFolderPermissionsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetFolderPermissionsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetFolderPermissionsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetFolderPermissionsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetFolderPermissionsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java b/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java index a2c8fedb4..7f540282d 100644 --- a/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * SetGroupPermissionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetGroupPermissionsRequest { public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; @SerializedName(SERIALIZED_NAME_PERMISSIONS) @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public SetGroupPermissionsRequest() {} + public SetGroupPermissionsRequest() { + } - public SetGroupPermissionsRequest permissions( - @javax.annotation.Nullable List permissions) { + public SetGroupPermissionsRequest permissions(@javax.annotation.Nullable List permissions) { this.permissions = permissions; return this; } @@ -87,7 +78,6 @@ public SetGroupPermissionsRequest addPermissionsItem(SiteGroupPermissions permis /** * Get permissions - * * @return permissions */ @javax.annotation.Nullable @@ -128,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -156,60 +147,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetGroupPermissionsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetGroupPermissionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetGroupPermissionsRequest is not found in the empty JSON string", - SetGroupPermissionsRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetGroupPermissionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetGroupPermissionsRequest is not found in the empty JSON string", SetGroupPermissionsRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetGroupPermissionsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetGroupPermissionsRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetGroupPermissionsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetGroupPermissionsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() - && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `permissions` to be an array in the JSON string but got `%s`", - jsonObj.get("permissions").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetGroupPermissionsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetGroupPermissionsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetGroupPermissionsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetGroupPermissionsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetGroupPermissionsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetGroupPermissionsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetGroupPermissionsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetGroupPermissionsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetGroupPermissionsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetGroupPermissionsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java b/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java index b0e454110..564611fce 100644 --- a/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java +++ b/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * SetLocaleResourceItemRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetLocaleResourceItemRequest { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; @SerializedName(SERIALIZED_NAME_RESOURCE_ITEM) @javax.annotation.Nullable private AddResourceItem resourceItem; - public SetLocaleResourceItemRequest() {} + public SetLocaleResourceItemRequest() { + } - public SetLocaleResourceItemRequest resourceItem( - @javax.annotation.Nullable AddResourceItem resourceItem) { + public SetLocaleResourceItemRequest resourceItem(@javax.annotation.Nullable AddResourceItem resourceItem) { this.resourceItem = resourceItem; return this; } /** * Get resourceItem - * * @return resourceItem */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,58 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetLocaleResourceItemRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetLocaleResourceItemRequest.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetLocaleResourceItemRequest is not found in the empty JSON string", - SetLocaleResourceItemRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetLocaleResourceItemRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetLocaleResourceItemRequest is not found in the empty JSON string", SetLocaleResourceItemRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetLocaleResourceItemRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetLocaleResourceItemRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetLocaleResourceItemRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetLocaleResourceItemRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `resourceItem` + if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { + AddResourceItem.validateJsonElement(jsonObj.get("resourceItem")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `resourceItem` - if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { - AddResourceItem.validateJsonElement(jsonObj.get("resourceItem")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetLocaleResourceItemRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetLocaleResourceItemRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetLocaleResourceItemRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetLocaleResourceItemRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetLocaleResourceItemRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetLocaleResourceItemRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetLocaleResourceItemRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetLocaleResourceItemRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetLocaleResourceItemRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetLocaleResourceItemRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetMappingRequest.java b/src/main/java/com/formkiq/client/model/SetMappingRequest.java index 0ed44b7df..6a1703a91 100644 --- a/src/main/java/com/formkiq/client/model/SetMappingRequest.java +++ b/src/main/java/com/formkiq/client/model/SetMappingRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * SetMappingRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetMappingRequest { public static final String SERIALIZED_NAME_MAPPING = "mapping"; @SerializedName(SERIALIZED_NAME_MAPPING) @javax.annotation.Nullable private AddMapping mapping; - public SetMappingRequest() {} + public SetMappingRequest() { + } public SetMappingRequest mapping(@javax.annotation.Nullable AddMapping mapping) { this.mapping = mapping; @@ -76,7 +68,6 @@ public SetMappingRequest mapping(@javax.annotation.Nullable AddMapping mapping) /** * Get mapping - * * @return mapping */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetMappingRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetMappingRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetMappingRequest is not found in the empty JSON string", - SetMappingRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetMappingRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetMappingRequest is not found in the empty JSON string", SetMappingRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetMappingRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetMappingRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetMappingRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetMappingRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `mapping` + if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { + AddMapping.validateJsonElement(jsonObj.get("mapping")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `mapping` - if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { - AddMapping.validateJsonElement(jsonObj.get("mapping")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetMappingRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetMappingRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetMappingRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetMappingRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetMappingRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetMappingRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetMappingRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetMappingRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetMappingRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetMappingRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java b/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java index e584aec60..a84c6f90c 100644 --- a/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * SetOpaAccessPolicyItemsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpaAccessPolicyItemsRequest { public static final String SERIALIZED_NAME_POLICY_ITEMS = "policyItems"; @SerializedName(SERIALIZED_NAME_POLICY_ITEMS) @javax.annotation.Nonnull private List policyItems = new ArrayList<>(); - public SetOpaAccessPolicyItemsRequest() {} + public SetOpaAccessPolicyItemsRequest() { + } - public SetOpaAccessPolicyItemsRequest policyItems( - @javax.annotation.Nonnull List policyItems) { + public SetOpaAccessPolicyItemsRequest policyItems(@javax.annotation.Nonnull List policyItems) { this.policyItems = policyItems; return this; } @@ -87,7 +78,6 @@ public SetOpaAccessPolicyItemsRequest addPolicyItemsItem(OpaPolicyItem policyIte /** * List of OPA policy items - * * @return policyItems */ @javax.annotation.Nonnull @@ -109,8 +99,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest = - (SetOpaAccessPolicyItemsRequest) o; + SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest = (SetOpaAccessPolicyItemsRequest) o; return Objects.equals(this.policyItems, setOpaAccessPolicyItemsRequest.policyItems); } @@ -129,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,79 +144,68 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * SetOpaAccessPolicyItemsRequest + * @throws IOException if the JSON Element is invalid with respect to SetOpaAccessPolicyItemsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetOpaAccessPolicyItemsRequest.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetOpaAccessPolicyItemsRequest is not found in the empty JSON string", - SetOpaAccessPolicyItemsRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetOpaAccessPolicyItemsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetOpaAccessPolicyItemsRequest is not found in the empty JSON string", SetOpaAccessPolicyItemsRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetOpaAccessPolicyItemsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetOpaAccessPolicyItemsRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetOpaAccessPolicyItemsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetOpaAccessPolicyItemsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SetOpaAccessPolicyItemsRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetOpaAccessPolicyItemsRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the json data is an array + if (!jsonObj.get("policyItems").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policyItems` to be an array in the JSON string but got `%s`", jsonObj.get("policyItems").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("policyItems").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `policyItems` to be an array in the JSON string but got `%s`", - jsonObj.get("policyItems").toString())); - } - JsonArray jsonArraypolicyItems = jsonObj.getAsJsonArray("policyItems"); - // validate the required field `policyItems` (array) - for (int i = 0; i < jsonArraypolicyItems.size(); i++) { - OpaPolicyItem.validateJsonElement(jsonArraypolicyItems.get(i)); - } ; + JsonArray jsonArraypolicyItems = jsonObj.getAsJsonArray("policyItems"); + // validate the required field `policyItems` (array) + for (int i = 0; i < jsonArraypolicyItems.size(); i++) { + OpaPolicyItem.validateJsonElement(jsonArraypolicyItems.get(i)); + }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetOpaAccessPolicyItemsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetOpaAccessPolicyItemsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetOpaAccessPolicyItemsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetOpaAccessPolicyItemsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetOpaAccessPolicyItemsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetOpaAccessPolicyItemsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetOpaAccessPolicyItemsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetOpaAccessPolicyItemsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetOpaAccessPolicyItemsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetOpaAccessPolicyItemsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -235,8 +214,7 @@ public SetOpaAccessPolicyItemsRequest read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of SetOpaAccessPolicyItemsRequest - * @throws IOException if the JSON string is invalid with respect to - * SetOpaAccessPolicyItemsRequest + * @throws IOException if the JSON string is invalid with respect to SetOpaAccessPolicyItemsRequest */ public static SetOpaAccessPolicyItemsRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SetOpaAccessPolicyItemsRequest.class); diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java index 4c4316c71..6af074076 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * SetOpenSearchIndexRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpenSearchIndexRequest { public static final String SERIALIZED_NAME_INDEX_SETTINGS = "indexSettings"; @SerializedName(SERIALIZED_NAME_INDEX_SETTINGS) @javax.annotation.Nullable private OpenSearchIndexSetting indexSettings; - public SetOpenSearchIndexRequest() {} + public SetOpenSearchIndexRequest() { + } - public SetOpenSearchIndexRequest indexSettings( - @javax.annotation.Nullable OpenSearchIndexSetting indexSettings) { + public SetOpenSearchIndexRequest indexSettings(@javax.annotation.Nullable OpenSearchIndexSetting indexSettings) { this.indexSettings = indexSettings; return this; } /** * Get indexSettings - * * @return indexSettings */ @javax.annotation.Nullable @@ -118,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetOpenSearchIndexRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetOpenSearchIndexRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetOpenSearchIndexRequest is not found in the empty JSON string", - SetOpenSearchIndexRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetOpenSearchIndexRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetOpenSearchIndexRequest is not found in the empty JSON string", SetOpenSearchIndexRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetOpenSearchIndexRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndexRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetOpenSearchIndexRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndexRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `indexSettings` + if (jsonObj.get("indexSettings") != null && !jsonObj.get("indexSettings").isJsonNull()) { + OpenSearchIndexSetting.validateJsonElement(jsonObj.get("indexSettings")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `indexSettings` - if (jsonObj.get("indexSettings") != null && !jsonObj.get("indexSettings").isJsonNull()) { - OpenSearchIndexSetting.validateJsonElement(jsonObj.get("indexSettings")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetOpenSearchIndexRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetOpenSearchIndexRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndexRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetOpenSearchIndexRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetOpenSearchIndexRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetOpenSearchIndexRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetOpenSearchIndexRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndexRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetOpenSearchIndexRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetOpenSearchIndexRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java index f9cfd0cd4..d6cefe77e 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * SetOpenSearchIndexResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpenSearchIndexResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetOpenSearchIndexResponse() {} + public SetOpenSearchIndexResponse() { + } public SetOpenSearchIndexResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public SetOpenSearchIndexResponse message(@javax.annotation.Nullable String mess /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetOpenSearchIndexResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetOpenSearchIndexResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetOpenSearchIndexResponse is not found in the empty JSON string", - SetOpenSearchIndexResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetOpenSearchIndexResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetOpenSearchIndexResponse is not found in the empty JSON string", SetOpenSearchIndexResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetOpenSearchIndexResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndexResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetOpenSearchIndexResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndexResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetOpenSearchIndexResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetOpenSearchIndexResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndexResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetOpenSearchIndexResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetOpenSearchIndexResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetOpenSearchIndexResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetOpenSearchIndexResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndexResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetOpenSearchIndexResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetOpenSearchIndexResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java index 6cd36822c..3692f0d7d 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * SetOpenSearchIndiceRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpenSearchIndiceRequest { public static final String SERIALIZED_NAME_INDEX_NAME = "indexName"; @SerializedName(SERIALIZED_NAME_INDEX_NAME) @javax.annotation.Nullable private String indexName; - public SetOpenSearchIndiceRequest() {} + public SetOpenSearchIndiceRequest() { + } public SetOpenSearchIndiceRequest indexName(@javax.annotation.Nullable String indexName) { this.indexName = indexName; @@ -75,7 +67,6 @@ public SetOpenSearchIndiceRequest indexName(@javax.annotation.Nullable String in /** * The name of the index to set for SiteId - * * @return indexName */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetOpenSearchIndiceRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetOpenSearchIndiceRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetOpenSearchIndiceRequest is not found in the empty JSON string", - SetOpenSearchIndiceRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetOpenSearchIndiceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetOpenSearchIndiceRequest is not found in the empty JSON string", SetOpenSearchIndiceRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetOpenSearchIndiceRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndiceRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetOpenSearchIndiceRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndiceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("indexName") != null && !jsonObj.get("indexName").isJsonNull()) && !jsonObj.get("indexName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexName").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("indexName") != null && !jsonObj.get("indexName").isJsonNull()) - && !jsonObj.get("indexName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `indexName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("indexName").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetOpenSearchIndiceRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetOpenSearchIndiceRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndiceRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetOpenSearchIndiceRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetOpenSearchIndiceRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetOpenSearchIndiceRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetOpenSearchIndiceRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndiceRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetOpenSearchIndiceRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetOpenSearchIndiceRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetResponse.java b/src/main/java/com/formkiq/client/model/SetResponse.java index 664628809..d8f223b84 100644 --- a/src/main/java/com/formkiq/client/model/SetResponse.java +++ b/src/main/java/com/formkiq/client/model/SetResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * SetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetResponse() {} + public SetResponse() { + } public SetResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public SetResponse message(@javax.annotation.Nullable String message) { /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetResponse is not found in the empty JSON string", - SetResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetResponse is not found in the empty JSON string", SetResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java b/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java index b34c4a70c..dba356db1 100644 --- a/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java +++ b/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * SetSchemaAttributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetSchemaAttributes { public static final String SERIALIZED_NAME_COMPOSITE_KEYS = "compositeKeys"; @SerializedName(SERIALIZED_NAME_COMPOSITE_KEYS) @@ -81,16 +72,15 @@ public class SetSchemaAttributes { @javax.annotation.Nullable private List optional = new ArrayList<>(); - public static final String SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES = - "allowAdditionalAttributes"; + public static final String SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES = "allowAdditionalAttributes"; @SerializedName(SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES) @javax.annotation.Nullable private Boolean allowAdditionalAttributes = true; - public SetSchemaAttributes() {} + public SetSchemaAttributes() { + } - public SetSchemaAttributes compositeKeys( - @javax.annotation.Nullable List compositeKeys) { + public SetSchemaAttributes compositeKeys(@javax.annotation.Nullable List compositeKeys) { this.compositeKeys = compositeKeys; return this; } @@ -105,7 +95,6 @@ public SetSchemaAttributes addCompositeKeysItem(AttributeSchemaCompositeKey comp /** * List of Composite Keys - * * @return compositeKeys */ @javax.annotation.Nullable @@ -113,14 +102,12 @@ public List getCompositeKeys() { return compositeKeys; } - public void setCompositeKeys( - @javax.annotation.Nullable List compositeKeys) { + public void setCompositeKeys(@javax.annotation.Nullable List compositeKeys) { this.compositeKeys = compositeKeys; } - public SetSchemaAttributes required( - @javax.annotation.Nullable List required) { + public SetSchemaAttributes required(@javax.annotation.Nullable List required) { this.required = required; return this; } @@ -135,7 +122,6 @@ public SetSchemaAttributes addRequiredItem(AddAttributeSchemaRequired requiredIt /** * List of Required Attributes - * * @return required */ @javax.annotation.Nullable @@ -148,8 +134,7 @@ public void setRequired(@javax.annotation.Nullable List optional) { + public SetSchemaAttributes optional(@javax.annotation.Nullable List optional) { this.optional = optional; return this; } @@ -164,7 +149,6 @@ public SetSchemaAttributes addOptionalItem(AddAttributeSchemaOptional optionalIt /** * List of Optional Attribute - * * @return optional */ @javax.annotation.Nullable @@ -177,15 +161,13 @@ public void setOptional(@javax.annotation.Nullable List( - Arrays.asList("compositeKeys", "required", "optional", "allowAdditionalAttributes")); + openapiFields = new HashSet(Arrays.asList("compositeKeys", "required", "optional", "allowAdditionalAttributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -263,101 +243,90 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetSchemaAttributes */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetSchemaAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetSchemaAttributes is not found in the empty JSON string", - SetSchemaAttributes.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetSchemaAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetSchemaAttributes is not found in the empty JSON string", SetSchemaAttributes.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetSchemaAttributes.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetSchemaAttributes` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetSchemaAttributes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetSchemaAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("compositeKeys") != null && !jsonObj.get("compositeKeys").isJsonNull()) { - JsonArray jsonArraycompositeKeys = jsonObj.getAsJsonArray("compositeKeys"); - if (jsonArraycompositeKeys != null) { - // ensure the json data is an array - if (!jsonObj.get("compositeKeys").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `compositeKeys` to be an array in the JSON string but got `%s`", - jsonObj.get("compositeKeys").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("compositeKeys") != null && !jsonObj.get("compositeKeys").isJsonNull()) { + JsonArray jsonArraycompositeKeys = jsonObj.getAsJsonArray("compositeKeys"); + if (jsonArraycompositeKeys != null) { + // ensure the json data is an array + if (!jsonObj.get("compositeKeys").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `compositeKeys` to be an array in the JSON string but got `%s`", jsonObj.get("compositeKeys").toString())); + } + + // validate the optional field `compositeKeys` (array) + for (int i = 0; i < jsonArraycompositeKeys.size(); i++) { + AttributeSchemaCompositeKey.validateJsonElement(jsonArraycompositeKeys.get(i)); + }; } - - // validate the optional field `compositeKeys` (array) - for (int i = 0; i < jsonArraycompositeKeys.size(); i++) { - AttributeSchemaCompositeKey.validateJsonElement(jsonArraycompositeKeys.get(i)); - } ; } - } - if (jsonObj.get("required") != null && !jsonObj.get("required").isJsonNull()) { - JsonArray jsonArrayrequired = jsonObj.getAsJsonArray("required"); - if (jsonArrayrequired != null) { - // ensure the json data is an array - if (!jsonObj.get("required").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `required` to be an array in the JSON string but got `%s`", - jsonObj.get("required").toString())); + if (jsonObj.get("required") != null && !jsonObj.get("required").isJsonNull()) { + JsonArray jsonArrayrequired = jsonObj.getAsJsonArray("required"); + if (jsonArrayrequired != null) { + // ensure the json data is an array + if (!jsonObj.get("required").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `required` to be an array in the JSON string but got `%s`", jsonObj.get("required").toString())); + } + + // validate the optional field `required` (array) + for (int i = 0; i < jsonArrayrequired.size(); i++) { + AddAttributeSchemaRequired.validateJsonElement(jsonArrayrequired.get(i)); + }; } - - // validate the optional field `required` (array) - for (int i = 0; i < jsonArrayrequired.size(); i++) { - AddAttributeSchemaRequired.validateJsonElement(jsonArrayrequired.get(i)); - } ; } - } - if (jsonObj.get("optional") != null && !jsonObj.get("optional").isJsonNull()) { - JsonArray jsonArrayoptional = jsonObj.getAsJsonArray("optional"); - if (jsonArrayoptional != null) { - // ensure the json data is an array - if (!jsonObj.get("optional").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `optional` to be an array in the JSON string but got `%s`", - jsonObj.get("optional").toString())); + if (jsonObj.get("optional") != null && !jsonObj.get("optional").isJsonNull()) { + JsonArray jsonArrayoptional = jsonObj.getAsJsonArray("optional"); + if (jsonArrayoptional != null) { + // ensure the json data is an array + if (!jsonObj.get("optional").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `optional` to be an array in the JSON string but got `%s`", jsonObj.get("optional").toString())); + } + + // validate the optional field `optional` (array) + for (int i = 0; i < jsonArrayoptional.size(); i++) { + AddAttributeSchemaOptional.validateJsonElement(jsonArrayoptional.get(i)); + }; } - - // validate the optional field `optional` (array) - for (int i = 0; i < jsonArrayoptional.size(); i++) { - AddAttributeSchemaOptional.validateJsonElement(jsonArrayoptional.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetSchemaAttributes.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetSchemaAttributes' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetSchemaAttributes.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetSchemaAttributes value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetSchemaAttributes read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetSchemaAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetSchemaAttributes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetSchemaAttributes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetSchemaAttributes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetSchemaAttributes read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java b/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java index f46836c30..a00d159e8 100644 --- a/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java +++ b/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * SetSitesSchemaRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetSitesSchemaRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -72,7 +63,8 @@ public class SetSitesSchemaRequest { @javax.annotation.Nullable private SetSchemaAttributes attributes; - public SetSitesSchemaRequest() {} + public SetSitesSchemaRequest() { + } public SetSitesSchemaRequest name(@javax.annotation.Nullable String name) { this.name = name; @@ -81,7 +73,6 @@ public SetSitesSchemaRequest name(@javax.annotation.Nullable String name) { /** * Name of schema - * * @return name */ @javax.annotation.Nullable @@ -94,15 +85,13 @@ public void setName(@javax.annotation.Nullable String name) { } - public SetSitesSchemaRequest attributes( - @javax.annotation.Nullable SetSchemaAttributes attributes) { + public SetSitesSchemaRequest attributes(@javax.annotation.Nullable SetSchemaAttributes attributes) { this.attributes = attributes; return this; } /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -125,8 +114,8 @@ public boolean equals(Object o) { return false; } SetSitesSchemaRequest setSitesSchemaRequest = (SetSitesSchemaRequest) o; - return Objects.equals(this.name, setSitesSchemaRequest.name) - && Objects.equals(this.attributes, setSitesSchemaRequest.attributes); + return Objects.equals(this.name, setSitesSchemaRequest.name) && + Objects.equals(this.attributes, setSitesSchemaRequest.attributes); } @Override @@ -145,7 +134,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,63 +163,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetSitesSchemaRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetSitesSchemaRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetSitesSchemaRequest is not found in the empty JSON string", - SetSitesSchemaRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetSitesSchemaRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetSitesSchemaRequest is not found in the empty JSON string", SetSitesSchemaRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetSitesSchemaRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetSitesSchemaRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetSitesSchemaRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetSitesSchemaRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + SetSchemaAttributes.validateJsonElement(jsonObj.get("attributes")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - SetSchemaAttributes.validateJsonElement(jsonObj.get("attributes")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetSitesSchemaRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetSitesSchemaRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetSitesSchemaRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetSitesSchemaRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetSitesSchemaRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetSitesSchemaRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetSitesSchemaRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetSitesSchemaRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetSitesSchemaRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetSitesSchemaRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java b/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java index 5d1f42890..c1f76c0d5 100644 --- a/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * SetWorkflowRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -85,7 +76,8 @@ public class SetWorkflowRequest { @javax.annotation.Nonnull private List steps = new ArrayList<>(); - public SetWorkflowRequest() {} + public SetWorkflowRequest() { + } public SetWorkflowRequest name(@javax.annotation.Nonnull String name) { this.name = name; @@ -94,7 +86,6 @@ public SetWorkflowRequest name(@javax.annotation.Nonnull String name) { /** * Workflow name - * * @return name */ @javax.annotation.Nonnull @@ -114,7 +105,6 @@ public SetWorkflowRequest description(@javax.annotation.Nullable String descript /** * Workflow description - * * @return description */ @javax.annotation.Nullable @@ -134,7 +124,6 @@ public SetWorkflowRequest status(@javax.annotation.Nonnull WorkflowStatus status /** * Get status - * * @return status */ @javax.annotation.Nonnull @@ -162,7 +151,6 @@ public SetWorkflowRequest addStepsItem(AddWorkflowStep stepsItem) { /** * Workflow Steps - * * @return steps */ @javax.annotation.Nonnull @@ -185,10 +173,10 @@ public boolean equals(Object o) { return false; } SetWorkflowRequest setWorkflowRequest = (SetWorkflowRequest) o; - return Objects.equals(this.name, setWorkflowRequest.name) - && Objects.equals(this.description, setWorkflowRequest.description) - && Objects.equals(this.status, setWorkflowRequest.status) - && Objects.equals(this.steps, setWorkflowRequest.steps); + return Objects.equals(this.name, setWorkflowRequest.name) && + Objects.equals(this.description, setWorkflowRequest.description) && + Objects.equals(this.status, setWorkflowRequest.status) && + Objects.equals(this.steps, setWorkflowRequest.steps); } @Override @@ -209,7 +197,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -237,87 +226,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetWorkflowRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetWorkflowRequest is not found in the empty JSON string", - SetWorkflowRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetWorkflowRequest is not found in the empty JSON string", SetWorkflowRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetWorkflowRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetWorkflowRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetWorkflowRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetWorkflowRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SetWorkflowRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetWorkflowRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // validate the required field `status` + WorkflowStatus.validateJsonElement(jsonObj.get("status")); + // ensure the json data is an array + if (!jsonObj.get("steps").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `steps` to be an array in the JSON string but got `%s`", jsonObj.get("steps").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - // validate the required field `status` - WorkflowStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("steps").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `steps` to be an array in the JSON string but got `%s`", - jsonObj.get("steps").toString())); - } - JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); - // validate the required field `steps` (array) - for (int i = 0; i < jsonArraysteps.size(); i++) { - AddWorkflowStep.validateJsonElement(jsonArraysteps.get(i)); - } ; + JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); + // validate the required field `steps` (array) + for (int i = 0; i < jsonArraysteps.size(); i++) { + AddWorkflowStep.validateJsonElement(jsonArraysteps.get(i)); + }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetWorkflowRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetWorkflowRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetWorkflowRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetWorkflowRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetWorkflowRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetWorkflowRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetWorkflowRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetWorkflowRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetWorkflowRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetWorkflowRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java b/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java index ae5138e15..a78df0254 100644 --- a/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * SetWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetWorkflowResponse() {} + public SetWorkflowResponse() { + } public SetWorkflowResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public SetWorkflowResponse message(@javax.annotation.Nullable String message) { /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SetWorkflowResponse is not found in the empty JSON string", - SetWorkflowResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SetWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetWorkflowResponse is not found in the empty JSON string", SetWorkflowResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SetWorkflowResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SetWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SetWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Site.java b/src/main/java/com/formkiq/client/model/Site.java index 0d0e28689..cdb9f4b11 100644 --- a/src/main/java/com/formkiq/client/model/Site.java +++ b/src/main/java/com/formkiq/client/model/Site.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -63,9 +56,7 @@ /** * Site */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Site { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -88,7 +79,7 @@ public class Site { @JsonAdapter(PermissionEnum.Adapter.class) public enum PermissionEnum { READ_WRITE("READ_WRITE"), - + READ_ONLY("READ_ONLY"); private String value; @@ -117,14 +108,13 @@ public static PermissionEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final PermissionEnum enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final PermissionEnum enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public PermissionEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PermissionEnum.fromValue(value); } } @@ -160,7 +150,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private SiteUsage usage; - public Site() {} + public Site() { + } public Site siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -169,7 +160,6 @@ public Site siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -189,7 +179,6 @@ public Site title(@javax.annotation.Nullable String title) { /** * Site Title - * * @return title */ @javax.annotation.Nullable @@ -209,7 +198,6 @@ public Site status(@javax.annotation.Nullable SiteStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -229,7 +217,6 @@ public Site permission(@javax.annotation.Nullable PermissionEnum permission) { /** * SiteId permission level - * * @return permission */ @javax.annotation.Nullable @@ -257,7 +244,6 @@ public Site addPermissionsItem(SiteGroupPermissions permissionsItem) { /** * Get permissions - * * @return permissions */ @javax.annotation.Nullable @@ -277,7 +263,6 @@ public Site uploadEmail(@javax.annotation.Nullable String uploadEmail) { /** * SiteId document upload email address - * * @return uploadEmail */ @javax.annotation.Nullable @@ -297,7 +282,6 @@ public Site config(@javax.annotation.Nullable SiteConfig config) { /** * Get config - * * @return config */ @javax.annotation.Nullable @@ -317,7 +301,6 @@ public Site usage(@javax.annotation.Nullable SiteUsage usage) { /** * Get usage - * * @return usage */ @javax.annotation.Nullable @@ -340,12 +323,14 @@ public boolean equals(Object o) { return false; } Site site = (Site) o; - return Objects.equals(this.siteId, site.siteId) && Objects.equals(this.title, site.title) - && Objects.equals(this.status, site.status) - && Objects.equals(this.permission, site.permission) - && Objects.equals(this.permissions, site.permissions) - && Objects.equals(this.uploadEmail, site.uploadEmail) - && Objects.equals(this.config, site.config) && Objects.equals(this.usage, site.usage); + return Objects.equals(this.siteId, site.siteId) && + Objects.equals(this.title, site.title) && + Objects.equals(this.status, site.status) && + Objects.equals(this.permission, site.permission) && + Objects.equals(this.permissions, site.permissions) && + Objects.equals(this.uploadEmail, site.uploadEmail) && + Objects.equals(this.config, site.config) && + Objects.equals(this.usage, site.usage); } @Override @@ -370,7 +355,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -385,8 +371,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "title", "status", "permission", - "permissions", "uploadEmail", "config", "usage")); + openapiFields = new HashSet(Arrays.asList("siteId", "title", "status", "permission", "permissions", "uploadEmail", "config", "usage")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -399,99 +384,80 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Site */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Site.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Site is not found in the empty JSON string", - Site.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Site.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Site is not found in the empty JSON string", Site.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Site.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Site` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Site.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Site` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + SiteStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("permission") != null && !jsonObj.get("permission").isJsonNull()) && !jsonObj.get("permission").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permission` to be a primitive type in the JSON string but got `%s`", jsonObj.get("permission").toString())); + } + // validate the optional field `permission` + if (jsonObj.get("permission") != null && !jsonObj.get("permission").isJsonNull()) { + PermissionEnum.validateJsonElement(jsonObj.get("permission")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); + } + if ((jsonObj.get("uploadEmail") != null && !jsonObj.get("uploadEmail").isJsonNull()) && !jsonObj.get("uploadEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uploadEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uploadEmail").toString())); + } + // validate the optional field `config` + if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { + SiteConfig.validateJsonElement(jsonObj.get("config")); + } + // validate the optional field `usage` + if (jsonObj.get("usage") != null && !jsonObj.get("usage").isJsonNull()) { + SiteUsage.validateJsonElement(jsonObj.get("usage")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) - && !jsonObj.get("title").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `title` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("title").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - SiteStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("permission") != null && !jsonObj.get("permission").isJsonNull()) - && !jsonObj.get("permission").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `permission` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("permission").toString())); - } - // validate the optional field `permission` - if (jsonObj.get("permission") != null && !jsonObj.get("permission").isJsonNull()) { - PermissionEnum.validateJsonElement(jsonObj.get("permission")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() - && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `permissions` to be an array in the JSON string but got `%s`", - jsonObj.get("permissions").toString())); - } - if ((jsonObj.get("uploadEmail") != null && !jsonObj.get("uploadEmail").isJsonNull()) - && !jsonObj.get("uploadEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `uploadEmail` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("uploadEmail").toString())); - } - // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - SiteConfig.validateJsonElement(jsonObj.get("config")); - } - // validate the optional field `usage` - if (jsonObj.get("usage") != null && !jsonObj.get("usage").isJsonNull()) { - SiteUsage.validateJsonElement(jsonObj.get("usage")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Site.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Site' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Site.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Site value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Site read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Site.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Site' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Site.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Site value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Site read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SiteConfig.java b/src/main/java/com/formkiq/client/model/SiteConfig.java index be5520e44..5283eb73b 100644 --- a/src/main/java/com/formkiq/client/model/SiteConfig.java +++ b/src/main/java/com/formkiq/client/model/SiteConfig.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * SiteConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SiteConfig { public static final String SERIALIZED_NAME_MAX_CONTENT_LENGTH_BYTES = "maxContentLengthBytes"; @SerializedName(SERIALIZED_NAME_MAX_CONTENT_LENGTH_BYTES) @@ -82,7 +73,8 @@ public class SiteConfig { @javax.annotation.Nullable private OcrConfig ocr; - public SiteConfig() {} + public SiteConfig() { + } public SiteConfig maxContentLengthBytes(@javax.annotation.Nullable String maxContentLengthBytes) { this.maxContentLengthBytes = maxContentLengthBytes; @@ -91,7 +83,6 @@ public SiteConfig maxContentLengthBytes(@javax.annotation.Nullable String maxCon /** * Set Maximum Document Content Length in Bytes - * * @return maxContentLengthBytes */ @javax.annotation.Nullable @@ -111,7 +102,6 @@ public SiteConfig maxDocuments(@javax.annotation.Nullable String maxDocuments) { /** * Set Maximum number of Documents allowed - * * @return maxDocuments */ @javax.annotation.Nullable @@ -131,7 +121,6 @@ public SiteConfig maxWebhooks(@javax.annotation.Nullable String maxWebhooks) { /** * Set Maximum number of Webhooks allowed - * * @return maxWebhooks */ @javax.annotation.Nullable @@ -151,7 +140,6 @@ public SiteConfig ocr(@javax.annotation.Nullable OcrConfig ocr) { /** * Get ocr - * * @return ocr */ @javax.annotation.Nullable @@ -174,10 +162,10 @@ public boolean equals(Object o) { return false; } SiteConfig siteConfig = (SiteConfig) o; - return Objects.equals(this.maxContentLengthBytes, siteConfig.maxContentLengthBytes) - && Objects.equals(this.maxDocuments, siteConfig.maxDocuments) - && Objects.equals(this.maxWebhooks, siteConfig.maxWebhooks) - && Objects.equals(this.ocr, siteConfig.ocr); + return Objects.equals(this.maxContentLengthBytes, siteConfig.maxContentLengthBytes) && + Objects.equals(this.maxDocuments, siteConfig.maxDocuments) && + Objects.equals(this.maxWebhooks, siteConfig.maxWebhooks) && + Objects.equals(this.ocr, siteConfig.ocr); } @Override @@ -189,8 +177,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SiteConfig {\n"); - sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)) - .append("\n"); + sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)).append("\n"); sb.append(" maxDocuments: ").append(toIndentedString(maxDocuments)).append("\n"); sb.append(" maxWebhooks: ").append(toIndentedString(maxWebhooks)).append("\n"); sb.append(" ocr: ").append(toIndentedString(ocr)).append("\n"); @@ -199,7 +186,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,8 +202,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("maxContentLengthBytes", "maxDocuments", "maxWebhooks", "ocr")); + openapiFields = new HashSet(Arrays.asList("maxContentLengthBytes", "maxDocuments", "maxWebhooks", "ocr")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -228,76 +215,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SiteConfig */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SiteConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SiteConfig is not found in the empty JSON string", - SiteConfig.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SiteConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SiteConfig is not found in the empty JSON string", SiteConfig.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SiteConfig.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SiteConfig` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SiteConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SiteConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("maxContentLengthBytes") != null && !jsonObj.get("maxContentLengthBytes").isJsonNull()) && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxContentLengthBytes").toString())); + } + if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) && !jsonObj.get("maxDocuments").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxDocuments").toString())); + } + if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxWebhooks").toString())); + } + // validate the optional field `ocr` + if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { + OcrConfig.validateJsonElement(jsonObj.get("ocr")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("maxContentLengthBytes") != null - && !jsonObj.get("maxContentLengthBytes").isJsonNull()) - && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("maxContentLengthBytes").toString())); - } - if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) - && !jsonObj.get("maxDocuments").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("maxDocuments").toString())); - } - if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) - && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("maxWebhooks").toString())); - } - // validate the optional field `ocr` - if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { - OcrConfig.validateJsonElement(jsonObj.get("ocr")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SiteConfig.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SiteConfig' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SiteConfig.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SiteConfig value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SiteConfig read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SiteConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SiteConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SiteConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SiteConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SiteConfig read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SiteGroup.java b/src/main/java/com/formkiq/client/model/SiteGroup.java index d89de6510..68ae3dc55 100644 --- a/src/main/java/com/formkiq/client/model/SiteGroup.java +++ b/src/main/java/com/formkiq/client/model/SiteGroup.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,16 +53,15 @@ /** * SiteGroup */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SiteGroup { public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; @SerializedName(SERIALIZED_NAME_PERMISSIONS) @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public SiteGroup() {} + public SiteGroup() { + } public SiteGroup permissions(@javax.annotation.Nullable List permissions) { this.permissions = permissions; @@ -86,7 +78,6 @@ public SiteGroup addPermissionsItem(SiteGroupPermissions permissionsItem) { /** * Get permissions - * * @return permissions */ @javax.annotation.Nullable @@ -127,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,60 +147,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SiteGroup */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SiteGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SiteGroup is not found in the empty JSON string", - SiteGroup.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SiteGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SiteGroup is not found in the empty JSON string", SiteGroup.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SiteGroup.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SiteGroup` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SiteGroup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SiteGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() - && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `permissions` to be an array in the JSON string but got `%s`", - jsonObj.get("permissions").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SiteGroup.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SiteGroup' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SiteGroup.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SiteGroup value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SiteGroup read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SiteGroup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SiteGroup' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SiteGroup.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SiteGroup value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SiteGroup read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SiteGroupPermissions.java b/src/main/java/com/formkiq/client/model/SiteGroupPermissions.java index f52954d1e..896e4bad5 100644 --- a/src/main/java/com/formkiq/client/model/SiteGroupPermissions.java +++ b/src/main/java/com/formkiq/client/model/SiteGroupPermissions.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,15 +30,15 @@ */ @JsonAdapter(SiteGroupPermissions.Adapter.class) public enum SiteGroupPermissions { - + ADMIN("ADMIN"), - + DELETE("DELETE"), - + READ("READ"), - + WRITE("WRITE"), - + GOVERN("GOVERN"); private String value; @@ -74,8 +67,7 @@ public static SiteGroupPermissions fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final SiteGroupPermissions enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final SiteGroupPermissions enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/SiteStatus.java b/src/main/java/com/formkiq/client/model/SiteStatus.java index b3535f939..571a73401 100644 --- a/src/main/java/com/formkiq/client/model/SiteStatus.java +++ b/src/main/java/com/formkiq/client/model/SiteStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(SiteStatus.Adapter.class) public enum SiteStatus { - + ACTIVE("ACTIVE"), - + INACTIVE("INACTIVE"); private String value; @@ -68,8 +61,7 @@ public static SiteStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final SiteStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final SiteStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/SiteUsage.java b/src/main/java/com/formkiq/client/model/SiteUsage.java index b39f20f70..761d4b183 100644 --- a/src/main/java/com/formkiq/client/model/SiteUsage.java +++ b/src/main/java/com/formkiq/client/model/SiteUsage.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * SiteUsage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SiteUsage { public static final String SERIALIZED_NAME_DOCUMENT_COUNT = "documentCount"; @SerializedName(SERIALIZED_NAME_DOCUMENT_COUNT) @@ -72,7 +63,8 @@ public class SiteUsage { @javax.annotation.Nullable private BigDecimal ocrTransactionCount; - public SiteUsage() {} + public SiteUsage() { + } public SiteUsage documentCount(@javax.annotation.Nullable BigDecimal documentCount) { this.documentCount = documentCount; @@ -81,7 +73,6 @@ public SiteUsage documentCount(@javax.annotation.Nullable BigDecimal documentCou /** * The number of documents in the site (only tracked when using MaxDocuments) - * * @return documentCount */ @javax.annotation.Nullable @@ -101,7 +92,6 @@ public SiteUsage ocrTransactionCount(@javax.annotation.Nullable BigDecimal ocrTr /** * The number of ocr tx requests in the site (only tracked when using OCR MaxTransactions) - * * @return ocrTransactionCount */ @javax.annotation.Nullable @@ -124,8 +114,8 @@ public boolean equals(Object o) { return false; } SiteUsage siteUsage = (SiteUsage) o; - return Objects.equals(this.documentCount, siteUsage.documentCount) - && Objects.equals(this.ocrTransactionCount, siteUsage.ocrTransactionCount); + return Objects.equals(this.documentCount, siteUsage.documentCount) && + Objects.equals(this.ocrTransactionCount, siteUsage.ocrTransactionCount); } @Override @@ -138,14 +128,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SiteUsage {\n"); sb.append(" documentCount: ").append(toIndentedString(documentCount)).append("\n"); - sb.append(" ocrTransactionCount: ").append(toIndentedString(ocrTransactionCount)) - .append("\n"); + sb.append(" ocrTransactionCount: ").append(toIndentedString(ocrTransactionCount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,53 +163,48 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SiteUsage */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SiteUsage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in SiteUsage is not found in the empty JSON string", - SiteUsage.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!SiteUsage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SiteUsage is not found in the empty JSON string", SiteUsage.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SiteUsage.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `SiteUsage` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SiteUsage.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SiteUsage` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SiteUsage.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SiteUsage' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(SiteUsage.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SiteUsage value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SiteUsage read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SiteUsage.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SiteUsage' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SiteUsage.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SiteUsage value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SiteUsage read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/StringFormat.java b/src/main/java/com/formkiq/client/model/StringFormat.java index 9ccf1edff..617a4dd3e 100644 --- a/src/main/java/com/formkiq/client/model/StringFormat.java +++ b/src/main/java/com/formkiq/client/model/StringFormat.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * StringFormat */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class StringFormat { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -77,7 +68,8 @@ public class StringFormat { @javax.annotation.Nullable private Integer padding; - public StringFormat() {} + public StringFormat() { + } public StringFormat type(@javax.annotation.Nullable StringGeneratorType type) { this.type = type; @@ -86,7 +78,6 @@ public StringFormat type(@javax.annotation.Nullable StringGeneratorType type) { /** * Get type - * * @return type */ @javax.annotation.Nullable @@ -106,7 +97,6 @@ public StringFormat staticValue(@javax.annotation.Nullable String staticValue) { /** * Static Value - * * @return staticValue */ @javax.annotation.Nullable @@ -126,7 +116,6 @@ public StringFormat padding(@javax.annotation.Nullable Integer padding) { /** * Optional padding for AUTO_INCREMENT number - * * @return padding */ @javax.annotation.Nullable @@ -149,9 +138,9 @@ public boolean equals(Object o) { return false; } StringFormat stringFormat = (StringFormat) o; - return Objects.equals(this.type, stringFormat.type) - && Objects.equals(this.staticValue, stringFormat.staticValue) - && Objects.equals(this.padding, stringFormat.padding); + return Objects.equals(this.type, stringFormat.type) && + Objects.equals(this.staticValue, stringFormat.staticValue) && + Objects.equals(this.padding, stringFormat.padding); } @Override @@ -171,7 +160,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,63 +189,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to StringFormat */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!StringFormat.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in StringFormat is not found in the empty JSON string", - StringFormat.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!StringFormat.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StringFormat is not found in the empty JSON string", StringFormat.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!StringFormat.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `StringFormat` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!StringFormat.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `StringFormat` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + StringGeneratorType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("staticValue") != null && !jsonObj.get("staticValue").isJsonNull()) && !jsonObj.get("staticValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `staticValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("staticValue").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - StringGeneratorType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("staticValue") != null && !jsonObj.get("staticValue").isJsonNull()) - && !jsonObj.get("staticValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `staticValue` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("staticValue").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!StringFormat.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'StringFormat' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(StringFormat.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, StringFormat value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public StringFormat read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!StringFormat.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'StringFormat' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(StringFormat.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, StringFormat value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public StringFormat read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/StringGeneratorType.java b/src/main/java/com/formkiq/client/model/StringGeneratorType.java index effcbdab9..a946495f8 100644 --- a/src/main/java/com/formkiq/client/model/StringGeneratorType.java +++ b/src/main/java/com/formkiq/client/model/StringGeneratorType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(StringGeneratorType.Adapter.class) public enum StringGeneratorType { - + AUTO_INCREMENT("AUTO_INCREMENT"), - + STATIC("STATIC"), - + DATE_YYYYMMDD("DATE_YYYYMMDD"); private String value; @@ -70,8 +63,7 @@ public static StringGeneratorType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final StringGeneratorType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final StringGeneratorType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/Task.java b/src/main/java/com/formkiq/client/model/Task.java index 8b63a61c8..e79097bc5 100644 --- a/src/main/java/com/formkiq/client/model/Task.java +++ b/src/main/java/com/formkiq/client/model/Task.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * Task */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Task { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; @SerializedName(SERIALIZED_NAME_TASK_ID) @@ -119,7 +110,8 @@ public class Task { @javax.annotation.Nullable private Map metadata = new HashMap<>(); - public Task() {} + public Task() { + } public Task taskId(@javax.annotation.Nullable String taskId) { this.taskId = taskId; @@ -128,7 +120,6 @@ public Task taskId(@javax.annotation.Nullable String taskId) { /** * Task Identifier - * * @return taskId */ @javax.annotation.Nullable @@ -148,7 +139,6 @@ public Task insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -168,7 +158,6 @@ public Task name(@javax.annotation.Nullable String name) { /** * Name of Task - * * @return name */ @javax.annotation.Nullable @@ -188,7 +177,6 @@ public Task description(@javax.annotation.Nullable String description) { /** * Description of Task - * * @return description */ @javax.annotation.Nullable @@ -208,7 +196,6 @@ public Task plannedStartDate(@javax.annotation.Nullable String plannedStartDate) /** * Planned Start Date of Task - * * @return plannedStartDate */ @javax.annotation.Nullable @@ -228,7 +215,6 @@ public Task startDate(@javax.annotation.Nullable String startDate) { /** * Start Date of Task - * * @return startDate */ @javax.annotation.Nullable @@ -248,7 +234,6 @@ public Task endDate(@javax.annotation.Nullable String endDate) { /** * End Date of Task - * * @return endDate */ @javax.annotation.Nullable @@ -268,7 +253,6 @@ public Task dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date of Task - * * @return dueDate */ @javax.annotation.Nullable @@ -288,7 +272,6 @@ public Task userId(@javax.annotation.Nullable String userId) { /** * User who added Task - * * @return userId */ @javax.annotation.Nullable @@ -308,7 +291,6 @@ public Task status(@javax.annotation.Nullable TaskStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -336,7 +318,6 @@ public Task putMetadataItem(String key, Object metadataItem) { /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -359,21 +340,22 @@ public boolean equals(Object o) { return false; } Task task = (Task) o; - return Objects.equals(this.taskId, task.taskId) - && Objects.equals(this.insertedDate, task.insertedDate) - && Objects.equals(this.name, task.name) - && Objects.equals(this.description, task.description) - && Objects.equals(this.plannedStartDate, task.plannedStartDate) - && Objects.equals(this.startDate, task.startDate) - && Objects.equals(this.endDate, task.endDate) && Objects.equals(this.dueDate, task.dueDate) - && Objects.equals(this.userId, task.userId) && Objects.equals(this.status, task.status) - && Objects.equals(this.metadata, task.metadata); + return Objects.equals(this.taskId, task.taskId) && + Objects.equals(this.insertedDate, task.insertedDate) && + Objects.equals(this.name, task.name) && + Objects.equals(this.description, task.description) && + Objects.equals(this.plannedStartDate, task.plannedStartDate) && + Objects.equals(this.startDate, task.startDate) && + Objects.equals(this.endDate, task.endDate) && + Objects.equals(this.dueDate, task.dueDate) && + Objects.equals(this.userId, task.userId) && + Objects.equals(this.status, task.status) && + Objects.equals(this.metadata, task.metadata); } @Override public int hashCode() { - return Objects.hash(taskId, insertedDate, name, description, plannedStartDate, startDate, - endDate, dueDate, userId, status, metadata); + return Objects.hash(taskId, insertedDate, name, description, plannedStartDate, startDate, endDate, dueDate, userId, status, metadata); } @Override @@ -396,7 +378,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -411,9 +394,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("taskId", "insertedDate", "name", "description", - "plannedStartDate", "startDate", "endDate", "dueDate", "userId", "status", "metadata")); + openapiFields = new HashSet(Arrays.asList("taskId", "insertedDate", "name", "description", "plannedStartDate", "startDate", "endDate", "dueDate", "userId", "status", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -426,110 +407,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Task */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Task.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Task is not found in the empty JSON string", - Task.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Task.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Task is not found in the empty JSON string", Task.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Task.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Task` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Task.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Task` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) && !jsonObj.get("taskId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("taskId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + TaskStatus.validateJsonElement(jsonObj.get("status")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) - && !jsonObj.get("taskId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("taskId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) - && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) - && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) - && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) - && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("dueDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - TaskStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Task.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Task' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Task.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Task value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Task read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Task.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Task' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Task.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Task value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Task read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/TaskStatus.java b/src/main/java/com/formkiq/client/model/TaskStatus.java index 6b7fb7a11..62ff8a713 100644 --- a/src/main/java/com/formkiq/client/model/TaskStatus.java +++ b/src/main/java/com/formkiq/client/model/TaskStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,23 +30,23 @@ */ @JsonAdapter(TaskStatus.Adapter.class) public enum TaskStatus { - + NEW("NEW"), - + ASSIGNED("ASSIGNED"), - + IN_PROGRESS("IN_PROGRESS"), - + ON_HOLD("ON_HOLD"), - + ESCALATED("ESCALATED"), - + RESOLVED("RESOLVED"), - + CLOSED("CLOSED"), - + UNDER_REVIEW("UNDER_REVIEW"), - + AWAITING_CLIENT_RESPONSE("AWAITING_CLIENT_RESPONSE"); private String value; @@ -82,8 +75,7 @@ public static TaskStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final TaskStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final TaskStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/TextractQuery.java b/src/main/java/com/formkiq/client/model/TextractQuery.java index e32157610..7e947eb9c 100644 --- a/src/main/java/com/formkiq/client/model/TextractQuery.java +++ b/src/main/java/com/formkiq/client/model/TextractQuery.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * A question to ask Textract */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class TextractQuery { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -78,7 +69,8 @@ public class TextractQuery { @javax.annotation.Nullable private List pages = new ArrayList<>(); - public TextractQuery() {} + public TextractQuery() { + } public TextractQuery text(@javax.annotation.Nullable String text) { this.text = text; @@ -87,7 +79,6 @@ public TextractQuery text(@javax.annotation.Nullable String text) { /** * Natural-language question - * * @return text */ @javax.annotation.Nullable @@ -107,7 +98,6 @@ public TextractQuery alias(@javax.annotation.Nullable String alias) { /** * Label to identify this query in the result - * * @return alias */ @javax.annotation.Nullable @@ -135,7 +125,6 @@ public TextractQuery addPagesItem(String pagesItem) { /** * Page selection - * * @return pages */ @javax.annotation.Nullable @@ -158,9 +147,9 @@ public boolean equals(Object o) { return false; } TextractQuery textractQuery = (TextractQuery) o; - return Objects.equals(this.text, textractQuery.text) - && Objects.equals(this.alias, textractQuery.alias) - && Objects.equals(this.pages, textractQuery.pages); + return Objects.equals(this.text, textractQuery.text) && + Objects.equals(this.alias, textractQuery.alias) && + Objects.equals(this.pages, textractQuery.pages); } @Override @@ -180,7 +169,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -208,72 +198,58 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to TextractQuery */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TextractQuery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in TextractQuery is not found in the empty JSON string", - TextractQuery.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!TextractQuery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TextractQuery is not found in the empty JSON string", TextractQuery.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TextractQuery.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `TextractQuery` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TextractQuery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `TextractQuery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); + } + if ((jsonObj.get("alias") != null && !jsonObj.get("alias").isJsonNull()) && !jsonObj.get("alias").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `alias` to be a primitive type in the JSON string but got `%s`", jsonObj.get("alias").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("pages") != null && !jsonObj.get("pages").isJsonNull() && !jsonObj.get("pages").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pages` to be an array in the JSON string but got `%s`", jsonObj.get("pages").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) - && !jsonObj.get("text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `text` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("text").toString())); - } - if ((jsonObj.get("alias") != null && !jsonObj.get("alias").isJsonNull()) - && !jsonObj.get("alias").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `alias` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("alias").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("pages") != null && !jsonObj.get("pages").isJsonNull() - && !jsonObj.get("pages").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `pages` to be an array in the JSON string but got `%s`", - jsonObj.get("pages").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!TextractQuery.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'TextractQuery' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(TextractQuery.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, TextractQuery value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public TextractQuery read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!TextractQuery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TextractQuery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TextractQuery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TextractQuery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TextractQuery read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateAttribute.java b/src/main/java/com/formkiq/client/model/UpdateAttribute.java index f6a4bd955..0a8561d6f 100644 --- a/src/main/java/com/formkiq/client/model/UpdateAttribute.java +++ b/src/main/java/com/formkiq/client/model/UpdateAttribute.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * UpdateAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateAttribute { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -73,7 +64,8 @@ public class UpdateAttribute { @javax.annotation.Nullable private Watermark watermark; - public UpdateAttribute() {} + public UpdateAttribute() { + } public UpdateAttribute type(@javax.annotation.Nullable AttributeType type) { this.type = type; @@ -82,7 +74,6 @@ public UpdateAttribute type(@javax.annotation.Nullable AttributeType type) { /** * Get type - * * @return type */ @javax.annotation.Nullable @@ -102,7 +93,6 @@ public UpdateAttribute watermark(@javax.annotation.Nullable Watermark watermark) /** * Get watermark - * * @return watermark */ @javax.annotation.Nullable @@ -125,8 +115,8 @@ public boolean equals(Object o) { return false; } UpdateAttribute updateAttribute = (UpdateAttribute) o; - return Objects.equals(this.type, updateAttribute.type) - && Objects.equals(this.watermark, updateAttribute.watermark); + return Objects.equals(this.type, updateAttribute.type) && + Objects.equals(this.watermark, updateAttribute.watermark); } @Override @@ -145,7 +135,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,61 +164,56 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateAttribute is not found in the empty JSON string", - UpdateAttribute.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateAttribute is not found in the empty JSON string", UpdateAttribute.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateAttribute` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + AttributeType.validateJsonElement(jsonObj.get("type")); + } + // validate the optional field `watermark` + if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { + Watermark.validateJsonElement(jsonObj.get("watermark")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - AttributeType.validateJsonElement(jsonObj.get("type")); - } - // validate the optional field `watermark` - if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { - Watermark.validateJsonElement(jsonObj.get("watermark")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java b/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java index 26eafa6f1..0d9709860 100644 --- a/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * UpdateAttributeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @javax.annotation.Nonnull private UpdateAttribute attribute; - public UpdateAttributeRequest() {} + public UpdateAttributeRequest() { + } public UpdateAttributeRequest attribute(@javax.annotation.Nonnull UpdateAttribute attribute) { this.attribute = attribute; @@ -76,7 +68,6 @@ public UpdateAttributeRequest attribute(@javax.annotation.Nonnull UpdateAttribut /** * Get attribute - * * @return attribute */ @javax.annotation.Nonnull @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,64 +137,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateAttributeRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateAttributeRequest is not found in the empty JSON string", - UpdateAttributeRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateAttributeRequest is not found in the empty JSON string", UpdateAttributeRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateAttributeRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateAttributeRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateAttributeRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateAttributeRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UpdateAttributeRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : UpdateAttributeRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `attribute` - UpdateAttribute.validateJsonElement(jsonObj.get("attribute")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `attribute` + UpdateAttribute.validateJsonElement(jsonObj.get("attribute")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateAttributeRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateAttributeRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateAttributeRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateAttributeRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateAttributeRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateAttributeRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateAttributeRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateAttributeRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateAttributeRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateAttributeRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateCase.java b/src/main/java/com/formkiq/client/model/UpdateCase.java index cc800da0f..8f2313f26 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCase.java +++ b/src/main/java/com/formkiq/client/model/UpdateCase.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * UpdateCase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateCase { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -111,7 +102,8 @@ public class UpdateCase { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public UpdateCase() {} + public UpdateCase() { + } public UpdateCase name(@javax.annotation.Nullable String name) { this.name = name; @@ -120,7 +112,6 @@ public UpdateCase name(@javax.annotation.Nullable String name) { /** * Case Name - * * @return name */ @javax.annotation.Nullable @@ -140,7 +131,6 @@ public UpdateCase status(@javax.annotation.Nullable CaseStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -160,7 +150,6 @@ public UpdateCase description(@javax.annotation.Nullable String description) { /** * Case Description - * * @return description */ @javax.annotation.Nullable @@ -188,7 +177,6 @@ public UpdateCase putMetadataItem(String key, Object metadataItem) { /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -208,7 +196,6 @@ public UpdateCase plannedStartDate(@javax.annotation.Nullable String plannedStar /** * Planned Start Date - * * @return plannedStartDate */ @javax.annotation.Nullable @@ -228,7 +215,6 @@ public UpdateCase startDate(@javax.annotation.Nullable String startDate) { /** * Start Date - * * @return startDate */ @javax.annotation.Nullable @@ -248,7 +234,6 @@ public UpdateCase endDate(@javax.annotation.Nullable String endDate) { /** * End Date - * * @return endDate */ @javax.annotation.Nullable @@ -268,7 +253,6 @@ public UpdateCase dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date - * * @return dueDate */ @javax.annotation.Nullable @@ -296,7 +280,6 @@ public UpdateCase addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds - * * @return documentIds */ @javax.annotation.Nullable @@ -319,21 +302,20 @@ public boolean equals(Object o) { return false; } UpdateCase updateCase = (UpdateCase) o; - return Objects.equals(this.name, updateCase.name) - && Objects.equals(this.status, updateCase.status) - && Objects.equals(this.description, updateCase.description) - && Objects.equals(this.metadata, updateCase.metadata) - && Objects.equals(this.plannedStartDate, updateCase.plannedStartDate) - && Objects.equals(this.startDate, updateCase.startDate) - && Objects.equals(this.endDate, updateCase.endDate) - && Objects.equals(this.dueDate, updateCase.dueDate) - && Objects.equals(this.documentIds, updateCase.documentIds); + return Objects.equals(this.name, updateCase.name) && + Objects.equals(this.status, updateCase.status) && + Objects.equals(this.description, updateCase.description) && + Objects.equals(this.metadata, updateCase.metadata) && + Objects.equals(this.plannedStartDate, updateCase.plannedStartDate) && + Objects.equals(this.startDate, updateCase.startDate) && + Objects.equals(this.endDate, updateCase.endDate) && + Objects.equals(this.dueDate, updateCase.dueDate) && + Objects.equals(this.documentIds, updateCase.documentIds); } @Override public int hashCode() { - return Objects.hash(name, status, description, metadata, plannedStartDate, startDate, endDate, - dueDate, documentIds); + return Objects.hash(name, status, description, metadata, plannedStartDate, startDate, endDate, dueDate, documentIds); } @Override @@ -354,7 +336,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -369,8 +352,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "status", "description", "metadata", - "plannedStartDate", "startDate", "endDate", "dueDate", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "status", "description", "metadata", "plannedStartDate", "startDate", "endDate", "dueDate", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -383,100 +365,74 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateCase */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateCase is not found in the empty JSON string", - UpdateCase.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateCase is not found in the empty JSON string", UpdateCase.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateCase.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateCase` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateCase.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateCase` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + CaseStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - CaseStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) - && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) - && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) - && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) - && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("dueDate").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() - && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentIds` to be an array in the JSON string but got `%s`", - jsonObj.get("documentIds").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateCase.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateCase' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateCase.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateCase value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateCase read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateCase.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateCase' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateCase.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateCase value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateCase read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java b/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java index dd29e1948..cdc852a09 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * UpdateCaseRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateCaseRequest { public static final String SERIALIZED_NAME_CASE = "case"; @SerializedName(SERIALIZED_NAME_CASE) @javax.annotation.Nullable private UpdateCase _case; - public UpdateCaseRequest() {} + public UpdateCaseRequest() { + } public UpdateCaseRequest _case(@javax.annotation.Nullable UpdateCase _case) { this._case = _case; @@ -76,7 +68,6 @@ public UpdateCaseRequest _case(@javax.annotation.Nullable UpdateCase _case) { /** * Get _case - * * @return _case */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateCaseRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateCaseRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateCaseRequest is not found in the empty JSON string", - UpdateCaseRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateCaseRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateCaseRequest is not found in the empty JSON string", UpdateCaseRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateCaseRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateCaseRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateCaseRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateCaseRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `case` + if (jsonObj.get("case") != null && !jsonObj.get("case").isJsonNull()) { + UpdateCase.validateJsonElement(jsonObj.get("case")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `case` - if (jsonObj.get("case") != null && !jsonObj.get("case").isJsonNull()) { - UpdateCase.validateJsonElement(jsonObj.get("case")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateCaseRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateCaseRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateCaseRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateCaseRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateCaseRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateCaseRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateCaseRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateCaseRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateCaseRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateCaseRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java b/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java index 2cde72dd8..3d4d89b14 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * UpdateCaseResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateCaseResponse { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; @SerializedName(SERIALIZED_NAME_CASE_ID) @javax.annotation.Nullable private String caseId; - public UpdateCaseResponse() {} + public UpdateCaseResponse() { + } public UpdateCaseResponse caseId(@javax.annotation.Nullable String caseId) { this.caseId = caseId; @@ -75,7 +67,6 @@ public UpdateCaseResponse caseId(@javax.annotation.Nullable String caseId) { /** * Case Identifier - * * @return caseId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateCaseResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateCaseResponse is not found in the empty JSON string", - UpdateCaseResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateCaseResponse is not found in the empty JSON string", UpdateCaseResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateCaseResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateCaseResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateCaseResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateCaseResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) && !jsonObj.get("caseId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("caseId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) - && !jsonObj.get("caseId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("caseId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateCaseResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateCaseResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateCaseResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateCaseResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateCaseResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateCaseResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateCaseResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateCaseResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateCaseResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateCaseResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java b/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java index 161f7871d..34902533f 100644 --- a/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * UpdateConfigurationRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateConfigurationRequest { public static final String SERIALIZED_NAME_CHAT_GPT_API_KEY = "chatGptApiKey"; @SerializedName(SERIALIZED_NAME_CHAT_GPT_API_KEY) @@ -104,7 +95,8 @@ public class UpdateConfigurationRequest { @javax.annotation.Nullable private DocusignConfig docusign; - public UpdateConfigurationRequest() {} + public UpdateConfigurationRequest() { + } public UpdateConfigurationRequest chatGptApiKey(@javax.annotation.Nullable String chatGptApiKey) { this.chatGptApiKey = chatGptApiKey; @@ -113,7 +105,6 @@ public UpdateConfigurationRequest chatGptApiKey(@javax.annotation.Nullable Strin /** * ChatGPT Api Key - * * @return chatGptApiKey */ @javax.annotation.Nullable @@ -126,15 +117,13 @@ public void setChatGptApiKey(@javax.annotation.Nullable String chatGptApiKey) { } - public UpdateConfigurationRequest maxContentLengthBytes( - @javax.annotation.Nullable String maxContentLengthBytes) { + public UpdateConfigurationRequest maxContentLengthBytes(@javax.annotation.Nullable String maxContentLengthBytes) { this.maxContentLengthBytes = maxContentLengthBytes; return this; } /** * Set Maximum Document Content Length in Bytes - * * @return maxContentLengthBytes */ @javax.annotation.Nullable @@ -154,7 +143,6 @@ public UpdateConfigurationRequest maxDocuments(@javax.annotation.Nullable String /** * Set Maximum number of Documents allowed - * * @return maxDocuments */ @javax.annotation.Nullable @@ -174,7 +162,6 @@ public UpdateConfigurationRequest maxWebhooks(@javax.annotation.Nullable String /** * Set Maximum number of Webhooks allowed - * * @return maxWebhooks */ @javax.annotation.Nullable @@ -187,15 +174,13 @@ public void setMaxWebhooks(@javax.annotation.Nullable String maxWebhooks) { } - public UpdateConfigurationRequest notificationEmail( - @javax.annotation.Nullable String notificationEmail) { + public UpdateConfigurationRequest notificationEmail(@javax.annotation.Nullable String notificationEmail) { this.notificationEmail = notificationEmail; return this; } /** * Email address to use for notifications - * * @return notificationEmail */ @javax.annotation.Nullable @@ -215,7 +200,6 @@ public UpdateConfigurationRequest ocr(@javax.annotation.Nullable OcrConfig ocr) /** * Get ocr - * * @return ocr */ @javax.annotation.Nullable @@ -235,7 +219,6 @@ public UpdateConfigurationRequest google(@javax.annotation.Nullable GoogleConfig /** * Get google - * * @return google */ @javax.annotation.Nullable @@ -255,7 +238,6 @@ public UpdateConfigurationRequest docusign(@javax.annotation.Nullable DocusignCo /** * Get docusign - * * @return docusign */ @javax.annotation.Nullable @@ -278,21 +260,19 @@ public boolean equals(Object o) { return false; } UpdateConfigurationRequest updateConfigurationRequest = (UpdateConfigurationRequest) o; - return Objects.equals(this.chatGptApiKey, updateConfigurationRequest.chatGptApiKey) - && Objects.equals(this.maxContentLengthBytes, - updateConfigurationRequest.maxContentLengthBytes) - && Objects.equals(this.maxDocuments, updateConfigurationRequest.maxDocuments) - && Objects.equals(this.maxWebhooks, updateConfigurationRequest.maxWebhooks) - && Objects.equals(this.notificationEmail, updateConfigurationRequest.notificationEmail) - && Objects.equals(this.ocr, updateConfigurationRequest.ocr) - && Objects.equals(this.google, updateConfigurationRequest.google) - && Objects.equals(this.docusign, updateConfigurationRequest.docusign); + return Objects.equals(this.chatGptApiKey, updateConfigurationRequest.chatGptApiKey) && + Objects.equals(this.maxContentLengthBytes, updateConfigurationRequest.maxContentLengthBytes) && + Objects.equals(this.maxDocuments, updateConfigurationRequest.maxDocuments) && + Objects.equals(this.maxWebhooks, updateConfigurationRequest.maxWebhooks) && + Objects.equals(this.notificationEmail, updateConfigurationRequest.notificationEmail) && + Objects.equals(this.ocr, updateConfigurationRequest.ocr) && + Objects.equals(this.google, updateConfigurationRequest.google) && + Objects.equals(this.docusign, updateConfigurationRequest.docusign); } @Override public int hashCode() { - return Objects.hash(chatGptApiKey, maxContentLengthBytes, maxDocuments, maxWebhooks, - notificationEmail, ocr, google, docusign); + return Objects.hash(chatGptApiKey, maxContentLengthBytes, maxDocuments, maxWebhooks, notificationEmail, ocr, google, docusign); } @Override @@ -300,8 +280,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateConfigurationRequest {\n"); sb.append(" chatGptApiKey: ").append(toIndentedString(chatGptApiKey)).append("\n"); - sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)) - .append("\n"); + sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)).append("\n"); sb.append(" maxDocuments: ").append(toIndentedString(maxDocuments)).append("\n"); sb.append(" maxWebhooks: ").append(toIndentedString(maxWebhooks)).append("\n"); sb.append(" notificationEmail: ").append(toIndentedString(notificationEmail)).append("\n"); @@ -313,7 +292,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -328,8 +308,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("chatGptApiKey", "maxContentLengthBytes", - "maxDocuments", "maxWebhooks", "notificationEmail", "ocr", "google", "docusign")); + openapiFields = new HashSet(Arrays.asList("chatGptApiKey", "maxContentLengthBytes", "maxDocuments", "maxWebhooks", "notificationEmail", "ocr", "google", "docusign")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -342,96 +321,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateConfigurationRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateConfigurationRequest.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateConfigurationRequest is not found in the empty JSON string", - UpdateConfigurationRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateConfigurationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateConfigurationRequest is not found in the empty JSON string", UpdateConfigurationRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateConfigurationRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateConfigurationRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateConfigurationRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateConfigurationRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("chatGptApiKey") != null && !jsonObj.get("chatGptApiKey").isJsonNull()) && !jsonObj.get("chatGptApiKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `chatGptApiKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("chatGptApiKey").toString())); + } + if ((jsonObj.get("maxContentLengthBytes") != null && !jsonObj.get("maxContentLengthBytes").isJsonNull()) && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxContentLengthBytes").toString())); + } + if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) && !jsonObj.get("maxDocuments").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxDocuments").toString())); + } + if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxWebhooks").toString())); + } + if ((jsonObj.get("notificationEmail") != null && !jsonObj.get("notificationEmail").isJsonNull()) && !jsonObj.get("notificationEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationEmail").toString())); + } + // validate the optional field `ocr` + if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { + OcrConfig.validateJsonElement(jsonObj.get("ocr")); + } + // validate the optional field `google` + if (jsonObj.get("google") != null && !jsonObj.get("google").isJsonNull()) { + GoogleConfig.validateJsonElement(jsonObj.get("google")); + } + // validate the optional field `docusign` + if (jsonObj.get("docusign") != null && !jsonObj.get("docusign").isJsonNull()) { + DocusignConfig.validateJsonElement(jsonObj.get("docusign")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("chatGptApiKey") != null && !jsonObj.get("chatGptApiKey").isJsonNull()) - && !jsonObj.get("chatGptApiKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `chatGptApiKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("chatGptApiKey").toString())); - } - if ((jsonObj.get("maxContentLengthBytes") != null - && !jsonObj.get("maxContentLengthBytes").isJsonNull()) - && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("maxContentLengthBytes").toString())); - } - if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) - && !jsonObj.get("maxDocuments").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("maxDocuments").toString())); - } - if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) - && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("maxWebhooks").toString())); - } - if ((jsonObj.get("notificationEmail") != null && !jsonObj.get("notificationEmail").isJsonNull()) - && !jsonObj.get("notificationEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `notificationEmail` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("notificationEmail").toString())); - } - // validate the optional field `ocr` - if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { - OcrConfig.validateJsonElement(jsonObj.get("ocr")); - } - // validate the optional field `google` - if (jsonObj.get("google") != null && !jsonObj.get("google").isJsonNull()) { - GoogleConfig.validateJsonElement(jsonObj.get("google")); - } - // validate the optional field `docusign` - if (jsonObj.get("docusign") != null && !jsonObj.get("docusign").isJsonNull()) { - DocusignConfig.validateJsonElement(jsonObj.get("docusign")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateConfigurationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateConfigurationRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateConfigurationRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateConfigurationRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateConfigurationRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateConfigurationRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateConfigurationRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateConfigurationRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateConfigurationRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateConfigurationRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java b/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java index f6da773d2..1715cb3ad 100644 --- a/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * UpdateConfigurationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateConfigurationResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateConfigurationResponse() {} + public UpdateConfigurationResponse() { + } public UpdateConfigurationResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public UpdateConfigurationResponse message(@javax.annotation.Nullable String mes /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateConfigurationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateConfigurationResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateConfigurationResponse is not found in the empty JSON string", - UpdateConfigurationResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateConfigurationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateConfigurationResponse is not found in the empty JSON string", UpdateConfigurationResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateConfigurationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateConfigurationResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateConfigurationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateConfigurationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateConfigurationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateConfigurationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateConfigurationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateConfigurationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateConfigurationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateConfigurationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateConfigurationResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateConfigurationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateConfigurationResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateConfigurationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java index 4b19b7f79..87b37bd37 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -65,9 +58,7 @@ /** * UpdateDocumentFulltextRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) @@ -129,7 +120,8 @@ public class UpdateDocumentFulltextRequest { @javax.annotation.Nullable private Map attributes = new HashMap<>(); - public UpdateDocumentFulltextRequest() {} + public UpdateDocumentFulltextRequest() { + } public UpdateDocumentFulltextRequest contentType(@javax.annotation.Nullable String contentType) { this.contentType = contentType; @@ -138,7 +130,6 @@ public UpdateDocumentFulltextRequest contentType(@javax.annotation.Nullable Stri /** * Document Content-Type - * * @return contentType */ @javax.annotation.Nullable @@ -158,7 +149,6 @@ public UpdateDocumentFulltextRequest content(@javax.annotation.Nullable String c /** * Document content - * * @return content */ @javax.annotation.Nullable @@ -171,8 +161,7 @@ public void setContent(@javax.annotation.Nullable String content) { } - public UpdateDocumentFulltextRequest contentUrls( - @javax.annotation.Nullable List contentUrls) { + public UpdateDocumentFulltextRequest contentUrls(@javax.annotation.Nullable List contentUrls) { this.contentUrls = contentUrls; return this; } @@ -187,7 +176,6 @@ public UpdateDocumentFulltextRequest addContentUrlsItem(String contentUrlsItem) /** * URL(s) which contain document content - * * @return contentUrls */ @javax.annotation.Nullable @@ -207,7 +195,6 @@ public UpdateDocumentFulltextRequest path(@javax.annotation.Nullable String path /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -227,7 +214,6 @@ public UpdateDocumentFulltextRequest width(@javax.annotation.Nullable String wid /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -247,7 +233,6 @@ public UpdateDocumentFulltextRequest height(@javax.annotation.Nullable String he /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -260,15 +245,13 @@ public void setHeight(@javax.annotation.Nullable String height) { } - public UpdateDocumentFulltextRequest deepLinkPath( - @javax.annotation.Nullable String deepLinkPath) { + public UpdateDocumentFulltextRequest deepLinkPath(@javax.annotation.Nullable String deepLinkPath) { this.deepLinkPath = deepLinkPath; return this; } /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -288,7 +271,6 @@ public UpdateDocumentFulltextRequest checksum(@javax.annotation.Nullable String /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -301,15 +283,13 @@ public void setChecksum(@javax.annotation.Nullable String checksum) { } - public UpdateDocumentFulltextRequest checksumType( - @javax.annotation.Nullable ChecksumType checksumType) { + public UpdateDocumentFulltextRequest checksumType(@javax.annotation.Nullable ChecksumType checksumType) { this.checksumType = checksumType; return this; } /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -337,7 +317,6 @@ public UpdateDocumentFulltextRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags - * * @return tags */ @javax.annotation.Nullable @@ -350,8 +329,7 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public UpdateDocumentFulltextRequest metadata( - @javax.annotation.Nullable List metadata) { + public UpdateDocumentFulltextRequest metadata(@javax.annotation.Nullable List metadata) { this.metadata = metadata; return this; } @@ -366,7 +344,6 @@ public UpdateDocumentFulltextRequest addMetadataItem(AddDocumentMetadata metadat /** * List of document Metadata - * * @return metadata */ @javax.annotation.Nullable @@ -379,14 +356,12 @@ public void setMetadata(@javax.annotation.Nullable List met } - public UpdateDocumentFulltextRequest attributes( - @javax.annotation.Nullable Map attributes) { + public UpdateDocumentFulltextRequest attributes(@javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } - public UpdateDocumentFulltextRequest putAttributesItem(String key, - FulltextAttribute attributesItem) { + public UpdateDocumentFulltextRequest putAttributesItem(String key, FulltextAttribute attributesItem) { if (this.attributes == null) { this.attributes = new HashMap<>(); } @@ -396,7 +371,6 @@ public UpdateDocumentFulltextRequest putAttributesItem(String key, /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -419,24 +393,23 @@ public boolean equals(Object o) { return false; } UpdateDocumentFulltextRequest updateDocumentFulltextRequest = (UpdateDocumentFulltextRequest) o; - return Objects.equals(this.contentType, updateDocumentFulltextRequest.contentType) - && Objects.equals(this.content, updateDocumentFulltextRequest.content) - && Objects.equals(this.contentUrls, updateDocumentFulltextRequest.contentUrls) - && Objects.equals(this.path, updateDocumentFulltextRequest.path) - && Objects.equals(this.width, updateDocumentFulltextRequest.width) - && Objects.equals(this.height, updateDocumentFulltextRequest.height) - && Objects.equals(this.deepLinkPath, updateDocumentFulltextRequest.deepLinkPath) - && Objects.equals(this.checksum, updateDocumentFulltextRequest.checksum) - && Objects.equals(this.checksumType, updateDocumentFulltextRequest.checksumType) - && Objects.equals(this.tags, updateDocumentFulltextRequest.tags) - && Objects.equals(this.metadata, updateDocumentFulltextRequest.metadata) - && Objects.equals(this.attributes, updateDocumentFulltextRequest.attributes); + return Objects.equals(this.contentType, updateDocumentFulltextRequest.contentType) && + Objects.equals(this.content, updateDocumentFulltextRequest.content) && + Objects.equals(this.contentUrls, updateDocumentFulltextRequest.contentUrls) && + Objects.equals(this.path, updateDocumentFulltextRequest.path) && + Objects.equals(this.width, updateDocumentFulltextRequest.width) && + Objects.equals(this.height, updateDocumentFulltextRequest.height) && + Objects.equals(this.deepLinkPath, updateDocumentFulltextRequest.deepLinkPath) && + Objects.equals(this.checksum, updateDocumentFulltextRequest.checksum) && + Objects.equals(this.checksumType, updateDocumentFulltextRequest.checksumType) && + Objects.equals(this.tags, updateDocumentFulltextRequest.tags) && + Objects.equals(this.metadata, updateDocumentFulltextRequest.metadata) && + Objects.equals(this.attributes, updateDocumentFulltextRequest.attributes); } @Override public int hashCode() { - return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, - checksum, checksumType, tags, metadata, attributes); + return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, checksum, checksumType, tags, metadata, attributes); } @Override @@ -460,7 +433,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -475,9 +449,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", - "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); + openapiFields = new HashSet(Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -487,143 +459,108 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * UpdateDocumentFulltextRequest + * @throws IOException if the JSON Element is invalid with respect to UpdateDocumentFulltextRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateDocumentFulltextRequest is not found in the empty JSON string", - UpdateDocumentFulltextRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateDocumentFulltextRequest is not found in the empty JSON string", UpdateDocumentFulltextRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateDocumentFulltextRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateDocumentFulltextRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) - && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() - && !jsonObj.get("contentUrls").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", - jsonObj.get("contentUrls").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() && !jsonObj.get("contentUrls").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", jsonObj.get("contentUrls").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `metadata` to be an array in the JSON string but got `%s`", - jsonObj.get("metadata").toString())); + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + }; } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateDocumentFulltextRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentFulltextRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateDocumentFulltextRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateDocumentFulltextRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateDocumentFulltextRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentFulltextRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateDocumentFulltextRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateDocumentFulltextRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java index ef1050303..02c87350a 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * UpdateDocumentFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateDocumentFulltextResponse() {} + public UpdateDocumentFulltextResponse() { + } public UpdateDocumentFulltextResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public UpdateDocumentFulltextResponse message(@javax.annotation.Nullable String /** * Full text processing message - * * @return message */ @javax.annotation.Nullable @@ -97,8 +88,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateDocumentFulltextResponse updateDocumentFulltextResponse = - (UpdateDocumentFulltextResponse) o; + UpdateDocumentFulltextResponse updateDocumentFulltextResponse = (UpdateDocumentFulltextResponse) o; return Objects.equals(this.message, updateDocumentFulltextResponse.message); } @@ -117,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,64 +133,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * UpdateDocumentFulltextResponse + * @throws IOException if the JSON Element is invalid with respect to UpdateDocumentFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields - // but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateDocumentFulltextResponse is not found in the empty JSON string", - UpdateDocumentFulltextResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateDocumentFulltextResponse is not found in the empty JSON string", UpdateDocumentFulltextResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateDocumentFulltextResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateDocumentFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateDocumentFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateDocumentFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateDocumentFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateDocumentFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateDocumentFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateDocumentFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -208,8 +189,7 @@ public UpdateDocumentFulltextResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of UpdateDocumentFulltextResponse - * @throws IOException if the JSON string is invalid with respect to - * UpdateDocumentFulltextResponse + * @throws IOException if the JSON string is invalid with respect to UpdateDocumentFulltextResponse */ public static UpdateDocumentFulltextResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateDocumentFulltextResponse.class); diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java b/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java index 759e8021b..1960adda3 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -65,9 +58,7 @@ /** * UpdateDocumentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateDocumentRequest { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -139,7 +130,8 @@ public class UpdateDocumentRequest { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public UpdateDocumentRequest() {} + public UpdateDocumentRequest() { + } public UpdateDocumentRequest path(@javax.annotation.Nullable String path) { this.path = path; @@ -148,7 +140,6 @@ public UpdateDocumentRequest path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -168,7 +159,6 @@ public UpdateDocumentRequest width(@javax.annotation.Nullable String width) { /** * Document Content Width property - * * @return width */ @javax.annotation.Nullable @@ -188,7 +178,6 @@ public UpdateDocumentRequest height(@javax.annotation.Nullable String height) { /** * Document Content Height property - * * @return height */ @javax.annotation.Nullable @@ -208,7 +197,6 @@ public UpdateDocumentRequest deepLinkPath(@javax.annotation.Nullable String deep /** * Path or Name of deep link - * * @return deepLinkPath */ @javax.annotation.Nullable @@ -228,7 +216,6 @@ public UpdateDocumentRequest contentType(@javax.annotation.Nullable String conte /** * Document media type - * * @return contentType */ @javax.annotation.Nullable @@ -248,7 +235,6 @@ public UpdateDocumentRequest isBase64(@javax.annotation.Nullable Boolean isBase6 /** * Is the content Base64-encoded? - * * @return isBase64 */ @javax.annotation.Nullable @@ -268,7 +254,6 @@ public UpdateDocumentRequest content(@javax.annotation.Nullable String content) /** * Document content - * * @return content */ @javax.annotation.Nullable @@ -288,7 +273,6 @@ public UpdateDocumentRequest checksum(@javax.annotation.Nullable String checksum /** * Document checksum, changes when document file changes - * * @return checksum */ @javax.annotation.Nullable @@ -308,7 +292,6 @@ public UpdateDocumentRequest checksumType(@javax.annotation.Nullable ChecksumTyp /** * Get checksumType - * * @return checksumType */ @javax.annotation.Nullable @@ -336,7 +319,6 @@ public UpdateDocumentRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags - * * @return tags */ @javax.annotation.Nullable @@ -349,8 +331,7 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public UpdateDocumentRequest metadata( - @javax.annotation.Nullable List metadata) { + public UpdateDocumentRequest metadata(@javax.annotation.Nullable List metadata) { this.metadata = metadata; return this; } @@ -365,7 +346,6 @@ public UpdateDocumentRequest addMetadataItem(AddDocumentMetadata metadataItem) { /** * List of document Metadata - * * @return metadata */ @javax.annotation.Nullable @@ -378,8 +358,7 @@ public void setMetadata(@javax.annotation.Nullable List met } - public UpdateDocumentRequest attributes( - @javax.annotation.Nullable List attributes) { + public UpdateDocumentRequest attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -394,7 +373,6 @@ public UpdateDocumentRequest addAttributesItem(AddDocumentAttribute attributesIt /** * List of document attributes - * * @return attributes */ @javax.annotation.Nullable @@ -422,7 +400,6 @@ public UpdateDocumentRequest addActionsItem(AddAction actionsItem) { /** * List of Actions - * * @return actions */ @javax.annotation.Nullable @@ -435,8 +412,7 @@ public void setActions(@javax.annotation.Nullable List actions) { } - public UpdateDocumentRequest documents( - @javax.annotation.Nullable List documents) { + public UpdateDocumentRequest documents(@javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -451,7 +427,6 @@ public UpdateDocumentRequest addDocumentsItem(AddChildDocument documentsItem) { /** * List of child documents - * * @return documents */ @javax.annotation.Nullable @@ -474,26 +449,25 @@ public boolean equals(Object o) { return false; } UpdateDocumentRequest updateDocumentRequest = (UpdateDocumentRequest) o; - return Objects.equals(this.path, updateDocumentRequest.path) - && Objects.equals(this.width, updateDocumentRequest.width) - && Objects.equals(this.height, updateDocumentRequest.height) - && Objects.equals(this.deepLinkPath, updateDocumentRequest.deepLinkPath) - && Objects.equals(this.contentType, updateDocumentRequest.contentType) - && Objects.equals(this.isBase64, updateDocumentRequest.isBase64) - && Objects.equals(this.content, updateDocumentRequest.content) - && Objects.equals(this.checksum, updateDocumentRequest.checksum) - && Objects.equals(this.checksumType, updateDocumentRequest.checksumType) - && Objects.equals(this.tags, updateDocumentRequest.tags) - && Objects.equals(this.metadata, updateDocumentRequest.metadata) - && Objects.equals(this.attributes, updateDocumentRequest.attributes) - && Objects.equals(this.actions, updateDocumentRequest.actions) - && Objects.equals(this.documents, updateDocumentRequest.documents); + return Objects.equals(this.path, updateDocumentRequest.path) && + Objects.equals(this.width, updateDocumentRequest.width) && + Objects.equals(this.height, updateDocumentRequest.height) && + Objects.equals(this.deepLinkPath, updateDocumentRequest.deepLinkPath) && + Objects.equals(this.contentType, updateDocumentRequest.contentType) && + Objects.equals(this.isBase64, updateDocumentRequest.isBase64) && + Objects.equals(this.content, updateDocumentRequest.content) && + Objects.equals(this.checksum, updateDocumentRequest.checksum) && + Objects.equals(this.checksumType, updateDocumentRequest.checksumType) && + Objects.equals(this.tags, updateDocumentRequest.tags) && + Objects.equals(this.metadata, updateDocumentRequest.metadata) && + Objects.equals(this.attributes, updateDocumentRequest.attributes) && + Objects.equals(this.actions, updateDocumentRequest.actions) && + Objects.equals(this.documents, updateDocumentRequest.documents); } @Override public int hashCode() { - return Objects.hash(path, width, height, deepLinkPath, contentType, isBase64, content, checksum, - checksumType, tags, metadata, attributes, actions, documents); + return Objects.hash(path, width, height, deepLinkPath, contentType, isBase64, content, checksum, checksumType, tags, metadata, attributes, actions, documents); } @Override @@ -519,7 +493,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -534,9 +509,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", - "contentType", "isBase64", "content", "checksum", "checksumType", "tags", "metadata", - "attributes", "actions", "documents")); + openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", "contentType", "isBase64", "content", "checksum", "checksumType", "tags", "metadata", "attributes", "actions", "documents")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -549,179 +522,143 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateDocumentRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateDocumentRequest is not found in the empty JSON string", - UpdateDocumentRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateDocumentRequest is not found in the empty JSON string", UpdateDocumentRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateDocumentRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateDocumentRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateDocumentRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateDocumentRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) - && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `width` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) - && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `height` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) - && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) - && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) - && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `content` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("content").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) - && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `metadata` to be an array in the JSON string but got `%s`", - jsonObj.get("metadata").toString())); + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + }; } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - } ; } - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `attributes` to be an array in the JSON string but got `%s`", - jsonObj.get("attributes").toString())); + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - } ; } - } - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - if (jsonArrayactions != null) { - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `actions` to be an array in the JSON string but got `%s`", - jsonObj.get("actions").toString())); + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { + JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); + if (jsonArrayactions != null) { + // ensure the json data is an array + if (!jsonObj.get("actions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); + } + + // validate the optional field `actions` (array) + for (int i = 0; i < jsonArrayactions.size(); i++) { + AddAction.validateJsonElement(jsonArrayactions.get(i)); + }; } - - // validate the optional field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - AddAction.validateJsonElement(jsonArrayactions.get(i)); - } ; } - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documents` to be an array in the JSON string but got `%s`", - jsonObj.get("documents").toString())); + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); + } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + AddChildDocument.validateJsonElement(jsonArraydocuments.get(i)); + }; } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - AddChildDocument.validateJsonElement(jsonArraydocuments.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateDocumentRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateDocumentRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateDocumentRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateDocumentRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateDocumentRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateDocumentRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateDocumentRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateDocumentRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java b/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java index 8ff3ce927..b9a57061d 100644 --- a/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * UpdateEntityRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateEntityRequest { public static final String SERIALIZED_NAME_ENTITY = "entity"; @SerializedName(SERIALIZED_NAME_ENTITY) @javax.annotation.Nullable private AddEntity entity; - public UpdateEntityRequest() {} + public UpdateEntityRequest() { + } public UpdateEntityRequest entity(@javax.annotation.Nullable AddEntity entity) { this.entity = entity; @@ -76,7 +68,6 @@ public UpdateEntityRequest entity(@javax.annotation.Nullable AddEntity entity) { /** * Get entity - * * @return entity */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateEntityRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateEntityRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateEntityRequest is not found in the empty JSON string", - UpdateEntityRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateEntityRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateEntityRequest is not found in the empty JSON string", UpdateEntityRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateEntityRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateEntityRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateEntityRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateEntityRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `entity` + if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { + AddEntity.validateJsonElement(jsonObj.get("entity")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `entity` - if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { - AddEntity.validateJsonElement(jsonObj.get("entity")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateEntityRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateEntityRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateEntityRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateEntityRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateEntityRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateEntityRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateEntityRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateEntityRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateEntityRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateEntityRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java index fb002176f..40352a51b 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * Add/Update of multiple document tag(s) based on document(s) that have the matching tag. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequest { public static final String SERIALIZED_NAME_MATCH = "match"; @SerializedName(SERIALIZED_NAME_MATCH) @@ -73,17 +64,16 @@ public class UpdateMatchingDocumentTagsRequest { @javax.annotation.Nonnull private UpdateMatchingDocumentTagsRequestUpdate update; - public UpdateMatchingDocumentTagsRequest() {} + public UpdateMatchingDocumentTagsRequest() { + } - public UpdateMatchingDocumentTagsRequest match( - @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequestMatch match) { + public UpdateMatchingDocumentTagsRequest match(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequestMatch match) { this.match = match; return this; } /** * Get match - * * @return match */ @javax.annotation.Nonnull @@ -96,15 +86,13 @@ public void setMatch(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest } - public UpdateMatchingDocumentTagsRequest update( - @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequestUpdate update) { + public UpdateMatchingDocumentTagsRequest update(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequestUpdate update) { this.update = update; return this; } /** * Get update - * * @return update */ @javax.annotation.Nonnull @@ -126,10 +114,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest = - (UpdateMatchingDocumentTagsRequest) o; - return Objects.equals(this.match, updateMatchingDocumentTagsRequest.match) - && Objects.equals(this.update, updateMatchingDocumentTagsRequest.update); + UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest = (UpdateMatchingDocumentTagsRequest) o; + return Objects.equals(this.match, updateMatchingDocumentTagsRequest.match) && + Objects.equals(this.update, updateMatchingDocumentTagsRequest.update); } @Override @@ -148,7 +135,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,73 +161,62 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * UpdateMatchingDocumentTagsRequest + * @throws IOException if the JSON Element is invalid with respect to UpdateMatchingDocumentTagsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateMatchingDocumentTagsRequest.openapiRequiredFields.isEmpty()) { // has required - // fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateMatchingDocumentTagsRequest is not found in the empty JSON string", - UpdateMatchingDocumentTagsRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateMatchingDocumentTagsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateMatchingDocumentTagsRequest is not found in the empty JSON string", UpdateMatchingDocumentTagsRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateMatchingDocumentTagsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateMatchingDocumentTagsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UpdateMatchingDocumentTagsRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : UpdateMatchingDocumentTagsRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `match` - UpdateMatchingDocumentTagsRequestMatch.validateJsonElement(jsonObj.get("match")); - // validate the required field `update` - UpdateMatchingDocumentTagsRequestUpdate.validateJsonElement(jsonObj.get("update")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `match` + UpdateMatchingDocumentTagsRequestMatch.validateJsonElement(jsonObj.get("match")); + // validate the required field `update` + UpdateMatchingDocumentTagsRequestUpdate.validateJsonElement(jsonObj.get("update")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateMatchingDocumentTagsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateMatchingDocumentTagsRequest' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateMatchingDocumentTagsRequest value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateMatchingDocumentTagsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateMatchingDocumentTagsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateMatchingDocumentTagsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateMatchingDocumentTagsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateMatchingDocumentTagsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -248,8 +225,7 @@ public UpdateMatchingDocumentTagsRequest read(JsonReader in) throws IOException * * @param jsonString JSON string * @return An instance of UpdateMatchingDocumentTagsRequest - * @throws IOException if the JSON string is invalid with respect to - * UpdateMatchingDocumentTagsRequest + * @throws IOException if the JSON string is invalid with respect to UpdateMatchingDocumentTagsRequest */ public static UpdateMatchingDocumentTagsRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateMatchingDocumentTagsRequest.class); diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java index c6e040c77..37d55c462 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,26 +51,23 @@ /** * UpdateMatchingDocumentTagsRequestMatch */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequestMatch { public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) @javax.annotation.Nullable private MatchDocumentTag tag; - public UpdateMatchingDocumentTagsRequestMatch() {} + public UpdateMatchingDocumentTagsRequestMatch() { + } - public UpdateMatchingDocumentTagsRequestMatch tag( - @javax.annotation.Nullable MatchDocumentTag tag) { + public UpdateMatchingDocumentTagsRequestMatch tag(@javax.annotation.Nullable MatchDocumentTag tag) { this.tag = tag; return this; } /** * Get tag - * * @return tag */ @javax.annotation.Nullable @@ -99,8 +89,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateMatchingDocumentTagsRequestMatch updateMatchingDocumentTagsRequestMatch = - (UpdateMatchingDocumentTagsRequestMatch) o; + UpdateMatchingDocumentTagsRequestMatch updateMatchingDocumentTagsRequestMatch = (UpdateMatchingDocumentTagsRequestMatch) o; return Objects.equals(this.tag, updateMatchingDocumentTagsRequestMatch.tag); } @@ -119,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,65 +134,55 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * UpdateMatchingDocumentTagsRequestMatch + * @throws IOException if the JSON Element is invalid with respect to UpdateMatchingDocumentTagsRequestMatch */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateMatchingDocumentTagsRequestMatch.openapiRequiredFields.isEmpty()) { // has required - // fields but - // JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateMatchingDocumentTagsRequestMatch is not found in the empty JSON string", - UpdateMatchingDocumentTagsRequestMatch.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateMatchingDocumentTagsRequestMatch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateMatchingDocumentTagsRequestMatch is not found in the empty JSON string", UpdateMatchingDocumentTagsRequestMatch.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateMatchingDocumentTagsRequestMatch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequestMatch` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateMatchingDocumentTagsRequestMatch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequestMatch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `tag` + if (jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) { + MatchDocumentTag.validateJsonElement(jsonObj.get("tag")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `tag` - if (jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) { - MatchDocumentTag.validateJsonElement(jsonObj.get("tag")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateMatchingDocumentTagsRequestMatch.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateMatchingDocumentTagsRequestMatch' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = gson - .getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequestMatch.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateMatchingDocumentTagsRequestMatch value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateMatchingDocumentTagsRequestMatch read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateMatchingDocumentTagsRequestMatch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateMatchingDocumentTagsRequestMatch' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequestMatch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateMatchingDocumentTagsRequestMatch value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateMatchingDocumentTagsRequestMatch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -211,11 +191,9 @@ public UpdateMatchingDocumentTagsRequestMatch read(JsonReader in) throws IOExcep * * @param jsonString JSON string * @return An instance of UpdateMatchingDocumentTagsRequestMatch - * @throws IOException if the JSON string is invalid with respect to - * UpdateMatchingDocumentTagsRequestMatch + * @throws IOException if the JSON string is invalid with respect to UpdateMatchingDocumentTagsRequestMatch */ - public static UpdateMatchingDocumentTagsRequestMatch fromJson(String jsonString) - throws IOException { + public static UpdateMatchingDocumentTagsRequestMatch fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateMatchingDocumentTagsRequestMatch.class); } diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java index 20e383dcb..adb860ee9 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,19 +53,17 @@ /** * Data to update */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequestUpdate { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @javax.annotation.Nullable private List tags = new ArrayList<>(); - public UpdateMatchingDocumentTagsRequestUpdate() {} + public UpdateMatchingDocumentTagsRequestUpdate() { + } - public UpdateMatchingDocumentTagsRequestUpdate tags( - @javax.annotation.Nullable List tags) { + public UpdateMatchingDocumentTagsRequestUpdate tags(@javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -87,7 +78,6 @@ public UpdateMatchingDocumentTagsRequestUpdate addTagsItem(AddDocumentTag tagsIt /** * List of document tags - * * @return tags */ @javax.annotation.Nullable @@ -109,8 +99,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateMatchingDocumentTagsRequestUpdate updateMatchingDocumentTagsRequestUpdate = - (UpdateMatchingDocumentTagsRequestUpdate) o; + UpdateMatchingDocumentTagsRequestUpdate updateMatchingDocumentTagsRequestUpdate = (UpdateMatchingDocumentTagsRequestUpdate) o; return Objects.equals(this.tags, updateMatchingDocumentTagsRequestUpdate.tags); } @@ -129,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -154,79 +144,65 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * UpdateMatchingDocumentTagsRequestUpdate + * @throws IOException if the JSON Element is invalid with respect to UpdateMatchingDocumentTagsRequestUpdate */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateMatchingDocumentTagsRequestUpdate.openapiRequiredFields.isEmpty()) { // has - // required - // fields but - // JSON - // element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateMatchingDocumentTagsRequestUpdate is not found in the empty JSON string", - UpdateMatchingDocumentTagsRequestUpdate.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateMatchingDocumentTagsRequestUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateMatchingDocumentTagsRequestUpdate is not found in the empty JSON string", UpdateMatchingDocumentTagsRequestUpdate.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateMatchingDocumentTagsRequestUpdate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequestUpdate` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateMatchingDocumentTagsRequestUpdate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequestUpdate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `tags` to be an array in the JSON string but got `%s`", - jsonObj.get("tags").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + }; } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateMatchingDocumentTagsRequestUpdate.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateMatchingDocumentTagsRequestUpdate' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = gson - .getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequestUpdate.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateMatchingDocumentTagsRequestUpdate value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateMatchingDocumentTagsRequestUpdate read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateMatchingDocumentTagsRequestUpdate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateMatchingDocumentTagsRequestUpdate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequestUpdate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateMatchingDocumentTagsRequestUpdate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateMatchingDocumentTagsRequestUpdate read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -235,11 +211,9 @@ public UpdateMatchingDocumentTagsRequestUpdate read(JsonReader in) throws IOExce * * @param jsonString JSON string * @return An instance of UpdateMatchingDocumentTagsRequestUpdate - * @throws IOException if the JSON string is invalid with respect to - * UpdateMatchingDocumentTagsRequestUpdate + * @throws IOException if the JSON string is invalid with respect to UpdateMatchingDocumentTagsRequestUpdate */ - public static UpdateMatchingDocumentTagsRequestUpdate fromJson(String jsonString) - throws IOException { + public static UpdateMatchingDocumentTagsRequestUpdate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateMatchingDocumentTagsRequestUpdate.class); } diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java index 258419d74..0f9c61d5b 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * UpdateMatchingDocumentTagsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateMatchingDocumentTagsResponse() {} + public UpdateMatchingDocumentTagsResponse() { + } public UpdateMatchingDocumentTagsResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public UpdateMatchingDocumentTagsResponse message(@javax.annotation.Nullable Str /** * response message - * * @return message */ @javax.annotation.Nullable @@ -97,8 +88,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateMatchingDocumentTagsResponse updateMatchingDocumentTagsResponse = - (UpdateMatchingDocumentTagsResponse) o; + UpdateMatchingDocumentTagsResponse updateMatchingDocumentTagsResponse = (UpdateMatchingDocumentTagsResponse) o; return Objects.equals(this.message, updateMatchingDocumentTagsResponse.message); } @@ -117,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -142,66 +133,54 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * UpdateMatchingDocumentTagsResponse + * @throws IOException if the JSON Element is invalid with respect to UpdateMatchingDocumentTagsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateMatchingDocumentTagsResponse.openapiRequiredFields.isEmpty()) { // has required - // fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateMatchingDocumentTagsResponse is not found in the empty JSON string", - UpdateMatchingDocumentTagsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateMatchingDocumentTagsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateMatchingDocumentTagsResponse is not found in the empty JSON string", UpdateMatchingDocumentTagsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateMatchingDocumentTagsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateMatchingDocumentTagsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateMatchingDocumentTagsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateMatchingDocumentTagsResponse' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateMatchingDocumentTagsResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateMatchingDocumentTagsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateMatchingDocumentTagsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateMatchingDocumentTagsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateMatchingDocumentTagsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateMatchingDocumentTagsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -210,8 +189,7 @@ public UpdateMatchingDocumentTagsResponse read(JsonReader in) throws IOException * * @param jsonString JSON string * @return An instance of UpdateMatchingDocumentTagsResponse - * @throws IOException if the JSON string is invalid with respect to - * UpdateMatchingDocumentTagsResponse + * @throws IOException if the JSON string is invalid with respect to UpdateMatchingDocumentTagsResponse */ public static UpdateMatchingDocumentTagsResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateMatchingDocumentTagsResponse.class); diff --git a/src/main/java/com/formkiq/client/model/UpdateNigo.java b/src/main/java/com/formkiq/client/model/UpdateNigo.java index ab5c9d5e2..405f2b99b 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigo.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigo.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * UpdateNigo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateNigo { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -111,7 +102,8 @@ public class UpdateNigo { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public UpdateNigo() {} + public UpdateNigo() { + } public UpdateNigo name(@javax.annotation.Nullable String name) { this.name = name; @@ -120,7 +112,6 @@ public UpdateNigo name(@javax.annotation.Nullable String name) { /** * Name of Nigo - * * @return name */ @javax.annotation.Nullable @@ -140,7 +131,6 @@ public UpdateNigo description(@javax.annotation.Nullable String description) { /** * Description of Nigo - * * @return description */ @javax.annotation.Nullable @@ -160,7 +150,6 @@ public UpdateNigo plannedStartDate(@javax.annotation.Nullable String plannedStar /** * Planned Start Date - * * @return plannedStartDate */ @javax.annotation.Nullable @@ -180,7 +169,6 @@ public UpdateNigo startDate(@javax.annotation.Nullable String startDate) { /** * Start Date - * * @return startDate */ @javax.annotation.Nullable @@ -200,7 +188,6 @@ public UpdateNigo endDate(@javax.annotation.Nullable String endDate) { /** * End Date - * * @return endDate */ @javax.annotation.Nullable @@ -220,7 +207,6 @@ public UpdateNigo dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date - * * @return dueDate */ @javax.annotation.Nullable @@ -240,7 +226,6 @@ public UpdateNigo status(@javax.annotation.Nullable NigoStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -268,7 +253,6 @@ public UpdateNigo putMetadataItem(String key, Object metadataItem) { /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -296,7 +280,6 @@ public UpdateNigo addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds - * * @return documentIds */ @javax.annotation.Nullable @@ -319,21 +302,20 @@ public boolean equals(Object o) { return false; } UpdateNigo updateNigo = (UpdateNigo) o; - return Objects.equals(this.name, updateNigo.name) - && Objects.equals(this.description, updateNigo.description) - && Objects.equals(this.plannedStartDate, updateNigo.plannedStartDate) - && Objects.equals(this.startDate, updateNigo.startDate) - && Objects.equals(this.endDate, updateNigo.endDate) - && Objects.equals(this.dueDate, updateNigo.dueDate) - && Objects.equals(this.status, updateNigo.status) - && Objects.equals(this.metadata, updateNigo.metadata) - && Objects.equals(this.documentIds, updateNigo.documentIds); + return Objects.equals(this.name, updateNigo.name) && + Objects.equals(this.description, updateNigo.description) && + Objects.equals(this.plannedStartDate, updateNigo.plannedStartDate) && + Objects.equals(this.startDate, updateNigo.startDate) && + Objects.equals(this.endDate, updateNigo.endDate) && + Objects.equals(this.dueDate, updateNigo.dueDate) && + Objects.equals(this.status, updateNigo.status) && + Objects.equals(this.metadata, updateNigo.metadata) && + Objects.equals(this.documentIds, updateNigo.documentIds); } @Override public int hashCode() { - return Objects.hash(name, description, plannedStartDate, startDate, endDate, dueDate, status, - metadata, documentIds); + return Objects.hash(name, description, plannedStartDate, startDate, endDate, dueDate, status, metadata, documentIds); } @Override @@ -354,7 +336,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -369,8 +352,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "description", "plannedStartDate", - "startDate", "endDate", "dueDate", "status", "metadata", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "description", "plannedStartDate", "startDate", "endDate", "dueDate", "status", "metadata", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -383,100 +365,74 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateNigo */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateNigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateNigo is not found in the empty JSON string", - UpdateNigo.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateNigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateNigo is not found in the empty JSON string", UpdateNigo.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateNigo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateNigo` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateNigo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateNigo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + NigoStatus.validateJsonElement(jsonObj.get("status")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) - && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) - && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) - && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) - && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("dueDate").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - NigoStatus.validateJsonElement(jsonObj.get("status")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() - && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentIds` to be an array in the JSON string but got `%s`", - jsonObj.get("documentIds").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateNigo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateNigo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateNigo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateNigo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateNigo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateNigo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateNigo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateNigo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateNigo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateNigo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java b/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java index 40f3a57d6..1bbea6120 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * UpdateNigoRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateNigoRequest { public static final String SERIALIZED_NAME_NIGO = "nigo"; @SerializedName(SERIALIZED_NAME_NIGO) @javax.annotation.Nullable private UpdateNigo nigo; - public UpdateNigoRequest() {} + public UpdateNigoRequest() { + } public UpdateNigoRequest nigo(@javax.annotation.Nullable UpdateNigo nigo) { this.nigo = nigo; @@ -76,7 +68,6 @@ public UpdateNigoRequest nigo(@javax.annotation.Nullable UpdateNigo nigo) { /** * Get nigo - * * @return nigo */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateNigoRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateNigoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateNigoRequest is not found in the empty JSON string", - UpdateNigoRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateNigoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateNigoRequest is not found in the empty JSON string", UpdateNigoRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateNigoRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateNigoRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateNigoRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateNigoRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `nigo` + if (jsonObj.get("nigo") != null && !jsonObj.get("nigo").isJsonNull()) { + UpdateNigo.validateJsonElement(jsonObj.get("nigo")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `nigo` - if (jsonObj.get("nigo") != null && !jsonObj.get("nigo").isJsonNull()) { - UpdateNigo.validateJsonElement(jsonObj.get("nigo")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateNigoRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateNigoRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateNigoRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateNigoRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateNigoRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateNigoRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateNigoRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateNigoRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateNigoRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateNigoRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java b/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java index 8f86fbea0..c6baf3e94 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * UpdateNigoResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateNigoResponse { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; @SerializedName(SERIALIZED_NAME_NIGO_ID) @javax.annotation.Nullable private String nigoId; - public UpdateNigoResponse() {} + public UpdateNigoResponse() { + } public UpdateNigoResponse nigoId(@javax.annotation.Nullable String nigoId) { this.nigoId = nigoId; @@ -75,7 +67,6 @@ public UpdateNigoResponse nigoId(@javax.annotation.Nullable String nigoId) { /** * Nigo Identifier - * * @return nigoId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateNigoResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateNigoResponse is not found in the empty JSON string", - UpdateNigoResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateNigoResponse is not found in the empty JSON string", UpdateNigoResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateNigoResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateNigoResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateNigoResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateNigoResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) && !jsonObj.get("nigoId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nigoId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) - && !jsonObj.get("nigoId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("nigoId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateNigoResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateNigoResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateNigoResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateNigoResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateNigoResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateNigoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateNigoResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateNigoResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateNigoResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateNigoResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateResponse.java b/src/main/java/com/formkiq/client/model/UpdateResponse.java index c7debdf54..18bad7b39 100644 --- a/src/main/java/com/formkiq/client/model/UpdateResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * UpdateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateResponse() {} + public UpdateResponse() { + } public UpdateResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public UpdateResponse message(@javax.annotation.Nullable String message) { /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateResponse is not found in the empty JSON string", - UpdateResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateResponse is not found in the empty JSON string", UpdateResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRule.java b/src/main/java/com/formkiq/client/model/UpdateRule.java index 798f9c133..8a7362353 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRule.java +++ b/src/main/java/com/formkiq/client/model/UpdateRule.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * UpdateRule */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRule { public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) @@ -89,7 +80,8 @@ public class UpdateRule { @javax.annotation.Nullable private RuleCondition conditions; - public UpdateRule() {} + public UpdateRule() { + } public UpdateRule priority(@javax.annotation.Nullable BigDecimal priority) { this.priority = priority; @@ -98,7 +90,6 @@ public UpdateRule priority(@javax.annotation.Nullable BigDecimal priority) { /** * Rule priority - * * @return priority */ @javax.annotation.Nullable @@ -118,7 +109,6 @@ public UpdateRule description(@javax.annotation.Nullable String description) { /** * Rule description - * * @return description */ @javax.annotation.Nullable @@ -138,7 +128,6 @@ public UpdateRule status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -158,7 +147,6 @@ public UpdateRule workflowId(@javax.annotation.Nullable String workflowId) { /** * Workflow to start on matching of conditions - * * @return workflowId */ @javax.annotation.Nullable @@ -178,7 +166,6 @@ public UpdateRule conditions(@javax.annotation.Nullable RuleCondition conditions /** * Get conditions - * * @return conditions */ @javax.annotation.Nullable @@ -201,11 +188,11 @@ public boolean equals(Object o) { return false; } UpdateRule updateRule = (UpdateRule) o; - return Objects.equals(this.priority, updateRule.priority) - && Objects.equals(this.description, updateRule.description) - && Objects.equals(this.status, updateRule.status) - && Objects.equals(this.workflowId, updateRule.workflowId) - && Objects.equals(this.conditions, updateRule.conditions); + return Objects.equals(this.priority, updateRule.priority) && + Objects.equals(this.description, updateRule.description) && + Objects.equals(this.status, updateRule.status) && + Objects.equals(this.workflowId, updateRule.workflowId) && + Objects.equals(this.conditions, updateRule.conditions); } @Override @@ -227,7 +214,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -242,8 +230,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("priority", "description", "status", "workflowId", "conditions")); + openapiFields = new HashSet(Arrays.asList("priority", "description", "status", "workflowId", "conditions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -256,73 +243,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRule */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateRule is not found in the empty JSON string", - UpdateRule.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRule is not found in the empty JSON string", UpdateRule.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateRule` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); + } + // validate the optional field `conditions` + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + RuleCondition.validateJsonElement(jsonObj.get("conditions")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) - && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workflowId").toString())); - } - // validate the optional field `conditions` - if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { - RuleCondition.validateJsonElement(jsonObj.get("conditions")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRule.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRule' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateRule.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRule value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRule read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRule read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java b/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java index 0389ba359..0c0a1b068 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * UpdateRuleRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRuleRequest { public static final String SERIALIZED_NAME_RULE = "rule"; @SerializedName(SERIALIZED_NAME_RULE) @javax.annotation.Nullable private UpdateRule rule; - public UpdateRuleRequest() {} + public UpdateRuleRequest() { + } public UpdateRuleRequest rule(@javax.annotation.Nullable UpdateRule rule) { this.rule = rule; @@ -76,7 +68,6 @@ public UpdateRuleRequest rule(@javax.annotation.Nullable UpdateRule rule) { /** * Get rule - * * @return rule */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRuleRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRuleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateRuleRequest is not found in the empty JSON string", - UpdateRuleRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateRuleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRuleRequest is not found in the empty JSON string", UpdateRuleRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRuleRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateRuleRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRuleRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRuleRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `rule` + if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { + UpdateRule.validateJsonElement(jsonObj.get("rule")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `rule` - if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { - UpdateRule.validateJsonElement(jsonObj.get("rule")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRuleRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRuleRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRuleRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRuleRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRuleRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRuleRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRuleRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRuleRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java b/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java index 4238dd057..fac525432 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * UpdateRuleResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRuleResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateRuleResponse() {} + public UpdateRuleResponse() { + } public UpdateRuleResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public UpdateRuleResponse message(@javax.annotation.Nullable String message) { /** * Rule update message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRuleResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateRuleResponse is not found in the empty JSON string", - UpdateRuleResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRuleResponse is not found in the empty JSON string", UpdateRuleResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRuleResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateRuleResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRuleResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRuleResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRuleResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRuleResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRuleResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRuleResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRuleResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRuleResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRuleResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRuleResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleset.java b/src/main/java/com/formkiq/client/model/UpdateRuleset.java index ff0843363..05aba5439 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleset.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleset.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * UpdateRuleset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRuleset { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -83,7 +74,8 @@ public class UpdateRuleset { @javax.annotation.Nullable private RulesetStatus status; - public UpdateRuleset() {} + public UpdateRuleset() { + } public UpdateRuleset description(@javax.annotation.Nullable String description) { this.description = description; @@ -92,7 +84,6 @@ public UpdateRuleset description(@javax.annotation.Nullable String description) /** * Ruleset description - * * @return description */ @javax.annotation.Nullable @@ -112,7 +103,6 @@ public UpdateRuleset priority(@javax.annotation.Nullable BigDecimal priority) { /** * Ruleset priority - * * @return priority */ @javax.annotation.Nullable @@ -132,7 +122,6 @@ public UpdateRuleset version(@javax.annotation.Nullable BigDecimal version) { /** * Ruleset version - * * @return version */ @javax.annotation.Nullable @@ -152,7 +141,6 @@ public UpdateRuleset status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -175,10 +163,10 @@ public boolean equals(Object o) { return false; } UpdateRuleset updateRuleset = (UpdateRuleset) o; - return Objects.equals(this.description, updateRuleset.description) - && Objects.equals(this.priority, updateRuleset.priority) - && Objects.equals(this.version, updateRuleset.version) - && Objects.equals(this.status, updateRuleset.status); + return Objects.equals(this.description, updateRuleset.description) && + Objects.equals(this.priority, updateRuleset.priority) && + Objects.equals(this.version, updateRuleset.version) && + Objects.equals(this.status, updateRuleset.status); } @Override @@ -199,7 +187,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -214,8 +203,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("description", "priority", "version", "status")); + openapiFields = new HashSet(Arrays.asList("description", "priority", "version", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -228,63 +216,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRuleset */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRuleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateRuleset is not found in the empty JSON string", - UpdateRuleset.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateRuleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRuleset is not found in the empty JSON string", UpdateRuleset.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRuleset.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateRuleset` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRuleset.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRuleset` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRuleset.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRuleset' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleset.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRuleset value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRuleset read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRuleset.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRuleset' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleset.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRuleset value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRuleset read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java b/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java index 0550b5cc8..9670f94d4 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * UpdateRulesetRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRulesetRequest { public static final String SERIALIZED_NAME_RULESET = "ruleset"; @SerializedName(SERIALIZED_NAME_RULESET) @javax.annotation.Nonnull private UpdateRuleset ruleset; - public UpdateRulesetRequest() {} + public UpdateRulesetRequest() { + } public UpdateRulesetRequest ruleset(@javax.annotation.Nonnull UpdateRuleset ruleset) { this.ruleset = ruleset; @@ -76,7 +68,6 @@ public UpdateRulesetRequest ruleset(@javax.annotation.Nonnull UpdateRuleset rule /** * Get ruleset - * * @return ruleset */ @javax.annotation.Nonnull @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,64 +137,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRulesetRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRulesetRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateRulesetRequest is not found in the empty JSON string", - UpdateRulesetRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateRulesetRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRulesetRequest is not found in the empty JSON string", UpdateRulesetRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRulesetRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateRulesetRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRulesetRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRulesetRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UpdateRulesetRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : UpdateRulesetRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `ruleset` - UpdateRuleset.validateJsonElement(jsonObj.get("ruleset")); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `ruleset` + UpdateRuleset.validateJsonElement(jsonObj.get("ruleset")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRulesetRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRulesetRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateRulesetRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRulesetRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRulesetRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRulesetRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRulesetRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateRulesetRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRulesetRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRulesetRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java b/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java index 9e72b218f..8430bc16b 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * UpdateRulesetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRulesetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateRulesetResponse() {} + public UpdateRulesetResponse() { + } public UpdateRulesetResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public UpdateRulesetResponse message(@javax.annotation.Nullable String message) /** * Ruleset update message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRulesetResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateRulesetResponse is not found in the empty JSON string", - UpdateRulesetResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRulesetResponse is not found in the empty JSON string", UpdateRulesetResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRulesetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateRulesetResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRulesetResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRulesetResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRulesetResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRulesetResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateRulesetResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRulesetResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRulesetResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRulesetResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRulesetResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateRulesetResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRulesetResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRulesetResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateSite.java b/src/main/java/com/formkiq/client/model/UpdateSite.java index a54e16887..a93f716e1 100644 --- a/src/main/java/com/formkiq/client/model/UpdateSite.java +++ b/src/main/java/com/formkiq/client/model/UpdateSite.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * UpdateSite */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateSite { public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -72,7 +63,8 @@ public class UpdateSite { @javax.annotation.Nullable private SiteStatus status; - public UpdateSite() {} + public UpdateSite() { + } public UpdateSite title(@javax.annotation.Nullable String title) { this.title = title; @@ -81,7 +73,6 @@ public UpdateSite title(@javax.annotation.Nullable String title) { /** * Title of Site - * * @return title */ @javax.annotation.Nullable @@ -101,7 +92,6 @@ public UpdateSite status(@javax.annotation.Nullable SiteStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -124,8 +114,8 @@ public boolean equals(Object o) { return false; } UpdateSite updateSite = (UpdateSite) o; - return Objects.equals(this.title, updateSite.title) - && Objects.equals(this.status, updateSite.status); + return Objects.equals(this.title, updateSite.title) && + Objects.equals(this.status, updateSite.status); } @Override @@ -144,7 +134,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,63 +163,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateSite */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateSite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateSite is not found in the empty JSON string", - UpdateSite.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateSite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateSite is not found in the empty JSON string", UpdateSite.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateSite.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateSite` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateSite.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateSite` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + SiteStatus.validateJsonElement(jsonObj.get("status")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) - && !jsonObj.get("title").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `title` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("title").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - SiteStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateSite.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateSite' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateSite.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateSite value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateSite read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateSite.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateSite' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateSite.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateSite value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateSite read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java b/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java index ffb1e28be..42fb7534c 100644 --- a/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * UpdateSiteRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateSiteRequest { public static final String SERIALIZED_NAME_SITE = "site"; @SerializedName(SERIALIZED_NAME_SITE) @javax.annotation.Nullable private UpdateSite site; - public UpdateSiteRequest() {} + public UpdateSiteRequest() { + } public UpdateSiteRequest site(@javax.annotation.Nullable UpdateSite site) { this.site = site; @@ -76,7 +68,6 @@ public UpdateSiteRequest site(@javax.annotation.Nullable UpdateSite site) { /** * Get site - * * @return site */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateSiteRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateSiteRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateSiteRequest is not found in the empty JSON string", - UpdateSiteRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateSiteRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateSiteRequest is not found in the empty JSON string", UpdateSiteRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateSiteRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateSiteRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateSiteRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateSiteRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `site` + if (jsonObj.get("site") != null && !jsonObj.get("site").isJsonNull()) { + UpdateSite.validateJsonElement(jsonObj.get("site")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `site` - if (jsonObj.get("site") != null && !jsonObj.get("site").isJsonNull()) { - UpdateSite.validateJsonElement(jsonObj.get("site")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateSiteRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateSiteRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateSiteRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateSiteRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateSiteRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateSiteRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateSiteRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateSiteRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateSiteRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateSiteRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateTask.java b/src/main/java/com/formkiq/client/model/UpdateTask.java index e873bd7e3..b7fb8e503 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTask.java +++ b/src/main/java/com/formkiq/client/model/UpdateTask.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * UpdateTask */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateTask { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -111,7 +102,8 @@ public class UpdateTask { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public UpdateTask() {} + public UpdateTask() { + } public UpdateTask name(@javax.annotation.Nullable String name) { this.name = name; @@ -120,7 +112,6 @@ public UpdateTask name(@javax.annotation.Nullable String name) { /** * Name of Task - * * @return name */ @javax.annotation.Nullable @@ -140,7 +131,6 @@ public UpdateTask description(@javax.annotation.Nullable String description) { /** * Description of Task - * * @return description */ @javax.annotation.Nullable @@ -160,7 +150,6 @@ public UpdateTask plannedStartDate(@javax.annotation.Nullable String plannedStar /** * Planned Start Date - * * @return plannedStartDate */ @javax.annotation.Nullable @@ -180,7 +169,6 @@ public UpdateTask startDate(@javax.annotation.Nullable String startDate) { /** * Start Date - * * @return startDate */ @javax.annotation.Nullable @@ -200,7 +188,6 @@ public UpdateTask endDate(@javax.annotation.Nullable String endDate) { /** * End Date - * * @return endDate */ @javax.annotation.Nullable @@ -220,7 +207,6 @@ public UpdateTask dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date - * * @return dueDate */ @javax.annotation.Nullable @@ -240,7 +226,6 @@ public UpdateTask status(@javax.annotation.Nullable TaskStatus status) { /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -268,7 +253,6 @@ public UpdateTask putMetadataItem(String key, Object metadataItem) { /** * Get metadata - * * @return metadata */ @javax.annotation.Nullable @@ -296,7 +280,6 @@ public UpdateTask addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds - * * @return documentIds */ @javax.annotation.Nullable @@ -319,21 +302,20 @@ public boolean equals(Object o) { return false; } UpdateTask updateTask = (UpdateTask) o; - return Objects.equals(this.name, updateTask.name) - && Objects.equals(this.description, updateTask.description) - && Objects.equals(this.plannedStartDate, updateTask.plannedStartDate) - && Objects.equals(this.startDate, updateTask.startDate) - && Objects.equals(this.endDate, updateTask.endDate) - && Objects.equals(this.dueDate, updateTask.dueDate) - && Objects.equals(this.status, updateTask.status) - && Objects.equals(this.metadata, updateTask.metadata) - && Objects.equals(this.documentIds, updateTask.documentIds); + return Objects.equals(this.name, updateTask.name) && + Objects.equals(this.description, updateTask.description) && + Objects.equals(this.plannedStartDate, updateTask.plannedStartDate) && + Objects.equals(this.startDate, updateTask.startDate) && + Objects.equals(this.endDate, updateTask.endDate) && + Objects.equals(this.dueDate, updateTask.dueDate) && + Objects.equals(this.status, updateTask.status) && + Objects.equals(this.metadata, updateTask.metadata) && + Objects.equals(this.documentIds, updateTask.documentIds); } @Override public int hashCode() { - return Objects.hash(name, description, plannedStartDate, startDate, endDate, dueDate, status, - metadata, documentIds); + return Objects.hash(name, description, plannedStartDate, startDate, endDate, dueDate, status, metadata, documentIds); } @Override @@ -354,7 +336,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -369,8 +352,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "description", "plannedStartDate", - "startDate", "endDate", "dueDate", "status", "metadata", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "description", "plannedStartDate", "startDate", "endDate", "dueDate", "status", "metadata", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -383,100 +365,74 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateTask */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateTask.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateTask is not found in the empty JSON string", - UpdateTask.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateTask.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateTask is not found in the empty JSON string", UpdateTask.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateTask.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateTask` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateTask.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateTask` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + TaskStatus.validateJsonElement(jsonObj.get("status")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) - && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) - && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) - && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) - && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("dueDate").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - TaskStatus.validateJsonElement(jsonObj.get("status")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() - && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `documentIds` to be an array in the JSON string but got `%s`", - jsonObj.get("documentIds").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateTask.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateTask' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateTask.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateTask value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateTask read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateTask.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateTask' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateTask.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateTask value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateTask read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java b/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java index 80c813851..ceaf5d5a0 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,16 +51,15 @@ /** * UpdateTaskRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateTaskRequest { public static final String SERIALIZED_NAME_TASK = "task"; @SerializedName(SERIALIZED_NAME_TASK) @javax.annotation.Nullable private UpdateTask task; - public UpdateTaskRequest() {} + public UpdateTaskRequest() { + } public UpdateTaskRequest task(@javax.annotation.Nullable UpdateTask task) { this.task = task; @@ -76,7 +68,6 @@ public UpdateTaskRequest task(@javax.annotation.Nullable UpdateTask task) { /** * Get task - * * @return task */ @javax.annotation.Nullable @@ -117,7 +108,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -145,57 +137,52 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateTaskRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateTaskRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateTaskRequest is not found in the empty JSON string", - UpdateTaskRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateTaskRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateTaskRequest is not found in the empty JSON string", UpdateTaskRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateTaskRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateTaskRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateTaskRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateTaskRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `task` + if (jsonObj.get("task") != null && !jsonObj.get("task").isJsonNull()) { + UpdateTask.validateJsonElement(jsonObj.get("task")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `task` - if (jsonObj.get("task") != null && !jsonObj.get("task").isJsonNull()) { - UpdateTask.validateJsonElement(jsonObj.get("task")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateTaskRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateTaskRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateTaskRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateTaskRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateTaskRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateTaskRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateTaskRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateTaskRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateTaskRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateTaskRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java b/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java index a366fea62..9f01c330d 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * UpdateTaskResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateTaskResponse { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; @SerializedName(SERIALIZED_NAME_TASK_ID) @javax.annotation.Nullable private String taskId; - public UpdateTaskResponse() {} + public UpdateTaskResponse() { + } public UpdateTaskResponse taskId(@javax.annotation.Nullable String taskId) { this.taskId = taskId; @@ -75,7 +67,6 @@ public UpdateTaskResponse taskId(@javax.annotation.Nullable String taskId) { /** * Task Identifier - * * @return taskId */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateTaskResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateTaskResponse is not found in the empty JSON string", - UpdateTaskResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateTaskResponse is not found in the empty JSON string", UpdateTaskResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateTaskResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateTaskResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateTaskResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateTaskResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) && !jsonObj.get("taskId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("taskId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) - && !jsonObj.get("taskId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("taskId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateTaskResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateTaskResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateTaskResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateTaskResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateTaskResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateTaskResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateTaskResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateTaskResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateTaskResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateTaskResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java b/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java index 5f484ea3f..f9b93db74 100644 --- a/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * UpdateWorkflowRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -77,7 +68,8 @@ public class UpdateWorkflowRequest { @javax.annotation.Nullable private WorkflowStatus status; - public UpdateWorkflowRequest() {} + public UpdateWorkflowRequest() { + } public UpdateWorkflowRequest name(@javax.annotation.Nullable String name) { this.name = name; @@ -86,7 +78,6 @@ public UpdateWorkflowRequest name(@javax.annotation.Nullable String name) { /** * Workflow name - * * @return name */ @javax.annotation.Nullable @@ -106,7 +97,6 @@ public UpdateWorkflowRequest description(@javax.annotation.Nullable String descr /** * Workflow description - * * @return description */ @javax.annotation.Nullable @@ -126,7 +116,6 @@ public UpdateWorkflowRequest status(@javax.annotation.Nullable WorkflowStatus st /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -149,9 +138,9 @@ public boolean equals(Object o) { return false; } UpdateWorkflowRequest updateWorkflowRequest = (UpdateWorkflowRequest) o; - return Objects.equals(this.name, updateWorkflowRequest.name) - && Objects.equals(this.description, updateWorkflowRequest.description) - && Objects.equals(this.status, updateWorkflowRequest.status); + return Objects.equals(this.name, updateWorkflowRequest.name) && + Objects.equals(this.description, updateWorkflowRequest.description) && + Objects.equals(this.status, updateWorkflowRequest.status); } @Override @@ -171,7 +160,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,69 +189,58 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateWorkflowRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateWorkflowRequest is not found in the empty JSON string", - UpdateWorkflowRequest.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateWorkflowRequest is not found in the empty JSON string", UpdateWorkflowRequest.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateWorkflowRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateWorkflowRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateWorkflowRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateWorkflowRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + WorkflowStatus.validateJsonElement(jsonObj.get("status")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - WorkflowStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateWorkflowRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateWorkflowRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateWorkflowRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateWorkflowRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateWorkflowRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateWorkflowRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateWorkflowRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateWorkflowRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateWorkflowRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateWorkflowRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java b/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java index 70b5b51b2..56f79834a 100644 --- a/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,16 +50,15 @@ /** * UpdateWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateWorkflowResponse() {} + public UpdateWorkflowResponse() { + } public UpdateWorkflowResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -75,7 +67,6 @@ public UpdateWorkflowResponse message(@javax.annotation.Nullable String message) /** * Result message - * * @return message */ @javax.annotation.Nullable @@ -116,7 +107,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,59 +136,51 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UpdateWorkflowResponse is not found in the empty JSON string", - UpdateWorkflowResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UpdateWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateWorkflowResponse is not found in the empty JSON string", UpdateWorkflowResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UpdateWorkflowResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) - && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `message` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("message").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/User.java b/src/main/java/com/formkiq/client/model/User.java index 761e8454c..a2f4d08cb 100644 --- a/src/main/java/com/formkiq/client/model/User.java +++ b/src/main/java/com/formkiq/client/model/User.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * User */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class User { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) @@ -97,7 +88,8 @@ public class User { @javax.annotation.Nullable private UserAttributes attributes; - public User() {} + public User() { + } public User username(@javax.annotation.Nullable String username) { this.username = username; @@ -106,7 +98,6 @@ public User username(@javax.annotation.Nullable String username) { /** * Username of user - * * @return username */ @javax.annotation.Nullable @@ -126,7 +117,6 @@ public User email(@javax.annotation.Nullable String email) { /** * Email of user - * * @return email */ @javax.annotation.Nullable @@ -146,7 +136,6 @@ public User enabled(@javax.annotation.Nullable Boolean enabled) { /** * whether the user is enabled - * * @return enabled */ @javax.annotation.Nullable @@ -166,7 +155,6 @@ public User userStatus(@javax.annotation.Nullable String userStatus) { /** * Status of user - * * @return userStatus */ @javax.annotation.Nullable @@ -186,7 +174,6 @@ public User insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted timestamp of user - * * @return insertedDate */ @javax.annotation.Nullable @@ -206,7 +193,6 @@ public User lastModifiedDate(@javax.annotation.Nullable String lastModifiedDate) /** * Last nodified timestamp of user - * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -226,7 +212,6 @@ public User attributes(@javax.annotation.Nullable UserAttributes attributes) { /** * Get attributes - * * @return attributes */ @javax.annotation.Nullable @@ -249,18 +234,18 @@ public boolean equals(Object o) { return false; } User user = (User) o; - return Objects.equals(this.username, user.username) && Objects.equals(this.email, user.email) - && Objects.equals(this.enabled, user.enabled) - && Objects.equals(this.userStatus, user.userStatus) - && Objects.equals(this.insertedDate, user.insertedDate) - && Objects.equals(this.lastModifiedDate, user.lastModifiedDate) - && Objects.equals(this.attributes, user.attributes); + return Objects.equals(this.username, user.username) && + Objects.equals(this.email, user.email) && + Objects.equals(this.enabled, user.enabled) && + Objects.equals(this.userStatus, user.userStatus) && + Objects.equals(this.insertedDate, user.insertedDate) && + Objects.equals(this.lastModifiedDate, user.lastModifiedDate) && + Objects.equals(this.attributes, user.attributes); } @Override public int hashCode() { - return Objects.hash(username, email, enabled, userStatus, insertedDate, lastModifiedDate, - attributes); + return Objects.hash(username, email, enabled, userStatus, insertedDate, lastModifiedDate, attributes); } @Override @@ -279,7 +264,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -294,8 +280,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("username", "email", "enabled", "userStatus", - "insertedDate", "lastModifiedDate", "attributes")); + openapiFields = new HashSet(Arrays.asList("username", "email", "enabled", "userStatus", "insertedDate", "lastModifiedDate", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -308,86 +293,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to User */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!User.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in User is not found in the empty JSON string", - User.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!User.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in User is not found in the empty JSON string", User.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!User.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `User` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!User.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `User` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + } + if ((jsonObj.get("userStatus") != null && !jsonObj.get("userStatus").isJsonNull()) && !jsonObj.get("userStatus").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userStatus").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + UserAttributes.validateJsonElement(jsonObj.get("attributes")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) - && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `username` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("username").toString())); - } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) - && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `email` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("email").toString())); - } - if ((jsonObj.get("userStatus") != null && !jsonObj.get("userStatus").isJsonNull()) - && !jsonObj.get("userStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userStatus` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userStatus").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) - && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("lastModifiedDate").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - UserAttributes.validateJsonElement(jsonObj.get("attributes")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!User.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'User' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(User.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, User value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public User read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!User.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'User' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(User.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, User value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public User read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UserActivity.java b/src/main/java/com/formkiq/client/model/UserActivity.java index 698d75302..1821c9138 100644 --- a/src/main/java/com/formkiq/client/model/UserActivity.java +++ b/src/main/java/com/formkiq/client/model/UserActivity.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * UserActivity */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserActivity { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -91,7 +82,8 @@ public class UserActivity { @javax.annotation.Nullable private Map changes = new HashMap<>(); - public UserActivity() {} + public UserActivity() { + } public UserActivity type(@javax.annotation.Nullable UserActivityType type) { this.type = type; @@ -100,7 +92,6 @@ public UserActivity type(@javax.annotation.Nullable UserActivityType type) { /** * Get type - * * @return type */ @javax.annotation.Nullable @@ -120,7 +111,6 @@ public UserActivity insertedDate(@javax.annotation.Nullable String insertedDate) /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -140,7 +130,6 @@ public UserActivity userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -160,7 +149,6 @@ public UserActivity document(@javax.annotation.Nullable Document document) { /** * Get document - * * @return document */ @javax.annotation.Nullable @@ -188,7 +176,6 @@ public UserActivity putChangesItem(String key, UserActivityChanges changesItem) /** * Get changes - * * @return changes */ @javax.annotation.Nullable @@ -211,11 +198,11 @@ public boolean equals(Object o) { return false; } UserActivity userActivity = (UserActivity) o; - return Objects.equals(this.type, userActivity.type) - && Objects.equals(this.insertedDate, userActivity.insertedDate) - && Objects.equals(this.userId, userActivity.userId) - && Objects.equals(this.document, userActivity.document) - && Objects.equals(this.changes, userActivity.changes); + return Objects.equals(this.type, userActivity.type) && + Objects.equals(this.insertedDate, userActivity.insertedDate) && + Objects.equals(this.userId, userActivity.userId) && + Objects.equals(this.document, userActivity.document) && + Objects.equals(this.changes, userActivity.changes); } @Override @@ -237,7 +224,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -252,8 +240,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = - new HashSet(Arrays.asList("type", "insertedDate", "userId", "document", "changes")); + openapiFields = new HashSet(Arrays.asList("type", "insertedDate", "userId", "document", "changes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -266,73 +253,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UserActivity */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UserActivity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UserActivity is not found in the empty JSON string", - UserActivity.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UserActivity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserActivity is not found in the empty JSON string", UserActivity.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UserActivity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UserActivity` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UserActivity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserActivity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + UserActivityType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + // validate the optional field `document` + if (jsonObj.get("document") != null && !jsonObj.get("document").isJsonNull()) { + Document.validateJsonElement(jsonObj.get("document")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - UserActivityType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - // validate the optional field `document` - if (jsonObj.get("document") != null && !jsonObj.get("document").isJsonNull()) { - Document.validateJsonElement(jsonObj.get("document")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserActivity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserActivity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UserActivity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UserActivity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UserActivity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UserActivity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserActivity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserActivity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UserActivity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UserActivity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UserActivityChanges.java b/src/main/java/com/formkiq/client/model/UserActivityChanges.java index dc61dbe7a..e24d952ee 100644 --- a/src/main/java/com/formkiq/client/model/UserActivityChanges.java +++ b/src/main/java/com/formkiq/client/model/UserActivityChanges.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * UserActivityChanges */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserActivityChanges { public static final String SERIALIZED_NAME_OLD_VALUE = "oldValue"; @SerializedName(SERIALIZED_NAME_OLD_VALUE) @@ -71,7 +62,8 @@ public class UserActivityChanges { @javax.annotation.Nullable private Object newValue; - public UserActivityChanges() {} + public UserActivityChanges() { + } public UserActivityChanges oldValue(@javax.annotation.Nullable Object oldValue) { this.oldValue = oldValue; @@ -80,7 +72,6 @@ public UserActivityChanges oldValue(@javax.annotation.Nullable Object oldValue) /** * Previous key value - * * @return oldValue */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public UserActivityChanges newValue(@javax.annotation.Nullable Object newValue) /** * New key value - * * @return newValue */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } UserActivityChanges userActivityChanges = (UserActivityChanges) o; - return Objects.equals(this.oldValue, userActivityChanges.oldValue) - && Objects.equals(this.newValue, userActivityChanges.newValue); + return Objects.equals(this.oldValue, userActivityChanges.oldValue) && + Objects.equals(this.newValue, userActivityChanges.newValue); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,53 +162,48 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UserActivityChanges */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UserActivityChanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UserActivityChanges is not found in the empty JSON string", - UserActivityChanges.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UserActivityChanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserActivityChanges is not found in the empty JSON string", UserActivityChanges.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UserActivityChanges.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UserActivityChanges` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UserActivityChanges.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserActivityChanges` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserActivityChanges.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserActivityChanges' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UserActivityChanges.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UserActivityChanges value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UserActivityChanges read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UserActivityChanges.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserActivityChanges' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserActivityChanges.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UserActivityChanges value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UserActivityChanges read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UserActivityType.java b/src/main/java/com/formkiq/client/model/UserActivityType.java index dab60a6b9..7b4092773 100644 --- a/src/main/java/com/formkiq/client/model/UserActivityType.java +++ b/src/main/java/com/formkiq/client/model/UserActivityType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,19 +30,19 @@ */ @JsonAdapter(UserActivityType.Adapter.class) public enum UserActivityType { - + VIEW("VIEW"), - + CREATE("CREATE"), - + UPDATE("UPDATE"), - + DELETE("DELETE"), - + SOFT_DELETE("SOFT_DELETE"), - + RESTORE("RESTORE"), - + NEW_VERSION("NEW_VERSION"); private String value; @@ -78,8 +71,7 @@ public static UserActivityType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final UserActivityType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final UserActivityType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/UserAttributes.java b/src/main/java/com/formkiq/client/model/UserAttributes.java index fbc6f38ae..49ba0a64b 100644 --- a/src/main/java/com/formkiq/client/model/UserAttributes.java +++ b/src/main/java/com/formkiq/client/model/UserAttributes.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * UserAttributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserAttributes { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) @@ -141,7 +132,8 @@ public class UserAttributes { @javax.annotation.Nullable private String website; - public UserAttributes() {} + public UserAttributes() { + } public UserAttributes address(@javax.annotation.Nullable String address) { this.address = address; @@ -150,7 +142,6 @@ public UserAttributes address(@javax.annotation.Nullable String address) { /** * Address of user - * * @return address */ @javax.annotation.Nullable @@ -170,7 +161,6 @@ public UserAttributes birthdate(@javax.annotation.Nullable String birthdate) { /** * Birthdate of user - * * @return birthdate */ @javax.annotation.Nullable @@ -190,7 +180,6 @@ public UserAttributes familyName(@javax.annotation.Nullable String familyName) { /** * Family name of user - * * @return familyName */ @javax.annotation.Nullable @@ -210,7 +199,6 @@ public UserAttributes gender(@javax.annotation.Nullable String gender) { /** * Gender of user - * * @return gender */ @javax.annotation.Nullable @@ -230,7 +218,6 @@ public UserAttributes givenName(@javax.annotation.Nullable String givenName) { /** * Given name of user - * * @return givenName */ @javax.annotation.Nullable @@ -250,7 +237,6 @@ public UserAttributes locale(@javax.annotation.Nullable String locale) { /** * Locale of user - * * @return locale */ @javax.annotation.Nullable @@ -270,7 +256,6 @@ public UserAttributes middleName(@javax.annotation.Nullable String middleName) { /** * Middle name of user - * * @return middleName */ @javax.annotation.Nullable @@ -290,7 +275,6 @@ public UserAttributes name(@javax.annotation.Nullable String name) { /** * Name of user - * * @return name */ @javax.annotation.Nullable @@ -310,7 +294,6 @@ public UserAttributes nickname(@javax.annotation.Nullable String nickname) { /** * Nickname of user - * * @return nickname */ @javax.annotation.Nullable @@ -330,7 +313,6 @@ public UserAttributes phoneNumber(@javax.annotation.Nullable String phoneNumber) /** * Phone number of user - * * @return phoneNumber */ @javax.annotation.Nullable @@ -350,7 +332,6 @@ public UserAttributes picture(@javax.annotation.Nullable String picture) { /** * Picture of user - * * @return picture */ @javax.annotation.Nullable @@ -370,7 +351,6 @@ public UserAttributes preferredUsername(@javax.annotation.Nullable String prefer /** * Preferred username of user - * * @return preferredUsername */ @javax.annotation.Nullable @@ -390,7 +370,6 @@ public UserAttributes profile(@javax.annotation.Nullable String profile) { /** * Profile of user - * * @return profile */ @javax.annotation.Nullable @@ -410,7 +389,6 @@ public UserAttributes zoneinfo(@javax.annotation.Nullable String zoneinfo) { /** * Zoneinfo of user - * * @return zoneinfo */ @javax.annotation.Nullable @@ -430,7 +408,6 @@ public UserAttributes updatedAt(@javax.annotation.Nullable String updatedAt) { /** * Updated at date of user - * * @return updatedAt */ @javax.annotation.Nullable @@ -450,7 +427,6 @@ public UserAttributes website(@javax.annotation.Nullable String website) { /** * Website of user - * * @return website */ @javax.annotation.Nullable @@ -473,28 +449,27 @@ public boolean equals(Object o) { return false; } UserAttributes userAttributes = (UserAttributes) o; - return Objects.equals(this.address, userAttributes.address) - && Objects.equals(this.birthdate, userAttributes.birthdate) - && Objects.equals(this.familyName, userAttributes.familyName) - && Objects.equals(this.gender, userAttributes.gender) - && Objects.equals(this.givenName, userAttributes.givenName) - && Objects.equals(this.locale, userAttributes.locale) - && Objects.equals(this.middleName, userAttributes.middleName) - && Objects.equals(this.name, userAttributes.name) - && Objects.equals(this.nickname, userAttributes.nickname) - && Objects.equals(this.phoneNumber, userAttributes.phoneNumber) - && Objects.equals(this.picture, userAttributes.picture) - && Objects.equals(this.preferredUsername, userAttributes.preferredUsername) - && Objects.equals(this.profile, userAttributes.profile) - && Objects.equals(this.zoneinfo, userAttributes.zoneinfo) - && Objects.equals(this.updatedAt, userAttributes.updatedAt) - && Objects.equals(this.website, userAttributes.website); + return Objects.equals(this.address, userAttributes.address) && + Objects.equals(this.birthdate, userAttributes.birthdate) && + Objects.equals(this.familyName, userAttributes.familyName) && + Objects.equals(this.gender, userAttributes.gender) && + Objects.equals(this.givenName, userAttributes.givenName) && + Objects.equals(this.locale, userAttributes.locale) && + Objects.equals(this.middleName, userAttributes.middleName) && + Objects.equals(this.name, userAttributes.name) && + Objects.equals(this.nickname, userAttributes.nickname) && + Objects.equals(this.phoneNumber, userAttributes.phoneNumber) && + Objects.equals(this.picture, userAttributes.picture) && + Objects.equals(this.preferredUsername, userAttributes.preferredUsername) && + Objects.equals(this.profile, userAttributes.profile) && + Objects.equals(this.zoneinfo, userAttributes.zoneinfo) && + Objects.equals(this.updatedAt, userAttributes.updatedAt) && + Objects.equals(this.website, userAttributes.website); } @Override public int hashCode() { - return Objects.hash(address, birthdate, familyName, gender, givenName, locale, middleName, name, - nickname, phoneNumber, picture, preferredUsername, profile, zoneinfo, updatedAt, website); + return Objects.hash(address, birthdate, familyName, gender, givenName, locale, middleName, name, nickname, phoneNumber, picture, preferredUsername, profile, zoneinfo, updatedAt, website); } @Override @@ -522,7 +497,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -537,9 +513,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("address", "birthdate", "familyName", - "gender", "givenName", "locale", "middleName", "name", "nickname", "phoneNumber", "picture", - "preferredUsername", "profile", "zoneinfo", "updatedAt", "website")); + openapiFields = new HashSet(Arrays.asList("address", "birthdate", "familyName", "gender", "givenName", "locale", "middleName", "name", "nickname", "phoneNumber", "picture", "preferredUsername", "profile", "zoneinfo", "updatedAt", "website")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -552,149 +526,96 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UserAttributes */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UserAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UserAttributes is not found in the empty JSON string", - UserAttributes.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UserAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserAttributes is not found in the empty JSON string", UserAttributes.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UserAttributes.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UserAttributes` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UserAttributes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("address") != null && !jsonObj.get("address").isJsonNull()) && !jsonObj.get("address").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address").toString())); + } + if ((jsonObj.get("birthdate") != null && !jsonObj.get("birthdate").isJsonNull()) && !jsonObj.get("birthdate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `birthdate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("birthdate").toString())); + } + if ((jsonObj.get("familyName") != null && !jsonObj.get("familyName").isJsonNull()) && !jsonObj.get("familyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `familyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("familyName").toString())); + } + if ((jsonObj.get("gender") != null && !jsonObj.get("gender").isJsonNull()) && !jsonObj.get("gender").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `gender` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gender").toString())); + } + if ((jsonObj.get("givenName") != null && !jsonObj.get("givenName").isJsonNull()) && !jsonObj.get("givenName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `givenName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("givenName").toString())); + } + if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) && !jsonObj.get("locale").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locale").toString())); + } + if ((jsonObj.get("middleName") != null && !jsonObj.get("middleName").isJsonNull()) && !jsonObj.get("middleName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `middleName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("middleName").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("nickname") != null && !jsonObj.get("nickname").isJsonNull()) && !jsonObj.get("nickname").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nickname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nickname").toString())); + } + if ((jsonObj.get("phoneNumber") != null && !jsonObj.get("phoneNumber").isJsonNull()) && !jsonObj.get("phoneNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `phoneNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phoneNumber").toString())); + } + if ((jsonObj.get("picture") != null && !jsonObj.get("picture").isJsonNull()) && !jsonObj.get("picture").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `picture` to be a primitive type in the JSON string but got `%s`", jsonObj.get("picture").toString())); + } + if ((jsonObj.get("preferredUsername") != null && !jsonObj.get("preferredUsername").isJsonNull()) && !jsonObj.get("preferredUsername").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `preferredUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preferredUsername").toString())); + } + if ((jsonObj.get("profile") != null && !jsonObj.get("profile").isJsonNull()) && !jsonObj.get("profile").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `profile` to be a primitive type in the JSON string but got `%s`", jsonObj.get("profile").toString())); + } + if ((jsonObj.get("zoneinfo") != null && !jsonObj.get("zoneinfo").isJsonNull()) && !jsonObj.get("zoneinfo").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `zoneinfo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("zoneinfo").toString())); + } + if ((jsonObj.get("updatedAt") != null && !jsonObj.get("updatedAt").isJsonNull()) && !jsonObj.get("updatedAt").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updatedAt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedAt").toString())); + } + if ((jsonObj.get("website") != null && !jsonObj.get("website").isJsonNull()) && !jsonObj.get("website").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `website` to be a primitive type in the JSON string but got `%s`", jsonObj.get("website").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("address") != null && !jsonObj.get("address").isJsonNull()) - && !jsonObj.get("address").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `address` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("address").toString())); - } - if ((jsonObj.get("birthdate") != null && !jsonObj.get("birthdate").isJsonNull()) - && !jsonObj.get("birthdate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `birthdate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("birthdate").toString())); - } - if ((jsonObj.get("familyName") != null && !jsonObj.get("familyName").isJsonNull()) - && !jsonObj.get("familyName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `familyName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("familyName").toString())); - } - if ((jsonObj.get("gender") != null && !jsonObj.get("gender").isJsonNull()) - && !jsonObj.get("gender").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `gender` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("gender").toString())); - } - if ((jsonObj.get("givenName") != null && !jsonObj.get("givenName").isJsonNull()) - && !jsonObj.get("givenName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `givenName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("givenName").toString())); - } - if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) - && !jsonObj.get("locale").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("locale").toString())); - } - if ((jsonObj.get("middleName") != null && !jsonObj.get("middleName").isJsonNull()) - && !jsonObj.get("middleName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `middleName` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("middleName").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("nickname") != null && !jsonObj.get("nickname").isJsonNull()) - && !jsonObj.get("nickname").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `nickname` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("nickname").toString())); - } - if ((jsonObj.get("phoneNumber") != null && !jsonObj.get("phoneNumber").isJsonNull()) - && !jsonObj.get("phoneNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `phoneNumber` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("phoneNumber").toString())); - } - if ((jsonObj.get("picture") != null && !jsonObj.get("picture").isJsonNull()) - && !jsonObj.get("picture").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `picture` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("picture").toString())); - } - if ((jsonObj.get("preferredUsername") != null && !jsonObj.get("preferredUsername").isJsonNull()) - && !jsonObj.get("preferredUsername").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `preferredUsername` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("preferredUsername").toString())); - } - if ((jsonObj.get("profile") != null && !jsonObj.get("profile").isJsonNull()) - && !jsonObj.get("profile").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `profile` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("profile").toString())); - } - if ((jsonObj.get("zoneinfo") != null && !jsonObj.get("zoneinfo").isJsonNull()) - && !jsonObj.get("zoneinfo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `zoneinfo` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("zoneinfo").toString())); - } - if ((jsonObj.get("updatedAt") != null && !jsonObj.get("updatedAt").isJsonNull()) - && !jsonObj.get("updatedAt").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `updatedAt` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("updatedAt").toString())); - } - if ((jsonObj.get("website") != null && !jsonObj.get("website").isJsonNull()) - && !jsonObj.get("website").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `website` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("website").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserAttributes.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserAttributes' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UserAttributes.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UserAttributes value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UserAttributes read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UserAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserAttributes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserAttributes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UserAttributes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UserAttributes read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UserShare.java b/src/main/java/com/formkiq/client/model/UserShare.java index 802cdc0d4..cc1a753d5 100644 --- a/src/main/java/com/formkiq/client/model/UserShare.java +++ b/src/main/java/com/formkiq/client/model/UserShare.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -61,9 +54,7 @@ /** * UserShare */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserShare { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -108,14 +99,13 @@ public static TypeEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) - throws IOException { + 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(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -156,7 +146,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private UserSharePermissionType permissionType; - public UserShare() {} + public UserShare() { + } public UserShare group(@javax.annotation.Nullable String group) { this.group = group; @@ -165,7 +156,6 @@ public UserShare group(@javax.annotation.Nullable String group) { /** * Name of Share Group - * * @return group */ @javax.annotation.Nullable @@ -185,7 +175,6 @@ public UserShare shareKey(@javax.annotation.Nullable String shareKey) { /** * Share Identifier - * * @return shareKey */ @javax.annotation.Nullable @@ -205,7 +194,6 @@ public UserShare type(@javax.annotation.Nullable TypeEnum type) { /** * Type of Document - * * @return type */ @javax.annotation.Nullable @@ -233,7 +221,6 @@ public UserShare addPermissionsItem(UserSharePermission permissionsItem) { /** * List of share permissions - * * @return permissions */ @javax.annotation.Nullable @@ -253,7 +240,6 @@ public UserShare siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier - * * @return siteId */ @javax.annotation.Nullable @@ -273,7 +259,6 @@ public UserShare path(@javax.annotation.Nullable String path) { /** * Path or Name of document - * * @return path */ @javax.annotation.Nullable @@ -293,7 +278,6 @@ public UserShare userId(@javax.annotation.Nullable String userId) { /** * User who created share - * * @return userId */ @javax.annotation.Nullable @@ -306,15 +290,13 @@ public void setUserId(@javax.annotation.Nullable String userId) { } - public UserShare permissionType( - @javax.annotation.Nullable UserSharePermissionType permissionType) { + public UserShare permissionType(@javax.annotation.Nullable UserSharePermissionType permissionType) { this.permissionType = permissionType; return this; } /** * Get permissionType - * * @return permissionType */ @javax.annotation.Nullable @@ -337,14 +319,14 @@ public boolean equals(Object o) { return false; } UserShare userShare = (UserShare) o; - return Objects.equals(this.group, userShare.group) - && Objects.equals(this.shareKey, userShare.shareKey) - && Objects.equals(this.type, userShare.type) - && Objects.equals(this.permissions, userShare.permissions) - && Objects.equals(this.siteId, userShare.siteId) - && Objects.equals(this.path, userShare.path) - && Objects.equals(this.userId, userShare.userId) - && Objects.equals(this.permissionType, userShare.permissionType); + return Objects.equals(this.group, userShare.group) && + Objects.equals(this.shareKey, userShare.shareKey) && + Objects.equals(this.type, userShare.type) && + Objects.equals(this.permissions, userShare.permissions) && + Objects.equals(this.siteId, userShare.siteId) && + Objects.equals(this.path, userShare.path) && + Objects.equals(this.userId, userShare.userId) && + Objects.equals(this.permissionType, userShare.permissionType); } @Override @@ -369,7 +351,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -384,8 +367,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("group", "shareKey", "type", "permissions", - "siteId", "path", "userId", "permissionType")); + openapiFields = new HashSet(Arrays.asList("group", "shareKey", "type", "permissions", "siteId", "path", "userId", "permissionType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -398,104 +380,78 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UserShare */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UserShare.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in UserShare is not found in the empty JSON string", - UserShare.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!UserShare.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserShare is not found in the empty JSON string", UserShare.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UserShare.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `UserShare` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UserShare.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserShare` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + if ((jsonObj.get("shareKey") != null && !jsonObj.get("shareKey").isJsonNull()) && !jsonObj.get("shareKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareKey").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + TypeEnum.validateJsonElement(jsonObj.get("type")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); + } + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + // validate the optional field `permissionType` + if (jsonObj.get("permissionType") != null && !jsonObj.get("permissionType").isJsonNull()) { + UserSharePermissionType.validateJsonElement(jsonObj.get("permissionType")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) - && !jsonObj.get("group").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `group` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("group").toString())); - } - if ((jsonObj.get("shareKey") != null && !jsonObj.get("shareKey").isJsonNull()) - && !jsonObj.get("shareKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `shareKey` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("shareKey").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) - && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `type` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("type").toString())); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - TypeEnum.validateJsonElement(jsonObj.get("type")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() - && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `permissions` to be an array in the JSON string but got `%s`", - jsonObj.get("permissions").toString())); - } - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) - && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) - && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `path` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("path").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - // validate the optional field `permissionType` - if (jsonObj.get("permissionType") != null && !jsonObj.get("permissionType").isJsonNull()) { - UserSharePermissionType.validateJsonElement(jsonObj.get("permissionType")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserShare.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserShare' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UserShare.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UserShare value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UserShare read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UserShare.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserShare' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UserShare.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UserShare value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UserShare read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UserSharePermission.java b/src/main/java/com/formkiq/client/model/UserSharePermission.java index aede03db4..dc9c810ef 100644 --- a/src/main/java/com/formkiq/client/model/UserSharePermission.java +++ b/src/main/java/com/formkiq/client/model/UserSharePermission.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(UserSharePermission.Adapter.class) public enum UserSharePermission { - + READ("READ"), - + WRITE("WRITE"), - + DELETE("DELETE"); private String value; @@ -70,8 +63,7 @@ public static UserSharePermission fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final UserSharePermission enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final UserSharePermission enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/UserSharePermissionType.java b/src/main/java/com/formkiq/client/model/UserSharePermissionType.java index 9155b1f52..16e4ec77f 100644 --- a/src/main/java/com/formkiq/client/model/UserSharePermissionType.java +++ b/src/main/java/com/formkiq/client/model/UserSharePermissionType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,7 +30,7 @@ */ @JsonAdapter(UserSharePermissionType.Adapter.class) public enum UserSharePermissionType { - + GROUP("GROUP"); private String value; @@ -66,8 +59,7 @@ public static UserSharePermissionType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final UserSharePermissionType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final UserSharePermissionType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/ValidationError.java b/src/main/java/com/formkiq/client/model/ValidationError.java index 17bd5e34d..871f1e9cc 100644 --- a/src/main/java/com/formkiq/client/model/ValidationError.java +++ b/src/main/java/com/formkiq/client/model/ValidationError.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * ValidationError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ValidationError { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -71,7 +62,8 @@ public class ValidationError { @javax.annotation.Nullable private String error; - public ValidationError() {} + public ValidationError() { + } public ValidationError key(@javax.annotation.Nullable String key) { this.key = key; @@ -80,7 +72,6 @@ public ValidationError key(@javax.annotation.Nullable String key) { /** * Error Key - * * @return key */ @javax.annotation.Nullable @@ -100,7 +91,6 @@ public ValidationError error(@javax.annotation.Nullable String error) { /** * Error Message - * * @return error */ @javax.annotation.Nullable @@ -123,8 +113,8 @@ public boolean equals(Object o) { return false; } ValidationError validationError = (ValidationError) o; - return Objects.equals(this.key, validationError.key) - && Objects.equals(this.error, validationError.error); + return Objects.equals(this.key, validationError.key) && + Objects.equals(this.error, validationError.error); } @Override @@ -143,7 +133,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -171,65 +162,54 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ValidationError */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ValidationError.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in ValidationError is not found in the empty JSON string", - ValidationError.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!ValidationError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ValidationError is not found in the empty JSON string", ValidationError.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ValidationError.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `ValidationError` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ValidationError.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ValidationError` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) && !jsonObj.get("error").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) - && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } - if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) - && !jsonObj.get("error").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `error` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("error").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ValidationError.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ValidationError' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(ValidationError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ValidationError value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ValidationError read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ValidationError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValidationError' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValidationError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValidationError value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValidationError read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java b/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java index 5d5186f26..b09397ead 100644 --- a/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java +++ b/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,16 +53,15 @@ /** * ValidationErrorsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ValidationErrorsResponse { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors = new ArrayList<>(); - public ValidationErrorsResponse() {} + public ValidationErrorsResponse() { + } public ValidationErrorsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; @@ -86,7 +78,6 @@ public ValidationErrorsResponse addErrorsItem(ValidationError errorsItem) { /** * List of errors - * * @return errors */ @javax.annotation.Nullable @@ -127,7 +118,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -155,69 +147,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ValidationErrorsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ValidationErrorsResponse.openapiRequiredFields.isEmpty()) { // has required fields but - // JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in ValidationErrorsResponse is not found in the empty JSON string", - ValidationErrorsResponse.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!ValidationErrorsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ValidationErrorsResponse is not found in the empty JSON string", ValidationErrorsResponse.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ValidationErrorsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `ValidationErrorsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ValidationErrorsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ValidationErrorsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - if (jsonArrayerrors != null) { - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `errors` to be an array in the JSON string but got `%s`", - jsonObj.get("errors").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + ValidationError.validateJsonElement(jsonArrayerrors.get(i)); + }; } - - // validate the optional field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - ValidationError.validateJsonElement(jsonArrayerrors.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ValidationErrorsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ValidationErrorsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(ValidationErrorsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ValidationErrorsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ValidationErrorsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ValidationErrorsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValidationErrorsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValidationErrorsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValidationErrorsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValidationErrorsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Watermark.java b/src/main/java/com/formkiq/client/model/Watermark.java index 25da10fee..81d3db985 100644 --- a/src/main/java/com/formkiq/client/model/Watermark.java +++ b/src/main/java/com/formkiq/client/model/Watermark.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * Watermark */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Watermark { public static final String SERIALIZED_NAME_FONT_SIZE = "fontSize"; @SerializedName(SERIALIZED_NAME_FONT_SIZE) @@ -94,7 +85,8 @@ public class Watermark { @javax.annotation.Nullable private WatermarkPosition position; - public Watermark() {} + public Watermark() { + } public Watermark fontSize(@javax.annotation.Nullable BigDecimal fontSize) { this.fontSize = fontSize; @@ -103,7 +95,6 @@ public Watermark fontSize(@javax.annotation.Nullable BigDecimal fontSize) { /** * Watermark Font Size - * * @return fontSize */ @javax.annotation.Nullable @@ -123,7 +114,6 @@ public Watermark text(@javax.annotation.Nullable String text) { /** * Watermark text - * * @return text */ @javax.annotation.Nullable @@ -143,7 +133,6 @@ public Watermark rotation(@javax.annotation.Nullable BigDecimal rotation) { /** * Watermark Rotation - * * @return rotation */ @javax.annotation.Nullable @@ -163,7 +152,6 @@ public Watermark imageDocumentId(@javax.annotation.Nullable String imageDocument /** * Watermark Image Document Id - * * @return imageDocumentId */ @javax.annotation.Nullable @@ -183,7 +171,6 @@ public Watermark scale(@javax.annotation.Nullable WatermarkScale scale) { /** * Get scale - * * @return scale */ @javax.annotation.Nullable @@ -203,7 +190,6 @@ public Watermark position(@javax.annotation.Nullable WatermarkPosition position) /** * Get position - * * @return position */ @javax.annotation.Nullable @@ -226,12 +212,12 @@ public boolean equals(Object o) { return false; } Watermark watermark = (Watermark) o; - return Objects.equals(this.fontSize, watermark.fontSize) - && Objects.equals(this.text, watermark.text) - && Objects.equals(this.rotation, watermark.rotation) - && Objects.equals(this.imageDocumentId, watermark.imageDocumentId) - && Objects.equals(this.scale, watermark.scale) - && Objects.equals(this.position, watermark.position); + return Objects.equals(this.fontSize, watermark.fontSize) && + Objects.equals(this.text, watermark.text) && + Objects.equals(this.rotation, watermark.rotation) && + Objects.equals(this.imageDocumentId, watermark.imageDocumentId) && + Objects.equals(this.scale, watermark.scale) && + Objects.equals(this.position, watermark.position); } @Override @@ -254,7 +240,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -269,8 +256,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("fontSize", "text", "rotation", "imageDocumentId", "scale", "position")); + openapiFields = new HashSet(Arrays.asList("fontSize", "text", "rotation", "imageDocumentId", "scale", "position")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -283,73 +269,62 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Watermark */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Watermark.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in Watermark is not found in the empty JSON string", - Watermark.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!Watermark.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Watermark is not found in the empty JSON string", Watermark.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Watermark.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `Watermark` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Watermark.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Watermark` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); + } + if ((jsonObj.get("imageDocumentId") != null && !jsonObj.get("imageDocumentId").isJsonNull()) && !jsonObj.get("imageDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `imageDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("imageDocumentId").toString())); + } + // validate the optional field `scale` + if (jsonObj.get("scale") != null && !jsonObj.get("scale").isJsonNull()) { + WatermarkScale.validateJsonElement(jsonObj.get("scale")); + } + // validate the optional field `position` + if (jsonObj.get("position") != null && !jsonObj.get("position").isJsonNull()) { + WatermarkPosition.validateJsonElement(jsonObj.get("position")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) - && !jsonObj.get("text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `text` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("text").toString())); - } - if ((jsonObj.get("imageDocumentId") != null && !jsonObj.get("imageDocumentId").isJsonNull()) - && !jsonObj.get("imageDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `imageDocumentId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("imageDocumentId").toString())); - } - // validate the optional field `scale` - if (jsonObj.get("scale") != null && !jsonObj.get("scale").isJsonNull()) { - WatermarkScale.validateJsonElement(jsonObj.get("scale")); - } - // validate the optional field `position` - if (jsonObj.get("position") != null && !jsonObj.get("position").isJsonNull()) { - WatermarkPosition.validateJsonElement(jsonObj.get("position")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Watermark.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Watermark' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(Watermark.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Watermark value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Watermark read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Watermark.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Watermark' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Watermark.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Watermark value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Watermark read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WatermarkPosition.java b/src/main/java/com/formkiq/client/model/WatermarkPosition.java index 3673b3b24..699c52d9d 100644 --- a/src/main/java/com/formkiq/client/model/WatermarkPosition.java +++ b/src/main/java/com/formkiq/client/model/WatermarkPosition.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,9 +53,7 @@ /** * WatermarkPosition */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WatermarkPosition { public static final String SERIALIZED_NAME_X_ANCHOR = "xAnchor"; @SerializedName(SERIALIZED_NAME_X_ANCHOR) @@ -84,7 +75,8 @@ public class WatermarkPosition { @javax.annotation.Nullable private BigDecimal yOffset; - public WatermarkPosition() {} + public WatermarkPosition() { + } public WatermarkPosition xAnchor(@javax.annotation.Nullable WatermarkPositionXAnchor xAnchor) { this.xAnchor = xAnchor; @@ -93,7 +85,6 @@ public WatermarkPosition xAnchor(@javax.annotation.Nullable WatermarkPositionXAn /** * Get xAnchor - * * @return xAnchor */ @javax.annotation.Nullable @@ -113,7 +104,6 @@ public WatermarkPosition yAnchor(@javax.annotation.Nullable WatermarkPositionYAn /** * Get yAnchor - * * @return yAnchor */ @javax.annotation.Nullable @@ -133,7 +123,6 @@ public WatermarkPosition xOffset(@javax.annotation.Nullable BigDecimal xOffset) /** * X offset - * * @return xOffset */ @javax.annotation.Nullable @@ -153,7 +142,6 @@ public WatermarkPosition yOffset(@javax.annotation.Nullable BigDecimal yOffset) /** * Y offset - * * @return yOffset */ @javax.annotation.Nullable @@ -176,10 +164,10 @@ public boolean equals(Object o) { return false; } WatermarkPosition watermarkPosition = (WatermarkPosition) o; - return Objects.equals(this.xAnchor, watermarkPosition.xAnchor) - && Objects.equals(this.yAnchor, watermarkPosition.yAnchor) - && Objects.equals(this.xOffset, watermarkPosition.xOffset) - && Objects.equals(this.yOffset, watermarkPosition.yOffset); + return Objects.equals(this.xAnchor, watermarkPosition.xAnchor) && + Objects.equals(this.yAnchor, watermarkPosition.yAnchor) && + Objects.equals(this.xOffset, watermarkPosition.xOffset) && + Objects.equals(this.yOffset, watermarkPosition.yOffset); } @Override @@ -200,7 +188,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,61 +217,56 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WatermarkPosition */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WatermarkPosition.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in WatermarkPosition is not found in the empty JSON string", - WatermarkPosition.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!WatermarkPosition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WatermarkPosition is not found in the empty JSON string", WatermarkPosition.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WatermarkPosition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `WatermarkPosition` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WatermarkPosition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WatermarkPosition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `xAnchor` + if (jsonObj.get("xAnchor") != null && !jsonObj.get("xAnchor").isJsonNull()) { + WatermarkPositionXAnchor.validateJsonElement(jsonObj.get("xAnchor")); + } + // validate the optional field `yAnchor` + if (jsonObj.get("yAnchor") != null && !jsonObj.get("yAnchor").isJsonNull()) { + WatermarkPositionYAnchor.validateJsonElement(jsonObj.get("yAnchor")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `xAnchor` - if (jsonObj.get("xAnchor") != null && !jsonObj.get("xAnchor").isJsonNull()) { - WatermarkPositionXAnchor.validateJsonElement(jsonObj.get("xAnchor")); - } - // validate the optional field `yAnchor` - if (jsonObj.get("yAnchor") != null && !jsonObj.get("yAnchor").isJsonNull()) { - WatermarkPositionYAnchor.validateJsonElement(jsonObj.get("yAnchor")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WatermarkPosition.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WatermarkPosition' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(WatermarkPosition.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WatermarkPosition value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WatermarkPosition read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WatermarkPosition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WatermarkPosition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(WatermarkPosition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WatermarkPosition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WatermarkPosition read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WatermarkPositionXAnchor.java b/src/main/java/com/formkiq/client/model/WatermarkPositionXAnchor.java index daed49a80..aa2d668e6 100644 --- a/src/main/java/com/formkiq/client/model/WatermarkPositionXAnchor.java +++ b/src/main/java/com/formkiq/client/model/WatermarkPositionXAnchor.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(WatermarkPositionXAnchor.Adapter.class) public enum WatermarkPositionXAnchor { - + LEFT("LEFT"), - + RIGHT("RIGHT"), - + CENTER("CENTER"); private String value; @@ -70,8 +63,7 @@ public static WatermarkPositionXAnchor fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final WatermarkPositionXAnchor enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final WatermarkPositionXAnchor enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/WatermarkPositionYAnchor.java b/src/main/java/com/formkiq/client/model/WatermarkPositionYAnchor.java index d73f8247a..daa713c73 100644 --- a/src/main/java/com/formkiq/client/model/WatermarkPositionYAnchor.java +++ b/src/main/java/com/formkiq/client/model/WatermarkPositionYAnchor.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,11 +30,11 @@ */ @JsonAdapter(WatermarkPositionYAnchor.Adapter.class) public enum WatermarkPositionYAnchor { - + TOP("TOP"), - + BOTTOM("BOTTOM"), - + CENTER("CENTER"); private String value; @@ -70,8 +63,7 @@ public static WatermarkPositionYAnchor fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final WatermarkPositionYAnchor enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final WatermarkPositionYAnchor enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/WatermarkScale.java b/src/main/java/com/formkiq/client/model/WatermarkScale.java index ab9655435..5da1150a3 100644 --- a/src/main/java/com/formkiq/client/model/WatermarkScale.java +++ b/src/main/java/com/formkiq/client/model/WatermarkScale.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(WatermarkScale.Adapter.class) public enum WatermarkScale { - + FIT_BEST("FIT_BEST"), - + ORIGINAL("ORIGINAL"); private String value; @@ -68,8 +61,7 @@ public static WatermarkScale fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final WatermarkScale enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final WatermarkScale enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/WebhookTag.java b/src/main/java/com/formkiq/client/model/WebhookTag.java index 554c18984..161217dca 100644 --- a/src/main/java/com/formkiq/client/model/WebhookTag.java +++ b/src/main/java/com/formkiq/client/model/WebhookTag.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -57,9 +50,7 @@ /** * WebhookTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WebhookTag { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; @SerializedName(SERIALIZED_NAME_INSERTED_DATE) @@ -91,7 +82,8 @@ public class WebhookTag { @javax.annotation.Nonnull private String key; - public WebhookTag() {} + public WebhookTag() { + } public WebhookTag insertedDate(@javax.annotation.Nullable String insertedDate) { this.insertedDate = insertedDate; @@ -100,7 +92,6 @@ public WebhookTag insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -120,7 +111,6 @@ public WebhookTag webhookId(@javax.annotation.Nullable String webhookId) { /** * Webhook Identifier - * * @return webhookId */ @javax.annotation.Nullable @@ -140,7 +130,6 @@ public WebhookTag type(@javax.annotation.Nullable String type) { /** * Tag type - * * @return type */ @javax.annotation.Nullable @@ -160,7 +149,6 @@ public WebhookTag userId(@javax.annotation.Nullable String userId) { /** * User who added document - * * @return userId */ @javax.annotation.Nullable @@ -180,7 +168,6 @@ public WebhookTag value(@javax.annotation.Nonnull String value) { /** * Tag value - * * @return value */ @javax.annotation.Nonnull @@ -200,7 +187,6 @@ public WebhookTag key(@javax.annotation.Nonnull String key) { /** * Tag key - * * @return key */ @javax.annotation.Nonnull @@ -223,11 +209,12 @@ public boolean equals(Object o) { return false; } WebhookTag webhookTag = (WebhookTag) o; - return Objects.equals(this.insertedDate, webhookTag.insertedDate) - && Objects.equals(this.webhookId, webhookTag.webhookId) - && Objects.equals(this.type, webhookTag.type) - && Objects.equals(this.userId, webhookTag.userId) - && Objects.equals(this.value, webhookTag.value) && Objects.equals(this.key, webhookTag.key); + return Objects.equals(this.insertedDate, webhookTag.insertedDate) && + Objects.equals(this.webhookId, webhookTag.webhookId) && + Objects.equals(this.type, webhookTag.type) && + Objects.equals(this.userId, webhookTag.userId) && + Objects.equals(this.value, webhookTag.value) && + Objects.equals(this.key, webhookTag.key); } @Override @@ -250,7 +237,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -265,8 +253,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet( - Arrays.asList("insertedDate", "webhookId", "type", "userId", "value", "key")); + openapiFields = new HashSet(Arrays.asList("insertedDate", "webhookId", "type", "userId", "value", "key")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("value", "key")); @@ -279,96 +266,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WebhookTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WebhookTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is - // null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in WebhookTag is not found in the empty JSON string", - WebhookTag.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!WebhookTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WebhookTag is not found in the empty JSON string", WebhookTag.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WebhookTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `WebhookTag` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WebhookTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WebhookTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : WebhookTag.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field `%s` is not found in the JSON string: %s", requiredField, - jsonElement.toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : WebhookTag.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) && !jsonObj.get("webhookId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("webhookId").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + if (!jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) - && !jsonObj.get("webhookId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("webhookId").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) - && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `type` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("type").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - if (!jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `value` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("value").toString())); - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `key` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("key").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WebhookTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WebhookTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(WebhookTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WebhookTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WebhookTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WebhookTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WebhookTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(WebhookTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WebhookTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WebhookTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WorkflowDocument.java b/src/main/java/com/formkiq/client/model/WorkflowDocument.java index ec98002d2..53b68203f 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowDocument.java +++ b/src/main/java/com/formkiq/client/model/WorkflowDocument.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * WorkflowDocument */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowDocument { public static final String SERIALIZED_NAME_WORKFLOW = "workflow"; @SerializedName(SERIALIZED_NAME_WORKFLOW) @@ -73,7 +64,8 @@ public class WorkflowDocument { @javax.annotation.Nullable private Document document; - public WorkflowDocument() {} + public WorkflowDocument() { + } public WorkflowDocument workflow(@javax.annotation.Nullable WorkflowSummary workflow) { this.workflow = workflow; @@ -82,7 +74,6 @@ public WorkflowDocument workflow(@javax.annotation.Nullable WorkflowSummary work /** * Get workflow - * * @return workflow */ @javax.annotation.Nullable @@ -102,7 +93,6 @@ public WorkflowDocument document(@javax.annotation.Nullable Document document) { /** * Get document - * * @return document */ @javax.annotation.Nullable @@ -125,8 +115,8 @@ public boolean equals(Object o) { return false; } WorkflowDocument workflowDocument = (WorkflowDocument) o; - return Objects.equals(this.workflow, workflowDocument.workflow) - && Objects.equals(this.document, workflowDocument.document); + return Objects.equals(this.workflow, workflowDocument.workflow) && + Objects.equals(this.document, workflowDocument.document); } @Override @@ -145,7 +135,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,61 +164,56 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WorkflowDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WorkflowDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in WorkflowDocument is not found in the empty JSON string", - WorkflowDocument.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!WorkflowDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WorkflowDocument is not found in the empty JSON string", WorkflowDocument.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WorkflowDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `WorkflowDocument` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WorkflowDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WorkflowDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `workflow` + if (jsonObj.get("workflow") != null && !jsonObj.get("workflow").isJsonNull()) { + WorkflowSummary.validateJsonElement(jsonObj.get("workflow")); + } + // validate the optional field `document` + if (jsonObj.get("document") != null && !jsonObj.get("document").isJsonNull()) { + Document.validateJsonElement(jsonObj.get("document")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `workflow` - if (jsonObj.get("workflow") != null && !jsonObj.get("workflow").isJsonNull()) { - WorkflowSummary.validateJsonElement(jsonObj.get("workflow")); - } - // validate the optional field `document` - if (jsonObj.get("document") != null && !jsonObj.get("document").isJsonNull()) { - Document.validateJsonElement(jsonObj.get("document")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WorkflowDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WorkflowDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(WorkflowDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WorkflowDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WorkflowDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WorkflowDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkflowDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(WorkflowDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkflowDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WorkflowDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WorkflowQueue.java b/src/main/java/com/formkiq/client/model/WorkflowQueue.java index fe8646075..bc5009a59 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowQueue.java +++ b/src/main/java/com/formkiq/client/model/WorkflowQueue.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -59,9 +52,7 @@ /** * WorkflowQueue */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowQueue { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; @SerializedName(SERIALIZED_NAME_QUEUE_ID) @@ -73,7 +64,8 @@ public class WorkflowQueue { @javax.annotation.Nullable private List approvalGroups = new ArrayList<>(); - public WorkflowQueue() {} + public WorkflowQueue() { + } public WorkflowQueue queueId(@javax.annotation.Nullable String queueId) { this.queueId = queueId; @@ -82,7 +74,6 @@ public WorkflowQueue queueId(@javax.annotation.Nullable String queueId) { /** * Queue Id - * * @return queueId */ @javax.annotation.Nullable @@ -110,7 +101,6 @@ public WorkflowQueue addApprovalGroupsItem(String approvalGroupsItem) { /** * Get approvalGroups - * * @return approvalGroups */ @javax.annotation.Nullable @@ -133,8 +123,8 @@ public boolean equals(Object o) { return false; } WorkflowQueue workflowQueue = (WorkflowQueue) o; - return Objects.equals(this.queueId, workflowQueue.queueId) - && Objects.equals(this.approvalGroups, workflowQueue.approvalGroups); + return Objects.equals(this.queueId, workflowQueue.queueId) && + Objects.equals(this.approvalGroups, workflowQueue.approvalGroups); } @Override @@ -153,7 +143,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,66 +172,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WorkflowQueue */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WorkflowQueue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in WorkflowQueue is not found in the empty JSON string", - WorkflowQueue.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!WorkflowQueue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WorkflowQueue is not found in the empty JSON string", WorkflowQueue.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WorkflowQueue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `WorkflowQueue` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WorkflowQueue.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WorkflowQueue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) && !jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("approvalGroups") != null && !jsonObj.get("approvalGroups").isJsonNull() && !jsonObj.get("approvalGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `approvalGroups` to be an array in the JSON string but got `%s`", jsonObj.get("approvalGroups").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) - && !jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("queueId").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("approvalGroups") != null && !jsonObj.get("approvalGroups").isJsonNull() - && !jsonObj.get("approvalGroups").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `approvalGroups` to be an array in the JSON string but got `%s`", - jsonObj.get("approvalGroups").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WorkflowQueue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WorkflowQueue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(WorkflowQueue.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WorkflowQueue value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WorkflowQueue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WorkflowQueue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkflowQueue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(WorkflowQueue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkflowQueue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WorkflowQueue read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WorkflowStatus.java b/src/main/java/com/formkiq/client/model/WorkflowStatus.java index bcb6de3c0..dfcca68f3 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStatus.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStatus.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(WorkflowStatus.Adapter.class) public enum WorkflowStatus { - + ACTIVE("ACTIVE"), - + INACTIVE("INACTIVE"); private String value; @@ -68,8 +61,7 @@ public static WorkflowStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final WorkflowStatus enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final WorkflowStatus enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/WorkflowStep.java b/src/main/java/com/formkiq/client/model/WorkflowStep.java index ac2820eba..55dd3af8a 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStep.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStep.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -62,9 +55,7 @@ /** * WorkflowStep */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowStep { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; @SerializedName(SERIALIZED_NAME_STEP_ID) @@ -86,7 +77,8 @@ public class WorkflowStep { @javax.annotation.Nullable private List decisions = new ArrayList<>(); - public WorkflowStep() {} + public WorkflowStep() { + } public WorkflowStep stepId(@javax.annotation.Nullable String stepId) { this.stepId = stepId; @@ -95,7 +87,6 @@ public WorkflowStep stepId(@javax.annotation.Nullable String stepId) { /** * Workflow Step Identifier - * * @return stepId */ @javax.annotation.Nullable @@ -115,7 +106,6 @@ public WorkflowStep action(@javax.annotation.Nullable DocumentAction action) { /** * Get action - * * @return action */ @javax.annotation.Nullable @@ -135,7 +125,6 @@ public WorkflowStep queue(@javax.annotation.Nullable WorkflowQueue queue) { /** * Get queue - * * @return queue */ @javax.annotation.Nullable @@ -163,7 +152,6 @@ public WorkflowStep addDecisionsItem(WorkflowStepDecision decisionsItem) { /** * Workflow Decisions - * * @return decisions */ @javax.annotation.Nullable @@ -186,10 +174,10 @@ public boolean equals(Object o) { return false; } WorkflowStep workflowStep = (WorkflowStep) o; - return Objects.equals(this.stepId, workflowStep.stepId) - && Objects.equals(this.action, workflowStep.action) - && Objects.equals(this.queue, workflowStep.queue) - && Objects.equals(this.decisions, workflowStep.decisions); + return Objects.equals(this.stepId, workflowStep.stepId) && + Objects.equals(this.action, workflowStep.action) && + Objects.equals(this.queue, workflowStep.queue) && + Objects.equals(this.decisions, workflowStep.decisions); } @Override @@ -210,7 +198,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -238,83 +227,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WorkflowStep */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WorkflowStep.openapiRequiredFields.isEmpty()) { // has required fields but JSON element - // is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in WorkflowStep is not found in the empty JSON string", - WorkflowStep.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!WorkflowStep.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WorkflowStep is not found in the empty JSON string", WorkflowStep.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WorkflowStep.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `WorkflowStep` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WorkflowStep.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WorkflowStep` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) - && !jsonObj.get("stepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("stepId").toString())); - } - // validate the optional field `action` - if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { - DocumentAction.validateJsonElement(jsonObj.get("action")); - } - // validate the optional field `queue` - if (jsonObj.get("queue") != null && !jsonObj.get("queue").isJsonNull()) { - WorkflowQueue.validateJsonElement(jsonObj.get("queue")); - } - if (jsonObj.get("decisions") != null && !jsonObj.get("decisions").isJsonNull()) { - JsonArray jsonArraydecisions = jsonObj.getAsJsonArray("decisions"); - if (jsonArraydecisions != null) { - // ensure the json data is an array - if (!jsonObj.get("decisions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `decisions` to be an array in the JSON string but got `%s`", - jsonObj.get("decisions").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) && !jsonObj.get("stepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stepId").toString())); + } + // validate the optional field `action` + if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { + DocumentAction.validateJsonElement(jsonObj.get("action")); + } + // validate the optional field `queue` + if (jsonObj.get("queue") != null && !jsonObj.get("queue").isJsonNull()) { + WorkflowQueue.validateJsonElement(jsonObj.get("queue")); + } + if (jsonObj.get("decisions") != null && !jsonObj.get("decisions").isJsonNull()) { + JsonArray jsonArraydecisions = jsonObj.getAsJsonArray("decisions"); + if (jsonArraydecisions != null) { + // ensure the json data is an array + if (!jsonObj.get("decisions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `decisions` to be an array in the JSON string but got `%s`", jsonObj.get("decisions").toString())); + } + + // validate the optional field `decisions` (array) + for (int i = 0; i < jsonArraydecisions.size(); i++) { + WorkflowStepDecision.validateJsonElement(jsonArraydecisions.get(i)); + }; } - - // validate the optional field `decisions` (array) - for (int i = 0; i < jsonArraydecisions.size(); i++) { - WorkflowStepDecision.validateJsonElement(jsonArraydecisions.get(i)); - } ; } - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WorkflowStep.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WorkflowStep' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(WorkflowStep.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WorkflowStep value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WorkflowStep read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WorkflowStep.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkflowStep' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(WorkflowStep.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkflowStep value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WorkflowStep read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java b/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java index 467cee2c2..b992a1016 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * WorkflowStepDecision */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowStepDecision { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -72,7 +63,8 @@ public class WorkflowStepDecision { @javax.annotation.Nullable private String nextStepId; - public WorkflowStepDecision() {} + public WorkflowStepDecision() { + } public WorkflowStepDecision type(@javax.annotation.Nullable WorkflowStepDecisionType type) { this.type = type; @@ -81,7 +73,6 @@ public WorkflowStepDecision type(@javax.annotation.Nullable WorkflowStepDecision /** * Get type - * * @return type */ @javax.annotation.Nullable @@ -101,7 +92,6 @@ public WorkflowStepDecision nextStepId(@javax.annotation.Nullable String nextSte /** * Workflow Step to move to - * * @return nextStepId */ @javax.annotation.Nullable @@ -124,8 +114,8 @@ public boolean equals(Object o) { return false; } WorkflowStepDecision workflowStepDecision = (WorkflowStepDecision) o; - return Objects.equals(this.type, workflowStepDecision.type) - && Objects.equals(this.nextStepId, workflowStepDecision.nextStepId); + return Objects.equals(this.type, workflowStepDecision.type) && + Objects.equals(this.nextStepId, workflowStepDecision.nextStepId); } @Override @@ -144,7 +134,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,63 +163,55 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WorkflowStepDecision */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WorkflowStepDecision.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in WorkflowStepDecision is not found in the empty JSON string", - WorkflowStepDecision.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!WorkflowStepDecision.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WorkflowStepDecision is not found in the empty JSON string", WorkflowStepDecision.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WorkflowStepDecision.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `WorkflowStepDecision` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WorkflowStepDecision.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WorkflowStepDecision` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + WorkflowStepDecisionType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("nextStepId") != null && !jsonObj.get("nextStepId").isJsonNull()) && !jsonObj.get("nextStepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nextStepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextStepId").toString())); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - WorkflowStepDecisionType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("nextStepId") != null && !jsonObj.get("nextStepId").isJsonNull()) - && !jsonObj.get("nextStepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `nextStepId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("nextStepId").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WorkflowStepDecision.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WorkflowStepDecision' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(WorkflowStepDecision.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WorkflowStepDecision value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WorkflowStepDecision read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WorkflowStepDecision.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkflowStepDecision' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(WorkflowStepDecision.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkflowStepDecision value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WorkflowStepDecision read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WorkflowStepDecisionType.java b/src/main/java/com/formkiq/client/model/WorkflowStepDecisionType.java index 080be7cd0..ee5ca6281 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStepDecisionType.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStepDecisionType.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,9 +30,9 @@ */ @JsonAdapter(WorkflowStepDecisionType.Adapter.class) public enum WorkflowStepDecisionType { - + APPROVE("APPROVE"), - + REJECT("REJECT"); private String value; @@ -68,8 +61,7 @@ public static WorkflowStepDecisionType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final WorkflowStepDecisionType enumeration) - throws IOException { + public void write(final JsonWriter jsonWriter, final WorkflowStepDecisionType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/WorkflowSummary.java b/src/main/java/com/formkiq/client/model/WorkflowSummary.java index 9efcd6e14..7b01e8339 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowSummary.java +++ b/src/main/java/com/formkiq/client/model/WorkflowSummary.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,9 +51,7 @@ /** * WorkflowSummary */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-02T10:43:50.522026-06:00[America/Winnipeg]", - comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowSummary { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -97,7 +88,8 @@ public class WorkflowSummary { @javax.annotation.Nullable private WorkflowStatus status; - public WorkflowSummary() {} + public WorkflowSummary() { + } public WorkflowSummary name(@javax.annotation.Nullable String name) { this.name = name; @@ -106,7 +98,6 @@ public WorkflowSummary name(@javax.annotation.Nullable String name) { /** * Name of Workflow - * * @return name */ @javax.annotation.Nullable @@ -126,7 +117,6 @@ public WorkflowSummary workflowId(@javax.annotation.Nullable String workflowId) /** * Workflow identifier - * * @return workflowId */ @javax.annotation.Nullable @@ -146,7 +136,6 @@ public WorkflowSummary description(@javax.annotation.Nullable String description /** * Description of Workflow - * * @return description */ @javax.annotation.Nullable @@ -166,7 +155,6 @@ public WorkflowSummary insertedDate(@javax.annotation.Nullable String insertedDa /** * Inserted Timestamp - * * @return insertedDate */ @javax.annotation.Nullable @@ -186,7 +174,6 @@ public WorkflowSummary userId(@javax.annotation.Nullable String userId) { /** * User who created workflow - * * @return userId */ @javax.annotation.Nullable @@ -206,7 +193,6 @@ public WorkflowSummary inUse(@javax.annotation.Nullable Boolean inUse) { /** * Whether the Workflow is in use - * * @return inUse */ @javax.annotation.Nullable @@ -226,7 +212,6 @@ public WorkflowSummary status(@javax.annotation.Nullable WorkflowStatus status) /** * Get status - * * @return status */ @javax.annotation.Nullable @@ -249,13 +234,13 @@ public boolean equals(Object o) { return false; } WorkflowSummary workflowSummary = (WorkflowSummary) o; - return Objects.equals(this.name, workflowSummary.name) - && Objects.equals(this.workflowId, workflowSummary.workflowId) - && Objects.equals(this.description, workflowSummary.description) - && Objects.equals(this.insertedDate, workflowSummary.insertedDate) - && Objects.equals(this.userId, workflowSummary.userId) - && Objects.equals(this.inUse, workflowSummary.inUse) - && Objects.equals(this.status, workflowSummary.status); + return Objects.equals(this.name, workflowSummary.name) && + Objects.equals(this.workflowId, workflowSummary.workflowId) && + Objects.equals(this.description, workflowSummary.description) && + Objects.equals(this.insertedDate, workflowSummary.insertedDate) && + Objects.equals(this.userId, workflowSummary.userId) && + Objects.equals(this.inUse, workflowSummary.inUse) && + Objects.equals(this.status, workflowSummary.status); } @Override @@ -279,7 +264,8 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -294,8 +280,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "workflowId", "description", - "insertedDate", "userId", "inUse", "status")); + openapiFields = new HashSet(Arrays.asList("name", "workflowId", "description", "insertedDate", "userId", "inUse", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -308,87 +293,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WorkflowSummary */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WorkflowSummary.openapiRequiredFields.isEmpty()) { // has required fields but JSON - // element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The required field(s) %s in WorkflowSummary is not found in the empty JSON string", - WorkflowSummary.openapiRequiredFields.toString())); + if (jsonElement == null) { + if (!WorkflowSummary.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WorkflowSummary is not found in the empty JSON string", WorkflowSummary.openapiRequiredFields.toString())); + } } - } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WorkflowSummary.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "The field `%s` in the JSON string is not defined in the `WorkflowSummary` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WorkflowSummary.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WorkflowSummary` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + WorkflowStatus.validateJsonElement(jsonObj.get("status")); } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) - && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `name` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("name").toString())); - } - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) - && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("workflowId").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) - && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `description` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("description").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) - && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) - && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, - "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", - jsonObj.get("userId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - WorkflowStatus.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WorkflowSummary.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WorkflowSummary' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(WorkflowSummary.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WorkflowSummary value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WorkflowSummary read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WorkflowSummary.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkflowSummary' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(WorkflowSummary.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkflowSummary value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WorkflowSummary read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/test/java/com/formkiq/client/api/AccessControlApiTest.java b/src/test/java/com/formkiq/client/api/AccessControlApiTest.java index ffd58992c..8372dd778 100644 --- a/src/test/java/com/formkiq/client/api/AccessControlApiTest.java +++ b/src/test/java/com/formkiq/client/api/AccessControlApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -42,76 +35,76 @@ @Disabled public class AccessControlApiTest { - private final AccessControlApi api = new AccessControlApi(); + private final AccessControlApi api = new AccessControlApi(); - /** - * Delete OPA Access Policy Items - * - * Delete OPA Access Policy Items - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpaAccessPolicyItemsTest() throws ApiException { - String siteId = null; - DeleteResponse response = api.deleteOpaAccessPolicyItems(siteId); - // TODO: test validations - } + /** + * Delete OPA Access Policy Items + * + * Delete OPA Access Policy Items + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpaAccessPolicyItemsTest() throws ApiException { + String siteId = null; + DeleteResponse response = api.deleteOpaAccessPolicyItems(siteId); + // TODO: test validations + } - /** - * Get OPAs Access Policies - * - * Returns a list of OPA Access Policies, can only be requested with ADMIN privileges - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpaAccessPoliciesTest() throws ApiException { - GetOpaAccessPoliciesResponse response = api.getOpaAccessPolicies(); - // TODO: test validations - } + /** + * Get OPAs Access Policies + * + * Returns a list of OPA Access Policies, can only be requested with ADMIN privileges + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpaAccessPoliciesTest() throws ApiException { + GetOpaAccessPoliciesResponse response = api.getOpaAccessPolicies(); + // TODO: test validations + } - /** - * Get OPA Access Policy - * - * Returns OPA Access Policy, can only be requested with ADMIN privileges - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpaAccessPolicyTest() throws ApiException { - String siteId = null; - GetOpaAccessPolicyResponse response = api.getOpaAccessPolicy(siteId); - // TODO: test validations - } + /** + * Get OPA Access Policy + * + * Returns OPA Access Policy, can only be requested with ADMIN privileges + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpaAccessPolicyTest() throws ApiException { + String siteId = null; + GetOpaAccessPolicyResponse response = api.getOpaAccessPolicy(siteId); + // TODO: test validations + } - /** - * Get OPA Access Policy Items - * - * Returns OPA Access Policy Items, can only be requested with ADMIN privileges - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpaAccessPolicyItemsTest() throws ApiException { - String siteId = null; - GetOpaAccessPolicyItemsResponse response = api.getOpaAccessPolicyItems(siteId); - // TODO: test validations - } + /** + * Get OPA Access Policy Items + * + * Returns OPA Access Policy Items, can only be requested with ADMIN privileges + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpaAccessPolicyItemsTest() throws ApiException { + String siteId = null; + GetOpaAccessPolicyItemsResponse response = api.getOpaAccessPolicyItems(siteId); + // TODO: test validations + } - /** - * Set opa access policy items, can only be requested with ADMIN privileges - * - * Sets opa access policy items - * - * @throws ApiException if the Api call fails - */ - @Test - public void setOpaAccessPolicyItemsTest() throws ApiException { - String siteId = null; - SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest = null; - SetResponse response = api.setOpaAccessPolicyItems(siteId, setOpaAccessPolicyItemsRequest); - // TODO: test validations - } + /** + * Set opa access policy items, can only be requested with ADMIN privileges + * + * Sets opa access policy items + * + * @throws ApiException if the Api call fails + */ + @Test + public void setOpaAccessPolicyItemsTest() throws ApiException { + String siteId = null; + SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest = null; + SetResponse response = api.setOpaAccessPolicyItems(siteId, setOpaAccessPolicyItemsRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/AdvancedDocumentSearchApiTest.java b/src/test/java/com/formkiq/client/api/AdvancedDocumentSearchApiTest.java index f98f003c5..a5e076cfe 100644 --- a/src/test/java/com/formkiq/client/api/AdvancedDocumentSearchApiTest.java +++ b/src/test/java/com/formkiq/client/api/AdvancedDocumentSearchApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -47,160 +40,153 @@ @Disabled public class AdvancedDocumentSearchApiTest { - private final AdvancedDocumentSearchApi api = new AdvancedDocumentSearchApi(); - - /** - * Add document's full-text - * - * Add a document to OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentFulltextTest() throws ApiException { - String documentId = null; - String siteId = null; - AddDocumentFulltextRequest addDocumentFulltextRequest = null; - AddDocumentFulltextResponse response = - api.addDocumentFulltext(documentId, siteId, addDocumentFulltextRequest); - // TODO: test validations - } - - /** - * Delete document full-text - * - * Remove full text search for a document from OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentFulltextTest() throws ApiException { - String documentId = null; - String siteId = null; - DeleteFulltextResponse response = api.deleteDocumentFulltext(documentId, siteId); - // TODO: test validations - } - - /** - * Delete document full-text tag - * - * Remove document tags from OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentFulltextTagTest() throws ApiException { - String documentId = null; - String tagKey = null; - String siteId = null; - String shareKey = null; - api.deleteDocumentFulltextTag(documentId, tagKey, siteId, shareKey); - // TODO: test validations - } - - /** - * Delete document full-text tag/value - * - * Remove document tag/value from OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentFulltextTagAndValueTest() throws ApiException { - String documentId = null; - String tagKey = null; - String tagValue = null; - String siteId = null; - String shareKey = null; - api.deleteDocumentFulltextTagAndValue(documentId, tagKey, tagValue, siteId, shareKey); - // TODO: test validations - } - - /** - * Get document's full-text - * - * Retrieve an OpenSearch document's details, i.e., metadata - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentFulltextTest() throws ApiException { - String documentId = null; - String siteId = null; - String shareKey = null; - GetDocumentFulltextResponse response = api.getDocumentFulltext(documentId, siteId, shareKey); - // TODO: test validations - } - - /** - * Direct opensearch search API - * - * Endpoint for allowing custom, complex queries using the OpenSearch search API - * (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module - * Example Request Body: { \"query\": { \"match_all\": {} }} - * - * @throws ApiException if the Api call fails - */ - @Test - public void queryFulltextTest() throws ApiException { - Object body = null; - String siteId = null; - String indexName = null; - QueryFulltextResponse response = api.queryFulltext(body, siteId, indexName); - // TODO: test validations - } - - /** - * Document full-text search - * - * Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); - * available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void searchFulltextTest() throws ApiException { - DocumentFulltextRequest documentFulltextRequest = null; - String siteId = null; - String indexName = null; - String limit = null; - DocumentFulltextResponse response = - api.searchFulltext(documentFulltextRequest, siteId, indexName, limit); - // TODO: test validations - } - - /** - * Set document's full-text - * - * Set all text/tags found within a document to OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentFulltextTest() throws ApiException { - String documentId = null; - String siteId = null; - SetDocumentFulltextRequest setDocumentFulltextRequest = null; - SetDocumentFulltextResponse response = - api.setDocumentFulltext(documentId, siteId, setDocumentFulltextRequest); - // TODO: test validations - } - - /** - * Update document's full-text - * - * Update a document in OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateDocumentFulltextTest() throws ApiException { - String documentId = null; - String siteId = null; - UpdateDocumentFulltextRequest updateDocumentFulltextRequest = null; - UpdateDocumentFulltextResponse response = - api.updateDocumentFulltext(documentId, siteId, updateDocumentFulltextRequest); - // TODO: test validations - } + private final AdvancedDocumentSearchApi api = new AdvancedDocumentSearchApi(); + + /** + * Add document's full-text + * + * Add a document to OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentFulltextTest() throws ApiException { + String documentId = null; + String siteId = null; + AddDocumentFulltextRequest addDocumentFulltextRequest = null; + AddDocumentFulltextResponse response = api.addDocumentFulltext(documentId, siteId, addDocumentFulltextRequest); + // TODO: test validations + } + + /** + * Delete document full-text + * + * Remove full text search for a document from OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentFulltextTest() throws ApiException { + String documentId = null; + String siteId = null; + DeleteFulltextResponse response = api.deleteDocumentFulltext(documentId, siteId); + // TODO: test validations + } + + /** + * Delete document full-text tag + * + * Remove document tags from OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentFulltextTagTest() throws ApiException { + String documentId = null; + String tagKey = null; + String siteId = null; + String shareKey = null; + api.deleteDocumentFulltextTag(documentId, tagKey, siteId, shareKey); + // TODO: test validations + } + + /** + * Delete document full-text tag/value + * + * Remove document tag/value from OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentFulltextTagAndValueTest() throws ApiException { + String documentId = null; + String tagKey = null; + String tagValue = null; + String siteId = null; + String shareKey = null; + api.deleteDocumentFulltextTagAndValue(documentId, tagKey, tagValue, siteId, shareKey); + // TODO: test validations + } + + /** + * Get document's full-text + * + * Retrieve an OpenSearch document's details, i.e., metadata + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentFulltextTest() throws ApiException { + String documentId = null; + String siteId = null; + String shareKey = null; + GetDocumentFulltextResponse response = api.getDocumentFulltext(documentId, siteId, shareKey); + // TODO: test validations + } + + /** + * Direct opensearch search API + * + * Endpoint for allowing custom, complex queries using the OpenSearch search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} + * + * @throws ApiException if the Api call fails + */ + @Test + public void queryFulltextTest() throws ApiException { + Object body = null; + String siteId = null; + String indexName = null; + QueryFulltextResponse response = api.queryFulltext(body, siteId, indexName); + // TODO: test validations + } + + /** + * Document full-text search + * + * Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void searchFulltextTest() throws ApiException { + DocumentFulltextRequest documentFulltextRequest = null; + String siteId = null; + String indexName = null; + String limit = null; + DocumentFulltextResponse response = api.searchFulltext(documentFulltextRequest, siteId, indexName, limit); + // TODO: test validations + } + + /** + * Set document's full-text + * + * Set all text/tags found within a document to OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentFulltextTest() throws ApiException { + String documentId = null; + String siteId = null; + SetDocumentFulltextRequest setDocumentFulltextRequest = null; + SetDocumentFulltextResponse response = api.setDocumentFulltext(documentId, siteId, setDocumentFulltextRequest); + // TODO: test validations + } + + /** + * Update document's full-text + * + * Update a document in OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateDocumentFulltextTest() throws ApiException { + String documentId = null; + String siteId = null; + UpdateDocumentFulltextRequest updateDocumentFulltextRequest = null; + UpdateDocumentFulltextResponse response = api.updateDocumentFulltext(documentId, siteId, updateDocumentFulltextRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/AttributesApiTest.java b/src/test/java/com/formkiq/client/api/AttributesApiTest.java index 25f0cc06d..fb012d0c8 100644 --- a/src/test/java/com/formkiq/client/api/AttributesApiTest.java +++ b/src/test/java/com/formkiq/client/api/AttributesApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -44,98 +37,98 @@ @Disabled public class AttributesApiTest { - private final AttributesApi api = new AttributesApi(); + private final AttributesApi api = new AttributesApi(); - /** - * Add new attribute - * - * Creates a new attribute - * - * @throws ApiException if the Api call fails - */ - @Test - public void addAttributeTest() throws ApiException { - AddAttributeRequest addAttributeRequest = null; - String siteId = null; - AddResponse response = api.addAttribute(addAttributeRequest, siteId); - // TODO: test validations - } + /** + * Add new attribute + * + * Creates a new attribute + * + * @throws ApiException if the Api call fails + */ + @Test + public void addAttributeTest() throws ApiException { + AddAttributeRequest addAttributeRequest = null; + String siteId = null; + AddResponse response = api.addAttribute(addAttributeRequest, siteId); + // TODO: test validations + } - /** - * Delete attribute - * - * Delete a attribute - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteAttributeTest() throws ApiException { - String key = null; - String siteId = null; - DeleteResponse response = api.deleteAttribute(key, siteId); - // TODO: test validations - } + /** + * Delete attribute + * + * Delete a attribute + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteAttributeTest() throws ApiException { + String key = null; + String siteId = null; + DeleteResponse response = api.deleteAttribute(key, siteId); + // TODO: test validations + } - /** - * Get Attribute - * - * Returns a attribute - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAttributeTest() throws ApiException { - String key = null; - String siteId = null; - GetAttributeResponse response = api.getAttribute(key, siteId); - // TODO: test validations - } + /** + * Get Attribute + * + * Returns a attribute + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAttributeTest() throws ApiException { + String key = null; + String siteId = null; + GetAttributeResponse response = api.getAttribute(key, siteId); + // TODO: test validations + } - /** - * Get Attribute Allowed Values - * - * Returns an attribute's allowed values that spans across all classifications and site schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAttributeAllowedValuesTest() throws ApiException { - String key = null; - String siteId = null; - GetAttributeAllowedValuesResponse response = api.getAttributeAllowedValues(key, siteId); - // TODO: test validations - } + /** + * Get Attribute Allowed Values + * + * Returns an attribute's allowed values that spans across all classifications and site schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAttributeAllowedValuesTest() throws ApiException { + String key = null; + String siteId = null; + GetAttributeAllowedValuesResponse response = api.getAttributeAllowedValues(key, siteId); + // TODO: test validations + } - /** - * Get Attributes listing - * - * Returns a list of attributes - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAttributesTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetAttributesResponse response = api.getAttributes(siteId, next, limit); - // TODO: test validations - } + /** + * Get Attributes listing + * + * Returns a list of attributes + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAttributesTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetAttributesResponse response = api.getAttributes(siteId, next, limit); + // TODO: test validations + } - /** - * Update existing attribute - * - * Updates existing attribute - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateAttributeTest() throws ApiException { - String key = null; - UpdateAttributeRequest updateAttributeRequest = null; - String siteId = null; - UpdateResponse response = api.updateAttribute(key, updateAttributeRequest, siteId); - // TODO: test validations - } + /** + * Update existing attribute + * + * Updates existing attribute + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateAttributeTest() throws ApiException { + String key = null; + UpdateAttributeRequest updateAttributeRequest = null; + String siteId = null; + UpdateResponse response = api.updateAttribute(key, updateAttributeRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/CaseManagementApiTest.java b/src/test/java/com/formkiq/client/api/CaseManagementApiTest.java index 153b3d2d6..59a6727a8 100644 --- a/src/test/java/com/formkiq/client/api/CaseManagementApiTest.java +++ b/src/test/java/com/formkiq/client/api/CaseManagementApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -60,352 +53,350 @@ @Disabled public class CaseManagementApiTest { - private final CaseManagementApi api = new CaseManagementApi(); + private final CaseManagementApi api = new CaseManagementApi(); - /** - * Add New Case - * - * Adds new case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addCaseTest() throws ApiException { - AddCaseRequest addCaseRequest = null; - String siteId = null; - AddCaseResponse response = api.addCase(addCaseRequest, siteId); - // TODO: test validations - } + /** + * Add New Case + * + * Adds new case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addCaseTest() throws ApiException { + AddCaseRequest addCaseRequest = null; + String siteId = null; + AddCaseResponse response = api.addCase(addCaseRequest, siteId); + // TODO: test validations + } - /** - * Add New Nigo - * - * Adds new nigo; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addNigoTest() throws ApiException { - String caseId = null; - AddNigoRequest addNigoRequest = null; - String siteId = null; - AddNigoResponse response = api.addNigo(caseId, addNigoRequest, siteId); - // TODO: test validations - } + /** + * Add New Nigo + * + * Adds new nigo; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addNigoTest() throws ApiException { + String caseId = null; + AddNigoRequest addNigoRequest = null; + String siteId = null; + AddNigoResponse response = api.addNigo(caseId, addNigoRequest, siteId); + // TODO: test validations + } - /** - * Add New Task - * - * Adds new task; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addTaskTest() throws ApiException { - String caseId = null; - AddTaskRequest addTaskRequest = null; - String siteId = null; - AddTaskResponse response = api.addTask(caseId, addTaskRequest, siteId); - // TODO: test validations - } + /** + * Add New Task + * + * Adds new task; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addTaskTest() throws ApiException { + String caseId = null; + AddTaskRequest addTaskRequest = null; + String siteId = null; + AddTaskResponse response = api.addTask(caseId, addTaskRequest, siteId); + // TODO: test validations + } - /** - * Delete Case - * - * Delete Case - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteCaseTest() throws ApiException { - String caseId = null; - String siteId = null; - DeleteCaseResponse response = api.deleteCase(caseId, siteId); - // TODO: test validations - } + /** + * Delete Case + * + * Delete Case + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteCaseTest() throws ApiException { + String caseId = null; + String siteId = null; + DeleteCaseResponse response = api.deleteCase(caseId, siteId); + // TODO: test validations + } - /** - * Delete Document from Case - * - * Delete Document from Case - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteCaseDocumentTest() throws ApiException { - String caseId = null; - String documentId = null; - String siteId = null; - DeleteCaseDocumentResponse response = api.deleteCaseDocument(caseId, documentId, siteId); - // TODO: test validations - } + /** + * Delete Document from Case + * + * Delete Document from Case + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteCaseDocumentTest() throws ApiException { + String caseId = null; + String documentId = null; + String siteId = null; + DeleteCaseDocumentResponse response = api.deleteCaseDocument(caseId, documentId, siteId); + // TODO: test validations + } - /** - * Delete Nigo - * - * Delete Nigo - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteNigoTest() throws ApiException { - String caseId = null; - String nigoId = null; - String siteId = null; - DeleteCaseNigoResponse response = api.deleteNigo(caseId, nigoId, siteId); - // TODO: test validations - } + /** + * Delete Nigo + * + * Delete Nigo + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteNigoTest() throws ApiException { + String caseId = null; + String nigoId = null; + String siteId = null; + DeleteCaseNigoResponse response = api.deleteNigo(caseId, nigoId, siteId); + // TODO: test validations + } - /** - * Delete Document from Nigo - * - * Delete Document from Nigo - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteNigoDocumentTest() throws ApiException { - String caseId = null; - String nigoId = null; - String documentId = null; - String siteId = null; - DeleteCaseNigoDocumentResponse response = - api.deleteNigoDocument(caseId, nigoId, documentId, siteId); - // TODO: test validations - } + /** + * Delete Document from Nigo + * + * Delete Document from Nigo + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteNigoDocumentTest() throws ApiException { + String caseId = null; + String nigoId = null; + String documentId = null; + String siteId = null; + DeleteCaseNigoDocumentResponse response = api.deleteNigoDocument(caseId, nigoId, documentId, siteId); + // TODO: test validations + } - /** - * Delete Task - * - * Delete Task - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteTaskTest() throws ApiException { - String caseId = null; - String taskId = null; - String siteId = null; - DeleteCaseTaskResponse response = api.deleteTask(caseId, taskId, siteId); - // TODO: test validations - } + /** + * Delete Task + * + * Delete Task + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteTaskTest() throws ApiException { + String caseId = null; + String taskId = null; + String siteId = null; + DeleteCaseTaskResponse response = api.deleteTask(caseId, taskId, siteId); + // TODO: test validations + } - /** - * Delete Document from Task - * - * Delete Document from Task - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteTaskDocumentTest() throws ApiException { - String caseId = null; - String taskId = null; - String documentId = null; - String siteId = null; - DeleteCaseTaskDocumentResponse response = - api.deleteTaskDocument(caseId, taskId, documentId, siteId); - // TODO: test validations - } + /** + * Delete Document from Task + * + * Delete Document from Task + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteTaskDocumentTest() throws ApiException { + String caseId = null; + String taskId = null; + String documentId = null; + String siteId = null; + DeleteCaseTaskDocumentResponse response = api.deleteTaskDocument(caseId, taskId, documentId, siteId); + // TODO: test validations + } - /** - * Get Case details - * - * Returns a Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseTest() throws ApiException { - String caseId = null; - String siteId = null; - GetCaseResponse response = api.getCase(caseId, siteId); - // TODO: test validations - } + /** + * Get Case details + * + * Returns a Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseTest() throws ApiException { + String caseId = null; + String siteId = null; + GetCaseResponse response = api.getCase(caseId, siteId); + // TODO: test validations + } - /** - * Get list of document in a case - * - * Returns documents in a Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseDocumentsTest() throws ApiException { - String caseId = null; - String siteId = null; - String next = null; - String limit = null; - GetCaseDocumentsResponse response = api.getCaseDocuments(caseId, siteId, next, limit); - // TODO: test validations - } + /** + * Get list of document in a case + * + * Returns documents in a Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseDocumentsTest() throws ApiException { + String caseId = null; + String siteId = null; + String next = null; + String limit = null; + GetCaseDocumentsResponse response = api.getCaseDocuments(caseId, siteId, next, limit); + // TODO: test validations + } - /** - * Get nigo in a case - * - * Returns a Nigo in Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseNigoTest() throws ApiException { - String caseId = null; - String nigoId = null; - String siteId = null; - GetCaseNigoResponse response = api.getCaseNigo(caseId, nigoId, siteId); - // TODO: test validations - } + /** + * Get nigo in a case + * + * Returns a Nigo in Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseNigoTest() throws ApiException { + String caseId = null; + String nigoId = null; + String siteId = null; + GetCaseNigoResponse response = api.getCaseNigo(caseId, nigoId, siteId); + // TODO: test validations + } - /** - * Get list of Nigos in a case - * - * Returns a Nigos of Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseNigosTest() throws ApiException { - String caseId = null; - String siteId = null; - String next = null; - String limit = null; - GetCaseNigosResponse response = api.getCaseNigos(caseId, siteId, next, limit); - // TODO: test validations - } + /** + * Get list of Nigos in a case + * + * Returns a Nigos of Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseNigosTest() throws ApiException { + String caseId = null; + String siteId = null; + String next = null; + String limit = null; + GetCaseNigosResponse response = api.getCaseNigos(caseId, siteId, next, limit); + // TODO: test validations + } - /** - * Get task in a case - * - * Returns a Task in Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseTaskTest() throws ApiException { - String caseId = null; - String taskId = null; - String siteId = null; - GetCaseTaskResponse response = api.getCaseTask(caseId, taskId, siteId); - // TODO: test validations - } + /** + * Get task in a case + * + * Returns a Task in Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseTaskTest() throws ApiException { + String caseId = null; + String taskId = null; + String siteId = null; + GetCaseTaskResponse response = api.getCaseTask(caseId, taskId, siteId); + // TODO: test validations + } - /** - * Get list of tasks in a case - * - * Returns a Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseTasksTest() throws ApiException { - String caseId = null; - String siteId = null; - String next = null; - String limit = null; - GetCaseTasksResponse response = api.getCaseTasks(caseId, siteId, next, limit); - // TODO: test validations - } + /** + * Get list of tasks in a case + * + * Returns a Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseTasksTest() throws ApiException { + String caseId = null; + String siteId = null; + String next = null; + String limit = null; + GetCaseTasksResponse response = api.getCaseTasks(caseId, siteId, next, limit); + // TODO: test validations + } - /** - * Get Case listing - * - * Returns a list of the Cases; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCasesTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetCasesResponse response = api.getCases(siteId, next, limit); - // TODO: test validations - } + /** + * Get Case listing + * + * Returns a list of the Cases; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCasesTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetCasesResponse response = api.getCases(siteId, next, limit); + // TODO: test validations + } - /** - * Get list of document in a task - * - * Returns a list documents in a Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getNigoDocumentsTest() throws ApiException { - String caseId = null; - String nigoId = null; - String siteId = null; - String next = null; - String limit = null; - GetCaseDocumentsResponse response = api.getNigoDocuments(caseId, nigoId, siteId, next, limit); - // TODO: test validations - } + /** + * Get list of document in a task + * + * Returns a list documents in a Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getNigoDocumentsTest() throws ApiException { + String caseId = null; + String nigoId = null; + String siteId = null; + String next = null; + String limit = null; + GetCaseDocumentsResponse response = api.getNigoDocuments(caseId, nigoId, siteId, next, limit); + // TODO: test validations + } - /** - * Get list of document in a task - * - * Returns a list documents in a Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTaskDocumentsTest() throws ApiException { - String caseId = null; - String taskId = null; - String siteId = null; - String next = null; - String limit = null; - GetCaseDocumentsResponse response = api.getTaskDocuments(caseId, taskId, siteId, next, limit); - // TODO: test validations - } + /** + * Get list of document in a task + * + * Returns a list documents in a Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getTaskDocumentsTest() throws ApiException { + String caseId = null; + String taskId = null; + String siteId = null; + String next = null; + String limit = null; + GetCaseDocumentsResponse response = api.getTaskDocuments(caseId, taskId, siteId, next, limit); + // TODO: test validations + } - /** - * Update existing Case - * - * Updates existing case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateCaseTest() throws ApiException { - String caseId = null; - UpdateCaseRequest updateCaseRequest = null; - String siteId = null; - UpdateCaseResponse response = api.updateCase(caseId, updateCaseRequest, siteId); - // TODO: test validations - } + /** + * Update existing Case + * + * Updates existing case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateCaseTest() throws ApiException { + String caseId = null; + UpdateCaseRequest updateCaseRequest = null; + String siteId = null; + UpdateCaseResponse response = api.updateCase(caseId, updateCaseRequest, siteId); + // TODO: test validations + } - /** - * Update existing Nigo - * - * Updates existing nigo; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateNigoTest() throws ApiException { - String caseId = null; - String nigoId = null; - UpdateNigoRequest updateNigoRequest = null; - String siteId = null; - UpdateNigoResponse response = api.updateNigo(caseId, nigoId, updateNigoRequest, siteId); - // TODO: test validations - } + /** + * Update existing Nigo + * + * Updates existing nigo; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateNigoTest() throws ApiException { + String caseId = null; + String nigoId = null; + UpdateNigoRequest updateNigoRequest = null; + String siteId = null; + UpdateNigoResponse response = api.updateNigo(caseId, nigoId, updateNigoRequest, siteId); + // TODO: test validations + } - /** - * Update existing Task - * - * Updates existing task; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateTaskTest() throws ApiException { - String caseId = null; - String taskId = null; - UpdateTaskRequest updateTaskRequest = null; - String siteId = null; - UpdateTaskResponse response = api.updateTask(caseId, taskId, updateTaskRequest, siteId); - // TODO: test validations - } + /** + * Update existing Task + * + * Updates existing task; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateTaskTest() throws ApiException { + String caseId = null; + String taskId = null; + UpdateTaskRequest updateTaskRequest = null; + String siteId = null; + UpdateTaskResponse response = api.updateTask(caseId, taskId, updateTaskRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/CustomIndexApiTest.java b/src/test/java/com/formkiq/client/api/CustomIndexApiTest.java index cc84296bb..71657f485 100644 --- a/src/test/java/com/formkiq/client/api/CustomIndexApiTest.java +++ b/src/test/java/com/formkiq/client/api/CustomIndexApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -41,53 +34,50 @@ @Disabled public class CustomIndexApiTest { - private final CustomIndexApi api = new CustomIndexApi(); + private final CustomIndexApi api = new CustomIndexApi(); - /** - * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, - * you can set the indexKey to a URLEncoded path variable. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteIndexTest() throws ApiException { - String indexKey = null; - String indexType = null; - String siteId = null; - DeleteIndicesResponse response = api.deleteIndex(indexKey, indexType, siteId); - // TODO: test validations - } + /** + * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, you can set the indexKey to a URLEncoded path variable. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteIndexTest() throws ApiException { + String indexKey = null; + String indexType = null; + String siteId = null; + DeleteIndicesResponse response = api.deleteIndex(indexKey, indexType, siteId); + // TODO: test validations + } - /** - * Perform an Folder Index Move - * - * @throws ApiException if the Api call fails - */ - @Test - public void indexFolderMoveTest() throws ApiException { - String indexType = null; - IndexFolderMoveRequest indexFolderMoveRequest = null; - String siteId = null; - IndexFolderMoveResponse response = - api.indexFolderMove(indexType, indexFolderMoveRequest, siteId); - // TODO: test validations - } + /** + * Perform an Folder Index Move + * + * @throws ApiException if the Api call fails + */ + @Test + public void indexFolderMoveTest() throws ApiException { + String indexType = null; + IndexFolderMoveRequest indexFolderMoveRequest = null; + String siteId = null; + IndexFolderMoveResponse response = api.indexFolderMove(indexType, indexFolderMoveRequest, siteId); + // TODO: test validations + } - /** - * Perform a search on a index; this is currently available for both folder and tag indices - * - * @throws ApiException if the Api call fails - */ - @Test - public void indexSearchTest() throws ApiException { - IndexSearchRequest indexSearchRequest = null; - String siteId = null; - String limit = null; - String next = null; - String previous = null; - IndexSearchResponse response = - api.indexSearch(indexSearchRequest, siteId, limit, next, previous); - // TODO: test validations - } + /** + * Perform a search on a index; this is currently available for both folder and tag indices + * + * @throws ApiException if the Api call fails + */ + @Test + public void indexSearchTest() throws ApiException { + IndexSearchRequest indexSearchRequest = null; + String siteId = null; + String limit = null; + String next = null; + String previous = null; + IndexSearchResponse response = api.indexSearch(indexSearchRequest, siteId, limit, next, previous); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentActionsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentActionsApiTest.java index 780218c2b..cb631401f 100644 --- a/src/test/java/com/formkiq/client/api/DocumentActionsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentActionsApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -40,81 +33,55 @@ @Disabled public class DocumentActionsApiTest { - private final DocumentActionsApi api = new DocumentActionsApi(); + private final DocumentActionsApi api = new DocumentActionsApi(); - /** - * Add document action - * - * Add one or more actions to a document; this appends actions and does not replace previous - * actions Each action type supports a different set of parameters as shown in the table below: - * ### Action Parameters | ActionType | Parameter | Description | Example | | -------- | ------- | - * ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | TEXT, FORMS, TABLES, - * QUERIES (requires 'ocrTextractQueries') | | OCR | ocrTextractQueries | Required for - * \"QUERIES\", questions to ask Textract | | OCR | ocrEngine | Ocr Engine to use | - * tesseract or textract | | OCR | ocrOutputType | Convert OCR result to an Output format - * (textract table only) | true | | OCR | ocrNumberOfPages | Number of pages to OCR (from start) | - * -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert images to text | true or - * false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt Entity Name | | FULLTEXT | - * characterMax | Maximum number of characters to add to Fulltext destination | -1 | | - * DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | DOCUMENTTAGGING | tags | - * Comma-deliminted list of keywords | author,title,description | | WEBHOOK | url | Webhook URL | - * https://yourdomain.com/webhook-endpoint | | NOTIFICATION | notificationType | Type of - * Notification | email | | NOTIFICATION | notificationToCc | Notification Carbon Copy | - * email@yourdomain.com | | NOTIFICATION | notificationToBcc | Notification Blind Carbon Copy | - * email@yourdomain.com | | NOTIFICATION | notificationSubject | Notification Subject | Email - * Subject | | NOTIFICATION | notificationText | Notification as Text | Email Text | | - * NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | QUEUE | queueId | - * Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | eventBusName | The name - * or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | width | The width of the - * image to resize (or 'auto'). | | | RESIZE | height | The height of the image to resize - * (or 'auto'). | | | RESIZE | outputType | The output type of the image (optional). | | | - * RESIZE | path | The path to use when creating resized document (optional). | | - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentActionsTest() throws ApiException { - String documentId = null; - String siteId = null; - AddDocumentActionsRequest addDocumentActionsRequest = null; - AddDocumentActionsResponse response = - api.addDocumentActions(documentId, siteId, addDocumentActionsRequest); - // TODO: test validations - } + /** + * Add document action + * + * Add one or more actions to a document; this appends actions and does not replace previous actions Each action type supports a different set of parameters as shown in the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type of the image (optional). | | | RESIZE | path | The path to use when creating resized document (optional). | | + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentActionsTest() throws ApiException { + String documentId = null; + String siteId = null; + AddDocumentActionsRequest addDocumentActionsRequest = null; + AddDocumentActionsResponse response = api.addDocumentActions(documentId, siteId, addDocumentActionsRequest); + // TODO: test validations + } - /** - * Retries failed document action(s) - * - * Retries all failed document action(s). Failed action status changes to - * \"FAILED_RETRY\" and a new \"PENDING\" action is created. - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentRetryActionTest() throws ApiException { - String documentId = null; - String siteId = null; - AddDocumentActionsRetryResponse response = api.addDocumentRetryAction(documentId, siteId); - // TODO: test validations - } + /** + * Retries failed document action(s) + * + * Retries all failed document action(s). Failed action status changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentRetryActionTest() throws ApiException { + String documentId = null; + String siteId = null; + AddDocumentActionsRetryResponse response = api.addDocumentRetryAction(documentId, siteId); + // TODO: test validations + } - /** - * Get document actions - * - * Get document actions and their status - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentActionsTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String shareKey = null; - String next = null; - GetDocumentActionsResponse response = - api.getDocumentActions(documentId, siteId, limit, shareKey, next); - // TODO: test validations - } + /** + * Get document actions + * + * Get document actions and their status + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentActionsTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String shareKey = null; + String next = null; + GetDocumentActionsResponse response = api.getDocumentActions(documentId, siteId, limit, shareKey, next); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentAttributesApiTest.java b/src/test/java/com/formkiq/client/api/DocumentAttributesApiTest.java index 16df76bf7..cc441540f 100644 --- a/src/test/java/com/formkiq/client/api/DocumentAttributesApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentAttributesApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -43,131 +36,121 @@ @Disabled public class DocumentAttributesApiTest { - private final DocumentAttributesApi api = new DocumentAttributesApi(); + private final DocumentAttributesApi api = new DocumentAttributesApi(); - /** - * Add attribute to document - * - * Add multiple attributes to a document; this endpoint also accepts a different body parameter - * for adding a single attribute - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentAttributesTest() throws ApiException { - String documentId = null; - AddDocumentAttributesRequest addDocumentAttributesRequest = null; - String siteId = null; - AddResponse response = - api.addDocumentAttributes(documentId, addDocumentAttributesRequest, siteId); - // TODO: test validations - } + /** + * Add attribute to document + * + * Add multiple attributes to a document; this endpoint also accepts a different body parameter for adding a single attribute + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentAttributesTest() throws ApiException { + String documentId = null; + AddDocumentAttributesRequest addDocumentAttributesRequest = null; + String siteId = null; + AddResponse response = api.addDocumentAttributes(documentId, addDocumentAttributesRequest, siteId); + // TODO: test validations + } - /** - * Delete document attribute - * - * Delete a document attribute by using its key - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentAttributeTest() throws ApiException { - String documentId = null; - String attributeKey = null; - String siteId = null; - DeleteResponse response = api.deleteDocumentAttribute(documentId, attributeKey, siteId); - // TODO: test validations - } + /** + * Delete document attribute + * + * Delete a document attribute by using its key + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentAttributeTest() throws ApiException { + String documentId = null; + String attributeKey = null; + String siteId = null; + DeleteResponse response = api.deleteDocumentAttribute(documentId, attributeKey, siteId); + // TODO: test validations + } - /** - * Delete document's attribute value - * - * Delete a specific document attribute key/value combination; the request will be ignored if - * there is no valid key/value combination found - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentAttributeAndValueTest() throws ApiException { - String documentId = null; - String attributeKey = null; - String attributeValue = null; - String siteId = null; - DeleteResponse response = - api.deleteDocumentAttributeAndValue(documentId, attributeKey, attributeValue, siteId); - // TODO: test validations - } + /** + * Delete document's attribute value + * + * Delete a specific document attribute key/value combination; the request will be ignored if there is no valid key/value combination found + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentAttributeAndValueTest() throws ApiException { + String documentId = null; + String attributeKey = null; + String attributeValue = null; + String siteId = null; + DeleteResponse response = api.deleteDocumentAttributeAndValue(documentId, attributeKey, attributeValue, siteId); + // TODO: test validations + } - /** - * Get document attribute by key - * - * Get a document attribute by using its key - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentAttributeTest() throws ApiException { - String documentId = null; - String attributeKey = null; - String siteId = null; - GetDocumentAttributeResponse response = - api.getDocumentAttribute(documentId, attributeKey, siteId); - // TODO: test validations - } + /** + * Get document attribute by key + * + * Get a document attribute by using its key + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentAttributeTest() throws ApiException { + String documentId = null; + String attributeKey = null; + String siteId = null; + GetDocumentAttributeResponse response = api.getDocumentAttribute(documentId, attributeKey, siteId); + // TODO: test validations + } - /** - * Get document's attributes - * - * Get a listing of a document's attributes - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentAttributesTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String next = null; - GetDocumentAttributesResponse response = - api.getDocumentAttributes(documentId, siteId, limit, next); - // TODO: test validations - } + /** + * Get document's attributes + * + * Get a listing of a document's attributes + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentAttributesTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String next = null; + GetDocumentAttributesResponse response = api.getDocumentAttributes(documentId, siteId, limit, next); + // TODO: test validations + } - /** - * Set document's attributes value - * - * Set attributes value to a document - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentAttributeValueTest() throws ApiException { - String documentId = null; - String attributeKey = null; - SetDocumentAttributeRequest setDocumentAttributeRequest = null; - String siteId = null; - SetResponse response = api.setDocumentAttributeValue(documentId, attributeKey, - setDocumentAttributeRequest, siteId); - // TODO: test validations - } + /** + * Set document's attributes value + * + * Set attributes value to a document + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentAttributeValueTest() throws ApiException { + String documentId = null; + String attributeKey = null; + SetDocumentAttributeRequest setDocumentAttributeRequest = null; + String siteId = null; + SetResponse response = api.setDocumentAttributeValue(documentId, attributeKey, setDocumentAttributeRequest, siteId); + // TODO: test validations + } - /** - * Set document's attributes - * - * Set multiple attributes to a document; this endpoint also accepts a different body parameter - * for setting a single attribute Note: - attributes in the request will overwrite existing - * attributes. - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentAttributesTest() throws ApiException { - String documentId = null; - SetDocumentAttributesRequest setDocumentAttributesRequest = null; - String siteId = null; - SetResponse response = - api.setDocumentAttributes(documentId, setDocumentAttributesRequest, siteId); - // TODO: test validations - } + /** + * Set document's attributes + * + * Set multiple attributes to a document; this endpoint also accepts a different body parameter for setting a single attribute Note: - attributes in the request will overwrite existing attributes. + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentAttributesTest() throws ApiException { + String documentId = null; + SetDocumentAttributesRequest setDocumentAttributesRequest = null; + String siteId = null; + SetResponse response = api.setDocumentAttributes(documentId, setDocumentAttributesRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentDataClassificationApiTest.java b/src/test/java/com/formkiq/client/api/DocumentDataClassificationApiTest.java index 52ad8abcd..b87101a31 100644 --- a/src/test/java/com/formkiq/client/api/DocumentDataClassificationApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentDataClassificationApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,41 +31,39 @@ @Disabled public class DocumentDataClassificationApiTest { - private final DocumentDataClassificationApi api = new DocumentDataClassificationApi(); + private final DocumentDataClassificationApi api = new DocumentDataClassificationApi(); - /** - * Get document's data classification - * - * Retrieve an document's data classification; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentDataClassificationTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String next = null; - GetDocumentDataClassificationResponse response = - api.getDocumentDataClassification(documentId, siteId, limit, next); - // TODO: test validations - } + /** + * Get document's data classification + * + * Retrieve an document's data classification; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentDataClassificationTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String next = null; + GetDocumentDataClassificationResponse response = api.getDocumentDataClassification(documentId, siteId, limit, next); + // TODO: test validations + } - /** - * Set document's data classification - * - * Generate Data Classfication attributes within a document; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentDataClassificationTest() throws ApiException { - String documentId = null; - String siteId = null; - SetDocumentDataClassificationRequest setDocumentDataClassificationRequest = null; - SetDocumentDataClassificationResponse response = - api.setDocumentDataClassification(documentId, siteId, setDocumentDataClassificationRequest); - // TODO: test validations - } + /** + * Set document's data classification + * + * Generate Data Classfication attributes within a document; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentDataClassificationTest() throws ApiException { + String documentId = null; + String siteId = null; + SetDocumentDataClassificationRequest setDocumentDataClassificationRequest = null; + SetDocumentDataClassificationResponse response = api.setDocumentDataClassification(documentId, siteId, setDocumentDataClassificationRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentFoldersApiTest.java b/src/test/java/com/formkiq/client/api/DocumentFoldersApiTest.java index ca0011f35..16284d6a7 100644 --- a/src/test/java/com/formkiq/client/api/DocumentFoldersApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentFoldersApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -42,88 +35,87 @@ @Disabled public class DocumentFoldersApiTest { - private final DocumentFoldersApi api = new DocumentFoldersApi(); + private final DocumentFoldersApi api = new DocumentFoldersApi(); - /** - * Add document folder - * - * Creates a new folder - * - * @throws ApiException if the Api call fails - */ - @Test - public void addFolderTest() throws ApiException { - AddFolderRequest addFolderRequest = null; - String siteId = null; - String shareKey = null; - AddFolderResponse response = api.addFolder(addFolderRequest, siteId, shareKey); - // TODO: test validations - } + /** + * Add document folder + * + * Creates a new folder + * + * @throws ApiException if the Api call fails + */ + @Test + public void addFolderTest() throws ApiException { + AddFolderRequest addFolderRequest = null; + String siteId = null; + String shareKey = null; + AddFolderResponse response = api.addFolder(addFolderRequest, siteId, shareKey); + // TODO: test validations + } - /** - * Delete document folder - * - * Delete a specific folder; folder must be empty - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteFolderTest() throws ApiException { - String indexKey = null; - String siteId = null; - String shareKey = null; - DeleteFolderResponse response = api.deleteFolder(indexKey, siteId, shareKey); - // TODO: test validations - } + /** + * Delete document folder + * + * Delete a specific folder; folder must be empty + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteFolderTest() throws ApiException { + String indexKey = null; + String siteId = null; + String shareKey = null; + DeleteFolderResponse response = api.deleteFolder(indexKey, siteId, shareKey); + // TODO: test validations + } - /** - * Get document folders - * - * Get list of documents in a folder - * - * @throws ApiException if the Api call fails - */ - @Test - public void getFolderDocumentsTest() throws ApiException { - String siteId = null; - String indexKey = null; - String path = null; - String limit = null; - String shareKey = null; - String next = null; - GetFoldersResponse response = - api.getFolderDocuments(siteId, indexKey, path, limit, shareKey, next); - // TODO: test validations - } + /** + * Get document folders + * + * Get list of documents in a folder + * + * @throws ApiException if the Api call fails + */ + @Test + public void getFolderDocumentsTest() throws ApiException { + String siteId = null; + String indexKey = null; + String path = null; + String limit = null; + String shareKey = null; + String next = null; + GetFoldersResponse response = api.getFolderDocuments(siteId, indexKey, path, limit, shareKey, next); + // TODO: test validations + } - /** - * Get folder permissions - * - * Get list of permissions for a folder - * - * @throws ApiException if the Api call fails - */ - @Test - public void getFolderPermissionsTest() throws ApiException { - String indexKey = null; - String siteId = null; - GetFolderPermissionsResponse response = api.getFolderPermissions(indexKey, siteId); - // TODO: test validations - } + /** + * Get folder permissions + * + * Get list of permissions for a folder + * + * @throws ApiException if the Api call fails + */ + @Test + public void getFolderPermissionsTest() throws ApiException { + String indexKey = null; + String siteId = null; + GetFolderPermissionsResponse response = api.getFolderPermissions(indexKey, siteId); + // TODO: test validations + } - /** - * Sets Folder Permissions - * - * Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. - * - * @throws ApiException if the Api call fails - */ - @Test - public void setFolderPermissionsTest() throws ApiException { - SetFolderPermissionsRequest setFolderPermissionsRequest = null; - String siteId = null; - SetResponse response = api.setFolderPermissions(setFolderPermissionsRequest, siteId); - // TODO: test validations - } + /** + * Sets Folder Permissions + * + * Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. + * + * @throws ApiException if the Api call fails + */ + @Test + public void setFolderPermissionsTest() throws ApiException { + SetFolderPermissionsRequest setFolderPermissionsRequest = null; + String siteId = null; + SetResponse response = api.setFolderPermissions(setFolderPermissionsRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentGenerationApiTest.java b/src/test/java/com/formkiq/client/api/DocumentGenerationApiTest.java index 4355a9bab..18911bba8 100644 --- a/src/test/java/com/formkiq/client/api/DocumentGenerationApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentGenerationApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,28 +31,22 @@ @Disabled public class DocumentGenerationApiTest { - private final DocumentGenerationApi api = new DocumentGenerationApi(); - - /** - * Add Document Generate - * - * Generates a new document using a specified template file and data sources. This operation - * allows users to merge data from multiple documents into a template to create a new document in - * the desired output format (e.g., DOCX). By Default data source must include a `data` - * object, which contains key-value pairs that will be merged into the template. The value can be - * any valid JSON object. { \"data\":{}}. The data path can be adjusted via the - * \"dataRoot\" field. ; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentGenerateTest() throws ApiException { - String documentId = null; - AddDocumentGenerateRequest addDocumentGenerateRequest = null; - String siteId = null; - AddDocumentGenerateResponse response = - api.addDocumentGenerate(documentId, addDocumentGenerateRequest, siteId); - // TODO: test validations - } + private final DocumentGenerationApi api = new DocumentGenerationApi(); + + /** + * Add Document Generate + * + * Generates a new document using a specified template file and data sources. This operation allows users to merge data from multiple documents into a template to create a new document in the desired output format (e.g., DOCX). By Default data source must include a `data` object, which contains key-value pairs that will be merged into the template. The value can be any valid JSON object. { \"data\":{}}. The data path can be adjusted via the \"dataRoot\" field. ; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentGenerateTest() throws ApiException { + String documentId = null; + AddDocumentGenerateRequest addDocumentGenerateRequest = null; + String siteId = null; + AddDocumentGenerateResponse response = api.addDocumentGenerate(documentId, addDocumentGenerateRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentOcrApiTest.java b/src/test/java/com/formkiq/client/api/DocumentOcrApiTest.java index c9d78defe..52d782c2a 100644 --- a/src/test/java/com/formkiq/client/api/DocumentOcrApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentOcrApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -40,81 +33,72 @@ @Disabled public class DocumentOcrApiTest { - private final DocumentOcrApi api = new DocumentOcrApi(); + private final DocumentOcrApi api = new DocumentOcrApi(); - /** - * Perform document ocr - * - * Document optical character recognition (OCR) request; extract text and data from a document; - * Tesseract available for all editions, but Textract engine and tables and forms options - * available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentOcrTest() throws ApiException { - String documentId = null; - String siteId = null; - AddDocumentOcrRequest addDocumentOcrRequest = null; - AddDocumentOcrResponse response = api.addDocumentOcr(documentId, siteId, addDocumentOcrRequest); - // TODO: test validations - } + /** + * Perform document ocr + * + * Document optical character recognition (OCR) request; extract text and data from a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentOcrTest() throws ApiException { + String documentId = null; + String siteId = null; + AddDocumentOcrRequest addDocumentOcrRequest = null; + AddDocumentOcrResponse response = api.addDocumentOcr(documentId, siteId, addDocumentOcrRequest); + // TODO: test validations + } - /** - * Delete document ocr - * - * Delete a document's optical character recognition (OCR) result, if exists; Tesseract - * available for all editions, but Textract engine and tables and forms options available as an - * Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentOcrTest() throws ApiException { - String documentId = null; - String siteId = null; - DeleteResponse response = api.deleteDocumentOcr(documentId, siteId); - // TODO: test validations - } + /** + * Delete document ocr + * + * Delete a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentOcrTest() throws ApiException { + String documentId = null; + String siteId = null; + DeleteResponse response = api.deleteDocumentOcr(documentId, siteId); + // TODO: test validations + } - /** - * Get document ocr content - * - * Get a document's optical character recognition (OCR) result, if exists; Tesseract available - * for all editions, but Textract engine and tables and forms options available as an Add-On - * Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentOcrTest() throws ApiException { - String documentId = null; - String siteId = null; - String outputType = null; - String contentUrl = null; - String text = null; - String shareKey = null; - GetDocumentOcrResponse response = - api.getDocumentOcr(documentId, siteId, outputType, contentUrl, text, shareKey); - // TODO: test validations - } + /** + * Get document ocr content + * + * Get a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentOcrTest() throws ApiException { + String documentId = null; + String siteId = null; + String outputType = null; + String contentUrl = null; + String text = null; + String shareKey = null; + GetDocumentOcrResponse response = api.getDocumentOcr(documentId, siteId, outputType, contentUrl, text, shareKey); + // TODO: test validations + } - /** - * Set document ocr result - * - * Set a document's optical character recognition (OCR) result for a document; Tesseract - * available for all editions, but Textract engine and tables and forms options available as an - * Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentOcrTest() throws ApiException { - String documentId = null; - String siteId = null; - SetDocumentOcrRequest setDocumentOcrRequest = null; - AddDocumentOcrResponse response = api.setDocumentOcr(documentId, siteId, setDocumentOcrRequest); - // TODO: test validations - } + /** + * Set document ocr result + * + * Set a document's optical character recognition (OCR) result for a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentOcrTest() throws ApiException { + String documentId = null; + String siteId = null; + SetDocumentOcrRequest setDocumentOcrRequest = null; + AddDocumentOcrResponse response = api.setDocumentOcr(documentId, siteId, setDocumentOcrRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentSearchApiTest.java b/src/test/java/com/formkiq/client/api/DocumentSearchApiTest.java index 25dc1df83..13bed77d0 100644 --- a/src/test/java/com/formkiq/client/api/DocumentSearchApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentSearchApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,32 +30,24 @@ @Disabled public class DocumentSearchApiTest { - private final DocumentSearchApi api = new DocumentSearchApi(); - - /** - * Document search - * - * Document search query request; Supports searching DynamoDB for document(s) by a single TAG key - * and/or value. Value can be \"exacted\" or \"begins_with\" matched. Search - * can be filtered to only check certain documentIds (up to 100 documentIds accepted). If using - * Enteprise Composite Keys feature then multiple tag(s) can be searched for. If Typesense is - * enabled, full text search is supported through the \"text\" parameter. Full text - * search will look for the text in the \"content\" and/or document - * \"metadata\". DocumentIds parameter allows you to filter your results to a specific - * set of documents. See requestBody examples below for commmon examples. - * - * @throws ApiException if the Api call fails - */ - @Test - public void documentSearchTest() throws ApiException { - DocumentSearchRequest documentSearchRequest = null; - String siteId = null; - String limit = null; - String next = null; - String previous = null; - DocumentSearchResponse response = - api.documentSearch(documentSearchRequest, siteId, limit, next, previous); - // TODO: test validations - } + private final DocumentSearchApi api = new DocumentSearchApi(); + + /** + * Document search + * + * Document search query request; Supports searching DynamoDB for document(s) by a single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" matched. Search can be filtered to only check certain documentIds (up to 100 documentIds accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. If Typesense is enabled, full text search is supported through the \"text\" parameter. Full text search will look for the text in the \"content\" and/or document \"metadata\". DocumentIds parameter allows you to filter your results to a specific set of documents. See requestBody examples below for commmon examples. + * + * @throws ApiException if the Api call fails + */ + @Test + public void documentSearchTest() throws ApiException { + DocumentSearchRequest documentSearchRequest = null; + String siteId = null; + String limit = null; + String next = null; + String previous = null; + DocumentSearchResponse response = api.documentSearch(documentSearchRequest, siteId, limit, next, previous); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentSharesApiTest.java b/src/test/java/com/formkiq/client/api/DocumentSharesApiTest.java index 16926c8fa..18eecb8ca 100644 --- a/src/test/java/com/formkiq/client/api/DocumentSharesApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentSharesApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -40,52 +33,52 @@ @Disabled public class DocumentSharesApiTest { - private final DocumentSharesApi api = new DocumentSharesApi(); + private final DocumentSharesApi api = new DocumentSharesApi(); - /** - * Add folder share - * - * Creates a new folder share; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addFolderShareTest() throws ApiException { - String indexKey = null; - AddFolderShareRequest addFolderShareRequest = null; - String siteId = null; - AddFolderShareResponse response = api.addFolderShare(indexKey, addFolderShareRequest, siteId); - // TODO: test validations - } + /** + * Add folder share + * + * Creates a new folder share; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addFolderShareTest() throws ApiException { + String indexKey = null; + AddFolderShareRequest addFolderShareRequest = null; + String siteId = null; + AddFolderShareResponse response = api.addFolderShare(indexKey, addFolderShareRequest, siteId); + // TODO: test validations + } - /** - * Delete folder share - * - * Delete a specific document share; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteShareTest() throws ApiException { - String shareKey = null; - DeleteShareResponse response = api.deleteShare(shareKey); - // TODO: test validations - } + /** + * Delete folder share + * + * Delete a specific document share; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteShareTest() throws ApiException { + String shareKey = null; + DeleteShareResponse response = api.deleteShare(shareKey); + // TODO: test validations + } - /** - * Get user shared folders - * - * Get a listing of user folder/document shares; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUserSharesTest() throws ApiException { - String group = null; - String limit = null; - String next = null; - GetUserSharesResponse response = api.getUserShares(group, limit, next); - // TODO: test validations - } + /** + * Get user shared folders + * + * Get a listing of user folder/document shares; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUserSharesTest() throws ApiException { + String group = null; + String limit = null; + String next = null; + GetUserSharesResponse response = api.getUserShares(group, limit, next); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentTagsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentTagsApiTest.java index 5fb28c865..410229318 100644 --- a/src/test/java/com/formkiq/client/api/DocumentTagsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentTagsApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -43,165 +36,156 @@ @Disabled public class DocumentTagsApiTest { - private final DocumentTagsApi api = new DocumentTagsApi(); - - /** - * Add tag to document - * - * Add multiple tags to a document; this endpoint also accepts a different body parameter for - * adding a single tag - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentTagsTest() throws ApiException { - String documentId = null; - AddDocumentTagsRequest addDocumentTagsRequest = null; - String siteId = null; - AddResponse response = api.addDocumentTags(documentId, addDocumentTagsRequest, siteId); - // TODO: test validations - } - - /** - * Delete document tag - * - * Delete a document tag by using its key - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentTagTest() throws ApiException { - String documentId = null; - String tagKey = null; - String siteId = null; - DeleteResponse response = api.deleteDocumentTag(documentId, tagKey, siteId); - // TODO: test validations - } - - /** - * Delete document's tag value - * - * Delete a specific document tag's key/value combination; the request will be ignored if - * there is no valid key/value combination found - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentTagAndValueTest() throws ApiException { - String documentId = null; - String tagKey = null; - String tagValue = null; - String siteId = null; - String shareKey = null; - DeleteResponse response = - api.deleteDocumentTagAndValue(documentId, tagKey, tagValue, siteId, shareKey); - // TODO: test validations - } - - /** - * Get document tag by key - * - * Get a document tag by using its key - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentTagTest() throws ApiException { - String documentId = null; - String tagKey = null; - String siteId = null; - String shareKey = null; - GetDocumentTagResponse response = api.getDocumentTag(documentId, tagKey, siteId, shareKey); - // TODO: test validations - } - - /** - * Get document's tags - * - * Get a listing of a document's tags - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentTagsTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String shareKey = null; - String next = null; - String previous = null; - GetDocumentTagsResponse response = - api.getDocumentTags(documentId, siteId, limit, shareKey, next, previous); - // TODO: test validations - } - - /** - * Update document tag value(s) - * - * Update any and all values of a document tag, by using its key; you can supply one tag value or - * a list of tag values in the request body - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentTagTest() throws ApiException { - String documentId = null; - String tagKey = null; - SetDocumentTagKeyRequest setDocumentTagKeyRequest = null; - String siteId = null; - api.setDocumentTag(documentId, tagKey, setDocumentTagKeyRequest, siteId); - // TODO: test validations - } - - /** - * Set document's tags - * - * Set multiple tags to a document; this endpoint also accepts a different body parameter for - * setting a single tag - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentTagsTest() throws ApiException { - String documentId = null; - AddDocumentTagsRequest addDocumentTagsRequest = null; - String siteId = null; - api.setDocumentTags(documentId, addDocumentTagsRequest, siteId); - // TODO: test validations - } - - /** - * Update document tags - * - * Updates multiple tags to a document; this endpoint also accepts a different body parameter for - * updating a single tag - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateDocumentTagsTest() throws ApiException { - String documentId = null; - AddDocumentTagsRequest addDocumentTagsRequest = null; - String siteId = null; - api.updateDocumentTags(documentId, addDocumentTagsRequest, siteId); - // TODO: test validations - } - - /** - * Mass Update document tag(s) - * - * This API request allows the adding/updating of multiple document tag(s) based on document(s) - * that have the matching tag. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateMatchingDocumentTagsTest() throws ApiException { - UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest = null; - String siteId = null; - UpdateMatchingDocumentTagsResponse response = - api.updateMatchingDocumentTags(updateMatchingDocumentTagsRequest, siteId); - // TODO: test validations - } + private final DocumentTagsApi api = new DocumentTagsApi(); + + /** + * Add tag to document + * + * Add multiple tags to a document; this endpoint also accepts a different body parameter for adding a single tag + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentTagsTest() throws ApiException { + String documentId = null; + AddDocumentTagsRequest addDocumentTagsRequest = null; + String siteId = null; + AddResponse response = api.addDocumentTags(documentId, addDocumentTagsRequest, siteId); + // TODO: test validations + } + + /** + * Delete document tag + * + * Delete a document tag by using its key + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentTagTest() throws ApiException { + String documentId = null; + String tagKey = null; + String siteId = null; + DeleteResponse response = api.deleteDocumentTag(documentId, tagKey, siteId); + // TODO: test validations + } + + /** + * Delete document's tag value + * + * Delete a specific document tag's key/value combination; the request will be ignored if there is no valid key/value combination found + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentTagAndValueTest() throws ApiException { + String documentId = null; + String tagKey = null; + String tagValue = null; + String siteId = null; + String shareKey = null; + DeleteResponse response = api.deleteDocumentTagAndValue(documentId, tagKey, tagValue, siteId, shareKey); + // TODO: test validations + } + + /** + * Get document tag by key + * + * Get a document tag by using its key + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentTagTest() throws ApiException { + String documentId = null; + String tagKey = null; + String siteId = null; + String shareKey = null; + GetDocumentTagResponse response = api.getDocumentTag(documentId, tagKey, siteId, shareKey); + // TODO: test validations + } + + /** + * Get document's tags + * + * Get a listing of a document's tags + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentTagsTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String shareKey = null; + String next = null; + String previous = null; + GetDocumentTagsResponse response = api.getDocumentTags(documentId, siteId, limit, shareKey, next, previous); + // TODO: test validations + } + + /** + * Update document tag value(s) + * + * Update any and all values of a document tag, by using its key; you can supply one tag value or a list of tag values in the request body + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentTagTest() throws ApiException { + String documentId = null; + String tagKey = null; + SetDocumentTagKeyRequest setDocumentTagKeyRequest = null; + String siteId = null; + api.setDocumentTag(documentId, tagKey, setDocumentTagKeyRequest, siteId); + // TODO: test validations + } + + /** + * Set document's tags + * + * Set multiple tags to a document; this endpoint also accepts a different body parameter for setting a single tag + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentTagsTest() throws ApiException { + String documentId = null; + AddDocumentTagsRequest addDocumentTagsRequest = null; + String siteId = null; + api.setDocumentTags(documentId, addDocumentTagsRequest, siteId); + // TODO: test validations + } + + /** + * Update document tags + * + * Updates multiple tags to a document; this endpoint also accepts a different body parameter for updating a single tag + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateDocumentTagsTest() throws ApiException { + String documentId = null; + AddDocumentTagsRequest addDocumentTagsRequest = null; + String siteId = null; + api.updateDocumentTags(documentId, addDocumentTagsRequest, siteId); + // TODO: test validations + } + + /** + * Mass Update document tag(s) + * + * This API request allows the adding/updating of multiple document tag(s) based on document(s) that have the matching tag. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateMatchingDocumentTagsTest() throws ApiException { + UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest = null; + String siteId = null; + UpdateMatchingDocumentTagsResponse response = api.updateMatchingDocumentTags(updateMatchingDocumentTagsRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentVersionsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentVersionsApiTest.java index 29eb8b495..8531ab450 100644 --- a/src/test/java/com/formkiq/client/api/DocumentVersionsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentVersionsApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -40,59 +33,57 @@ @Disabled public class DocumentVersionsApiTest { - private final DocumentVersionsApi api = new DocumentVersionsApi(); + private final DocumentVersionsApi api = new DocumentVersionsApi(); - /** - * Delete document version - * - * Delete a specific previous document version; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentVersionTest() throws ApiException { - String documentId = null; - String versionKey = null; - String siteId = null; - String shareKey = null; - DeleteResponse response = api.deleteDocumentVersion(documentId, versionKey, siteId, shareKey); - // TODO: test validations - } + /** + * Delete document version + * + * Delete a specific previous document version; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentVersionTest() throws ApiException { + String documentId = null; + String versionKey = null; + String siteId = null; + String shareKey = null; + DeleteResponse response = api.deleteDocumentVersion(documentId, versionKey, siteId, shareKey); + // TODO: test validations + } - /** - * Get document's versions - * - * Get a listing of document content and metadata versions; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentVersionsTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String shareKey = null; - String next = null; - GetDocumentVersionsResponse response = - api.getDocumentVersions(documentId, siteId, limit, shareKey, next); - // TODO: test validations - } + /** + * Get document's versions + * + * Get a listing of document content and metadata versions; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentVersionsTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String shareKey = null; + String next = null; + GetDocumentVersionsResponse response = api.getDocumentVersions(documentId, siteId, limit, shareKey, next); + // TODO: test validations + } - /** - * Set version of document - * - * Set document to a previous document version; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentVersionTest() throws ApiException { - String documentId = null; - SetDocumentVersionRequest setDocumentVersionRequest = null; - String siteId = null; - SetDocumentVersionResponse response = - api.setDocumentVersion(documentId, setDocumentVersionRequest, siteId); - // TODO: test validations - } + /** + * Set version of document + * + * Set document to a previous document version; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentVersionTest() throws ApiException { + String documentId = null; + SetDocumentVersionRequest setDocumentVersionRequest = null; + String siteId = null; + SetDocumentVersionResponse response = api.setDocumentVersion(documentId, setDocumentVersionRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentWorkflowsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentWorkflowsApiTest.java index 935e0c3a0..24c8ee5a8 100644 --- a/src/test/java/com/formkiq/client/api/DocumentWorkflowsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentWorkflowsApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -58,263 +51,259 @@ @Disabled public class DocumentWorkflowsApiTest { - private final DocumentWorkflowsApi api = new DocumentWorkflowsApi(); + private final DocumentWorkflowsApi api = new DocumentWorkflowsApi(); - /** - * Add document workflow - * - * Creates a document workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentWorkflowTest() throws ApiException { - String documentId = null; - AddDocumentWorkflowRequest addDocumentWorkflowRequest = null; - String siteId = null; - AddDocumentWorkflowResponse response = - api.addDocumentWorkflow(documentId, addDocumentWorkflowRequest, siteId); - // TODO: test validations - } + /** + * Add document workflow + * + * Creates a document workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentWorkflowTest() throws ApiException { + String documentId = null; + AddDocumentWorkflowRequest addDocumentWorkflowRequest = null; + String siteId = null; + AddDocumentWorkflowResponse response = api.addDocumentWorkflow(documentId, addDocumentWorkflowRequest, siteId); + // TODO: test validations + } - /** - * Approve/Reject document in approval queue - * - * Approve/Reject document in approval queue; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentWorkflowDecisionsTest() throws ApiException { - String documentId = null; - String workflowId = null; - AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest = null; - String siteId = null; - AddDocumentWorkflowDecisionsResponse response = api.addDocumentWorkflowDecisions(documentId, - workflowId, addDocumentWorkflowDecisionsRequest, siteId); - // TODO: test validations - } + /** + * Approve/Reject document in approval queue + * + * Approve/Reject document in approval queue; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentWorkflowDecisionsTest() throws ApiException { + String documentId = null; + String workflowId = null; + AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest = null; + String siteId = null; + AddDocumentWorkflowDecisionsResponse response = api.addDocumentWorkflowDecisions(documentId, workflowId, addDocumentWorkflowDecisionsRequest, siteId); + // TODO: test validations + } - /** - * Add queue - * - * Creates a new Queue; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addQueueTest() throws ApiException { - AddQueueRequest addQueueRequest = null; - String siteId = null; - AddQueueResponse response = api.addQueue(addQueueRequest, siteId); - // TODO: test validations - } + /** + * Add queue + * + * Creates a new Queue; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addQueueTest() throws ApiException { + AddQueueRequest addQueueRequest = null; + String siteId = null; + AddQueueResponse response = api.addQueue(addQueueRequest, siteId); + // TODO: test validations + } - /** - * Add workflow - * - * Creates a new Workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addWorkflowTest() throws ApiException { - AddWorkflowRequest addWorkflowRequest = null; - String siteId = null; - AddWorkflowResponse response = api.addWorkflow(addWorkflowRequest, siteId); - // TODO: test validations - } + /** + * Add workflow + * + * Creates a new Workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addWorkflowTest() throws ApiException { + AddWorkflowRequest addWorkflowRequest = null; + String siteId = null; + AddWorkflowResponse response = api.addWorkflow(addWorkflowRequest, siteId); + // TODO: test validations + } - /** - * Delete queue - * - * Delete a Queue; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteQueueTest() throws ApiException { - String queueId = null; - String siteId = null; - DeleteQueueResponse response = api.deleteQueue(queueId, siteId); - // TODO: test validations - } + /** + * Delete queue + * + * Delete a Queue; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteQueueTest() throws ApiException { + String queueId = null; + String siteId = null; + DeleteQueueResponse response = api.deleteQueue(queueId, siteId); + // TODO: test validations + } - /** - * Delete workflow - * - * Delete a Workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteWorkflowTest() throws ApiException { - String workflowId = null; - String siteId = null; - DeleteWorkflowResponse response = api.deleteWorkflow(workflowId, siteId); - // TODO: test validations - } + /** + * Delete workflow + * + * Delete a Workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteWorkflowTest() throws ApiException { + String workflowId = null; + String siteId = null; + DeleteWorkflowResponse response = api.deleteWorkflow(workflowId, siteId); + // TODO: test validations + } - /** - * Get document workflow - * - * Gets a document workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentWorkflowTest() throws ApiException { - String documentId = null; - String workflowId = null; - String siteId = null; - GetDocumentWorkflowResponse response = api.getDocumentWorkflow(documentId, workflowId, siteId); - // TODO: test validations - } + /** + * Get document workflow + * + * Gets a document workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentWorkflowTest() throws ApiException { + String documentId = null; + String workflowId = null; + String siteId = null; + GetDocumentWorkflowResponse response = api.getDocumentWorkflow(documentId, workflowId, siteId); + // TODO: test validations + } - /** - * Get document workflows - * - * Gets a document workflows; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentWorkflowsTest() throws ApiException { - String documentId = null; - String siteId = null; - GetDocumentWorkflowsResponse response = api.getDocumentWorkflows(documentId, siteId); - // TODO: test validations - } + /** + * Get document workflows + * + * Gets a document workflows; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentWorkflowsTest() throws ApiException { + String documentId = null; + String siteId = null; + GetDocumentWorkflowsResponse response = api.getDocumentWorkflows(documentId, siteId); + // TODO: test validations + } - /** - * Get queue - * - * Get a queue; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getQueueTest() throws ApiException { - String queueId = null; - String siteId = null; - GetQueueResponse response = api.getQueue(queueId, siteId); - // TODO: test validations - } + /** + * Get queue + * + * Get a queue; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getQueueTest() throws ApiException { + String queueId = null; + String siteId = null; + GetQueueResponse response = api.getQueue(queueId, siteId); + // TODO: test validations + } - /** - * Get queues - * - * Get a listing of queues; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getQueuesTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetQueuesResponse response = api.getQueues(siteId, next, limit); - // TODO: test validations - } + /** + * Get queues + * + * Get a listing of queues; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getQueuesTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetQueuesResponse response = api.getQueues(siteId, next, limit); + // TODO: test validations + } - /** - * Get workflow - * - * Get a workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWorkflowTest() throws ApiException { - String workflowId = null; - String siteId = null; - GetWorkflowResponse response = api.getWorkflow(workflowId, siteId); - // TODO: test validations - } + /** + * Get workflow + * + * Get a workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWorkflowTest() throws ApiException { + String workflowId = null; + String siteId = null; + GetWorkflowResponse response = api.getWorkflow(workflowId, siteId); + // TODO: test validations + } - /** - * Get list of documents in workflow - * - * List documents in Workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWorkflowDocumentsTest() throws ApiException { - String workflowId = null; - String siteId = null; - String limit = null; - String next = null; - GetWorkflowDocumentsResponse response = - api.getWorkflowDocuments(workflowId, siteId, limit, next); - // TODO: test validations - } + /** + * Get list of documents in workflow + * + * List documents in Workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWorkflowDocumentsTest() throws ApiException { + String workflowId = null; + String siteId = null; + String limit = null; + String next = null; + GetWorkflowDocumentsResponse response = api.getWorkflowDocuments(workflowId, siteId, limit, next); + // TODO: test validations + } - /** - * Get list of documents in queue - * - * List documents in Workflow Queue; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWorkflowQueueDocumentsTest() throws ApiException { - String queueId = null; - String siteId = null; - String limit = null; - String next = null; - GetWorkflowQueueDocumentsResponse response = - api.getWorkflowQueueDocuments(queueId, siteId, limit, next); - // TODO: test validations - } + /** + * Get list of documents in queue + * + * List documents in Workflow Queue; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWorkflowQueueDocumentsTest() throws ApiException { + String queueId = null; + String siteId = null; + String limit = null; + String next = null; + GetWorkflowQueueDocumentsResponse response = api.getWorkflowQueueDocuments(queueId, siteId, limit, next); + // TODO: test validations + } - /** - * Get workflows - * - * Get a listing of workflows; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWorkflowsTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - String status = null; - GetWorkflowsResponse response = api.getWorkflows(siteId, next, limit, status); - // TODO: test validations - } + /** + * Get workflows + * + * Get a listing of workflows; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWorkflowsTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + String status = null; + GetWorkflowsResponse response = api.getWorkflows(siteId, next, limit, status); + // TODO: test validations + } - /** - * Set workflow - * - * Set a Workflow details; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setWorkflowTest() throws ApiException { - String workflowId = null; - SetWorkflowRequest setWorkflowRequest = null; - String siteId = null; - SetWorkflowResponse response = api.setWorkflow(workflowId, setWorkflowRequest, siteId); - // TODO: test validations - } + /** + * Set workflow + * + * Set a Workflow details; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setWorkflowTest() throws ApiException { + String workflowId = null; + SetWorkflowRequest setWorkflowRequest = null; + String siteId = null; + SetWorkflowResponse response = api.setWorkflow(workflowId, setWorkflowRequest, siteId); + // TODO: test validations + } - /** - * Update workflow - * - * Update a Workflow details; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateWorkflowTest() throws ApiException { - String workflowId = null; - UpdateWorkflowRequest updateWorkflowRequest = null; - String siteId = null; - UpdateWorkflowResponse response = api.updateWorkflow(workflowId, updateWorkflowRequest, siteId); - // TODO: test validations - } + /** + * Update workflow + * + * Update a Workflow details; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateWorkflowTest() throws ApiException { + String workflowId = null; + UpdateWorkflowRequest updateWorkflowRequest = null; + String siteId = null; + UpdateWorkflowResponse response = api.updateWorkflow(workflowId, updateWorkflowRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentsApiTest.java index d93011927..295019509 100644 --- a/src/test/java/com/formkiq/client/api/DocumentsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentsApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -52,382 +45,341 @@ @Disabled public class DocumentsApiTest { - private final DocumentsApi api = new DocumentsApi(); + private final DocumentsApi api = new DocumentsApi(); - /** - * Add new document - * - * Creates a new document; body may include document content if less than 5 MB. Returns a unique - * **documentId** used in subsequent operations. See POST /documents/{documentId}/tags for adding - * tags to document schema See POST /documents/{documentId}/actions for adding actions to document - * schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentTest() throws ApiException { - AddDocumentRequest addDocumentRequest = null; - String siteId = null; - String shareKey = null; - AddDocumentResponse response = api.addDocument(addDocumentRequest, siteId, shareKey); - // TODO: test validations - } + /** + * Add new document + * + * Creates a new document; body may include document content if less than 5 MB. Returns a unique **documentId** used in subsequent operations. See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentTest() throws ApiException { + AddDocumentRequest addDocumentRequest = null; + String siteId = null; + String shareKey = null; + AddDocumentResponse response = api.addDocument(addDocumentRequest, siteId, shareKey); + // TODO: test validations + } - /** - * Add document sync to service - * - * Add a document to a service - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentSyncTest() throws ApiException { - String documentId = null; - String siteId = null; - AddDocumentSyncRequest addDocumentSyncRequest = null; - AddResponse response = api.addDocumentSync(documentId, siteId, addDocumentSyncRequest); - // TODO: test validations - } + /** + * Add document sync to service + * + * Add a document to a service + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentSyncTest() throws ApiException { + String documentId = null; + String siteId = null; + AddDocumentSyncRequest addDocumentSyncRequest = null; + AddResponse response = api.addDocumentSync(documentId, siteId, addDocumentSyncRequest); + // TODO: test validations + } - /** - * Add large document - * - * Returns a URL that can be used to upload document content and create a new document, while - * allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to - * add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata - * at the same time as the document is created. - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentUploadTest() throws ApiException { - AddDocumentUploadRequest addDocumentUploadRequest = null; - String siteId = null; - Integer contentLength = null; - Integer duration = null; - String shareKey = null; - GetDocumentUrlResponse response = - api.addDocumentUpload(addDocumentUploadRequest, siteId, contentLength, duration, shareKey); - // TODO: test validations - } + /** + * Add large document + * + * Returns a URL that can be used to upload document content and create a new document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata at the same time as the document is created. + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentUploadTest() throws ApiException { + AddDocumentUploadRequest addDocumentUploadRequest = null; + String siteId = null; + Integer contentLength = null; + Integer duration = null; + String shareKey = null; + GetDocumentUrlResponse response = api.addDocumentUpload(addDocumentUploadRequest, siteId, contentLength, duration, shareKey); + // TODO: test validations + } - /** - * Compress multiple documents into a .zip file - * - * Compress documents into an .ZIP archive file, and returns a S3 presigned url for the location - * of the archive file. The operation is async and processing time depends on the number and size - * of documents included; a 404 status code is returned until the file is ready. - * - * @throws ApiException if the Api call fails - */ - @Test - public void compressDocumentsTest() throws ApiException { - DocumentsCompressRequest documentsCompressRequest = null; - String siteId = null; - DocumentsCompressResponse response = api.compressDocuments(documentsCompressRequest, siteId); - // TODO: test validations - } + /** + * Compress multiple documents into a .zip file + * + * Compress documents into an .ZIP archive file, and returns a S3 presigned url for the location of the archive file. The operation is async and processing time depends on the number and size of documents included; a 404 status code is returned until the file is ready. + * + * @throws ApiException if the Api call fails + */ + @Test + public void compressDocumentsTest() throws ApiException { + DocumentsCompressRequest documentsCompressRequest = null; + String siteId = null; + DocumentsCompressResponse response = api.compressDocuments(documentsCompressRequest, siteId); + // TODO: test validations + } - /** - * Delete document - * - * Delete a document's details, i.e., metadata, contents, etc SoftDelete: The SoftDelete - * parameter allows for the temporary removal of a document's metadata, attributes, etc from - * being retrieved from all API requests. The document can be permanently deleted by calling the - * DELETE /documents/{documentId} with softDelete=false or restored using the PUT - * /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the - * soft deleted documents. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentTest() throws ApiException { - String documentId = null; - String siteId = null; - Boolean softDelete = null; - DeleteResponse response = api.deleteDocument(documentId, siteId, softDelete); - // TODO: test validations - } + /** + * Delete document + * + * Delete a document's details, i.e., metadata, contents, etc SoftDelete: The SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, etc from being retrieved from all API requests. The document can be permanently deleted by calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the soft deleted documents. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentTest() throws ApiException { + String documentId = null; + String siteId = null; + Boolean softDelete = null; + DeleteResponse response = api.deleteDocument(documentId, siteId, softDelete); + // TODO: test validations + } - /** - * Delete document legal hold checkout - * - * Removes a legal hold checkout for the document; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentCheckoutLegalHoldTest() throws ApiException { - String documentId = null; - String siteId = null; - DeleteResponse response = api.deleteDocumentCheckoutLegalHold(documentId, siteId); - // TODO: test validations - } + /** + * Delete document legal hold checkout + * + * Removes a legal hold checkout for the document; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentCheckoutLegalHoldTest() throws ApiException { + String documentId = null; + String siteId = null; + DeleteResponse response = api.deleteDocumentCheckoutLegalHold(documentId, siteId); + // TODO: test validations + } - /** - * Delete published document's contents - * - * Delete a published document's contents. Certain content types, text/_*, application/json, - * and application/x-www-form-urlencoded. return the \"content\" field, while all other - * content types return a 'contentUrl' for retrieving the content. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deletePublishedDocumentContentTest() throws ApiException { - String documentId = null; - String siteId = null; - DeleteResponse response = api.deletePublishedDocumentContent(documentId, siteId); - // TODO: test validations - } + /** + * Delete published document's contents + * + * Delete a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deletePublishedDocumentContentTest() throws ApiException { + String documentId = null; + String siteId = null; + DeleteResponse response = api.deletePublishedDocumentContent(documentId, siteId); + // TODO: test validations + } - /** - * Get document - * - * Retrieves a document's details, i.e., metadata - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentTest() throws ApiException { - String documentId = null; - String siteId = null; - String shareKey = null; - GetDocumentResponse response = api.getDocument(documentId, siteId, shareKey); - // TODO: test validations - } + /** + * Get document + * + * Retrieves a document's details, i.e., metadata + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentTest() throws ApiException { + String documentId = null; + String siteId = null; + String shareKey = null; + GetDocumentResponse response = api.getDocument(documentId, siteId, shareKey); + // TODO: test validations + } - /** - * Get document's contents - * - * Retrieves the content of the document with the specified `documentId`. - If the - * content is plain text and under 6 MB, the content will be returned directly. - If the content - * is plain text but exceeds 6 MB, an error will be returned. - For documents not in plain text - * format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended - * to use the `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for - * downloading the content. If the document has a Content-Type of text/, application/json, - * application/x-www-form-urlencoded the content field will be returned. All other Content-Type, - * the contentUrl field will be returned, which is a S3 Presigned url. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentContentTest() throws ApiException { - String documentId = null; - String siteId = null; - String versionKey = null; - String shareKey = null; - GetDocumentContentResponse response = - api.getDocumentContent(documentId, siteId, versionKey, shareKey); - // TODO: test validations - } + /** + * Get document's contents + * + * Retrieves the content of the document with the specified `documentId`. - If the content is plain text and under 6 MB, the content will be returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. - For documents not in plain text format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type of text/, application/json, application/x-www-form-urlencoded the content field will be returned. All other Content-Type, the contentUrl field will be returned, which is a S3 Presigned url. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentContentTest() throws ApiException { + String documentId = null; + String siteId = null; + String versionKey = null; + String shareKey = null; + GetDocumentContentResponse response = api.getDocumentContent(documentId, siteId, versionKey, shareKey); + // TODO: test validations + } - /** - * Get url to update large document - * - * Returns a URL that can be used to upload documents for a specific documentId; this endpoint is - * required in order to add content that is larger than 5 MB. If versions are enabled, this will - * create a new version of the document. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentIdUploadTest() throws ApiException { - String documentId = null; - String siteId = null; - String checksumType = null; - String checksum = null; - Integer contentLength = null; - Integer duration = null; - String shareKey = null; - GetDocumentUrlResponse response = api.getDocumentIdUpload(documentId, siteId, checksumType, - checksum, contentLength, duration, shareKey); - // TODO: test validations - } + /** + * Get url to update large document + * + * Returns a URL that can be used to upload documents for a specific documentId; this endpoint is required in order to add content that is larger than 5 MB. If versions are enabled, this will create a new version of the document. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentIdUploadTest() throws ApiException { + String documentId = null; + String siteId = null; + String checksumType = null; + String checksum = null; + Integer contentLength = null; + Integer duration = null; + String shareKey = null; + GetDocumentUrlResponse response = api.getDocumentIdUpload(documentId, siteId, checksumType, checksum, contentLength, duration, shareKey); + // TODO: test validations + } - /** - * Get document syncs - * - * Retrieve the document syncs with external services status - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentSyncsTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String shareKey = null; - GetDocumentSyncResponse response = api.getDocumentSyncs(documentId, siteId, limit, shareKey); - // TODO: test validations - } + /** + * Get document syncs + * + * Retrieve the document syncs with external services status + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentSyncsTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String shareKey = null; + GetDocumentSyncResponse response = api.getDocumentSyncs(documentId, siteId, limit, shareKey); + // TODO: test validations + } - /** - * Get url to add large document - * - * Returns a URL that can be used to upload document content and create a new document; this - * endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentUploadTest() throws ApiException { - String path = null; - String siteId = null; - String checksumType = null; - String checksum = null; - Integer contentLength = null; - Integer duration = null; - String shareKey = null; - GetDocumentUrlResponse response = api.getDocumentUpload(path, siteId, checksumType, checksum, - contentLength, duration, shareKey); - // TODO: test validations - } + /** + * Get url to add large document + * + * Returns a URL that can be used to upload document content and create a new document; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentUploadTest() throws ApiException { + String path = null; + String siteId = null; + String checksumType = null; + String checksum = null; + Integer contentLength = null; + Integer duration = null; + String shareKey = null; + GetDocumentUrlResponse response = api.getDocumentUpload(path, siteId, checksumType, checksum, contentLength, duration, shareKey); + // TODO: test validations + } - /** - * Get document content url - * - * Returns a URL for the document's contents; this URL will expire (the default is 48 hours) - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentUrlTest() throws ApiException { - String documentId = null; - String siteId = null; - String versionKey = null; - Integer duration = null; - String shareKey = null; - Boolean inline = null; - Boolean bypassWatermark = null; - GetDocumentUrlResponse response = api.getDocumentUrl(documentId, siteId, versionKey, duration, - shareKey, inline, bypassWatermark); - // TODO: test validations - } + /** + * Get document content url + * + * Returns a URL for the document's contents; this URL will expire (the default is 48 hours) + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentUrlTest() throws ApiException { + String documentId = null; + String siteId = null; + String versionKey = null; + Integer duration = null; + String shareKey = null; + Boolean inline = null; + Boolean bypassWatermark = null; + GetDocumentUrlResponse response = api.getDocumentUrl(documentId, siteId, versionKey, duration, shareKey, inline, bypassWatermark); + // TODO: test validations + } - /** - * Get Documents listing - * - * Returns a list of the most recent documents added, ordered by inserted, descending - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentsTest() throws ApiException { - String siteId = null; - String actionStatus = null; - String syncStatus = null; - Boolean deleted = null; - String date = null; - String tz = null; - String next = null; - String previous = null; - String limit = null; - GetDocumentsResponse response = api.getDocuments(siteId, actionStatus, syncStatus, deleted, - date, tz, next, previous, limit); - // TODO: test validations - } + /** + * Get Documents listing + * + * Returns a list of the most recent documents added, ordered by inserted, descending + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentsTest() throws ApiException { + String siteId = null; + String actionStatus = null; + String syncStatus = null; + Boolean deleted = null; + String date = null; + String tz = null; + String next = null; + String previous = null; + String limit = null; + GetDocumentsResponse response = api.getDocuments(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit); + // TODO: test validations + } - /** - * Get published document's contents - * - * Get a published document's contents. Certain content types, text/_*, application/json, and - * application/x-www-form-urlencoded. return the \"content\" field, while all other - * content types return a 'contentUrl' for retrieving the content. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getPublishedDocumentContentTest() throws ApiException { - String documentId = null; - String siteId = null; - api.getPublishedDocumentContent(documentId, siteId); - // TODO: test validations - } + /** + * Get published document's contents + * + * Get a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getPublishedDocumentContentTest() throws ApiException { + String documentId = null; + String siteId = null; + api.getPublishedDocumentContent(documentId, siteId); + // TODO: test validations + } - /** - * Purge document - * - * Remove all objects from the S3 bucket, including previous versions and current version, and - * should remove all metadata as well, so that no trace of the document exists outside of the - * audit logs and any backups. Can only be called be ADMIN or GOVERN. - * - * @throws ApiException if the Api call fails - */ - @Test - public void purgeDocumentTest() throws ApiException { - String documentId = null; - String siteId = null; - DeleteResponse response = api.purgeDocument(documentId, siteId); - // TODO: test validations - } + /** + * Purge document + * + * Remove all objects from the S3 bucket, including previous versions and current version, and should remove all metadata as well, so that no trace of the document exists outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. + * + * @throws ApiException if the Api call fails + */ + @Test + public void purgeDocumentTest() throws ApiException { + String documentId = null; + String siteId = null; + DeleteResponse response = api.purgeDocument(documentId, siteId); + // TODO: test validations + } - /** - * Perform document checkout - * - * Creates a checkout for the document. Fails with **409 Conflict** if the document is already - * checkedout by another user; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentCheckoutTest() throws ApiException { - String documentId = null; - String siteId = null; - SetResponse response = api.setDocumentCheckout(documentId, siteId); - // TODO: test validations - } + /** + * Perform document checkout + * + * Creates a checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentCheckoutTest() throws ApiException { + String documentId = null; + String siteId = null; + SetResponse response = api.setDocumentCheckout(documentId, siteId); + // TODO: test validations + } - /** - * Perform document legal hold checkout - * - * Creates a legal hold checkout for the document. Fails with **409 Conflict** if the document is - * already checkedout by another user; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentCheckoutLegalHoldTest() throws ApiException { - String documentId = null; - String siteId = null; - SetResponse response = api.setDocumentCheckoutLegalHold(documentId, siteId); - // TODO: test validations - } + /** + * Perform document legal hold checkout + * + * Creates a legal hold checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentCheckoutLegalHoldTest() throws ApiException { + String documentId = null; + String siteId = null; + SetResponse response = api.setDocumentCheckoutLegalHold(documentId, siteId); + // TODO: test validations + } - /** - * Restore soft deleted document - * - * Restores a soft deleted document - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentRestoreTest() throws ApiException { - String documentId = null; - String siteId = null; - SetDocumentRestoreResponse response = api.setDocumentRestore(documentId, siteId); - // TODO: test validations - } + /** + * Restore soft deleted document + * + * Restores a soft deleted document + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentRestoreTest() throws ApiException { + String documentId = null; + String siteId = null; + SetDocumentRestoreResponse response = api.setDocumentRestore(documentId, siteId); + // TODO: test validations + } - /** - * Update document - * - * Update a document's details, i.e., metadata If no content is specified, the endpoint will - * return a S3 Presigned that will allow for the uploading of Large document data. NOTE: - - * provided attributes will overwrite existing matching attribute keys in the document. Attributes - * not included in the request body will remain unchanged. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateDocumentTest() throws ApiException { - String documentId = null; - UpdateDocumentRequest updateDocumentRequest = null; - String siteId = null; - String shareKey = null; - AddDocumentResponse response = - api.updateDocument(documentId, updateDocumentRequest, siteId, shareKey); - // TODO: test validations - } + /** + * Update document + * + * Update a document's details, i.e., metadata If no content is specified, the endpoint will return a S3 Presigned that will allow for the uploading of Large document data. NOTE: - provided attributes will overwrite existing matching attribute keys in the document. Attributes not included in the request body will remain unchanged. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateDocumentTest() throws ApiException { + String documentId = null; + UpdateDocumentRequest updateDocumentRequest = null; + String siteId = null; + String shareKey = null; + AddDocumentResponse response = api.updateDocument(documentId, updateDocumentRequest, siteId, shareKey); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/ESignatureApiTest.java b/src/test/java/com/formkiq/client/api/ESignatureApiTest.java index 75a8d7366..869e652b7 100644 --- a/src/test/java/com/formkiq/client/api/ESignatureApiTest.java +++ b/src/test/java/com/formkiq/client/api/ESignatureApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -41,54 +34,52 @@ @Disabled public class ESignatureApiTest { - private final ESignatureApi api = new ESignatureApi(); + private final ESignatureApi api = new ESignatureApi(); - /** - * Create Docusign Envelope request - * - * DocuSign create Docusign Envelope request; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocusignEnvelopesTest() throws ApiException { - String documentId = null; - AddDocusignEnvelopesRequest addDocusignEnvelopesRequest = null; - String siteId = null; - AddDocusignEnvelopesResponse response = - api.addDocusignEnvelopes(documentId, addDocusignEnvelopesRequest, siteId); - // TODO: test validations - } + /** + * Create Docusign Envelope request + * + * DocuSign create Docusign Envelope request; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocusignEnvelopesTest() throws ApiException { + String documentId = null; + AddDocusignEnvelopesRequest addDocusignEnvelopesRequest = null; + String siteId = null; + AddDocusignEnvelopesResponse response = api.addDocusignEnvelopes(documentId, addDocusignEnvelopesRequest, siteId); + // TODO: test validations + } - /** - * Create Docusign Recipient View request - * - * DocuSign create Docusign Recipient View request; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocusignRecipientViewTest() throws ApiException { - String documentId = null; - String envelopeId = null; - AddDocusignRecipientViewRequest addDocusignRecipientViewRequest = null; - String siteId = null; - AddDocusignRecipientViewResponse response = api.addDocusignRecipientView(documentId, envelopeId, - addDocusignRecipientViewRequest, siteId); - // TODO: test validations - } + /** + * Create Docusign Recipient View request + * + * DocuSign create Docusign Recipient View request; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocusignRecipientViewTest() throws ApiException { + String documentId = null; + String envelopeId = null; + AddDocusignRecipientViewRequest addDocusignRecipientViewRequest = null; + String siteId = null; + AddDocusignRecipientViewResponse response = api.addDocusignRecipientView(documentId, envelopeId, addDocusignRecipientViewRequest, siteId); + // TODO: test validations + } - /** - * Add E-signature event - * - * DocuSign callback URL handler; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addEsignatureDocusignEventsTest() throws ApiException { - AddResponse response = api.addEsignatureDocusignEvents(); - // TODO: test validations - } + /** + * Add E-signature event + * + * DocuSign callback URL handler; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addEsignatureDocusignEventsTest() throws ApiException { + AddResponse response = api.addEsignatureDocusignEvents(); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/EntityApiTest.java b/src/test/java/com/formkiq/client/api/EntityApiTest.java index cb39f8e12..9a628d9dd 100644 --- a/src/test/java/com/formkiq/client/api/EntityApiTest.java +++ b/src/test/java/com/formkiq/client/api/EntityApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -47,156 +40,155 @@ @Disabled public class EntityApiTest { - private final EntityApi api = new EntityApi(); - - /** - * Add New Entity - * - * Creates a Entity - * - * @throws ApiException if the Api call fails - */ - @Test - public void addEntityTest() throws ApiException { - String entityTypeId = null; - AddEntityRequest addEntityRequest = null; - String siteId = null; - String namespace = null; - AddEntityResponse response = api.addEntity(entityTypeId, addEntityRequest, siteId, namespace); - // TODO: test validations - } - - /** - * Add New EntityType - * - * Creates a Entity Type - * - * @throws ApiException if the Api call fails - */ - @Test - public void addEntityTypeTest() throws ApiException { - AddEntityTypeRequest addEntityTypeRequest = null; - String siteId = null; - AddEntityTypeResponse response = api.addEntityType(addEntityTypeRequest, siteId); - // TODO: test validations - } - - /** - * Deletes Entity - * - * Deletes Entity - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteEntityTest() throws ApiException { - String entityTypeId = null; - String entityId = null; - String siteId = null; - DeleteResponse response = api.deleteEntity(entityTypeId, entityId, siteId); - // TODO: test validations - } - - /** - * Deletes Entity Type - * - * Deletes Entity Type - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteEntityTypeTest() throws ApiException { - String entityTypeId = null; - String siteId = null; - DeleteResponse response = api.deleteEntityType(entityTypeId, siteId); - // TODO: test validations - } - - /** - * Get Entities - * - * Returns a list of entities - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEntitiesTest() throws ApiException { - String entityTypeId = null; - String siteId = null; - String namespace = null; - String next = null; - String limit = null; - GetEntitiesResponse response = api.getEntities(entityTypeId, siteId, namespace, next, limit); - // TODO: test validations - } - - /** - * Get Entity - * - * Returns a entity - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEntityTest() throws ApiException { - String entityTypeId = null; - String entityId = null; - String siteId = null; - String namespace = null; - GetEntityResponse response = api.getEntity(entityTypeId, entityId, siteId, namespace); - // TODO: test validations - } - - /** - * Get EntityType - * - * Returns a entity type - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEntityTypeTest() throws ApiException { - String entityTypeId = null; - String siteId = null; - String namespace = null; - GetEntityTypeResponse response = api.getEntityType(entityTypeId, siteId, namespace); - // TODO: test validations - } - - /** - * Get EntityTypes - * - * Returns a list of entity types - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEntityTypesTest() throws ApiException { - String siteId = null; - String namespace = null; - String next = null; - String limit = null; - GetEntityTypesResponse response = api.getEntityTypes(siteId, namespace, next, limit); - // TODO: test validations - } - - /** - * Update Entity - * - * Updates a Entity - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateEntityTest() throws ApiException { - String entityTypeId = null; - String entityId = null; - UpdateEntityRequest updateEntityRequest = null; - String siteId = null; - String namespace = null; - UpdateResponse response = - api.updateEntity(entityTypeId, entityId, updateEntityRequest, siteId, namespace); - // TODO: test validations - } + private final EntityApi api = new EntityApi(); + + /** + * Add New Entity + * + * Creates a Entity + * + * @throws ApiException if the Api call fails + */ + @Test + public void addEntityTest() throws ApiException { + String entityTypeId = null; + AddEntityRequest addEntityRequest = null; + String siteId = null; + String namespace = null; + AddEntityResponse response = api.addEntity(entityTypeId, addEntityRequest, siteId, namespace); + // TODO: test validations + } + + /** + * Add New EntityType + * + * Creates a Entity Type + * + * @throws ApiException if the Api call fails + */ + @Test + public void addEntityTypeTest() throws ApiException { + AddEntityTypeRequest addEntityTypeRequest = null; + String siteId = null; + AddEntityTypeResponse response = api.addEntityType(addEntityTypeRequest, siteId); + // TODO: test validations + } + + /** + * Deletes Entity + * + * Deletes Entity + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteEntityTest() throws ApiException { + String entityTypeId = null; + String entityId = null; + String siteId = null; + DeleteResponse response = api.deleteEntity(entityTypeId, entityId, siteId); + // TODO: test validations + } + + /** + * Deletes Entity Type + * + * Deletes Entity Type + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteEntityTypeTest() throws ApiException { + String entityTypeId = null; + String siteId = null; + DeleteResponse response = api.deleteEntityType(entityTypeId, siteId); + // TODO: test validations + } + + /** + * Get Entities + * + * Returns a list of entities + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEntitiesTest() throws ApiException { + String entityTypeId = null; + String siteId = null; + String namespace = null; + String next = null; + String limit = null; + GetEntitiesResponse response = api.getEntities(entityTypeId, siteId, namespace, next, limit); + // TODO: test validations + } + + /** + * Get Entity + * + * Returns a entity + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEntityTest() throws ApiException { + String entityTypeId = null; + String entityId = null; + String siteId = null; + String namespace = null; + GetEntityResponse response = api.getEntity(entityTypeId, entityId, siteId, namespace); + // TODO: test validations + } + + /** + * Get EntityType + * + * Returns a entity type + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEntityTypeTest() throws ApiException { + String entityTypeId = null; + String siteId = null; + String namespace = null; + GetEntityTypeResponse response = api.getEntityType(entityTypeId, siteId, namespace); + // TODO: test validations + } + + /** + * Get EntityTypes + * + * Returns a list of entity types + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEntityTypesTest() throws ApiException { + String siteId = null; + String namespace = null; + String next = null; + String limit = null; + GetEntityTypesResponse response = api.getEntityTypes(siteId, namespace, next, limit); + // TODO: test validations + } + + /** + * Update Entity + * + * Updates a Entity + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateEntityTest() throws ApiException { + String entityTypeId = null; + String entityId = null; + UpdateEntityRequest updateEntityRequest = null; + String siteId = null; + String namespace = null; + UpdateResponse response = api.updateEntity(entityTypeId, entityId, updateEntityRequest, siteId, namespace); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/ExamineObjectsApiTest.java b/src/test/java/com/formkiq/client/api/ExamineObjectsApiTest.java index 08dc04f41..12541ee5b 100644 --- a/src/test/java/com/formkiq/client/api/ExamineObjectsApiTest.java +++ b/src/test/java/com/formkiq/client/api/ExamineObjectsApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,36 +30,35 @@ @Disabled public class ExamineObjectsApiTest { - private final ExamineObjectsApi api = new ExamineObjectsApi(); + private final ExamineObjectsApi api = new ExamineObjectsApi(); - /** - * Add Examine Pdf - * - * Get PDF details File must have been uploaded previously using the GET /objects/examine/pdf API. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getExaminePdfTest() throws ApiException { - String id = null; - String siteId = null; - GetExaminePdfResponse response = api.getExaminePdf(id, siteId); - // TODO: test validations - } + /** + * Add Examine Pdf + * + * Get PDF details File must have been uploaded previously using the GET /objects/examine/pdf API. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getExaminePdfTest() throws ApiException { + String id = null; + String siteId = null; + GetExaminePdfResponse response = api.getExaminePdf(id, siteId); + // TODO: test validations + } - /** - * Add Examine Pdf - * - * Get Signed URL for PDF Object Upload of a document to be examined by calling GET - * /objects/examine/{id}/pdf - * - * @throws ApiException if the Api call fails - */ - @Test - public void getExaminePdfUrlTest() throws ApiException { - String siteId = null; - GetExaminePdfUrlResponse response = api.getExaminePdfUrl(siteId); - // TODO: test validations - } + /** + * Add Examine Pdf + * + * Get Signed URL for PDF Object Upload of a document to be examined by calling GET /objects/examine/{id}/pdf + * + * @throws ApiException if the Api call fails + */ + @Test + public void getExaminePdfUrlTest() throws ApiException { + String siteId = null; + GetExaminePdfUrlResponse response = api.getExaminePdfUrl(siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/GoogleIntegrationApiTest.java b/src/test/java/com/formkiq/client/api/GoogleIntegrationApiTest.java index 2d33e2e79..34538b175 100644 --- a/src/test/java/com/formkiq/client/api/GoogleIntegrationApiTest.java +++ b/src/test/java/com/formkiq/client/api/GoogleIntegrationApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,23 +31,22 @@ @Disabled public class GoogleIntegrationApiTest { - private final GoogleIntegrationApi api = new GoogleIntegrationApi(); - - /** - * Add Google Document Export - * - * Exports a Google Document; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addGoogleDocumentExportTest() throws ApiException { - String documentId = null; - AddGoogleDocumentExportRequest addGoogleDocumentExportRequest = null; - String siteId = null; - AddGoogleDocumentExportResponse response = - api.addGoogleDocumentExport(documentId, addGoogleDocumentExportRequest, siteId); - // TODO: test validations - } + private final GoogleIntegrationApi api = new GoogleIntegrationApi(); + + /** + * Add Google Document Export + * + * Exports a Google Document; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addGoogleDocumentExportTest() throws ApiException { + String documentId = null; + AddGoogleDocumentExportRequest addGoogleDocumentExportRequest = null; + String siteId = null; + AddGoogleDocumentExportResponse response = api.addGoogleDocumentExport(documentId, addGoogleDocumentExportRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/MalwareScanApiTest.java b/src/test/java/com/formkiq/client/api/MalwareScanApiTest.java index f4e4edb07..5d8280c71 100644 --- a/src/test/java/com/formkiq/client/api/MalwareScanApiTest.java +++ b/src/test/java/com/formkiq/client/api/MalwareScanApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,58 +31,56 @@ @Disabled public class MalwareScanApiTest { - private final MalwareScanApi api = new MalwareScanApi(); + private final MalwareScanApi api = new MalwareScanApi(); - /** - * Get Malware Scan results - * - * Gets a Malware Scan results; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getMalwareScanResultsTest() throws ApiException { - String documentId = null; - String siteId = null; - String next = null; - String limit = null; - GetMalwareScanResponse response = api.getMalwareScanResults(documentId, siteId, next, limit); - // TODO: test validations - } + /** + * Get Malware Scan results + * + * Gets a Malware Scan results; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getMalwareScanResultsTest() throws ApiException { + String documentId = null; + String siteId = null; + String next = null; + String limit = null; + GetMalwareScanResponse response = api.getMalwareScanResults(documentId, siteId, next, limit); + // TODO: test validations + } - /** - * Antivirus document scan - * - * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module - * **Deprecated**. This endpoint is no longer recommended. Please use the - * **`/documents/{document}/malwareScan`** endpoint instead. - * - * @throws ApiException if the Api call fails - */ - @Test - public void setAntivirusTest() throws ApiException { - String documentId = null; - String siteId = null; - String shareKey = null; - Object body = null; - SetResponse response = api.setAntivirus(documentId, siteId, shareKey, body); - // TODO: test validations - } + /** + * Antivirus document scan + * + * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the **`/documents/{document}/malwareScan`** endpoint instead. + * + * @throws ApiException if the Api call fails + */ + @Test + public void setAntivirusTest() throws ApiException { + String documentId = null; + String siteId = null; + String shareKey = null; + Object body = null; + SetResponse response = api.setAntivirus(documentId, siteId, shareKey, body); + // TODO: test validations + } - /** - * MalwareScan document scan - * - * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setMalwareScanTest() throws ApiException { - String documentId = null; - String siteId = null; - Object body = null; - SetResponse response = api.setMalwareScan(documentId, siteId, body); - // TODO: test validations - } + /** + * MalwareScan document scan + * + * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setMalwareScanTest() throws ApiException { + String documentId = null; + String siteId = null; + Object body = null; + SetResponse response = api.setMalwareScan(documentId, siteId, body); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/MappingsApiTest.java b/src/test/java/com/formkiq/client/api/MappingsApiTest.java index 11758bbab..fbf290470 100644 --- a/src/test/java/com/formkiq/client/api/MappingsApiTest.java +++ b/src/test/java/com/formkiq/client/api/MappingsApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -43,83 +36,83 @@ @Disabled public class MappingsApiTest { - private final MappingsApi api = new MappingsApi(); + private final MappingsApi api = new MappingsApi(); - /** - * Add New Mapping - * - * Creates a new mapping; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addMappingTest() throws ApiException { - AddMappingRequest addMappingRequest = null; - String siteId = null; - AddMappingResponse response = api.addMapping(addMappingRequest, siteId); - // TODO: test validations - } + /** + * Add New Mapping + * + * Creates a new mapping; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addMappingTest() throws ApiException { + AddMappingRequest addMappingRequest = null; + String siteId = null; + AddMappingResponse response = api.addMapping(addMappingRequest, siteId); + // TODO: test validations + } - /** - * Delete Mapping - * - * Delete Mapping; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteMappingTest() throws ApiException { - String mappingId = null; - String siteId = null; - DeleteResponse response = api.deleteMapping(mappingId, siteId); - // TODO: test validations - } + /** + * Delete Mapping + * + * Delete Mapping; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteMappingTest() throws ApiException { + String mappingId = null; + String siteId = null; + DeleteResponse response = api.deleteMapping(mappingId, siteId); + // TODO: test validations + } - /** - * Get Mapping - * - * Get a mapping; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getMappingTest() throws ApiException { - String mappingId = null; - String siteId = null; - GetMappingResponse response = api.getMapping(mappingId, siteId); - // TODO: test validations - } + /** + * Get Mapping + * + * Get a mapping; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getMappingTest() throws ApiException { + String mappingId = null; + String siteId = null; + GetMappingResponse response = api.getMapping(mappingId, siteId); + // TODO: test validations + } - /** - * Get Mappings - * - * Returns a list of mappings; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getMappingsTest() throws ApiException { - String siteId = null; - String limit = null; - String next = null; - GetMappingsResponse response = api.getMappings(siteId, limit, next); - // TODO: test validations - } + /** + * Get Mappings + * + * Returns a list of mappings; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getMappingsTest() throws ApiException { + String siteId = null; + String limit = null; + String next = null; + GetMappingsResponse response = api.getMappings(siteId, limit, next); + // TODO: test validations + } - /** - * Set Mapping - * - * Sets an mapping; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setMappingTest() throws ApiException { - String mappingId = null; - SetMappingRequest setMappingRequest = null; - String siteId = null; - SetResponse response = api.setMapping(mappingId, setMappingRequest, siteId); - // TODO: test validations - } + /** + * Set Mapping + * + * Sets an mapping; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setMappingTest() throws ApiException { + String mappingId = null; + SetMappingRequest setMappingRequest = null; + String siteId = null; + SetResponse response = api.setMapping(mappingId, setMappingRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/PublicApiTest.java b/src/test/java/com/formkiq/client/api/PublicApiTest.java index c49f7b84c..a06c6e88e 100644 --- a/src/test/java/com/formkiq/client/api/PublicApiTest.java +++ b/src/test/java/com/formkiq/client/api/PublicApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,40 +31,37 @@ @Disabled public class PublicApiTest { - private final PublicApi api = new PublicApi(); + private final PublicApi api = new PublicApi(); - /** - * Public add document - * - * Allow unauthenticated creation of new documents; must be enabled during installation (disabled - * by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST - * /documents/{documentId}/actions for adding actions to document schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void publicAddDocumentTest() throws ApiException { - AddDocumentRequest addDocumentRequest = null; - String siteId = null; - AddDocumentResponse response = api.publicAddDocument(addDocumentRequest, siteId); - // TODO: test validations - } + /** + * Public add document + * + * Allow unauthenticated creation of new documents; must be enabled during installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void publicAddDocumentTest() throws ApiException { + AddDocumentRequest addDocumentRequest = null; + String siteId = null; + AddDocumentResponse response = api.publicAddDocument(addDocumentRequest, siteId); + // TODO: test validations + } - /** - * Public add webhook - * - * Receive an incoming public post to a specified webhook and creates a document based on the data - * sent; must be enabled during installation (disabled by default) - * - * @throws ApiException if the Api call fails - */ - @Test - public void publicAddWebhookTest() throws ApiException { - String webhooksPlus = null; - Object body = null; - String siteId = null; - DocumentId response = api.publicAddWebhook(webhooksPlus, body, siteId); - // TODO: test validations - } + /** + * Public add webhook + * + * Receive an incoming public post to a specified webhook and creates a document based on the data sent; must be enabled during installation (disabled by default) + * + * @throws ApiException if the Api call fails + */ + @Test + public void publicAddWebhookTest() throws ApiException { + String webhooksPlus = null; + Object body = null; + String siteId = null; + DocumentId response = api.publicAddWebhook(webhooksPlus, body, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/ReindexApiTest.java b/src/test/java/com/formkiq/client/api/ReindexApiTest.java index ae1dea675..7ab534e05 100644 --- a/src/test/java/com/formkiq/client/api/ReindexApiTest.java +++ b/src/test/java/com/formkiq/client/api/ReindexApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,24 +31,22 @@ @Disabled public class ReindexApiTest { - private final ReindexApi api = new ReindexApi(); - - /** - * Reindex metadata on a document - * - * The API allows for the reindexing of a document's metadata determined by the target. - * ATTRIBUTE target will regenerate the composite keys for a document based on the Classification - * / SiteSchema - * - * @throws ApiException if the Api call fails - */ - @Test - public void addReindexDocumentTest() throws ApiException { - String documentId = null; - AddReindexDocumentRequest addReindexDocumentRequest = null; - String siteId = null; - AddResponse response = api.addReindexDocument(documentId, addReindexDocumentRequest, siteId); - // TODO: test validations - } + private final ReindexApi api = new ReindexApi(); + + /** + * Reindex metadata on a document + * + * The API allows for the reindexing of a document's metadata determined by the target. ATTRIBUTE target will regenerate the composite keys for a document based on the Classification / SiteSchema + * + * @throws ApiException if the Api call fails + */ + @Test + public void addReindexDocumentTest() throws ApiException { + String documentId = null; + AddReindexDocumentRequest addReindexDocumentRequest = null; + String siteId = null; + AddResponse response = api.addReindexDocument(documentId, addReindexDocumentRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/RulesetsApiTest.java b/src/test/java/com/formkiq/client/api/RulesetsApiTest.java index 39103d8a4..db0faff8f 100644 --- a/src/test/java/com/formkiq/client/api/RulesetsApiTest.java +++ b/src/test/java/com/formkiq/client/api/RulesetsApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -50,165 +43,165 @@ @Disabled public class RulesetsApiTest { - private final RulesetsApi api = new RulesetsApi(); - - /** - * Add New Rule - * - * Creates a new rule; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addRuleTest() throws ApiException { - String rulesetId = null; - AddRuleRequest addRuleRequest = null; - String siteId = null; - AddRuleResponse response = api.addRule(rulesetId, addRuleRequest, siteId); - // TODO: test validations - } - - /** - * Add New Ruleset - * - * Creates a new ruleset; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addRulesetTest() throws ApiException { - AddRulesetRequest addRulesetRequest = null; - String siteId = null; - AddRulesetResponse response = api.addRuleset(addRulesetRequest, siteId); - // TODO: test validations - } - - /** - * Delete Rule - * - * Delete Rule; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteRuleTest() throws ApiException { - String rulesetId = null; - String ruleId = null; - String siteId = null; - DeleteRuleResponse response = api.deleteRule(rulesetId, ruleId, siteId); - // TODO: test validations - } - - /** - * Delete Ruleset - * - * Delete Ruleset; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteRulesetTest() throws ApiException { - String rulesetId = null; - String siteId = null; - DeleteRulesetResponse response = api.deleteRuleset(rulesetId, siteId); - // TODO: test validations - } - - /** - * Get Rule - * - * Returns a rule in a ruleset; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRuleTest() throws ApiException { - String rulesetId = null; - String ruleId = null; - String siteId = null; - GetRuleResponse response = api.getRule(rulesetId, ruleId, siteId); - // TODO: test validations - } - - /** - * Get Rules - * - * Returns a list of rules in a ruleset; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRulesTest() throws ApiException { - String rulesetId = null; - String siteId = null; - String next = null; - String limit = null; - GetRulesResponse response = api.getRules(rulesetId, siteId, next, limit); - // TODO: test validations - } - - /** - * Get Ruleset - * - * Get a rule sets; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRulesetTest() throws ApiException { - String rulesetId = null; - String siteId = null; - GetRulesetResponse response = api.getRuleset(rulesetId, siteId); - // TODO: test validations - } - - /** - * Get Rulesets - * - * Returns a list of rule sets; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRulesetsTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetRulesetsResponse response = api.getRulesets(siteId, next, limit); - // TODO: test validations - } - - /** - * Update Rule - * - * Update Rule; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateRuleTest() throws ApiException { - String rulesetId = null; - String ruleId = null; - UpdateRuleRequest updateRuleRequest = null; - String siteId = null; - UpdateRuleResponse response = api.updateRule(rulesetId, ruleId, updateRuleRequest, siteId); - // TODO: test validations - } - - /** - * Update Ruleset - * - * Updates an existing ruleset; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateRulesetTest() throws ApiException { - String rulesetId = null; - UpdateRulesetRequest updateRulesetRequest = null; - String siteId = null; - UpdateRulesetResponse response = api.updateRuleset(rulesetId, updateRulesetRequest, siteId); - // TODO: test validations - } + private final RulesetsApi api = new RulesetsApi(); + + /** + * Add New Rule + * + * Creates a new rule; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addRuleTest() throws ApiException { + String rulesetId = null; + AddRuleRequest addRuleRequest = null; + String siteId = null; + AddRuleResponse response = api.addRule(rulesetId, addRuleRequest, siteId); + // TODO: test validations + } + + /** + * Add New Ruleset + * + * Creates a new ruleset; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addRulesetTest() throws ApiException { + AddRulesetRequest addRulesetRequest = null; + String siteId = null; + AddRulesetResponse response = api.addRuleset(addRulesetRequest, siteId); + // TODO: test validations + } + + /** + * Delete Rule + * + * Delete Rule; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteRuleTest() throws ApiException { + String rulesetId = null; + String ruleId = null; + String siteId = null; + DeleteRuleResponse response = api.deleteRule(rulesetId, ruleId, siteId); + // TODO: test validations + } + + /** + * Delete Ruleset + * + * Delete Ruleset; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteRulesetTest() throws ApiException { + String rulesetId = null; + String siteId = null; + DeleteRulesetResponse response = api.deleteRuleset(rulesetId, siteId); + // TODO: test validations + } + + /** + * Get Rule + * + * Returns a rule in a ruleset; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRuleTest() throws ApiException { + String rulesetId = null; + String ruleId = null; + String siteId = null; + GetRuleResponse response = api.getRule(rulesetId, ruleId, siteId); + // TODO: test validations + } + + /** + * Get Rules + * + * Returns a list of rules in a ruleset; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRulesTest() throws ApiException { + String rulesetId = null; + String siteId = null; + String next = null; + String limit = null; + GetRulesResponse response = api.getRules(rulesetId, siteId, next, limit); + // TODO: test validations + } + + /** + * Get Ruleset + * + * Get a rule sets; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRulesetTest() throws ApiException { + String rulesetId = null; + String siteId = null; + GetRulesetResponse response = api.getRuleset(rulesetId, siteId); + // TODO: test validations + } + + /** + * Get Rulesets + * + * Returns a list of rule sets; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRulesetsTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetRulesetsResponse response = api.getRulesets(siteId, next, limit); + // TODO: test validations + } + + /** + * Update Rule + * + * Update Rule; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateRuleTest() throws ApiException { + String rulesetId = null; + String ruleId = null; + UpdateRuleRequest updateRuleRequest = null; + String siteId = null; + UpdateRuleResponse response = api.updateRule(rulesetId, ruleId, updateRuleRequest, siteId); + // TODO: test validations + } + + /** + * Update Ruleset + * + * Updates an existing ruleset; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateRulesetTest() throws ApiException { + String rulesetId = null; + UpdateRulesetRequest updateRulesetRequest = null; + String siteId = null; + UpdateRulesetResponse response = api.updateRuleset(rulesetId, updateRulesetRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/SchemasApiTest.java b/src/test/java/com/formkiq/client/api/SchemasApiTest.java index 432f017ae..461a198d3 100644 --- a/src/test/java/com/formkiq/client/api/SchemasApiTest.java +++ b/src/test/java/com/formkiq/client/api/SchemasApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -46,151 +39,147 @@ @Disabled public class SchemasApiTest { - private final SchemasApi api = new SchemasApi(); - - /** - * Add Classification - * - * Add Classification - * - * @throws ApiException if the Api call fails - */ - @Test - public void addClassificationTest() throws ApiException { - String siteId = null; - AddClassificationRequest addClassificationRequest = null; - AddClassificationResponse response = api.addClassification(siteId, addClassificationRequest); - // TODO: test validations - } - - /** - * Delete Classification - * - * Delete Classification - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteClassificationTest() throws ApiException { - String siteId = null; - String classificationId = null; - DeleteResponse response = api.deleteClassification(siteId, classificationId); - // TODO: test validations - } - - /** - * Get Classification - * - * Get Classification - * - * @throws ApiException if the Api call fails - */ - @Test - public void getClassificationTest() throws ApiException { - String siteId = null; - String classificationId = null; - String locale = null; - GetClassificationResponse response = api.getClassification(siteId, classificationId, locale); - // TODO: test validations - } - - /** - * Get Classification's Attribute Allowed Values - * - * Returns an attribute's allowed values that spans for a specific classifications and site - * schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void getClassificationAttributeAllowedValuesTest() throws ApiException { - String siteId = null; - String classificationId = null; - String key = null; - String locale = null; - GetAttributeAllowedValuesResponse response = - api.getClassificationAttributeAllowedValues(siteId, classificationId, key, locale); - // TODO: test validations - } - - /** - * Get Sites Classifications - * - * Gets Sites Classifications - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSitesClassificationsTest() throws ApiException { - String siteId = null; - String limit = null; - String next = null; - GetClassificationsResponse response = api.getSitesClassifications(siteId, limit, next); - // TODO: test validations - } - - /** - * Get Sites Schema - * - * Gets Sites schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSitesSchemaTest() throws ApiException { - String siteId = null; - String locale = null; - GetSitesSchemaResponse response = api.getSitesSchema(siteId, locale); - // TODO: test validations - } - - /** - * Get Attribute Allowed Values - * - * Returns an attribute's allowed values from the site schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSitesSchemaAttributeAllowedValuesTest() throws ApiException { - String siteId = null; - String key = null; - String locale = null; - GetAttributeAllowedValuesResponse response = - api.getSitesSchemaAttributeAllowedValues(siteId, key, locale); - // TODO: test validations - } - - /** - * Set Classification - * - * Sets Classification - * - * @throws ApiException if the Api call fails - */ - @Test - public void setClassificationTest() throws ApiException { - String siteId = null; - String classificationId = null; - SetClassificationRequest setClassificationRequest = null; - SetResponse response = - api.setClassification(siteId, classificationId, setClassificationRequest); - // TODO: test validations - } - - /** - * Set Sites Schema - * - * Sets Sites schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void setSitesSchemaTest() throws ApiException { - String siteId = null; - SetSitesSchemaRequest setSitesSchemaRequest = null; - SetResponse response = api.setSitesSchema(siteId, setSitesSchemaRequest); - // TODO: test validations - } + private final SchemasApi api = new SchemasApi(); + + /** + * Add Classification + * + * Add Classification + * + * @throws ApiException if the Api call fails + */ + @Test + public void addClassificationTest() throws ApiException { + String siteId = null; + AddClassificationRequest addClassificationRequest = null; + AddClassificationResponse response = api.addClassification(siteId, addClassificationRequest); + // TODO: test validations + } + + /** + * Delete Classification + * + * Delete Classification + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteClassificationTest() throws ApiException { + String siteId = null; + String classificationId = null; + DeleteResponse response = api.deleteClassification(siteId, classificationId); + // TODO: test validations + } + + /** + * Get Classification + * + * Get Classification + * + * @throws ApiException if the Api call fails + */ + @Test + public void getClassificationTest() throws ApiException { + String siteId = null; + String classificationId = null; + String locale = null; + GetClassificationResponse response = api.getClassification(siteId, classificationId, locale); + // TODO: test validations + } + + /** + * Get Classification's Attribute Allowed Values + * + * Returns an attribute's allowed values that spans for a specific classifications and site schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void getClassificationAttributeAllowedValuesTest() throws ApiException { + String siteId = null; + String classificationId = null; + String key = null; + String locale = null; + GetAttributeAllowedValuesResponse response = api.getClassificationAttributeAllowedValues(siteId, classificationId, key, locale); + // TODO: test validations + } + + /** + * Get Sites Classifications + * + * Gets Sites Classifications + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSitesClassificationsTest() throws ApiException { + String siteId = null; + String limit = null; + String next = null; + GetClassificationsResponse response = api.getSitesClassifications(siteId, limit, next); + // TODO: test validations + } + + /** + * Get Sites Schema + * + * Gets Sites schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSitesSchemaTest() throws ApiException { + String siteId = null; + String locale = null; + GetSitesSchemaResponse response = api.getSitesSchema(siteId, locale); + // TODO: test validations + } + + /** + * Get Attribute Allowed Values + * + * Returns an attribute's allowed values from the site schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSitesSchemaAttributeAllowedValuesTest() throws ApiException { + String siteId = null; + String key = null; + String locale = null; + GetAttributeAllowedValuesResponse response = api.getSitesSchemaAttributeAllowedValues(siteId, key, locale); + // TODO: test validations + } + + /** + * Set Classification + * + * Sets Classification + * + * @throws ApiException if the Api call fails + */ + @Test + public void setClassificationTest() throws ApiException { + String siteId = null; + String classificationId = null; + SetClassificationRequest setClassificationRequest = null; + SetResponse response = api.setClassification(siteId, classificationId, setClassificationRequest); + // TODO: test validations + } + + /** + * Set Sites Schema + * + * Sets Sites schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void setSitesSchemaTest() throws ApiException { + String siteId = null; + SetSitesSchemaRequest setSitesSchemaRequest = null; + SetResponse response = api.setSitesSchema(siteId, setSitesSchemaRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/SystemManagementApiTest.java b/src/test/java/com/formkiq/client/api/SystemManagementApiTest.java index daaad1a90..d05ac9142 100644 --- a/src/test/java/com/formkiq/client/api/SystemManagementApiTest.java +++ b/src/test/java/com/formkiq/client/api/SystemManagementApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -69,559 +62,554 @@ @Disabled public class SystemManagementApiTest { - private final SystemManagementApi api = new SystemManagementApi(); - - /** - * Add API Key - * - * Adds a new API Key - * - * @throws ApiException if the Api call fails - */ - @Test - public void addApiKeyTest() throws ApiException { - String siteId = null; - AddApiKeyRequest addApiKeyRequest = null; - AddApiKeyResponse response = api.addApiKey(siteId, addApiKeyRequest); - // TODO: test validations - } - - /** - * Add Locale - * - * Adds a new locale to the specified site - * - * @throws ApiException if the Api call fails - */ - @Test - public void addLocaleTest() throws ApiException { - String siteId = null; - AddLocaleRequest addLocaleRequest = null; - AddResponse response = api.addLocale(siteId, addLocaleRequest); - // TODO: test validations - } - - /** - * Add Locale Resource Item - * - * Adds a new localized resource item for a given locale - * - * @throws ApiException if the Api call fails - */ - @Test - public void addLocaleResourceItemTest() throws ApiException { - String siteId = null; - String locale = null; - AddLocaleResourceItemRequest addLocaleResourceItemRequest = null; - AddLocaleResourceItemResponse response = - api.addLocaleResourceItem(siteId, locale, addLocaleResourceItemRequest); - // TODO: test validations - } - - /** - * Add an OpenSearch Restore Snapshot - * - * Add an OpenSearch Restore Snapshot - * - * @throws ApiException if the Api call fails - */ - @Test - public void addOpenSearchRestoreSnapshotTest() throws ApiException { - String siteId = null; - String snapshotName = null; - AddResponse response = api.addOpenSearchRestoreSnapshot(siteId, snapshotName); - // TODO: test validations - } - - /** - * Add an OpenSearch Snapshot - * - * Add an OpenSearch Snapshot - * - * @throws ApiException if the Api call fails - */ - @Test - public void addOpenSearchSnapshotTest() throws ApiException { - String siteId = null; - String snapshotName = null; - AddResponse response = api.addOpenSearchSnapshot(siteId, snapshotName); - // TODO: test validations - } - - /** - * Add Site - * - * Add Site - * - * @throws ApiException if the Api call fails - */ - @Test - public void addSiteTest() throws ApiException { - AddSiteRequest addSiteRequest = null; - AddResponse response = api.addSite(addSiteRequest); - // TODO: test validations - } - - /** - * Delete API Key - * - * Adds a new API Key - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteApiKeyTest() throws ApiException { - String siteId = null; - String apiKey = null; - DeleteApiKeyResponse response = api.deleteApiKey(siteId, apiKey); - // TODO: test validations - } - - /** - * Delete Locale - * - * Delete Locale - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteLocaleTest() throws ApiException { - String siteId = null; - String locale = null; - DeleteResponse response = api.deleteLocale(siteId, locale); - // TODO: test validations - } - - /** - * Delete Local Resource Item - * - * Delete Local Resource Item - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteLocaleResourceItemTest() throws ApiException { - String siteId = null; - String locale = null; - String itemKey = null; - DeleteResponse response = api.deleteLocaleResourceItem(siteId, locale, itemKey); - // TODO: test validations - } - - /** - * Deletes site(s) OpenSearch index - * - * Deletes the OpenSearch index - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpenSearchIndexTest() throws ApiException { - String siteId = null; - DeleteResponse response = api.deleteOpenSearchIndex(siteId); - // TODO: test validations - } - - /** - * Deletes OpenSearch index by name - * - * Deletes the OpenSearch index by name - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpenSearchIndexByNameTest() throws ApiException { - String indexName = null; - DeleteResponse response = api.deleteOpenSearchIndexByName(indexName); - // TODO: test validations - } - - /** - * Deletes site(s) OpenSearch Restore Snapshot - * - * Deletes the OpenSearch Restore Snapshot - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpenSearchRestoreSnapshotTest() throws ApiException { - String siteId = null; - String snapshotName = null; - DeleteResponse response = api.deleteOpenSearchRestoreSnapshot(siteId, snapshotName); - // TODO: test validations - } - - /** - * Deletes site(s) OpenSearch Snapshot - * - * Deletes the OpenSearch Snapshot - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpenSearchSnapshotTest() throws ApiException { - String siteId = null; - String snapshotName = null; - DeleteResponse response = api.deleteOpenSearchSnapshot(siteId, snapshotName); - // TODO: test validations - } - - /** - * Deletes site(s) OpenSearch Snapshot Repository - * - * Deletes the OpenSearch Snapshot Repository - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpenSearchSnapshotRepositoryTest() throws ApiException { - String siteId = null; - DeleteResponse response = api.deleteOpenSearchSnapshotRepository(siteId); - // TODO: test validations - } - - /** - * Deletes Site Group and permissions - * - * Deletes Site Group and permissions - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteSiteGroupTest() throws ApiException { - String siteId = null; - String groupName = null; - DeleteResponse response = api.deleteSiteGroup(siteId, groupName); - // TODO: test validations - } - - /** - * Get all OpenSearch indices - * - * Returns all OpenSearch indices - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAllOpenSearchIndicesTest() throws ApiException { - GetOpenSearchIndiceResponse response = api.getAllOpenSearchIndices(); - // TODO: test validations - } - - /** - * Get API Keys - * - * Returns the list of ApiKeys - * - * @throws ApiException if the Api call fails - */ - @Test - public void getApiKeysTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetApiKeysResponse response = api.getApiKeys(siteId, next, limit); - // TODO: test validations - } - - /** - * Get site configuration - * - * Returns the list of sites that the user has access to - * - * @throws ApiException if the Api call fails - */ - @Test - public void getConfigurationTest() throws ApiException { - String siteId = null; - GetConfigurationResponse response = api.getConfiguration(siteId); - // TODO: test validations - } - - /** - * Get Resource Item by Locale - * - * Returns the resource item - * - * @throws ApiException if the Api call fails - */ - @Test - public void getLocaleResourceItemTest() throws ApiException { - String siteId = null; - String locale = null; - String itemKey = null; - GetLocaleResourceItemResponse response = api.getLocaleResourceItem(siteId, locale, itemKey); - // TODO: test validations - } - - /** - * Get Resource Items by Locale - * - * Returns the list resource items - * - * @throws ApiException if the Api call fails - */ - @Test - public void getLocaleResourceItemsTest() throws ApiException { - String siteId = null; - String locale = null; - String next = null; - String limit = null; - GetLocaleResourceItemsResponse response = - api.getLocaleResourceItems(siteId, locale, next, limit); - // TODO: test validations - } - - /** - * Get Locales - * - * Returns a list of locale(s) in a specified site - * - * @throws ApiException if the Api call fails - */ - @Test - public void getLocalesTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetLocalesResponse response = api.getLocales(siteId, next, limit); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch index settings - * - * Returns the OpenSearch index settings (Deprecated use /sites/{siteId}/opensearch/indices) - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchIndexTest() throws ApiException { - String siteId = null; - GetOpenSearchIndexResponse response = api.getOpenSearchIndex(siteId); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch indices - * - * Returns the OpenSearch indices - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchIndicesTest() throws ApiException { - String siteId = null; - GetOpenSearchIndiceResponse response = api.getOpenSearchIndices(siteId); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch snapshot - * - * Returns the OpenSearch Snapshot - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchSnapshotTest() throws ApiException { - String siteId = null; - String snapshotName = null; - GetOpenSearchSnapshotResponse response = api.getOpenSearchSnapshot(siteId, snapshotName); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch snapshot repositories - * - * Returns the OpenSearch Snapshot Repositories - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchSnapshotRepositoriesTest() throws ApiException { - GetOpenSearchSnapshotRepositoryResponse response = api.getOpenSearchSnapshotRepositories(); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch snapshot repository - * - * Returns the OpenSearch Snapshot Repository - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchSnapshotRepositoryTest() throws ApiException { - String siteId = null; - GetOpenSearchSnapshotRepositoryResponse response = api.getOpenSearchSnapshotRepository(siteId); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch snapshots - * - * Returns the OpenSearch Snapshots - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchSnapshotsTest() throws ApiException { - String siteId = null; - GetOpenSearchSnapshotResponse response = api.getOpenSearchSnapshots(siteId); - // TODO: test validations - } - - /** - * Get group and permissions belonging to site - * - * Returns details of a group and permissions belonging to site - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSiteGroupTest() throws ApiException { - String siteId = null; - String groupName = null; - GetSiteGroupResponse response = api.getSiteGroup(siteId, groupName); - // TODO: test validations - } - - /** - * Get group(s) and permissions belonging to site - * - * Returns list of groups and permissions belonging to site - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSiteGroupsTest() throws ApiException { - String siteId = null; - GetSiteGroupsResponse response = api.getSiteGroups(siteId); - // TODO: test validations - } - - /** - * Get site(s) access - * - * Returns the list of sites that the user has access to - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSitesTest() throws ApiException { - SiteStatus status = null; - GetSitesResponse response = api.getSites(status); - // TODO: test validations - } - - /** - * Get FormKiQ version - * - * Return the version of FormKiQ - * - * @throws ApiException if the Api call fails - */ - @Test - public void getVersionTest() throws ApiException { - GetVersionResponse response = api.getVersion(); - // TODO: test validations - } - - /** - * Set Locale Resource Item - * - * Set a new Locale Resource Item - * - * @throws ApiException if the Api call fails - */ - @Test - public void setLocaleResourceItemTest() throws ApiException { - String siteId = null; - String locale = null; - String itemKey = null; - SetLocaleResourceItemRequest setLocaleResourceItemRequest = null; - SetResponse response = - api.setLocaleResourceItem(siteId, locale, itemKey, setLocaleResourceItemRequest); - // TODO: test validations - } - - /** - * Set site(s) OpenSearch index settings - * - * Sets the OpenSearch index settings - * - * @throws ApiException if the Api call fails - */ - @Test - public void setOpenSearchIndexTest() throws ApiException { - String siteId = null; - SetOpenSearchIndexRequest setOpenSearchIndexRequest = null; - SetOpenSearchIndexResponse response = api.setOpenSearchIndex(siteId, setOpenSearchIndexRequest); - // TODO: test validations - } - - /** - * Set site(s) OpenSearch index to use for a SiteId - * - * Sets the OpenSearch index to use for a SiteId - * - * @throws ApiException if the Api call fails - */ - @Test - public void setOpenSearchIndicesTest() throws ApiException { - String siteId = null; - SetOpenSearchIndiceRequest setOpenSearchIndiceRequest = null; - SetResponse response = api.setOpenSearchIndices(siteId, setOpenSearchIndiceRequest); - // TODO: test validations - } - - /** - * Set Site's Group Permissions - * - * Set Site's Group Permissions - * - * @throws ApiException if the Api call fails - */ - @Test - public void setSiteGroupPermissionsTest() throws ApiException { - String siteId = null; - String groupName = null; - SetGroupPermissionsRequest setGroupPermissionsRequest = null; - SetResponse response = - api.setSiteGroupPermissions(siteId, groupName, setGroupPermissionsRequest); - // TODO: test validations - } - - /** - * Update site configuration - * - * Update the System Management configuration - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateConfigurationTest() throws ApiException { - String siteId = null; - UpdateConfigurationRequest updateConfigurationRequest = null; - UpdateConfigurationResponse response = - api.updateConfiguration(siteId, updateConfigurationRequest); - // TODO: test validations - } - - /** - * Update Site - * - * Update Site - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateSiteTest() throws ApiException { - String siteId = null; - UpdateSiteRequest updateSiteRequest = null; - UpdateResponse response = api.updateSite(siteId, updateSiteRequest); - // TODO: test validations - } + private final SystemManagementApi api = new SystemManagementApi(); + + /** + * Add API Key + * + * Adds a new API Key + * + * @throws ApiException if the Api call fails + */ + @Test + public void addApiKeyTest() throws ApiException { + String siteId = null; + AddApiKeyRequest addApiKeyRequest = null; + AddApiKeyResponse response = api.addApiKey(siteId, addApiKeyRequest); + // TODO: test validations + } + + /** + * Add Locale + * + * Adds a new locale to the specified site + * + * @throws ApiException if the Api call fails + */ + @Test + public void addLocaleTest() throws ApiException { + String siteId = null; + AddLocaleRequest addLocaleRequest = null; + AddResponse response = api.addLocale(siteId, addLocaleRequest); + // TODO: test validations + } + + /** + * Add Locale Resource Item + * + * Adds a new localized resource item for a given locale + * + * @throws ApiException if the Api call fails + */ + @Test + public void addLocaleResourceItemTest() throws ApiException { + String siteId = null; + String locale = null; + AddLocaleResourceItemRequest addLocaleResourceItemRequest = null; + AddLocaleResourceItemResponse response = api.addLocaleResourceItem(siteId, locale, addLocaleResourceItemRequest); + // TODO: test validations + } + + /** + * Add an OpenSearch Restore Snapshot + * + * Add an OpenSearch Restore Snapshot + * + * @throws ApiException if the Api call fails + */ + @Test + public void addOpenSearchRestoreSnapshotTest() throws ApiException { + String siteId = null; + String snapshotName = null; + AddResponse response = api.addOpenSearchRestoreSnapshot(siteId, snapshotName); + // TODO: test validations + } + + /** + * Add an OpenSearch Snapshot + * + * Add an OpenSearch Snapshot + * + * @throws ApiException if the Api call fails + */ + @Test + public void addOpenSearchSnapshotTest() throws ApiException { + String siteId = null; + String snapshotName = null; + AddResponse response = api.addOpenSearchSnapshot(siteId, snapshotName); + // TODO: test validations + } + + /** + * Add Site + * + * Add Site + * + * @throws ApiException if the Api call fails + */ + @Test + public void addSiteTest() throws ApiException { + AddSiteRequest addSiteRequest = null; + AddResponse response = api.addSite(addSiteRequest); + // TODO: test validations + } + + /** + * Delete API Key + * + * Adds a new API Key + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteApiKeyTest() throws ApiException { + String siteId = null; + String apiKey = null; + DeleteApiKeyResponse response = api.deleteApiKey(siteId, apiKey); + // TODO: test validations + } + + /** + * Delete Locale + * + * Delete Locale + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteLocaleTest() throws ApiException { + String siteId = null; + String locale = null; + DeleteResponse response = api.deleteLocale(siteId, locale); + // TODO: test validations + } + + /** + * Delete Local Resource Item + * + * Delete Local Resource Item + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteLocaleResourceItemTest() throws ApiException { + String siteId = null; + String locale = null; + String itemKey = null; + DeleteResponse response = api.deleteLocaleResourceItem(siteId, locale, itemKey); + // TODO: test validations + } + + /** + * Deletes site(s) OpenSearch index + * + * Deletes the OpenSearch index + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpenSearchIndexTest() throws ApiException { + String siteId = null; + DeleteResponse response = api.deleteOpenSearchIndex(siteId); + // TODO: test validations + } + + /** + * Deletes OpenSearch index by name + * + * Deletes the OpenSearch index by name + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpenSearchIndexByNameTest() throws ApiException { + String indexName = null; + DeleteResponse response = api.deleteOpenSearchIndexByName(indexName); + // TODO: test validations + } + + /** + * Deletes site(s) OpenSearch Restore Snapshot + * + * Deletes the OpenSearch Restore Snapshot + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpenSearchRestoreSnapshotTest() throws ApiException { + String siteId = null; + String snapshotName = null; + DeleteResponse response = api.deleteOpenSearchRestoreSnapshot(siteId, snapshotName); + // TODO: test validations + } + + /** + * Deletes site(s) OpenSearch Snapshot + * + * Deletes the OpenSearch Snapshot + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpenSearchSnapshotTest() throws ApiException { + String siteId = null; + String snapshotName = null; + DeleteResponse response = api.deleteOpenSearchSnapshot(siteId, snapshotName); + // TODO: test validations + } + + /** + * Deletes site(s) OpenSearch Snapshot Repository + * + * Deletes the OpenSearch Snapshot Repository + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpenSearchSnapshotRepositoryTest() throws ApiException { + String siteId = null; + DeleteResponse response = api.deleteOpenSearchSnapshotRepository(siteId); + // TODO: test validations + } + + /** + * Deletes Site Group and permissions + * + * Deletes Site Group and permissions + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteSiteGroupTest() throws ApiException { + String siteId = null; + String groupName = null; + DeleteResponse response = api.deleteSiteGroup(siteId, groupName); + // TODO: test validations + } + + /** + * Get all OpenSearch indices + * + * Returns all OpenSearch indices + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAllOpenSearchIndicesTest() throws ApiException { + GetOpenSearchIndiceResponse response = api.getAllOpenSearchIndices(); + // TODO: test validations + } + + /** + * Get API Keys + * + * Returns the list of ApiKeys + * + * @throws ApiException if the Api call fails + */ + @Test + public void getApiKeysTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetApiKeysResponse response = api.getApiKeys(siteId, next, limit); + // TODO: test validations + } + + /** + * Get site configuration + * + * Returns the list of sites that the user has access to + * + * @throws ApiException if the Api call fails + */ + @Test + public void getConfigurationTest() throws ApiException { + String siteId = null; + GetConfigurationResponse response = api.getConfiguration(siteId); + // TODO: test validations + } + + /** + * Get Resource Item by Locale + * + * Returns the resource item + * + * @throws ApiException if the Api call fails + */ + @Test + public void getLocaleResourceItemTest() throws ApiException { + String siteId = null; + String locale = null; + String itemKey = null; + GetLocaleResourceItemResponse response = api.getLocaleResourceItem(siteId, locale, itemKey); + // TODO: test validations + } + + /** + * Get Resource Items by Locale + * + * Returns the list resource items + * + * @throws ApiException if the Api call fails + */ + @Test + public void getLocaleResourceItemsTest() throws ApiException { + String siteId = null; + String locale = null; + String next = null; + String limit = null; + GetLocaleResourceItemsResponse response = api.getLocaleResourceItems(siteId, locale, next, limit); + // TODO: test validations + } + + /** + * Get Locales + * + * Returns a list of locale(s) in a specified site + * + * @throws ApiException if the Api call fails + */ + @Test + public void getLocalesTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetLocalesResponse response = api.getLocales(siteId, next, limit); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch index settings + * + * Returns the OpenSearch index settings (Deprecated use /sites/{siteId}/opensearch/indices) + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchIndexTest() throws ApiException { + String siteId = null; + GetOpenSearchIndexResponse response = api.getOpenSearchIndex(siteId); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch indices + * + * Returns the OpenSearch indices + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchIndicesTest() throws ApiException { + String siteId = null; + GetOpenSearchIndiceResponse response = api.getOpenSearchIndices(siteId); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch snapshot + * + * Returns the OpenSearch Snapshot + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchSnapshotTest() throws ApiException { + String siteId = null; + String snapshotName = null; + GetOpenSearchSnapshotResponse response = api.getOpenSearchSnapshot(siteId, snapshotName); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch snapshot repositories + * + * Returns the OpenSearch Snapshot Repositories + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchSnapshotRepositoriesTest() throws ApiException { + GetOpenSearchSnapshotRepositoryResponse response = api.getOpenSearchSnapshotRepositories(); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch snapshot repository + * + * Returns the OpenSearch Snapshot Repository + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchSnapshotRepositoryTest() throws ApiException { + String siteId = null; + GetOpenSearchSnapshotRepositoryResponse response = api.getOpenSearchSnapshotRepository(siteId); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch snapshots + * + * Returns the OpenSearch Snapshots + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchSnapshotsTest() throws ApiException { + String siteId = null; + GetOpenSearchSnapshotResponse response = api.getOpenSearchSnapshots(siteId); + // TODO: test validations + } + + /** + * Get group and permissions belonging to site + * + * Returns details of a group and permissions belonging to site + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSiteGroupTest() throws ApiException { + String siteId = null; + String groupName = null; + GetSiteGroupResponse response = api.getSiteGroup(siteId, groupName); + // TODO: test validations + } + + /** + * Get group(s) and permissions belonging to site + * + * Returns list of groups and permissions belonging to site + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSiteGroupsTest() throws ApiException { + String siteId = null; + GetSiteGroupsResponse response = api.getSiteGroups(siteId); + // TODO: test validations + } + + /** + * Get site(s) access + * + * Returns the list of sites that the user has access to + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSitesTest() throws ApiException { + SiteStatus status = null; + GetSitesResponse response = api.getSites(status); + // TODO: test validations + } + + /** + * Get FormKiQ version + * + * Return the version of FormKiQ + * + * @throws ApiException if the Api call fails + */ + @Test + public void getVersionTest() throws ApiException { + GetVersionResponse response = api.getVersion(); + // TODO: test validations + } + + /** + * Set Locale Resource Item + * + * Set a new Locale Resource Item + * + * @throws ApiException if the Api call fails + */ + @Test + public void setLocaleResourceItemTest() throws ApiException { + String siteId = null; + String locale = null; + String itemKey = null; + SetLocaleResourceItemRequest setLocaleResourceItemRequest = null; + SetResponse response = api.setLocaleResourceItem(siteId, locale, itemKey, setLocaleResourceItemRequest); + // TODO: test validations + } + + /** + * Set site(s) OpenSearch index settings + * + * Sets the OpenSearch index settings + * + * @throws ApiException if the Api call fails + */ + @Test + public void setOpenSearchIndexTest() throws ApiException { + String siteId = null; + SetOpenSearchIndexRequest setOpenSearchIndexRequest = null; + SetOpenSearchIndexResponse response = api.setOpenSearchIndex(siteId, setOpenSearchIndexRequest); + // TODO: test validations + } + + /** + * Set site(s) OpenSearch index to use for a SiteId + * + * Sets the OpenSearch index to use for a SiteId + * + * @throws ApiException if the Api call fails + */ + @Test + public void setOpenSearchIndicesTest() throws ApiException { + String siteId = null; + SetOpenSearchIndiceRequest setOpenSearchIndiceRequest = null; + SetResponse response = api.setOpenSearchIndices(siteId, setOpenSearchIndiceRequest); + // TODO: test validations + } + + /** + * Set Site's Group Permissions + * + * Set Site's Group Permissions + * + * @throws ApiException if the Api call fails + */ + @Test + public void setSiteGroupPermissionsTest() throws ApiException { + String siteId = null; + String groupName = null; + SetGroupPermissionsRequest setGroupPermissionsRequest = null; + SetResponse response = api.setSiteGroupPermissions(siteId, groupName, setGroupPermissionsRequest); + // TODO: test validations + } + + /** + * Update site configuration + * + * Update the System Management configuration + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateConfigurationTest() throws ApiException { + String siteId = null; + UpdateConfigurationRequest updateConfigurationRequest = null; + UpdateConfigurationResponse response = api.updateConfiguration(siteId, updateConfigurationRequest); + // TODO: test validations + } + + /** + * Update Site + * + * Update Site + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateSiteTest() throws ApiException { + String siteId = null; + UpdateSiteRequest updateSiteRequest = null; + UpdateResponse response = api.updateSite(siteId, updateSiteRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/TagIndexApiTest.java b/src/test/java/com/formkiq/client/api/TagIndexApiTest.java index 168c0279a..8c0bf7fe1 100644 --- a/src/test/java/com/formkiq/client/api/TagIndexApiTest.java +++ b/src/test/java/com/formkiq/client/api/TagIndexApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,23 +31,22 @@ @Disabled public class TagIndexApiTest { - private final TagIndexApi api = new TagIndexApi(); - - /** - * Perform a search on a index; this is currently available for both folder and tag indices - * - * @throws ApiException if the Api call fails - */ - @Test - public void indexSearchTest() throws ApiException { - IndexSearchRequest indexSearchRequest = null; - String siteId = null; - String limit = null; - String next = null; - String previous = null; - IndexSearchResponse response = - api.indexSearch(indexSearchRequest, siteId, limit, next, previous); - // TODO: test validations - } + private final TagIndexApi api = new TagIndexApi(); + + /** + * Perform a search on a index; this is currently available for both folder and tag indices + * + * @throws ApiException if the Api call fails + */ + @Test + public void indexSearchTest() throws ApiException { + IndexSearchRequest indexSearchRequest = null; + String siteId = null; + String limit = null; + String next = null; + String previous = null; + IndexSearchResponse response = api.indexSearch(indexSearchRequest, siteId, limit, next, previous); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/UserActivitiesApiTest.java b/src/test/java/com/formkiq/client/api/UserActivitiesApiTest.java index 9c5690903..f79f0d321 100644 --- a/src/test/java/com/formkiq/client/api/UserActivitiesApiTest.java +++ b/src/test/java/com/formkiq/client/api/UserActivitiesApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,66 +31,64 @@ @Disabled public class UserActivitiesApiTest { - private final UserActivitiesApi api = new UserActivitiesApi(); + private final UserActivitiesApi api = new UserActivitiesApi(); - /** - * Get user activities for a document - * - * Retrieve a user's activities for a document - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentUserActivitiesTest() throws ApiException { - String documentId = null; - String siteId = null; - String next = null; - String limit = null; - GetUserActivitesResponse response = - api.getDocumentUserActivities(documentId, siteId, next, limit); - // TODO: test validations - } + /** + * Get user activities for a document + * + * Retrieve a user's activities for a document + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentUserActivitiesTest() throws ApiException { + String documentId = null; + String siteId = null; + String next = null; + String limit = null; + GetUserActivitesResponse response = api.getDocumentUserActivities(documentId, siteId, next, limit); + // TODO: test validations + } - /** - * Get resource activities - * - * Retrieve an resource activities - * - * @throws ApiException if the Api call fails - */ - @Test - public void getResourceActivitiesTest() throws ApiException { - String siteId = null; - String documentId = null; - String entityTypeId = null; - String namespace = null; - String entityId = null; - OffsetDateTime start = null; - OffsetDateTime end = null; - String sort = null; - String next = null; - String limit = null; - String userId = null; - GetActivitesResponse response = api.getResourceActivities(siteId, documentId, entityTypeId, - namespace, entityId, start, end, sort, next, limit, userId); - // TODO: test validations - } + /** + * Get resource activities + * + * Retrieve an resource activities + * + * @throws ApiException if the Api call fails + */ + @Test + public void getResourceActivitiesTest() throws ApiException { + String siteId = null; + String documentId = null; + String entityTypeId = null; + String namespace = null; + String entityId = null; + OffsetDateTime start = null; + OffsetDateTime end = null; + String sort = null; + String next = null; + String limit = null; + String userId = null; + GetActivitesResponse response = api.getResourceActivities(siteId, documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId); + // TODO: test validations + } - /** - * Get user activities - * - * Retrieve a user's activities - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUserActivitiesTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - String userId = null; - GetUserActivitesResponse response = api.getUserActivities(siteId, next, limit, userId); - // TODO: test validations - } + /** + * Get user activities + * + * Retrieve a user's activities + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUserActivitiesTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + String userId = null; + GetUserActivitesResponse response = api.getUserActivities(siteId, next, limit, userId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/UserManagementApiTest.java b/src/test/java/com/formkiq/client/api/UserManagementApiTest.java index f51d037f9..188203da5 100644 --- a/src/test/java/com/formkiq/client/api/UserManagementApiTest.java +++ b/src/test/java/com/formkiq/client/api/UserManagementApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -46,197 +39,197 @@ @Disabled public class UserManagementApiTest { - private final UserManagementApi api = new UserManagementApi(); - - /** - * Add a group - * - * Add a new group - * - * @throws ApiException if the Api call fails - */ - @Test - public void addGroupTest() throws ApiException { - AddGroupRequest addGroupRequest = null; - AddResponse response = api.addGroup(addGroupRequest); - // TODO: test validations - } - - /** - * Add User - * - * Adds a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void addUserTest() throws ApiException { - AddUserRequest addUserRequest = null; - AddResponse response = api.addUser(addUserRequest); - // TODO: test validations - } - - /** - * Add User to a group - * - * Adds a user to a group - * - * @throws ApiException if the Api call fails - */ - @Test - public void addUserToGroupTest() throws ApiException { - String groupName = null; - AddUserRequest addUserRequest = null; - AddResponse response = api.addUserToGroup(groupName, addUserRequest); - // TODO: test validations - } - - /** - * Delete Group - * - * Delete Group - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteGroupTest() throws ApiException { - String groupName = null; - DeleteResponse response = api.deleteGroup(groupName); - // TODO: test validations - } - - /** - * Delete Username - * - * Delete Username - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteUsernameTest() throws ApiException { - String username = null; - DeleteResponse response = api.deleteUsername(username); - // TODO: test validations - } - - /** - * Get a user group - * - * Returns a user group - * - * @throws ApiException if the Api call fails - */ - @Test - public void getGroupTest() throws ApiException { - String groupName = null; - GetGroupResponse response = api.getGroup(groupName); - // TODO: test validations - } - - /** - * Get list of user group(s) - * - * Returns the list of user groups - * - * @throws ApiException if the Api call fails - */ - @Test - public void getGroupsTest() throws ApiException { - String limit = null; - String next = null; - GetGroupsResponse response = api.getGroups(limit, next); - // TODO: test validations - } - - /** - * Returns a list of group user belongs to - * - * Returns a list of group user belongs to - * - * @throws ApiException if the Api call fails - */ - @Test - public void getListOfUserGroupsTest() throws ApiException { - String username = null; - String limit = null; - String next = null; - GetUserGroupsResponse response = api.getListOfUserGroups(username, limit, next); - // TODO: test validations - } - - /** - * Get a user - * - * Returns a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUserTest() throws ApiException { - String username = null; - GetUserResponse response = api.getUser(username); - // TODO: test validations - } - - /** - * Get list of user(s) - * - * Returns the list of users - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUsersTest() throws ApiException { - String limit = null; - String next = null; - GetUsersResponse response = api.getUsers(limit, next); - // TODO: test validations - } - - /** - * Get users in a group - * - * Returns the list of users in a group - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUsersInGroupTest() throws ApiException { - String groupName = null; - String limit = null; - String next = null; - GetUsersInGroupResponse response = api.getUsersInGroup(groupName, limit, next); - // TODO: test validations - } - - /** - * Remove Username From Group - * - * Remove Username From Group - * - * @throws ApiException if the Api call fails - */ - @Test - public void removeUsernameFromGroupTest() throws ApiException { - String groupName = null; - String username = null; - DeleteResponse response = api.removeUsernameFromGroup(groupName, username); - // TODO: test validations - } - - /** - * Set User Operation - * - * Set User Operation (disable, enable, reset-password) - * - * @throws ApiException if the Api call fails - */ - @Test - public void setUserOperationTest() throws ApiException { - String username = null; - String userOperation = null; - SetResponse response = api.setUserOperation(username, userOperation); - // TODO: test validations - } + private final UserManagementApi api = new UserManagementApi(); + + /** + * Add a group + * + * Add a new group + * + * @throws ApiException if the Api call fails + */ + @Test + public void addGroupTest() throws ApiException { + AddGroupRequest addGroupRequest = null; + AddResponse response = api.addGroup(addGroupRequest); + // TODO: test validations + } + + /** + * Add User + * + * Adds a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void addUserTest() throws ApiException { + AddUserRequest addUserRequest = null; + AddResponse response = api.addUser(addUserRequest); + // TODO: test validations + } + + /** + * Add User to a group + * + * Adds a user to a group + * + * @throws ApiException if the Api call fails + */ + @Test + public void addUserToGroupTest() throws ApiException { + String groupName = null; + AddUserRequest addUserRequest = null; + AddResponse response = api.addUserToGroup(groupName, addUserRequest); + // TODO: test validations + } + + /** + * Delete Group + * + * Delete Group + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteGroupTest() throws ApiException { + String groupName = null; + DeleteResponse response = api.deleteGroup(groupName); + // TODO: test validations + } + + /** + * Delete Username + * + * Delete Username + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteUsernameTest() throws ApiException { + String username = null; + DeleteResponse response = api.deleteUsername(username); + // TODO: test validations + } + + /** + * Get a user group + * + * Returns a user group + * + * @throws ApiException if the Api call fails + */ + @Test + public void getGroupTest() throws ApiException { + String groupName = null; + GetGroupResponse response = api.getGroup(groupName); + // TODO: test validations + } + + /** + * Get list of user group(s) + * + * Returns the list of user groups + * + * @throws ApiException if the Api call fails + */ + @Test + public void getGroupsTest() throws ApiException { + String limit = null; + String next = null; + GetGroupsResponse response = api.getGroups(limit, next); + // TODO: test validations + } + + /** + * Returns a list of group user belongs to + * + * Returns a list of group user belongs to + * + * @throws ApiException if the Api call fails + */ + @Test + public void getListOfUserGroupsTest() throws ApiException { + String username = null; + String limit = null; + String next = null; + GetUserGroupsResponse response = api.getListOfUserGroups(username, limit, next); + // TODO: test validations + } + + /** + * Get a user + * + * Returns a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUserTest() throws ApiException { + String username = null; + GetUserResponse response = api.getUser(username); + // TODO: test validations + } + + /** + * Get list of user(s) + * + * Returns the list of users + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUsersTest() throws ApiException { + String limit = null; + String next = null; + GetUsersResponse response = api.getUsers(limit, next); + // TODO: test validations + } + + /** + * Get users in a group + * + * Returns the list of users in a group + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUsersInGroupTest() throws ApiException { + String groupName = null; + String limit = null; + String next = null; + GetUsersInGroupResponse response = api.getUsersInGroup(groupName, limit, next); + // TODO: test validations + } + + /** + * Remove Username From Group + * + * Remove Username From Group + * + * @throws ApiException if the Api call fails + */ + @Test + public void removeUsernameFromGroupTest() throws ApiException { + String groupName = null; + String username = null; + DeleteResponse response = api.removeUsernameFromGroup(groupName, username); + // TODO: test validations + } + + /** + * Set User Operation + * + * Set User Operation (disable, enable, reset-password) + * + * @throws ApiException if the Api call fails + */ + @Test + public void setUserOperationTest() throws ApiException { + String username = null; + String userOperation = null; + SetResponse response = api.setUserOperation(username, userOperation); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/WebhooksApiTest.java b/src/test/java/com/formkiq/client/api/WebhooksApiTest.java index 13c0bb1ec..ab42b6da0 100644 --- a/src/test/java/com/formkiq/client/api/WebhooksApiTest.java +++ b/src/test/java/com/formkiq/client/api/WebhooksApiTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -44,134 +37,130 @@ @Disabled public class WebhooksApiTest { - private final WebhooksApi api = new WebhooksApi(); + private final WebhooksApi api = new WebhooksApi(); - /** - * Add webhook - * - * Create a new webhook; once created, a webhook's id can be provided to an external service, - * allowing data to be sent, received, and processed via that webhook - * - * @throws ApiException if the Api call fails - */ - @Test - public void addWebhookTest() throws ApiException { - AddWebhookRequest addWebhookRequest = null; - String siteId = null; - AddWebhookResponse response = api.addWebhook(addWebhookRequest, siteId); - // TODO: test validations - } + /** + * Add webhook + * + * Create a new webhook; once created, a webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook + * + * @throws ApiException if the Api call fails + */ + @Test + public void addWebhookTest() throws ApiException { + AddWebhookRequest addWebhookRequest = null; + String siteId = null; + AddWebhookResponse response = api.addWebhook(addWebhookRequest, siteId); + // TODO: test validations + } - /** - * Add webhook - * - * Receive an incoming private webhook and creates a document based on the webhook's body; - * requires authentication - * - * @throws ApiException if the Api call fails - */ - @Test - public void addWebhookDocumentTest() throws ApiException { - String webhooksPlus = null; - Object body = null; - String siteId = null; - DocumentId response = api.addWebhookDocument(webhooksPlus, body, siteId); - // TODO: test validations - } + /** + * Add webhook + * + * Receive an incoming private webhook and creates a document based on the webhook's body; requires authentication + * + * @throws ApiException if the Api call fails + */ + @Test + public void addWebhookDocumentTest() throws ApiException { + String webhooksPlus = null; + Object body = null; + String siteId = null; + DocumentId response = api.addWebhookDocument(webhooksPlus, body, siteId); + // TODO: test validations + } - /** - * Add webhook tag - * - * Add a tag to a webhook - * - * @throws ApiException if the Api call fails - */ - @Test - public void addWebhookTagTest() throws ApiException { - String webhookId = null; - AddWebhookTagRequest addWebhookTagRequest = null; - String siteId = null; - api.addWebhookTag(webhookId, addWebhookTagRequest, siteId); - // TODO: test validations - } + /** + * Add webhook tag + * + * Add a tag to a webhook + * + * @throws ApiException if the Api call fails + */ + @Test + public void addWebhookTagTest() throws ApiException { + String webhookId = null; + AddWebhookTagRequest addWebhookTagRequest = null; + String siteId = null; + api.addWebhookTag(webhookId, addWebhookTagRequest, siteId); + // TODO: test validations + } - /** - * Delete webhook - * - * Delete a webhook; this will disable sending, receiving, or processing of data from external - * services to this webhook - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteWebhookTest() throws ApiException { - String webhookId = null; - String siteId = null; - DeleteResponse response = api.deleteWebhook(webhookId, siteId); - // TODO: test validations - } + /** + * Delete webhook + * + * Delete a webhook; this will disable sending, receiving, or processing of data from external services to this webhook + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteWebhookTest() throws ApiException { + String webhookId = null; + String siteId = null; + DeleteResponse response = api.deleteWebhook(webhookId, siteId); + // TODO: test validations + } - /** - * Get webhook - * - * Return a webhook's details, i.e., its metadata - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWebhookTest() throws ApiException { - String webhookId = null; - String siteId = null; - GetWebhookResponse response = api.getWebhook(webhookId, siteId); - // TODO: test validations - } + /** + * Get webhook + * + * Return a webhook's details, i.e., its metadata + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWebhookTest() throws ApiException { + String webhookId = null; + String siteId = null; + GetWebhookResponse response = api.getWebhook(webhookId, siteId); + // TODO: test validations + } - /** - * Get webhook tags - * - * Get a webhook's tags - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWebhookTagsTest() throws ApiException { - String webhookId = null; - String siteId = null; - GetWebhookTagsResponse response = api.getWebhookTags(webhookId, siteId); - // TODO: test validations - } + /** + * Get webhook tags + * + * Get a webhook's tags + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWebhookTagsTest() throws ApiException { + String webhookId = null; + String siteId = null; + GetWebhookTagsResponse response = api.getWebhookTags(webhookId, siteId); + // TODO: test validations + } - /** - * Get webhooks - * - * Return a list of webhooks; each webhook's id can be provided to an external service, - * allowing data to be sent, received, and processed via that webhook - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWebhooksTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetWebhooksResponse response = api.getWebhooks(siteId, next, limit); - // TODO: test validations - } + /** + * Get webhooks + * + * Return a list of webhooks; each webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWebhooksTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetWebhooksResponse response = api.getWebhooks(siteId, next, limit); + // TODO: test validations + } - /** - * Update webhook - * - * Updates a webhook's details, i.e., its metadata - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateWebhookTest() throws ApiException { - String webhookId = null; - AddWebhookRequest addWebhookRequest = null; - String siteId = null; - UpdateResponse response = api.updateWebhook(webhookId, addWebhookRequest, siteId); - // TODO: test validations - } + /** + * Update webhook + * + * Updates a webhook's details, i.e., its metadata + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateWebhookTest() throws ApiException { + String webhookId = null; + AddWebhookRequest addWebhookRequest = null; + String siteId = null; + UpdateResponse response = api.updateWebhook(webhookId, addWebhookRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/model/ActivityStatusTest.java b/src/test/java/com/formkiq/client/model/ActivityStatusTest.java index 0eea3599d..7f010e165 100644 --- a/src/test/java/com/formkiq/client/model/ActivityStatusTest.java +++ b/src/test/java/com/formkiq/client/model/ActivityStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for ActivityStatus */ public class ActivityStatusTest { - /** - * Model tests for ActivityStatus - */ - @Test - public void testActivityStatus() { - // TODO: test ActivityStatus - } + /** + * Model tests for ActivityStatus + */ + @Test + public void testActivityStatus() { + // TODO: test ActivityStatus + } } diff --git a/src/test/java/com/formkiq/client/model/ActivityTest.java b/src/test/java/com/formkiq/client/model/ActivityTest.java index e09029b22..680c841b7 100644 --- a/src/test/java/com/formkiq/client/model/ActivityTest.java +++ b/src/test/java/com/formkiq/client/model/ActivityTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,118 +32,118 @@ * Model tests for Activity */ public class ActivityTest { - private final Activity model = new Activity(); - - /** - * Model tests for Activity - */ - @Test - public void testActivity() { - // TODO: test Activity - } - - /** - * Test the property 'resource' - */ - @Test - public void resourceTest() { - // TODO: test resource - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'source' - */ - @Test - public void sourceTest() { - // TODO: test source - } - - /** - * Test the property 'sourceIpAddress' - */ - @Test - public void sourceIpAddressTest() { - // TODO: test sourceIpAddress - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } - - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } - - /** - * Test the property 'entityId' - */ - @Test - public void entityIdTest() { - // TODO: test entityId - } - - /** - * Test the property 'changes' - */ - @Test - public void changesTest() { - // TODO: test changes - } + private final Activity model = new Activity(); + + /** + * Model tests for Activity + */ + @Test + public void testActivity() { + // TODO: test Activity + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + + /** + * Test the property 'sourceIpAddress' + */ + @Test + public void sourceIpAddressTest() { + // TODO: test sourceIpAddress + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } + + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } + + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } + + /** + * Test the property 'changes' + */ + @Test + public void changesTest() { + // TODO: test changes + } } diff --git a/src/test/java/com/formkiq/client/model/AddActionParametersTest.java b/src/test/java/com/formkiq/client/model/AddActionParametersTest.java index d17e3f7a3..3dc04fc72 100644 --- a/src/test/java/com/formkiq/client/model/AddActionParametersTest.java +++ b/src/test/java/com/formkiq/client/model/AddActionParametersTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,198 +32,198 @@ * Model tests for AddActionParameters */ public class AddActionParametersTest { - private final AddActionParameters model = new AddActionParameters(); - - /** - * Model tests for AddActionParameters - */ - @Test - public void testAddActionParameters() { - // TODO: test AddActionParameters - } - - /** - * Test the property 'ocrTextractQueries' - */ - @Test - public void ocrTextractQueriesTest() { - // TODO: test ocrTextractQueries - } - - /** - * Test the property 'ocrParseTypes' - */ - @Test - public void ocrParseTypesTest() { - // TODO: test ocrParseTypes - } - - /** - * Test the property 'ocrEngine' - */ - @Test - public void ocrEngineTest() { - // TODO: test ocrEngine - } - - /** - * Test the property 'ocrOutputType' - */ - @Test - public void ocrOutputTypeTest() { - // TODO: test ocrOutputType - } - - /** - * Test the property 'ocrNumberOfPages' - */ - @Test - public void ocrNumberOfPagesTest() { - // TODO: test ocrNumberOfPages - } - - /** - * Test the property 'addPdfDetectedCharactersAsText' - */ - @Test - public void addPdfDetectedCharactersAsTextTest() { - // TODO: test addPdfDetectedCharactersAsText - } - - /** - * Test the property 'llmPromptEntityName' - */ - @Test - public void llmPromptEntityNameTest() { - // TODO: test llmPromptEntityName - } - - /** - * Test the property 'url' - */ - @Test - public void urlTest() { - // TODO: test url - } - - /** - * Test the property 'characterMax' - */ - @Test - public void characterMaxTest() { - // TODO: test characterMax - } - - /** - * Test the property 'engine' - */ - @Test - public void engineTest() { - // TODO: test engine - } - - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - - /** - * Test the property 'notificationToCc' - */ - @Test - public void notificationToCcTest() { - // TODO: test notificationToCc - } - - /** - * Test the property 'notificationToBcc' - */ - @Test - public void notificationToBccTest() { - // TODO: test notificationToBcc - } - - /** - * Test the property 'notificationSubject' - */ - @Test - public void notificationSubjectTest() { - // TODO: test notificationSubject - } - - /** - * Test the property 'notificationText' - */ - @Test - public void notificationTextTest() { - // TODO: test notificationText - } - - /** - * Test the property 'notificationHtml' - */ - @Test - public void notificationHtmlTest() { - // TODO: test notificationHtml - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'mappingId' - */ - @Test - public void mappingIdTest() { - // TODO: test mappingId - } - - /** - * Test the property 'eventBusName' - */ - @Test - public void eventBusNameTest() { - // TODO: test eventBusName - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'outputType' - */ - @Test - public void outputTypeTest() { - // TODO: test outputType - } + private final AddActionParameters model = new AddActionParameters(); + + /** + * Model tests for AddActionParameters + */ + @Test + public void testAddActionParameters() { + // TODO: test AddActionParameters + } + + /** + * Test the property 'ocrTextractQueries' + */ + @Test + public void ocrTextractQueriesTest() { + // TODO: test ocrTextractQueries + } + + /** + * Test the property 'ocrParseTypes' + */ + @Test + public void ocrParseTypesTest() { + // TODO: test ocrParseTypes + } + + /** + * Test the property 'ocrEngine' + */ + @Test + public void ocrEngineTest() { + // TODO: test ocrEngine + } + + /** + * Test the property 'ocrOutputType' + */ + @Test + public void ocrOutputTypeTest() { + // TODO: test ocrOutputType + } + + /** + * Test the property 'ocrNumberOfPages' + */ + @Test + public void ocrNumberOfPagesTest() { + // TODO: test ocrNumberOfPages + } + + /** + * Test the property 'addPdfDetectedCharactersAsText' + */ + @Test + public void addPdfDetectedCharactersAsTextTest() { + // TODO: test addPdfDetectedCharactersAsText + } + + /** + * Test the property 'llmPromptEntityName' + */ + @Test + public void llmPromptEntityNameTest() { + // TODO: test llmPromptEntityName + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'characterMax' + */ + @Test + public void characterMaxTest() { + // TODO: test characterMax + } + + /** + * Test the property 'engine' + */ + @Test + public void engineTest() { + // TODO: test engine + } + + /** + * Test the property 'notificationType' + */ + @Test + public void notificationTypeTest() { + // TODO: test notificationType + } + + /** + * Test the property 'notificationToCc' + */ + @Test + public void notificationToCcTest() { + // TODO: test notificationToCc + } + + /** + * Test the property 'notificationToBcc' + */ + @Test + public void notificationToBccTest() { + // TODO: test notificationToBcc + } + + /** + * Test the property 'notificationSubject' + */ + @Test + public void notificationSubjectTest() { + // TODO: test notificationSubject + } + + /** + * Test the property 'notificationText' + */ + @Test + public void notificationTextTest() { + // TODO: test notificationText + } + + /** + * Test the property 'notificationHtml' + */ + @Test + public void notificationHtmlTest() { + // TODO: test notificationHtml + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'mappingId' + */ + @Test + public void mappingIdTest() { + // TODO: test mappingId + } + + /** + * Test the property 'eventBusName' + */ + @Test + public void eventBusNameTest() { + // TODO: test eventBusName + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'outputType' + */ + @Test + public void outputTypeTest() { + // TODO: test outputType + } } diff --git a/src/test/java/com/formkiq/client/model/AddActionTest.java b/src/test/java/com/formkiq/client/model/AddActionTest.java index d818244e9..79a176d9e 100644 --- a/src/test/java/com/formkiq/client/model/AddActionTest.java +++ b/src/test/java/com/formkiq/client/model/AddActionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,38 +29,38 @@ * Model tests for AddAction */ public class AddActionTest { - private final AddAction model = new AddAction(); + private final AddAction model = new AddAction(); - /** - * Model tests for AddAction - */ - @Test - public void testAddAction() { - // TODO: test AddAction - } + /** + * Model tests for AddAction + */ + @Test + public void testAddAction() { + // TODO: test AddAction + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'parameters' - */ - @Test - public void parametersTest() { - // TODO: test parameters - } + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } } diff --git a/src/test/java/com/formkiq/client/model/AddApiKeyPermissionTest.java b/src/test/java/com/formkiq/client/model/AddApiKeyPermissionTest.java new file mode 100644 index 000000000..4d1681cdb --- /dev/null +++ b/src/test/java/com/formkiq/client/model/AddApiKeyPermissionTest.java @@ -0,0 +1,32 @@ +/* + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.formkiq.client.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AddApiKeyPermission + */ +public class AddApiKeyPermissionTest { + /** + * Model tests for AddApiKeyPermission + */ + @Test + public void testAddApiKeyPermission() { + // TODO: test AddApiKeyPermission + } + +} diff --git a/src/test/java/com/formkiq/client/model/AddApiKeyRequestTest.java b/src/test/java/com/formkiq/client/model/AddApiKeyRequestTest.java index 1079b0dfd..ed14f7ca6 100644 --- a/src/test/java/com/formkiq/client/model/AddApiKeyRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddApiKeyRequestTest.java @@ -1,25 +1,19 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ package com.formkiq.client.model; +import com.formkiq.client.model.AddApiKeyPermission; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -36,30 +30,38 @@ * Model tests for AddApiKeyRequest */ public class AddApiKeyRequestTest { - private final AddApiKeyRequest model = new AddApiKeyRequest(); + private final AddApiKeyRequest model = new AddApiKeyRequest(); - /** - * Model tests for AddApiKeyRequest - */ - @Test - public void testAddApiKeyRequest() { - // TODO: test AddApiKeyRequest - } + /** + * Model tests for AddApiKeyRequest + */ + @Test + public void testAddApiKeyRequest() { + // TODO: test AddApiKeyRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } + + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/AddApiKeyResponseTest.java b/src/test/java/com/formkiq/client/model/AddApiKeyResponseTest.java index 2b62cc904..6f63405dc 100644 --- a/src/test/java/com/formkiq/client/model/AddApiKeyResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddApiKeyResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddApiKeyResponse */ public class AddApiKeyResponseTest { - private final AddApiKeyResponse model = new AddApiKeyResponse(); + private final AddApiKeyResponse model = new AddApiKeyResponse(); - /** - * Model tests for AddApiKeyResponse - */ - @Test - public void testAddApiKeyResponse() { - // TODO: test AddApiKeyResponse - } + /** + * Model tests for AddApiKeyResponse + */ + @Test + public void testAddApiKeyResponse() { + // TODO: test AddApiKeyResponse + } - /** - * Test the property 'apiKey' - */ - @Test - public void apiKeyTest() { - // TODO: test apiKey - } + /** + * Test the property 'apiKey' + */ + @Test + public void apiKeyTest() { + // TODO: test apiKey + } } diff --git a/src/test/java/com/formkiq/client/model/AddAttributeRequestTest.java b/src/test/java/com/formkiq/client/model/AddAttributeRequestTest.java index 5c8e8f81d..064df3828 100644 --- a/src/test/java/com/formkiq/client/model/AddAttributeRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddAttributeRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddAttributeRequest */ public class AddAttributeRequestTest { - private final AddAttributeRequest model = new AddAttributeRequest(); + private final AddAttributeRequest model = new AddAttributeRequest(); - /** - * Model tests for AddAttributeRequest - */ - @Test - public void testAddAttributeRequest() { - // TODO: test AddAttributeRequest - } + /** + * Model tests for AddAttributeRequest + */ + @Test + public void testAddAttributeRequest() { + // TODO: test AddAttributeRequest + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } } diff --git a/src/test/java/com/formkiq/client/model/AddAttributeSchemaOptionalTest.java b/src/test/java/com/formkiq/client/model/AddAttributeSchemaOptionalTest.java index 926308c07..73c5780b2 100644 --- a/src/test/java/com/formkiq/client/model/AddAttributeSchemaOptionalTest.java +++ b/src/test/java/com/formkiq/client/model/AddAttributeSchemaOptionalTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,46 +30,46 @@ * Model tests for AddAttributeSchemaOptional */ public class AddAttributeSchemaOptionalTest { - private final AddAttributeSchemaOptional model = new AddAttributeSchemaOptional(); + private final AddAttributeSchemaOptional model = new AddAttributeSchemaOptional(); - /** - * Model tests for AddAttributeSchemaOptional - */ - @Test - public void testAddAttributeSchemaOptional() { - // TODO: test AddAttributeSchemaOptional - } + /** + * Model tests for AddAttributeSchemaOptional + */ + @Test + public void testAddAttributeSchemaOptional() { + // TODO: test AddAttributeSchemaOptional + } - /** - * Test the property 'minNumberOfValues' - */ - @Test - public void minNumberOfValuesTest() { - // TODO: test minNumberOfValues - } + /** + * Test the property 'minNumberOfValues' + */ + @Test + public void minNumberOfValuesTest() { + // TODO: test minNumberOfValues + } - /** - * Test the property 'maxNumberOfValues' - */ - @Test - public void maxNumberOfValuesTest() { - // TODO: test maxNumberOfValues - } + /** + * Test the property 'maxNumberOfValues' + */ + @Test + public void maxNumberOfValuesTest() { + // TODO: test maxNumberOfValues + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValues' - */ - @Test - public void allowedValuesTest() { - // TODO: test allowedValues - } + /** + * Test the property 'allowedValues' + */ + @Test + public void allowedValuesTest() { + // TODO: test allowedValues + } } diff --git a/src/test/java/com/formkiq/client/model/AddAttributeSchemaRequiredTest.java b/src/test/java/com/formkiq/client/model/AddAttributeSchemaRequiredTest.java index 2b8396961..06612311f 100644 --- a/src/test/java/com/formkiq/client/model/AddAttributeSchemaRequiredTest.java +++ b/src/test/java/com/formkiq/client/model/AddAttributeSchemaRequiredTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,62 +30,62 @@ * Model tests for AddAttributeSchemaRequired */ public class AddAttributeSchemaRequiredTest { - private final AddAttributeSchemaRequired model = new AddAttributeSchemaRequired(); + private final AddAttributeSchemaRequired model = new AddAttributeSchemaRequired(); - /** - * Model tests for AddAttributeSchemaRequired - */ - @Test - public void testAddAttributeSchemaRequired() { - // TODO: test AddAttributeSchemaRequired - } + /** + * Model tests for AddAttributeSchemaRequired + */ + @Test + public void testAddAttributeSchemaRequired() { + // TODO: test AddAttributeSchemaRequired + } - /** - * Test the property 'minNumberOfValues' - */ - @Test - public void minNumberOfValuesTest() { - // TODO: test minNumberOfValues - } + /** + * Test the property 'minNumberOfValues' + */ + @Test + public void minNumberOfValuesTest() { + // TODO: test minNumberOfValues + } - /** - * Test the property 'maxNumberOfValues' - */ - @Test - public void maxNumberOfValuesTest() { - // TODO: test maxNumberOfValues - } + /** + * Test the property 'maxNumberOfValues' + */ + @Test + public void maxNumberOfValuesTest() { + // TODO: test maxNumberOfValues + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'defaultValue' - */ - @Test - public void defaultValueTest() { - // TODO: test defaultValue - } + /** + * Test the property 'defaultValue' + */ + @Test + public void defaultValueTest() { + // TODO: test defaultValue + } - /** - * Test the property 'defaultValues' - */ - @Test - public void defaultValuesTest() { - // TODO: test defaultValues - } + /** + * Test the property 'defaultValues' + */ + @Test + public void defaultValuesTest() { + // TODO: test defaultValues + } - /** - * Test the property 'allowedValues' - */ - @Test - public void allowedValuesTest() { - // TODO: test allowedValues - } + /** + * Test the property 'allowedValues' + */ + @Test + public void allowedValuesTest() { + // TODO: test allowedValues + } } diff --git a/src/test/java/com/formkiq/client/model/AddAttributeTest.java b/src/test/java/com/formkiq/client/model/AddAttributeTest.java index eb4477548..495cc114c 100644 --- a/src/test/java/com/formkiq/client/model/AddAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/AddAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,46 +30,46 @@ * Model tests for AddAttribute */ public class AddAttributeTest { - private final AddAttribute model = new AddAttribute(); + private final AddAttribute model = new AddAttribute(); - /** - * Model tests for AddAttribute - */ - @Test - public void testAddAttribute() { - // TODO: test AddAttribute - } + /** + * Model tests for AddAttribute + */ + @Test + public void testAddAttribute() { + // TODO: test AddAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'dataType' - */ - @Test - public void dataTypeTest() { - // TODO: test dataType - } + /** + * Test the property 'dataType' + */ + @Test + public void dataTypeTest() { + // TODO: test dataType + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'watermark' - */ - @Test - public void watermarkTest() { - // TODO: test watermark - } + /** + * Test the property 'watermark' + */ + @Test + public void watermarkTest() { + // TODO: test watermark + } } diff --git a/src/test/java/com/formkiq/client/model/AddCaseRequestTest.java b/src/test/java/com/formkiq/client/model/AddCaseRequestTest.java index 348fd2fa2..ad5a7fbab 100644 --- a/src/test/java/com/formkiq/client/model/AddCaseRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddCaseRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddCaseRequest */ public class AddCaseRequestTest { - private final AddCaseRequest model = new AddCaseRequest(); + private final AddCaseRequest model = new AddCaseRequest(); - /** - * Model tests for AddCaseRequest - */ - @Test - public void testAddCaseRequest() { - // TODO: test AddCaseRequest - } + /** + * Model tests for AddCaseRequest + */ + @Test + public void testAddCaseRequest() { + // TODO: test AddCaseRequest + } - /** - * Test the property '_case' - */ - @Test - public void _caseTest() { - // TODO: test _case - } + /** + * Test the property '_case' + */ + @Test + public void _caseTest() { + // TODO: test _case + } } diff --git a/src/test/java/com/formkiq/client/model/AddCaseResponseTest.java b/src/test/java/com/formkiq/client/model/AddCaseResponseTest.java index 3a647fdab..94323f160 100644 --- a/src/test/java/com/formkiq/client/model/AddCaseResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddCaseResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddCaseResponse */ public class AddCaseResponseTest { - private final AddCaseResponse model = new AddCaseResponse(); + private final AddCaseResponse model = new AddCaseResponse(); - /** - * Model tests for AddCaseResponse - */ - @Test - public void testAddCaseResponse() { - // TODO: test AddCaseResponse - } + /** + * Model tests for AddCaseResponse + */ + @Test + public void testAddCaseResponse() { + // TODO: test AddCaseResponse + } - /** - * Test the property 'caseId' - */ - @Test - public void caseIdTest() { - // TODO: test caseId - } + /** + * Test the property 'caseId' + */ + @Test + public void caseIdTest() { + // TODO: test caseId + } } diff --git a/src/test/java/com/formkiq/client/model/AddCaseTest.java b/src/test/java/com/formkiq/client/model/AddCaseTest.java index 3af70dfa7..594296ed4 100644 --- a/src/test/java/com/formkiq/client/model/AddCaseTest.java +++ b/src/test/java/com/formkiq/client/model/AddCaseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -40,102 +33,102 @@ * Model tests for AddCase */ public class AddCaseTest { - private final AddCase model = new AddCase(); - - /** - * Model tests for AddCase - */ - @Test - public void testAddCase() { - // TODO: test AddCase - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } - - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } - - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } - - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'documentNumberFormat' - */ - @Test - public void documentNumberFormatTest() { - // TODO: test documentNumberFormat - } - - /** - * Test the property 'caseNumberFormat' - */ - @Test - public void caseNumberFormatTest() { - // TODO: test caseNumberFormat - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + private final AddCase model = new AddCase(); + + /** + * Model tests for AddCase + */ + @Test + public void testAddCase() { + // TODO: test AddCase + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } + + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'documentNumberFormat' + */ + @Test + public void documentNumberFormatTest() { + // TODO: test documentNumberFormat + } + + /** + * Test the property 'caseNumberFormat' + */ + @Test + public void caseNumberFormatTest() { + // TODO: test caseNumberFormat + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/AddChildDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/AddChildDocumentResponseTest.java index 3df767422..5e36eadb7 100644 --- a/src/test/java/com/formkiq/client/model/AddChildDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddChildDocumentResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,38 +29,38 @@ * Model tests for AddChildDocumentResponse */ public class AddChildDocumentResponseTest { - private final AddChildDocumentResponse model = new AddChildDocumentResponse(); + private final AddChildDocumentResponse model = new AddChildDocumentResponse(); - /** - * Model tests for AddChildDocumentResponse - */ - @Test - public void testAddChildDocumentResponse() { - // TODO: test AddChildDocumentResponse - } + /** + * Model tests for AddChildDocumentResponse + */ + @Test + public void testAddChildDocumentResponse() { + // TODO: test AddChildDocumentResponse + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'uploadUrl' - */ - @Test - public void uploadUrlTest() { - // TODO: test uploadUrl - } + /** + * Test the property 'uploadUrl' + */ + @Test + public void uploadUrlTest() { + // TODO: test uploadUrl + } - /** - * Test the property 'headers' - */ - @Test - public void headersTest() { - // TODO: test headers - } + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } } diff --git a/src/test/java/com/formkiq/client/model/AddChildDocumentTest.java b/src/test/java/com/formkiq/client/model/AddChildDocumentTest.java index aec1ded7d..4f1670933 100644 --- a/src/test/java/com/formkiq/client/model/AddChildDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/AddChildDocumentTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,102 +32,102 @@ * Model tests for AddChildDocument */ public class AddChildDocumentTest { - private final AddChildDocument model = new AddChildDocument(); - - /** - * Model tests for AddChildDocument - */ - @Test - public void testAddChildDocument() { - // TODO: test AddChildDocument - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final AddChildDocument model = new AddChildDocument(); + + /** + * Model tests for AddChildDocument + */ + @Test + public void testAddChildDocument() { + // TODO: test AddChildDocument + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/AddClassificationRequestTest.java b/src/test/java/com/formkiq/client/model/AddClassificationRequestTest.java index d3bad3425..42eab0306 100644 --- a/src/test/java/com/formkiq/client/model/AddClassificationRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddClassificationRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddClassificationRequest */ public class AddClassificationRequestTest { - private final AddClassificationRequest model = new AddClassificationRequest(); + private final AddClassificationRequest model = new AddClassificationRequest(); - /** - * Model tests for AddClassificationRequest - */ - @Test - public void testAddClassificationRequest() { - // TODO: test AddClassificationRequest - } + /** + * Model tests for AddClassificationRequest + */ + @Test + public void testAddClassificationRequest() { + // TODO: test AddClassificationRequest + } - /** - * Test the property 'classification' - */ - @Test - public void classificationTest() { - // TODO: test classification - } + /** + * Test the property 'classification' + */ + @Test + public void classificationTest() { + // TODO: test classification + } } diff --git a/src/test/java/com/formkiq/client/model/AddClassificationResponseTest.java b/src/test/java/com/formkiq/client/model/AddClassificationResponseTest.java index c21bc39c3..957668d89 100644 --- a/src/test/java/com/formkiq/client/model/AddClassificationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddClassificationResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddClassificationResponse */ public class AddClassificationResponseTest { - private final AddClassificationResponse model = new AddClassificationResponse(); + private final AddClassificationResponse model = new AddClassificationResponse(); - /** - * Model tests for AddClassificationResponse - */ - @Test - public void testAddClassificationResponse() { - // TODO: test AddClassificationResponse - } + /** + * Model tests for AddClassificationResponse + */ + @Test + public void testAddClassificationResponse() { + // TODO: test AddClassificationResponse + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } } diff --git a/src/test/java/com/formkiq/client/model/AddClassificationTest.java b/src/test/java/com/formkiq/client/model/AddClassificationTest.java index 831601a4c..ef00658b9 100644 --- a/src/test/java/com/formkiq/client/model/AddClassificationTest.java +++ b/src/test/java/com/formkiq/client/model/AddClassificationTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for AddClassification */ public class AddClassificationTest { - private final AddClassification model = new AddClassification(); - - /** - * Model tests for AddClassification - */ - @Test - public void testAddClassification() { - // TODO: test AddClassification - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final AddClassification model = new AddClassification(); + + /** + * Model tests for AddClassification + */ + @Test + public void testAddClassification() { + // TODO: test AddClassification + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentActionsRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentActionsRequestTest.java index fd23c3357..8ec212523 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentActionsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentActionsRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for AddDocumentActionsRequest */ public class AddDocumentActionsRequestTest { - private final AddDocumentActionsRequest model = new AddDocumentActionsRequest(); + private final AddDocumentActionsRequest model = new AddDocumentActionsRequest(); - /** - * Model tests for AddDocumentActionsRequest - */ - @Test - public void testAddDocumentActionsRequest() { - // TODO: test AddDocumentActionsRequest - } + /** + * Model tests for AddDocumentActionsRequest + */ + @Test + public void testAddDocumentActionsRequest() { + // TODO: test AddDocumentActionsRequest + } - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentActionsResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentActionsResponseTest.java index 5e5cef879..440e616e3 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentActionsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentActionsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddDocumentActionsResponse */ public class AddDocumentActionsResponseTest { - private final AddDocumentActionsResponse model = new AddDocumentActionsResponse(); + private final AddDocumentActionsResponse model = new AddDocumentActionsResponse(); - /** - * Model tests for AddDocumentActionsResponse - */ - @Test - public void testAddDocumentActionsResponse() { - // TODO: test AddDocumentActionsResponse - } + /** + * Model tests for AddDocumentActionsResponse + */ + @Test + public void testAddDocumentActionsResponse() { + // TODO: test AddDocumentActionsResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentActionsRetryResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentActionsRetryResponseTest.java index 2ea481b9e..76c381ebe 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentActionsRetryResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentActionsRetryResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddDocumentActionsRetryResponse */ public class AddDocumentActionsRetryResponseTest { - private final AddDocumentActionsRetryResponse model = new AddDocumentActionsRetryResponse(); + private final AddDocumentActionsRetryResponse model = new AddDocumentActionsRetryResponse(); - /** - * Model tests for AddDocumentActionsRetryResponse - */ - @Test - public void testAddDocumentActionsRetryResponse() { - // TODO: test AddDocumentActionsRetryResponse - } + /** + * Model tests for AddDocumentActionsRetryResponse + */ + @Test + public void testAddDocumentActionsRetryResponse() { + // TODO: test AddDocumentActionsRetryResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeClassificationTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeClassificationTest.java index 264f7708d..4d8e0a191 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeClassificationTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeClassificationTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddDocumentAttributeClassification */ public class AddDocumentAttributeClassificationTest { - private final AddDocumentAttributeClassification model = new AddDocumentAttributeClassification(); + private final AddDocumentAttributeClassification model = new AddDocumentAttributeClassification(); - /** - * Model tests for AddDocumentAttributeClassification - */ - @Test - public void testAddDocumentAttributeClassification() { - // TODO: test AddDocumentAttributeClassification - } + /** + * Model tests for AddDocumentAttributeClassification + */ + @Test + public void testAddDocumentAttributeClassification() { + // TODO: test AddDocumentAttributeClassification + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeEntityTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeEntityTest.java index 65c3c1435..a7b7eb3f8 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeEntityTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeEntityTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,46 +28,46 @@ * Model tests for AddDocumentAttributeEntity */ public class AddDocumentAttributeEntityTest { - private final AddDocumentAttributeEntity model = new AddDocumentAttributeEntity(); + private final AddDocumentAttributeEntity model = new AddDocumentAttributeEntity(); - /** - * Model tests for AddDocumentAttributeEntity - */ - @Test - public void testAddDocumentAttributeEntity() { - // TODO: test AddDocumentAttributeEntity - } + /** + * Model tests for AddDocumentAttributeEntity + */ + @Test + public void testAddDocumentAttributeEntity() { + // TODO: test AddDocumentAttributeEntity + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } - /** - * Test the property 'entityId' - */ - @Test - public void entityIdTest() { - // TODO: test entityId - } + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeRelationshipTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeRelationshipTest.java index 7e7554d59..a2fa582af 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeRelationshipTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeRelationshipTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,38 +28,38 @@ * Model tests for AddDocumentAttributeRelationship */ public class AddDocumentAttributeRelationshipTest { - private final AddDocumentAttributeRelationship model = new AddDocumentAttributeRelationship(); + private final AddDocumentAttributeRelationship model = new AddDocumentAttributeRelationship(); - /** - * Model tests for AddDocumentAttributeRelationship - */ - @Test - public void testAddDocumentAttributeRelationship() { - // TODO: test AddDocumentAttributeRelationship - } + /** + * Model tests for AddDocumentAttributeRelationship + */ + @Test + public void testAddDocumentAttributeRelationship() { + // TODO: test AddDocumentAttributeRelationship + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'relationship' - */ - @Test - public void relationshipTest() { - // TODO: test relationship - } + /** + * Test the property 'relationship' + */ + @Test + public void relationshipTest() { + // TODO: test relationship + } - /** - * Test the property 'inverseRelationship' - */ - @Test - public void inverseRelationshipTest() { - // TODO: test inverseRelationship - } + /** + * Test the property 'inverseRelationship' + */ + @Test + public void inverseRelationshipTest() { + // TODO: test inverseRelationship + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeStandardTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeStandardTest.java index a2731fd47..bfeffddfb 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeStandardTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeStandardTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,62 +30,62 @@ * Model tests for AddDocumentAttributeStandard */ public class AddDocumentAttributeStandardTest { - private final AddDocumentAttributeStandard model = new AddDocumentAttributeStandard(); + private final AddDocumentAttributeStandard model = new AddDocumentAttributeStandard(); - /** - * Model tests for AddDocumentAttributeStandard - */ - @Test - public void testAddDocumentAttributeStandard() { - // TODO: test AddDocumentAttributeStandard - } + /** + * Model tests for AddDocumentAttributeStandard + */ + @Test + public void testAddDocumentAttributeStandard() { + // TODO: test AddDocumentAttributeStandard + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeTest.java index 3eed67456..4d6b3e9c8 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -43,118 +36,118 @@ * Model tests for AddDocumentAttribute */ public class AddDocumentAttributeTest { - private final AddDocumentAttribute model = new AddDocumentAttribute(); - - /** - * Model tests for AddDocumentAttribute - */ - @Test - public void testAddDocumentAttribute() { - // TODO: test AddDocumentAttribute - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } - - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } - - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } - - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } - - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } - - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'relationship' - */ - @Test - public void relationshipTest() { - // TODO: test relationship - } - - /** - * Test the property 'inverseRelationship' - */ - @Test - public void inverseRelationshipTest() { - // TODO: test inverseRelationship - } - - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } - - /** - * Test the property 'entityId' - */ - @Test - public void entityIdTest() { - // TODO: test entityId - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } + private final AddDocumentAttribute model = new AddDocumentAttribute(); + + /** + * Model tests for AddDocumentAttribute + */ + @Test + public void testAddDocumentAttribute() { + // TODO: test AddDocumentAttribute + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } + + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } + + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } + + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } + + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } + + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'relationship' + */ + @Test + public void relationshipTest() { + // TODO: test relationship + } + + /** + * Test the property 'inverseRelationship' + */ + @Test + public void inverseRelationshipTest() { + // TODO: test inverseRelationship + } + + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } + + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeValueTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeValueTest.java index 5648b8369..84f4cfbe8 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeValueTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeValueTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,54 +30,54 @@ * Model tests for AddDocumentAttributeValue */ public class AddDocumentAttributeValueTest { - private final AddDocumentAttributeValue model = new AddDocumentAttributeValue(); + private final AddDocumentAttributeValue model = new AddDocumentAttributeValue(); - /** - * Model tests for AddDocumentAttributeValue - */ - @Test - public void testAddDocumentAttributeValue() { - // TODO: test AddDocumentAttributeValue - } + /** + * Model tests for AddDocumentAttributeValue + */ + @Test + public void testAddDocumentAttributeValue() { + // TODO: test AddDocumentAttributeValue + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributesRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributesRequestTest.java index d9586280b..127354a41 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributesRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributesRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for AddDocumentAttributesRequest */ public class AddDocumentAttributesRequestTest { - private final AddDocumentAttributesRequest model = new AddDocumentAttributesRequest(); + private final AddDocumentAttributesRequest model = new AddDocumentAttributesRequest(); - /** - * Model tests for AddDocumentAttributesRequest - */ - @Test - public void testAddDocumentAttributesRequest() { - // TODO: test AddDocumentAttributesRequest - } + /** + * Model tests for AddDocumentAttributesRequest + */ + @Test + public void testAddDocumentAttributesRequest() { + // TODO: test AddDocumentAttributesRequest + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentFulltextRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentFulltextRequestTest.java index e5b630ede..dcf441e13 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentFulltextRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentFulltextRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -42,110 +35,110 @@ * Model tests for AddDocumentFulltextRequest */ public class AddDocumentFulltextRequestTest { - private final AddDocumentFulltextRequest model = new AddDocumentFulltextRequest(); - - /** - * Model tests for AddDocumentFulltextRequest - */ - @Test - public void testAddDocumentFulltextRequest() { - // TODO: test AddDocumentFulltextRequest - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'contentUrls' - */ - @Test - public void contentUrlsTest() { - // TODO: test contentUrls - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final AddDocumentFulltextRequest model = new AddDocumentFulltextRequest(); + + /** + * Model tests for AddDocumentFulltextRequest + */ + @Test + public void testAddDocumentFulltextRequest() { + // TODO: test AddDocumentFulltextRequest + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'contentUrls' + */ + @Test + public void contentUrlsTest() { + // TODO: test contentUrls + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentFulltextResponseTest.java index 3c17408b3..f54bc8aa6 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentFulltextResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddDocumentFulltextResponse */ public class AddDocumentFulltextResponseTest { - private final AddDocumentFulltextResponse model = new AddDocumentFulltextResponse(); + private final AddDocumentFulltextResponse model = new AddDocumentFulltextResponse(); - /** - * Model tests for AddDocumentFulltextResponse - */ - @Test - public void testAddDocumentFulltextResponse() { - // TODO: test AddDocumentFulltextResponse - } + /** + * Model tests for AddDocumentFulltextResponse + */ + @Test + public void testAddDocumentFulltextResponse() { + // TODO: test AddDocumentFulltextResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentGenerateRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentGenerateRequestTest.java index d595303db..bbc40c0f8 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentGenerateRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentGenerateRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -40,62 +33,62 @@ * Model tests for AddDocumentGenerateRequest */ public class AddDocumentGenerateRequestTest { - private final AddDocumentGenerateRequest model = new AddDocumentGenerateRequest(); + private final AddDocumentGenerateRequest model = new AddDocumentGenerateRequest(); - /** - * Model tests for AddDocumentGenerateRequest - */ - @Test - public void testAddDocumentGenerateRequest() { - // TODO: test AddDocumentGenerateRequest - } + /** + * Model tests for AddDocumentGenerateRequest + */ + @Test + public void testAddDocumentGenerateRequest() { + // TODO: test AddDocumentGenerateRequest + } - /** - * Test the property 'locale' - */ - @Test - public void localeTest() { - // TODO: test locale - } + /** + * Test the property 'locale' + */ + @Test + public void localeTest() { + // TODO: test locale + } - /** - * Test the property 'insertDocuments' - */ - @Test - public void insertDocumentsTest() { - // TODO: test insertDocuments - } + /** + * Test the property 'insertDocuments' + */ + @Test + public void insertDocumentsTest() { + // TODO: test insertDocuments + } - /** - * Test the property 'datasources' - */ - @Test - public void datasourcesTest() { - // TODO: test datasources - } + /** + * Test the property 'datasources' + */ + @Test + public void datasourcesTest() { + // TODO: test datasources + } - /** - * Test the property 'outputType' - */ - @Test - public void outputTypeTest() { - // TODO: test outputType - } + /** + * Test the property 'outputType' + */ + @Test + public void outputTypeTest() { + // TODO: test outputType + } - /** - * Test the property 'saveAsDocumentId' - */ - @Test - public void saveAsDocumentIdTest() { - // TODO: test saveAsDocumentId - } + /** + * Test the property 'saveAsDocumentId' + */ + @Test + public void saveAsDocumentIdTest() { + // TODO: test saveAsDocumentId + } - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentGenerateResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentGenerateResponseTest.java index 208397573..dfd690a76 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentGenerateResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentGenerateResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddDocumentGenerateResponse */ public class AddDocumentGenerateResponseTest { - private final AddDocumentGenerateResponse model = new AddDocumentGenerateResponse(); + private final AddDocumentGenerateResponse model = new AddDocumentGenerateResponse(); - /** - * Model tests for AddDocumentGenerateResponse - */ - @Test - public void testAddDocumentGenerateResponse() { - // TODO: test AddDocumentGenerateResponse - } + /** + * Model tests for AddDocumentGenerateResponse + */ + @Test + public void testAddDocumentGenerateResponse() { + // TODO: test AddDocumentGenerateResponse + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentMetadataTest.java b/src/test/java/com/formkiq/client/model/AddDocumentMetadataTest.java index 8d9475f6a..37d957a38 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentMetadataTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentMetadataTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,38 +29,38 @@ * Model tests for AddDocumentMetadata */ public class AddDocumentMetadataTest { - private final AddDocumentMetadata model = new AddDocumentMetadata(); + private final AddDocumentMetadata model = new AddDocumentMetadata(); - /** - * Model tests for AddDocumentMetadata - */ - @Test - public void testAddDocumentMetadata() { - // TODO: test AddDocumentMetadata - } + /** + * Model tests for AddDocumentMetadata + */ + @Test + public void testAddDocumentMetadata() { + // TODO: test AddDocumentMetadata + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentOcrRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentOcrRequestTest.java index c53ca47f7..d96486676 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentOcrRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentOcrRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,62 +32,62 @@ * Model tests for AddDocumentOcrRequest */ public class AddDocumentOcrRequestTest { - private final AddDocumentOcrRequest model = new AddDocumentOcrRequest(); + private final AddDocumentOcrRequest model = new AddDocumentOcrRequest(); - /** - * Model tests for AddDocumentOcrRequest - */ - @Test - public void testAddDocumentOcrRequest() { - // TODO: test AddDocumentOcrRequest - } + /** + * Model tests for AddDocumentOcrRequest + */ + @Test + public void testAddDocumentOcrRequest() { + // TODO: test AddDocumentOcrRequest + } - /** - * Test the property 'textractQueries' - */ - @Test - public void textractQueriesTest() { - // TODO: test textractQueries - } + /** + * Test the property 'textractQueries' + */ + @Test + public void textractQueriesTest() { + // TODO: test textractQueries + } - /** - * Test the property 'parseTypes' - */ - @Test - public void parseTypesTest() { - // TODO: test parseTypes - } + /** + * Test the property 'parseTypes' + */ + @Test + public void parseTypesTest() { + // TODO: test parseTypes + } - /** - * Test the property 'addPdfDetectedCharactersAsText' - */ - @Test - public void addPdfDetectedCharactersAsTextTest() { - // TODO: test addPdfDetectedCharactersAsText - } + /** + * Test the property 'addPdfDetectedCharactersAsText' + */ + @Test + public void addPdfDetectedCharactersAsTextTest() { + // TODO: test addPdfDetectedCharactersAsText + } - /** - * Test the property 'ocrEngine' - */ - @Test - public void ocrEngineTest() { - // TODO: test ocrEngine - } + /** + * Test the property 'ocrEngine' + */ + @Test + public void ocrEngineTest() { + // TODO: test ocrEngine + } - /** - * Test the property 'ocrNumberOfPages' - */ - @Test - public void ocrNumberOfPagesTest() { - // TODO: test ocrNumberOfPages - } + /** + * Test the property 'ocrNumberOfPages' + */ + @Test + public void ocrNumberOfPagesTest() { + // TODO: test ocrNumberOfPages + } - /** - * Test the property 'ocrOutputType' - */ - @Test - public void ocrOutputTypeTest() { - // TODO: test ocrOutputType - } + /** + * Test the property 'ocrOutputType' + */ + @Test + public void ocrOutputTypeTest() { + // TODO: test ocrOutputType + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentOcrResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentOcrResponseTest.java index 995f36f47..a9d3ee41a 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentOcrResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentOcrResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddDocumentOcrResponse */ public class AddDocumentOcrResponseTest { - private final AddDocumentOcrResponse model = new AddDocumentOcrResponse(); + private final AddDocumentOcrResponse model = new AddDocumentOcrResponse(); - /** - * Model tests for AddDocumentOcrResponse - */ - @Test - public void testAddDocumentOcrResponse() { - // TODO: test AddDocumentOcrResponse - } + /** + * Model tests for AddDocumentOcrResponse + */ + @Test + public void testAddDocumentOcrResponse() { + // TODO: test AddDocumentOcrResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentRequestTest.java index 66f23920c..67331a727 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -42,134 +35,134 @@ * Model tests for AddDocumentRequest */ public class AddDocumentRequestTest { - private final AddDocumentRequest model = new AddDocumentRequest(); - - /** - * Model tests for AddDocumentRequest - */ - @Test - public void testAddDocumentRequest() { - // TODO: test AddDocumentRequest - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final AddDocumentRequest model = new AddDocumentRequest(); + + /** + * Model tests for AddDocumentRequest + */ + @Test + public void testAddDocumentRequest() { + // TODO: test AddDocumentRequest + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentResponseTest.java index 0c59f5f01..9713dc663 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,54 +32,54 @@ * Model tests for AddDocumentResponse */ public class AddDocumentResponseTest { - private final AddDocumentResponse model = new AddDocumentResponse(); + private final AddDocumentResponse model = new AddDocumentResponse(); - /** - * Model tests for AddDocumentResponse - */ - @Test - public void testAddDocumentResponse() { - // TODO: test AddDocumentResponse - } + /** + * Model tests for AddDocumentResponse + */ + @Test + public void testAddDocumentResponse() { + // TODO: test AddDocumentResponse + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } - /** - * Test the property 'uploadUrl' - */ - @Test - public void uploadUrlTest() { - // TODO: test uploadUrl - } + /** + * Test the property 'uploadUrl' + */ + @Test + public void uploadUrlTest() { + // TODO: test uploadUrl + } - /** - * Test the property 'headers' - */ - @Test - public void headersTest() { - // TODO: test headers - } + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentSyncRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentSyncRequestTest.java index 261de0340..d0ea50687 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentSyncRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentSyncRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddDocumentSyncRequest */ public class AddDocumentSyncRequestTest { - private final AddDocumentSyncRequest model = new AddDocumentSyncRequest(); + private final AddDocumentSyncRequest model = new AddDocumentSyncRequest(); - /** - * Model tests for AddDocumentSyncRequest - */ - @Test - public void testAddDocumentSyncRequest() { - // TODO: test AddDocumentSyncRequest - } + /** + * Model tests for AddDocumentSyncRequest + */ + @Test + public void testAddDocumentSyncRequest() { + // TODO: test AddDocumentSyncRequest + } - /** - * Test the property 'sync' - */ - @Test - public void syncTest() { - // TODO: test sync - } + /** + * Test the property 'sync' + */ + @Test + public void syncTest() { + // TODO: test sync + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentSyncServiceTest.java b/src/test/java/com/formkiq/client/model/AddDocumentSyncServiceTest.java index c8ff36c0f..b9e410fdf 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentSyncServiceTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentSyncServiceTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for AddDocumentSyncService */ public class AddDocumentSyncServiceTest { - /** - * Model tests for AddDocumentSyncService - */ - @Test - public void testAddDocumentSyncService() { - // TODO: test AddDocumentSyncService - } + /** + * Model tests for AddDocumentSyncService + */ + @Test + public void testAddDocumentSyncService() { + // TODO: test AddDocumentSyncService + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentSyncTest.java b/src/test/java/com/formkiq/client/model/AddDocumentSyncTest.java index 505be3656..75e589cbf 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentSyncTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentSyncTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for AddDocumentSync */ public class AddDocumentSyncTest { - private final AddDocumentSync model = new AddDocumentSync(); - - /** - * Model tests for AddDocumentSync - */ - @Test - public void testAddDocumentSync() { - // TODO: test AddDocumentSync - } - - /** - * Test the property 'service' - */ - @Test - public void serviceTest() { - // TODO: test service - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + private final AddDocumentSync model = new AddDocumentSync(); + + /** + * Model tests for AddDocumentSync + */ + @Test + public void testAddDocumentSync() { + // TODO: test AddDocumentSync + } + + /** + * Test the property 'service' + */ + @Test + public void serviceTest() { + // TODO: test service + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentTagTest.java b/src/test/java/com/formkiq/client/model/AddDocumentTagTest.java index 2d4bcd047..9a9c1fa66 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentTagTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentTagTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,38 +29,38 @@ * Model tests for AddDocumentTag */ public class AddDocumentTagTest { - private final AddDocumentTag model = new AddDocumentTag(); + private final AddDocumentTag model = new AddDocumentTag(); - /** - * Model tests for AddDocumentTag - */ - @Test - public void testAddDocumentTag() { - // TODO: test AddDocumentTag - } + /** + * Model tests for AddDocumentTag + */ + @Test + public void testAddDocumentTag() { + // TODO: test AddDocumentTag + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentTagsRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentTagsRequestTest.java index f89aa0a86..239f3e92f 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentTagsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentTagsRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for AddDocumentTagsRequest */ public class AddDocumentTagsRequestTest { - private final AddDocumentTagsRequest model = new AddDocumentTagsRequest(); + private final AddDocumentTagsRequest model = new AddDocumentTagsRequest(); - /** - * Model tests for AddDocumentTagsRequest - */ - @Test - public void testAddDocumentTagsRequest() { - // TODO: test AddDocumentTagsRequest - } + /** + * Model tests for AddDocumentTagsRequest + */ + @Test + public void testAddDocumentTagsRequest() { + // TODO: test AddDocumentTagsRequest + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentUploadRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentUploadRequestTest.java index c8da5122e..606475f4d 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentUploadRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentUploadRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -40,102 +33,102 @@ * Model tests for AddDocumentUploadRequest */ public class AddDocumentUploadRequestTest { - private final AddDocumentUploadRequest model = new AddDocumentUploadRequest(); - - /** - * Model tests for AddDocumentUploadRequest - */ - @Test - public void testAddDocumentUploadRequest() { - // TODO: test AddDocumentUploadRequest - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } + private final AddDocumentUploadRequest model = new AddDocumentUploadRequest(); + + /** + * Model tests for AddDocumentUploadRequest + */ + @Test + public void testAddDocumentUploadRequest() { + // TODO: test AddDocumentUploadRequest + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequestTest.java index b6d88caba..4c417d682 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,39 +27,38 @@ * Model tests for AddDocumentWorkflowDecisionsRequest */ public class AddDocumentWorkflowDecisionsRequestTest { - private final AddDocumentWorkflowDecisionsRequest model = - new AddDocumentWorkflowDecisionsRequest(); + private final AddDocumentWorkflowDecisionsRequest model = new AddDocumentWorkflowDecisionsRequest(); - /** - * Model tests for AddDocumentWorkflowDecisionsRequest - */ - @Test - public void testAddDocumentWorkflowDecisionsRequest() { - // TODO: test AddDocumentWorkflowDecisionsRequest - } + /** + * Model tests for AddDocumentWorkflowDecisionsRequest + */ + @Test + public void testAddDocumentWorkflowDecisionsRequest() { + // TODO: test AddDocumentWorkflowDecisionsRequest + } - /** - * Test the property 'stepId' - */ - @Test - public void stepIdTest() { - // TODO: test stepId - } + /** + * Test the property 'stepId' + */ + @Test + public void stepIdTest() { + // TODO: test stepId + } - /** - * Test the property 'comments' - */ - @Test - public void commentsTest() { - // TODO: test comments - } + /** + * Test the property 'comments' + */ + @Test + public void commentsTest() { + // TODO: test comments + } - /** - * Test the property 'decision' - */ - @Test - public void decisionTest() { - // TODO: test decision - } + /** + * Test the property 'decision' + */ + @Test + public void decisionTest() { + // TODO: test decision + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponseTest.java index 70791a7ae..8d92933ff 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,23 +27,22 @@ * Model tests for AddDocumentWorkflowDecisionsResponse */ public class AddDocumentWorkflowDecisionsResponseTest { - private final AddDocumentWorkflowDecisionsResponse model = - new AddDocumentWorkflowDecisionsResponse(); + private final AddDocumentWorkflowDecisionsResponse model = new AddDocumentWorkflowDecisionsResponse(); - /** - * Model tests for AddDocumentWorkflowDecisionsResponse - */ - @Test - public void testAddDocumentWorkflowDecisionsResponse() { - // TODO: test AddDocumentWorkflowDecisionsResponse - } + /** + * Model tests for AddDocumentWorkflowDecisionsResponse + */ + @Test + public void testAddDocumentWorkflowDecisionsResponse() { + // TODO: test AddDocumentWorkflowDecisionsResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowRequestTest.java index ea9a05677..c2d257343 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddDocumentWorkflowRequest */ public class AddDocumentWorkflowRequestTest { - private final AddDocumentWorkflowRequest model = new AddDocumentWorkflowRequest(); + private final AddDocumentWorkflowRequest model = new AddDocumentWorkflowRequest(); - /** - * Model tests for AddDocumentWorkflowRequest - */ - @Test - public void testAddDocumentWorkflowRequest() { - // TODO: test AddDocumentWorkflowRequest - } + /** + * Model tests for AddDocumentWorkflowRequest + */ + @Test + public void testAddDocumentWorkflowRequest() { + // TODO: test AddDocumentWorkflowRequest + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowResponseTest.java index 3a8547921..16aa43910 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddDocumentWorkflowResponse */ public class AddDocumentWorkflowResponseTest { - private final AddDocumentWorkflowResponse model = new AddDocumentWorkflowResponse(); + private final AddDocumentWorkflowResponse model = new AddDocumentWorkflowResponse(); - /** - * Model tests for AddDocumentWorkflowResponse - */ - @Test - public void testAddDocumentWorkflowResponse() { - // TODO: test AddDocumentWorkflowResponse - } + /** + * Model tests for AddDocumentWorkflowResponse + */ + @Test + public void testAddDocumentWorkflowResponse() { + // TODO: test AddDocumentWorkflowResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesRequestTest.java index 741a38c2d..ec4692ba6 100644 --- a/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -40,54 +33,54 @@ * Model tests for AddDocusignEnvelopesRequest */ public class AddDocusignEnvelopesRequestTest { - private final AddDocusignEnvelopesRequest model = new AddDocusignEnvelopesRequest(); + private final AddDocusignEnvelopesRequest model = new AddDocusignEnvelopesRequest(); - /** - * Model tests for AddDocusignEnvelopesRequest - */ - @Test - public void testAddDocusignEnvelopesRequest() { - // TODO: test AddDocusignEnvelopesRequest - } + /** + * Model tests for AddDocusignEnvelopesRequest + */ + @Test + public void testAddDocusignEnvelopesRequest() { + // TODO: test AddDocusignEnvelopesRequest + } - /** - * Test the property 'emailSubject' - */ - @Test - public void emailSubjectTest() { - // TODO: test emailSubject - } + /** + * Test the property 'emailSubject' + */ + @Test + public void emailSubjectTest() { + // TODO: test emailSubject + } - /** - * Test the property 'environment' - */ - @Test - public void environmentTest() { - // TODO: test environment - } + /** + * Test the property 'environment' + */ + @Test + public void environmentTest() { + // TODO: test environment + } - /** - * Test the property 'signers' - */ - @Test - public void signersTest() { - // TODO: test signers - } + /** + * Test the property 'signers' + */ + @Test + public void signersTest() { + // TODO: test signers + } - /** - * Test the property 'inpersonSigners' - */ - @Test - public void inpersonSignersTest() { - // TODO: test inpersonSigners - } + /** + * Test the property 'inpersonSigners' + */ + @Test + public void inpersonSignersTest() { + // TODO: test inpersonSigners + } - /** - * Test the property 'notification' - */ - @Test - public void notificationTest() { - // TODO: test notification - } + /** + * Test the property 'notification' + */ + @Test + public void notificationTest() { + // TODO: test notification + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesResponseTest.java index 4f4db85ec..40b08a2d5 100644 --- a/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddDocusignEnvelopesResponse */ public class AddDocusignEnvelopesResponseTest { - private final AddDocusignEnvelopesResponse model = new AddDocusignEnvelopesResponse(); + private final AddDocusignEnvelopesResponse model = new AddDocusignEnvelopesResponse(); - /** - * Model tests for AddDocusignEnvelopesResponse - */ - @Test - public void testAddDocusignEnvelopesResponse() { - // TODO: test AddDocusignEnvelopesResponse - } + /** + * Model tests for AddDocusignEnvelopesResponse + */ + @Test + public void testAddDocusignEnvelopesResponse() { + // TODO: test AddDocusignEnvelopesResponse + } - /** - * Test the property 'envelopeId' - */ - @Test - public void envelopeIdTest() { - // TODO: test envelopeId - } + /** + * Test the property 'envelopeId' + */ + @Test + public void envelopeIdTest() { + // TODO: test envelopeId + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewRequestTest.java index 744bd71c8..87142c66f 100644 --- a/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for AddDocusignRecipientViewRequest */ public class AddDocusignRecipientViewRequestTest { - private final AddDocusignRecipientViewRequest model = new AddDocusignRecipientViewRequest(); - - /** - * Model tests for AddDocusignRecipientViewRequest - */ - @Test - public void testAddDocusignRecipientViewRequest() { - // TODO: test AddDocusignRecipientViewRequest - } - - /** - * Test the property 'environment' - */ - @Test - public void environmentTest() { - // TODO: test environment - } - - /** - * Test the property 'recipientView' - */ - @Test - public void recipientViewTest() { - // TODO: test recipientView - } + private final AddDocusignRecipientViewRequest model = new AddDocusignRecipientViewRequest(); + + /** + * Model tests for AddDocusignRecipientViewRequest + */ + @Test + public void testAddDocusignRecipientViewRequest() { + // TODO: test AddDocusignRecipientViewRequest + } + + /** + * Test the property 'environment' + */ + @Test + public void environmentTest() { + // TODO: test environment + } + + /** + * Test the property 'recipientView' + */ + @Test + public void recipientViewTest() { + // TODO: test recipientView + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewResponseTest.java index 60c608fec..99e46a689 100644 --- a/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddDocusignRecipientViewResponse */ public class AddDocusignRecipientViewResponseTest { - private final AddDocusignRecipientViewResponse model = new AddDocusignRecipientViewResponse(); + private final AddDocusignRecipientViewResponse model = new AddDocusignRecipientViewResponse(); - /** - * Model tests for AddDocusignRecipientViewResponse - */ - @Test - public void testAddDocusignRecipientViewResponse() { - // TODO: test AddDocusignRecipientViewResponse - } + /** + * Model tests for AddDocusignRecipientViewResponse + */ + @Test + public void testAddDocusignRecipientViewResponse() { + // TODO: test AddDocusignRecipientViewResponse + } - /** - * Test the property 'viewUrl' - */ - @Test - public void viewUrlTest() { - // TODO: test viewUrl - } + /** + * Test the property 'viewUrl' + */ + @Test + public void viewUrlTest() { + // TODO: test viewUrl + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityAttributeTest.java b/src/test/java/com/formkiq/client/model/AddEntityAttributeTest.java index 35f9eb0ff..1270f5df6 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,62 +30,62 @@ * Model tests for AddEntityAttribute */ public class AddEntityAttributeTest { - private final AddEntityAttribute model = new AddEntityAttribute(); + private final AddEntityAttribute model = new AddEntityAttribute(); - /** - * Model tests for AddEntityAttribute - */ - @Test - public void testAddEntityAttribute() { - // TODO: test AddEntityAttribute - } + /** + * Model tests for AddEntityAttribute + */ + @Test + public void testAddEntityAttribute() { + // TODO: test AddEntityAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityRequestTest.java b/src/test/java/com/formkiq/client/model/AddEntityRequestTest.java index d97d5f88e..832fcd6a8 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddEntityRequest */ public class AddEntityRequestTest { - private final AddEntityRequest model = new AddEntityRequest(); + private final AddEntityRequest model = new AddEntityRequest(); - /** - * Model tests for AddEntityRequest - */ - @Test - public void testAddEntityRequest() { - // TODO: test AddEntityRequest - } + /** + * Model tests for AddEntityRequest + */ + @Test + public void testAddEntityRequest() { + // TODO: test AddEntityRequest + } - /** - * Test the property 'entity' - */ - @Test - public void entityTest() { - // TODO: test entity - } + /** + * Test the property 'entity' + */ + @Test + public void entityTest() { + // TODO: test entity + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityResponseTest.java b/src/test/java/com/formkiq/client/model/AddEntityResponseTest.java index a21c9288a..43d65568e 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddEntityResponse */ public class AddEntityResponseTest { - private final AddEntityResponse model = new AddEntityResponse(); + private final AddEntityResponse model = new AddEntityResponse(); - /** - * Model tests for AddEntityResponse - */ - @Test - public void testAddEntityResponse() { - // TODO: test AddEntityResponse - } + /** + * Model tests for AddEntityResponse + */ + @Test + public void testAddEntityResponse() { + // TODO: test AddEntityResponse + } - /** - * Test the property 'entityId' - */ - @Test - public void entityIdTest() { - // TODO: test entityId - } + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityTest.java b/src/test/java/com/formkiq/client/model/AddEntityTest.java index e79f57975..317e0ac4b 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for AddEntity */ public class AddEntityTest { - private final AddEntity model = new AddEntity(); - - /** - * Model tests for AddEntity - */ - @Test - public void testAddEntity() { - // TODO: test AddEntity - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final AddEntity model = new AddEntity(); + + /** + * Model tests for AddEntity + */ + @Test + public void testAddEntity() { + // TODO: test AddEntity + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityTypeRequestTest.java b/src/test/java/com/formkiq/client/model/AddEntityTypeRequestTest.java index 46f393126..cfaf2c606 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityTypeRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityTypeRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddEntityTypeRequest */ public class AddEntityTypeRequestTest { - private final AddEntityTypeRequest model = new AddEntityTypeRequest(); + private final AddEntityTypeRequest model = new AddEntityTypeRequest(); - /** - * Model tests for AddEntityTypeRequest - */ - @Test - public void testAddEntityTypeRequest() { - // TODO: test AddEntityTypeRequest - } + /** + * Model tests for AddEntityTypeRequest + */ + @Test + public void testAddEntityTypeRequest() { + // TODO: test AddEntityTypeRequest + } - /** - * Test the property 'entityType' - */ - @Test - public void entityTypeTest() { - // TODO: test entityType - } + /** + * Test the property 'entityType' + */ + @Test + public void entityTypeTest() { + // TODO: test entityType + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityTypeResponseTest.java b/src/test/java/com/formkiq/client/model/AddEntityTypeResponseTest.java index 22b2d641a..f1a4ba7c1 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityTypeResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityTypeResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddEntityTypeResponse */ public class AddEntityTypeResponseTest { - private final AddEntityTypeResponse model = new AddEntityTypeResponse(); + private final AddEntityTypeResponse model = new AddEntityTypeResponse(); - /** - * Model tests for AddEntityTypeResponse - */ - @Test - public void testAddEntityTypeResponse() { - // TODO: test AddEntityTypeResponse - } + /** + * Model tests for AddEntityTypeResponse + */ + @Test + public void testAddEntityTypeResponse() { + // TODO: test AddEntityTypeResponse + } - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityTypeTest.java b/src/test/java/com/formkiq/client/model/AddEntityTypeTest.java index 4bf1e5ace..7eae28bde 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityTypeTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for AddEntityType */ public class AddEntityTypeTest { - private final AddEntityType model = new AddEntityType(); - - /** - * Model tests for AddEntityType - */ - @Test - public void testAddEntityType() { - // TODO: test AddEntityType - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + private final AddEntityType model = new AddEntityType(); + + /** + * Model tests for AddEntityType + */ + @Test + public void testAddEntityType() { + // TODO: test AddEntityType + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } } diff --git a/src/test/java/com/formkiq/client/model/AddFolderPermissionTest.java b/src/test/java/com/formkiq/client/model/AddFolderPermissionTest.java index 148d0c62a..8654d0219 100644 --- a/src/test/java/com/formkiq/client/model/AddFolderPermissionTest.java +++ b/src/test/java/com/formkiq/client/model/AddFolderPermissionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for AddFolderPermission */ public class AddFolderPermissionTest { - private final AddFolderPermission model = new AddFolderPermission(); - - /** - * Model tests for AddFolderPermission - */ - @Test - public void testAddFolderPermission() { - // TODO: test AddFolderPermission - } - - /** - * Test the property 'roleName' - */ - @Test - public void roleNameTest() { - // TODO: test roleName - } - - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + private final AddFolderPermission model = new AddFolderPermission(); + + /** + * Model tests for AddFolderPermission + */ + @Test + public void testAddFolderPermission() { + // TODO: test AddFolderPermission + } + + /** + * Test the property 'roleName' + */ + @Test + public void roleNameTest() { + // TODO: test roleName + } + + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/AddFolderRequestTest.java b/src/test/java/com/formkiq/client/model/AddFolderRequestTest.java index c94161655..561533940 100644 --- a/src/test/java/com/formkiq/client/model/AddFolderRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddFolderRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddFolderRequest */ public class AddFolderRequestTest { - private final AddFolderRequest model = new AddFolderRequest(); + private final AddFolderRequest model = new AddFolderRequest(); - /** - * Model tests for AddFolderRequest - */ - @Test - public void testAddFolderRequest() { - // TODO: test AddFolderRequest - } + /** + * Model tests for AddFolderRequest + */ + @Test + public void testAddFolderRequest() { + // TODO: test AddFolderRequest + } - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } } diff --git a/src/test/java/com/formkiq/client/model/AddFolderResponseTest.java b/src/test/java/com/formkiq/client/model/AddFolderResponseTest.java index bc858f2e1..770df79aa 100644 --- a/src/test/java/com/formkiq/client/model/AddFolderResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddFolderResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for AddFolderResponse */ public class AddFolderResponseTest { - private final AddFolderResponse model = new AddFolderResponse(); - - /** - * Model tests for AddFolderResponse - */ - @Test - public void testAddFolderResponse() { - // TODO: test AddFolderResponse - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'indexKey' - */ - @Test - public void indexKeyTest() { - // TODO: test indexKey - } + private final AddFolderResponse model = new AddFolderResponse(); + + /** + * Model tests for AddFolderResponse + */ + @Test + public void testAddFolderResponse() { + // TODO: test AddFolderResponse + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'indexKey' + */ + @Test + public void indexKeyTest() { + // TODO: test indexKey + } } diff --git a/src/test/java/com/formkiq/client/model/AddFolderShareRequestTest.java b/src/test/java/com/formkiq/client/model/AddFolderShareRequestTest.java index c09b664dd..92dc3ca3a 100644 --- a/src/test/java/com/formkiq/client/model/AddFolderShareRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddFolderShareRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddFolderShareRequest */ public class AddFolderShareRequestTest { - private final AddFolderShareRequest model = new AddFolderShareRequest(); + private final AddFolderShareRequest model = new AddFolderShareRequest(); - /** - * Model tests for AddFolderShareRequest - */ - @Test - public void testAddFolderShareRequest() { - // TODO: test AddFolderShareRequest - } + /** + * Model tests for AddFolderShareRequest + */ + @Test + public void testAddFolderShareRequest() { + // TODO: test AddFolderShareRequest + } - /** - * Test the property 'share' - */ - @Test - public void shareTest() { - // TODO: test share - } + /** + * Test the property 'share' + */ + @Test + public void shareTest() { + // TODO: test share + } } diff --git a/src/test/java/com/formkiq/client/model/AddFolderShareResponseTest.java b/src/test/java/com/formkiq/client/model/AddFolderShareResponseTest.java index 3502350d3..484f44421 100644 --- a/src/test/java/com/formkiq/client/model/AddFolderShareResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddFolderShareResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for AddFolderShareResponse */ public class AddFolderShareResponseTest { - private final AddFolderShareResponse model = new AddFolderShareResponse(); - - /** - * Model tests for AddFolderShareResponse - */ - @Test - public void testAddFolderShareResponse() { - // TODO: test AddFolderShareResponse - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'shareKey' - */ - @Test - public void shareKeyTest() { - // TODO: test shareKey - } + private final AddFolderShareResponse model = new AddFolderShareResponse(); + + /** + * Model tests for AddFolderShareResponse + */ + @Test + public void testAddFolderShareResponse() { + // TODO: test AddFolderShareResponse + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'shareKey' + */ + @Test + public void shareKeyTest() { + // TODO: test shareKey + } } diff --git a/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportRequestTest.java b/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportRequestTest.java index f1d0c86bc..2ce550e9b 100644 --- a/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for AddGoogleDocumentExportRequest */ public class AddGoogleDocumentExportRequestTest { - private final AddGoogleDocumentExportRequest model = new AddGoogleDocumentExportRequest(); - - /** - * Model tests for AddGoogleDocumentExportRequest - */ - @Test - public void testAddGoogleDocumentExportRequest() { - // TODO: test AddGoogleDocumentExportRequest - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'outputType' - */ - @Test - public void outputTypeTest() { - // TODO: test outputType - } + private final AddGoogleDocumentExportRequest model = new AddGoogleDocumentExportRequest(); + + /** + * Model tests for AddGoogleDocumentExportRequest + */ + @Test + public void testAddGoogleDocumentExportRequest() { + // TODO: test AddGoogleDocumentExportRequest + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'outputType' + */ + @Test + public void outputTypeTest() { + // TODO: test outputType + } } diff --git a/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportResponseTest.java b/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportResponseTest.java index 521781808..0cec6db79 100644 --- a/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddGoogleDocumentExportResponse */ public class AddGoogleDocumentExportResponseTest { - private final AddGoogleDocumentExportResponse model = new AddGoogleDocumentExportResponse(); + private final AddGoogleDocumentExportResponse model = new AddGoogleDocumentExportResponse(); - /** - * Model tests for AddGoogleDocumentExportResponse - */ - @Test - public void testAddGoogleDocumentExportResponse() { - // TODO: test AddGoogleDocumentExportResponse - } + /** + * Model tests for AddGoogleDocumentExportResponse + */ + @Test + public void testAddGoogleDocumentExportResponse() { + // TODO: test AddGoogleDocumentExportResponse + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } } diff --git a/src/test/java/com/formkiq/client/model/AddGroupRequestTest.java b/src/test/java/com/formkiq/client/model/AddGroupRequestTest.java index a01cc363e..46d5ef9c8 100644 --- a/src/test/java/com/formkiq/client/model/AddGroupRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddGroupRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddGroupRequest */ public class AddGroupRequestTest { - private final AddGroupRequest model = new AddGroupRequest(); + private final AddGroupRequest model = new AddGroupRequest(); - /** - * Model tests for AddGroupRequest - */ - @Test - public void testAddGroupRequest() { - // TODO: test AddGroupRequest - } + /** + * Model tests for AddGroupRequest + */ + @Test + public void testAddGroupRequest() { + // TODO: test AddGroupRequest + } - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } } diff --git a/src/test/java/com/formkiq/client/model/AddGroupTest.java b/src/test/java/com/formkiq/client/model/AddGroupTest.java index ef14ce273..c4db7054e 100644 --- a/src/test/java/com/formkiq/client/model/AddGroupTest.java +++ b/src/test/java/com/formkiq/client/model/AddGroupTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for AddGroup */ public class AddGroupTest { - private final AddGroup model = new AddGroup(); - - /** - * Model tests for AddGroup - */ - @Test - public void testAddGroup() { - // TODO: test AddGroup - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + private final AddGroup model = new AddGroup(); + + /** + * Model tests for AddGroup + */ + @Test + public void testAddGroup() { + // TODO: test AddGroup + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleRequestTest.java b/src/test/java/com/formkiq/client/model/AddLocaleRequestTest.java index d72215c3e..325d4aeaa 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddLocaleRequest */ public class AddLocaleRequestTest { - private final AddLocaleRequest model = new AddLocaleRequest(); + private final AddLocaleRequest model = new AddLocaleRequest(); - /** - * Model tests for AddLocaleRequest - */ - @Test - public void testAddLocaleRequest() { - // TODO: test AddLocaleRequest - } + /** + * Model tests for AddLocaleRequest + */ + @Test + public void testAddLocaleRequest() { + // TODO: test AddLocaleRequest + } - /** - * Test the property 'locale' - */ - @Test - public void localeTest() { - // TODO: test locale - } + /** + * Test the property 'locale' + */ + @Test + public void localeTest() { + // TODO: test locale + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleResourceClassificationItemTest.java b/src/test/java/com/formkiq/client/model/AddLocaleResourceClassificationItemTest.java index 8128332cf..8a3d569be 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleResourceClassificationItemTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleResourceClassificationItemTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,55 +28,54 @@ * Model tests for AddLocaleResourceClassificationItem */ public class AddLocaleResourceClassificationItemTest { - private final AddLocaleResourceClassificationItem model = - new AddLocaleResourceClassificationItem(); + private final AddLocaleResourceClassificationItem model = new AddLocaleResourceClassificationItem(); - /** - * Model tests for AddLocaleResourceClassificationItem - */ - @Test - public void testAddLocaleResourceClassificationItem() { - // TODO: test AddLocaleResourceClassificationItem - } + /** + * Model tests for AddLocaleResourceClassificationItem + */ + @Test + public void testAddLocaleResourceClassificationItem() { + // TODO: test AddLocaleResourceClassificationItem + } - /** - * Test the property 'itemType' - */ - @Test - public void itemTypeTest() { - // TODO: test itemType - } + /** + * Test the property 'itemType' + */ + @Test + public void itemTypeTest() { + // TODO: test itemType + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValue' - */ - @Test - public void allowedValueTest() { - // TODO: test allowedValue - } + /** + * Test the property 'allowedValue' + */ + @Test + public void allowedValueTest() { + // TODO: test allowedValue + } - /** - * Test the property 'localizedValue' - */ - @Test - public void localizedValueTest() { - // TODO: test localizedValue - } + /** + * Test the property 'localizedValue' + */ + @Test + public void localizedValueTest() { + // TODO: test localizedValue + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleResourceInterfaceItemTest.java b/src/test/java/com/formkiq/client/model/AddLocaleResourceInterfaceItemTest.java index 9c36f73f5..f37bd4390 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleResourceInterfaceItemTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleResourceInterfaceItemTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,38 +28,38 @@ * Model tests for AddLocaleResourceInterfaceItem */ public class AddLocaleResourceInterfaceItemTest { - private final AddLocaleResourceInterfaceItem model = new AddLocaleResourceInterfaceItem(); + private final AddLocaleResourceInterfaceItem model = new AddLocaleResourceInterfaceItem(); - /** - * Model tests for AddLocaleResourceInterfaceItem - */ - @Test - public void testAddLocaleResourceInterfaceItem() { - // TODO: test AddLocaleResourceInterfaceItem - } + /** + * Model tests for AddLocaleResourceInterfaceItem + */ + @Test + public void testAddLocaleResourceInterfaceItem() { + // TODO: test AddLocaleResourceInterfaceItem + } - /** - * Test the property 'itemType' - */ - @Test - public void itemTypeTest() { - // TODO: test itemType - } + /** + * Test the property 'itemType' + */ + @Test + public void itemTypeTest() { + // TODO: test itemType + } - /** - * Test the property 'localizedValue' - */ - @Test - public void localizedValueTest() { - // TODO: test localizedValue - } + /** + * Test the property 'localizedValue' + */ + @Test + public void localizedValueTest() { + // TODO: test localizedValue + } - /** - * Test the property 'interfaceKey' - */ - @Test - public void interfaceKeyTest() { - // TODO: test interfaceKey - } + /** + * Test the property 'interfaceKey' + */ + @Test + public void interfaceKeyTest() { + // TODO: test interfaceKey + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleResourceItemRequestTest.java b/src/test/java/com/formkiq/client/model/AddLocaleResourceItemRequestTest.java index 0a7a86dd2..b484481b5 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleResourceItemRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleResourceItemRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddLocaleResourceItemRequest */ public class AddLocaleResourceItemRequestTest { - private final AddLocaleResourceItemRequest model = new AddLocaleResourceItemRequest(); + private final AddLocaleResourceItemRequest model = new AddLocaleResourceItemRequest(); - /** - * Model tests for AddLocaleResourceItemRequest - */ - @Test - public void testAddLocaleResourceItemRequest() { - // TODO: test AddLocaleResourceItemRequest - } + /** + * Model tests for AddLocaleResourceItemRequest + */ + @Test + public void testAddLocaleResourceItemRequest() { + // TODO: test AddLocaleResourceItemRequest + } - /** - * Test the property 'resourceItem' - */ - @Test - public void resourceItemTest() { - // TODO: test resourceItem - } + /** + * Test the property 'resourceItem' + */ + @Test + public void resourceItemTest() { + // TODO: test resourceItem + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleResourceItemResponseTest.java b/src/test/java/com/formkiq/client/model/AddLocaleResourceItemResponseTest.java index 38022de23..c09f80454 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleResourceItemResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleResourceItemResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddLocaleResourceItemResponse */ public class AddLocaleResourceItemResponseTest { - private final AddLocaleResourceItemResponse model = new AddLocaleResourceItemResponse(); + private final AddLocaleResourceItemResponse model = new AddLocaleResourceItemResponse(); - /** - * Model tests for AddLocaleResourceItemResponse - */ - @Test - public void testAddLocaleResourceItemResponse() { - // TODO: test AddLocaleResourceItemResponse - } + /** + * Model tests for AddLocaleResourceItemResponse + */ + @Test + public void testAddLocaleResourceItemResponse() { + // TODO: test AddLocaleResourceItemResponse + } - /** - * Test the property 'itemKey' - */ - @Test - public void itemKeyTest() { - // TODO: test itemKey - } + /** + * Test the property 'itemKey' + */ + @Test + public void itemKeyTest() { + // TODO: test itemKey + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleResourceSchemaItemTest.java b/src/test/java/com/formkiq/client/model/AddLocaleResourceSchemaItemTest.java index 07088a360..9059e9344 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleResourceSchemaItemTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleResourceSchemaItemTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,46 +28,46 @@ * Model tests for AddLocaleResourceSchemaItem */ public class AddLocaleResourceSchemaItemTest { - private final AddLocaleResourceSchemaItem model = new AddLocaleResourceSchemaItem(); + private final AddLocaleResourceSchemaItem model = new AddLocaleResourceSchemaItem(); - /** - * Model tests for AddLocaleResourceSchemaItem - */ - @Test - public void testAddLocaleResourceSchemaItem() { - // TODO: test AddLocaleResourceSchemaItem - } + /** + * Model tests for AddLocaleResourceSchemaItem + */ + @Test + public void testAddLocaleResourceSchemaItem() { + // TODO: test AddLocaleResourceSchemaItem + } - /** - * Test the property 'itemType' - */ - @Test - public void itemTypeTest() { - // TODO: test itemType - } + /** + * Test the property 'itemType' + */ + @Test + public void itemTypeTest() { + // TODO: test itemType + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValue' - */ - @Test - public void allowedValueTest() { - // TODO: test allowedValue - } + /** + * Test the property 'allowedValue' + */ + @Test + public void allowedValueTest() { + // TODO: test allowedValue + } - /** - * Test the property 'localizedValue' - */ - @Test - public void localizedValueTest() { - // TODO: test localizedValue - } + /** + * Test the property 'localizedValue' + */ + @Test + public void localizedValueTest() { + // TODO: test localizedValue + } } diff --git a/src/test/java/com/formkiq/client/model/AddMappingRequestTest.java b/src/test/java/com/formkiq/client/model/AddMappingRequestTest.java index 65f633816..5fb7f8825 100644 --- a/src/test/java/com/formkiq/client/model/AddMappingRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddMappingRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddMappingRequest */ public class AddMappingRequestTest { - private final AddMappingRequest model = new AddMappingRequest(); + private final AddMappingRequest model = new AddMappingRequest(); - /** - * Model tests for AddMappingRequest - */ - @Test - public void testAddMappingRequest() { - // TODO: test AddMappingRequest - } + /** + * Model tests for AddMappingRequest + */ + @Test + public void testAddMappingRequest() { + // TODO: test AddMappingRequest + } - /** - * Test the property 'mapping' - */ - @Test - public void mappingTest() { - // TODO: test mapping - } + /** + * Test the property 'mapping' + */ + @Test + public void mappingTest() { + // TODO: test mapping + } } diff --git a/src/test/java/com/formkiq/client/model/AddMappingResponseTest.java b/src/test/java/com/formkiq/client/model/AddMappingResponseTest.java index 9b9c9a553..6f3b4b7cb 100644 --- a/src/test/java/com/formkiq/client/model/AddMappingResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddMappingResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddMappingResponse */ public class AddMappingResponseTest { - private final AddMappingResponse model = new AddMappingResponse(); + private final AddMappingResponse model = new AddMappingResponse(); - /** - * Model tests for AddMappingResponse - */ - @Test - public void testAddMappingResponse() { - // TODO: test AddMappingResponse - } + /** + * Model tests for AddMappingResponse + */ + @Test + public void testAddMappingResponse() { + // TODO: test AddMappingResponse + } - /** - * Test the property 'mappingId' - */ - @Test - public void mappingIdTest() { - // TODO: test mappingId - } + /** + * Test the property 'mappingId' + */ + @Test + public void mappingIdTest() { + // TODO: test mappingId + } } diff --git a/src/test/java/com/formkiq/client/model/AddMappingTest.java b/src/test/java/com/formkiq/client/model/AddMappingTest.java index 21efb54e0..6d25041a8 100644 --- a/src/test/java/com/formkiq/client/model/AddMappingTest.java +++ b/src/test/java/com/formkiq/client/model/AddMappingTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,38 +30,38 @@ * Model tests for AddMapping */ public class AddMappingTest { - private final AddMapping model = new AddMapping(); + private final AddMapping model = new AddMapping(); - /** - * Model tests for AddMapping - */ - @Test - public void testAddMapping() { - // TODO: test AddMapping - } + /** + * Model tests for AddMapping + */ + @Test + public void testAddMapping() { + // TODO: test AddMapping + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddNigoRequestTest.java b/src/test/java/com/formkiq/client/model/AddNigoRequestTest.java index bff1cf55a..a97eec53d 100644 --- a/src/test/java/com/formkiq/client/model/AddNigoRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddNigoRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddNigoRequest */ public class AddNigoRequestTest { - private final AddNigoRequest model = new AddNigoRequest(); + private final AddNigoRequest model = new AddNigoRequest(); - /** - * Model tests for AddNigoRequest - */ - @Test - public void testAddNigoRequest() { - // TODO: test AddNigoRequest - } + /** + * Model tests for AddNigoRequest + */ + @Test + public void testAddNigoRequest() { + // TODO: test AddNigoRequest + } - /** - * Test the property 'nigo' - */ - @Test - public void nigoTest() { - // TODO: test nigo - } + /** + * Test the property 'nigo' + */ + @Test + public void nigoTest() { + // TODO: test nigo + } } diff --git a/src/test/java/com/formkiq/client/model/AddNigoResponseTest.java b/src/test/java/com/formkiq/client/model/AddNigoResponseTest.java index 320f28406..7a09df1df 100644 --- a/src/test/java/com/formkiq/client/model/AddNigoResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddNigoResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddNigoResponse */ public class AddNigoResponseTest { - private final AddNigoResponse model = new AddNigoResponse(); + private final AddNigoResponse model = new AddNigoResponse(); - /** - * Model tests for AddNigoResponse - */ - @Test - public void testAddNigoResponse() { - // TODO: test AddNigoResponse - } + /** + * Model tests for AddNigoResponse + */ + @Test + public void testAddNigoResponse() { + // TODO: test AddNigoResponse + } - /** - * Test the property 'nigoId' - */ - @Test - public void nigoIdTest() { - // TODO: test nigoId - } + /** + * Test the property 'nigoId' + */ + @Test + public void nigoIdTest() { + // TODO: test nigoId + } } diff --git a/src/test/java/com/formkiq/client/model/AddNigoTest.java b/src/test/java/com/formkiq/client/model/AddNigoTest.java index 3522ba0a4..850c44e82 100644 --- a/src/test/java/com/formkiq/client/model/AddNigoTest.java +++ b/src/test/java/com/formkiq/client/model/AddNigoTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,86 +32,86 @@ * Model tests for AddNigo */ public class AddNigoTest { - private final AddNigo model = new AddNigo(); + private final AddNigo model = new AddNigo(); - /** - * Model tests for AddNigo - */ - @Test - public void testAddNigo() { - // TODO: test AddNigo - } + /** + * Model tests for AddNigo + */ + @Test + public void testAddNigo() { + // TODO: test AddNigo + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/AddQueueRequestTest.java b/src/test/java/com/formkiq/client/model/AddQueueRequestTest.java index 255fb7894..05f756ae8 100644 --- a/src/test/java/com/formkiq/client/model/AddQueueRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddQueueRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddQueueRequest */ public class AddQueueRequestTest { - private final AddQueueRequest model = new AddQueueRequest(); + private final AddQueueRequest model = new AddQueueRequest(); - /** - * Model tests for AddQueueRequest - */ - @Test - public void testAddQueueRequest() { - // TODO: test AddQueueRequest - } + /** + * Model tests for AddQueueRequest + */ + @Test + public void testAddQueueRequest() { + // TODO: test AddQueueRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } } diff --git a/src/test/java/com/formkiq/client/model/AddQueueResponseTest.java b/src/test/java/com/formkiq/client/model/AddQueueResponseTest.java index 695db0f88..7470b3950 100644 --- a/src/test/java/com/formkiq/client/model/AddQueueResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddQueueResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddQueueResponse */ public class AddQueueResponseTest { - private final AddQueueResponse model = new AddQueueResponse(); + private final AddQueueResponse model = new AddQueueResponse(); - /** - * Model tests for AddQueueResponse - */ - @Test - public void testAddQueueResponse() { - // TODO: test AddQueueResponse - } + /** + * Model tests for AddQueueResponse + */ + @Test + public void testAddQueueResponse() { + // TODO: test AddQueueResponse + } - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } } diff --git a/src/test/java/com/formkiq/client/model/AddReindexDocumentRequestTest.java b/src/test/java/com/formkiq/client/model/AddReindexDocumentRequestTest.java index 0d72ace1c..aafef7a9e 100644 --- a/src/test/java/com/formkiq/client/model/AddReindexDocumentRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddReindexDocumentRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddReindexDocumentRequest */ public class AddReindexDocumentRequestTest { - private final AddReindexDocumentRequest model = new AddReindexDocumentRequest(); + private final AddReindexDocumentRequest model = new AddReindexDocumentRequest(); - /** - * Model tests for AddReindexDocumentRequest - */ - @Test - public void testAddReindexDocumentRequest() { - // TODO: test AddReindexDocumentRequest - } + /** + * Model tests for AddReindexDocumentRequest + */ + @Test + public void testAddReindexDocumentRequest() { + // TODO: test AddReindexDocumentRequest + } - /** - * Test the property 'target' - */ - @Test - public void targetTest() { - // TODO: test target - } + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } } diff --git a/src/test/java/com/formkiq/client/model/AddResourceItemTest.java b/src/test/java/com/formkiq/client/model/AddResourceItemTest.java index b78279d2a..4a48f06ab 100644 --- a/src/test/java/com/formkiq/client/model/AddResourceItemTest.java +++ b/src/test/java/com/formkiq/client/model/AddResourceItemTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,62 +31,62 @@ * Model tests for AddResourceItem */ public class AddResourceItemTest { - private final AddResourceItem model = new AddResourceItem(); + private final AddResourceItem model = new AddResourceItem(); - /** - * Model tests for AddResourceItem - */ - @Test - public void testAddResourceItem() { - // TODO: test AddResourceItem - } + /** + * Model tests for AddResourceItem + */ + @Test + public void testAddResourceItem() { + // TODO: test AddResourceItem + } - /** - * Test the property 'itemType' - */ - @Test - public void itemTypeTest() { - // TODO: test itemType - } + /** + * Test the property 'itemType' + */ + @Test + public void itemTypeTest() { + // TODO: test itemType + } - /** - * Test the property 'localizedValue' - */ - @Test - public void localizedValueTest() { - // TODO: test localizedValue - } + /** + * Test the property 'localizedValue' + */ + @Test + public void localizedValueTest() { + // TODO: test localizedValue + } - /** - * Test the property 'interfaceKey' - */ - @Test - public void interfaceKeyTest() { - // TODO: test interfaceKey - } + /** + * Test the property 'interfaceKey' + */ + @Test + public void interfaceKeyTest() { + // TODO: test interfaceKey + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValue' - */ - @Test - public void allowedValueTest() { - // TODO: test allowedValue - } + /** + * Test the property 'allowedValue' + */ + @Test + public void allowedValueTest() { + // TODO: test allowedValue + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } } diff --git a/src/test/java/com/formkiq/client/model/AddResponseTest.java b/src/test/java/com/formkiq/client/model/AddResponseTest.java index 962b95f51..8aac15c16 100644 --- a/src/test/java/com/formkiq/client/model/AddResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddResponse */ public class AddResponseTest { - private final AddResponse model = new AddResponse(); + private final AddResponse model = new AddResponse(); - /** - * Model tests for AddResponse - */ - @Test - public void testAddResponse() { - // TODO: test AddResponse - } + /** + * Model tests for AddResponse + */ + @Test + public void testAddResponse() { + // TODO: test AddResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddRuleRequestTest.java b/src/test/java/com/formkiq/client/model/AddRuleRequestTest.java index 6953bbca4..b41a54e89 100644 --- a/src/test/java/com/formkiq/client/model/AddRuleRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddRuleRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddRuleRequest */ public class AddRuleRequestTest { - private final AddRuleRequest model = new AddRuleRequest(); + private final AddRuleRequest model = new AddRuleRequest(); - /** - * Model tests for AddRuleRequest - */ - @Test - public void testAddRuleRequest() { - // TODO: test AddRuleRequest - } + /** + * Model tests for AddRuleRequest + */ + @Test + public void testAddRuleRequest() { + // TODO: test AddRuleRequest + } - /** - * Test the property 'rule' - */ - @Test - public void ruleTest() { - // TODO: test rule - } + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } } diff --git a/src/test/java/com/formkiq/client/model/AddRuleResponseTest.java b/src/test/java/com/formkiq/client/model/AddRuleResponseTest.java index c5f94ed41..a8a75f900 100644 --- a/src/test/java/com/formkiq/client/model/AddRuleResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddRuleResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddRuleResponse */ public class AddRuleResponseTest { - private final AddRuleResponse model = new AddRuleResponse(); + private final AddRuleResponse model = new AddRuleResponse(); - /** - * Model tests for AddRuleResponse - */ - @Test - public void testAddRuleResponse() { - // TODO: test AddRuleResponse - } + /** + * Model tests for AddRuleResponse + */ + @Test + public void testAddRuleResponse() { + // TODO: test AddRuleResponse + } - /** - * Test the property 'ruleId' - */ - @Test - public void ruleIdTest() { - // TODO: test ruleId - } + /** + * Test the property 'ruleId' + */ + @Test + public void ruleIdTest() { + // TODO: test ruleId + } } diff --git a/src/test/java/com/formkiq/client/model/AddRuleTest.java b/src/test/java/com/formkiq/client/model/AddRuleTest.java index cd46dcc82..a778174a8 100644 --- a/src/test/java/com/formkiq/client/model/AddRuleTest.java +++ b/src/test/java/com/formkiq/client/model/AddRuleTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,54 +30,54 @@ * Model tests for AddRule */ public class AddRuleTest { - private final AddRule model = new AddRule(); + private final AddRule model = new AddRule(); - /** - * Model tests for AddRule - */ - @Test - public void testAddRule() { - // TODO: test AddRule - } + /** + * Model tests for AddRule + */ + @Test + public void testAddRule() { + // TODO: test AddRule + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'conditions' - */ - @Test - public void conditionsTest() { - // TODO: test conditions - } + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } } diff --git a/src/test/java/com/formkiq/client/model/AddRulesetRequestTest.java b/src/test/java/com/formkiq/client/model/AddRulesetRequestTest.java index 7834101f7..ea0791f17 100644 --- a/src/test/java/com/formkiq/client/model/AddRulesetRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddRulesetRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddRulesetRequest */ public class AddRulesetRequestTest { - private final AddRulesetRequest model = new AddRulesetRequest(); + private final AddRulesetRequest model = new AddRulesetRequest(); - /** - * Model tests for AddRulesetRequest - */ - @Test - public void testAddRulesetRequest() { - // TODO: test AddRulesetRequest - } + /** + * Model tests for AddRulesetRequest + */ + @Test + public void testAddRulesetRequest() { + // TODO: test AddRulesetRequest + } - /** - * Test the property 'ruleset' - */ - @Test - public void rulesetTest() { - // TODO: test ruleset - } + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } } diff --git a/src/test/java/com/formkiq/client/model/AddRulesetResponseTest.java b/src/test/java/com/formkiq/client/model/AddRulesetResponseTest.java index 35f069796..3f1c740c9 100644 --- a/src/test/java/com/formkiq/client/model/AddRulesetResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddRulesetResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddRulesetResponse */ public class AddRulesetResponseTest { - private final AddRulesetResponse model = new AddRulesetResponse(); + private final AddRulesetResponse model = new AddRulesetResponse(); - /** - * Model tests for AddRulesetResponse - */ - @Test - public void testAddRulesetResponse() { - // TODO: test AddRulesetResponse - } + /** + * Model tests for AddRulesetResponse + */ + @Test + public void testAddRulesetResponse() { + // TODO: test AddRulesetResponse + } - /** - * Test the property 'rulesetId' - */ - @Test - public void rulesetIdTest() { - // TODO: test rulesetId - } + /** + * Test the property 'rulesetId' + */ + @Test + public void rulesetIdTest() { + // TODO: test rulesetId + } } diff --git a/src/test/java/com/formkiq/client/model/AddRulesetTest.java b/src/test/java/com/formkiq/client/model/AddRulesetTest.java index 8a07caca6..59cef08d8 100644 --- a/src/test/java/com/formkiq/client/model/AddRulesetTest.java +++ b/src/test/java/com/formkiq/client/model/AddRulesetTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,46 +29,46 @@ * Model tests for AddRuleset */ public class AddRulesetTest { - private final AddRuleset model = new AddRuleset(); + private final AddRuleset model = new AddRuleset(); - /** - * Model tests for AddRuleset - */ - @Test - public void testAddRuleset() { - // TODO: test AddRuleset - } + /** + * Model tests for AddRuleset + */ + @Test + public void testAddRuleset() { + // TODO: test AddRuleset + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/AddShareTest.java b/src/test/java/com/formkiq/client/model/AddShareTest.java index cecd21b9c..8eea5f87c 100644 --- a/src/test/java/com/formkiq/client/model/AddShareTest.java +++ b/src/test/java/com/formkiq/client/model/AddShareTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for AddShare */ public class AddShareTest { - private final AddShare model = new AddShare(); - - /** - * Model tests for AddShare - */ - @Test - public void testAddShare() { - // TODO: test AddShare - } - - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } - - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + private final AddShare model = new AddShare(); + + /** + * Model tests for AddShare + */ + @Test + public void testAddShare() { + // TODO: test AddShare + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/AddSiteRequestTest.java b/src/test/java/com/formkiq/client/model/AddSiteRequestTest.java index 99f7ef2c1..f9dc41932 100644 --- a/src/test/java/com/formkiq/client/model/AddSiteRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddSiteRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddSiteRequest */ public class AddSiteRequestTest { - private final AddSiteRequest model = new AddSiteRequest(); + private final AddSiteRequest model = new AddSiteRequest(); - /** - * Model tests for AddSiteRequest - */ - @Test - public void testAddSiteRequest() { - // TODO: test AddSiteRequest - } + /** + * Model tests for AddSiteRequest + */ + @Test + public void testAddSiteRequest() { + // TODO: test AddSiteRequest + } - /** - * Test the property 'site' - */ - @Test - public void siteTest() { - // TODO: test site - } + /** + * Test the property 'site' + */ + @Test + public void siteTest() { + // TODO: test site + } } diff --git a/src/test/java/com/formkiq/client/model/AddSiteTest.java b/src/test/java/com/formkiq/client/model/AddSiteTest.java index 3401c1ec1..6cc283a19 100644 --- a/src/test/java/com/formkiq/client/model/AddSiteTest.java +++ b/src/test/java/com/formkiq/client/model/AddSiteTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,38 +28,38 @@ * Model tests for AddSite */ public class AddSiteTest { - private final AddSite model = new AddSite(); + private final AddSite model = new AddSite(); - /** - * Model tests for AddSite - */ - @Test - public void testAddSite() { - // TODO: test AddSite - } + /** + * Model tests for AddSite + */ + @Test + public void testAddSite() { + // TODO: test AddSite + } - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } - /** - * Test the property 'title' - */ - @Test - public void titleTest() { - // TODO: test title - } + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/AddTaskRequestTest.java b/src/test/java/com/formkiq/client/model/AddTaskRequestTest.java index 3270a2e35..f1dbca2b9 100644 --- a/src/test/java/com/formkiq/client/model/AddTaskRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddTaskRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddTaskRequest */ public class AddTaskRequestTest { - private final AddTaskRequest model = new AddTaskRequest(); + private final AddTaskRequest model = new AddTaskRequest(); - /** - * Model tests for AddTaskRequest - */ - @Test - public void testAddTaskRequest() { - // TODO: test AddTaskRequest - } + /** + * Model tests for AddTaskRequest + */ + @Test + public void testAddTaskRequest() { + // TODO: test AddTaskRequest + } - /** - * Test the property 'task' - */ - @Test - public void taskTest() { - // TODO: test task - } + /** + * Test the property 'task' + */ + @Test + public void taskTest() { + // TODO: test task + } } diff --git a/src/test/java/com/formkiq/client/model/AddTaskResponseTest.java b/src/test/java/com/formkiq/client/model/AddTaskResponseTest.java index 2b3159d1c..09d45ebfc 100644 --- a/src/test/java/com/formkiq/client/model/AddTaskResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddTaskResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddTaskResponse */ public class AddTaskResponseTest { - private final AddTaskResponse model = new AddTaskResponse(); + private final AddTaskResponse model = new AddTaskResponse(); - /** - * Model tests for AddTaskResponse - */ - @Test - public void testAddTaskResponse() { - // TODO: test AddTaskResponse - } + /** + * Model tests for AddTaskResponse + */ + @Test + public void testAddTaskResponse() { + // TODO: test AddTaskResponse + } - /** - * Test the property 'taskId' - */ - @Test - public void taskIdTest() { - // TODO: test taskId - } + /** + * Test the property 'taskId' + */ + @Test + public void taskIdTest() { + // TODO: test taskId + } } diff --git a/src/test/java/com/formkiq/client/model/AddTaskTest.java b/src/test/java/com/formkiq/client/model/AddTaskTest.java index 70075bbd4..7e47ebdac 100644 --- a/src/test/java/com/formkiq/client/model/AddTaskTest.java +++ b/src/test/java/com/formkiq/client/model/AddTaskTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,86 +32,86 @@ * Model tests for AddTask */ public class AddTaskTest { - private final AddTask model = new AddTask(); + private final AddTask model = new AddTask(); - /** - * Model tests for AddTask - */ - @Test - public void testAddTask() { - // TODO: test AddTask - } + /** + * Model tests for AddTask + */ + @Test + public void testAddTask() { + // TODO: test AddTask + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/AddUserRequestTest.java b/src/test/java/com/formkiq/client/model/AddUserRequestTest.java index 3e5a16c41..3144218d4 100644 --- a/src/test/java/com/formkiq/client/model/AddUserRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddUserRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for AddUserRequest */ public class AddUserRequestTest { - private final AddUserRequest model = new AddUserRequest(); + private final AddUserRequest model = new AddUserRequest(); - /** - * Model tests for AddUserRequest - */ - @Test - public void testAddUserRequest() { - // TODO: test AddUserRequest - } + /** + * Model tests for AddUserRequest + */ + @Test + public void testAddUserRequest() { + // TODO: test AddUserRequest + } - /** - * Test the property 'user' - */ - @Test - public void userTest() { - // TODO: test user - } + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } } diff --git a/src/test/java/com/formkiq/client/model/AddUserTest.java b/src/test/java/com/formkiq/client/model/AddUserTest.java index 88f04d70f..8e0d153fa 100644 --- a/src/test/java/com/formkiq/client/model/AddUserTest.java +++ b/src/test/java/com/formkiq/client/model/AddUserTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for AddUser */ public class AddUserTest { - private final AddUser model = new AddUser(); - - /** - * Model tests for AddUser - */ - @Test - public void testAddUser() { - // TODO: test AddUser - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final AddUser model = new AddUser(); + + /** + * Model tests for AddUser + */ + @Test + public void testAddUser() { + // TODO: test AddUser + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddWebhookRequestTest.java b/src/test/java/com/formkiq/client/model/AddWebhookRequestTest.java index 94ceab71d..91209ca05 100644 --- a/src/test/java/com/formkiq/client/model/AddWebhookRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddWebhookRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,46 +30,46 @@ * Model tests for AddWebhookRequest */ public class AddWebhookRequestTest { - private final AddWebhookRequest model = new AddWebhookRequest(); + private final AddWebhookRequest model = new AddWebhookRequest(); - /** - * Model tests for AddWebhookRequest - */ - @Test - public void testAddWebhookRequest() { - // TODO: test AddWebhookRequest - } + /** + * Model tests for AddWebhookRequest + */ + @Test + public void testAddWebhookRequest() { + // TODO: test AddWebhookRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'ttl' - */ - @Test - public void ttlTest() { - // TODO: test ttl - } + /** + * Test the property 'ttl' + */ + @Test + public void ttlTest() { + // TODO: test ttl + } - /** - * Test the property 'enabled' - */ - @Test - public void enabledTest() { - // TODO: test enabled - } + /** + * Test the property 'enabled' + */ + @Test + public void enabledTest() { + // TODO: test enabled + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/AddWebhookResponseTest.java b/src/test/java/com/formkiq/client/model/AddWebhookResponseTest.java index 99c2cfbc1..470ccacf7 100644 --- a/src/test/java/com/formkiq/client/model/AddWebhookResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddWebhookResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for AddWebhookResponse */ public class AddWebhookResponseTest { - private final AddWebhookResponse model = new AddWebhookResponse(); - - /** - * Model tests for AddWebhookResponse - */ - @Test - public void testAddWebhookResponse() { - // TODO: test AddWebhookResponse - } - - /** - * Test the property 'webhookId' - */ - @Test - public void webhookIdTest() { - // TODO: test webhookId - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + private final AddWebhookResponse model = new AddWebhookResponse(); + + /** + * Model tests for AddWebhookResponse + */ + @Test + public void testAddWebhookResponse() { + // TODO: test AddWebhookResponse + } + + /** + * Test the property 'webhookId' + */ + @Test + public void webhookIdTest() { + // TODO: test webhookId + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } } diff --git a/src/test/java/com/formkiq/client/model/AddWebhookTagRequestTest.java b/src/test/java/com/formkiq/client/model/AddWebhookTagRequestTest.java index cc8a33fdd..750604996 100644 --- a/src/test/java/com/formkiq/client/model/AddWebhookTagRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddWebhookTagRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,38 +29,38 @@ * Model tests for AddWebhookTagRequest */ public class AddWebhookTagRequestTest { - private final AddWebhookTagRequest model = new AddWebhookTagRequest(); + private final AddWebhookTagRequest model = new AddWebhookTagRequest(); - /** - * Model tests for AddWebhookTagRequest - */ - @Test - public void testAddWebhookTagRequest() { - // TODO: test AddWebhookTagRequest - } + /** + * Model tests for AddWebhookTagRequest + */ + @Test + public void testAddWebhookTagRequest() { + // TODO: test AddWebhookTagRequest + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/AddWorkflowRequestTest.java b/src/test/java/com/formkiq/client/model/AddWorkflowRequestTest.java index cf732110e..5e2ac150b 100644 --- a/src/test/java/com/formkiq/client/model/AddWorkflowRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddWorkflowRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,46 +31,46 @@ * Model tests for AddWorkflowRequest */ public class AddWorkflowRequestTest { - private final AddWorkflowRequest model = new AddWorkflowRequest(); + private final AddWorkflowRequest model = new AddWorkflowRequest(); - /** - * Model tests for AddWorkflowRequest - */ - @Test - public void testAddWorkflowRequest() { - // TODO: test AddWorkflowRequest - } + /** + * Model tests for AddWorkflowRequest + */ + @Test + public void testAddWorkflowRequest() { + // TODO: test AddWorkflowRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'steps' - */ - @Test - public void stepsTest() { - // TODO: test steps - } + /** + * Test the property 'steps' + */ + @Test + public void stepsTest() { + // TODO: test steps + } } diff --git a/src/test/java/com/formkiq/client/model/AddWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/AddWorkflowResponseTest.java index 892ae9aa8..86413a26a 100644 --- a/src/test/java/com/formkiq/client/model/AddWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddWorkflowResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for AddWorkflowResponse */ public class AddWorkflowResponseTest { - private final AddWorkflowResponse model = new AddWorkflowResponse(); + private final AddWorkflowResponse model = new AddWorkflowResponse(); - /** - * Model tests for AddWorkflowResponse - */ - @Test - public void testAddWorkflowResponse() { - // TODO: test AddWorkflowResponse - } + /** + * Model tests for AddWorkflowResponse + */ + @Test + public void testAddWorkflowResponse() { + // TODO: test AddWorkflowResponse + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } } diff --git a/src/test/java/com/formkiq/client/model/AddWorkflowStepDecisionTest.java b/src/test/java/com/formkiq/client/model/AddWorkflowStepDecisionTest.java index 72aef926b..7f94f5afa 100644 --- a/src/test/java/com/formkiq/client/model/AddWorkflowStepDecisionTest.java +++ b/src/test/java/com/formkiq/client/model/AddWorkflowStepDecisionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for AddWorkflowStepDecision */ public class AddWorkflowStepDecisionTest { - private final AddWorkflowStepDecision model = new AddWorkflowStepDecision(); - - /** - * Model tests for AddWorkflowStepDecision - */ - @Test - public void testAddWorkflowStepDecision() { - // TODO: test AddWorkflowStepDecision - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'nextStepId' - */ - @Test - public void nextStepIdTest() { - // TODO: test nextStepId - } + private final AddWorkflowStepDecision model = new AddWorkflowStepDecision(); + + /** + * Model tests for AddWorkflowStepDecision + */ + @Test + public void testAddWorkflowStepDecision() { + // TODO: test AddWorkflowStepDecision + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'nextStepId' + */ + @Test + public void nextStepIdTest() { + // TODO: test nextStepId + } } diff --git a/src/test/java/com/formkiq/client/model/AddWorkflowStepQueueTest.java b/src/test/java/com/formkiq/client/model/AddWorkflowStepQueueTest.java index 35784d123..1097928d8 100644 --- a/src/test/java/com/formkiq/client/model/AddWorkflowStepQueueTest.java +++ b/src/test/java/com/formkiq/client/model/AddWorkflowStepQueueTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for AddWorkflowStepQueue */ public class AddWorkflowStepQueueTest { - private final AddWorkflowStepQueue model = new AddWorkflowStepQueue(); - - /** - * Model tests for AddWorkflowStepQueue - */ - @Test - public void testAddWorkflowStepQueue() { - // TODO: test AddWorkflowStepQueue - } - - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } - - /** - * Test the property 'approvalGroups' - */ - @Test - public void approvalGroupsTest() { - // TODO: test approvalGroups - } + private final AddWorkflowStepQueue model = new AddWorkflowStepQueue(); + + /** + * Model tests for AddWorkflowStepQueue + */ + @Test + public void testAddWorkflowStepQueue() { + // TODO: test AddWorkflowStepQueue + } + + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } + + /** + * Test the property 'approvalGroups' + */ + @Test + public void approvalGroupsTest() { + // TODO: test approvalGroups + } } diff --git a/src/test/java/com/formkiq/client/model/AddWorkflowStepTest.java b/src/test/java/com/formkiq/client/model/AddWorkflowStepTest.java index 51e6d064d..73280e4ce 100644 --- a/src/test/java/com/formkiq/client/model/AddWorkflowStepTest.java +++ b/src/test/java/com/formkiq/client/model/AddWorkflowStepTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,46 +32,46 @@ * Model tests for AddWorkflowStep */ public class AddWorkflowStepTest { - private final AddWorkflowStep model = new AddWorkflowStep(); + private final AddWorkflowStep model = new AddWorkflowStep(); - /** - * Model tests for AddWorkflowStep - */ - @Test - public void testAddWorkflowStep() { - // TODO: test AddWorkflowStep - } + /** + * Model tests for AddWorkflowStep + */ + @Test + public void testAddWorkflowStep() { + // TODO: test AddWorkflowStep + } - /** - * Test the property 'stepId' - */ - @Test - public void stepIdTest() { - // TODO: test stepId - } + /** + * Test the property 'stepId' + */ + @Test + public void stepIdTest() { + // TODO: test stepId + } - /** - * Test the property 'action' - */ - @Test - public void actionTest() { - // TODO: test action - } + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } - /** - * Test the property 'queue' - */ - @Test - public void queueTest() { - // TODO: test queue - } + /** + * Test the property 'queue' + */ + @Test + public void queueTest() { + // TODO: test queue + } - /** - * Test the property 'decisions' - */ - @Test - public void decisionsTest() { - // TODO: test decisions - } + /** + * Test the property 'decisions' + */ + @Test + public void decisionsTest() { + // TODO: test decisions + } } diff --git a/src/test/java/com/formkiq/client/model/ApiKeyTest.java b/src/test/java/com/formkiq/client/model/ApiKeyTest.java index 457bfd3f9..4e5bb7658 100644 --- a/src/test/java/com/formkiq/client/model/ApiKeyTest.java +++ b/src/test/java/com/formkiq/client/model/ApiKeyTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,62 +29,62 @@ * Model tests for ApiKey */ public class ApiKeyTest { - private final ApiKey model = new ApiKey(); + private final ApiKey model = new ApiKey(); - /** - * Model tests for ApiKey - */ - @Test - public void testApiKey() { - // TODO: test ApiKey - } + /** + * Model tests for ApiKey + */ + @Test + public void testApiKey() { + // TODO: test ApiKey + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'apiKey' - */ - @Test - public void apiKeyTest() { - // TODO: test apiKey - } + /** + * Test the property 'apiKey' + */ + @Test + public void apiKeyTest() { + // TODO: test apiKey + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeDataTypeTest.java b/src/test/java/com/formkiq/client/model/AttributeDataTypeTest.java index 514d170ec..9007142d1 100644 --- a/src/test/java/com/formkiq/client/model/AttributeDataTypeTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeDataTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for AttributeDataType */ public class AttributeDataTypeTest { - /** - * Model tests for AttributeDataType - */ - @Test - public void testAttributeDataType() { - // TODO: test AttributeDataType - } + /** + * Model tests for AttributeDataType + */ + @Test + public void testAttributeDataType() { + // TODO: test AttributeDataType + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeSchemaCompositeKeyTest.java b/src/test/java/com/formkiq/client/model/AttributeSchemaCompositeKeyTest.java index 22b3accfc..3de5dd1fe 100644 --- a/src/test/java/com/formkiq/client/model/AttributeSchemaCompositeKeyTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeSchemaCompositeKeyTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,22 +29,22 @@ * Model tests for AttributeSchemaCompositeKey */ public class AttributeSchemaCompositeKeyTest { - private final AttributeSchemaCompositeKey model = new AttributeSchemaCompositeKey(); + private final AttributeSchemaCompositeKey model = new AttributeSchemaCompositeKey(); - /** - * Model tests for AttributeSchemaCompositeKey - */ - @Test - public void testAttributeSchemaCompositeKey() { - // TODO: test AttributeSchemaCompositeKey - } + /** + * Model tests for AttributeSchemaCompositeKey + */ + @Test + public void testAttributeSchemaCompositeKey() { + // TODO: test AttributeSchemaCompositeKey + } - /** - * Test the property 'attributeKeys' - */ - @Test - public void attributeKeysTest() { - // TODO: test attributeKeys - } + /** + * Test the property 'attributeKeys' + */ + @Test + public void attributeKeysTest() { + // TODO: test attributeKeys + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeSchemaOptionalTest.java b/src/test/java/com/formkiq/client/model/AttributeSchemaOptionalTest.java index f94da8333..cab288a5c 100644 --- a/src/test/java/com/formkiq/client/model/AttributeSchemaOptionalTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeSchemaOptionalTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,54 +32,54 @@ * Model tests for AttributeSchemaOptional */ public class AttributeSchemaOptionalTest { - private final AttributeSchemaOptional model = new AttributeSchemaOptional(); + private final AttributeSchemaOptional model = new AttributeSchemaOptional(); - /** - * Model tests for AttributeSchemaOptional - */ - @Test - public void testAttributeSchemaOptional() { - // TODO: test AttributeSchemaOptional - } + /** + * Model tests for AttributeSchemaOptional + */ + @Test + public void testAttributeSchemaOptional() { + // TODO: test AttributeSchemaOptional + } - /** - * Test the property 'minNumberOfValues' - */ - @Test - public void minNumberOfValuesTest() { - // TODO: test minNumberOfValues - } + /** + * Test the property 'minNumberOfValues' + */ + @Test + public void minNumberOfValuesTest() { + // TODO: test minNumberOfValues + } - /** - * Test the property 'maxNumberOfValues' - */ - @Test - public void maxNumberOfValuesTest() { - // TODO: test maxNumberOfValues - } + /** + * Test the property 'maxNumberOfValues' + */ + @Test + public void maxNumberOfValuesTest() { + // TODO: test maxNumberOfValues + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValues' - */ - @Test - public void allowedValuesTest() { - // TODO: test allowedValues - } + /** + * Test the property 'allowedValues' + */ + @Test + public void allowedValuesTest() { + // TODO: test allowedValues + } - /** - * Test the property 'localizedAllowedValues' - */ - @Test - public void localizedAllowedValuesTest() { - // TODO: test localizedAllowedValues - } + /** + * Test the property 'localizedAllowedValues' + */ + @Test + public void localizedAllowedValuesTest() { + // TODO: test localizedAllowedValues + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeSchemaRequiredTest.java b/src/test/java/com/formkiq/client/model/AttributeSchemaRequiredTest.java index d65f8f8a6..8b1a73701 100644 --- a/src/test/java/com/formkiq/client/model/AttributeSchemaRequiredTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeSchemaRequiredTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,70 +32,70 @@ * Model tests for AttributeSchemaRequired */ public class AttributeSchemaRequiredTest { - private final AttributeSchemaRequired model = new AttributeSchemaRequired(); + private final AttributeSchemaRequired model = new AttributeSchemaRequired(); - /** - * Model tests for AttributeSchemaRequired - */ - @Test - public void testAttributeSchemaRequired() { - // TODO: test AttributeSchemaRequired - } + /** + * Model tests for AttributeSchemaRequired + */ + @Test + public void testAttributeSchemaRequired() { + // TODO: test AttributeSchemaRequired + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'minNumberOfValues' - */ - @Test - public void minNumberOfValuesTest() { - // TODO: test minNumberOfValues - } + /** + * Test the property 'minNumberOfValues' + */ + @Test + public void minNumberOfValuesTest() { + // TODO: test minNumberOfValues + } - /** - * Test the property 'maxNumberOfValues' - */ - @Test - public void maxNumberOfValuesTest() { - // TODO: test maxNumberOfValues - } + /** + * Test the property 'maxNumberOfValues' + */ + @Test + public void maxNumberOfValuesTest() { + // TODO: test maxNumberOfValues + } - /** - * Test the property 'defaultValue' - */ - @Test - public void defaultValueTest() { - // TODO: test defaultValue - } + /** + * Test the property 'defaultValue' + */ + @Test + public void defaultValueTest() { + // TODO: test defaultValue + } - /** - * Test the property 'defaultValues' - */ - @Test - public void defaultValuesTest() { - // TODO: test defaultValues - } + /** + * Test the property 'defaultValues' + */ + @Test + public void defaultValuesTest() { + // TODO: test defaultValues + } - /** - * Test the property 'allowedValues' - */ - @Test - public void allowedValuesTest() { - // TODO: test allowedValues - } + /** + * Test the property 'allowedValues' + */ + @Test + public void allowedValuesTest() { + // TODO: test allowedValues + } - /** - * Test the property 'localizedAllowedValues' - */ - @Test - public void localizedAllowedValuesTest() { - // TODO: test localizedAllowedValues - } + /** + * Test the property 'localizedAllowedValues' + */ + @Test + public void localizedAllowedValuesTest() { + // TODO: test localizedAllowedValues + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeTest.java b/src/test/java/com/formkiq/client/model/AttributeTest.java index 286953aba..9a168b637 100644 --- a/src/test/java/com/formkiq/client/model/AttributeTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,46 +30,46 @@ * Model tests for Attribute */ public class AttributeTest { - private final Attribute model = new Attribute(); + private final Attribute model = new Attribute(); - /** - * Model tests for Attribute - */ - @Test - public void testAttribute() { - // TODO: test Attribute - } + /** + * Model tests for Attribute + */ + @Test + public void testAttribute() { + // TODO: test Attribute + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'dataType' - */ - @Test - public void dataTypeTest() { - // TODO: test dataType - } + /** + * Test the property 'dataType' + */ + @Test + public void dataTypeTest() { + // TODO: test dataType + } - /** - * Test the property 'watermark' - */ - @Test - public void watermarkTest() { - // TODO: test watermark - } + /** + * Test the property 'watermark' + */ + @Test + public void watermarkTest() { + // TODO: test watermark + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeTypeTest.java b/src/test/java/com/formkiq/client/model/AttributeTypeTest.java index 433224cc2..e3b16edd0 100644 --- a/src/test/java/com/formkiq/client/model/AttributeTypeTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for AttributeType */ public class AttributeTypeTest { - /** - * Model tests for AttributeType - */ - @Test - public void testAttributeType() { - // TODO: test AttributeType - } + /** + * Model tests for AttributeType + */ + @Test + public void testAttributeType() { + // TODO: test AttributeType + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeValueTypeTest.java b/src/test/java/com/formkiq/client/model/AttributeValueTypeTest.java index e1941dec1..d5c18229a 100644 --- a/src/test/java/com/formkiq/client/model/AttributeValueTypeTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeValueTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for AttributeValueType */ public class AttributeValueTypeTest { - /** - * Model tests for AttributeValueType - */ - @Test - public void testAttributeValueType() { - // TODO: test AttributeValueType - } + /** + * Model tests for AttributeValueType + */ + @Test + public void testAttributeValueType() { + // TODO: test AttributeValueType + } } diff --git a/src/test/java/com/formkiq/client/model/CaseStatusTest.java b/src/test/java/com/formkiq/client/model/CaseStatusTest.java index 8762909d7..269052d3d 100644 --- a/src/test/java/com/formkiq/client/model/CaseStatusTest.java +++ b/src/test/java/com/formkiq/client/model/CaseStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for CaseStatus */ public class CaseStatusTest { - /** - * Model tests for CaseStatus - */ - @Test - public void testCaseStatus() { - // TODO: test CaseStatus - } + /** + * Model tests for CaseStatus + */ + @Test + public void testCaseStatus() { + // TODO: test CaseStatus + } } diff --git a/src/test/java/com/formkiq/client/model/ChecksumTypeTest.java b/src/test/java/com/formkiq/client/model/ChecksumTypeTest.java index 6cc85fc7d..f1c3addd0 100644 --- a/src/test/java/com/formkiq/client/model/ChecksumTypeTest.java +++ b/src/test/java/com/formkiq/client/model/ChecksumTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for ChecksumType */ public class ChecksumTypeTest { - /** - * Model tests for ChecksumType - */ - @Test - public void testChecksumType() { - // TODO: test ChecksumType - } + /** + * Model tests for ChecksumType + */ + @Test + public void testChecksumType() { + // TODO: test ChecksumType + } } diff --git a/src/test/java/com/formkiq/client/model/ChildDocumentTest.java b/src/test/java/com/formkiq/client/model/ChildDocumentTest.java index d3ba068d9..4e209b71c 100644 --- a/src/test/java/com/formkiq/client/model/ChildDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/ChildDocumentTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,118 +27,118 @@ * Model tests for ChildDocument */ public class ChildDocumentTest { - private final ChildDocument model = new ChildDocument(); - - /** - * Model tests for ChildDocument - */ - @Test - public void testChildDocument() { - // TODO: test ChildDocument - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'versionId' - */ - @Test - public void versionIdTest() { - // TODO: test versionId - } - - /** - * Test the property 'belongsToDocumentId' - */ - @Test - public void belongsToDocumentIdTest() { - // TODO: test belongsToDocumentId - } + private final ChildDocument model = new ChildDocument(); + + /** + * Model tests for ChildDocument + */ + @Test + public void testChildDocument() { + // TODO: test ChildDocument + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'versionId' + */ + @Test + public void versionIdTest() { + // TODO: test versionId + } + + /** + * Test the property 'belongsToDocumentId' + */ + @Test + public void belongsToDocumentIdTest() { + // TODO: test belongsToDocumentId + } } diff --git a/src/test/java/com/formkiq/client/model/ClassificationSummaryTest.java b/src/test/java/com/formkiq/client/model/ClassificationSummaryTest.java index 90db384fd..26826a70e 100644 --- a/src/test/java/com/formkiq/client/model/ClassificationSummaryTest.java +++ b/src/test/java/com/formkiq/client/model/ClassificationSummaryTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,46 +27,46 @@ * Model tests for ClassificationSummary */ public class ClassificationSummaryTest { - private final ClassificationSummary model = new ClassificationSummary(); + private final ClassificationSummary model = new ClassificationSummary(); - /** - * Model tests for ClassificationSummary - */ - @Test - public void testClassificationSummary() { - // TODO: test ClassificationSummary - } + /** + * Model tests for ClassificationSummary + */ + @Test + public void testClassificationSummary() { + // TODO: test ClassificationSummary + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } } diff --git a/src/test/java/com/formkiq/client/model/ClassificationTest.java b/src/test/java/com/formkiq/client/model/ClassificationTest.java index bc70639a4..d01debcf4 100644 --- a/src/test/java/com/formkiq/client/model/ClassificationTest.java +++ b/src/test/java/com/formkiq/client/model/ClassificationTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,46 +28,46 @@ * Model tests for Classification */ public class ClassificationTest { - private final Classification model = new Classification(); + private final Classification model = new Classification(); - /** - * Model tests for Classification - */ - @Test - public void testClassification() { - // TODO: test Classification - } + /** + * Model tests for Classification + */ + @Test + public void testClassification() { + // TODO: test Classification + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/DataClassificationAttributeTest.java b/src/test/java/com/formkiq/client/model/DataClassificationAttributeTest.java index db75df040..a437a0061 100644 --- a/src/test/java/com/formkiq/client/model/DataClassificationAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/DataClassificationAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for DataClassificationAttribute */ public class DataClassificationAttributeTest { - private final DataClassificationAttribute model = new DataClassificationAttribute(); - - /** - * Model tests for DataClassificationAttribute - */ - @Test - public void testDataClassificationAttribute() { - // TODO: test DataClassificationAttribute - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + private final DataClassificationAttribute model = new DataClassificationAttribute(); + + /** + * Model tests for DataClassificationAttribute + */ + @Test + public void testDataClassificationAttribute() { + // TODO: test DataClassificationAttribute + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } } diff --git a/src/test/java/com/formkiq/client/model/DataClassificationTest.java b/src/test/java/com/formkiq/client/model/DataClassificationTest.java index 52350b4f8..a9369faad 100644 --- a/src/test/java/com/formkiq/client/model/DataClassificationTest.java +++ b/src/test/java/com/formkiq/client/model/DataClassificationTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,54 +30,54 @@ * Model tests for DataClassification */ public class DataClassificationTest { - private final DataClassification model = new DataClassification(); + private final DataClassification model = new DataClassification(); - /** - * Model tests for DataClassification - */ - @Test - public void testDataClassification() { - // TODO: test DataClassification - } + /** + * Model tests for DataClassification + */ + @Test + public void testDataClassification() { + // TODO: test DataClassification + } - /** - * Test the property 'llmPromptEntityName' - */ - @Test - public void llmPromptEntityNameTest() { - // TODO: test llmPromptEntityName - } + /** + * Test the property 'llmPromptEntityName' + */ + @Test + public void llmPromptEntityNameTest() { + // TODO: test llmPromptEntityName + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteApiKeyResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteApiKeyResponseTest.java index d311b90d2..08fccd7eb 100644 --- a/src/test/java/com/formkiq/client/model/DeleteApiKeyResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteApiKeyResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteApiKeyResponse */ public class DeleteApiKeyResponseTest { - private final DeleteApiKeyResponse model = new DeleteApiKeyResponse(); + private final DeleteApiKeyResponse model = new DeleteApiKeyResponse(); - /** - * Model tests for DeleteApiKeyResponse - */ - @Test - public void testDeleteApiKeyResponse() { - // TODO: test DeleteApiKeyResponse - } + /** + * Model tests for DeleteApiKeyResponse + */ + @Test + public void testDeleteApiKeyResponse() { + // TODO: test DeleteApiKeyResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseDocumentResponseTest.java index a64c9ab5a..b0aeea419 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseDocumentResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteCaseDocumentResponse */ public class DeleteCaseDocumentResponseTest { - private final DeleteCaseDocumentResponse model = new DeleteCaseDocumentResponse(); + private final DeleteCaseDocumentResponse model = new DeleteCaseDocumentResponse(); - /** - * Model tests for DeleteCaseDocumentResponse - */ - @Test - public void testDeleteCaseDocumentResponse() { - // TODO: test DeleteCaseDocumentResponse - } + /** + * Model tests for DeleteCaseDocumentResponse + */ + @Test + public void testDeleteCaseDocumentResponse() { + // TODO: test DeleteCaseDocumentResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponseTest.java index c3cad60bd..570574c05 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteCaseNigoDocumentResponse */ public class DeleteCaseNigoDocumentResponseTest { - private final DeleteCaseNigoDocumentResponse model = new DeleteCaseNigoDocumentResponse(); + private final DeleteCaseNigoDocumentResponse model = new DeleteCaseNigoDocumentResponse(); - /** - * Model tests for DeleteCaseNigoDocumentResponse - */ - @Test - public void testDeleteCaseNigoDocumentResponse() { - // TODO: test DeleteCaseNigoDocumentResponse - } + /** + * Model tests for DeleteCaseNigoDocumentResponse + */ + @Test + public void testDeleteCaseNigoDocumentResponse() { + // TODO: test DeleteCaseNigoDocumentResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseNigoResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseNigoResponseTest.java index 1ff63ec5e..9c5e91f3f 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseNigoResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseNigoResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteCaseNigoResponse */ public class DeleteCaseNigoResponseTest { - private final DeleteCaseNigoResponse model = new DeleteCaseNigoResponse(); + private final DeleteCaseNigoResponse model = new DeleteCaseNigoResponse(); - /** - * Model tests for DeleteCaseNigoResponse - */ - @Test - public void testDeleteCaseNigoResponse() { - // TODO: test DeleteCaseNigoResponse - } + /** + * Model tests for DeleteCaseNigoResponse + */ + @Test + public void testDeleteCaseNigoResponse() { + // TODO: test DeleteCaseNigoResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseResponseTest.java index f93709baa..de9211268 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteCaseResponse */ public class DeleteCaseResponseTest { - private final DeleteCaseResponse model = new DeleteCaseResponse(); + private final DeleteCaseResponse model = new DeleteCaseResponse(); - /** - * Model tests for DeleteCaseResponse - */ - @Test - public void testDeleteCaseResponse() { - // TODO: test DeleteCaseResponse - } + /** + * Model tests for DeleteCaseResponse + */ + @Test + public void testDeleteCaseResponse() { + // TODO: test DeleteCaseResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponseTest.java index 2a7807701..4f51cd253 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteCaseTaskDocumentResponse */ public class DeleteCaseTaskDocumentResponseTest { - private final DeleteCaseTaskDocumentResponse model = new DeleteCaseTaskDocumentResponse(); + private final DeleteCaseTaskDocumentResponse model = new DeleteCaseTaskDocumentResponse(); - /** - * Model tests for DeleteCaseTaskDocumentResponse - */ - @Test - public void testDeleteCaseTaskDocumentResponse() { - // TODO: test DeleteCaseTaskDocumentResponse - } + /** + * Model tests for DeleteCaseTaskDocumentResponse + */ + @Test + public void testDeleteCaseTaskDocumentResponse() { + // TODO: test DeleteCaseTaskDocumentResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseTaskResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseTaskResponseTest.java index aca9197f6..08f98c9c0 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseTaskResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseTaskResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteCaseTaskResponse */ public class DeleteCaseTaskResponseTest { - private final DeleteCaseTaskResponse model = new DeleteCaseTaskResponse(); + private final DeleteCaseTaskResponse model = new DeleteCaseTaskResponse(); - /** - * Model tests for DeleteCaseTaskResponse - */ - @Test - public void testDeleteCaseTaskResponse() { - // TODO: test DeleteCaseTaskResponse - } + /** + * Model tests for DeleteCaseTaskResponse + */ + @Test + public void testDeleteCaseTaskResponse() { + // TODO: test DeleteCaseTaskResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteFolderResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteFolderResponseTest.java index 76e5fa11f..e05003309 100644 --- a/src/test/java/com/formkiq/client/model/DeleteFolderResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteFolderResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteFolderResponse */ public class DeleteFolderResponseTest { - private final DeleteFolderResponse model = new DeleteFolderResponse(); + private final DeleteFolderResponse model = new DeleteFolderResponse(); - /** - * Model tests for DeleteFolderResponse - */ - @Test - public void testDeleteFolderResponse() { - // TODO: test DeleteFolderResponse - } + /** + * Model tests for DeleteFolderResponse + */ + @Test + public void testDeleteFolderResponse() { + // TODO: test DeleteFolderResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteFulltextResponseTest.java index 8ee7e2b0e..bd0901d36 100644 --- a/src/test/java/com/formkiq/client/model/DeleteFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteFulltextResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteFulltextResponse */ public class DeleteFulltextResponseTest { - private final DeleteFulltextResponse model = new DeleteFulltextResponse(); + private final DeleteFulltextResponse model = new DeleteFulltextResponse(); - /** - * Model tests for DeleteFulltextResponse - */ - @Test - public void testDeleteFulltextResponse() { - // TODO: test DeleteFulltextResponse - } + /** + * Model tests for DeleteFulltextResponse + */ + @Test + public void testDeleteFulltextResponse() { + // TODO: test DeleteFulltextResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteIndicesResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteIndicesResponseTest.java index cef2add26..5916e4898 100644 --- a/src/test/java/com/formkiq/client/model/DeleteIndicesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteIndicesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteIndicesResponse */ public class DeleteIndicesResponseTest { - private final DeleteIndicesResponse model = new DeleteIndicesResponse(); + private final DeleteIndicesResponse model = new DeleteIndicesResponse(); - /** - * Model tests for DeleteIndicesResponse - */ - @Test - public void testDeleteIndicesResponse() { - // TODO: test DeleteIndicesResponse - } + /** + * Model tests for DeleteIndicesResponse + */ + @Test + public void testDeleteIndicesResponse() { + // TODO: test DeleteIndicesResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteQueueResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteQueueResponseTest.java index b308de23d..5e791b88e 100644 --- a/src/test/java/com/formkiq/client/model/DeleteQueueResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteQueueResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteQueueResponse */ public class DeleteQueueResponseTest { - private final DeleteQueueResponse model = new DeleteQueueResponse(); + private final DeleteQueueResponse model = new DeleteQueueResponse(); - /** - * Model tests for DeleteQueueResponse - */ - @Test - public void testDeleteQueueResponse() { - // TODO: test DeleteQueueResponse - } + /** + * Model tests for DeleteQueueResponse + */ + @Test + public void testDeleteQueueResponse() { + // TODO: test DeleteQueueResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteResponseTest.java index 89a3309ab..b6e8f054f 100644 --- a/src/test/java/com/formkiq/client/model/DeleteResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteResponse */ public class DeleteResponseTest { - private final DeleteResponse model = new DeleteResponse(); + private final DeleteResponse model = new DeleteResponse(); - /** - * Model tests for DeleteResponse - */ - @Test - public void testDeleteResponse() { - // TODO: test DeleteResponse - } + /** + * Model tests for DeleteResponse + */ + @Test + public void testDeleteResponse() { + // TODO: test DeleteResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteRuleResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteRuleResponseTest.java index b9851ad08..56723f4e3 100644 --- a/src/test/java/com/formkiq/client/model/DeleteRuleResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteRuleResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteRuleResponse */ public class DeleteRuleResponseTest { - private final DeleteRuleResponse model = new DeleteRuleResponse(); + private final DeleteRuleResponse model = new DeleteRuleResponse(); - /** - * Model tests for DeleteRuleResponse - */ - @Test - public void testDeleteRuleResponse() { - // TODO: test DeleteRuleResponse - } + /** + * Model tests for DeleteRuleResponse + */ + @Test + public void testDeleteRuleResponse() { + // TODO: test DeleteRuleResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteRulesetResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteRulesetResponseTest.java index d67e2e77b..2ade6d50b 100644 --- a/src/test/java/com/formkiq/client/model/DeleteRulesetResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteRulesetResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteRulesetResponse */ public class DeleteRulesetResponseTest { - private final DeleteRulesetResponse model = new DeleteRulesetResponse(); + private final DeleteRulesetResponse model = new DeleteRulesetResponse(); - /** - * Model tests for DeleteRulesetResponse - */ - @Test - public void testDeleteRulesetResponse() { - // TODO: test DeleteRulesetResponse - } + /** + * Model tests for DeleteRulesetResponse + */ + @Test + public void testDeleteRulesetResponse() { + // TODO: test DeleteRulesetResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteShareResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteShareResponseTest.java index bf7a3df07..24c605dbe 100644 --- a/src/test/java/com/formkiq/client/model/DeleteShareResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteShareResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteShareResponse */ public class DeleteShareResponseTest { - private final DeleteShareResponse model = new DeleteShareResponse(); + private final DeleteShareResponse model = new DeleteShareResponse(); - /** - * Model tests for DeleteShareResponse - */ - @Test - public void testDeleteShareResponse() { - // TODO: test DeleteShareResponse - } + /** + * Model tests for DeleteShareResponse + */ + @Test + public void testDeleteShareResponse() { + // TODO: test DeleteShareResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteWorkflowResponseTest.java index 5d4fbfe45..69a8ecb6e 100644 --- a/src/test/java/com/formkiq/client/model/DeleteWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteWorkflowResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DeleteWorkflowResponse */ public class DeleteWorkflowResponseTest { - private final DeleteWorkflowResponse model = new DeleteWorkflowResponse(); + private final DeleteWorkflowResponse model = new DeleteWorkflowResponse(); - /** - * Model tests for DeleteWorkflowResponse - */ - @Test - public void testDeleteWorkflowResponse() { - // TODO: test DeleteWorkflowResponse - } + /** + * Model tests for DeleteWorkflowResponse + */ + @Test + public void testDeleteWorkflowResponse() { + // TODO: test DeleteWorkflowResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentActionStatusTest.java b/src/test/java/com/formkiq/client/model/DocumentActionStatusTest.java index ab713ea6b..dcad8018c 100644 --- a/src/test/java/com/formkiq/client/model/DocumentActionStatusTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentActionStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for DocumentActionStatus */ public class DocumentActionStatusTest { - /** - * Model tests for DocumentActionStatus - */ - @Test - public void testDocumentActionStatus() { - // TODO: test DocumentActionStatus - } + /** + * Model tests for DocumentActionStatus + */ + @Test + public void testDocumentActionStatus() { + // TODO: test DocumentActionStatus + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentActionTest.java b/src/test/java/com/formkiq/client/model/DocumentActionTest.java index ebee79d5d..3de26826c 100644 --- a/src/test/java/com/formkiq/client/model/DocumentActionTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentActionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,126 +32,126 @@ * Model tests for DocumentAction */ public class DocumentActionTest { - private final DocumentAction model = new DocumentAction(); - - /** - * Model tests for DocumentAction - */ - @Test - public void testDocumentAction() { - // TODO: test DocumentAction - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'retryCount' - */ - @Test - public void retryCountTest() { - // TODO: test retryCount - } - - /** - * Test the property 'maxRetries' - */ - @Test - public void maxRetriesTest() { - // TODO: test maxRetries - } - - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } - - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } - - /** - * Test the property 'workflowStepId' - */ - @Test - public void workflowStepIdTest() { - // TODO: test workflowStepId - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } - - /** - * Test the property 'completedDate' - */ - @Test - public void completedDateTest() { - // TODO: test completedDate - } - - /** - * Test the property 'parameters' - */ - @Test - public void parametersTest() { - // TODO: test parameters - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final DocumentAction model = new DocumentAction(); + + /** + * Model tests for DocumentAction + */ + @Test + public void testDocumentAction() { + // TODO: test DocumentAction + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'retryCount' + */ + @Test + public void retryCountTest() { + // TODO: test retryCount + } + + /** + * Test the property 'maxRetries' + */ + @Test + public void maxRetriesTest() { + // TODO: test maxRetries + } + + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } + + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } + + /** + * Test the property 'workflowStepId' + */ + @Test + public void workflowStepIdTest() { + // TODO: test workflowStepId + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'completedDate' + */ + @Test + public void completedDateTest() { + // TODO: test completedDate + } + + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentActionTypeTest.java b/src/test/java/com/formkiq/client/model/DocumentActionTypeTest.java index 04f58db71..8be278fd0 100644 --- a/src/test/java/com/formkiq/client/model/DocumentActionTypeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentActionTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for DocumentActionType */ public class DocumentActionTypeTest { - /** - * Model tests for DocumentActionType - */ - @Test - public void testDocumentActionType() { - // TODO: test DocumentActionType - } + /** + * Model tests for DocumentActionType + */ + @Test + public void testDocumentActionType() { + // TODO: test DocumentActionType + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentAttributeTest.java b/src/test/java/com/formkiq/client/model/DocumentAttributeTest.java index 38cf366be..ec7f4678c 100644 --- a/src/test/java/com/formkiq/client/model/DocumentAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,86 +31,86 @@ * Model tests for DocumentAttribute */ public class DocumentAttributeTest { - private final DocumentAttribute model = new DocumentAttribute(); + private final DocumentAttribute model = new DocumentAttribute(); - /** - * Model tests for DocumentAttribute - */ - @Test - public void testDocumentAttribute() { - // TODO: test DocumentAttribute - } + /** + * Model tests for DocumentAttribute + */ + @Test + public void testDocumentAttribute() { + // TODO: test DocumentAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'valueType' - */ - @Test - public void valueTypeTest() { - // TODO: test valueType - } + /** + * Test the property 'valueType' + */ + @Test + public void valueTypeTest() { + // TODO: test valueType + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeEqTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeEqTest.java index e78366d87..326287d31 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeEqTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeEqTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,38 +28,38 @@ * Model tests for DocumentFulltextAttributeEq */ public class DocumentFulltextAttributeEqTest { - private final DocumentFulltextAttributeEq model = new DocumentFulltextAttributeEq(); + private final DocumentFulltextAttributeEq model = new DocumentFulltextAttributeEq(); - /** - * Model tests for DocumentFulltextAttributeEq - */ - @Test - public void testDocumentFulltextAttributeEq() { - // TODO: test DocumentFulltextAttributeEq - } + /** + * Model tests for DocumentFulltextAttributeEq + */ + @Test + public void testDocumentFulltextAttributeEq() { + // TODO: test DocumentFulltextAttributeEq + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeTest.java index a859d68c0..b11e4572f 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,38 +30,38 @@ * Model tests for DocumentFulltextAttribute */ public class DocumentFulltextAttributeTest { - private final DocumentFulltextAttribute model = new DocumentFulltextAttribute(); + private final DocumentFulltextAttribute model = new DocumentFulltextAttribute(); - /** - * Model tests for DocumentFulltextAttribute - */ - @Test - public void testDocumentFulltextAttribute() { - // TODO: test DocumentFulltextAttribute - } + /** + * Model tests for DocumentFulltextAttribute + */ + @Test + public void testDocumentFulltextAttribute() { + // TODO: test DocumentFulltextAttribute + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'eqOr' - */ - @Test - public void eqOrTest() { - // TODO: test eqOr - } + /** + * Test the property 'eqOr' + */ + @Test + public void eqOrTest() { + // TODO: test eqOr + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextRequestTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextRequestTest.java index 420a04679..7d691b634 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextRequestTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for DocumentFulltextRequest */ public class DocumentFulltextRequestTest { - private final DocumentFulltextRequest model = new DocumentFulltextRequest(); - - /** - * Model tests for DocumentFulltextRequest - */ - @Test - public void testDocumentFulltextRequest() { - // TODO: test DocumentFulltextRequest - } - - /** - * Test the property 'query' - */ - @Test - public void queryTest() { - // TODO: test query - } - - /** - * Test the property 'responseFields' - */ - @Test - public void responseFieldsTest() { - // TODO: test responseFields - } + private final DocumentFulltextRequest model = new DocumentFulltextRequest(); + + /** + * Model tests for DocumentFulltextRequest + */ + @Test + public void testDocumentFulltextRequest() { + // TODO: test DocumentFulltextRequest + } + + /** + * Test the property 'query' + */ + @Test + public void queryTest() { + // TODO: test query + } + + /** + * Test the property 'responseFields' + */ + @Test + public void responseFieldsTest() { + // TODO: test responseFields + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java index eecec4174..ec6e4bf47 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for DocumentFulltextResponse */ public class DocumentFulltextResponseTest { - private final DocumentFulltextResponse model = new DocumentFulltextResponse(); + private final DocumentFulltextResponse model = new DocumentFulltextResponse(); - /** - * Model tests for DocumentFulltextResponse - */ - @Test - public void testDocumentFulltextResponse() { - // TODO: test DocumentFulltextResponse - } + /** + * Model tests for DocumentFulltextResponse + */ + @Test + public void testDocumentFulltextResponse() { + // TODO: test DocumentFulltextResponse + } - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextSearchTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextSearchTest.java index e067676e7..5c4f0d36d 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextSearchTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextSearchTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,46 +31,46 @@ * Model tests for DocumentFulltextSearch */ public class DocumentFulltextSearchTest { - private final DocumentFulltextSearch model = new DocumentFulltextSearch(); + private final DocumentFulltextSearch model = new DocumentFulltextSearch(); - /** - * Model tests for DocumentFulltextSearch - */ - @Test - public void testDocumentFulltextSearch() { - // TODO: test DocumentFulltextSearch - } + /** + * Model tests for DocumentFulltextSearch + */ + @Test + public void testDocumentFulltextSearch() { + // TODO: test DocumentFulltextSearch + } - /** - * Test the property 'page' - */ - @Test - public void pageTest() { - // TODO: test page - } + /** + * Test the property 'page' + */ + @Test + public void pageTest() { + // TODO: test page + } - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextTagTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextTagTest.java index 0f7bbadfa..0508d5994 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextTagTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextTagTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,38 +29,38 @@ * Model tests for DocumentFulltextTag */ public class DocumentFulltextTagTest { - private final DocumentFulltextTag model = new DocumentFulltextTag(); + private final DocumentFulltextTag model = new DocumentFulltextTag(); - /** - * Model tests for DocumentFulltextTag - */ - @Test - public void testDocumentFulltextTag() { - // TODO: test DocumentFulltextTag - } + /** + * Model tests for DocumentFulltextTag + */ + @Test + public void testDocumentFulltextTag() { + // TODO: test DocumentFulltextTag + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'eqOr' - */ - @Test - public void eqOrTest() { - // TODO: test eqOr - } + /** + * Test the property 'eqOr' + */ + @Test + public void eqOrTest() { + // TODO: test eqOr + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentGenerateDataSourceTest.java b/src/test/java/com/formkiq/client/model/DocumentGenerateDataSourceTest.java index b713e205b..1cae56b33 100644 --- a/src/test/java/com/formkiq/client/model/DocumentGenerateDataSourceTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentGenerateDataSourceTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,38 +27,38 @@ * Model tests for DocumentGenerateDataSource */ public class DocumentGenerateDataSourceTest { - private final DocumentGenerateDataSource model = new DocumentGenerateDataSource(); + private final DocumentGenerateDataSource model = new DocumentGenerateDataSource(); - /** - * Model tests for DocumentGenerateDataSource - */ - @Test - public void testDocumentGenerateDataSource() { - // TODO: test DocumentGenerateDataSource - } + /** + * Model tests for DocumentGenerateDataSource + */ + @Test + public void testDocumentGenerateDataSource() { + // TODO: test DocumentGenerateDataSource + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'dataRoot' - */ - @Test - public void dataRootTest() { - // TODO: test dataRoot - } + /** + * Test the property 'dataRoot' + */ + @Test + public void dataRootTest() { + // TODO: test dataRoot + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPositionTest.java b/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPositionTest.java index 8dc97b1d4..13195b1d7 100644 --- a/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPositionTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPositionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for DocumentGenerateInsertDocumentPosition */ public class DocumentGenerateInsertDocumentPositionTest { - /** - * Model tests for DocumentGenerateInsertDocumentPosition - */ - @Test - public void testDocumentGenerateInsertDocumentPosition() { - // TODO: test DocumentGenerateInsertDocumentPosition - } + /** + * Model tests for DocumentGenerateInsertDocumentPosition + */ + @Test + public void testDocumentGenerateInsertDocumentPosition() { + // TODO: test DocumentGenerateInsertDocumentPosition + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentTest.java b/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentTest.java index 2611b911e..12200bcaa 100644 --- a/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for DocumentGenerateInsertDocument */ public class DocumentGenerateInsertDocumentTest { - private final DocumentGenerateInsertDocument model = new DocumentGenerateInsertDocument(); - - /** - * Model tests for DocumentGenerateInsertDocument - */ - @Test - public void testDocumentGenerateInsertDocument() { - // TODO: test DocumentGenerateInsertDocument - } - - /** - * Test the property 'position' - */ - @Test - public void positionTest() { - // TODO: test position - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + private final DocumentGenerateInsertDocument model = new DocumentGenerateInsertDocument(); + + /** + * Model tests for DocumentGenerateInsertDocument + */ + @Test + public void testDocumentGenerateInsertDocument() { + // TODO: test DocumentGenerateInsertDocument + } + + /** + * Test the property 'position' + */ + @Test + public void positionTest() { + // TODO: test position + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentGenerateOutputTypeTest.java b/src/test/java/com/formkiq/client/model/DocumentGenerateOutputTypeTest.java index c4923f102..d744df91f 100644 --- a/src/test/java/com/formkiq/client/model/DocumentGenerateOutputTypeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentGenerateOutputTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for DocumentGenerateOutputType */ public class DocumentGenerateOutputTypeTest { - /** - * Model tests for DocumentGenerateOutputType - */ - @Test - public void testDocumentGenerateOutputType() { - // TODO: test DocumentGenerateOutputType - } + /** + * Model tests for DocumentGenerateOutputType + */ + @Test + public void testDocumentGenerateOutputType() { + // TODO: test DocumentGenerateOutputType + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentIdTest.java b/src/test/java/com/formkiq/client/model/DocumentIdTest.java index 720d2fe3b..646b270bb 100644 --- a/src/test/java/com/formkiq/client/model/DocumentIdTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentIdTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for DocumentId */ public class DocumentIdTest { - private final DocumentId model = new DocumentId(); - - /** - * Model tests for DocumentId - */ - @Test - public void testDocumentId() { - // TODO: test DocumentId - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + private final DocumentId model = new DocumentId(); + + /** + * Model tests for DocumentId + */ + @Test + public void testDocumentId() { + // TODO: test DocumentId + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentMetadataTest.java b/src/test/java/com/formkiq/client/model/DocumentMetadataTest.java index d066367b4..89652cb2c 100644 --- a/src/test/java/com/formkiq/client/model/DocumentMetadataTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentMetadataTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,38 +29,38 @@ * Model tests for DocumentMetadata */ public class DocumentMetadataTest { - private final DocumentMetadata model = new DocumentMetadata(); + private final DocumentMetadata model = new DocumentMetadata(); - /** - * Model tests for DocumentMetadata - */ - @Test - public void testDocumentMetadata() { - // TODO: test DocumentMetadata - } + /** + * Model tests for DocumentMetadata + */ + @Test + public void testDocumentMetadata() { + // TODO: test DocumentMetadata + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentRelationshipTypeTest.java b/src/test/java/com/formkiq/client/model/DocumentRelationshipTypeTest.java index 69e27df07..c5ec22106 100644 --- a/src/test/java/com/formkiq/client/model/DocumentRelationshipTypeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentRelationshipTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for DocumentRelationshipType */ public class DocumentRelationshipTypeTest { - /** - * Model tests for DocumentRelationshipType - */ - @Test - public void testDocumentRelationshipType() { - // TODO: test DocumentRelationshipType - } + /** + * Model tests for DocumentRelationshipType + */ + @Test + public void testDocumentRelationshipType() { + // TODO: test DocumentRelationshipType + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchAttributeTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchAttributeTest.java index d73e7afe4..d60caceb3 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,54 +30,54 @@ * Model tests for DocumentSearchAttribute */ public class DocumentSearchAttributeTest { - private final DocumentSearchAttribute model = new DocumentSearchAttribute(); + private final DocumentSearchAttribute model = new DocumentSearchAttribute(); - /** - * Model tests for DocumentSearchAttribute - */ - @Test - public void testDocumentSearchAttribute() { - // TODO: test DocumentSearchAttribute - } + /** + * Model tests for DocumentSearchAttribute + */ + @Test + public void testDocumentSearchAttribute() { + // TODO: test DocumentSearchAttribute + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'eqOr' - */ - @Test - public void eqOrTest() { - // TODO: test eqOr - } + /** + * Test the property 'eqOr' + */ + @Test + public void eqOrTest() { + // TODO: test eqOr + } - /** - * Test the property 'beginsWith' - */ - @Test - public void beginsWithTest() { - // TODO: test beginsWith - } + /** + * Test the property 'beginsWith' + */ + @Test + public void beginsWithTest() { + // TODO: test beginsWith + } - /** - * Test the property 'range' - */ - @Test - public void rangeTest() { - // TODO: test range - } + /** + * Test the property 'range' + */ + @Test + public void rangeTest() { + // TODO: test range + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchMatchAttributeTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchMatchAttributeTest.java index f6ff90392..c6987f005 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchMatchAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchMatchAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,46 +28,46 @@ * Model tests for DocumentSearchMatchAttribute */ public class DocumentSearchMatchAttributeTest { - private final DocumentSearchMatchAttribute model = new DocumentSearchMatchAttribute(); + private final DocumentSearchMatchAttribute model = new DocumentSearchMatchAttribute(); - /** - * Model tests for DocumentSearchMatchAttribute - */ - @Test - public void testDocumentSearchMatchAttribute() { - // TODO: test DocumentSearchMatchAttribute - } + /** + * Model tests for DocumentSearchMatchAttribute + */ + @Test + public void testDocumentSearchMatchAttribute() { + // TODO: test DocumentSearchMatchAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchMatchTagTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchMatchTagTest.java index 5973797f4..08ac3b5ac 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchMatchTagTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchMatchTagTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,38 +27,38 @@ * Model tests for DocumentSearchMatchTag */ public class DocumentSearchMatchTagTest { - private final DocumentSearchMatchTag model = new DocumentSearchMatchTag(); + private final DocumentSearchMatchTag model = new DocumentSearchMatchTag(); - /** - * Model tests for DocumentSearchMatchTag - */ - @Test - public void testDocumentSearchMatchTag() { - // TODO: test DocumentSearchMatchTag - } + /** + * Model tests for DocumentSearchMatchTag + */ + @Test + public void testDocumentSearchMatchTag() { + // TODO: test DocumentSearchMatchTag + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchMetaTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchMetaTest.java index 3de584b2a..d26efedff 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchMetaTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchMetaTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,54 +27,54 @@ * Model tests for DocumentSearchMeta */ public class DocumentSearchMetaTest { - private final DocumentSearchMeta model = new DocumentSearchMeta(); + private final DocumentSearchMeta model = new DocumentSearchMeta(); - /** - * Model tests for DocumentSearchMeta - */ - @Test - public void testDocumentSearchMeta() { - // TODO: test DocumentSearchMeta - } + /** + * Model tests for DocumentSearchMeta + */ + @Test + public void testDocumentSearchMeta() { + // TODO: test DocumentSearchMeta + } - /** - * Test the property 'folder' - */ - @Test - public void folderTest() { - // TODO: test folder - } + /** + * Test the property 'folder' + */ + @Test + public void folderTest() { + // TODO: test folder + } - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'indexType' - */ - @Test - public void indexTypeTest() { - // TODO: test indexType - } + /** + * Test the property 'indexType' + */ + @Test + public void indexTypeTest() { + // TODO: test indexType + } - /** - * Test the property 'indexFilterBeginsWith' - */ - @Test - public void indexFilterBeginsWithTest() { - // TODO: test indexFilterBeginsWith - } + /** + * Test the property 'indexFilterBeginsWith' + */ + @Test + public void indexFilterBeginsWithTest() { + // TODO: test indexFilterBeginsWith + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchRangeTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchRangeTest.java index 418418cd6..84987909d 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchRangeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchRangeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,38 +28,38 @@ * Model tests for DocumentSearchRange */ public class DocumentSearchRangeTest { - private final DocumentSearchRange model = new DocumentSearchRange(); + private final DocumentSearchRange model = new DocumentSearchRange(); - /** - * Model tests for DocumentSearchRange - */ - @Test - public void testDocumentSearchRange() { - // TODO: test DocumentSearchRange - } + /** + * Model tests for DocumentSearchRange + */ + @Test + public void testDocumentSearchRange() { + // TODO: test DocumentSearchRange + } - /** - * Test the property 'start' - */ - @Test - public void startTest() { - // TODO: test start - } + /** + * Test the property 'start' + */ + @Test + public void startTest() { + // TODO: test start + } - /** - * Test the property 'end' - */ - @Test - public void endTest() { - // TODO: test end - } + /** + * Test the property 'end' + */ + @Test + public void endTest() { + // TODO: test end + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchRequestTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchRequestTest.java index d06e403b8..2f023296e 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchRequestTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for DocumentSearchRequest */ public class DocumentSearchRequestTest { - private final DocumentSearchRequest model = new DocumentSearchRequest(); - - /** - * Model tests for DocumentSearchRequest - */ - @Test - public void testDocumentSearchRequest() { - // TODO: test DocumentSearchRequest - } - - /** - * Test the property 'query' - */ - @Test - public void queryTest() { - // TODO: test query - } - - /** - * Test the property 'responseFields' - */ - @Test - public void responseFieldsTest() { - // TODO: test responseFields - } + private final DocumentSearchRequest model = new DocumentSearchRequest(); + + /** + * Model tests for DocumentSearchRequest + */ + @Test + public void testDocumentSearchRequest() { + // TODO: test DocumentSearchRequest + } + + /** + * Test the property 'query' + */ + @Test + public void queryTest() { + // TODO: test query + } + + /** + * Test the property 'responseFields' + */ + @Test + public void responseFieldsTest() { + // TODO: test responseFields + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchResponseTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchResponseTest.java index 1749c6745..0e508199d 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,38 +30,38 @@ * Model tests for DocumentSearchResponse */ public class DocumentSearchResponseTest { - private final DocumentSearchResponse model = new DocumentSearchResponse(); + private final DocumentSearchResponse model = new DocumentSearchResponse(); - /** - * Model tests for DocumentSearchResponse - */ - @Test - public void testDocumentSearchResponse() { - // TODO: test DocumentSearchResponse - } + /** + * Model tests for DocumentSearchResponse + */ + @Test + public void testDocumentSearchResponse() { + // TODO: test DocumentSearchResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchTagTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchTagTest.java index 1eb6d04cc..1e9995d7d 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchTagTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchTagTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,54 +30,54 @@ * Model tests for DocumentSearchTag */ public class DocumentSearchTagTest { - private final DocumentSearchTag model = new DocumentSearchTag(); + private final DocumentSearchTag model = new DocumentSearchTag(); - /** - * Model tests for DocumentSearchTag - */ - @Test - public void testDocumentSearchTag() { - // TODO: test DocumentSearchTag - } + /** + * Model tests for DocumentSearchTag + */ + @Test + public void testDocumentSearchTag() { + // TODO: test DocumentSearchTag + } - /** - * Test the property 'beginsWith' - */ - @Test - public void beginsWithTest() { - // TODO: test beginsWith - } + /** + * Test the property 'beginsWith' + */ + @Test + public void beginsWithTest() { + // TODO: test beginsWith + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'eqOr' - */ - @Test - public void eqOrTest() { - // TODO: test eqOr - } + /** + * Test the property 'eqOr' + */ + @Test + public void eqOrTest() { + // TODO: test eqOr + } - /** - * Test the property 'range' - */ - @Test - public void rangeTest() { - // TODO: test range - } + /** + * Test the property 'range' + */ + @Test + public void rangeTest() { + // TODO: test range + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchTagsTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchTagsTest.java index a019ca91b..a634010ac 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchTagsTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchTagsTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,46 +28,46 @@ * Model tests for DocumentSearchTags */ public class DocumentSearchTagsTest { - private final DocumentSearchTags model = new DocumentSearchTags(); + private final DocumentSearchTags model = new DocumentSearchTags(); - /** - * Model tests for DocumentSearchTags - */ - @Test - public void testDocumentSearchTags() { - // TODO: test DocumentSearchTags - } + /** + * Model tests for DocumentSearchTags + */ + @Test + public void testDocumentSearchTags() { + // TODO: test DocumentSearchTags + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'beginsWith' - */ - @Test - public void beginsWithTest() { - // TODO: test beginsWith - } + /** + * Test the property 'beginsWith' + */ + @Test + public void beginsWithTest() { + // TODO: test beginsWith + } - /** - * Test the property 'range' - */ - @Test - public void rangeTest() { - // TODO: test range - } + /** + * Test the property 'range' + */ + @Test + public void rangeTest() { + // TODO: test range + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchTest.java index 9b8a57ca3..63a3bfa3a 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -40,70 +33,70 @@ * Model tests for DocumentSearch */ public class DocumentSearchTest { - private final DocumentSearch model = new DocumentSearch(); + private final DocumentSearch model = new DocumentSearch(); - /** - * Model tests for DocumentSearch - */ - @Test - public void testDocumentSearch() { - // TODO: test DocumentSearch - } + /** + * Model tests for DocumentSearch + */ + @Test + public void testDocumentSearch() { + // TODO: test DocumentSearch + } - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } - /** - * Test the property 'meta' - */ - @Test - public void metaTest() { - // TODO: test meta - } + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSyncServiceTest.java b/src/test/java/com/formkiq/client/model/DocumentSyncServiceTest.java index 75d6d1467..645e40bf4 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSyncServiceTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSyncServiceTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for DocumentSyncService */ public class DocumentSyncServiceTest { - /** - * Model tests for DocumentSyncService - */ - @Test - public void testDocumentSyncService() { - // TODO: test DocumentSyncService - } + /** + * Model tests for DocumentSyncService + */ + @Test + public void testDocumentSyncService() { + // TODO: test DocumentSyncService + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSyncStatusTest.java b/src/test/java/com/formkiq/client/model/DocumentSyncStatusTest.java index d62f6bf88..d295cb219 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSyncStatusTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSyncStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for DocumentSyncStatus */ public class DocumentSyncStatusTest { - /** - * Model tests for DocumentSyncStatus - */ - @Test - public void testDocumentSyncStatus() { - // TODO: test DocumentSyncStatus - } + /** + * Model tests for DocumentSyncStatus + */ + @Test + public void testDocumentSyncStatus() { + // TODO: test DocumentSyncStatus + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSyncTest.java b/src/test/java/com/formkiq/client/model/DocumentSyncTest.java index 0213cfb1e..1d863120f 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSyncTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSyncTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,70 +30,70 @@ * Model tests for DocumentSync */ public class DocumentSyncTest { - private final DocumentSync model = new DocumentSync(); + private final DocumentSync model = new DocumentSync(); - /** - * Model tests for DocumentSync - */ - @Test - public void testDocumentSync() { - // TODO: test DocumentSync - } + /** + * Model tests for DocumentSync + */ + @Test + public void testDocumentSync() { + // TODO: test DocumentSync + } - /** - * Test the property 'service' - */ - @Test - public void serviceTest() { - // TODO: test service - } + /** + * Test the property 'service' + */ + @Test + public void serviceTest() { + // TODO: test service + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'syncDate' - */ - @Test - public void syncDateTest() { - // TODO: test syncDate - } + /** + * Test the property 'syncDate' + */ + @Test + public void syncDateTest() { + // TODO: test syncDate + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSyncTypeTest.java b/src/test/java/com/formkiq/client/model/DocumentSyncTypeTest.java index c5438deb2..ec27d09d9 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSyncTypeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSyncTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for DocumentSyncType */ public class DocumentSyncTypeTest { - /** - * Model tests for DocumentSyncType - */ - @Test - public void testDocumentSyncType() { - // TODO: test DocumentSyncType - } + /** + * Model tests for DocumentSyncType + */ + @Test + public void testDocumentSyncType() { + // TODO: test DocumentSyncType + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentTagTest.java b/src/test/java/com/formkiq/client/model/DocumentTagTest.java index e47776885..e5071d3c5 100644 --- a/src/test/java/com/formkiq/client/model/DocumentTagTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentTagTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,70 +29,70 @@ * Model tests for DocumentTag */ public class DocumentTagTest { - private final DocumentTag model = new DocumentTag(); + private final DocumentTag model = new DocumentTag(); - /** - * Model tests for DocumentTag - */ - @Test - public void testDocumentTag() { - // TODO: test DocumentTag - } + /** + * Model tests for DocumentTag + */ + @Test + public void testDocumentTag() { + // TODO: test DocumentTag + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentTest.java b/src/test/java/com/formkiq/client/model/DocumentTest.java index 4fc372bed..4a9e0ec8a 100644 --- a/src/test/java/com/formkiq/client/model/DocumentTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,158 +31,158 @@ * Model tests for Document */ public class DocumentTest { - private final Document model = new Document(); - - /** - * Model tests for Document - */ - @Test - public void testDocument() { - // TODO: test Document - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } - - /** - * Test the property 'versionKey' - */ - @Test - public void versionKeyTest() { - // TODO: test versionKey - } - - /** - * Test the property 's3version' - */ - @Test - public void s3versionTest() { - // TODO: test s3version - } - - /** - * Test the property 'belongsToDocumentId' - */ - @Test - public void belongsToDocumentIdTest() { - // TODO: test belongsToDocumentId - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final Document model = new Document(); + + /** + * Model tests for Document + */ + @Test + public void testDocument() { + // TODO: test Document + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'versionKey' + */ + @Test + public void versionKeyTest() { + // TODO: test versionKey + } + + /** + * Test the property 's3version' + */ + @Test + public void s3versionTest() { + // TODO: test s3version + } + + /** + * Test the property 'belongsToDocumentId' + */ + @Test + public void belongsToDocumentIdTest() { + // TODO: test belongsToDocumentId + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentVersionTest.java b/src/test/java/com/formkiq/client/model/DocumentVersionTest.java index c2cda40ea..d9f4528b4 100644 --- a/src/test/java/com/formkiq/client/model/DocumentVersionTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentVersionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,78 +28,78 @@ * Model tests for DocumentVersion */ public class DocumentVersionTest { - private final DocumentVersion model = new DocumentVersion(); + private final DocumentVersion model = new DocumentVersion(); - /** - * Model tests for DocumentVersion - */ - @Test - public void testDocumentVersion() { - // TODO: test DocumentVersion - } + /** + * Model tests for DocumentVersion + */ + @Test + public void testDocumentVersion() { + // TODO: test DocumentVersion + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } - /** - * Test the property 'versionKey' - */ - @Test - public void versionKeyTest() { - // TODO: test versionKey - } + /** + * Test the property 'versionKey' + */ + @Test + public void versionKeyTest() { + // TODO: test versionKey + } - /** - * Test the property 's3version' - */ - @Test - public void s3versionTest() { - // TODO: test s3version - } + /** + * Test the property 's3version' + */ + @Test + public void s3versionTest() { + // TODO: test s3version + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentWorkflowStatusTest.java b/src/test/java/com/formkiq/client/model/DocumentWorkflowStatusTest.java index 3891f8866..5c97a354e 100644 --- a/src/test/java/com/formkiq/client/model/DocumentWorkflowStatusTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentWorkflowStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for DocumentWorkflowStatus */ public class DocumentWorkflowStatusTest { - /** - * Model tests for DocumentWorkflowStatus - */ - @Test - public void testDocumentWorkflowStatus() { - // TODO: test DocumentWorkflowStatus - } + /** + * Model tests for DocumentWorkflowStatus + */ + @Test + public void testDocumentWorkflowStatus() { + // TODO: test DocumentWorkflowStatus + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentWorkflowTest.java b/src/test/java/com/formkiq/client/model/DocumentWorkflowTest.java index 66933965d..28129fc85 100644 --- a/src/test/java/com/formkiq/client/model/DocumentWorkflowTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentWorkflowTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,62 +28,62 @@ * Model tests for DocumentWorkflow */ public class DocumentWorkflowTest { - private final DocumentWorkflow model = new DocumentWorkflow(); + private final DocumentWorkflow model = new DocumentWorkflow(); - /** - * Model tests for DocumentWorkflow - */ - @Test - public void testDocumentWorkflow() { - // TODO: test DocumentWorkflow - } + /** + * Model tests for DocumentWorkflow + */ + @Test + public void testDocumentWorkflow() { + // TODO: test DocumentWorkflow + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'currentStepId' - */ - @Test - public void currentStepIdTest() { - // TODO: test currentStepId - } + /** + * Test the property 'currentStepId' + */ + @Test + public void currentStepIdTest() { + // TODO: test currentStepId + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentsCompressRequestTest.java b/src/test/java/com/formkiq/client/model/DocumentsCompressRequestTest.java index edab0fe4a..ec0e6853c 100644 --- a/src/test/java/com/formkiq/client/model/DocumentsCompressRequestTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentsCompressRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,22 +29,22 @@ * Model tests for DocumentsCompressRequest */ public class DocumentsCompressRequestTest { - private final DocumentsCompressRequest model = new DocumentsCompressRequest(); + private final DocumentsCompressRequest model = new DocumentsCompressRequest(); - /** - * Model tests for DocumentsCompressRequest - */ - @Test - public void testDocumentsCompressRequest() { - // TODO: test DocumentsCompressRequest - } + /** + * Model tests for DocumentsCompressRequest + */ + @Test + public void testDocumentsCompressRequest() { + // TODO: test DocumentsCompressRequest + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentsCompressResponseTest.java b/src/test/java/com/formkiq/client/model/DocumentsCompressResponseTest.java index d7135d47b..b87871aa7 100644 --- a/src/test/java/com/formkiq/client/model/DocumentsCompressResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentsCompressResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for DocumentsCompressResponse */ public class DocumentsCompressResponseTest { - private final DocumentsCompressResponse model = new DocumentsCompressResponse(); + private final DocumentsCompressResponse model = new DocumentsCompressResponse(); - /** - * Model tests for DocumentsCompressResponse - */ - @Test - public void testDocumentsCompressResponse() { - // TODO: test DocumentsCompressResponse - } + /** + * Model tests for DocumentsCompressResponse + */ + @Test + public void testDocumentsCompressResponse() { + // TODO: test DocumentsCompressResponse + } - /** - * Test the property 'downloadUrl' - */ - @Test - public void downloadUrlTest() { - // TODO: test downloadUrl - } + /** + * Test the property 'downloadUrl' + */ + @Test + public void downloadUrlTest() { + // TODO: test downloadUrl + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignConfigTest.java b/src/test/java/com/formkiq/client/model/DocusignConfigTest.java index 36c271e13..f72f5b251 100644 --- a/src/test/java/com/formkiq/client/model/DocusignConfigTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignConfigTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,46 +27,46 @@ * Model tests for DocusignConfig */ public class DocusignConfigTest { - private final DocusignConfig model = new DocusignConfig(); + private final DocusignConfig model = new DocusignConfig(); - /** - * Model tests for DocusignConfig - */ - @Test - public void testDocusignConfig() { - // TODO: test DocusignConfig - } + /** + * Model tests for DocusignConfig + */ + @Test + public void testDocusignConfig() { + // TODO: test DocusignConfig + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'integrationKey' - */ - @Test - public void integrationKeyTest() { - // TODO: test integrationKey - } + /** + * Test the property 'integrationKey' + */ + @Test + public void integrationKeyTest() { + // TODO: test integrationKey + } - /** - * Test the property 'rsaPrivateKey' - */ - @Test - public void rsaPrivateKeyTest() { - // TODO: test rsaPrivateKey - } + /** + * Test the property 'rsaPrivateKey' + */ + @Test + public void rsaPrivateKeyTest() { + // TODO: test rsaPrivateKey + } - /** - * Test the property 'hmacSignature' - */ - @Test - public void hmacSignatureTest() { - // TODO: test hmacSignature - } + /** + * Test the property 'hmacSignature' + */ + @Test + public void hmacSignatureTest() { + // TODO: test hmacSignature + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignEnvironmentTest.java b/src/test/java/com/formkiq/client/model/DocusignEnvironmentTest.java index b9efdbae5..c8ead6be5 100644 --- a/src/test/java/com/formkiq/client/model/DocusignEnvironmentTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignEnvironmentTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for DocusignEnvironment */ public class DocusignEnvironmentTest { - /** - * Model tests for DocusignEnvironment - */ - @Test - public void testDocusignEnvironment() { - // TODO: test DocusignEnvironment - } + /** + * Model tests for DocusignEnvironment + */ + @Test + public void testDocusignEnvironment() { + // TODO: test DocusignEnvironment + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignInpersonSignerTest.java b/src/test/java/com/formkiq/client/model/DocusignInpersonSignerTest.java index 7d7eae389..bc481306e 100644 --- a/src/test/java/com/formkiq/client/model/DocusignInpersonSignerTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignInpersonSignerTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,78 +28,78 @@ * Model tests for DocusignInpersonSigner */ public class DocusignInpersonSignerTest { - private final DocusignInpersonSigner model = new DocusignInpersonSigner(); + private final DocusignInpersonSigner model = new DocusignInpersonSigner(); - /** - * Model tests for DocusignInpersonSigner - */ - @Test - public void testDocusignInpersonSigner() { - // TODO: test DocusignInpersonSigner - } + /** + * Model tests for DocusignInpersonSigner + */ + @Test + public void testDocusignInpersonSigner() { + // TODO: test DocusignInpersonSigner + } - /** - * Test the property 'hostEmail' - */ - @Test - public void hostEmailTest() { - // TODO: test hostEmail - } + /** + * Test the property 'hostEmail' + */ + @Test + public void hostEmailTest() { + // TODO: test hostEmail + } - /** - * Test the property 'hostName' - */ - @Test - public void hostNameTest() { - // TODO: test hostName - } + /** + * Test the property 'hostName' + */ + @Test + public void hostNameTest() { + // TODO: test hostName + } - /** - * Test the property 'signerName' - */ - @Test - public void signerNameTest() { - // TODO: test signerName - } + /** + * Test the property 'signerName' + */ + @Test + public void signerNameTest() { + // TODO: test signerName + } - /** - * Test the property 'signerEmail' - */ - @Test - public void signerEmailTest() { - // TODO: test signerEmail - } + /** + * Test the property 'signerEmail' + */ + @Test + public void signerEmailTest() { + // TODO: test signerEmail + } - /** - * Test the property 'recipientId' - */ - @Test - public void recipientIdTest() { - // TODO: test recipientId - } + /** + * Test the property 'recipientId' + */ + @Test + public void recipientIdTest() { + // TODO: test recipientId + } - /** - * Test the property 'routingOrder' - */ - @Test - public void routingOrderTest() { - // TODO: test routingOrder - } + /** + * Test the property 'routingOrder' + */ + @Test + public void routingOrderTest() { + // TODO: test routingOrder + } - /** - * Test the property 'suppressEmails' - */ - @Test - public void suppressEmailsTest() { - // TODO: test suppressEmails - } + /** + * Test the property 'suppressEmails' + */ + @Test + public void suppressEmailsTest() { + // TODO: test suppressEmails + } - /** - * Test the property 'tabs' - */ - @Test - public void tabsTest() { - // TODO: test tabs - } + /** + * Test the property 'tabs' + */ + @Test + public void tabsTest() { + // TODO: test tabs + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignNotificationExpirationsTest.java b/src/test/java/com/formkiq/client/model/DocusignNotificationExpirationsTest.java index 35fe2282e..0ed1f84fa 100644 --- a/src/test/java/com/formkiq/client/model/DocusignNotificationExpirationsTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignNotificationExpirationsTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,38 +27,38 @@ * Model tests for DocusignNotificationExpirations */ public class DocusignNotificationExpirationsTest { - private final DocusignNotificationExpirations model = new DocusignNotificationExpirations(); + private final DocusignNotificationExpirations model = new DocusignNotificationExpirations(); - /** - * Model tests for DocusignNotificationExpirations - */ - @Test - public void testDocusignNotificationExpirations() { - // TODO: test DocusignNotificationExpirations - } + /** + * Model tests for DocusignNotificationExpirations + */ + @Test + public void testDocusignNotificationExpirations() { + // TODO: test DocusignNotificationExpirations + } - /** - * Test the property 'expireAfter' - */ - @Test - public void expireAfterTest() { - // TODO: test expireAfter - } + /** + * Test the property 'expireAfter' + */ + @Test + public void expireAfterTest() { + // TODO: test expireAfter + } - /** - * Test the property 'expireEnabled' - */ - @Test - public void expireEnabledTest() { - // TODO: test expireEnabled - } + /** + * Test the property 'expireEnabled' + */ + @Test + public void expireEnabledTest() { + // TODO: test expireEnabled + } - /** - * Test the property 'expireWarn' - */ - @Test - public void expireWarnTest() { - // TODO: test expireWarn - } + /** + * Test the property 'expireWarn' + */ + @Test + public void expireWarnTest() { + // TODO: test expireWarn + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignNotificationRemindersTest.java b/src/test/java/com/formkiq/client/model/DocusignNotificationRemindersTest.java index eef2799ff..a814e53ee 100644 --- a/src/test/java/com/formkiq/client/model/DocusignNotificationRemindersTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignNotificationRemindersTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,38 +27,38 @@ * Model tests for DocusignNotificationReminders */ public class DocusignNotificationRemindersTest { - private final DocusignNotificationReminders model = new DocusignNotificationReminders(); + private final DocusignNotificationReminders model = new DocusignNotificationReminders(); - /** - * Model tests for DocusignNotificationReminders - */ - @Test - public void testDocusignNotificationReminders() { - // TODO: test DocusignNotificationReminders - } + /** + * Model tests for DocusignNotificationReminders + */ + @Test + public void testDocusignNotificationReminders() { + // TODO: test DocusignNotificationReminders + } - /** - * Test the property 'reminderDelay' - */ - @Test - public void reminderDelayTest() { - // TODO: test reminderDelay - } + /** + * Test the property 'reminderDelay' + */ + @Test + public void reminderDelayTest() { + // TODO: test reminderDelay + } - /** - * Test the property 'reminderEnabled' - */ - @Test - public void reminderEnabledTest() { - // TODO: test reminderEnabled - } + /** + * Test the property 'reminderEnabled' + */ + @Test + public void reminderEnabledTest() { + // TODO: test reminderEnabled + } - /** - * Test the property 'reminderFrequency' - */ - @Test - public void reminderFrequencyTest() { - // TODO: test reminderFrequency - } + /** + * Test the property 'reminderFrequency' + */ + @Test + public void reminderFrequencyTest() { + // TODO: test reminderFrequency + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignNotificationTest.java b/src/test/java/com/formkiq/client/model/DocusignNotificationTest.java index 7715198a1..d16f5ceba 100644 --- a/src/test/java/com/formkiq/client/model/DocusignNotificationTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignNotificationTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,38 +29,38 @@ * Model tests for DocusignNotification */ public class DocusignNotificationTest { - private final DocusignNotification model = new DocusignNotification(); + private final DocusignNotification model = new DocusignNotification(); - /** - * Model tests for DocusignNotification - */ - @Test - public void testDocusignNotification() { - // TODO: test DocusignNotification - } + /** + * Model tests for DocusignNotification + */ + @Test + public void testDocusignNotification() { + // TODO: test DocusignNotification + } - /** - * Test the property 'useAccountDefaults' - */ - @Test - public void useAccountDefaultsTest() { - // TODO: test useAccountDefaults - } + /** + * Test the property 'useAccountDefaults' + */ + @Test + public void useAccountDefaultsTest() { + // TODO: test useAccountDefaults + } - /** - * Test the property 'expirations' - */ - @Test - public void expirationsTest() { - // TODO: test expirations - } + /** + * Test the property 'expirations' + */ + @Test + public void expirationsTest() { + // TODO: test expirations + } - /** - * Test the property 'reminders' - */ - @Test - public void remindersTest() { - // TODO: test reminders - } + /** + * Test the property 'reminders' + */ + @Test + public void remindersTest() { + // TODO: test reminders + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignRecipientViewTest.java b/src/test/java/com/formkiq/client/model/DocusignRecipientViewTest.java index f134ff558..ba4ed881b 100644 --- a/src/test/java/com/formkiq/client/model/DocusignRecipientViewTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignRecipientViewTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,70 +29,70 @@ * Model tests for DocusignRecipientView */ public class DocusignRecipientViewTest { - private final DocusignRecipientView model = new DocusignRecipientView(); + private final DocusignRecipientView model = new DocusignRecipientView(); - /** - * Model tests for DocusignRecipientView - */ - @Test - public void testDocusignRecipientView() { - // TODO: test DocusignRecipientView - } + /** + * Model tests for DocusignRecipientView + */ + @Test + public void testDocusignRecipientView() { + // TODO: test DocusignRecipientView + } - /** - * Test the property 'returnUrl' - */ - @Test - public void returnUrlTest() { - // TODO: test returnUrl - } + /** + * Test the property 'returnUrl' + */ + @Test + public void returnUrlTest() { + // TODO: test returnUrl + } - /** - * Test the property 'recipientId' - */ - @Test - public void recipientIdTest() { - // TODO: test recipientId - } + /** + * Test the property 'recipientId' + */ + @Test + public void recipientIdTest() { + // TODO: test recipientId + } - /** - * Test the property 'userName' - */ - @Test - public void userNameTest() { - // TODO: test userName - } + /** + * Test the property 'userName' + */ + @Test + public void userNameTest() { + // TODO: test userName + } - /** - * Test the property 'clientUserId' - */ - @Test - public void clientUserIdTest() { - // TODO: test clientUserId - } + /** + * Test the property 'clientUserId' + */ + @Test + public void clientUserIdTest() { + // TODO: test clientUserId + } - /** - * Test the property 'email' - */ - @Test - public void emailTest() { - // TODO: test email - } + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } - /** - * Test the property 'frameAncestors' - */ - @Test - public void frameAncestorsTest() { - // TODO: test frameAncestors - } + /** + * Test the property 'frameAncestors' + */ + @Test + public void frameAncestorsTest() { + // TODO: test frameAncestors + } - /** - * Test the property 'messageOrigins' - */ - @Test - public void messageOriginsTest() { - // TODO: test messageOrigins - } + /** + * Test the property 'messageOrigins' + */ + @Test + public void messageOriginsTest() { + // TODO: test messageOrigins + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignSignHereTabsTest.java b/src/test/java/com/formkiq/client/model/DocusignSignHereTabsTest.java index aa92635a5..eb0714fd7 100644 --- a/src/test/java/com/formkiq/client/model/DocusignSignHereTabsTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignSignHereTabsTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,78 +27,78 @@ * Model tests for DocusignSignHereTabs */ public class DocusignSignHereTabsTest { - private final DocusignSignHereTabs model = new DocusignSignHereTabs(); + private final DocusignSignHereTabs model = new DocusignSignHereTabs(); - /** - * Model tests for DocusignSignHereTabs - */ - @Test - public void testDocusignSignHereTabs() { - // TODO: test DocusignSignHereTabs - } + /** + * Model tests for DocusignSignHereTabs + */ + @Test + public void testDocusignSignHereTabs() { + // TODO: test DocusignSignHereTabs + } - /** - * Test the property 'anchorString' - */ - @Test - public void anchorStringTest() { - // TODO: test anchorString - } + /** + * Test the property 'anchorString' + */ + @Test + public void anchorStringTest() { + // TODO: test anchorString + } - /** - * Test the property 'anchorXOffset' - */ - @Test - public void anchorXOffsetTest() { - // TODO: test anchorXOffset - } + /** + * Test the property 'anchorXOffset' + */ + @Test + public void anchorXOffsetTest() { + // TODO: test anchorXOffset + } - /** - * Test the property 'anchorYOffset' - */ - @Test - public void anchorYOffsetTest() { - // TODO: test anchorYOffset - } + /** + * Test the property 'anchorYOffset' + */ + @Test + public void anchorYOffsetTest() { + // TODO: test anchorYOffset + } - /** - * Test the property 'anchorIgnoreIfNotPresent' - */ - @Test - public void anchorIgnoreIfNotPresentTest() { - // TODO: test anchorIgnoreIfNotPresent - } + /** + * Test the property 'anchorIgnoreIfNotPresent' + */ + @Test + public void anchorIgnoreIfNotPresentTest() { + // TODO: test anchorIgnoreIfNotPresent + } - /** - * Test the property 'anchorUnits' - */ - @Test - public void anchorUnitsTest() { - // TODO: test anchorUnits - } + /** + * Test the property 'anchorUnits' + */ + @Test + public void anchorUnitsTest() { + // TODO: test anchorUnits + } - /** - * Test the property 'xPosition' - */ - @Test - public void xPositionTest() { - // TODO: test xPosition - } + /** + * Test the property 'xPosition' + */ + @Test + public void xPositionTest() { + // TODO: test xPosition + } - /** - * Test the property 'yPosition' - */ - @Test - public void yPositionTest() { - // TODO: test yPosition - } + /** + * Test the property 'yPosition' + */ + @Test + public void yPositionTest() { + // TODO: test yPosition + } - /** - * Test the property 'pageNumber' - */ - @Test - public void pageNumberTest() { - // TODO: test pageNumber - } + /** + * Test the property 'pageNumber' + */ + @Test + public void pageNumberTest() { + // TODO: test pageNumber + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignSignerTest.java b/src/test/java/com/formkiq/client/model/DocusignSignerTest.java index 852255694..8e55f27ca 100644 --- a/src/test/java/com/formkiq/client/model/DocusignSignerTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignSignerTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,70 +28,70 @@ * Model tests for DocusignSigner */ public class DocusignSignerTest { - private final DocusignSigner model = new DocusignSigner(); + private final DocusignSigner model = new DocusignSigner(); - /** - * Model tests for DocusignSigner - */ - @Test - public void testDocusignSigner() { - // TODO: test DocusignSigner - } + /** + * Model tests for DocusignSigner + */ + @Test + public void testDocusignSigner() { + // TODO: test DocusignSigner + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'email' - */ - @Test - public void emailTest() { - // TODO: test email - } + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } - /** - * Test the property 'clientUserId' - */ - @Test - public void clientUserIdTest() { - // TODO: test clientUserId - } + /** + * Test the property 'clientUserId' + */ + @Test + public void clientUserIdTest() { + // TODO: test clientUserId + } - /** - * Test the property 'recipientId' - */ - @Test - public void recipientIdTest() { - // TODO: test recipientId - } + /** + * Test the property 'recipientId' + */ + @Test + public void recipientIdTest() { + // TODO: test recipientId + } - /** - * Test the property 'routingOrder' - */ - @Test - public void routingOrderTest() { - // TODO: test routingOrder - } + /** + * Test the property 'routingOrder' + */ + @Test + public void routingOrderTest() { + // TODO: test routingOrder + } - /** - * Test the property 'suppressEmails' - */ - @Test - public void suppressEmailsTest() { - // TODO: test suppressEmails - } + /** + * Test the property 'suppressEmails' + */ + @Test + public void suppressEmailsTest() { + // TODO: test suppressEmails + } - /** - * Test the property 'tabs' - */ - @Test - public void tabsTest() { - // TODO: test tabs - } + /** + * Test the property 'tabs' + */ + @Test + public void tabsTest() { + // TODO: test tabs + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignSigningTabsTest.java b/src/test/java/com/formkiq/client/model/DocusignSigningTabsTest.java index 64c6d28fe..35d954560 100644 --- a/src/test/java/com/formkiq/client/model/DocusignSigningTabsTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignSigningTabsTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for DocusignSigningTabs */ public class DocusignSigningTabsTest { - private final DocusignSigningTabs model = new DocusignSigningTabs(); + private final DocusignSigningTabs model = new DocusignSigningTabs(); - /** - * Model tests for DocusignSigningTabs - */ - @Test - public void testDocusignSigningTabs() { - // TODO: test DocusignSigningTabs - } + /** + * Model tests for DocusignSigningTabs + */ + @Test + public void testDocusignSigningTabs() { + // TODO: test DocusignSigningTabs + } - /** - * Test the property 'signHereTabs' - */ - @Test - public void signHereTabsTest() { - // TODO: test signHereTabs - } + /** + * Test the property 'signHereTabs' + */ + @Test + public void signHereTabsTest() { + // TODO: test signHereTabs + } } diff --git a/src/test/java/com/formkiq/client/model/EntityAttributeTest.java b/src/test/java/com/formkiq/client/model/EntityAttributeTest.java index f57c76b07..76a06084b 100644 --- a/src/test/java/com/formkiq/client/model/EntityAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/EntityAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,70 +31,70 @@ * Model tests for EntityAttribute */ public class EntityAttributeTest { - private final EntityAttribute model = new EntityAttribute(); + private final EntityAttribute model = new EntityAttribute(); - /** - * Model tests for EntityAttribute - */ - @Test - public void testEntityAttribute() { - // TODO: test EntityAttribute - } + /** + * Model tests for EntityAttribute + */ + @Test + public void testEntityAttribute() { + // TODO: test EntityAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } - /** - * Test the property 'valueType' - */ - @Test - public void valueTypeTest() { - // TODO: test valueType - } + /** + * Test the property 'valueType' + */ + @Test + public void valueTypeTest() { + // TODO: test valueType + } } diff --git a/src/test/java/com/formkiq/client/model/EntityTest.java b/src/test/java/com/formkiq/client/model/EntityTest.java index 77b395acb..87a041daa 100644 --- a/src/test/java/com/formkiq/client/model/EntityTest.java +++ b/src/test/java/com/formkiq/client/model/EntityTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,54 +30,54 @@ * Model tests for Entity */ public class EntityTest { - private final Entity model = new Entity(); + private final Entity model = new Entity(); - /** - * Model tests for Entity - */ - @Test - public void testEntity() { - // TODO: test Entity - } + /** + * Model tests for Entity + */ + @Test + public void testEntity() { + // TODO: test Entity + } - /** - * Test the property 'entityId' - */ - @Test - public void entityIdTest() { - // TODO: test entityId - } + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/EntityTypeNamespaceTest.java b/src/test/java/com/formkiq/client/model/EntityTypeNamespaceTest.java index 009f9dd3a..2bdfd9df4 100644 --- a/src/test/java/com/formkiq/client/model/EntityTypeNamespaceTest.java +++ b/src/test/java/com/formkiq/client/model/EntityTypeNamespaceTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for EntityTypeNamespace */ public class EntityTypeNamespaceTest { - /** - * Model tests for EntityTypeNamespace - */ - @Test - public void testEntityTypeNamespace() { - // TODO: test EntityTypeNamespace - } + /** + * Model tests for EntityTypeNamespace + */ + @Test + public void testEntityTypeNamespace() { + // TODO: test EntityTypeNamespace + } } diff --git a/src/test/java/com/formkiq/client/model/EntityTypeTest.java b/src/test/java/com/formkiq/client/model/EntityTypeTest.java index 302253101..ab402b324 100644 --- a/src/test/java/com/formkiq/client/model/EntityTypeTest.java +++ b/src/test/java/com/formkiq/client/model/EntityTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,46 +28,46 @@ * Model tests for EntityType */ public class EntityTypeTest { - private final EntityType model = new EntityType(); + private final EntityType model = new EntityType(); - /** - * Model tests for EntityType - */ - @Test - public void testEntityType() { - // TODO: test EntityType - } + /** + * Model tests for EntityType + */ + @Test + public void testEntityType() { + // TODO: test EntityType + } - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } } diff --git a/src/test/java/com/formkiq/client/model/ErrorTest.java b/src/test/java/com/formkiq/client/model/ErrorTest.java index ef291fae5..0a18e8c56 100644 --- a/src/test/java/com/formkiq/client/model/ErrorTest.java +++ b/src/test/java/com/formkiq/client/model/ErrorTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for Error */ public class ErrorTest { - private final Error model = new Error(); - - /** - * Model tests for Error - */ - @Test - public void testError() { - // TODO: test Error - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'error' - */ - @Test - public void errorTest() { - // TODO: test error - } + private final Error model = new Error(); + + /** + * Model tests for Error + */ + @Test + public void testError() { + // TODO: test Error + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'error' + */ + @Test + public void errorTest() { + // TODO: test error + } } diff --git a/src/test/java/com/formkiq/client/model/ErrorsResponseTest.java b/src/test/java/com/formkiq/client/model/ErrorsResponseTest.java index a058dd28b..2cc224118 100644 --- a/src/test/java/com/formkiq/client/model/ErrorsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/ErrorsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for ErrorsResponse */ public class ErrorsResponseTest { - private final ErrorsResponse model = new ErrorsResponse(); + private final ErrorsResponse model = new ErrorsResponse(); - /** - * Model tests for ErrorsResponse - */ - @Test - public void testErrorsResponse() { - // TODO: test ErrorsResponse - } + /** + * Model tests for ErrorsResponse + */ + @Test + public void testErrorsResponse() { + // TODO: test ErrorsResponse + } - /** - * Test the property 'errors' - */ - @Test - public void errorsTest() { - // TODO: test errors - } + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } } diff --git a/src/test/java/com/formkiq/client/model/FolderPermissionTest.java b/src/test/java/com/formkiq/client/model/FolderPermissionTest.java index 1a4b1e9a0..e3a04250a 100644 --- a/src/test/java/com/formkiq/client/model/FolderPermissionTest.java +++ b/src/test/java/com/formkiq/client/model/FolderPermissionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for FolderPermission */ public class FolderPermissionTest { - private final FolderPermission model = new FolderPermission(); - - /** - * Model tests for FolderPermission - */ - @Test - public void testFolderPermission() { - // TODO: test FolderPermission - } - - /** - * Test the property 'roleName' - */ - @Test - public void roleNameTest() { - // TODO: test roleName - } - - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + private final FolderPermission model = new FolderPermission(); + + /** + * Model tests for FolderPermission + */ + @Test + public void testFolderPermission() { + // TODO: test FolderPermission + } + + /** + * Test the property 'roleName' + */ + @Test + public void roleNameTest() { + // TODO: test roleName + } + + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/FolderPermissionTypeTest.java b/src/test/java/com/formkiq/client/model/FolderPermissionTypeTest.java index a2d20b809..7ab4fac60 100644 --- a/src/test/java/com/formkiq/client/model/FolderPermissionTypeTest.java +++ b/src/test/java/com/formkiq/client/model/FolderPermissionTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for FolderPermissionType */ public class FolderPermissionTypeTest { - /** - * Model tests for FolderPermissionType - */ - @Test - public void testFolderPermissionType() { - // TODO: test FolderPermissionType - } + /** + * Model tests for FolderPermissionType + */ + @Test + public void testFolderPermissionType() { + // TODO: test FolderPermissionType + } } diff --git a/src/test/java/com/formkiq/client/model/FulltextAttributeTest.java b/src/test/java/com/formkiq/client/model/FulltextAttributeTest.java index bbd3a5ae3..3ae3f2b1c 100644 --- a/src/test/java/com/formkiq/client/model/FulltextAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/FulltextAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,46 +31,46 @@ * Model tests for FulltextAttribute */ public class FulltextAttributeTest { - private final FulltextAttribute model = new FulltextAttribute(); + private final FulltextAttribute model = new FulltextAttribute(); - /** - * Model tests for FulltextAttribute - */ - @Test - public void testFulltextAttribute() { - // TODO: test FulltextAttribute - } + /** + * Model tests for FulltextAttribute + */ + @Test + public void testFulltextAttribute() { + // TODO: test FulltextAttribute + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } - /** - * Test the property 'valueType' - */ - @Test - public void valueTypeTest() { - // TODO: test valueType - } + /** + * Test the property 'valueType' + */ + @Test + public void valueTypeTest() { + // TODO: test valueType + } } diff --git a/src/test/java/com/formkiq/client/model/FulltextSearchItemTest.java b/src/test/java/com/formkiq/client/model/FulltextSearchItemTest.java index 439c4b663..9f81d7817 100644 --- a/src/test/java/com/formkiq/client/model/FulltextSearchItemTest.java +++ b/src/test/java/com/formkiq/client/model/FulltextSearchItemTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,142 +31,142 @@ * Model tests for FulltextSearchItem */ public class FulltextSearchItemTest { - private final FulltextSearchItem model = new FulltextSearchItem(); - - /** - * Model tests for FulltextSearchItem - */ - @Test - public void testFulltextSearchItem() { - // TODO: test FulltextSearchItem - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'createdBy' - */ - @Test - public void createdByTest() { - // TODO: test createdBy - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final FulltextSearchItem model = new FulltextSearchItem(); + + /** + * Model tests for FulltextSearchItem + */ + @Test + public void testFulltextSearchItem() { + // TODO: test FulltextSearchItem + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/GetActivitesResponseTest.java b/src/test/java/com/formkiq/client/model/GetActivitesResponseTest.java index 20c26308a..2ab1320f7 100644 --- a/src/test/java/com/formkiq/client/model/GetActivitesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetActivitesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetActivitesResponse */ public class GetActivitesResponseTest { - private final GetActivitesResponse model = new GetActivitesResponse(); - - /** - * Model tests for GetActivitesResponse - */ - @Test - public void testGetActivitesResponse() { - // TODO: test GetActivitesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'activities' - */ - @Test - public void activitiesTest() { - // TODO: test activities - } + private final GetActivitesResponse model = new GetActivitesResponse(); + + /** + * Model tests for GetActivitesResponse + */ + @Test + public void testGetActivitesResponse() { + // TODO: test GetActivitesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'activities' + */ + @Test + public void activitiesTest() { + // TODO: test activities + } } diff --git a/src/test/java/com/formkiq/client/model/GetApiKeysResponseTest.java b/src/test/java/com/formkiq/client/model/GetApiKeysResponseTest.java index 0fc7bef16..aa10eabf0 100644 --- a/src/test/java/com/formkiq/client/model/GetApiKeysResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetApiKeysResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetApiKeysResponse */ public class GetApiKeysResponseTest { - private final GetApiKeysResponse model = new GetApiKeysResponse(); - - /** - * Model tests for GetApiKeysResponse - */ - @Test - public void testGetApiKeysResponse() { - // TODO: test GetApiKeysResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'apiKeys' - */ - @Test - public void apiKeysTest() { - // TODO: test apiKeys - } + private final GetApiKeysResponse model = new GetApiKeysResponse(); + + /** + * Model tests for GetApiKeysResponse + */ + @Test + public void testGetApiKeysResponse() { + // TODO: test GetApiKeysResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'apiKeys' + */ + @Test + public void apiKeysTest() { + // TODO: test apiKeys + } } diff --git a/src/test/java/com/formkiq/client/model/GetAttributeAllowedValuesResponseTest.java b/src/test/java/com/formkiq/client/model/GetAttributeAllowedValuesResponseTest.java index f5f245e42..a08ee4ecc 100644 --- a/src/test/java/com/formkiq/client/model/GetAttributeAllowedValuesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetAttributeAllowedValuesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,30 +31,30 @@ * Model tests for GetAttributeAllowedValuesResponse */ public class GetAttributeAllowedValuesResponseTest { - private final GetAttributeAllowedValuesResponse model = new GetAttributeAllowedValuesResponse(); - - /** - * Model tests for GetAttributeAllowedValuesResponse - */ - @Test - public void testGetAttributeAllowedValuesResponse() { - // TODO: test GetAttributeAllowedValuesResponse - } - - /** - * Test the property 'allowedValues' - */ - @Test - public void allowedValuesTest() { - // TODO: test allowedValues - } - - /** - * Test the property 'localizedAllowedValues' - */ - @Test - public void localizedAllowedValuesTest() { - // TODO: test localizedAllowedValues - } + private final GetAttributeAllowedValuesResponse model = new GetAttributeAllowedValuesResponse(); + + /** + * Model tests for GetAttributeAllowedValuesResponse + */ + @Test + public void testGetAttributeAllowedValuesResponse() { + // TODO: test GetAttributeAllowedValuesResponse + } + + /** + * Test the property 'allowedValues' + */ + @Test + public void allowedValuesTest() { + // TODO: test allowedValues + } + + /** + * Test the property 'localizedAllowedValues' + */ + @Test + public void localizedAllowedValuesTest() { + // TODO: test localizedAllowedValues + } } diff --git a/src/test/java/com/formkiq/client/model/GetAttributeResponseTest.java b/src/test/java/com/formkiq/client/model/GetAttributeResponseTest.java index d61324f83..64a6789e6 100644 --- a/src/test/java/com/formkiq/client/model/GetAttributeResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetAttributeResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetAttributeResponse */ public class GetAttributeResponseTest { - private final GetAttributeResponse model = new GetAttributeResponse(); + private final GetAttributeResponse model = new GetAttributeResponse(); - /** - * Model tests for GetAttributeResponse - */ - @Test - public void testGetAttributeResponse() { - // TODO: test GetAttributeResponse - } + /** + * Model tests for GetAttributeResponse + */ + @Test + public void testGetAttributeResponse() { + // TODO: test GetAttributeResponse + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } } diff --git a/src/test/java/com/formkiq/client/model/GetAttributesResponseTest.java b/src/test/java/com/formkiq/client/model/GetAttributesResponseTest.java index 37edbea00..bc37d31eb 100644 --- a/src/test/java/com/formkiq/client/model/GetAttributesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetAttributesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetAttributesResponse */ public class GetAttributesResponseTest { - private final GetAttributesResponse model = new GetAttributesResponse(); - - /** - * Model tests for GetAttributesResponse - */ - @Test - public void testGetAttributesResponse() { - // TODO: test GetAttributesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final GetAttributesResponse model = new GetAttributesResponse(); + + /** + * Model tests for GetAttributesResponse + */ + @Test + public void testGetAttributesResponse() { + // TODO: test GetAttributesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseDocumentsResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseDocumentsResponseTest.java index 26242c861..35b4834a7 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseDocumentsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseDocumentsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetCaseDocumentsResponse */ public class GetCaseDocumentsResponseTest { - private final GetCaseDocumentsResponse model = new GetCaseDocumentsResponse(); - - /** - * Model tests for GetCaseDocumentsResponse - */ - @Test - public void testGetCaseDocumentsResponse() { - // TODO: test GetCaseDocumentsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final GetCaseDocumentsResponse model = new GetCaseDocumentsResponse(); + + /** + * Model tests for GetCaseDocumentsResponse + */ + @Test + public void testGetCaseDocumentsResponse() { + // TODO: test GetCaseDocumentsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseNigoResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseNigoResponseTest.java index e8f35d5ad..b4d1f8763 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseNigoResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseNigoResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetCaseNigoResponse */ public class GetCaseNigoResponseTest { - private final GetCaseNigoResponse model = new GetCaseNigoResponse(); + private final GetCaseNigoResponse model = new GetCaseNigoResponse(); - /** - * Model tests for GetCaseNigoResponse - */ - @Test - public void testGetCaseNigoResponse() { - // TODO: test GetCaseNigoResponse - } + /** + * Model tests for GetCaseNigoResponse + */ + @Test + public void testGetCaseNigoResponse() { + // TODO: test GetCaseNigoResponse + } - /** - * Test the property 'nigo' - */ - @Test - public void nigoTest() { - // TODO: test nigo - } + /** + * Test the property 'nigo' + */ + @Test + public void nigoTest() { + // TODO: test nigo + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseNigosResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseNigosResponseTest.java index adbee95aa..2b7abf515 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseNigosResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseNigosResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetCaseNigosResponse */ public class GetCaseNigosResponseTest { - private final GetCaseNigosResponse model = new GetCaseNigosResponse(); - - /** - * Model tests for GetCaseNigosResponse - */ - @Test - public void testGetCaseNigosResponse() { - // TODO: test GetCaseNigosResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'nigos' - */ - @Test - public void nigosTest() { - // TODO: test nigos - } + private final GetCaseNigosResponse model = new GetCaseNigosResponse(); + + /** + * Model tests for GetCaseNigosResponse + */ + @Test + public void testGetCaseNigosResponse() { + // TODO: test GetCaseNigosResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'nigos' + */ + @Test + public void nigosTest() { + // TODO: test nigos + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseResponseTest.java index 6b8e99ffd..f5230ea45 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetCaseResponse */ public class GetCaseResponseTest { - private final GetCaseResponse model = new GetCaseResponse(); + private final GetCaseResponse model = new GetCaseResponse(); - /** - * Model tests for GetCaseResponse - */ - @Test - public void testGetCaseResponse() { - // TODO: test GetCaseResponse - } + /** + * Model tests for GetCaseResponse + */ + @Test + public void testGetCaseResponse() { + // TODO: test GetCaseResponse + } - /** - * Test the property '_case' - */ - @Test - public void _caseTest() { - // TODO: test _case - } + /** + * Test the property '_case' + */ + @Test + public void _caseTest() { + // TODO: test _case + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseTaskResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseTaskResponseTest.java index b25c26f61..e571e6c15 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseTaskResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseTaskResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetCaseTaskResponse */ public class GetCaseTaskResponseTest { - private final GetCaseTaskResponse model = new GetCaseTaskResponse(); + private final GetCaseTaskResponse model = new GetCaseTaskResponse(); - /** - * Model tests for GetCaseTaskResponse - */ - @Test - public void testGetCaseTaskResponse() { - // TODO: test GetCaseTaskResponse - } + /** + * Model tests for GetCaseTaskResponse + */ + @Test + public void testGetCaseTaskResponse() { + // TODO: test GetCaseTaskResponse + } - /** - * Test the property 'task' - */ - @Test - public void taskTest() { - // TODO: test task - } + /** + * Test the property 'task' + */ + @Test + public void taskTest() { + // TODO: test task + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseTasksResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseTasksResponseTest.java index c91a47a64..6545a5f55 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseTasksResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseTasksResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetCaseTasksResponse */ public class GetCaseTasksResponseTest { - private final GetCaseTasksResponse model = new GetCaseTasksResponse(); - - /** - * Model tests for GetCaseTasksResponse - */ - @Test - public void testGetCaseTasksResponse() { - // TODO: test GetCaseTasksResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'tasks' - */ - @Test - public void tasksTest() { - // TODO: test tasks - } + private final GetCaseTasksResponse model = new GetCaseTasksResponse(); + + /** + * Model tests for GetCaseTasksResponse + */ + @Test + public void testGetCaseTasksResponse() { + // TODO: test GetCaseTasksResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'tasks' + */ + @Test + public void tasksTest() { + // TODO: test tasks + } } diff --git a/src/test/java/com/formkiq/client/model/GetCasesResponseTest.java b/src/test/java/com/formkiq/client/model/GetCasesResponseTest.java index 4bec22706..5acede76c 100644 --- a/src/test/java/com/formkiq/client/model/GetCasesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCasesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetCasesResponse */ public class GetCasesResponseTest { - private final GetCasesResponse model = new GetCasesResponse(); - - /** - * Model tests for GetCasesResponse - */ - @Test - public void testGetCasesResponse() { - // TODO: test GetCasesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'cases' - */ - @Test - public void casesTest() { - // TODO: test cases - } + private final GetCasesResponse model = new GetCasesResponse(); + + /** + * Model tests for GetCasesResponse + */ + @Test + public void testGetCasesResponse() { + // TODO: test GetCasesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'cases' + */ + @Test + public void casesTest() { + // TODO: test cases + } } diff --git a/src/test/java/com/formkiq/client/model/GetClassificationResponseTest.java b/src/test/java/com/formkiq/client/model/GetClassificationResponseTest.java index 81ea372ab..f43a0fd9c 100644 --- a/src/test/java/com/formkiq/client/model/GetClassificationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetClassificationResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetClassificationResponse */ public class GetClassificationResponseTest { - private final GetClassificationResponse model = new GetClassificationResponse(); + private final GetClassificationResponse model = new GetClassificationResponse(); - /** - * Model tests for GetClassificationResponse - */ - @Test - public void testGetClassificationResponse() { - // TODO: test GetClassificationResponse - } + /** + * Model tests for GetClassificationResponse + */ + @Test + public void testGetClassificationResponse() { + // TODO: test GetClassificationResponse + } - /** - * Test the property 'classification' - */ - @Test - public void classificationTest() { - // TODO: test classification - } + /** + * Test the property 'classification' + */ + @Test + public void classificationTest() { + // TODO: test classification + } } diff --git a/src/test/java/com/formkiq/client/model/GetClassificationsResponseTest.java b/src/test/java/com/formkiq/client/model/GetClassificationsResponseTest.java index 66851dff4..3e6efe5da 100644 --- a/src/test/java/com/formkiq/client/model/GetClassificationsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetClassificationsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetClassificationsResponse */ public class GetClassificationsResponseTest { - private final GetClassificationsResponse model = new GetClassificationsResponse(); - - /** - * Model tests for GetClassificationsResponse - */ - @Test - public void testGetClassificationsResponse() { - // TODO: test GetClassificationsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'classifications' - */ - @Test - public void classificationsTest() { - // TODO: test classifications - } + private final GetClassificationsResponse model = new GetClassificationsResponse(); + + /** + * Model tests for GetClassificationsResponse + */ + @Test + public void testGetClassificationsResponse() { + // TODO: test GetClassificationsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'classifications' + */ + @Test + public void classificationsTest() { + // TODO: test classifications + } } diff --git a/src/test/java/com/formkiq/client/model/GetConfigurationResponseTest.java b/src/test/java/com/formkiq/client/model/GetConfigurationResponseTest.java index acd2e985e..43142a570 100644 --- a/src/test/java/com/formkiq/client/model/GetConfigurationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetConfigurationResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,78 +30,78 @@ * Model tests for GetConfigurationResponse */ public class GetConfigurationResponseTest { - private final GetConfigurationResponse model = new GetConfigurationResponse(); + private final GetConfigurationResponse model = new GetConfigurationResponse(); - /** - * Model tests for GetConfigurationResponse - */ - @Test - public void testGetConfigurationResponse() { - // TODO: test GetConfigurationResponse - } + /** + * Model tests for GetConfigurationResponse + */ + @Test + public void testGetConfigurationResponse() { + // TODO: test GetConfigurationResponse + } - /** - * Test the property 'chatGptApiKey' - */ - @Test - public void chatGptApiKeyTest() { - // TODO: test chatGptApiKey - } + /** + * Test the property 'chatGptApiKey' + */ + @Test + public void chatGptApiKeyTest() { + // TODO: test chatGptApiKey + } - /** - * Test the property 'maxContentLengthBytes' - */ - @Test - public void maxContentLengthBytesTest() { - // TODO: test maxContentLengthBytes - } + /** + * Test the property 'maxContentLengthBytes' + */ + @Test + public void maxContentLengthBytesTest() { + // TODO: test maxContentLengthBytes + } - /** - * Test the property 'maxDocuments' - */ - @Test - public void maxDocumentsTest() { - // TODO: test maxDocuments - } + /** + * Test the property 'maxDocuments' + */ + @Test + public void maxDocumentsTest() { + // TODO: test maxDocuments + } - /** - * Test the property 'maxWebhooks' - */ - @Test - public void maxWebhooksTest() { - // TODO: test maxWebhooks - } + /** + * Test the property 'maxWebhooks' + */ + @Test + public void maxWebhooksTest() { + // TODO: test maxWebhooks + } - /** - * Test the property 'notificationEmail' - */ - @Test - public void notificationEmailTest() { - // TODO: test notificationEmail - } + /** + * Test the property 'notificationEmail' + */ + @Test + public void notificationEmailTest() { + // TODO: test notificationEmail + } - /** - * Test the property 'ocr' - */ - @Test - public void ocrTest() { - // TODO: test ocr - } + /** + * Test the property 'ocr' + */ + @Test + public void ocrTest() { + // TODO: test ocr + } - /** - * Test the property 'google' - */ - @Test - public void googleTest() { - // TODO: test google - } + /** + * Test the property 'google' + */ + @Test + public void googleTest() { + // TODO: test google + } - /** - * Test the property 'docusign' - */ - @Test - public void docusignTest() { - // TODO: test docusign - } + /** + * Test the property 'docusign' + */ + @Test + public void docusignTest() { + // TODO: test docusign + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentActionsResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentActionsResponseTest.java index 288220270..c7e9891c9 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentActionsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentActionsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetDocumentActionsResponse */ public class GetDocumentActionsResponseTest { - private final GetDocumentActionsResponse model = new GetDocumentActionsResponse(); - - /** - * Model tests for GetDocumentActionsResponse - */ - @Test - public void testGetDocumentActionsResponse() { - // TODO: test GetDocumentActionsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } + private final GetDocumentActionsResponse model = new GetDocumentActionsResponse(); + + /** + * Model tests for GetDocumentActionsResponse + */ + @Test + public void testGetDocumentActionsResponse() { + // TODO: test GetDocumentActionsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentAttributeResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentAttributeResponseTest.java index 494dc8eb1..dda41a1b5 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentAttributeResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentAttributeResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetDocumentAttributeResponse */ public class GetDocumentAttributeResponseTest { - private final GetDocumentAttributeResponse model = new GetDocumentAttributeResponse(); + private final GetDocumentAttributeResponse model = new GetDocumentAttributeResponse(); - /** - * Model tests for GetDocumentAttributeResponse - */ - @Test - public void testGetDocumentAttributeResponse() { - // TODO: test GetDocumentAttributeResponse - } + /** + * Model tests for GetDocumentAttributeResponse + */ + @Test + public void testGetDocumentAttributeResponse() { + // TODO: test GetDocumentAttributeResponse + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentAttributesResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentAttributesResponseTest.java index 74edca4cc..b0c312d84 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentAttributesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentAttributesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetDocumentAttributesResponse */ public class GetDocumentAttributesResponseTest { - private final GetDocumentAttributesResponse model = new GetDocumentAttributesResponse(); - - /** - * Model tests for GetDocumentAttributesResponse - */ - @Test - public void testGetDocumentAttributesResponse() { - // TODO: test GetDocumentAttributesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final GetDocumentAttributesResponse model = new GetDocumentAttributesResponse(); + + /** + * Model tests for GetDocumentAttributesResponse + */ + @Test + public void testGetDocumentAttributesResponse() { + // TODO: test GetDocumentAttributesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentContentResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentContentResponseTest.java index 8fbf2621f..fea1716b9 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentContentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentContentResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,46 +27,46 @@ * Model tests for GetDocumentContentResponse */ public class GetDocumentContentResponseTest { - private final GetDocumentContentResponse model = new GetDocumentContentResponse(); + private final GetDocumentContentResponse model = new GetDocumentContentResponse(); - /** - * Model tests for GetDocumentContentResponse - */ - @Test - public void testGetDocumentContentResponse() { - // TODO: test GetDocumentContentResponse - } + /** + * Model tests for GetDocumentContentResponse + */ + @Test + public void testGetDocumentContentResponse() { + // TODO: test GetDocumentContentResponse + } - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } - /** - * Test the property 'contentUrl' - */ - @Test - public void contentUrlTest() { - // TODO: test contentUrl - } + /** + * Test the property 'contentUrl' + */ + @Test + public void contentUrlTest() { + // TODO: test contentUrl + } - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentDataClassificationResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentDataClassificationResponseTest.java index 2c4280a66..c2254501c 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentDataClassificationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentDataClassificationResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,31 +30,30 @@ * Model tests for GetDocumentDataClassificationResponse */ public class GetDocumentDataClassificationResponseTest { - private final GetDocumentDataClassificationResponse model = - new GetDocumentDataClassificationResponse(); - - /** - * Model tests for GetDocumentDataClassificationResponse - */ - @Test - public void testGetDocumentDataClassificationResponse() { - // TODO: test GetDocumentDataClassificationResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'dataClassifications' - */ - @Test - public void dataClassificationsTest() { - // TODO: test dataClassifications - } + private final GetDocumentDataClassificationResponse model = new GetDocumentDataClassificationResponse(); + + /** + * Model tests for GetDocumentDataClassificationResponse + */ + @Test + public void testGetDocumentDataClassificationResponse() { + // TODO: test GetDocumentDataClassificationResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'dataClassifications' + */ + @Test + public void dataClassificationsTest() { + // TODO: test dataClassifications + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentFulltextResponseTest.java index d66eca38f..7a82c89aa 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentFulltextResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,150 +31,150 @@ * Model tests for GetDocumentFulltextResponse */ public class GetDocumentFulltextResponseTest { - private final GetDocumentFulltextResponse model = new GetDocumentFulltextResponse(); - - /** - * Model tests for GetDocumentFulltextResponse - */ - @Test - public void testGetDocumentFulltextResponse() { - // TODO: test GetDocumentFulltextResponse - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'createdBy' - */ - @Test - public void createdByTest() { - // TODO: test createdBy - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final GetDocumentFulltextResponse model = new GetDocumentFulltextResponse(); + + /** + * Model tests for GetDocumentFulltextResponse + */ + @Test + public void testGetDocumentFulltextResponse() { + // TODO: test GetDocumentFulltextResponse + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentOcrResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentOcrResponseTest.java index da1701632..b95fcbf2c 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentOcrResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentOcrResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,102 +31,102 @@ * Model tests for GetDocumentOcrResponse */ public class GetDocumentOcrResponseTest { - private final GetDocumentOcrResponse model = new GetDocumentOcrResponse(); - - /** - * Model tests for GetDocumentOcrResponse - */ - @Test - public void testGetDocumentOcrResponse() { - // TODO: test GetDocumentOcrResponse - } - - /** - * Test the property 'contentUrls' - */ - @Test - public void contentUrlsTest() { - // TODO: test contentUrls - } - - /** - * Test the property 'keyValues' - */ - @Test - public void keyValuesTest() { - // TODO: test keyValues - } - - /** - * Test the property 'tables' - */ - @Test - public void tablesTest() { - // TODO: test tables - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'ocrEngine' - */ - @Test - public void ocrEngineTest() { - // TODO: test ocrEngine - } - - /** - * Test the property 'ocrStatus' - */ - @Test - public void ocrStatusTest() { - // TODO: test ocrStatus - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + private final GetDocumentOcrResponse model = new GetDocumentOcrResponse(); + + /** + * Model tests for GetDocumentOcrResponse + */ + @Test + public void testGetDocumentOcrResponse() { + // TODO: test GetDocumentOcrResponse + } + + /** + * Test the property 'contentUrls' + */ + @Test + public void contentUrlsTest() { + // TODO: test contentUrls + } + + /** + * Test the property 'keyValues' + */ + @Test + public void keyValuesTest() { + // TODO: test keyValues + } + + /** + * Test the property 'tables' + */ + @Test + public void tablesTest() { + // TODO: test tables + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'ocrEngine' + */ + @Test + public void ocrEngineTest() { + // TODO: test ocrEngine + } + + /** + * Test the property 'ocrStatus' + */ + @Test + public void ocrStatusTest() { + // TODO: test ocrStatus + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentResponseTest.java index 81b5fe32f..4f4e79097 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,150 +32,150 @@ * Model tests for GetDocumentResponse */ public class GetDocumentResponseTest { - private final GetDocumentResponse model = new GetDocumentResponse(); - - /** - * Model tests for GetDocumentResponse - */ - @Test - public void testGetDocumentResponse() { - // TODO: test GetDocumentResponse - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'versionId' - */ - @Test - public void versionIdTest() { - // TODO: test versionId - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } - - /** - * Test the property 'belongsToDocumentId' - */ - @Test - public void belongsToDocumentIdTest() { - // TODO: test belongsToDocumentId - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final GetDocumentResponse model = new GetDocumentResponse(); + + /** + * Model tests for GetDocumentResponse + */ + @Test + public void testGetDocumentResponse() { + // TODO: test GetDocumentResponse + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'versionId' + */ + @Test + public void versionIdTest() { + // TODO: test versionId + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } + + /** + * Test the property 'belongsToDocumentId' + */ + @Test + public void belongsToDocumentIdTest() { + // TODO: test belongsToDocumentId + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentSyncResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentSyncResponseTest.java index efff0fa5b..0a735203f 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentSyncResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentSyncResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetDocumentSyncResponse */ public class GetDocumentSyncResponseTest { - private final GetDocumentSyncResponse model = new GetDocumentSyncResponse(); - - /** - * Model tests for GetDocumentSyncResponse - */ - @Test - public void testGetDocumentSyncResponse() { - // TODO: test GetDocumentSyncResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'syncs' - */ - @Test - public void syncsTest() { - // TODO: test syncs - } + private final GetDocumentSyncResponse model = new GetDocumentSyncResponse(); + + /** + * Model tests for GetDocumentSyncResponse + */ + @Test + public void testGetDocumentSyncResponse() { + // TODO: test GetDocumentSyncResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'syncs' + */ + @Test + public void syncsTest() { + // TODO: test syncs + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentTagResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentTagResponseTest.java index 3d5215cd2..ce7f9a553 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentTagResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentTagResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,70 +29,70 @@ * Model tests for GetDocumentTagResponse */ public class GetDocumentTagResponseTest { - private final GetDocumentTagResponse model = new GetDocumentTagResponse(); + private final GetDocumentTagResponse model = new GetDocumentTagResponse(); - /** - * Model tests for GetDocumentTagResponse - */ - @Test - public void testGetDocumentTagResponse() { - // TODO: test GetDocumentTagResponse - } + /** + * Model tests for GetDocumentTagResponse + */ + @Test + public void testGetDocumentTagResponse() { + // TODO: test GetDocumentTagResponse + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentTagsResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentTagsResponseTest.java index b6fc1b1cd..ede386373 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentTagsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentTagsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,38 +30,38 @@ * Model tests for GetDocumentTagsResponse */ public class GetDocumentTagsResponseTest { - private final GetDocumentTagsResponse model = new GetDocumentTagsResponse(); + private final GetDocumentTagsResponse model = new GetDocumentTagsResponse(); - /** - * Model tests for GetDocumentTagsResponse - */ - @Test - public void testGetDocumentTagsResponse() { - // TODO: test GetDocumentTagsResponse - } + /** + * Model tests for GetDocumentTagsResponse + */ + @Test + public void testGetDocumentTagsResponse() { + // TODO: test GetDocumentTagsResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentUrlResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentUrlResponseTest.java index 4c5ce8fe0..28633f9a4 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentUrlResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentUrlResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,38 +29,38 @@ * Model tests for GetDocumentUrlResponse */ public class GetDocumentUrlResponseTest { - private final GetDocumentUrlResponse model = new GetDocumentUrlResponse(); + private final GetDocumentUrlResponse model = new GetDocumentUrlResponse(); - /** - * Model tests for GetDocumentUrlResponse - */ - @Test - public void testGetDocumentUrlResponse() { - // TODO: test GetDocumentUrlResponse - } + /** + * Model tests for GetDocumentUrlResponse + */ + @Test + public void testGetDocumentUrlResponse() { + // TODO: test GetDocumentUrlResponse + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'url' - */ - @Test - public void urlTest() { - // TODO: test url - } + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } - /** - * Test the property 'headers' - */ - @Test - public void headersTest() { - // TODO: test headers - } + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentVersionsResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentVersionsResponseTest.java index 741073968..0a316ab24 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentVersionsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentVersionsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetDocumentVersionsResponse */ public class GetDocumentVersionsResponseTest { - private final GetDocumentVersionsResponse model = new GetDocumentVersionsResponse(); - - /** - * Model tests for GetDocumentVersionsResponse - */ - @Test - public void testGetDocumentVersionsResponse() { - // TODO: test GetDocumentVersionsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final GetDocumentVersionsResponse model = new GetDocumentVersionsResponse(); + + /** + * Model tests for GetDocumentVersionsResponse + */ + @Test + public void testGetDocumentVersionsResponse() { + // TODO: test GetDocumentVersionsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentWorkflowResponseTest.java index 09b41584c..3504965ee 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentWorkflowResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetDocumentWorkflowResponse */ public class GetDocumentWorkflowResponseTest { - private final GetDocumentWorkflowResponse model = new GetDocumentWorkflowResponse(); + private final GetDocumentWorkflowResponse model = new GetDocumentWorkflowResponse(); - /** - * Model tests for GetDocumentWorkflowResponse - */ - @Test - public void testGetDocumentWorkflowResponse() { - // TODO: test GetDocumentWorkflowResponse - } + /** + * Model tests for GetDocumentWorkflowResponse + */ + @Test + public void testGetDocumentWorkflowResponse() { + // TODO: test GetDocumentWorkflowResponse + } - /** - * Test the property 'workflow' - */ - @Test - public void workflowTest() { - // TODO: test workflow - } + /** + * Test the property 'workflow' + */ + @Test + public void workflowTest() { + // TODO: test workflow + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentWorkflowsResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentWorkflowsResponseTest.java index 9cbd239a1..6ccc4d42a 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentWorkflowsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentWorkflowsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetDocumentWorkflowsResponse */ public class GetDocumentWorkflowsResponseTest { - private final GetDocumentWorkflowsResponse model = new GetDocumentWorkflowsResponse(); - - /** - * Model tests for GetDocumentWorkflowsResponse - */ - @Test - public void testGetDocumentWorkflowsResponse() { - // TODO: test GetDocumentWorkflowsResponse - } - - /** - * Test the property 'workflows' - */ - @Test - public void workflowsTest() { - // TODO: test workflows - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + private final GetDocumentWorkflowsResponse model = new GetDocumentWorkflowsResponse(); + + /** + * Model tests for GetDocumentWorkflowsResponse + */ + @Test + public void testGetDocumentWorkflowsResponse() { + // TODO: test GetDocumentWorkflowsResponse + } + + /** + * Test the property 'workflows' + */ + @Test + public void workflowsTest() { + // TODO: test workflows + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentsResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentsResponseTest.java index 4cca791dd..dd916b746 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,38 +30,38 @@ * Model tests for GetDocumentsResponse */ public class GetDocumentsResponseTest { - private final GetDocumentsResponse model = new GetDocumentsResponse(); + private final GetDocumentsResponse model = new GetDocumentsResponse(); - /** - * Model tests for GetDocumentsResponse - */ - @Test - public void testGetDocumentsResponse() { - // TODO: test GetDocumentsResponse - } + /** + * Model tests for GetDocumentsResponse + */ + @Test + public void testGetDocumentsResponse() { + // TODO: test GetDocumentsResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetEntitiesResponseTest.java b/src/test/java/com/formkiq/client/model/GetEntitiesResponseTest.java index 76e03d4c5..35f2061c8 100644 --- a/src/test/java/com/formkiq/client/model/GetEntitiesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetEntitiesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetEntitiesResponse */ public class GetEntitiesResponseTest { - private final GetEntitiesResponse model = new GetEntitiesResponse(); - - /** - * Model tests for GetEntitiesResponse - */ - @Test - public void testGetEntitiesResponse() { - // TODO: test GetEntitiesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'entities' - */ - @Test - public void entitiesTest() { - // TODO: test entities - } + private final GetEntitiesResponse model = new GetEntitiesResponse(); + + /** + * Model tests for GetEntitiesResponse + */ + @Test + public void testGetEntitiesResponse() { + // TODO: test GetEntitiesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'entities' + */ + @Test + public void entitiesTest() { + // TODO: test entities + } } diff --git a/src/test/java/com/formkiq/client/model/GetEntityResponseTest.java b/src/test/java/com/formkiq/client/model/GetEntityResponseTest.java index 2a0fac7b8..58d789434 100644 --- a/src/test/java/com/formkiq/client/model/GetEntityResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetEntityResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetEntityResponse */ public class GetEntityResponseTest { - private final GetEntityResponse model = new GetEntityResponse(); + private final GetEntityResponse model = new GetEntityResponse(); - /** - * Model tests for GetEntityResponse - */ - @Test - public void testGetEntityResponse() { - // TODO: test GetEntityResponse - } + /** + * Model tests for GetEntityResponse + */ + @Test + public void testGetEntityResponse() { + // TODO: test GetEntityResponse + } - /** - * Test the property 'entity' - */ - @Test - public void entityTest() { - // TODO: test entity - } + /** + * Test the property 'entity' + */ + @Test + public void entityTest() { + // TODO: test entity + } } diff --git a/src/test/java/com/formkiq/client/model/GetEntityTypeResponseTest.java b/src/test/java/com/formkiq/client/model/GetEntityTypeResponseTest.java index 5ee50f175..283b3685b 100644 --- a/src/test/java/com/formkiq/client/model/GetEntityTypeResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetEntityTypeResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetEntityTypeResponse */ public class GetEntityTypeResponseTest { - private final GetEntityTypeResponse model = new GetEntityTypeResponse(); + private final GetEntityTypeResponse model = new GetEntityTypeResponse(); - /** - * Model tests for GetEntityTypeResponse - */ - @Test - public void testGetEntityTypeResponse() { - // TODO: test GetEntityTypeResponse - } + /** + * Model tests for GetEntityTypeResponse + */ + @Test + public void testGetEntityTypeResponse() { + // TODO: test GetEntityTypeResponse + } - /** - * Test the property 'entityType' - */ - @Test - public void entityTypeTest() { - // TODO: test entityType - } + /** + * Test the property 'entityType' + */ + @Test + public void entityTypeTest() { + // TODO: test entityType + } } diff --git a/src/test/java/com/formkiq/client/model/GetEntityTypesResponseTest.java b/src/test/java/com/formkiq/client/model/GetEntityTypesResponseTest.java index a9893a48e..f82b0bd0e 100644 --- a/src/test/java/com/formkiq/client/model/GetEntityTypesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetEntityTypesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetEntityTypesResponse */ public class GetEntityTypesResponseTest { - private final GetEntityTypesResponse model = new GetEntityTypesResponse(); - - /** - * Model tests for GetEntityTypesResponse - */ - @Test - public void testGetEntityTypesResponse() { - // TODO: test GetEntityTypesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'entityTypes' - */ - @Test - public void entityTypesTest() { - // TODO: test entityTypes - } + private final GetEntityTypesResponse model = new GetEntityTypesResponse(); + + /** + * Model tests for GetEntityTypesResponse + */ + @Test + public void testGetEntityTypesResponse() { + // TODO: test GetEntityTypesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'entityTypes' + */ + @Test + public void entityTypesTest() { + // TODO: test entityTypes + } } diff --git a/src/test/java/com/formkiq/client/model/GetExaminePdfResponseTest.java b/src/test/java/com/formkiq/client/model/GetExaminePdfResponseTest.java index 5af0f3860..feb77b312 100644 --- a/src/test/java/com/formkiq/client/model/GetExaminePdfResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetExaminePdfResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetExaminePdfResponse */ public class GetExaminePdfResponseTest { - private final GetExaminePdfResponse model = new GetExaminePdfResponse(); + private final GetExaminePdfResponse model = new GetExaminePdfResponse(); - /** - * Model tests for GetExaminePdfResponse - */ - @Test - public void testGetExaminePdfResponse() { - // TODO: test GetExaminePdfResponse - } + /** + * Model tests for GetExaminePdfResponse + */ + @Test + public void testGetExaminePdfResponse() { + // TODO: test GetExaminePdfResponse + } - /** - * Test the property 'fileinfo' - */ - @Test - public void fileinfoTest() { - // TODO: test fileinfo - } + /** + * Test the property 'fileinfo' + */ + @Test + public void fileinfoTest() { + // TODO: test fileinfo + } } diff --git a/src/test/java/com/formkiq/client/model/GetExaminePdfUrlResponseTest.java b/src/test/java/com/formkiq/client/model/GetExaminePdfUrlResponseTest.java index 3d8c04fc1..0968ed72d 100644 --- a/src/test/java/com/formkiq/client/model/GetExaminePdfUrlResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetExaminePdfUrlResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for GetExaminePdfUrlResponse */ public class GetExaminePdfUrlResponseTest { - private final GetExaminePdfUrlResponse model = new GetExaminePdfUrlResponse(); - - /** - * Model tests for GetExaminePdfUrlResponse - */ - @Test - public void testGetExaminePdfUrlResponse() { - // TODO: test GetExaminePdfUrlResponse - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'uploadUrl' - */ - @Test - public void uploadUrlTest() { - // TODO: test uploadUrl - } + private final GetExaminePdfUrlResponse model = new GetExaminePdfUrlResponse(); + + /** + * Model tests for GetExaminePdfUrlResponse + */ + @Test + public void testGetExaminePdfUrlResponse() { + // TODO: test GetExaminePdfUrlResponse + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'uploadUrl' + */ + @Test + public void uploadUrlTest() { + // TODO: test uploadUrl + } } diff --git a/src/test/java/com/formkiq/client/model/GetFolderPermissionsResponseTest.java b/src/test/java/com/formkiq/client/model/GetFolderPermissionsResponseTest.java index ff2451fe4..06e7c1dba 100644 --- a/src/test/java/com/formkiq/client/model/GetFolderPermissionsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetFolderPermissionsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for GetFolderPermissionsResponse */ public class GetFolderPermissionsResponseTest { - private final GetFolderPermissionsResponse model = new GetFolderPermissionsResponse(); + private final GetFolderPermissionsResponse model = new GetFolderPermissionsResponse(); - /** - * Model tests for GetFolderPermissionsResponse - */ - @Test - public void testGetFolderPermissionsResponse() { - // TODO: test GetFolderPermissionsResponse - } + /** + * Model tests for GetFolderPermissionsResponse + */ + @Test + public void testGetFolderPermissionsResponse() { + // TODO: test GetFolderPermissionsResponse + } - /** - * Test the property 'roles' - */ - @Test - public void rolesTest() { - // TODO: test roles - } + /** + * Test the property 'roles' + */ + @Test + public void rolesTest() { + // TODO: test roles + } } diff --git a/src/test/java/com/formkiq/client/model/GetFoldersResponseTest.java b/src/test/java/com/formkiq/client/model/GetFoldersResponseTest.java index 992a6e3a5..f6fac566e 100644 --- a/src/test/java/com/formkiq/client/model/GetFoldersResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetFoldersResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,38 +30,38 @@ * Model tests for GetFoldersResponse */ public class GetFoldersResponseTest { - private final GetFoldersResponse model = new GetFoldersResponse(); + private final GetFoldersResponse model = new GetFoldersResponse(); - /** - * Model tests for GetFoldersResponse - */ - @Test - public void testGetFoldersResponse() { - // TODO: test GetFoldersResponse - } + /** + * Model tests for GetFoldersResponse + */ + @Test + public void testGetFoldersResponse() { + // TODO: test GetFoldersResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetGroupResponseTest.java b/src/test/java/com/formkiq/client/model/GetGroupResponseTest.java index 5d261160d..94ce1af72 100644 --- a/src/test/java/com/formkiq/client/model/GetGroupResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetGroupResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetGroupResponse */ public class GetGroupResponseTest { - private final GetGroupResponse model = new GetGroupResponse(); + private final GetGroupResponse model = new GetGroupResponse(); - /** - * Model tests for GetGroupResponse - */ - @Test - public void testGetGroupResponse() { - // TODO: test GetGroupResponse - } + /** + * Model tests for GetGroupResponse + */ + @Test + public void testGetGroupResponse() { + // TODO: test GetGroupResponse + } - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } } diff --git a/src/test/java/com/formkiq/client/model/GetGroupsResponseTest.java b/src/test/java/com/formkiq/client/model/GetGroupsResponseTest.java index 81aafc4e9..805b5a812 100644 --- a/src/test/java/com/formkiq/client/model/GetGroupsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetGroupsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetGroupsResponse */ public class GetGroupsResponseTest { - private final GetGroupsResponse model = new GetGroupsResponse(); - - /** - * Model tests for GetGroupsResponse - */ - @Test - public void testGetGroupsResponse() { - // TODO: test GetGroupsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'groups' - */ - @Test - public void groupsTest() { - // TODO: test groups - } + private final GetGroupsResponse model = new GetGroupsResponse(); + + /** + * Model tests for GetGroupsResponse + */ + @Test + public void testGetGroupsResponse() { + // TODO: test GetGroupsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } } diff --git a/src/test/java/com/formkiq/client/model/GetLocaleResourceItemResponseTest.java b/src/test/java/com/formkiq/client/model/GetLocaleResourceItemResponseTest.java index 9f3ce4404..978885784 100644 --- a/src/test/java/com/formkiq/client/model/GetLocaleResourceItemResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetLocaleResourceItemResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetLocaleResourceItemResponse */ public class GetLocaleResourceItemResponseTest { - private final GetLocaleResourceItemResponse model = new GetLocaleResourceItemResponse(); + private final GetLocaleResourceItemResponse model = new GetLocaleResourceItemResponse(); - /** - * Model tests for GetLocaleResourceItemResponse - */ - @Test - public void testGetLocaleResourceItemResponse() { - // TODO: test GetLocaleResourceItemResponse - } + /** + * Model tests for GetLocaleResourceItemResponse + */ + @Test + public void testGetLocaleResourceItemResponse() { + // TODO: test GetLocaleResourceItemResponse + } - /** - * Test the property 'resourceItem' - */ - @Test - public void resourceItemTest() { - // TODO: test resourceItem - } + /** + * Test the property 'resourceItem' + */ + @Test + public void resourceItemTest() { + // TODO: test resourceItem + } } diff --git a/src/test/java/com/formkiq/client/model/GetLocaleResourceItemsResponseTest.java b/src/test/java/com/formkiq/client/model/GetLocaleResourceItemsResponseTest.java index 32050458a..72d6f86f2 100644 --- a/src/test/java/com/formkiq/client/model/GetLocaleResourceItemsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetLocaleResourceItemsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetLocaleResourceItemsResponse */ public class GetLocaleResourceItemsResponseTest { - private final GetLocaleResourceItemsResponse model = new GetLocaleResourceItemsResponse(); - - /** - * Model tests for GetLocaleResourceItemsResponse - */ - @Test - public void testGetLocaleResourceItemsResponse() { - // TODO: test GetLocaleResourceItemsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'resourceItems' - */ - @Test - public void resourceItemsTest() { - // TODO: test resourceItems - } + private final GetLocaleResourceItemsResponse model = new GetLocaleResourceItemsResponse(); + + /** + * Model tests for GetLocaleResourceItemsResponse + */ + @Test + public void testGetLocaleResourceItemsResponse() { + // TODO: test GetLocaleResourceItemsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'resourceItems' + */ + @Test + public void resourceItemsTest() { + // TODO: test resourceItems + } } diff --git a/src/test/java/com/formkiq/client/model/GetLocalesResponseTest.java b/src/test/java/com/formkiq/client/model/GetLocalesResponseTest.java index 265a31739..faeb09b29 100644 --- a/src/test/java/com/formkiq/client/model/GetLocalesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetLocalesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetLocalesResponse */ public class GetLocalesResponseTest { - private final GetLocalesResponse model = new GetLocalesResponse(); - - /** - * Model tests for GetLocalesResponse - */ - @Test - public void testGetLocalesResponse() { - // TODO: test GetLocalesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'locales' - */ - @Test - public void localesTest() { - // TODO: test locales - } + private final GetLocalesResponse model = new GetLocalesResponse(); + + /** + * Model tests for GetLocalesResponse + */ + @Test + public void testGetLocalesResponse() { + // TODO: test GetLocalesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'locales' + */ + @Test + public void localesTest() { + // TODO: test locales + } } diff --git a/src/test/java/com/formkiq/client/model/GetMalwareScanResponseTest.java b/src/test/java/com/formkiq/client/model/GetMalwareScanResponseTest.java index 985c4be15..007398362 100644 --- a/src/test/java/com/formkiq/client/model/GetMalwareScanResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetMalwareScanResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetMalwareScanResponse */ public class GetMalwareScanResponseTest { - private final GetMalwareScanResponse model = new GetMalwareScanResponse(); - - /** - * Model tests for GetMalwareScanResponse - */ - @Test - public void testGetMalwareScanResponse() { - // TODO: test GetMalwareScanResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'malwareScanResults' - */ - @Test - public void malwareScanResultsTest() { - // TODO: test malwareScanResults - } + private final GetMalwareScanResponse model = new GetMalwareScanResponse(); + + /** + * Model tests for GetMalwareScanResponse + */ + @Test + public void testGetMalwareScanResponse() { + // TODO: test GetMalwareScanResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'malwareScanResults' + */ + @Test + public void malwareScanResultsTest() { + // TODO: test malwareScanResults + } } diff --git a/src/test/java/com/formkiq/client/model/GetMappingResponseTest.java b/src/test/java/com/formkiq/client/model/GetMappingResponseTest.java index c4321db4c..b3bfdb428 100644 --- a/src/test/java/com/formkiq/client/model/GetMappingResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetMappingResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetMappingResponse */ public class GetMappingResponseTest { - private final GetMappingResponse model = new GetMappingResponse(); + private final GetMappingResponse model = new GetMappingResponse(); - /** - * Model tests for GetMappingResponse - */ - @Test - public void testGetMappingResponse() { - // TODO: test GetMappingResponse - } + /** + * Model tests for GetMappingResponse + */ + @Test + public void testGetMappingResponse() { + // TODO: test GetMappingResponse + } - /** - * Test the property 'mapping' - */ - @Test - public void mappingTest() { - // TODO: test mapping - } + /** + * Test the property 'mapping' + */ + @Test + public void mappingTest() { + // TODO: test mapping + } } diff --git a/src/test/java/com/formkiq/client/model/GetMappingsResponseTest.java b/src/test/java/com/formkiq/client/model/GetMappingsResponseTest.java index 4c781624c..5a40b7dfd 100644 --- a/src/test/java/com/formkiq/client/model/GetMappingsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetMappingsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetMappingsResponse */ public class GetMappingsResponseTest { - private final GetMappingsResponse model = new GetMappingsResponse(); - - /** - * Model tests for GetMappingsResponse - */ - @Test - public void testGetMappingsResponse() { - // TODO: test GetMappingsResponse - } - - /** - * Test the property 'mappings' - */ - @Test - public void mappingsTest() { - // TODO: test mappings - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + private final GetMappingsResponse model = new GetMappingsResponse(); + + /** + * Model tests for GetMappingsResponse + */ + @Test + public void testGetMappingsResponse() { + // TODO: test GetMappingsResponse + } + + /** + * Test the property 'mappings' + */ + @Test + public void mappingsTest() { + // TODO: test mappings + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpaAccessPoliciesResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpaAccessPoliciesResponseTest.java index 6e5e7b795..70aa9d46d 100644 --- a/src/test/java/com/formkiq/client/model/GetOpaAccessPoliciesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpaAccessPoliciesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetOpaAccessPoliciesResponse */ public class GetOpaAccessPoliciesResponseTest { - private final GetOpaAccessPoliciesResponse model = new GetOpaAccessPoliciesResponse(); - - /** - * Model tests for GetOpaAccessPoliciesResponse - */ - @Test - public void testGetOpaAccessPoliciesResponse() { - // TODO: test GetOpaAccessPoliciesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'opaPolicies' - */ - @Test - public void opaPoliciesTest() { - // TODO: test opaPolicies - } + private final GetOpaAccessPoliciesResponse model = new GetOpaAccessPoliciesResponse(); + + /** + * Model tests for GetOpaAccessPoliciesResponse + */ + @Test + public void testGetOpaAccessPoliciesResponse() { + // TODO: test GetOpaAccessPoliciesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'opaPolicies' + */ + @Test + public void opaPoliciesTest() { + // TODO: test opaPolicies + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponseTest.java index ce465fd46..9ffb8bf0c 100644 --- a/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for GetOpaAccessPolicyItemsResponse */ public class GetOpaAccessPolicyItemsResponseTest { - private final GetOpaAccessPolicyItemsResponse model = new GetOpaAccessPolicyItemsResponse(); + private final GetOpaAccessPolicyItemsResponse model = new GetOpaAccessPolicyItemsResponse(); - /** - * Model tests for GetOpaAccessPolicyItemsResponse - */ - @Test - public void testGetOpaAccessPolicyItemsResponse() { - // TODO: test GetOpaAccessPolicyItemsResponse - } + /** + * Model tests for GetOpaAccessPolicyItemsResponse + */ + @Test + public void testGetOpaAccessPolicyItemsResponse() { + // TODO: test GetOpaAccessPolicyItemsResponse + } - /** - * Test the property 'policyItems' - */ - @Test - public void policyItemsTest() { - // TODO: test policyItems - } + /** + * Test the property 'policyItems' + */ + @Test + public void policyItemsTest() { + // TODO: test policyItems + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyResponseTest.java index c95bb720f..39eeefebb 100644 --- a/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for GetOpaAccessPolicyResponse */ public class GetOpaAccessPolicyResponseTest { - private final GetOpaAccessPolicyResponse model = new GetOpaAccessPolicyResponse(); + private final GetOpaAccessPolicyResponse model = new GetOpaAccessPolicyResponse(); - /** - * Model tests for GetOpaAccessPolicyResponse - */ - @Test - public void testGetOpaAccessPolicyResponse() { - // TODO: test GetOpaAccessPolicyResponse - } + /** + * Model tests for GetOpaAccessPolicyResponse + */ + @Test + public void testGetOpaAccessPolicyResponse() { + // TODO: test GetOpaAccessPolicyResponse + } - /** - * Test the property 'opaPolicy' - */ - @Test - public void opaPolicyTest() { - // TODO: test opaPolicy - } + /** + * Test the property 'opaPolicy' + */ + @Test + public void opaPolicyTest() { + // TODO: test opaPolicy + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpenSearchIndexResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpenSearchIndexResponseTest.java index 3af40ecae..518b572eb 100644 --- a/src/test/java/com/formkiq/client/model/GetOpenSearchIndexResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpenSearchIndexResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetOpenSearchIndexResponse */ public class GetOpenSearchIndexResponseTest { - private final GetOpenSearchIndexResponse model = new GetOpenSearchIndexResponse(); + private final GetOpenSearchIndexResponse model = new GetOpenSearchIndexResponse(); - /** - * Model tests for GetOpenSearchIndexResponse - */ - @Test - public void testGetOpenSearchIndexResponse() { - // TODO: test GetOpenSearchIndexResponse - } + /** + * Model tests for GetOpenSearchIndexResponse + */ + @Test + public void testGetOpenSearchIndexResponse() { + // TODO: test GetOpenSearchIndexResponse + } - /** - * Test the property 'indexSettings' - */ - @Test - public void indexSettingsTest() { - // TODO: test indexSettings - } + /** + * Test the property 'indexSettings' + */ + @Test + public void indexSettingsTest() { + // TODO: test indexSettings + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpenSearchIndiceResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpenSearchIndiceResponseTest.java index ace0232a1..1a7b66d0a 100644 --- a/src/test/java/com/formkiq/client/model/GetOpenSearchIndiceResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpenSearchIndiceResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for GetOpenSearchIndiceResponse */ public class GetOpenSearchIndiceResponseTest { - private final GetOpenSearchIndiceResponse model = new GetOpenSearchIndiceResponse(); + private final GetOpenSearchIndiceResponse model = new GetOpenSearchIndiceResponse(); - /** - * Model tests for GetOpenSearchIndiceResponse - */ - @Test - public void testGetOpenSearchIndiceResponse() { - // TODO: test GetOpenSearchIndiceResponse - } + /** + * Model tests for GetOpenSearchIndiceResponse + */ + @Test + public void testGetOpenSearchIndiceResponse() { + // TODO: test GetOpenSearchIndiceResponse + } - /** - * Test the property 'indices' - */ - @Test - public void indicesTest() { - // TODO: test indices - } + /** + * Test the property 'indices' + */ + @Test + public void indicesTest() { + // TODO: test indices + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponseTest.java index 5e4d87e03..58184aacb 100644 --- a/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,23 +30,22 @@ * Model tests for GetOpenSearchSnapshotRepositoryResponse */ public class GetOpenSearchSnapshotRepositoryResponseTest { - private final GetOpenSearchSnapshotRepositoryResponse model = - new GetOpenSearchSnapshotRepositoryResponse(); + private final GetOpenSearchSnapshotRepositoryResponse model = new GetOpenSearchSnapshotRepositoryResponse(); - /** - * Model tests for GetOpenSearchSnapshotRepositoryResponse - */ - @Test - public void testGetOpenSearchSnapshotRepositoryResponse() { - // TODO: test GetOpenSearchSnapshotRepositoryResponse - } + /** + * Model tests for GetOpenSearchSnapshotRepositoryResponse + */ + @Test + public void testGetOpenSearchSnapshotRepositoryResponse() { + // TODO: test GetOpenSearchSnapshotRepositoryResponse + } - /** - * Test the property 's3Repositories' - */ - @Test - public void s3RepositoriesTest() { - // TODO: test s3Repositories - } + /** + * Test the property 's3Repositories' + */ + @Test + public void s3RepositoriesTest() { + // TODO: test s3Repositories + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotResponseTest.java index 4ac195a9c..e4853a36d 100644 --- a/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for GetOpenSearchSnapshotResponse */ public class GetOpenSearchSnapshotResponseTest { - private final GetOpenSearchSnapshotResponse model = new GetOpenSearchSnapshotResponse(); + private final GetOpenSearchSnapshotResponse model = new GetOpenSearchSnapshotResponse(); - /** - * Model tests for GetOpenSearchSnapshotResponse - */ - @Test - public void testGetOpenSearchSnapshotResponse() { - // TODO: test GetOpenSearchSnapshotResponse - } + /** + * Model tests for GetOpenSearchSnapshotResponse + */ + @Test + public void testGetOpenSearchSnapshotResponse() { + // TODO: test GetOpenSearchSnapshotResponse + } - /** - * Test the property 'snapshots' - */ - @Test - public void snapshotsTest() { - // TODO: test snapshots - } + /** + * Test the property 'snapshots' + */ + @Test + public void snapshotsTest() { + // TODO: test snapshots + } } diff --git a/src/test/java/com/formkiq/client/model/GetQueueResponseTest.java b/src/test/java/com/formkiq/client/model/GetQueueResponseTest.java index e815af7a8..8b6f4d888 100644 --- a/src/test/java/com/formkiq/client/model/GetQueueResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetQueueResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for GetQueueResponse */ public class GetQueueResponseTest { - private final GetQueueResponse model = new GetQueueResponse(); + private final GetQueueResponse model = new GetQueueResponse(); - /** - * Model tests for GetQueueResponse - */ - @Test - public void testGetQueueResponse() { - // TODO: test GetQueueResponse - } + /** + * Model tests for GetQueueResponse + */ + @Test + public void testGetQueueResponse() { + // TODO: test GetQueueResponse + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } } diff --git a/src/test/java/com/formkiq/client/model/GetQueuesResponseTest.java b/src/test/java/com/formkiq/client/model/GetQueuesResponseTest.java index 54d3c35ee..b77cd2340 100644 --- a/src/test/java/com/formkiq/client/model/GetQueuesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetQueuesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetQueuesResponse */ public class GetQueuesResponseTest { - private final GetQueuesResponse model = new GetQueuesResponse(); - - /** - * Model tests for GetQueuesResponse - */ - @Test - public void testGetQueuesResponse() { - // TODO: test GetQueuesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'queues' - */ - @Test - public void queuesTest() { - // TODO: test queues - } + private final GetQueuesResponse model = new GetQueuesResponse(); + + /** + * Model tests for GetQueuesResponse + */ + @Test + public void testGetQueuesResponse() { + // TODO: test GetQueuesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'queues' + */ + @Test + public void queuesTest() { + // TODO: test queues + } } diff --git a/src/test/java/com/formkiq/client/model/GetRuleResponseTest.java b/src/test/java/com/formkiq/client/model/GetRuleResponseTest.java index d3ddafa95..6300dc87c 100644 --- a/src/test/java/com/formkiq/client/model/GetRuleResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetRuleResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetRuleResponse */ public class GetRuleResponseTest { - private final GetRuleResponse model = new GetRuleResponse(); + private final GetRuleResponse model = new GetRuleResponse(); - /** - * Model tests for GetRuleResponse - */ - @Test - public void testGetRuleResponse() { - // TODO: test GetRuleResponse - } + /** + * Model tests for GetRuleResponse + */ + @Test + public void testGetRuleResponse() { + // TODO: test GetRuleResponse + } - /** - * Test the property 'rule' - */ - @Test - public void ruleTest() { - // TODO: test rule - } + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } } diff --git a/src/test/java/com/formkiq/client/model/GetRulesResponseTest.java b/src/test/java/com/formkiq/client/model/GetRulesResponseTest.java index 917b0817e..28286ab5b 100644 --- a/src/test/java/com/formkiq/client/model/GetRulesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetRulesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetRulesResponse */ public class GetRulesResponseTest { - private final GetRulesResponse model = new GetRulesResponse(); - - /** - * Model tests for GetRulesResponse - */ - @Test - public void testGetRulesResponse() { - // TODO: test GetRulesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'rules' - */ - @Test - public void rulesTest() { - // TODO: test rules - } + private final GetRulesResponse model = new GetRulesResponse(); + + /** + * Model tests for GetRulesResponse + */ + @Test + public void testGetRulesResponse() { + // TODO: test GetRulesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } } diff --git a/src/test/java/com/formkiq/client/model/GetRulesetResponseTest.java b/src/test/java/com/formkiq/client/model/GetRulesetResponseTest.java index d55f083d2..a81ea4aab 100644 --- a/src/test/java/com/formkiq/client/model/GetRulesetResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetRulesetResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetRulesetResponse */ public class GetRulesetResponseTest { - private final GetRulesetResponse model = new GetRulesetResponse(); + private final GetRulesetResponse model = new GetRulesetResponse(); - /** - * Model tests for GetRulesetResponse - */ - @Test - public void testGetRulesetResponse() { - // TODO: test GetRulesetResponse - } + /** + * Model tests for GetRulesetResponse + */ + @Test + public void testGetRulesetResponse() { + // TODO: test GetRulesetResponse + } - /** - * Test the property 'ruleset' - */ - @Test - public void rulesetTest() { - // TODO: test ruleset - } + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } } diff --git a/src/test/java/com/formkiq/client/model/GetRulesetsResponseTest.java b/src/test/java/com/formkiq/client/model/GetRulesetsResponseTest.java index b469c92eb..dade7b817 100644 --- a/src/test/java/com/formkiq/client/model/GetRulesetsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetRulesetsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetRulesetsResponse */ public class GetRulesetsResponseTest { - private final GetRulesetsResponse model = new GetRulesetsResponse(); - - /** - * Model tests for GetRulesetsResponse - */ - @Test - public void testGetRulesetsResponse() { - // TODO: test GetRulesetsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'rulesets' - */ - @Test - public void rulesetsTest() { - // TODO: test rulesets - } + private final GetRulesetsResponse model = new GetRulesetsResponse(); + + /** + * Model tests for GetRulesetsResponse + */ + @Test + public void testGetRulesetsResponse() { + // TODO: test GetRulesetsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'rulesets' + */ + @Test + public void rulesetsTest() { + // TODO: test rulesets + } } diff --git a/src/test/java/com/formkiq/client/model/GetSiteGroupResponseTest.java b/src/test/java/com/formkiq/client/model/GetSiteGroupResponseTest.java index 76f4d759d..9793225c9 100644 --- a/src/test/java/com/formkiq/client/model/GetSiteGroupResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetSiteGroupResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetSiteGroupResponse */ public class GetSiteGroupResponseTest { - private final GetSiteGroupResponse model = new GetSiteGroupResponse(); + private final GetSiteGroupResponse model = new GetSiteGroupResponse(); - /** - * Model tests for GetSiteGroupResponse - */ - @Test - public void testGetSiteGroupResponse() { - // TODO: test GetSiteGroupResponse - } + /** + * Model tests for GetSiteGroupResponse + */ + @Test + public void testGetSiteGroupResponse() { + // TODO: test GetSiteGroupResponse + } - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } } diff --git a/src/test/java/com/formkiq/client/model/GetSiteGroupsResponseTest.java b/src/test/java/com/formkiq/client/model/GetSiteGroupsResponseTest.java index b88f2eb4c..91470a621 100644 --- a/src/test/java/com/formkiq/client/model/GetSiteGroupsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetSiteGroupsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,22 +29,22 @@ * Model tests for GetSiteGroupsResponse */ public class GetSiteGroupsResponseTest { - private final GetSiteGroupsResponse model = new GetSiteGroupsResponse(); + private final GetSiteGroupsResponse model = new GetSiteGroupsResponse(); - /** - * Model tests for GetSiteGroupsResponse - */ - @Test - public void testGetSiteGroupsResponse() { - // TODO: test GetSiteGroupsResponse - } + /** + * Model tests for GetSiteGroupsResponse + */ + @Test + public void testGetSiteGroupsResponse() { + // TODO: test GetSiteGroupsResponse + } - /** - * Test the property 'groupNames' - */ - @Test - public void groupNamesTest() { - // TODO: test groupNames - } + /** + * Test the property 'groupNames' + */ + @Test + public void groupNamesTest() { + // TODO: test groupNames + } } diff --git a/src/test/java/com/formkiq/client/model/GetSitesResponseTest.java b/src/test/java/com/formkiq/client/model/GetSitesResponseTest.java index e66327318..49d5289a9 100644 --- a/src/test/java/com/formkiq/client/model/GetSitesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetSitesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,38 +30,38 @@ * Model tests for GetSitesResponse */ public class GetSitesResponseTest { - private final GetSitesResponse model = new GetSitesResponse(); + private final GetSitesResponse model = new GetSitesResponse(); - /** - * Model tests for GetSitesResponse - */ - @Test - public void testGetSitesResponse() { - // TODO: test GetSitesResponse - } + /** + * Model tests for GetSitesResponse + */ + @Test + public void testGetSitesResponse() { + // TODO: test GetSitesResponse + } - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } - /** - * Test the property 'roles' - */ - @Test - public void rolesTest() { - // TODO: test roles - } + /** + * Test the property 'roles' + */ + @Test + public void rolesTest() { + // TODO: test roles + } - /** - * Test the property 'sites' - */ - @Test - public void sitesTest() { - // TODO: test sites - } + /** + * Test the property 'sites' + */ + @Test + public void sitesTest() { + // TODO: test sites + } } diff --git a/src/test/java/com/formkiq/client/model/GetSitesSchemaResponseTest.java b/src/test/java/com/formkiq/client/model/GetSitesSchemaResponseTest.java index ef7b69be1..84d4fb539 100644 --- a/src/test/java/com/formkiq/client/model/GetSitesSchemaResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetSitesSchemaResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for GetSitesSchemaResponse */ public class GetSitesSchemaResponseTest { - private final GetSitesSchemaResponse model = new GetSitesSchemaResponse(); - - /** - * Model tests for GetSitesSchemaResponse - */ - @Test - public void testGetSitesSchemaResponse() { - // TODO: test GetSitesSchemaResponse - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final GetSitesSchemaResponse model = new GetSitesSchemaResponse(); + + /** + * Model tests for GetSitesSchemaResponse + */ + @Test + public void testGetSitesSchemaResponse() { + // TODO: test GetSitesSchemaResponse + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/GetUserActivitesResponseTest.java b/src/test/java/com/formkiq/client/model/GetUserActivitesResponseTest.java index 78e2a2ffa..a9983f28e 100644 --- a/src/test/java/com/formkiq/client/model/GetUserActivitesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUserActivitesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetUserActivitesResponse */ public class GetUserActivitesResponseTest { - private final GetUserActivitesResponse model = new GetUserActivitesResponse(); - - /** - * Model tests for GetUserActivitesResponse - */ - @Test - public void testGetUserActivitesResponse() { - // TODO: test GetUserActivitesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'userActivities' - */ - @Test - public void userActivitiesTest() { - // TODO: test userActivities - } + private final GetUserActivitesResponse model = new GetUserActivitesResponse(); + + /** + * Model tests for GetUserActivitesResponse + */ + @Test + public void testGetUserActivitesResponse() { + // TODO: test GetUserActivitesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'userActivities' + */ + @Test + public void userActivitiesTest() { + // TODO: test userActivities + } } diff --git a/src/test/java/com/formkiq/client/model/GetUserGroupsResponseTest.java b/src/test/java/com/formkiq/client/model/GetUserGroupsResponseTest.java index 39462c20b..f0bdf3ca3 100644 --- a/src/test/java/com/formkiq/client/model/GetUserGroupsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUserGroupsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetUserGroupsResponse */ public class GetUserGroupsResponseTest { - private final GetUserGroupsResponse model = new GetUserGroupsResponse(); - - /** - * Model tests for GetUserGroupsResponse - */ - @Test - public void testGetUserGroupsResponse() { - // TODO: test GetUserGroupsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'groups' - */ - @Test - public void groupsTest() { - // TODO: test groups - } + private final GetUserGroupsResponse model = new GetUserGroupsResponse(); + + /** + * Model tests for GetUserGroupsResponse + */ + @Test + public void testGetUserGroupsResponse() { + // TODO: test GetUserGroupsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } } diff --git a/src/test/java/com/formkiq/client/model/GetUserResponseTest.java b/src/test/java/com/formkiq/client/model/GetUserResponseTest.java index 002aa44b7..aea348188 100644 --- a/src/test/java/com/formkiq/client/model/GetUserResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUserResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for GetUserResponse */ public class GetUserResponseTest { - private final GetUserResponse model = new GetUserResponse(); + private final GetUserResponse model = new GetUserResponse(); - /** - * Model tests for GetUserResponse - */ - @Test - public void testGetUserResponse() { - // TODO: test GetUserResponse - } + /** + * Model tests for GetUserResponse + */ + @Test + public void testGetUserResponse() { + // TODO: test GetUserResponse + } - /** - * Test the property 'user' - */ - @Test - public void userTest() { - // TODO: test user - } + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } } diff --git a/src/test/java/com/formkiq/client/model/GetUserSharesResponseTest.java b/src/test/java/com/formkiq/client/model/GetUserSharesResponseTest.java index d51837cf0..0bed566b2 100644 --- a/src/test/java/com/formkiq/client/model/GetUserSharesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUserSharesResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetUserSharesResponse */ public class GetUserSharesResponseTest { - private final GetUserSharesResponse model = new GetUserSharesResponse(); - - /** - * Model tests for GetUserSharesResponse - */ - @Test - public void testGetUserSharesResponse() { - // TODO: test GetUserSharesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'shares' - */ - @Test - public void sharesTest() { - // TODO: test shares - } + private final GetUserSharesResponse model = new GetUserSharesResponse(); + + /** + * Model tests for GetUserSharesResponse + */ + @Test + public void testGetUserSharesResponse() { + // TODO: test GetUserSharesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'shares' + */ + @Test + public void sharesTest() { + // TODO: test shares + } } diff --git a/src/test/java/com/formkiq/client/model/GetUsersInGroupResponseTest.java b/src/test/java/com/formkiq/client/model/GetUsersInGroupResponseTest.java index 82af3e7ea..52a51fd79 100644 --- a/src/test/java/com/formkiq/client/model/GetUsersInGroupResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUsersInGroupResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetUsersInGroupResponse */ public class GetUsersInGroupResponseTest { - private final GetUsersInGroupResponse model = new GetUsersInGroupResponse(); - - /** - * Model tests for GetUsersInGroupResponse - */ - @Test - public void testGetUsersInGroupResponse() { - // TODO: test GetUsersInGroupResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'users' - */ - @Test - public void usersTest() { - // TODO: test users - } + private final GetUsersInGroupResponse model = new GetUsersInGroupResponse(); + + /** + * Model tests for GetUsersInGroupResponse + */ + @Test + public void testGetUsersInGroupResponse() { + // TODO: test GetUsersInGroupResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } } diff --git a/src/test/java/com/formkiq/client/model/GetUsersResponseTest.java b/src/test/java/com/formkiq/client/model/GetUsersResponseTest.java index d91c6627c..a518267cf 100644 --- a/src/test/java/com/formkiq/client/model/GetUsersResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUsersResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetUsersResponse */ public class GetUsersResponseTest { - private final GetUsersResponse model = new GetUsersResponse(); - - /** - * Model tests for GetUsersResponse - */ - @Test - public void testGetUsersResponse() { - // TODO: test GetUsersResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'users' - */ - @Test - public void usersTest() { - // TODO: test users - } + private final GetUsersResponse model = new GetUsersResponse(); + + /** + * Model tests for GetUsersResponse + */ + @Test + public void testGetUsersResponse() { + // TODO: test GetUsersResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } } diff --git a/src/test/java/com/formkiq/client/model/GetVersionResponseTest.java b/src/test/java/com/formkiq/client/model/GetVersionResponseTest.java index b19b8175c..e749b7f2b 100644 --- a/src/test/java/com/formkiq/client/model/GetVersionResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetVersionResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,46 +29,46 @@ * Model tests for GetVersionResponse */ public class GetVersionResponseTest { - private final GetVersionResponse model = new GetVersionResponse(); + private final GetVersionResponse model = new GetVersionResponse(); - /** - * Model tests for GetVersionResponse - */ - @Test - public void testGetVersionResponse() { - // TODO: test GetVersionResponse - } + /** + * Model tests for GetVersionResponse + */ + @Test + public void testGetVersionResponse() { + // TODO: test GetVersionResponse + } - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'appEnvironment' - */ - @Test - public void appEnvironmentTest() { - // TODO: test appEnvironment - } + /** + * Test the property 'appEnvironment' + */ + @Test + public void appEnvironmentTest() { + // TODO: test appEnvironment + } - /** - * Test the property 'modules' - */ - @Test - public void modulesTest() { - // TODO: test modules - } + /** + * Test the property 'modules' + */ + @Test + public void modulesTest() { + // TODO: test modules + } } diff --git a/src/test/java/com/formkiq/client/model/GetWebhookResponseTest.java b/src/test/java/com/formkiq/client/model/GetWebhookResponseTest.java index 0fc6977a9..bc6ebfe3f 100644 --- a/src/test/java/com/formkiq/client/model/GetWebhookResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWebhookResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,78 +27,78 @@ * Model tests for GetWebhookResponse */ public class GetWebhookResponseTest { - private final GetWebhookResponse model = new GetWebhookResponse(); + private final GetWebhookResponse model = new GetWebhookResponse(); - /** - * Model tests for GetWebhookResponse - */ - @Test - public void testGetWebhookResponse() { - // TODO: test GetWebhookResponse - } + /** + * Model tests for GetWebhookResponse + */ + @Test + public void testGetWebhookResponse() { + // TODO: test GetWebhookResponse + } - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'url' - */ - @Test - public void urlTest() { - // TODO: test url - } + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'webhookId' - */ - @Test - public void webhookIdTest() { - // TODO: test webhookId - } + /** + * Test the property 'webhookId' + */ + @Test + public void webhookIdTest() { + // TODO: test webhookId + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'enabled' - */ - @Test - public void enabledTest() { - // TODO: test enabled - } + /** + * Test the property 'enabled' + */ + @Test + public void enabledTest() { + // TODO: test enabled + } - /** - * Test the property 'ttl' - */ - @Test - public void ttlTest() { - // TODO: test ttl - } + /** + * Test the property 'ttl' + */ + @Test + public void ttlTest() { + // TODO: test ttl + } } diff --git a/src/test/java/com/formkiq/client/model/GetWebhookTagsResponseTest.java b/src/test/java/com/formkiq/client/model/GetWebhookTagsResponseTest.java index 090a79991..1af723620 100644 --- a/src/test/java/com/formkiq/client/model/GetWebhookTagsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWebhookTagsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,38 +30,38 @@ * Model tests for GetWebhookTagsResponse */ public class GetWebhookTagsResponseTest { - private final GetWebhookTagsResponse model = new GetWebhookTagsResponse(); + private final GetWebhookTagsResponse model = new GetWebhookTagsResponse(); - /** - * Model tests for GetWebhookTagsResponse - */ - @Test - public void testGetWebhookTagsResponse() { - // TODO: test GetWebhookTagsResponse - } + /** + * Model tests for GetWebhookTagsResponse + */ + @Test + public void testGetWebhookTagsResponse() { + // TODO: test GetWebhookTagsResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/GetWebhooksResponseTest.java b/src/test/java/com/formkiq/client/model/GetWebhooksResponseTest.java index bb637fab8..010eacb40 100644 --- a/src/test/java/com/formkiq/client/model/GetWebhooksResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWebhooksResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetWebhooksResponse */ public class GetWebhooksResponseTest { - private final GetWebhooksResponse model = new GetWebhooksResponse(); - - /** - * Model tests for GetWebhooksResponse - */ - @Test - public void testGetWebhooksResponse() { - // TODO: test GetWebhooksResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'webhooks' - */ - @Test - public void webhooksTest() { - // TODO: test webhooks - } + private final GetWebhooksResponse model = new GetWebhooksResponse(); + + /** + * Model tests for GetWebhooksResponse + */ + @Test + public void testGetWebhooksResponse() { + // TODO: test GetWebhooksResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'webhooks' + */ + @Test + public void webhooksTest() { + // TODO: test webhooks + } } diff --git a/src/test/java/com/formkiq/client/model/GetWorkflowDocumentsResponseTest.java b/src/test/java/com/formkiq/client/model/GetWorkflowDocumentsResponseTest.java index 416c62578..c9e2a883a 100644 --- a/src/test/java/com/formkiq/client/model/GetWorkflowDocumentsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWorkflowDocumentsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetWorkflowDocumentsResponse */ public class GetWorkflowDocumentsResponseTest { - private final GetWorkflowDocumentsResponse model = new GetWorkflowDocumentsResponse(); - - /** - * Model tests for GetWorkflowDocumentsResponse - */ - @Test - public void testGetWorkflowDocumentsResponse() { - // TODO: test GetWorkflowDocumentsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final GetWorkflowDocumentsResponse model = new GetWorkflowDocumentsResponse(); + + /** + * Model tests for GetWorkflowDocumentsResponse + */ + @Test + public void testGetWorkflowDocumentsResponse() { + // TODO: test GetWorkflowDocumentsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponseTest.java b/src/test/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponseTest.java index b7241d5a0..d020ae097 100644 --- a/src/test/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetWorkflowQueueDocumentsResponse */ public class GetWorkflowQueueDocumentsResponseTest { - private final GetWorkflowQueueDocumentsResponse model = new GetWorkflowQueueDocumentsResponse(); - - /** - * Model tests for GetWorkflowQueueDocumentsResponse - */ - @Test - public void testGetWorkflowQueueDocumentsResponse() { - // TODO: test GetWorkflowQueueDocumentsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final GetWorkflowQueueDocumentsResponse model = new GetWorkflowQueueDocumentsResponse(); + + /** + * Model tests for GetWorkflowQueueDocumentsResponse + */ + @Test + public void testGetWorkflowQueueDocumentsResponse() { + // TODO: test GetWorkflowQueueDocumentsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/GetWorkflowResponseTest.java index 6331411ae..a1701feea 100644 --- a/src/test/java/com/formkiq/client/model/GetWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWorkflowResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,54 +31,54 @@ * Model tests for GetWorkflowResponse */ public class GetWorkflowResponseTest { - private final GetWorkflowResponse model = new GetWorkflowResponse(); + private final GetWorkflowResponse model = new GetWorkflowResponse(); - /** - * Model tests for GetWorkflowResponse - */ - @Test - public void testGetWorkflowResponse() { - // TODO: test GetWorkflowResponse - } + /** + * Model tests for GetWorkflowResponse + */ + @Test + public void testGetWorkflowResponse() { + // TODO: test GetWorkflowResponse + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'inUse' - */ - @Test - public void inUseTest() { - // TODO: test inUse - } + /** + * Test the property 'inUse' + */ + @Test + public void inUseTest() { + // TODO: test inUse + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'steps' - */ - @Test - public void stepsTest() { - // TODO: test steps - } + /** + * Test the property 'steps' + */ + @Test + public void stepsTest() { + // TODO: test steps + } } diff --git a/src/test/java/com/formkiq/client/model/GetWorkflowsResponseTest.java b/src/test/java/com/formkiq/client/model/GetWorkflowsResponseTest.java index a7d5977b1..a74c5eb86 100644 --- a/src/test/java/com/formkiq/client/model/GetWorkflowsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWorkflowsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for GetWorkflowsResponse */ public class GetWorkflowsResponseTest { - private final GetWorkflowsResponse model = new GetWorkflowsResponse(); - - /** - * Model tests for GetWorkflowsResponse - */ - @Test - public void testGetWorkflowsResponse() { - // TODO: test GetWorkflowsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'workflows' - */ - @Test - public void workflowsTest() { - // TODO: test workflows - } + private final GetWorkflowsResponse model = new GetWorkflowsResponse(); + + /** + * Model tests for GetWorkflowsResponse + */ + @Test + public void testGetWorkflowsResponse() { + // TODO: test GetWorkflowsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'workflows' + */ + @Test + public void workflowsTest() { + // TODO: test workflows + } } diff --git a/src/test/java/com/formkiq/client/model/GoogleConfigTest.java b/src/test/java/com/formkiq/client/model/GoogleConfigTest.java index 77264c900..e80356567 100644 --- a/src/test/java/com/formkiq/client/model/GoogleConfigTest.java +++ b/src/test/java/com/formkiq/client/model/GoogleConfigTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for GoogleConfig */ public class GoogleConfigTest { - private final GoogleConfig model = new GoogleConfig(); - - /** - * Model tests for GoogleConfig - */ - @Test - public void testGoogleConfig() { - // TODO: test GoogleConfig - } - - /** - * Test the property 'workloadIdentityAudience' - */ - @Test - public void workloadIdentityAudienceTest() { - // TODO: test workloadIdentityAudience - } - - /** - * Test the property 'workloadIdentityServiceAccount' - */ - @Test - public void workloadIdentityServiceAccountTest() { - // TODO: test workloadIdentityServiceAccount - } + private final GoogleConfig model = new GoogleConfig(); + + /** + * Model tests for GoogleConfig + */ + @Test + public void testGoogleConfig() { + // TODO: test GoogleConfig + } + + /** + * Test the property 'workloadIdentityAudience' + */ + @Test + public void workloadIdentityAudienceTest() { + // TODO: test workloadIdentityAudience + } + + /** + * Test the property 'workloadIdentityServiceAccount' + */ + @Test + public void workloadIdentityServiceAccountTest() { + // TODO: test workloadIdentityServiceAccount + } } diff --git a/src/test/java/com/formkiq/client/model/GoogleExportOutputTypeTest.java b/src/test/java/com/formkiq/client/model/GoogleExportOutputTypeTest.java index f2343a1e4..897941b07 100644 --- a/src/test/java/com/formkiq/client/model/GoogleExportOutputTypeTest.java +++ b/src/test/java/com/formkiq/client/model/GoogleExportOutputTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for GoogleExportOutputType */ public class GoogleExportOutputTypeTest { - /** - * Model tests for GoogleExportOutputType - */ - @Test - public void testGoogleExportOutputType() { - // TODO: test GoogleExportOutputType - } + /** + * Model tests for GoogleExportOutputType + */ + @Test + public void testGoogleExportOutputType() { + // TODO: test GoogleExportOutputType + } } diff --git a/src/test/java/com/formkiq/client/model/GroupTest.java b/src/test/java/com/formkiq/client/model/GroupTest.java index f47ea531a..c8c2b933a 100644 --- a/src/test/java/com/formkiq/client/model/GroupTest.java +++ b/src/test/java/com/formkiq/client/model/GroupTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,46 +27,46 @@ * Model tests for Group */ public class GroupTest { - private final Group model = new Group(); + private final Group model = new Group(); - /** - * Model tests for Group - */ - @Test - public void testGroup() { - // TODO: test Group - } + /** + * Model tests for Group + */ + @Test + public void testGroup() { + // TODO: test Group + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } } diff --git a/src/test/java/com/formkiq/client/model/IndexFolderMoveRequestTest.java b/src/test/java/com/formkiq/client/model/IndexFolderMoveRequestTest.java index b5a49b49d..973415216 100644 --- a/src/test/java/com/formkiq/client/model/IndexFolderMoveRequestTest.java +++ b/src/test/java/com/formkiq/client/model/IndexFolderMoveRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for IndexFolderMoveRequest */ public class IndexFolderMoveRequestTest { - private final IndexFolderMoveRequest model = new IndexFolderMoveRequest(); - - /** - * Model tests for IndexFolderMoveRequest - */ - @Test - public void testIndexFolderMoveRequest() { - // TODO: test IndexFolderMoveRequest - } - - /** - * Test the property 'source' - */ - @Test - public void sourceTest() { - // TODO: test source - } - - /** - * Test the property 'target' - */ - @Test - public void targetTest() { - // TODO: test target - } + private final IndexFolderMoveRequest model = new IndexFolderMoveRequest(); + + /** + * Model tests for IndexFolderMoveRequest + */ + @Test + public void testIndexFolderMoveRequest() { + // TODO: test IndexFolderMoveRequest + } + + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } } diff --git a/src/test/java/com/formkiq/client/model/IndexFolderMoveResponseTest.java b/src/test/java/com/formkiq/client/model/IndexFolderMoveResponseTest.java index 9989e9252..0fb81a48e 100644 --- a/src/test/java/com/formkiq/client/model/IndexFolderMoveResponseTest.java +++ b/src/test/java/com/formkiq/client/model/IndexFolderMoveResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for IndexFolderMoveResponse */ public class IndexFolderMoveResponseTest { - private final IndexFolderMoveResponse model = new IndexFolderMoveResponse(); + private final IndexFolderMoveResponse model = new IndexFolderMoveResponse(); - /** - * Model tests for IndexFolderMoveResponse - */ - @Test - public void testIndexFolderMoveResponse() { - // TODO: test IndexFolderMoveResponse - } + /** + * Model tests for IndexFolderMoveResponse + */ + @Test + public void testIndexFolderMoveResponse() { + // TODO: test IndexFolderMoveResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/IndexSearchRequestTest.java b/src/test/java/com/formkiq/client/model/IndexSearchRequestTest.java index 967319ac7..8ab0288bf 100644 --- a/src/test/java/com/formkiq/client/model/IndexSearchRequestTest.java +++ b/src/test/java/com/formkiq/client/model/IndexSearchRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for IndexSearchRequest */ public class IndexSearchRequestTest { - private final IndexSearchRequest model = new IndexSearchRequest(); + private final IndexSearchRequest model = new IndexSearchRequest(); - /** - * Model tests for IndexSearchRequest - */ - @Test - public void testIndexSearchRequest() { - // TODO: test IndexSearchRequest - } + /** + * Model tests for IndexSearchRequest + */ + @Test + public void testIndexSearchRequest() { + // TODO: test IndexSearchRequest + } - /** - * Test the property 'indexType' - */ - @Test - public void indexTypeTest() { - // TODO: test indexType - } + /** + * Test the property 'indexType' + */ + @Test + public void indexTypeTest() { + // TODO: test indexType + } } diff --git a/src/test/java/com/formkiq/client/model/IndexSearchResponseTest.java b/src/test/java/com/formkiq/client/model/IndexSearchResponseTest.java index 6f61f8de9..7eae940f7 100644 --- a/src/test/java/com/formkiq/client/model/IndexSearchResponseTest.java +++ b/src/test/java/com/formkiq/client/model/IndexSearchResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,38 +30,38 @@ * Model tests for IndexSearchResponse */ public class IndexSearchResponseTest { - private final IndexSearchResponse model = new IndexSearchResponse(); + private final IndexSearchResponse model = new IndexSearchResponse(); - /** - * Model tests for IndexSearchResponse - */ - @Test - public void testIndexSearchResponse() { - // TODO: test IndexSearchResponse - } + /** + * Model tests for IndexSearchResponse + */ + @Test + public void testIndexSearchResponse() { + // TODO: test IndexSearchResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/IndexSearchTest.java b/src/test/java/com/formkiq/client/model/IndexSearchTest.java index 07092aa02..c98dc0970 100644 --- a/src/test/java/com/formkiq/client/model/IndexSearchTest.java +++ b/src/test/java/com/formkiq/client/model/IndexSearchTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for IndexSearch */ public class IndexSearchTest { - private final IndexSearch model = new IndexSearch(); + private final IndexSearch model = new IndexSearch(); - /** - * Model tests for IndexSearch - */ - @Test - public void testIndexSearch() { - // TODO: test IndexSearch - } + /** + * Model tests for IndexSearch + */ + @Test + public void testIndexSearch() { + // TODO: test IndexSearch + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } } diff --git a/src/test/java/com/formkiq/client/model/LocaleInfoTest.java b/src/test/java/com/formkiq/client/model/LocaleInfoTest.java index c0d48204d..1d19c3363 100644 --- a/src/test/java/com/formkiq/client/model/LocaleInfoTest.java +++ b/src/test/java/com/formkiq/client/model/LocaleInfoTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for LocaleInfo */ public class LocaleInfoTest { - private final LocaleInfo model = new LocaleInfo(); + private final LocaleInfo model = new LocaleInfo(); - /** - * Model tests for LocaleInfo - */ - @Test - public void testLocaleInfo() { - // TODO: test LocaleInfo - } + /** + * Model tests for LocaleInfo + */ + @Test + public void testLocaleInfo() { + // TODO: test LocaleInfo + } - /** - * Test the property 'locale' - */ - @Test - public void localeTest() { - // TODO: test locale - } + /** + * Test the property 'locale' + */ + @Test + public void localeTest() { + // TODO: test locale + } } diff --git a/src/test/java/com/formkiq/client/model/LocaleResourceTypeTest.java b/src/test/java/com/formkiq/client/model/LocaleResourceTypeTest.java index d23d205df..456a8e159 100644 --- a/src/test/java/com/formkiq/client/model/LocaleResourceTypeTest.java +++ b/src/test/java/com/formkiq/client/model/LocaleResourceTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for LocaleResourceType */ public class LocaleResourceTypeTest { - /** - * Model tests for LocaleResourceType - */ - @Test - public void testLocaleResourceType() { - // TODO: test LocaleResourceType - } + /** + * Model tests for LocaleResourceType + */ + @Test + public void testLocaleResourceType() { + // TODO: test LocaleResourceType + } } diff --git a/src/test/java/com/formkiq/client/model/MalwareEngineTest.java b/src/test/java/com/formkiq/client/model/MalwareEngineTest.java index db1072530..536de1682 100644 --- a/src/test/java/com/formkiq/client/model/MalwareEngineTest.java +++ b/src/test/java/com/formkiq/client/model/MalwareEngineTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for MalwareEngine */ public class MalwareEngineTest { - /** - * Model tests for MalwareEngine - */ - @Test - public void testMalwareEngine() { - // TODO: test MalwareEngine - } + /** + * Model tests for MalwareEngine + */ + @Test + public void testMalwareEngine() { + // TODO: test MalwareEngine + } } diff --git a/src/test/java/com/formkiq/client/model/MalwareScanResultTest.java b/src/test/java/com/formkiq/client/model/MalwareScanResultTest.java index f8b00a3e8..022764757 100644 --- a/src/test/java/com/formkiq/client/model/MalwareScanResultTest.java +++ b/src/test/java/com/formkiq/client/model/MalwareScanResultTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,54 +29,54 @@ * Model tests for MalwareScanResult */ public class MalwareScanResultTest { - private final MalwareScanResult model = new MalwareScanResult(); + private final MalwareScanResult model = new MalwareScanResult(); - /** - * Model tests for MalwareScanResult - */ - @Test - public void testMalwareScanResult() { - // TODO: test MalwareScanResult - } + /** + * Model tests for MalwareScanResult + */ + @Test + public void testMalwareScanResult() { + // TODO: test MalwareScanResult + } - /** - * Test the property 'scanStatus' - */ - @Test - public void scanStatusTest() { - // TODO: test scanStatus - } + /** + * Test the property 'scanStatus' + */ + @Test + public void scanStatusTest() { + // TODO: test scanStatus + } - /** - * Test the property 'scanEngine' - */ - @Test - public void scanEngineTest() { - // TODO: test scanEngine - } + /** + * Test the property 'scanEngine' + */ + @Test + public void scanEngineTest() { + // TODO: test scanEngine + } - /** - * Test the property 's3version' - */ - @Test - public void s3versionTest() { - // TODO: test s3version - } + /** + * Test the property 's3version' + */ + @Test + public void s3versionTest() { + // TODO: test s3version + } - /** - * Test the property 'scanMessage' - */ - @Test - public void scanMessageTest() { - // TODO: test scanMessage - } + /** + * Test the property 'scanMessage' + */ + @Test + public void scanMessageTest() { + // TODO: test scanMessage + } - /** - * Test the property 'scannedDate' - */ - @Test - public void scannedDateTest() { - // TODO: test scannedDate - } + /** + * Test the property 'scannedDate' + */ + @Test + public void scannedDateTest() { + // TODO: test scannedDate + } } diff --git a/src/test/java/com/formkiq/client/model/MalwareScanStatusTest.java b/src/test/java/com/formkiq/client/model/MalwareScanStatusTest.java index 173486af1..a3b34866c 100644 --- a/src/test/java/com/formkiq/client/model/MalwareScanStatusTest.java +++ b/src/test/java/com/formkiq/client/model/MalwareScanStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for MalwareScanStatus */ public class MalwareScanStatusTest { - /** - * Model tests for MalwareScanStatus - */ - @Test - public void testMalwareScanStatus() { - // TODO: test MalwareScanStatus - } + /** + * Model tests for MalwareScanStatus + */ + @Test + public void testMalwareScanStatus() { + // TODO: test MalwareScanStatus + } } diff --git a/src/test/java/com/formkiq/client/model/MappingAttributeLabelMatchingTypeTest.java b/src/test/java/com/formkiq/client/model/MappingAttributeLabelMatchingTypeTest.java index 1f84166a4..16efc9c7a 100644 --- a/src/test/java/com/formkiq/client/model/MappingAttributeLabelMatchingTypeTest.java +++ b/src/test/java/com/formkiq/client/model/MappingAttributeLabelMatchingTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for MappingAttributeLabelMatchingType */ public class MappingAttributeLabelMatchingTypeTest { - /** - * Model tests for MappingAttributeLabelMatchingType - */ - @Test - public void testMappingAttributeLabelMatchingType() { - // TODO: test MappingAttributeLabelMatchingType - } + /** + * Model tests for MappingAttributeLabelMatchingType + */ + @Test + public void testMappingAttributeLabelMatchingType() { + // TODO: test MappingAttributeLabelMatchingType + } } diff --git a/src/test/java/com/formkiq/client/model/MappingAttributeMetadataFieldTest.java b/src/test/java/com/formkiq/client/model/MappingAttributeMetadataFieldTest.java index 0d3c32cdd..0dc976313 100644 --- a/src/test/java/com/formkiq/client/model/MappingAttributeMetadataFieldTest.java +++ b/src/test/java/com/formkiq/client/model/MappingAttributeMetadataFieldTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for MappingAttributeMetadataField */ public class MappingAttributeMetadataFieldTest { - /** - * Model tests for MappingAttributeMetadataField - */ - @Test - public void testMappingAttributeMetadataField() { - // TODO: test MappingAttributeMetadataField - } + /** + * Model tests for MappingAttributeMetadataField + */ + @Test + public void testMappingAttributeMetadataField() { + // TODO: test MappingAttributeMetadataField + } } diff --git a/src/test/java/com/formkiq/client/model/MappingAttributeSourceTypeTest.java b/src/test/java/com/formkiq/client/model/MappingAttributeSourceTypeTest.java index 120c03a95..92bf5d01e 100644 --- a/src/test/java/com/formkiq/client/model/MappingAttributeSourceTypeTest.java +++ b/src/test/java/com/formkiq/client/model/MappingAttributeSourceTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for MappingAttributeSourceType */ public class MappingAttributeSourceTypeTest { - /** - * Model tests for MappingAttributeSourceType - */ - @Test - public void testMappingAttributeSourceType() { - // TODO: test MappingAttributeSourceType - } + /** + * Model tests for MappingAttributeSourceType + */ + @Test + public void testMappingAttributeSourceType() { + // TODO: test MappingAttributeSourceType + } } diff --git a/src/test/java/com/formkiq/client/model/MappingAttributeTest.java b/src/test/java/com/formkiq/client/model/MappingAttributeTest.java index d433bc777..625164703 100644 --- a/src/test/java/com/formkiq/client/model/MappingAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/MappingAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,78 +32,78 @@ * Model tests for MappingAttribute */ public class MappingAttributeTest { - private final MappingAttribute model = new MappingAttribute(); + private final MappingAttribute model = new MappingAttribute(); - /** - * Model tests for MappingAttribute - */ - @Test - public void testMappingAttribute() { - // TODO: test MappingAttribute - } + /** + * Model tests for MappingAttribute + */ + @Test + public void testMappingAttribute() { + // TODO: test MappingAttribute + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'sourceType' - */ - @Test - public void sourceTypeTest() { - // TODO: test sourceType - } + /** + * Test the property 'sourceType' + */ + @Test + public void sourceTypeTest() { + // TODO: test sourceType + } - /** - * Test the property 'defaultValue' - */ - @Test - public void defaultValueTest() { - // TODO: test defaultValue - } + /** + * Test the property 'defaultValue' + */ + @Test + public void defaultValueTest() { + // TODO: test defaultValue + } - /** - * Test the property 'defaultValues' - */ - @Test - public void defaultValuesTest() { - // TODO: test defaultValues - } + /** + * Test the property 'defaultValues' + */ + @Test + public void defaultValuesTest() { + // TODO: test defaultValues + } - /** - * Test the property 'labelTexts' - */ - @Test - public void labelTextsTest() { - // TODO: test labelTexts - } + /** + * Test the property 'labelTexts' + */ + @Test + public void labelTextsTest() { + // TODO: test labelTexts + } - /** - * Test the property 'labelMatchingType' - */ - @Test - public void labelMatchingTypeTest() { - // TODO: test labelMatchingType - } + /** + * Test the property 'labelMatchingType' + */ + @Test + public void labelMatchingTypeTest() { + // TODO: test labelMatchingType + } - /** - * Test the property 'metadataField' - */ - @Test - public void metadataFieldTest() { - // TODO: test metadataField - } + /** + * Test the property 'metadataField' + */ + @Test + public void metadataFieldTest() { + // TODO: test metadataField + } - /** - * Test the property 'validationRegex' - */ - @Test - public void validationRegexTest() { - // TODO: test validationRegex - } + /** + * Test the property 'validationRegex' + */ + @Test + public void validationRegexTest() { + // TODO: test validationRegex + } } diff --git a/src/test/java/com/formkiq/client/model/MappingTest.java b/src/test/java/com/formkiq/client/model/MappingTest.java index bcc6b5145..cefd4e4ec 100644 --- a/src/test/java/com/formkiq/client/model/MappingTest.java +++ b/src/test/java/com/formkiq/client/model/MappingTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,46 +30,46 @@ * Model tests for Mapping */ public class MappingTest { - private final Mapping model = new Mapping(); + private final Mapping model = new Mapping(); - /** - * Model tests for Mapping - */ - @Test - public void testMapping() { - // TODO: test Mapping - } + /** + * Model tests for Mapping + */ + @Test + public void testMapping() { + // TODO: test Mapping + } - /** - * Test the property 'mappingId' - */ - @Test - public void mappingIdTest() { - // TODO: test mappingId - } + /** + * Test the property 'mappingId' + */ + @Test + public void mappingIdTest() { + // TODO: test mappingId + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/MatchDocumentTagTest.java b/src/test/java/com/formkiq/client/model/MatchDocumentTagTest.java index 5a000f6c3..a1ea4ec97 100644 --- a/src/test/java/com/formkiq/client/model/MatchDocumentTagTest.java +++ b/src/test/java/com/formkiq/client/model/MatchDocumentTagTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,38 +27,38 @@ * Model tests for MatchDocumentTag */ public class MatchDocumentTagTest { - private final MatchDocumentTag model = new MatchDocumentTag(); + private final MatchDocumentTag model = new MatchDocumentTag(); - /** - * Model tests for MatchDocumentTag - */ - @Test - public void testMatchDocumentTag() { - // TODO: test MatchDocumentTag - } + /** + * Model tests for MatchDocumentTag + */ + @Test + public void testMatchDocumentTag() { + // TODO: test MatchDocumentTag + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'beginsWith' - */ - @Test - public void beginsWithTest() { - // TODO: test beginsWith - } + /** + * Test the property 'beginsWith' + */ + @Test + public void beginsWithTest() { + // TODO: test beginsWith + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } } diff --git a/src/test/java/com/formkiq/client/model/ModelCaseTest.java b/src/test/java/com/formkiq/client/model/ModelCaseTest.java index 46c56cde6..d119b797f 100644 --- a/src/test/java/com/formkiq/client/model/ModelCaseTest.java +++ b/src/test/java/com/formkiq/client/model/ModelCaseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,118 +30,118 @@ * Model tests for ModelCase */ public class ModelCaseTest { - private final ModelCase model = new ModelCase(); - - /** - * Model tests for ModelCase - */ - @Test - public void testModelCase() { - // TODO: test ModelCase - } - - /** - * Test the property 'caseId' - */ - @Test - public void caseIdTest() { - // TODO: test caseId - } - - /** - * Test the property 'caseNumber' - */ - @Test - public void caseNumberTest() { - // TODO: test caseNumber - } - - /** - * Test the property 'documentNumber' - */ - @Test - public void documentNumberTest() { - // TODO: test documentNumber - } - - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } - - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } - - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } - - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + private final ModelCase model = new ModelCase(); + + /** + * Model tests for ModelCase + */ + @Test + public void testModelCase() { + // TODO: test ModelCase + } + + /** + * Test the property 'caseId' + */ + @Test + public void caseIdTest() { + // TODO: test caseId + } + + /** + * Test the property 'caseNumber' + */ + @Test + public void caseNumberTest() { + // TODO: test caseNumber + } + + /** + * Test the property 'documentNumber' + */ + @Test + public void documentNumberTest() { + // TODO: test documentNumber + } + + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } + + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } } diff --git a/src/test/java/com/formkiq/client/model/NigoStatusTest.java b/src/test/java/com/formkiq/client/model/NigoStatusTest.java index 304f72388..3ecb65b12 100644 --- a/src/test/java/com/formkiq/client/model/NigoStatusTest.java +++ b/src/test/java/com/formkiq/client/model/NigoStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for NigoStatus */ public class NigoStatusTest { - /** - * Model tests for NigoStatus - */ - @Test - public void testNigoStatus() { - // TODO: test NigoStatus - } + /** + * Model tests for NigoStatus + */ + @Test + public void testNigoStatus() { + // TODO: test NigoStatus + } } diff --git a/src/test/java/com/formkiq/client/model/NigoTest.java b/src/test/java/com/formkiq/client/model/NigoTest.java index 69c97fa33..c44d76166 100644 --- a/src/test/java/com/formkiq/client/model/NigoTest.java +++ b/src/test/java/com/formkiq/client/model/NigoTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,102 +30,102 @@ * Model tests for Nigo */ public class NigoTest { - private final Nigo model = new Nigo(); - - /** - * Model tests for Nigo - */ - @Test - public void testNigo() { - // TODO: test Nigo - } - - /** - * Test the property 'nigoId' - */ - @Test - public void nigoIdTest() { - // TODO: test nigoId - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } - - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } - - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } - - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final Nigo model = new Nigo(); + + /** + * Model tests for Nigo + */ + @Test + public void testNigo() { + // TODO: test Nigo + } + + /** + * Test the property 'nigoId' + */ + @Test + public void nigoIdTest() { + // TODO: test nigoId + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } + + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/OcrConfigTest.java b/src/test/java/com/formkiq/client/model/OcrConfigTest.java index 647f04dc5..35a9b5f16 100644 --- a/src/test/java/com/formkiq/client/model/OcrConfigTest.java +++ b/src/test/java/com/formkiq/client/model/OcrConfigTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for OcrConfig */ public class OcrConfigTest { - private final OcrConfig model = new OcrConfig(); - - /** - * Model tests for OcrConfig - */ - @Test - public void testOcrConfig() { - // TODO: test OcrConfig - } - - /** - * Test the property 'maxPagesPerTransaction' - */ - @Test - public void maxPagesPerTransactionTest() { - // TODO: test maxPagesPerTransaction - } - - /** - * Test the property 'maxTransactions' - */ - @Test - public void maxTransactionsTest() { - // TODO: test maxTransactions - } + private final OcrConfig model = new OcrConfig(); + + /** + * Model tests for OcrConfig + */ + @Test + public void testOcrConfig() { + // TODO: test OcrConfig + } + + /** + * Test the property 'maxPagesPerTransaction' + */ + @Test + public void maxPagesPerTransactionTest() { + // TODO: test maxPagesPerTransaction + } + + /** + * Test the property 'maxTransactions' + */ + @Test + public void maxTransactionsTest() { + // TODO: test maxTransactions + } } diff --git a/src/test/java/com/formkiq/client/model/OcrEngineTest.java b/src/test/java/com/formkiq/client/model/OcrEngineTest.java index 8ae96dec0..138841ecd 100644 --- a/src/test/java/com/formkiq/client/model/OcrEngineTest.java +++ b/src/test/java/com/formkiq/client/model/OcrEngineTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for OcrEngine */ public class OcrEngineTest { - /** - * Model tests for OcrEngine - */ - @Test - public void testOcrEngine() { - // TODO: test OcrEngine - } + /** + * Model tests for OcrEngine + */ + @Test + public void testOcrEngine() { + // TODO: test OcrEngine + } } diff --git a/src/test/java/com/formkiq/client/model/OcrKeyValuesTest.java b/src/test/java/com/formkiq/client/model/OcrKeyValuesTest.java index 2174e6395..4d3239a33 100644 --- a/src/test/java/com/formkiq/client/model/OcrKeyValuesTest.java +++ b/src/test/java/com/formkiq/client/model/OcrKeyValuesTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for OcrKeyValues */ public class OcrKeyValuesTest { - private final OcrKeyValues model = new OcrKeyValues(); - - /** - * Model tests for OcrKeyValues - */ - @Test - public void testOcrKeyValues() { - // TODO: test OcrKeyValues - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + private final OcrKeyValues model = new OcrKeyValues(); + + /** + * Model tests for OcrKeyValues + */ + @Test + public void testOcrKeyValues() { + // TODO: test OcrKeyValues + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/OcrOutputTypeTest.java b/src/test/java/com/formkiq/client/model/OcrOutputTypeTest.java index 4b5da89f6..e5b7d4e69 100644 --- a/src/test/java/com/formkiq/client/model/OcrOutputTypeTest.java +++ b/src/test/java/com/formkiq/client/model/OcrOutputTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for OcrOutputType */ public class OcrOutputTypeTest { - /** - * Model tests for OcrOutputType - */ - @Test - public void testOcrOutputType() { - // TODO: test OcrOutputType - } + /** + * Model tests for OcrOutputType + */ + @Test + public void testOcrOutputType() { + // TODO: test OcrOutputType + } } diff --git a/src/test/java/com/formkiq/client/model/OcrTableDataTest.java b/src/test/java/com/formkiq/client/model/OcrTableDataTest.java index 2f71cbf6c..dd66660ec 100644 --- a/src/test/java/com/formkiq/client/model/OcrTableDataTest.java +++ b/src/test/java/com/formkiq/client/model/OcrTableDataTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for OcrTableData */ public class OcrTableDataTest { - private final OcrTableData model = new OcrTableData(); + private final OcrTableData model = new OcrTableData(); - /** - * Model tests for OcrTableData - */ - @Test - public void testOcrTableData() { - // TODO: test OcrTableData - } + /** + * Model tests for OcrTableData + */ + @Test + public void testOcrTableData() { + // TODO: test OcrTableData + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } } diff --git a/src/test/java/com/formkiq/client/model/OcrTableTest.java b/src/test/java/com/formkiq/client/model/OcrTableTest.java index 7e59af696..63aca82fd 100644 --- a/src/test/java/com/formkiq/client/model/OcrTableTest.java +++ b/src/test/java/com/formkiq/client/model/OcrTableTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for OcrTable */ public class OcrTableTest { - private final OcrTable model = new OcrTable(); - - /** - * Model tests for OcrTable - */ - @Test - public void testOcrTable() { - // TODO: test OcrTable - } - - /** - * Test the property 'headers' - */ - @Test - public void headersTest() { - // TODO: test headers - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } + private final OcrTable model = new OcrTable(); + + /** + * Model tests for OcrTable + */ + @Test + public void testOcrTable() { + // TODO: test OcrTable + } + + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeEqTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeEqTest.java index 14f037247..eecbe875d 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeEqTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeEqTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,46 +29,46 @@ * Model tests for OpaPolicyAttributeEq */ public class OpaPolicyAttributeEqTest { - private final OpaPolicyAttributeEq model = new OpaPolicyAttributeEq(); + private final OpaPolicyAttributeEq model = new OpaPolicyAttributeEq(); - /** - * Model tests for OpaPolicyAttributeEq - */ - @Test - public void testOpaPolicyAttributeEq() { - // TODO: test OpaPolicyAttributeEq - } + /** + * Model tests for OpaPolicyAttributeEq + */ + @Test + public void testOpaPolicyAttributeEq() { + // TODO: test OpaPolicyAttributeEq + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } - /** - * Test the property 'input' - */ - @Test - public void inputTest() { - // TODO: test input - } + /** + * Test the property 'input' + */ + @Test + public void inputTest() { + // TODO: test input + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGtTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGtTest.java index 8d20d7e1a..7e974ed99 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGtTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGtTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for OpaPolicyAttributeGt */ public class OpaPolicyAttributeGtTest { - private final OpaPolicyAttributeGt model = new OpaPolicyAttributeGt(); + private final OpaPolicyAttributeGt model = new OpaPolicyAttributeGt(); - /** - * Model tests for OpaPolicyAttributeGt - */ - @Test - public void testOpaPolicyAttributeGt() { - // TODO: test OpaPolicyAttributeGt - } + /** + * Model tests for OpaPolicyAttributeGt + */ + @Test + public void testOpaPolicyAttributeGt() { + // TODO: test OpaPolicyAttributeGt + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGteTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGteTest.java index 679f9ebed..0220c5ea1 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGteTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGteTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for OpaPolicyAttributeGte */ public class OpaPolicyAttributeGteTest { - private final OpaPolicyAttributeGte model = new OpaPolicyAttributeGte(); + private final OpaPolicyAttributeGte model = new OpaPolicyAttributeGte(); - /** - * Model tests for OpaPolicyAttributeGte - */ - @Test - public void testOpaPolicyAttributeGte() { - // TODO: test OpaPolicyAttributeGte - } + /** + * Model tests for OpaPolicyAttributeGte + */ + @Test + public void testOpaPolicyAttributeGte() { + // TODO: test OpaPolicyAttributeGte + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInTest.java index cf9d8e042..6d6621343 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,22 +29,22 @@ * Model tests for OpaPolicyAttributeIn */ public class OpaPolicyAttributeInTest { - private final OpaPolicyAttributeIn model = new OpaPolicyAttributeIn(); + private final OpaPolicyAttributeIn model = new OpaPolicyAttributeIn(); - /** - * Model tests for OpaPolicyAttributeIn - */ - @Test - public void testOpaPolicyAttributeIn() { - // TODO: test OpaPolicyAttributeIn - } + /** + * Model tests for OpaPolicyAttributeIn + */ + @Test + public void testOpaPolicyAttributeIn() { + // TODO: test OpaPolicyAttributeIn + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInputTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInputTest.java index b44e35dd9..ec6826911 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInputTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInputTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for OpaPolicyAttributeInput */ public class OpaPolicyAttributeInputTest { - private final OpaPolicyAttributeInput model = new OpaPolicyAttributeInput(); + private final OpaPolicyAttributeInput model = new OpaPolicyAttributeInput(); - /** - * Model tests for OpaPolicyAttributeInput - */ - @Test - public void testOpaPolicyAttributeInput() { - // TODO: test OpaPolicyAttributeInput - } + /** + * Model tests for OpaPolicyAttributeInput + */ + @Test + public void testOpaPolicyAttributeInput() { + // TODO: test OpaPolicyAttributeInput + } - /** - * Test the property 'matchUsername' - */ - @Test - public void matchUsernameTest() { - // TODO: test matchUsername - } + /** + * Test the property 'matchUsername' + */ + @Test + public void matchUsernameTest() { + // TODO: test matchUsername + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLtTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLtTest.java index cad57962f..a67e53f16 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLtTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLtTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for OpaPolicyAttributeLt */ public class OpaPolicyAttributeLtTest { - private final OpaPolicyAttributeLt model = new OpaPolicyAttributeLt(); + private final OpaPolicyAttributeLt model = new OpaPolicyAttributeLt(); - /** - * Model tests for OpaPolicyAttributeLt - */ - @Test - public void testOpaPolicyAttributeLt() { - // TODO: test OpaPolicyAttributeLt - } + /** + * Model tests for OpaPolicyAttributeLt + */ + @Test + public void testOpaPolicyAttributeLt() { + // TODO: test OpaPolicyAttributeLt + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLteTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLteTest.java index 1cbced507..13492c0dc 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLteTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLteTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for OpaPolicyAttributeLte */ public class OpaPolicyAttributeLteTest { - private final OpaPolicyAttributeLte model = new OpaPolicyAttributeLte(); + private final OpaPolicyAttributeLte model = new OpaPolicyAttributeLte(); - /** - * Model tests for OpaPolicyAttributeLte - */ - @Test - public void testOpaPolicyAttributeLte() { - // TODO: test OpaPolicyAttributeLte - } + /** + * Model tests for OpaPolicyAttributeLte + */ + @Test + public void testOpaPolicyAttributeLte() { + // TODO: test OpaPolicyAttributeLte + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNeqTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNeqTest.java index 8b1426d7b..b7099e014 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNeqTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNeqTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for OpaPolicyAttributeNeq */ public class OpaPolicyAttributeNeqTest { - private final OpaPolicyAttributeNeq model = new OpaPolicyAttributeNeq(); + private final OpaPolicyAttributeNeq model = new OpaPolicyAttributeNeq(); - /** - * Model tests for OpaPolicyAttributeNeq - */ - @Test - public void testOpaPolicyAttributeNeq() { - // TODO: test OpaPolicyAttributeNeq - } + /** + * Model tests for OpaPolicyAttributeNeq + */ + @Test + public void testOpaPolicyAttributeNeq() { + // TODO: test OpaPolicyAttributeNeq + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNotInTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNotInTest.java index 99de7edbc..df71325e0 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNotInTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNotInTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,22 +29,22 @@ * Model tests for OpaPolicyAttributeNotIn */ public class OpaPolicyAttributeNotInTest { - private final OpaPolicyAttributeNotIn model = new OpaPolicyAttributeNotIn(); + private final OpaPolicyAttributeNotIn model = new OpaPolicyAttributeNotIn(); - /** - * Model tests for OpaPolicyAttributeNotIn - */ - @Test - public void testOpaPolicyAttributeNotIn() { - // TODO: test OpaPolicyAttributeNotIn - } + /** + * Model tests for OpaPolicyAttributeNotIn + */ + @Test + public void testOpaPolicyAttributeNotIn() { + // TODO: test OpaPolicyAttributeNotIn + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeTest.java index ce58b9e66..e54c45794 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -42,86 +35,86 @@ * Model tests for OpaPolicyAttribute */ public class OpaPolicyAttributeTest { - private final OpaPolicyAttribute model = new OpaPolicyAttribute(); + private final OpaPolicyAttribute model = new OpaPolicyAttribute(); - /** - * Model tests for OpaPolicyAttribute - */ - @Test - public void testOpaPolicyAttribute() { - // TODO: test OpaPolicyAttribute - } + /** + * Model tests for OpaPolicyAttribute + */ + @Test + public void testOpaPolicyAttribute() { + // TODO: test OpaPolicyAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'gt' - */ - @Test - public void gtTest() { - // TODO: test gt - } + /** + * Test the property 'gt' + */ + @Test + public void gtTest() { + // TODO: test gt + } - /** - * Test the property 'gte' - */ - @Test - public void gteTest() { - // TODO: test gte - } + /** + * Test the property 'gte' + */ + @Test + public void gteTest() { + // TODO: test gte + } - /** - * Test the property 'lt' - */ - @Test - public void ltTest() { - // TODO: test lt - } + /** + * Test the property 'lt' + */ + @Test + public void ltTest() { + // TODO: test lt + } - /** - * Test the property 'lte' - */ - @Test - public void lteTest() { - // TODO: test lte - } + /** + * Test the property 'lte' + */ + @Test + public void lteTest() { + // TODO: test lte + } - /** - * Test the property 'neq' - */ - @Test - public void neqTest() { - // TODO: test neq - } + /** + * Test the property 'neq' + */ + @Test + public void neqTest() { + // TODO: test neq + } - /** - * Test the property 'in' - */ - @Test - public void inTest() { - // TODO: test in - } + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } - /** - * Test the property 'notIn' - */ - @Test - public void notInTest() { - // TODO: test notIn - } + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyInputMethodTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyInputMethodTest.java index 18fd2e55a..0b05a7012 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyInputMethodTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyInputMethodTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for OpaPolicyInputMethod */ public class OpaPolicyInputMethodTest { - private final OpaPolicyInputMethod model = new OpaPolicyInputMethod(); - - /** - * Model tests for OpaPolicyInputMethod - */ - @Test - public void testOpaPolicyInputMethod() { - // TODO: test OpaPolicyInputMethod - } - - /** - * Test the property 'in' - */ - @Test - public void inTest() { - // TODO: test in - } - - /** - * Test the property 'notIn' - */ - @Test - public void notInTest() { - // TODO: test notIn - } + private final OpaPolicyInputMethod model = new OpaPolicyInputMethod(); + + /** + * Model tests for OpaPolicyInputMethod + */ + @Test + public void testOpaPolicyInputMethod() { + // TODO: test OpaPolicyInputMethod + } + + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } + + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyInputResourceTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyInputResourceTest.java index 1d36c0c8e..a6e394524 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyInputResourceTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyInputResourceTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for OpaPolicyInputResource */ public class OpaPolicyInputResourceTest { - private final OpaPolicyInputResource model = new OpaPolicyInputResource(); - - /** - * Model tests for OpaPolicyInputResource - */ - @Test - public void testOpaPolicyInputResource() { - // TODO: test OpaPolicyInputResource - } - - /** - * Test the property 'in' - */ - @Test - public void inTest() { - // TODO: test in - } - - /** - * Test the property 'notIn' - */ - @Test - public void notInTest() { - // TODO: test notIn - } + private final OpaPolicyInputResource model = new OpaPolicyInputResource(); + + /** + * Model tests for OpaPolicyInputResource + */ + @Test + public void testOpaPolicyInputResource() { + // TODO: test OpaPolicyInputResource + } + + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } + + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyInputTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyInputTest.java index e2ef0b27c..4142f7926 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyInputTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyInputTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for OpaPolicyInput */ public class OpaPolicyInputTest { - private final OpaPolicyInput model = new OpaPolicyInput(); - - /** - * Model tests for OpaPolicyInput - */ - @Test - public void testOpaPolicyInput() { - // TODO: test OpaPolicyInput - } - - /** - * Test the property 'httpMethod' - */ - @Test - public void httpMethodTest() { - // TODO: test httpMethod - } - - /** - * Test the property 'resource' - */ - @Test - public void resourceTest() { - // TODO: test resource - } + private final OpaPolicyInput model = new OpaPolicyInput(); + + /** + * Model tests for OpaPolicyInput + */ + @Test + public void testOpaPolicyInput() { + // TODO: test OpaPolicyInput + } + + /** + * Test the property 'httpMethod' + */ + @Test + public void httpMethodTest() { + // TODO: test httpMethod + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyItemTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyItemTest.java index 57a3bb5ab..aef4a414e 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyItemTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyItemTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,62 +31,62 @@ * Model tests for OpaPolicyItem */ public class OpaPolicyItemTest { - private final OpaPolicyItem model = new OpaPolicyItem(); + private final OpaPolicyItem model = new OpaPolicyItem(); - /** - * Model tests for OpaPolicyItem - */ - @Test - public void testOpaPolicyItem() { - // TODO: test OpaPolicyItem - } + /** + * Model tests for OpaPolicyItem + */ + @Test + public void testOpaPolicyItem() { + // TODO: test OpaPolicyItem + } - /** - * Test the property 'policy' - */ - @Test - public void policyTest() { - // TODO: test policy - } + /** + * Test the property 'policy' + */ + @Test + public void policyTest() { + // TODO: test policy + } - /** - * Test the property 'allRoles' - */ - @Test - public void allRolesTest() { - // TODO: test allRoles - } + /** + * Test the property 'allRoles' + */ + @Test + public void allRolesTest() { + // TODO: test allRoles + } - /** - * Test the property 'anyRoles' - */ - @Test - public void anyRolesTest() { - // TODO: test anyRoles - } + /** + * Test the property 'anyRoles' + */ + @Test + public void anyRolesTest() { + // TODO: test anyRoles + } - /** - * Test the property 'excludedRoles' - */ - @Test - public void excludedRolesTest() { - // TODO: test excludedRoles - } + /** + * Test the property 'excludedRoles' + */ + @Test + public void excludedRolesTest() { + // TODO: test excludedRoles + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } - /** - * Test the property 'input' - */ - @Test - public void inputTest() { - // TODO: test input - } + /** + * Test the property 'input' + */ + @Test + public void inputTest() { + // TODO: test input + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyTest.java index d70b7e432..214983e3a 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for OpaPolicy */ public class OpaPolicyTest { - private final OpaPolicy model = new OpaPolicy(); - - /** - * Model tests for OpaPolicy - */ - @Test - public void testOpaPolicy() { - // TODO: test OpaPolicy - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'policy' - */ - @Test - public void policyTest() { - // TODO: test policy - } + private final OpaPolicy model = new OpaPolicy(); + + /** + * Model tests for OpaPolicy + */ + @Test + public void testOpaPolicy() { + // TODO: test OpaPolicy + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'policy' + */ + @Test + public void policyTest() { + // TODO: test policy + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchAliasTest.java b/src/test/java/com/formkiq/client/model/OpenSearchAliasTest.java index 06e2c9bc6..65b7848b8 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchAliasTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchAliasTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for OpenSearchAlias */ public class OpenSearchAliasTest { - private final OpenSearchAlias model = new OpenSearchAlias(); + private final OpenSearchAlias model = new OpenSearchAlias(); - /** - * Model tests for OpenSearchAlias - */ - @Test - public void testOpenSearchAlias() { - // TODO: test OpenSearchAlias - } + /** + * Model tests for OpenSearchAlias + */ + @Test + public void testOpenSearchAlias() { + // TODO: test OpenSearchAlias + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchIndexSettingTest.java b/src/test/java/com/formkiq/client/model/OpenSearchIndexSettingTest.java index 6af9bd5ab..7de94b521 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchIndexSettingTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchIndexSettingTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for OpenSearchIndexSetting */ public class OpenSearchIndexSettingTest { - private final OpenSearchIndexSetting model = new OpenSearchIndexSetting(); - - /** - * Model tests for OpenSearchIndexSetting - */ - @Test - public void testOpenSearchIndexSetting() { - // TODO: test OpenSearchIndexSetting - } - - /** - * Test the property 'numberOfReplicas' - */ - @Test - public void numberOfReplicasTest() { - // TODO: test numberOfReplicas - } - - /** - * Test the property 'numberOfShards' - */ - @Test - public void numberOfShardsTest() { - // TODO: test numberOfShards - } + private final OpenSearchIndexSetting model = new OpenSearchIndexSetting(); + + /** + * Model tests for OpenSearchIndexSetting + */ + @Test + public void testOpenSearchIndexSetting() { + // TODO: test OpenSearchIndexSetting + } + + /** + * Test the property 'numberOfReplicas' + */ + @Test + public void numberOfReplicasTest() { + // TODO: test numberOfReplicas + } + + /** + * Test the property 'numberOfShards' + */ + @Test + public void numberOfShardsTest() { + // TODO: test numberOfShards + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchIndexTest.java b/src/test/java/com/formkiq/client/model/OpenSearchIndexTest.java index 6e4ac2793..a969dab3d 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchIndexTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchIndexTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,62 +30,62 @@ * Model tests for OpenSearchIndex */ public class OpenSearchIndexTest { - private final OpenSearchIndex model = new OpenSearchIndex(); + private final OpenSearchIndex model = new OpenSearchIndex(); - /** - * Model tests for OpenSearchIndex - */ - @Test - public void testOpenSearchIndex() { - // TODO: test OpenSearchIndex - } + /** + * Model tests for OpenSearchIndex + */ + @Test + public void testOpenSearchIndex() { + // TODO: test OpenSearchIndex + } - /** - * Test the property 'numberOfReplicas' - */ - @Test - public void numberOfReplicasTest() { - // TODO: test numberOfReplicas - } + /** + * Test the property 'numberOfReplicas' + */ + @Test + public void numberOfReplicasTest() { + // TODO: test numberOfReplicas + } - /** - * Test the property 'numberOfShards' - */ - @Test - public void numberOfShardsTest() { - // TODO: test numberOfShards - } + /** + * Test the property 'numberOfShards' + */ + @Test + public void numberOfShardsTest() { + // TODO: test numberOfShards + } - /** - * Test the property 'documentCount' - */ - @Test - public void documentCountTest() { - // TODO: test documentCount - } + /** + * Test the property 'documentCount' + */ + @Test + public void documentCountTest() { + // TODO: test documentCount + } - /** - * Test the property 'storeSize' - */ - @Test - public void storeSizeTest() { - // TODO: test storeSize - } + /** + * Test the property 'storeSize' + */ + @Test + public void storeSizeTest() { + // TODO: test storeSize + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'aliases' - */ - @Test - public void aliasesTest() { - // TODO: test aliases - } + /** + * Test the property 'aliases' + */ + @Test + public void aliasesTest() { + // TODO: test aliases + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchS3RepositoryTest.java b/src/test/java/com/formkiq/client/model/OpenSearchS3RepositoryTest.java index 19b226bd2..338272db5 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchS3RepositoryTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchS3RepositoryTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for OpenSearchS3Repository */ public class OpenSearchS3RepositoryTest { - private final OpenSearchS3Repository model = new OpenSearchS3Repository(); - - /** - * Model tests for OpenSearchS3Repository - */ - @Test - public void testOpenSearchS3Repository() { - // TODO: test OpenSearchS3Repository - } - - /** - * Test the property 'repository' - */ - @Test - public void repositoryTest() { - // TODO: test repository - } - - /** - * Test the property 'bucket' - */ - @Test - public void bucketTest() { - // TODO: test bucket - } + private final OpenSearchS3Repository model = new OpenSearchS3Repository(); + + /** + * Model tests for OpenSearchS3Repository + */ + @Test + public void testOpenSearchS3Repository() { + // TODO: test OpenSearchS3Repository + } + + /** + * Test the property 'repository' + */ + @Test + public void repositoryTest() { + // TODO: test repository + } + + /** + * Test the property 'bucket' + */ + @Test + public void bucketTest() { + // TODO: test bucket + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotFailureTest.java b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotFailureTest.java index d98a00a1d..84637e11f 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotFailureTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotFailureTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,62 +27,62 @@ * Model tests for OpenSearchSnapshotFailure */ public class OpenSearchSnapshotFailureTest { - private final OpenSearchSnapshotFailure model = new OpenSearchSnapshotFailure(); + private final OpenSearchSnapshotFailure model = new OpenSearchSnapshotFailure(); - /** - * Model tests for OpenSearchSnapshotFailure - */ - @Test - public void testOpenSearchSnapshotFailure() { - // TODO: test OpenSearchSnapshotFailure - } + /** + * Model tests for OpenSearchSnapshotFailure + */ + @Test + public void testOpenSearchSnapshotFailure() { + // TODO: test OpenSearchSnapshotFailure + } - /** - * Test the property 'index' - */ - @Test - public void indexTest() { - // TODO: test index - } + /** + * Test the property 'index' + */ + @Test + public void indexTest() { + // TODO: test index + } - /** - * Test the property 'indexUuid' - */ - @Test - public void indexUuidTest() { - // TODO: test indexUuid - } + /** + * Test the property 'indexUuid' + */ + @Test + public void indexUuidTest() { + // TODO: test indexUuid + } - /** - * Test the property 'shardId' - */ - @Test - public void shardIdTest() { - // TODO: test shardId - } + /** + * Test the property 'shardId' + */ + @Test + public void shardIdTest() { + // TODO: test shardId + } - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } - /** - * Test the property 'nodeId' - */ - @Test - public void nodeIdTest() { - // TODO: test nodeId - } + /** + * Test the property 'nodeId' + */ + @Test + public void nodeIdTest() { + // TODO: test nodeId + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotShardTest.java b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotShardTest.java index 186065b51..011ea0709 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotShardTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotShardTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,38 +28,38 @@ * Model tests for OpenSearchSnapshotShard */ public class OpenSearchSnapshotShardTest { - private final OpenSearchSnapshotShard model = new OpenSearchSnapshotShard(); + private final OpenSearchSnapshotShard model = new OpenSearchSnapshotShard(); - /** - * Model tests for OpenSearchSnapshotShard - */ - @Test - public void testOpenSearchSnapshotShard() { - // TODO: test OpenSearchSnapshotShard - } + /** + * Model tests for OpenSearchSnapshotShard + */ + @Test + public void testOpenSearchSnapshotShard() { + // TODO: test OpenSearchSnapshotShard + } - /** - * Test the property 'total' - */ - @Test - public void totalTest() { - // TODO: test total - } + /** + * Test the property 'total' + */ + @Test + public void totalTest() { + // TODO: test total + } - /** - * Test the property 'failed' - */ - @Test - public void failedTest() { - // TODO: test failed - } + /** + * Test the property 'failed' + */ + @Test + public void failedTest() { + // TODO: test failed + } - /** - * Test the property 'successful' - */ - @Test - public void successfulTest() { - // TODO: test successful - } + /** + * Test the property 'successful' + */ + @Test + public void successfulTest() { + // TODO: test successful + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotTest.java b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotTest.java index e59db9ea9..6e2f5e91a 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,110 +32,110 @@ * Model tests for OpenSearchSnapshot */ public class OpenSearchSnapshotTest { - private final OpenSearchSnapshot model = new OpenSearchSnapshot(); - - /** - * Model tests for OpenSearchSnapshot - */ - @Test - public void testOpenSearchSnapshot() { - // TODO: test OpenSearchSnapshot - } - - /** - * Test the property 'snapshot' - */ - @Test - public void snapshotTest() { - // TODO: test snapshot - } - - /** - * Test the property 'uuid' - */ - @Test - public void uuidTest() { - // TODO: test uuid - } - - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } - - /** - * Test the property 'indices' - */ - @Test - public void indicesTest() { - // TODO: test indices - } - - /** - * Test the property 'shards' - */ - @Test - public void shardsTest() { - // TODO: test shards - } - - /** - * Test the property 'failures' - */ - @Test - public void failuresTest() { - // TODO: test failures - } - - /** - * Test the property 'state' - */ - @Test - public void stateTest() { - // TODO: test state - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'startTimeInMillis' - */ - @Test - public void startTimeInMillisTest() { - // TODO: test startTimeInMillis - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'endTimeInMillis' - */ - @Test - public void endTimeInMillisTest() { - // TODO: test endTimeInMillis - } - - /** - * Test the property 'durationInMillis' - */ - @Test - public void durationInMillisTest() { - // TODO: test durationInMillis - } + private final OpenSearchSnapshot model = new OpenSearchSnapshot(); + + /** + * Model tests for OpenSearchSnapshot + */ + @Test + public void testOpenSearchSnapshot() { + // TODO: test OpenSearchSnapshot + } + + /** + * Test the property 'snapshot' + */ + @Test + public void snapshotTest() { + // TODO: test snapshot + } + + /** + * Test the property 'uuid' + */ + @Test + public void uuidTest() { + // TODO: test uuid + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'indices' + */ + @Test + public void indicesTest() { + // TODO: test indices + } + + /** + * Test the property 'shards' + */ + @Test + public void shardsTest() { + // TODO: test shards + } + + /** + * Test the property 'failures' + */ + @Test + public void failuresTest() { + // TODO: test failures + } + + /** + * Test the property 'state' + */ + @Test + public void stateTest() { + // TODO: test state + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'startTimeInMillis' + */ + @Test + public void startTimeInMillisTest() { + // TODO: test startTimeInMillis + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'endTimeInMillis' + */ + @Test + public void endTimeInMillisTest() { + // TODO: test endTimeInMillis + } + + /** + * Test the property 'durationInMillis' + */ + @Test + public void durationInMillisTest() { + // TODO: test durationInMillis + } } diff --git a/src/test/java/com/formkiq/client/model/PdfDocumentFieldTest.java b/src/test/java/com/formkiq/client/model/PdfDocumentFieldTest.java index 85d8f8334..fa257045f 100644 --- a/src/test/java/com/formkiq/client/model/PdfDocumentFieldTest.java +++ b/src/test/java/com/formkiq/client/model/PdfDocumentFieldTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for PdfDocumentField */ public class PdfDocumentFieldTest { - private final PdfDocumentField model = new PdfDocumentField(); - - /** - * Model tests for PdfDocumentField - */ - @Test - public void testPdfDocumentField() { - // TODO: test PdfDocumentField - } - - /** - * Test the property 'field' - */ - @Test - public void fieldTest() { - // TODO: test field - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + private final PdfDocumentField model = new PdfDocumentField(); + + /** + * Model tests for PdfDocumentField + */ + @Test + public void testPdfDocumentField() { + // TODO: test PdfDocumentField + } + + /** + * Test the property 'field' + */ + @Test + public void fieldTest() { + // TODO: test field + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } } diff --git a/src/test/java/com/formkiq/client/model/PdfDocumentTest.java b/src/test/java/com/formkiq/client/model/PdfDocumentTest.java index b9334c4d5..3e7c7ebf1 100644 --- a/src/test/java/com/formkiq/client/model/PdfDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/PdfDocumentTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for PdfDocument */ public class PdfDocumentTest { - private final PdfDocument model = new PdfDocument(); + private final PdfDocument model = new PdfDocument(); - /** - * Model tests for PdfDocument - */ - @Test - public void testPdfDocument() { - // TODO: test PdfDocument - } + /** + * Model tests for PdfDocument + */ + @Test + public void testPdfDocument() { + // TODO: test PdfDocument + } - /** - * Test the property 'fields' - */ - @Test - public void fieldsTest() { - // TODO: test fields - } + /** + * Test the property 'fields' + */ + @Test + public void fieldsTest() { + // TODO: test fields + } } diff --git a/src/test/java/com/formkiq/client/model/QueryFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/QueryFulltextResponseTest.java index 918d9fa8e..52df8e316 100644 --- a/src/test/java/com/formkiq/client/model/QueryFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/QueryFulltextResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for QueryFulltextResponse */ public class QueryFulltextResponseTest { - private final QueryFulltextResponse model = new QueryFulltextResponse(); + private final QueryFulltextResponse model = new QueryFulltextResponse(); - /** - * Model tests for QueryFulltextResponse - */ - @Test - public void testQueryFulltextResponse() { - // TODO: test QueryFulltextResponse - } + /** + * Model tests for QueryFulltextResponse + */ + @Test + public void testQueryFulltextResponse() { + // TODO: test QueryFulltextResponse + } - /** - * Test the property 'result' - */ - @Test - public void resultTest() { - // TODO: test result - } + /** + * Test the property 'result' + */ + @Test + public void resultTest() { + // TODO: test result + } } diff --git a/src/test/java/com/formkiq/client/model/QueueTest.java b/src/test/java/com/formkiq/client/model/QueueTest.java index 3ee647e7c..bcc87d4cf 100644 --- a/src/test/java/com/formkiq/client/model/QueueTest.java +++ b/src/test/java/com/formkiq/client/model/QueueTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for Queue */ public class QueueTest { - private final Queue model = new Queue(); - - /** - * Model tests for Queue - */ - @Test - public void testQueue() { - // TODO: test Queue - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } + private final Queue model = new Queue(); + + /** + * Model tests for Queue + */ + @Test + public void testQueue() { + // TODO: test Queue + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } } diff --git a/src/test/java/com/formkiq/client/model/ReindexTargetTest.java b/src/test/java/com/formkiq/client/model/ReindexTargetTest.java index 61866d11f..1aee51d70 100644 --- a/src/test/java/com/formkiq/client/model/ReindexTargetTest.java +++ b/src/test/java/com/formkiq/client/model/ReindexTargetTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for ReindexTarget */ public class ReindexTargetTest { - /** - * Model tests for ReindexTarget - */ - @Test - public void testReindexTarget() { - // TODO: test ReindexTarget - } + /** + * Model tests for ReindexTarget + */ + @Test + public void testReindexTarget() { + // TODO: test ReindexTarget + } } diff --git a/src/test/java/com/formkiq/client/model/ResourceItemTest.java b/src/test/java/com/formkiq/client/model/ResourceItemTest.java index dff308b28..b758228a2 100644 --- a/src/test/java/com/formkiq/client/model/ResourceItemTest.java +++ b/src/test/java/com/formkiq/client/model/ResourceItemTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,70 +28,70 @@ * Model tests for ResourceItem */ public class ResourceItemTest { - private final ResourceItem model = new ResourceItem(); + private final ResourceItem model = new ResourceItem(); - /** - * Model tests for ResourceItem - */ - @Test - public void testResourceItem() { - // TODO: test ResourceItem - } + /** + * Model tests for ResourceItem + */ + @Test + public void testResourceItem() { + // TODO: test ResourceItem + } - /** - * Test the property 'itemType' - */ - @Test - public void itemTypeTest() { - // TODO: test itemType - } + /** + * Test the property 'itemType' + */ + @Test + public void itemTypeTest() { + // TODO: test itemType + } - /** - * Test the property 'localizedValue' - */ - @Test - public void localizedValueTest() { - // TODO: test localizedValue - } + /** + * Test the property 'localizedValue' + */ + @Test + public void localizedValueTest() { + // TODO: test localizedValue + } - /** - * Test the property 'interfaceKey' - */ - @Test - public void interfaceKeyTest() { - // TODO: test interfaceKey - } + /** + * Test the property 'interfaceKey' + */ + @Test + public void interfaceKeyTest() { + // TODO: test interfaceKey + } - /** - * Test the property 'itemKey' - */ - @Test - public void itemKeyTest() { - // TODO: test itemKey - } + /** + * Test the property 'itemKey' + */ + @Test + public void itemKeyTest() { + // TODO: test itemKey + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValue' - */ - @Test - public void allowedValueTest() { - // TODO: test allowedValue - } + /** + * Test the property 'allowedValue' + */ + @Test + public void allowedValueTest() { + // TODO: test allowedValue + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } } diff --git a/src/test/java/com/formkiq/client/model/RuleConditionAttributeTest.java b/src/test/java/com/formkiq/client/model/RuleConditionAttributeTest.java index 190faf9c1..79d2ab9d0 100644 --- a/src/test/java/com/formkiq/client/model/RuleConditionAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/RuleConditionAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for RuleConditionAttribute */ public class RuleConditionAttributeTest { - /** - * Model tests for RuleConditionAttribute - */ - @Test - public void testRuleConditionAttribute() { - // TODO: test RuleConditionAttribute - } + /** + * Model tests for RuleConditionAttribute + */ + @Test + public void testRuleConditionAttribute() { + // TODO: test RuleConditionAttribute + } } diff --git a/src/test/java/com/formkiq/client/model/RuleConditionCriterionTest.java b/src/test/java/com/formkiq/client/model/RuleConditionCriterionTest.java index d719a44ad..798a0f128 100644 --- a/src/test/java/com/formkiq/client/model/RuleConditionCriterionTest.java +++ b/src/test/java/com/formkiq/client/model/RuleConditionCriterionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for RuleConditionCriterion */ public class RuleConditionCriterionTest { - /** - * Model tests for RuleConditionCriterion - */ - @Test - public void testRuleConditionCriterion() { - // TODO: test RuleConditionCriterion - } + /** + * Model tests for RuleConditionCriterion + */ + @Test + public void testRuleConditionCriterion() { + // TODO: test RuleConditionCriterion + } } diff --git a/src/test/java/com/formkiq/client/model/RuleConditionMustTest.java b/src/test/java/com/formkiq/client/model/RuleConditionMustTest.java index f7e50e3e1..8040f0a6e 100644 --- a/src/test/java/com/formkiq/client/model/RuleConditionMustTest.java +++ b/src/test/java/com/formkiq/client/model/RuleConditionMustTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,62 +30,62 @@ * Model tests for RuleConditionMust */ public class RuleConditionMustTest { - private final RuleConditionMust model = new RuleConditionMust(); + private final RuleConditionMust model = new RuleConditionMust(); - /** - * Model tests for RuleConditionMust - */ - @Test - public void testRuleConditionMust() { - // TODO: test RuleConditionMust - } + /** + * Model tests for RuleConditionMust + */ + @Test + public void testRuleConditionMust() { + // TODO: test RuleConditionMust + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } - /** - * Test the property 'criterion' - */ - @Test - public void criterionTest() { - // TODO: test criterion - } + /** + * Test the property 'criterion' + */ + @Test + public void criterionTest() { + // TODO: test criterion + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'fieldName' - */ - @Test - public void fieldNameTest() { - // TODO: test fieldName - } + /** + * Test the property 'fieldName' + */ + @Test + public void fieldNameTest() { + // TODO: test fieldName + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'operation' - */ - @Test - public void operationTest() { - // TODO: test operation - } + /** + * Test the property 'operation' + */ + @Test + public void operationTest() { + // TODO: test operation + } } diff --git a/src/test/java/com/formkiq/client/model/RuleConditionOperationTest.java b/src/test/java/com/formkiq/client/model/RuleConditionOperationTest.java index 4040c7a3f..01835aaee 100644 --- a/src/test/java/com/formkiq/client/model/RuleConditionOperationTest.java +++ b/src/test/java/com/formkiq/client/model/RuleConditionOperationTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for RuleConditionOperation */ public class RuleConditionOperationTest { - /** - * Model tests for RuleConditionOperation - */ - @Test - public void testRuleConditionOperation() { - // TODO: test RuleConditionOperation - } + /** + * Model tests for RuleConditionOperation + */ + @Test + public void testRuleConditionOperation() { + // TODO: test RuleConditionOperation + } } diff --git a/src/test/java/com/formkiq/client/model/RuleConditionTest.java b/src/test/java/com/formkiq/client/model/RuleConditionTest.java index d02c7d601..57b15969f 100644 --- a/src/test/java/com/formkiq/client/model/RuleConditionTest.java +++ b/src/test/java/com/formkiq/client/model/RuleConditionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for RuleCondition */ public class RuleConditionTest { - private final RuleCondition model = new RuleCondition(); + private final RuleCondition model = new RuleCondition(); - /** - * Model tests for RuleCondition - */ - @Test - public void testRuleCondition() { - // TODO: test RuleCondition - } + /** + * Model tests for RuleCondition + */ + @Test + public void testRuleCondition() { + // TODO: test RuleCondition + } - /** - * Test the property 'must' - */ - @Test - public void mustTest() { - // TODO: test must - } + /** + * Test the property 'must' + */ + @Test + public void mustTest() { + // TODO: test must + } } diff --git a/src/test/java/com/formkiq/client/model/RuleTest.java b/src/test/java/com/formkiq/client/model/RuleTest.java index 271f97c7e..584359a37 100644 --- a/src/test/java/com/formkiq/client/model/RuleTest.java +++ b/src/test/java/com/formkiq/client/model/RuleTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,62 +30,62 @@ * Model tests for Rule */ public class RuleTest { - private final Rule model = new Rule(); + private final Rule model = new Rule(); - /** - * Model tests for Rule - */ - @Test - public void testRule() { - // TODO: test Rule - } + /** + * Model tests for Rule + */ + @Test + public void testRule() { + // TODO: test Rule + } - /** - * Test the property 'ruleId' - */ - @Test - public void ruleIdTest() { - // TODO: test ruleId - } + /** + * Test the property 'ruleId' + */ + @Test + public void ruleIdTest() { + // TODO: test ruleId + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'conditions' - */ - @Test - public void conditionsTest() { - // TODO: test conditions - } + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } } diff --git a/src/test/java/com/formkiq/client/model/RulesetStatusTest.java b/src/test/java/com/formkiq/client/model/RulesetStatusTest.java index 4cd22eff1..13c32137f 100644 --- a/src/test/java/com/formkiq/client/model/RulesetStatusTest.java +++ b/src/test/java/com/formkiq/client/model/RulesetStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for RulesetStatus */ public class RulesetStatusTest { - /** - * Model tests for RulesetStatus - */ - @Test - public void testRulesetStatus() { - // TODO: test RulesetStatus - } + /** + * Model tests for RulesetStatus + */ + @Test + public void testRulesetStatus() { + // TODO: test RulesetStatus + } } diff --git a/src/test/java/com/formkiq/client/model/RulesetTest.java b/src/test/java/com/formkiq/client/model/RulesetTest.java index 5bb043f7e..d7bbba8c1 100644 --- a/src/test/java/com/formkiq/client/model/RulesetTest.java +++ b/src/test/java/com/formkiq/client/model/RulesetTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,62 +29,62 @@ * Model tests for Ruleset */ public class RulesetTest { - private final Ruleset model = new Ruleset(); + private final Ruleset model = new Ruleset(); - /** - * Model tests for Ruleset - */ - @Test - public void testRuleset() { - // TODO: test Ruleset - } + /** + * Model tests for Ruleset + */ + @Test + public void testRuleset() { + // TODO: test Ruleset + } - /** - * Test the property 'rulesetId' - */ - @Test - public void rulesetIdTest() { - // TODO: test rulesetId - } + /** + * Test the property 'rulesetId' + */ + @Test + public void rulesetIdTest() { + // TODO: test rulesetId + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/SchemaAttributesTest.java b/src/test/java/com/formkiq/client/model/SchemaAttributesTest.java index 55010bb57..a433aa2b2 100644 --- a/src/test/java/com/formkiq/client/model/SchemaAttributesTest.java +++ b/src/test/java/com/formkiq/client/model/SchemaAttributesTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,46 +32,46 @@ * Model tests for SchemaAttributes */ public class SchemaAttributesTest { - private final SchemaAttributes model = new SchemaAttributes(); + private final SchemaAttributes model = new SchemaAttributes(); - /** - * Model tests for SchemaAttributes - */ - @Test - public void testSchemaAttributes() { - // TODO: test SchemaAttributes - } + /** + * Model tests for SchemaAttributes + */ + @Test + public void testSchemaAttributes() { + // TODO: test SchemaAttributes + } - /** - * Test the property 'compositeKeys' - */ - @Test - public void compositeKeysTest() { - // TODO: test compositeKeys - } + /** + * Test the property 'compositeKeys' + */ + @Test + public void compositeKeysTest() { + // TODO: test compositeKeys + } - /** - * Test the property 'required' - */ - @Test - public void requiredTest() { - // TODO: test required - } + /** + * Test the property 'required' + */ + @Test + public void requiredTest() { + // TODO: test required + } - /** - * Test the property 'optional' - */ - @Test - public void optionalTest() { - // TODO: test optional - } + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } - /** - * Test the property 'allowAdditionalAttributes' - */ - @Test - public void allowAdditionalAttributesTest() { - // TODO: test allowAdditionalAttributes - } + /** + * Test the property 'allowAdditionalAttributes' + */ + @Test + public void allowAdditionalAttributesTest() { + // TODO: test allowAdditionalAttributes + } } diff --git a/src/test/java/com/formkiq/client/model/SearchRangeDataTypeTest.java b/src/test/java/com/formkiq/client/model/SearchRangeDataTypeTest.java index 006789a80..28951d56a 100644 --- a/src/test/java/com/formkiq/client/model/SearchRangeDataTypeTest.java +++ b/src/test/java/com/formkiq/client/model/SearchRangeDataTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for SearchRangeDataType */ public class SearchRangeDataTypeTest { - /** - * Model tests for SearchRangeDataType - */ - @Test - public void testSearchRangeDataType() { - // TODO: test SearchRangeDataType - } + /** + * Model tests for SearchRangeDataType + */ + @Test + public void testSearchRangeDataType() { + // TODO: test SearchRangeDataType + } } diff --git a/src/test/java/com/formkiq/client/model/SearchResponseFieldsTest.java b/src/test/java/com/formkiq/client/model/SearchResponseFieldsTest.java index bbec81d8b..f70152cca 100644 --- a/src/test/java/com/formkiq/client/model/SearchResponseFieldsTest.java +++ b/src/test/java/com/formkiq/client/model/SearchResponseFieldsTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for SearchResponseFields */ public class SearchResponseFieldsTest { - private final SearchResponseFields model = new SearchResponseFields(); - - /** - * Model tests for SearchResponseFields - */ - @Test - public void testSearchResponseFields() { - // TODO: test SearchResponseFields - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + private final SearchResponseFields model = new SearchResponseFields(); + + /** + * Model tests for SearchResponseFields + */ + @Test + public void testSearchResponseFields() { + // TODO: test SearchResponseFields + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/SearchResultDocumentAttributeTest.java b/src/test/java/com/formkiq/client/model/SearchResultDocumentAttributeTest.java index ca1efcfa5..dbc8b3965 100644 --- a/src/test/java/com/formkiq/client/model/SearchResultDocumentAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/SearchResultDocumentAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,46 +31,46 @@ * Model tests for SearchResultDocumentAttribute */ public class SearchResultDocumentAttributeTest { - private final SearchResultDocumentAttribute model = new SearchResultDocumentAttribute(); + private final SearchResultDocumentAttribute model = new SearchResultDocumentAttribute(); - /** - * Model tests for SearchResultDocumentAttribute - */ - @Test - public void testSearchResultDocumentAttribute() { - // TODO: test SearchResultDocumentAttribute - } + /** + * Model tests for SearchResultDocumentAttribute + */ + @Test + public void testSearchResultDocumentAttribute() { + // TODO: test SearchResultDocumentAttribute + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } - /** - * Test the property 'valueType' - */ - @Test - public void valueTypeTest() { - // TODO: test valueType - } + /** + * Test the property 'valueType' + */ + @Test + public void valueTypeTest() { + // TODO: test valueType + } } diff --git a/src/test/java/com/formkiq/client/model/SearchResultDocumentTest.java b/src/test/java/com/formkiq/client/model/SearchResultDocumentTest.java index e8996910d..a3891c63b 100644 --- a/src/test/java/com/formkiq/client/model/SearchResultDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/SearchResultDocumentTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -43,198 +36,198 @@ * Model tests for SearchResultDocument */ public class SearchResultDocumentTest { - private final SearchResultDocument model = new SearchResultDocument(); - - /** - * Model tests for SearchResultDocument - */ - @Test - public void testSearchResultDocument() { - // TODO: test SearchResultDocument - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'folder' - */ - @Test - public void folderTest() { - // TODO: test folder - } - - /** - * Test the property 'indexKey' - */ - @Test - public void indexKeyTest() { - // TODO: test indexKey - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'versionId' - */ - @Test - public void versionIdTest() { - // TODO: test versionId - } - - /** - * Test the property 'belongsToDocumentId' - */ - @Test - public void belongsToDocumentIdTest() { - // TODO: test belongsToDocumentId - } - - /** - * Test the property 'matchedAttribute' - */ - @Test - public void matchedAttributeTest() { - // TODO: test matchedAttribute - } - - /** - * Test the property 'matchedTag' - */ - @Test - public void matchedTagTest() { - // TODO: test matchedTag - } - - /** - * Test the property 'matchedTags' - */ - @Test - public void matchedTagsTest() { - // TODO: test matchedTags - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final SearchResultDocument model = new SearchResultDocument(); + + /** + * Model tests for SearchResultDocument + */ + @Test + public void testSearchResultDocument() { + // TODO: test SearchResultDocument + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'folder' + */ + @Test + public void folderTest() { + // TODO: test folder + } + + /** + * Test the property 'indexKey' + */ + @Test + public void indexKeyTest() { + // TODO: test indexKey + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'versionId' + */ + @Test + public void versionIdTest() { + // TODO: test versionId + } + + /** + * Test the property 'belongsToDocumentId' + */ + @Test + public void belongsToDocumentIdTest() { + // TODO: test belongsToDocumentId + } + + /** + * Test the property 'matchedAttribute' + */ + @Test + public void matchedAttributeTest() { + // TODO: test matchedAttribute + } + + /** + * Test the property 'matchedTag' + */ + @Test + public void matchedTagTest() { + // TODO: test matchedTag + } + + /** + * Test the property 'matchedTags' + */ + @Test + public void matchedTagsTest() { + // TODO: test matchedTags + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/SetClassificationRequestTest.java b/src/test/java/com/formkiq/client/model/SetClassificationRequestTest.java index b5ba8abc2..418f9d560 100644 --- a/src/test/java/com/formkiq/client/model/SetClassificationRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetClassificationRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for SetClassificationRequest */ public class SetClassificationRequestTest { - private final SetClassificationRequest model = new SetClassificationRequest(); + private final SetClassificationRequest model = new SetClassificationRequest(); - /** - * Model tests for SetClassificationRequest - */ - @Test - public void testSetClassificationRequest() { - // TODO: test SetClassificationRequest - } + /** + * Model tests for SetClassificationRequest + */ + @Test + public void testSetClassificationRequest() { + // TODO: test SetClassificationRequest + } - /** - * Test the property 'classification' - */ - @Test - public void classificationTest() { - // TODO: test classification - } + /** + * Test the property 'classification' + */ + @Test + public void classificationTest() { + // TODO: test classification + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentAttributeRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentAttributeRequestTest.java index 772a59991..70fb016ad 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentAttributeRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentAttributeRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for SetDocumentAttributeRequest */ public class SetDocumentAttributeRequestTest { - private final SetDocumentAttributeRequest model = new SetDocumentAttributeRequest(); + private final SetDocumentAttributeRequest model = new SetDocumentAttributeRequest(); - /** - * Model tests for SetDocumentAttributeRequest - */ - @Test - public void testSetDocumentAttributeRequest() { - // TODO: test SetDocumentAttributeRequest - } + /** + * Model tests for SetDocumentAttributeRequest + */ + @Test + public void testSetDocumentAttributeRequest() { + // TODO: test SetDocumentAttributeRequest + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentAttributesRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentAttributesRequestTest.java index 6220b9d31..489ffba24 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentAttributesRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentAttributesRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for SetDocumentAttributesRequest */ public class SetDocumentAttributesRequestTest { - private final SetDocumentAttributesRequest model = new SetDocumentAttributesRequest(); + private final SetDocumentAttributesRequest model = new SetDocumentAttributesRequest(); - /** - * Model tests for SetDocumentAttributesRequest - */ - @Test - public void testSetDocumentAttributesRequest() { - // TODO: test SetDocumentAttributesRequest - } + /** + * Model tests for SetDocumentAttributesRequest + */ + @Test + public void testSetDocumentAttributesRequest() { + // TODO: test SetDocumentAttributesRequest + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationRequestTest.java index 58c1f19f6..f34bfd753 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,23 +27,22 @@ * Model tests for SetDocumentDataClassificationRequest */ public class SetDocumentDataClassificationRequestTest { - private final SetDocumentDataClassificationRequest model = - new SetDocumentDataClassificationRequest(); + private final SetDocumentDataClassificationRequest model = new SetDocumentDataClassificationRequest(); - /** - * Model tests for SetDocumentDataClassificationRequest - */ - @Test - public void testSetDocumentDataClassificationRequest() { - // TODO: test SetDocumentDataClassificationRequest - } + /** + * Model tests for SetDocumentDataClassificationRequest + */ + @Test + public void testSetDocumentDataClassificationRequest() { + // TODO: test SetDocumentDataClassificationRequest + } - /** - * Test the property 'llmPromptEntityName' - */ - @Test - public void llmPromptEntityNameTest() { - // TODO: test llmPromptEntityName - } + /** + * Test the property 'llmPromptEntityName' + */ + @Test + public void llmPromptEntityNameTest() { + // TODO: test llmPromptEntityName + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationResponseTest.java b/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationResponseTest.java index d2e0b8818..781ef170b 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,31 +30,30 @@ * Model tests for SetDocumentDataClassificationResponse */ public class SetDocumentDataClassificationResponseTest { - private final SetDocumentDataClassificationResponse model = - new SetDocumentDataClassificationResponse(); - - /** - * Model tests for SetDocumentDataClassificationResponse - */ - @Test - public void testSetDocumentDataClassificationResponse() { - // TODO: test SetDocumentDataClassificationResponse - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final SetDocumentDataClassificationResponse model = new SetDocumentDataClassificationResponse(); + + /** + * Model tests for SetDocumentDataClassificationResponse + */ + @Test + public void testSetDocumentDataClassificationResponse() { + // TODO: test SetDocumentDataClassificationResponse + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentFulltextRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentFulltextRequestTest.java index 213e125b2..0c63904d9 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentFulltextRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentFulltextRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -42,110 +35,110 @@ * Model tests for SetDocumentFulltextRequest */ public class SetDocumentFulltextRequestTest { - private final SetDocumentFulltextRequest model = new SetDocumentFulltextRequest(); - - /** - * Model tests for SetDocumentFulltextRequest - */ - @Test - public void testSetDocumentFulltextRequest() { - // TODO: test SetDocumentFulltextRequest - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'contentUrls' - */ - @Test - public void contentUrlsTest() { - // TODO: test contentUrls - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final SetDocumentFulltextRequest model = new SetDocumentFulltextRequest(); + + /** + * Model tests for SetDocumentFulltextRequest + */ + @Test + public void testSetDocumentFulltextRequest() { + // TODO: test SetDocumentFulltextRequest + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'contentUrls' + */ + @Test + public void contentUrlsTest() { + // TODO: test contentUrls + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/SetDocumentFulltextResponseTest.java index 586921577..154f7b8cc 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentFulltextResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for SetDocumentFulltextResponse */ public class SetDocumentFulltextResponseTest { - private final SetDocumentFulltextResponse model = new SetDocumentFulltextResponse(); + private final SetDocumentFulltextResponse model = new SetDocumentFulltextResponse(); - /** - * Model tests for SetDocumentFulltextResponse - */ - @Test - public void testSetDocumentFulltextResponse() { - // TODO: test SetDocumentFulltextResponse - } + /** + * Model tests for SetDocumentFulltextResponse + */ + @Test + public void testSetDocumentFulltextResponse() { + // TODO: test SetDocumentFulltextResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentOcrRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentOcrRequestTest.java index 78d30a345..5d5db74cc 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentOcrRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentOcrRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,38 +27,38 @@ * Model tests for SetDocumentOcrRequest */ public class SetDocumentOcrRequestTest { - private final SetDocumentOcrRequest model = new SetDocumentOcrRequest(); + private final SetDocumentOcrRequest model = new SetDocumentOcrRequest(); - /** - * Model tests for SetDocumentOcrRequest - */ - @Test - public void testSetDocumentOcrRequest() { - // TODO: test SetDocumentOcrRequest - } + /** + * Model tests for SetDocumentOcrRequest + */ + @Test + public void testSetDocumentOcrRequest() { + // TODO: test SetDocumentOcrRequest + } - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentRestoreResponseTest.java b/src/test/java/com/formkiq/client/model/SetDocumentRestoreResponseTest.java index 3a1721938..2c6808b29 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentRestoreResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentRestoreResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for SetDocumentRestoreResponse */ public class SetDocumentRestoreResponseTest { - private final SetDocumentRestoreResponse model = new SetDocumentRestoreResponse(); + private final SetDocumentRestoreResponse model = new SetDocumentRestoreResponse(); - /** - * Model tests for SetDocumentRestoreResponse - */ - @Test - public void testSetDocumentRestoreResponse() { - // TODO: test SetDocumentRestoreResponse - } + /** + * Model tests for SetDocumentRestoreResponse + */ + @Test + public void testSetDocumentRestoreResponse() { + // TODO: test SetDocumentRestoreResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentTagKeyRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentTagKeyRequestTest.java index 86952f0b6..52ba37bf5 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentTagKeyRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentTagKeyRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for SetDocumentTagKeyRequest */ public class SetDocumentTagKeyRequestTest { - private final SetDocumentTagKeyRequest model = new SetDocumentTagKeyRequest(); - - /** - * Model tests for SetDocumentTagKeyRequest - */ - @Test - public void testSetDocumentTagKeyRequest() { - // TODO: test SetDocumentTagKeyRequest - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } - - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + private final SetDocumentTagKeyRequest model = new SetDocumentTagKeyRequest(); + + /** + * Model tests for SetDocumentTagKeyRequest + */ + @Test + public void testSetDocumentTagKeyRequest() { + // TODO: test SetDocumentTagKeyRequest + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentVersionRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentVersionRequestTest.java index 9561f8f22..3ba2a48cf 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentVersionRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentVersionRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for SetDocumentVersionRequest */ public class SetDocumentVersionRequestTest { - private final SetDocumentVersionRequest model = new SetDocumentVersionRequest(); + private final SetDocumentVersionRequest model = new SetDocumentVersionRequest(); - /** - * Model tests for SetDocumentVersionRequest - */ - @Test - public void testSetDocumentVersionRequest() { - // TODO: test SetDocumentVersionRequest - } + /** + * Model tests for SetDocumentVersionRequest + */ + @Test + public void testSetDocumentVersionRequest() { + // TODO: test SetDocumentVersionRequest + } - /** - * Test the property 'versionKey' - */ - @Test - public void versionKeyTest() { - // TODO: test versionKey - } + /** + * Test the property 'versionKey' + */ + @Test + public void versionKeyTest() { + // TODO: test versionKey + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentVersionResponseTest.java b/src/test/java/com/formkiq/client/model/SetDocumentVersionResponseTest.java index f56b7f06c..f95b6823f 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentVersionResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentVersionResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for SetDocumentVersionResponse */ public class SetDocumentVersionResponseTest { - private final SetDocumentVersionResponse model = new SetDocumentVersionResponse(); + private final SetDocumentVersionResponse model = new SetDocumentVersionResponse(); - /** - * Model tests for SetDocumentVersionResponse - */ - @Test - public void testSetDocumentVersionResponse() { - // TODO: test SetDocumentVersionResponse - } + /** + * Model tests for SetDocumentVersionResponse + */ + @Test + public void testSetDocumentVersionResponse() { + // TODO: test SetDocumentVersionResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SetFolderPermissionsRequestTest.java b/src/test/java/com/formkiq/client/model/SetFolderPermissionsRequestTest.java index 029bfc604..1849942e1 100644 --- a/src/test/java/com/formkiq/client/model/SetFolderPermissionsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetFolderPermissionsRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,30 +30,30 @@ * Model tests for SetFolderPermissionsRequest */ public class SetFolderPermissionsRequestTest { - private final SetFolderPermissionsRequest model = new SetFolderPermissionsRequest(); - - /** - * Model tests for SetFolderPermissionsRequest - */ - @Test - public void testSetFolderPermissionsRequest() { - // TODO: test SetFolderPermissionsRequest - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'roles' - */ - @Test - public void rolesTest() { - // TODO: test roles - } + private final SetFolderPermissionsRequest model = new SetFolderPermissionsRequest(); + + /** + * Model tests for SetFolderPermissionsRequest + */ + @Test + public void testSetFolderPermissionsRequest() { + // TODO: test SetFolderPermissionsRequest + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'roles' + */ + @Test + public void rolesTest() { + // TODO: test roles + } } diff --git a/src/test/java/com/formkiq/client/model/SetGroupPermissionsRequestTest.java b/src/test/java/com/formkiq/client/model/SetGroupPermissionsRequestTest.java index c7c0861d3..8b1e66e62 100644 --- a/src/test/java/com/formkiq/client/model/SetGroupPermissionsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetGroupPermissionsRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for SetGroupPermissionsRequest */ public class SetGroupPermissionsRequestTest { - private final SetGroupPermissionsRequest model = new SetGroupPermissionsRequest(); + private final SetGroupPermissionsRequest model = new SetGroupPermissionsRequest(); - /** - * Model tests for SetGroupPermissionsRequest - */ - @Test - public void testSetGroupPermissionsRequest() { - // TODO: test SetGroupPermissionsRequest - } + /** + * Model tests for SetGroupPermissionsRequest + */ + @Test + public void testSetGroupPermissionsRequest() { + // TODO: test SetGroupPermissionsRequest + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/SetLocaleResourceItemRequestTest.java b/src/test/java/com/formkiq/client/model/SetLocaleResourceItemRequestTest.java index 4931a5b74..a0e0c4d16 100644 --- a/src/test/java/com/formkiq/client/model/SetLocaleResourceItemRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetLocaleResourceItemRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for SetLocaleResourceItemRequest */ public class SetLocaleResourceItemRequestTest { - private final SetLocaleResourceItemRequest model = new SetLocaleResourceItemRequest(); + private final SetLocaleResourceItemRequest model = new SetLocaleResourceItemRequest(); - /** - * Model tests for SetLocaleResourceItemRequest - */ - @Test - public void testSetLocaleResourceItemRequest() { - // TODO: test SetLocaleResourceItemRequest - } + /** + * Model tests for SetLocaleResourceItemRequest + */ + @Test + public void testSetLocaleResourceItemRequest() { + // TODO: test SetLocaleResourceItemRequest + } - /** - * Test the property 'resourceItem' - */ - @Test - public void resourceItemTest() { - // TODO: test resourceItem - } + /** + * Test the property 'resourceItem' + */ + @Test + public void resourceItemTest() { + // TODO: test resourceItem + } } diff --git a/src/test/java/com/formkiq/client/model/SetMappingRequestTest.java b/src/test/java/com/formkiq/client/model/SetMappingRequestTest.java index b4c13188f..6f9e313bb 100644 --- a/src/test/java/com/formkiq/client/model/SetMappingRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetMappingRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for SetMappingRequest */ public class SetMappingRequestTest { - private final SetMappingRequest model = new SetMappingRequest(); + private final SetMappingRequest model = new SetMappingRequest(); - /** - * Model tests for SetMappingRequest - */ - @Test - public void testSetMappingRequest() { - // TODO: test SetMappingRequest - } + /** + * Model tests for SetMappingRequest + */ + @Test + public void testSetMappingRequest() { + // TODO: test SetMappingRequest + } - /** - * Test the property 'mapping' - */ - @Test - public void mappingTest() { - // TODO: test mapping - } + /** + * Test the property 'mapping' + */ + @Test + public void mappingTest() { + // TODO: test mapping + } } diff --git a/src/test/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequestTest.java b/src/test/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequestTest.java index 313c7cb2d..a5c24919e 100644 --- a/src/test/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for SetOpaAccessPolicyItemsRequest */ public class SetOpaAccessPolicyItemsRequestTest { - private final SetOpaAccessPolicyItemsRequest model = new SetOpaAccessPolicyItemsRequest(); + private final SetOpaAccessPolicyItemsRequest model = new SetOpaAccessPolicyItemsRequest(); - /** - * Model tests for SetOpaAccessPolicyItemsRequest - */ - @Test - public void testSetOpaAccessPolicyItemsRequest() { - // TODO: test SetOpaAccessPolicyItemsRequest - } + /** + * Model tests for SetOpaAccessPolicyItemsRequest + */ + @Test + public void testSetOpaAccessPolicyItemsRequest() { + // TODO: test SetOpaAccessPolicyItemsRequest + } - /** - * Test the property 'policyItems' - */ - @Test - public void policyItemsTest() { - // TODO: test policyItems - } + /** + * Test the property 'policyItems' + */ + @Test + public void policyItemsTest() { + // TODO: test policyItems + } } diff --git a/src/test/java/com/formkiq/client/model/SetOpenSearchIndexRequestTest.java b/src/test/java/com/formkiq/client/model/SetOpenSearchIndexRequestTest.java index 0f656445a..d43893df2 100644 --- a/src/test/java/com/formkiq/client/model/SetOpenSearchIndexRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetOpenSearchIndexRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for SetOpenSearchIndexRequest */ public class SetOpenSearchIndexRequestTest { - private final SetOpenSearchIndexRequest model = new SetOpenSearchIndexRequest(); + private final SetOpenSearchIndexRequest model = new SetOpenSearchIndexRequest(); - /** - * Model tests for SetOpenSearchIndexRequest - */ - @Test - public void testSetOpenSearchIndexRequest() { - // TODO: test SetOpenSearchIndexRequest - } + /** + * Model tests for SetOpenSearchIndexRequest + */ + @Test + public void testSetOpenSearchIndexRequest() { + // TODO: test SetOpenSearchIndexRequest + } - /** - * Test the property 'indexSettings' - */ - @Test - public void indexSettingsTest() { - // TODO: test indexSettings - } + /** + * Test the property 'indexSettings' + */ + @Test + public void indexSettingsTest() { + // TODO: test indexSettings + } } diff --git a/src/test/java/com/formkiq/client/model/SetOpenSearchIndexResponseTest.java b/src/test/java/com/formkiq/client/model/SetOpenSearchIndexResponseTest.java index 2945f5a8b..4f3c5b964 100644 --- a/src/test/java/com/formkiq/client/model/SetOpenSearchIndexResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetOpenSearchIndexResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for SetOpenSearchIndexResponse */ public class SetOpenSearchIndexResponseTest { - private final SetOpenSearchIndexResponse model = new SetOpenSearchIndexResponse(); + private final SetOpenSearchIndexResponse model = new SetOpenSearchIndexResponse(); - /** - * Model tests for SetOpenSearchIndexResponse - */ - @Test - public void testSetOpenSearchIndexResponse() { - // TODO: test SetOpenSearchIndexResponse - } + /** + * Model tests for SetOpenSearchIndexResponse + */ + @Test + public void testSetOpenSearchIndexResponse() { + // TODO: test SetOpenSearchIndexResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SetOpenSearchIndiceRequestTest.java b/src/test/java/com/formkiq/client/model/SetOpenSearchIndiceRequestTest.java index 2dc773ce8..213256faa 100644 --- a/src/test/java/com/formkiq/client/model/SetOpenSearchIndiceRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetOpenSearchIndiceRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for SetOpenSearchIndiceRequest */ public class SetOpenSearchIndiceRequestTest { - private final SetOpenSearchIndiceRequest model = new SetOpenSearchIndiceRequest(); + private final SetOpenSearchIndiceRequest model = new SetOpenSearchIndiceRequest(); - /** - * Model tests for SetOpenSearchIndiceRequest - */ - @Test - public void testSetOpenSearchIndiceRequest() { - // TODO: test SetOpenSearchIndiceRequest - } + /** + * Model tests for SetOpenSearchIndiceRequest + */ + @Test + public void testSetOpenSearchIndiceRequest() { + // TODO: test SetOpenSearchIndiceRequest + } - /** - * Test the property 'indexName' - */ - @Test - public void indexNameTest() { - // TODO: test indexName - } + /** + * Test the property 'indexName' + */ + @Test + public void indexNameTest() { + // TODO: test indexName + } } diff --git a/src/test/java/com/formkiq/client/model/SetResponseTest.java b/src/test/java/com/formkiq/client/model/SetResponseTest.java index 7c01c2bab..44886385a 100644 --- a/src/test/java/com/formkiq/client/model/SetResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for SetResponse */ public class SetResponseTest { - private final SetResponse model = new SetResponse(); + private final SetResponse model = new SetResponse(); - /** - * Model tests for SetResponse - */ - @Test - public void testSetResponse() { - // TODO: test SetResponse - } + /** + * Model tests for SetResponse + */ + @Test + public void testSetResponse() { + // TODO: test SetResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SetSchemaAttributesTest.java b/src/test/java/com/formkiq/client/model/SetSchemaAttributesTest.java index 3d454c79b..d1430db77 100644 --- a/src/test/java/com/formkiq/client/model/SetSchemaAttributesTest.java +++ b/src/test/java/com/formkiq/client/model/SetSchemaAttributesTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,46 +32,46 @@ * Model tests for SetSchemaAttributes */ public class SetSchemaAttributesTest { - private final SetSchemaAttributes model = new SetSchemaAttributes(); + private final SetSchemaAttributes model = new SetSchemaAttributes(); - /** - * Model tests for SetSchemaAttributes - */ - @Test - public void testSetSchemaAttributes() { - // TODO: test SetSchemaAttributes - } + /** + * Model tests for SetSchemaAttributes + */ + @Test + public void testSetSchemaAttributes() { + // TODO: test SetSchemaAttributes + } - /** - * Test the property 'compositeKeys' - */ - @Test - public void compositeKeysTest() { - // TODO: test compositeKeys - } + /** + * Test the property 'compositeKeys' + */ + @Test + public void compositeKeysTest() { + // TODO: test compositeKeys + } - /** - * Test the property 'required' - */ - @Test - public void requiredTest() { - // TODO: test required - } + /** + * Test the property 'required' + */ + @Test + public void requiredTest() { + // TODO: test required + } - /** - * Test the property 'optional' - */ - @Test - public void optionalTest() { - // TODO: test optional - } + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } - /** - * Test the property 'allowAdditionalAttributes' - */ - @Test - public void allowAdditionalAttributesTest() { - // TODO: test allowAdditionalAttributes - } + /** + * Test the property 'allowAdditionalAttributes' + */ + @Test + public void allowAdditionalAttributesTest() { + // TODO: test allowAdditionalAttributes + } } diff --git a/src/test/java/com/formkiq/client/model/SetSitesSchemaRequestTest.java b/src/test/java/com/formkiq/client/model/SetSitesSchemaRequestTest.java index eb76cc51a..b57897b93 100644 --- a/src/test/java/com/formkiq/client/model/SetSitesSchemaRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetSitesSchemaRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for SetSitesSchemaRequest */ public class SetSitesSchemaRequestTest { - private final SetSitesSchemaRequest model = new SetSitesSchemaRequest(); - - /** - * Model tests for SetSitesSchemaRequest - */ - @Test - public void testSetSitesSchemaRequest() { - // TODO: test SetSitesSchemaRequest - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final SetSitesSchemaRequest model = new SetSitesSchemaRequest(); + + /** + * Model tests for SetSitesSchemaRequest + */ + @Test + public void testSetSitesSchemaRequest() { + // TODO: test SetSitesSchemaRequest + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/SetWorkflowRequestTest.java b/src/test/java/com/formkiq/client/model/SetWorkflowRequestTest.java index eaf0585be..4ee2a5e74 100644 --- a/src/test/java/com/formkiq/client/model/SetWorkflowRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetWorkflowRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,46 +31,46 @@ * Model tests for SetWorkflowRequest */ public class SetWorkflowRequestTest { - private final SetWorkflowRequest model = new SetWorkflowRequest(); + private final SetWorkflowRequest model = new SetWorkflowRequest(); - /** - * Model tests for SetWorkflowRequest - */ - @Test - public void testSetWorkflowRequest() { - // TODO: test SetWorkflowRequest - } + /** + * Model tests for SetWorkflowRequest + */ + @Test + public void testSetWorkflowRequest() { + // TODO: test SetWorkflowRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'steps' - */ - @Test - public void stepsTest() { - // TODO: test steps - } + /** + * Test the property 'steps' + */ + @Test + public void stepsTest() { + // TODO: test steps + } } diff --git a/src/test/java/com/formkiq/client/model/SetWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/SetWorkflowResponseTest.java index 6706fa8d6..af3321588 100644 --- a/src/test/java/com/formkiq/client/model/SetWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetWorkflowResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for SetWorkflowResponse */ public class SetWorkflowResponseTest { - private final SetWorkflowResponse model = new SetWorkflowResponse(); + private final SetWorkflowResponse model = new SetWorkflowResponse(); - /** - * Model tests for SetWorkflowResponse - */ - @Test - public void testSetWorkflowResponse() { - // TODO: test SetWorkflowResponse - } + /** + * Model tests for SetWorkflowResponse + */ + @Test + public void testSetWorkflowResponse() { + // TODO: test SetWorkflowResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SiteConfigTest.java b/src/test/java/com/formkiq/client/model/SiteConfigTest.java index fe6f80e5a..48c12f7f8 100644 --- a/src/test/java/com/formkiq/client/model/SiteConfigTest.java +++ b/src/test/java/com/formkiq/client/model/SiteConfigTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,46 +28,46 @@ * Model tests for SiteConfig */ public class SiteConfigTest { - private final SiteConfig model = new SiteConfig(); + private final SiteConfig model = new SiteConfig(); - /** - * Model tests for SiteConfig - */ - @Test - public void testSiteConfig() { - // TODO: test SiteConfig - } + /** + * Model tests for SiteConfig + */ + @Test + public void testSiteConfig() { + // TODO: test SiteConfig + } - /** - * Test the property 'maxContentLengthBytes' - */ - @Test - public void maxContentLengthBytesTest() { - // TODO: test maxContentLengthBytes - } + /** + * Test the property 'maxContentLengthBytes' + */ + @Test + public void maxContentLengthBytesTest() { + // TODO: test maxContentLengthBytes + } - /** - * Test the property 'maxDocuments' - */ - @Test - public void maxDocumentsTest() { - // TODO: test maxDocuments - } + /** + * Test the property 'maxDocuments' + */ + @Test + public void maxDocumentsTest() { + // TODO: test maxDocuments + } - /** - * Test the property 'maxWebhooks' - */ - @Test - public void maxWebhooksTest() { - // TODO: test maxWebhooks - } + /** + * Test the property 'maxWebhooks' + */ + @Test + public void maxWebhooksTest() { + // TODO: test maxWebhooks + } - /** - * Test the property 'ocr' - */ - @Test - public void ocrTest() { - // TODO: test ocr - } + /** + * Test the property 'ocr' + */ + @Test + public void ocrTest() { + // TODO: test ocr + } } diff --git a/src/test/java/com/formkiq/client/model/SiteGroupPermissionsTest.java b/src/test/java/com/formkiq/client/model/SiteGroupPermissionsTest.java index 562a5ac05..698898c27 100644 --- a/src/test/java/com/formkiq/client/model/SiteGroupPermissionsTest.java +++ b/src/test/java/com/formkiq/client/model/SiteGroupPermissionsTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for SiteGroupPermissions */ public class SiteGroupPermissionsTest { - /** - * Model tests for SiteGroupPermissions - */ - @Test - public void testSiteGroupPermissions() { - // TODO: test SiteGroupPermissions - } + /** + * Model tests for SiteGroupPermissions + */ + @Test + public void testSiteGroupPermissions() { + // TODO: test SiteGroupPermissions + } } diff --git a/src/test/java/com/formkiq/client/model/SiteGroupTest.java b/src/test/java/com/formkiq/client/model/SiteGroupTest.java index 0baa0745b..c37260eb1 100644 --- a/src/test/java/com/formkiq/client/model/SiteGroupTest.java +++ b/src/test/java/com/formkiq/client/model/SiteGroupTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for SiteGroup */ public class SiteGroupTest { - private final SiteGroup model = new SiteGroup(); + private final SiteGroup model = new SiteGroup(); - /** - * Model tests for SiteGroup - */ - @Test - public void testSiteGroup() { - // TODO: test SiteGroup - } + /** + * Model tests for SiteGroup + */ + @Test + public void testSiteGroup() { + // TODO: test SiteGroup + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/SiteStatusTest.java b/src/test/java/com/formkiq/client/model/SiteStatusTest.java index ffe7f800e..a2bd341e9 100644 --- a/src/test/java/com/formkiq/client/model/SiteStatusTest.java +++ b/src/test/java/com/formkiq/client/model/SiteStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for SiteStatus */ public class SiteStatusTest { - /** - * Model tests for SiteStatus - */ - @Test - public void testSiteStatus() { - // TODO: test SiteStatus - } + /** + * Model tests for SiteStatus + */ + @Test + public void testSiteStatus() { + // TODO: test SiteStatus + } } diff --git a/src/test/java/com/formkiq/client/model/SiteTest.java b/src/test/java/com/formkiq/client/model/SiteTest.java index cf867426c..b574d5289 100644 --- a/src/test/java/com/formkiq/client/model/SiteTest.java +++ b/src/test/java/com/formkiq/client/model/SiteTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -40,78 +33,78 @@ * Model tests for Site */ public class SiteTest { - private final Site model = new Site(); + private final Site model = new Site(); - /** - * Model tests for Site - */ - @Test - public void testSite() { - // TODO: test Site - } + /** + * Model tests for Site + */ + @Test + public void testSite() { + // TODO: test Site + } - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } - /** - * Test the property 'title' - */ - @Test - public void titleTest() { - // TODO: test title - } + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'permission' - */ - @Test - public void permissionTest() { - // TODO: test permission - } + /** + * Test the property 'permission' + */ + @Test + public void permissionTest() { + // TODO: test permission + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } - /** - * Test the property 'uploadEmail' - */ - @Test - public void uploadEmailTest() { - // TODO: test uploadEmail - } + /** + * Test the property 'uploadEmail' + */ + @Test + public void uploadEmailTest() { + // TODO: test uploadEmail + } - /** - * Test the property 'config' - */ - @Test - public void configTest() { - // TODO: test config - } + /** + * Test the property 'config' + */ + @Test + public void configTest() { + // TODO: test config + } - /** - * Test the property 'usage' - */ - @Test - public void usageTest() { - // TODO: test usage - } + /** + * Test the property 'usage' + */ + @Test + public void usageTest() { + // TODO: test usage + } } diff --git a/src/test/java/com/formkiq/client/model/SiteUsageTest.java b/src/test/java/com/formkiq/client/model/SiteUsageTest.java index 56b4ef6ba..4ddb1c087 100644 --- a/src/test/java/com/formkiq/client/model/SiteUsageTest.java +++ b/src/test/java/com/formkiq/client/model/SiteUsageTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for SiteUsage */ public class SiteUsageTest { - private final SiteUsage model = new SiteUsage(); - - /** - * Model tests for SiteUsage - */ - @Test - public void testSiteUsage() { - // TODO: test SiteUsage - } - - /** - * Test the property 'documentCount' - */ - @Test - public void documentCountTest() { - // TODO: test documentCount - } - - /** - * Test the property 'ocrTransactionCount' - */ - @Test - public void ocrTransactionCountTest() { - // TODO: test ocrTransactionCount - } + private final SiteUsage model = new SiteUsage(); + + /** + * Model tests for SiteUsage + */ + @Test + public void testSiteUsage() { + // TODO: test SiteUsage + } + + /** + * Test the property 'documentCount' + */ + @Test + public void documentCountTest() { + // TODO: test documentCount + } + + /** + * Test the property 'ocrTransactionCount' + */ + @Test + public void ocrTransactionCountTest() { + // TODO: test ocrTransactionCount + } } diff --git a/src/test/java/com/formkiq/client/model/StringFormatTest.java b/src/test/java/com/formkiq/client/model/StringFormatTest.java index dbc24a94b..03a4aa2e0 100644 --- a/src/test/java/com/formkiq/client/model/StringFormatTest.java +++ b/src/test/java/com/formkiq/client/model/StringFormatTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,38 +28,38 @@ * Model tests for StringFormat */ public class StringFormatTest { - private final StringFormat model = new StringFormat(); + private final StringFormat model = new StringFormat(); - /** - * Model tests for StringFormat - */ - @Test - public void testStringFormat() { - // TODO: test StringFormat - } + /** + * Model tests for StringFormat + */ + @Test + public void testStringFormat() { + // TODO: test StringFormat + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'staticValue' - */ - @Test - public void staticValueTest() { - // TODO: test staticValue - } + /** + * Test the property 'staticValue' + */ + @Test + public void staticValueTest() { + // TODO: test staticValue + } - /** - * Test the property 'padding' - */ - @Test - public void paddingTest() { - // TODO: test padding - } + /** + * Test the property 'padding' + */ + @Test + public void paddingTest() { + // TODO: test padding + } } diff --git a/src/test/java/com/formkiq/client/model/StringGeneratorTypeTest.java b/src/test/java/com/formkiq/client/model/StringGeneratorTypeTest.java index d4894544e..5e4fb578d 100644 --- a/src/test/java/com/formkiq/client/model/StringGeneratorTypeTest.java +++ b/src/test/java/com/formkiq/client/model/StringGeneratorTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for StringGeneratorType */ public class StringGeneratorTypeTest { - /** - * Model tests for StringGeneratorType - */ - @Test - public void testStringGeneratorType() { - // TODO: test StringGeneratorType - } + /** + * Model tests for StringGeneratorType + */ + @Test + public void testStringGeneratorType() { + // TODO: test StringGeneratorType + } } diff --git a/src/test/java/com/formkiq/client/model/TaskStatusTest.java b/src/test/java/com/formkiq/client/model/TaskStatusTest.java index 159da3624..c6a4f6052 100644 --- a/src/test/java/com/formkiq/client/model/TaskStatusTest.java +++ b/src/test/java/com/formkiq/client/model/TaskStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for TaskStatus */ public class TaskStatusTest { - /** - * Model tests for TaskStatus - */ - @Test - public void testTaskStatus() { - // TODO: test TaskStatus - } + /** + * Model tests for TaskStatus + */ + @Test + public void testTaskStatus() { + // TODO: test TaskStatus + } } diff --git a/src/test/java/com/formkiq/client/model/TaskTest.java b/src/test/java/com/formkiq/client/model/TaskTest.java index 5e4765dd6..382136b45 100644 --- a/src/test/java/com/formkiq/client/model/TaskTest.java +++ b/src/test/java/com/formkiq/client/model/TaskTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,102 +30,102 @@ * Model tests for Task */ public class TaskTest { - private final Task model = new Task(); - - /** - * Model tests for Task - */ - @Test - public void testTask() { - // TODO: test Task - } - - /** - * Test the property 'taskId' - */ - @Test - public void taskIdTest() { - // TODO: test taskId - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } - - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } - - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } - - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final Task model = new Task(); + + /** + * Model tests for Task + */ + @Test + public void testTask() { + // TODO: test Task + } + + /** + * Test the property 'taskId' + */ + @Test + public void taskIdTest() { + // TODO: test taskId + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } + + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/TextractQueryTest.java b/src/test/java/com/formkiq/client/model/TextractQueryTest.java index 64523d346..25d4b8114 100644 --- a/src/test/java/com/formkiq/client/model/TextractQueryTest.java +++ b/src/test/java/com/formkiq/client/model/TextractQueryTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,38 +29,38 @@ * Model tests for TextractQuery */ public class TextractQueryTest { - private final TextractQuery model = new TextractQuery(); + private final TextractQuery model = new TextractQuery(); - /** - * Model tests for TextractQuery - */ - @Test - public void testTextractQuery() { - // TODO: test TextractQuery - } + /** + * Model tests for TextractQuery + */ + @Test + public void testTextractQuery() { + // TODO: test TextractQuery + } - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } - /** - * Test the property 'alias' - */ - @Test - public void aliasTest() { - // TODO: test alias - } + /** + * Test the property 'alias' + */ + @Test + public void aliasTest() { + // TODO: test alias + } - /** - * Test the property 'pages' - */ - @Test - public void pagesTest() { - // TODO: test pages - } + /** + * Test the property 'pages' + */ + @Test + public void pagesTest() { + // TODO: test pages + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateAttributeRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateAttributeRequestTest.java index 01e29470c..965401008 100644 --- a/src/test/java/com/formkiq/client/model/UpdateAttributeRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateAttributeRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for UpdateAttributeRequest */ public class UpdateAttributeRequestTest { - private final UpdateAttributeRequest model = new UpdateAttributeRequest(); + private final UpdateAttributeRequest model = new UpdateAttributeRequest(); - /** - * Model tests for UpdateAttributeRequest - */ - @Test - public void testUpdateAttributeRequest() { - // TODO: test UpdateAttributeRequest - } + /** + * Model tests for UpdateAttributeRequest + */ + @Test + public void testUpdateAttributeRequest() { + // TODO: test UpdateAttributeRequest + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateAttributeTest.java b/src/test/java/com/formkiq/client/model/UpdateAttributeTest.java index 0fc3fd36e..9af1c4fb4 100644 --- a/src/test/java/com/formkiq/client/model/UpdateAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateAttributeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for UpdateAttribute */ public class UpdateAttributeTest { - private final UpdateAttribute model = new UpdateAttribute(); - - /** - * Model tests for UpdateAttribute - */ - @Test - public void testUpdateAttribute() { - // TODO: test UpdateAttribute - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'watermark' - */ - @Test - public void watermarkTest() { - // TODO: test watermark - } + private final UpdateAttribute model = new UpdateAttribute(); + + /** + * Model tests for UpdateAttribute + */ + @Test + public void testUpdateAttribute() { + // TODO: test UpdateAttribute + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'watermark' + */ + @Test + public void watermarkTest() { + // TODO: test watermark + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateCaseRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateCaseRequestTest.java index e6c339c6a..bfb9776f9 100644 --- a/src/test/java/com/formkiq/client/model/UpdateCaseRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateCaseRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for UpdateCaseRequest */ public class UpdateCaseRequestTest { - private final UpdateCaseRequest model = new UpdateCaseRequest(); + private final UpdateCaseRequest model = new UpdateCaseRequest(); - /** - * Model tests for UpdateCaseRequest - */ - @Test - public void testUpdateCaseRequest() { - // TODO: test UpdateCaseRequest - } + /** + * Model tests for UpdateCaseRequest + */ + @Test + public void testUpdateCaseRequest() { + // TODO: test UpdateCaseRequest + } - /** - * Test the property '_case' - */ - @Test - public void _caseTest() { - // TODO: test _case - } + /** + * Test the property '_case' + */ + @Test + public void _caseTest() { + // TODO: test _case + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateCaseResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateCaseResponseTest.java index 57f5fba83..7e167841b 100644 --- a/src/test/java/com/formkiq/client/model/UpdateCaseResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateCaseResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for UpdateCaseResponse */ public class UpdateCaseResponseTest { - private final UpdateCaseResponse model = new UpdateCaseResponse(); + private final UpdateCaseResponse model = new UpdateCaseResponse(); - /** - * Model tests for UpdateCaseResponse - */ - @Test - public void testUpdateCaseResponse() { - // TODO: test UpdateCaseResponse - } + /** + * Model tests for UpdateCaseResponse + */ + @Test + public void testUpdateCaseResponse() { + // TODO: test UpdateCaseResponse + } - /** - * Test the property 'caseId' - */ - @Test - public void caseIdTest() { - // TODO: test caseId - } + /** + * Test the property 'caseId' + */ + @Test + public void caseIdTest() { + // TODO: test caseId + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateCaseTest.java b/src/test/java/com/formkiq/client/model/UpdateCaseTest.java index 09ef6d0f8..25b890074 100644 --- a/src/test/java/com/formkiq/client/model/UpdateCaseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateCaseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,86 +32,86 @@ * Model tests for UpdateCase */ public class UpdateCaseTest { - private final UpdateCase model = new UpdateCase(); + private final UpdateCase model = new UpdateCase(); - /** - * Model tests for UpdateCase - */ - @Test - public void testUpdateCase() { - // TODO: test UpdateCase - } + /** + * Model tests for UpdateCase + */ + @Test + public void testUpdateCase() { + // TODO: test UpdateCase + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateConfigurationRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateConfigurationRequestTest.java index 1fbf4b2b6..cd1c16de5 100644 --- a/src/test/java/com/formkiq/client/model/UpdateConfigurationRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateConfigurationRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,78 +30,78 @@ * Model tests for UpdateConfigurationRequest */ public class UpdateConfigurationRequestTest { - private final UpdateConfigurationRequest model = new UpdateConfigurationRequest(); + private final UpdateConfigurationRequest model = new UpdateConfigurationRequest(); - /** - * Model tests for UpdateConfigurationRequest - */ - @Test - public void testUpdateConfigurationRequest() { - // TODO: test UpdateConfigurationRequest - } + /** + * Model tests for UpdateConfigurationRequest + */ + @Test + public void testUpdateConfigurationRequest() { + // TODO: test UpdateConfigurationRequest + } - /** - * Test the property 'chatGptApiKey' - */ - @Test - public void chatGptApiKeyTest() { - // TODO: test chatGptApiKey - } + /** + * Test the property 'chatGptApiKey' + */ + @Test + public void chatGptApiKeyTest() { + // TODO: test chatGptApiKey + } - /** - * Test the property 'maxContentLengthBytes' - */ - @Test - public void maxContentLengthBytesTest() { - // TODO: test maxContentLengthBytes - } + /** + * Test the property 'maxContentLengthBytes' + */ + @Test + public void maxContentLengthBytesTest() { + // TODO: test maxContentLengthBytes + } - /** - * Test the property 'maxDocuments' - */ - @Test - public void maxDocumentsTest() { - // TODO: test maxDocuments - } + /** + * Test the property 'maxDocuments' + */ + @Test + public void maxDocumentsTest() { + // TODO: test maxDocuments + } - /** - * Test the property 'maxWebhooks' - */ - @Test - public void maxWebhooksTest() { - // TODO: test maxWebhooks - } + /** + * Test the property 'maxWebhooks' + */ + @Test + public void maxWebhooksTest() { + // TODO: test maxWebhooks + } - /** - * Test the property 'notificationEmail' - */ - @Test - public void notificationEmailTest() { - // TODO: test notificationEmail - } + /** + * Test the property 'notificationEmail' + */ + @Test + public void notificationEmailTest() { + // TODO: test notificationEmail + } - /** - * Test the property 'ocr' - */ - @Test - public void ocrTest() { - // TODO: test ocr - } + /** + * Test the property 'ocr' + */ + @Test + public void ocrTest() { + // TODO: test ocr + } - /** - * Test the property 'google' - */ - @Test - public void googleTest() { - // TODO: test google - } + /** + * Test the property 'google' + */ + @Test + public void googleTest() { + // TODO: test google + } - /** - * Test the property 'docusign' - */ - @Test - public void docusignTest() { - // TODO: test docusign - } + /** + * Test the property 'docusign' + */ + @Test + public void docusignTest() { + // TODO: test docusign + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateConfigurationResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateConfigurationResponseTest.java index 75ecb2ce4..13c1a983d 100644 --- a/src/test/java/com/formkiq/client/model/UpdateConfigurationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateConfigurationResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for UpdateConfigurationResponse */ public class UpdateConfigurationResponseTest { - private final UpdateConfigurationResponse model = new UpdateConfigurationResponse(); + private final UpdateConfigurationResponse model = new UpdateConfigurationResponse(); - /** - * Model tests for UpdateConfigurationResponse - */ - @Test - public void testUpdateConfigurationResponse() { - // TODO: test UpdateConfigurationResponse - } + /** + * Model tests for UpdateConfigurationResponse + */ + @Test + public void testUpdateConfigurationResponse() { + // TODO: test UpdateConfigurationResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextRequestTest.java index aa8c3e3b9..01ff27224 100644 --- a/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -42,110 +35,110 @@ * Model tests for UpdateDocumentFulltextRequest */ public class UpdateDocumentFulltextRequestTest { - private final UpdateDocumentFulltextRequest model = new UpdateDocumentFulltextRequest(); - - /** - * Model tests for UpdateDocumentFulltextRequest - */ - @Test - public void testUpdateDocumentFulltextRequest() { - // TODO: test UpdateDocumentFulltextRequest - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'contentUrls' - */ - @Test - public void contentUrlsTest() { - // TODO: test contentUrls - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final UpdateDocumentFulltextRequest model = new UpdateDocumentFulltextRequest(); + + /** + * Model tests for UpdateDocumentFulltextRequest + */ + @Test + public void testUpdateDocumentFulltextRequest() { + // TODO: test UpdateDocumentFulltextRequest + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'contentUrls' + */ + @Test + public void contentUrlsTest() { + // TODO: test contentUrls + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextResponseTest.java index c5e4e7563..554c0ced3 100644 --- a/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for UpdateDocumentFulltextResponse */ public class UpdateDocumentFulltextResponseTest { - private final UpdateDocumentFulltextResponse model = new UpdateDocumentFulltextResponse(); + private final UpdateDocumentFulltextResponse model = new UpdateDocumentFulltextResponse(); - /** - * Model tests for UpdateDocumentFulltextResponse - */ - @Test - public void testUpdateDocumentFulltextResponse() { - // TODO: test UpdateDocumentFulltextResponse - } + /** + * Model tests for UpdateDocumentFulltextResponse + */ + @Test + public void testUpdateDocumentFulltextResponse() { + // TODO: test UpdateDocumentFulltextResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateDocumentRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateDocumentRequestTest.java index 00676debe..ccf41a7df 100644 --- a/src/test/java/com/formkiq/client/model/UpdateDocumentRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateDocumentRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -42,126 +35,126 @@ * Model tests for UpdateDocumentRequest */ public class UpdateDocumentRequestTest { - private final UpdateDocumentRequest model = new UpdateDocumentRequest(); - - /** - * Model tests for UpdateDocumentRequest - */ - @Test - public void testUpdateDocumentRequest() { - // TODO: test UpdateDocumentRequest - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final UpdateDocumentRequest model = new UpdateDocumentRequest(); + + /** + * Model tests for UpdateDocumentRequest + */ + @Test + public void testUpdateDocumentRequest() { + // TODO: test UpdateDocumentRequest + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateEntityRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateEntityRequestTest.java index c0e78882e..2fce19d02 100644 --- a/src/test/java/com/formkiq/client/model/UpdateEntityRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateEntityRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for UpdateEntityRequest */ public class UpdateEntityRequestTest { - private final UpdateEntityRequest model = new UpdateEntityRequest(); + private final UpdateEntityRequest model = new UpdateEntityRequest(); - /** - * Model tests for UpdateEntityRequest - */ - @Test - public void testUpdateEntityRequest() { - // TODO: test UpdateEntityRequest - } + /** + * Model tests for UpdateEntityRequest + */ + @Test + public void testUpdateEntityRequest() { + // TODO: test UpdateEntityRequest + } - /** - * Test the property 'entity' - */ - @Test - public void entityTest() { - // TODO: test entity - } + /** + * Test the property 'entity' + */ + @Test + public void entityTest() { + // TODO: test entity + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatchTest.java b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatchTest.java index 761164933..4545ffe3b 100644 --- a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatchTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatchTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,23 +28,22 @@ * Model tests for UpdateMatchingDocumentTagsRequestMatch */ public class UpdateMatchingDocumentTagsRequestMatchTest { - private final UpdateMatchingDocumentTagsRequestMatch model = - new UpdateMatchingDocumentTagsRequestMatch(); + private final UpdateMatchingDocumentTagsRequestMatch model = new UpdateMatchingDocumentTagsRequestMatch(); - /** - * Model tests for UpdateMatchingDocumentTagsRequestMatch - */ - @Test - public void testUpdateMatchingDocumentTagsRequestMatch() { - // TODO: test UpdateMatchingDocumentTagsRequestMatch - } + /** + * Model tests for UpdateMatchingDocumentTagsRequestMatch + */ + @Test + public void testUpdateMatchingDocumentTagsRequestMatch() { + // TODO: test UpdateMatchingDocumentTagsRequestMatch + } - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestTest.java index 8b1b6a6b1..6ff6a0ebf 100644 --- a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for UpdateMatchingDocumentTagsRequest */ public class UpdateMatchingDocumentTagsRequestTest { - private final UpdateMatchingDocumentTagsRequest model = new UpdateMatchingDocumentTagsRequest(); - - /** - * Model tests for UpdateMatchingDocumentTagsRequest - */ - @Test - public void testUpdateMatchingDocumentTagsRequest() { - // TODO: test UpdateMatchingDocumentTagsRequest - } - - /** - * Test the property 'match' - */ - @Test - public void matchTest() { - // TODO: test match - } - - /** - * Test the property 'update' - */ - @Test - public void updateTest() { - // TODO: test update - } + private final UpdateMatchingDocumentTagsRequest model = new UpdateMatchingDocumentTagsRequest(); + + /** + * Model tests for UpdateMatchingDocumentTagsRequest + */ + @Test + public void testUpdateMatchingDocumentTagsRequest() { + // TODO: test UpdateMatchingDocumentTagsRequest + } + + /** + * Test the property 'match' + */ + @Test + public void matchTest() { + // TODO: test match + } + + /** + * Test the property 'update' + */ + @Test + public void updateTest() { + // TODO: test update + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdateTest.java b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdateTest.java index 2fdd9ae19..fa487b5a7 100644 --- a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdateTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdateTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,23 +30,22 @@ * Model tests for UpdateMatchingDocumentTagsRequestUpdate */ public class UpdateMatchingDocumentTagsRequestUpdateTest { - private final UpdateMatchingDocumentTagsRequestUpdate model = - new UpdateMatchingDocumentTagsRequestUpdate(); + private final UpdateMatchingDocumentTagsRequestUpdate model = new UpdateMatchingDocumentTagsRequestUpdate(); - /** - * Model tests for UpdateMatchingDocumentTagsRequestUpdate - */ - @Test - public void testUpdateMatchingDocumentTagsRequestUpdate() { - // TODO: test UpdateMatchingDocumentTagsRequestUpdate - } + /** + * Model tests for UpdateMatchingDocumentTagsRequestUpdate + */ + @Test + public void testUpdateMatchingDocumentTagsRequestUpdate() { + // TODO: test UpdateMatchingDocumentTagsRequestUpdate + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponseTest.java index 6ad988589..4adacb223 100644 --- a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for UpdateMatchingDocumentTagsResponse */ public class UpdateMatchingDocumentTagsResponseTest { - private final UpdateMatchingDocumentTagsResponse model = new UpdateMatchingDocumentTagsResponse(); + private final UpdateMatchingDocumentTagsResponse model = new UpdateMatchingDocumentTagsResponse(); - /** - * Model tests for UpdateMatchingDocumentTagsResponse - */ - @Test - public void testUpdateMatchingDocumentTagsResponse() { - // TODO: test UpdateMatchingDocumentTagsResponse - } + /** + * Model tests for UpdateMatchingDocumentTagsResponse + */ + @Test + public void testUpdateMatchingDocumentTagsResponse() { + // TODO: test UpdateMatchingDocumentTagsResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateNigoRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateNigoRequestTest.java index a7ff2d886..097a290f7 100644 --- a/src/test/java/com/formkiq/client/model/UpdateNigoRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateNigoRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for UpdateNigoRequest */ public class UpdateNigoRequestTest { - private final UpdateNigoRequest model = new UpdateNigoRequest(); + private final UpdateNigoRequest model = new UpdateNigoRequest(); - /** - * Model tests for UpdateNigoRequest - */ - @Test - public void testUpdateNigoRequest() { - // TODO: test UpdateNigoRequest - } + /** + * Model tests for UpdateNigoRequest + */ + @Test + public void testUpdateNigoRequest() { + // TODO: test UpdateNigoRequest + } - /** - * Test the property 'nigo' - */ - @Test - public void nigoTest() { - // TODO: test nigo - } + /** + * Test the property 'nigo' + */ + @Test + public void nigoTest() { + // TODO: test nigo + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateNigoResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateNigoResponseTest.java index bf084d7e6..572883654 100644 --- a/src/test/java/com/formkiq/client/model/UpdateNigoResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateNigoResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for UpdateNigoResponse */ public class UpdateNigoResponseTest { - private final UpdateNigoResponse model = new UpdateNigoResponse(); + private final UpdateNigoResponse model = new UpdateNigoResponse(); - /** - * Model tests for UpdateNigoResponse - */ - @Test - public void testUpdateNigoResponse() { - // TODO: test UpdateNigoResponse - } + /** + * Model tests for UpdateNigoResponse + */ + @Test + public void testUpdateNigoResponse() { + // TODO: test UpdateNigoResponse + } - /** - * Test the property 'nigoId' - */ - @Test - public void nigoIdTest() { - // TODO: test nigoId - } + /** + * Test the property 'nigoId' + */ + @Test + public void nigoIdTest() { + // TODO: test nigoId + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateNigoTest.java b/src/test/java/com/formkiq/client/model/UpdateNigoTest.java index 2fa0cfeb8..420c0f36f 100644 --- a/src/test/java/com/formkiq/client/model/UpdateNigoTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateNigoTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,86 +32,86 @@ * Model tests for UpdateNigo */ public class UpdateNigoTest { - private final UpdateNigo model = new UpdateNigo(); + private final UpdateNigo model = new UpdateNigo(); - /** - * Model tests for UpdateNigo - */ - @Test - public void testUpdateNigo() { - // TODO: test UpdateNigo - } + /** + * Model tests for UpdateNigo + */ + @Test + public void testUpdateNigo() { + // TODO: test UpdateNigo + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateResponseTest.java index 480644232..5136094c9 100644 --- a/src/test/java/com/formkiq/client/model/UpdateResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for UpdateResponse */ public class UpdateResponseTest { - private final UpdateResponse model = new UpdateResponse(); + private final UpdateResponse model = new UpdateResponse(); - /** - * Model tests for UpdateResponse - */ - @Test - public void testUpdateResponse() { - // TODO: test UpdateResponse - } + /** + * Model tests for UpdateResponse + */ + @Test + public void testUpdateResponse() { + // TODO: test UpdateResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRuleRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateRuleRequestTest.java index f0b379534..9d91dccc1 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRuleRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRuleRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for UpdateRuleRequest */ public class UpdateRuleRequestTest { - private final UpdateRuleRequest model = new UpdateRuleRequest(); + private final UpdateRuleRequest model = new UpdateRuleRequest(); - /** - * Model tests for UpdateRuleRequest - */ - @Test - public void testUpdateRuleRequest() { - // TODO: test UpdateRuleRequest - } + /** + * Model tests for UpdateRuleRequest + */ + @Test + public void testUpdateRuleRequest() { + // TODO: test UpdateRuleRequest + } - /** - * Test the property 'rule' - */ - @Test - public void ruleTest() { - // TODO: test rule - } + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRuleResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateRuleResponseTest.java index 76beaef43..f59e1da9f 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRuleResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRuleResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for UpdateRuleResponse */ public class UpdateRuleResponseTest { - private final UpdateRuleResponse model = new UpdateRuleResponse(); + private final UpdateRuleResponse model = new UpdateRuleResponse(); - /** - * Model tests for UpdateRuleResponse - */ - @Test - public void testUpdateRuleResponse() { - // TODO: test UpdateRuleResponse - } + /** + * Model tests for UpdateRuleResponse + */ + @Test + public void testUpdateRuleResponse() { + // TODO: test UpdateRuleResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRuleTest.java b/src/test/java/com/formkiq/client/model/UpdateRuleTest.java index b1179381b..ea8bd0837 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRuleTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRuleTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,54 +30,54 @@ * Model tests for UpdateRule */ public class UpdateRuleTest { - private final UpdateRule model = new UpdateRule(); + private final UpdateRule model = new UpdateRule(); - /** - * Model tests for UpdateRule - */ - @Test - public void testUpdateRule() { - // TODO: test UpdateRule - } + /** + * Model tests for UpdateRule + */ + @Test + public void testUpdateRule() { + // TODO: test UpdateRule + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } - /** - * Test the property 'conditions' - */ - @Test - public void conditionsTest() { - // TODO: test conditions - } + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRulesetRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateRulesetRequestTest.java index d9a037e06..1a566e8d3 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRulesetRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRulesetRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for UpdateRulesetRequest */ public class UpdateRulesetRequestTest { - private final UpdateRulesetRequest model = new UpdateRulesetRequest(); + private final UpdateRulesetRequest model = new UpdateRulesetRequest(); - /** - * Model tests for UpdateRulesetRequest - */ - @Test - public void testUpdateRulesetRequest() { - // TODO: test UpdateRulesetRequest - } + /** + * Model tests for UpdateRulesetRequest + */ + @Test + public void testUpdateRulesetRequest() { + // TODO: test UpdateRulesetRequest + } - /** - * Test the property 'ruleset' - */ - @Test - public void rulesetTest() { - // TODO: test ruleset - } + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRulesetResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateRulesetResponseTest.java index 4dc1a18e2..d5a27fd37 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRulesetResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRulesetResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for UpdateRulesetResponse */ public class UpdateRulesetResponseTest { - private final UpdateRulesetResponse model = new UpdateRulesetResponse(); + private final UpdateRulesetResponse model = new UpdateRulesetResponse(); - /** - * Model tests for UpdateRulesetResponse - */ - @Test - public void testUpdateRulesetResponse() { - // TODO: test UpdateRulesetResponse - } + /** + * Model tests for UpdateRulesetResponse + */ + @Test + public void testUpdateRulesetResponse() { + // TODO: test UpdateRulesetResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRulesetTest.java b/src/test/java/com/formkiq/client/model/UpdateRulesetTest.java index 41c50b94c..927e79382 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRulesetTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRulesetTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,46 +29,46 @@ * Model tests for UpdateRuleset */ public class UpdateRulesetTest { - private final UpdateRuleset model = new UpdateRuleset(); + private final UpdateRuleset model = new UpdateRuleset(); - /** - * Model tests for UpdateRuleset - */ - @Test - public void testUpdateRuleset() { - // TODO: test UpdateRuleset - } + /** + * Model tests for UpdateRuleset + */ + @Test + public void testUpdateRuleset() { + // TODO: test UpdateRuleset + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateSiteRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateSiteRequestTest.java index 294e6d14b..96a233fab 100644 --- a/src/test/java/com/formkiq/client/model/UpdateSiteRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateSiteRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for UpdateSiteRequest */ public class UpdateSiteRequestTest { - private final UpdateSiteRequest model = new UpdateSiteRequest(); + private final UpdateSiteRequest model = new UpdateSiteRequest(); - /** - * Model tests for UpdateSiteRequest - */ - @Test - public void testUpdateSiteRequest() { - // TODO: test UpdateSiteRequest - } + /** + * Model tests for UpdateSiteRequest + */ + @Test + public void testUpdateSiteRequest() { + // TODO: test UpdateSiteRequest + } - /** - * Test the property 'site' - */ - @Test - public void siteTest() { - // TODO: test site - } + /** + * Test the property 'site' + */ + @Test + public void siteTest() { + // TODO: test site + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateSiteTest.java b/src/test/java/com/formkiq/client/model/UpdateSiteTest.java index c7ec69814..cf8487bbc 100644 --- a/src/test/java/com/formkiq/client/model/UpdateSiteTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateSiteTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for UpdateSite */ public class UpdateSiteTest { - private final UpdateSite model = new UpdateSite(); - - /** - * Model tests for UpdateSite - */ - @Test - public void testUpdateSite() { - // TODO: test UpdateSite - } - - /** - * Test the property 'title' - */ - @Test - public void titleTest() { - // TODO: test title - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + private final UpdateSite model = new UpdateSite(); + + /** + * Model tests for UpdateSite + */ + @Test + public void testUpdateSite() { + // TODO: test UpdateSite + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateTaskRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateTaskRequestTest.java index 9f40f4411..5b92de841 100644 --- a/src/test/java/com/formkiq/client/model/UpdateTaskRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateTaskRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,22 +28,22 @@ * Model tests for UpdateTaskRequest */ public class UpdateTaskRequestTest { - private final UpdateTaskRequest model = new UpdateTaskRequest(); + private final UpdateTaskRequest model = new UpdateTaskRequest(); - /** - * Model tests for UpdateTaskRequest - */ - @Test - public void testUpdateTaskRequest() { - // TODO: test UpdateTaskRequest - } + /** + * Model tests for UpdateTaskRequest + */ + @Test + public void testUpdateTaskRequest() { + // TODO: test UpdateTaskRequest + } - /** - * Test the property 'task' - */ - @Test - public void taskTest() { - // TODO: test task - } + /** + * Test the property 'task' + */ + @Test + public void taskTest() { + // TODO: test task + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateTaskResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateTaskResponseTest.java index 3bd4a618a..989755304 100644 --- a/src/test/java/com/formkiq/client/model/UpdateTaskResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateTaskResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for UpdateTaskResponse */ public class UpdateTaskResponseTest { - private final UpdateTaskResponse model = new UpdateTaskResponse(); + private final UpdateTaskResponse model = new UpdateTaskResponse(); - /** - * Model tests for UpdateTaskResponse - */ - @Test - public void testUpdateTaskResponse() { - // TODO: test UpdateTaskResponse - } + /** + * Model tests for UpdateTaskResponse + */ + @Test + public void testUpdateTaskResponse() { + // TODO: test UpdateTaskResponse + } - /** - * Test the property 'taskId' - */ - @Test - public void taskIdTest() { - // TODO: test taskId - } + /** + * Test the property 'taskId' + */ + @Test + public void taskIdTest() { + // TODO: test taskId + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateTaskTest.java b/src/test/java/com/formkiq/client/model/UpdateTaskTest.java index 5f6de72fc..8ad636dea 100644 --- a/src/test/java/com/formkiq/client/model/UpdateTaskTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateTaskTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,86 +32,86 @@ * Model tests for UpdateTask */ public class UpdateTaskTest { - private final UpdateTask model = new UpdateTask(); + private final UpdateTask model = new UpdateTask(); - /** - * Model tests for UpdateTask - */ - @Test - public void testUpdateTask() { - // TODO: test UpdateTask - } + /** + * Model tests for UpdateTask + */ + @Test + public void testUpdateTask() { + // TODO: test UpdateTask + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateWorkflowRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateWorkflowRequestTest.java index 780f60b0f..23feb998b 100644 --- a/src/test/java/com/formkiq/client/model/UpdateWorkflowRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateWorkflowRequestTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,38 +28,38 @@ * Model tests for UpdateWorkflowRequest */ public class UpdateWorkflowRequestTest { - private final UpdateWorkflowRequest model = new UpdateWorkflowRequest(); + private final UpdateWorkflowRequest model = new UpdateWorkflowRequest(); - /** - * Model tests for UpdateWorkflowRequest - */ - @Test - public void testUpdateWorkflowRequest() { - // TODO: test UpdateWorkflowRequest - } + /** + * Model tests for UpdateWorkflowRequest + */ + @Test + public void testUpdateWorkflowRequest() { + // TODO: test UpdateWorkflowRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateWorkflowResponseTest.java index 6cb7b3fa6..3a0c7e6a1 100644 --- a/src/test/java/com/formkiq/client/model/UpdateWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateWorkflowResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,22 +27,22 @@ * Model tests for UpdateWorkflowResponse */ public class UpdateWorkflowResponseTest { - private final UpdateWorkflowResponse model = new UpdateWorkflowResponse(); + private final UpdateWorkflowResponse model = new UpdateWorkflowResponse(); - /** - * Model tests for UpdateWorkflowResponse - */ - @Test - public void testUpdateWorkflowResponse() { - // TODO: test UpdateWorkflowResponse - } + /** + * Model tests for UpdateWorkflowResponse + */ + @Test + public void testUpdateWorkflowResponse() { + // TODO: test UpdateWorkflowResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UserActivityChangesTest.java b/src/test/java/com/formkiq/client/model/UserActivityChangesTest.java index 3314580e5..141bc97aa 100644 --- a/src/test/java/com/formkiq/client/model/UserActivityChangesTest.java +++ b/src/test/java/com/formkiq/client/model/UserActivityChangesTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for UserActivityChanges */ public class UserActivityChangesTest { - private final UserActivityChanges model = new UserActivityChanges(); - - /** - * Model tests for UserActivityChanges - */ - @Test - public void testUserActivityChanges() { - // TODO: test UserActivityChanges - } - - /** - * Test the property 'oldValue' - */ - @Test - public void oldValueTest() { - // TODO: test oldValue - } - - /** - * Test the property 'newValue' - */ - @Test - public void newValueTest() { - // TODO: test newValue - } + private final UserActivityChanges model = new UserActivityChanges(); + + /** + * Model tests for UserActivityChanges + */ + @Test + public void testUserActivityChanges() { + // TODO: test UserActivityChanges + } + + /** + * Test the property 'oldValue' + */ + @Test + public void oldValueTest() { + // TODO: test oldValue + } + + /** + * Test the property 'newValue' + */ + @Test + public void newValueTest() { + // TODO: test newValue + } } diff --git a/src/test/java/com/formkiq/client/model/UserActivityTest.java b/src/test/java/com/formkiq/client/model/UserActivityTest.java index 911e40039..cf9927151 100644 --- a/src/test/java/com/formkiq/client/model/UserActivityTest.java +++ b/src/test/java/com/formkiq/client/model/UserActivityTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,54 +32,54 @@ * Model tests for UserActivity */ public class UserActivityTest { - private final UserActivity model = new UserActivity(); + private final UserActivity model = new UserActivity(); - /** - * Model tests for UserActivity - */ - @Test - public void testUserActivity() { - // TODO: test UserActivity - } + /** + * Model tests for UserActivity + */ + @Test + public void testUserActivity() { + // TODO: test UserActivity + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'document' - */ - @Test - public void documentTest() { - // TODO: test document - } + /** + * Test the property 'document' + */ + @Test + public void documentTest() { + // TODO: test document + } - /** - * Test the property 'changes' - */ - @Test - public void changesTest() { - // TODO: test changes - } + /** + * Test the property 'changes' + */ + @Test + public void changesTest() { + // TODO: test changes + } } diff --git a/src/test/java/com/formkiq/client/model/UserActivityTypeTest.java b/src/test/java/com/formkiq/client/model/UserActivityTypeTest.java index 071e4cbb2..4e68c42d8 100644 --- a/src/test/java/com/formkiq/client/model/UserActivityTypeTest.java +++ b/src/test/java/com/formkiq/client/model/UserActivityTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for UserActivityType */ public class UserActivityTypeTest { - /** - * Model tests for UserActivityType - */ - @Test - public void testUserActivityType() { - // TODO: test UserActivityType - } + /** + * Model tests for UserActivityType + */ + @Test + public void testUserActivityType() { + // TODO: test UserActivityType + } } diff --git a/src/test/java/com/formkiq/client/model/UserAttributesTest.java b/src/test/java/com/formkiq/client/model/UserAttributesTest.java index 6bc58309f..084fed930 100644 --- a/src/test/java/com/formkiq/client/model/UserAttributesTest.java +++ b/src/test/java/com/formkiq/client/model/UserAttributesTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,142 +27,142 @@ * Model tests for UserAttributes */ public class UserAttributesTest { - private final UserAttributes model = new UserAttributes(); - - /** - * Model tests for UserAttributes - */ - @Test - public void testUserAttributes() { - // TODO: test UserAttributes - } - - /** - * Test the property 'address' - */ - @Test - public void addressTest() { - // TODO: test address - } - - /** - * Test the property 'birthdate' - */ - @Test - public void birthdateTest() { - // TODO: test birthdate - } - - /** - * Test the property 'familyName' - */ - @Test - public void familyNameTest() { - // TODO: test familyName - } - - /** - * Test the property 'gender' - */ - @Test - public void genderTest() { - // TODO: test gender - } - - /** - * Test the property 'givenName' - */ - @Test - public void givenNameTest() { - // TODO: test givenName - } - - /** - * Test the property 'locale' - */ - @Test - public void localeTest() { - // TODO: test locale - } - - /** - * Test the property 'middleName' - */ - @Test - public void middleNameTest() { - // TODO: test middleName - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'nickname' - */ - @Test - public void nicknameTest() { - // TODO: test nickname - } - - /** - * Test the property 'phoneNumber' - */ - @Test - public void phoneNumberTest() { - // TODO: test phoneNumber - } - - /** - * Test the property 'picture' - */ - @Test - public void pictureTest() { - // TODO: test picture - } - - /** - * Test the property 'preferredUsername' - */ - @Test - public void preferredUsernameTest() { - // TODO: test preferredUsername - } - - /** - * Test the property 'profile' - */ - @Test - public void profileTest() { - // TODO: test profile - } - - /** - * Test the property 'zoneinfo' - */ - @Test - public void zoneinfoTest() { - // TODO: test zoneinfo - } - - /** - * Test the property 'updatedAt' - */ - @Test - public void updatedAtTest() { - // TODO: test updatedAt - } - - /** - * Test the property 'website' - */ - @Test - public void websiteTest() { - // TODO: test website - } + private final UserAttributes model = new UserAttributes(); + + /** + * Model tests for UserAttributes + */ + @Test + public void testUserAttributes() { + // TODO: test UserAttributes + } + + /** + * Test the property 'address' + */ + @Test + public void addressTest() { + // TODO: test address + } + + /** + * Test the property 'birthdate' + */ + @Test + public void birthdateTest() { + // TODO: test birthdate + } + + /** + * Test the property 'familyName' + */ + @Test + public void familyNameTest() { + // TODO: test familyName + } + + /** + * Test the property 'gender' + */ + @Test + public void genderTest() { + // TODO: test gender + } + + /** + * Test the property 'givenName' + */ + @Test + public void givenNameTest() { + // TODO: test givenName + } + + /** + * Test the property 'locale' + */ + @Test + public void localeTest() { + // TODO: test locale + } + + /** + * Test the property 'middleName' + */ + @Test + public void middleNameTest() { + // TODO: test middleName + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'nickname' + */ + @Test + public void nicknameTest() { + // TODO: test nickname + } + + /** + * Test the property 'phoneNumber' + */ + @Test + public void phoneNumberTest() { + // TODO: test phoneNumber + } + + /** + * Test the property 'picture' + */ + @Test + public void pictureTest() { + // TODO: test picture + } + + /** + * Test the property 'preferredUsername' + */ + @Test + public void preferredUsernameTest() { + // TODO: test preferredUsername + } + + /** + * Test the property 'profile' + */ + @Test + public void profileTest() { + // TODO: test profile + } + + /** + * Test the property 'zoneinfo' + */ + @Test + public void zoneinfoTest() { + // TODO: test zoneinfo + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'website' + */ + @Test + public void websiteTest() { + // TODO: test website + } } diff --git a/src/test/java/com/formkiq/client/model/UserSharePermissionTest.java b/src/test/java/com/formkiq/client/model/UserSharePermissionTest.java index e33ac3c25..712d7620e 100644 --- a/src/test/java/com/formkiq/client/model/UserSharePermissionTest.java +++ b/src/test/java/com/formkiq/client/model/UserSharePermissionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for UserSharePermission */ public class UserSharePermissionTest { - /** - * Model tests for UserSharePermission - */ - @Test - public void testUserSharePermission() { - // TODO: test UserSharePermission - } + /** + * Model tests for UserSharePermission + */ + @Test + public void testUserSharePermission() { + // TODO: test UserSharePermission + } } diff --git a/src/test/java/com/formkiq/client/model/UserSharePermissionTypeTest.java b/src/test/java/com/formkiq/client/model/UserSharePermissionTypeTest.java index 5a1ce8270..13af5a4a4 100644 --- a/src/test/java/com/formkiq/client/model/UserSharePermissionTypeTest.java +++ b/src/test/java/com/formkiq/client/model/UserSharePermissionTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for UserSharePermissionType */ public class UserSharePermissionTypeTest { - /** - * Model tests for UserSharePermissionType - */ - @Test - public void testUserSharePermissionType() { - // TODO: test UserSharePermissionType - } + /** + * Model tests for UserSharePermissionType + */ + @Test + public void testUserSharePermissionType() { + // TODO: test UserSharePermissionType + } } diff --git a/src/test/java/com/formkiq/client/model/UserShareTest.java b/src/test/java/com/formkiq/client/model/UserShareTest.java index 0b4102873..576a6b703 100644 --- a/src/test/java/com/formkiq/client/model/UserShareTest.java +++ b/src/test/java/com/formkiq/client/model/UserShareTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -38,78 +31,78 @@ * Model tests for UserShare */ public class UserShareTest { - private final UserShare model = new UserShare(); + private final UserShare model = new UserShare(); - /** - * Model tests for UserShare - */ - @Test - public void testUserShare() { - // TODO: test UserShare - } + /** + * Model tests for UserShare + */ + @Test + public void testUserShare() { + // TODO: test UserShare + } - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } - /** - * Test the property 'shareKey' - */ - @Test - public void shareKeyTest() { - // TODO: test shareKey - } + /** + * Test the property 'shareKey' + */ + @Test + public void shareKeyTest() { + // TODO: test shareKey + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'permissionType' - */ - @Test - public void permissionTypeTest() { - // TODO: test permissionType - } + /** + * Test the property 'permissionType' + */ + @Test + public void permissionTypeTest() { + // TODO: test permissionType + } } diff --git a/src/test/java/com/formkiq/client/model/UserTest.java b/src/test/java/com/formkiq/client/model/UserTest.java index 78ce402a6..521485257 100644 --- a/src/test/java/com/formkiq/client/model/UserTest.java +++ b/src/test/java/com/formkiq/client/model/UserTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,70 +28,70 @@ * Model tests for User */ public class UserTest { - private final User model = new User(); + private final User model = new User(); - /** - * Model tests for User - */ - @Test - public void testUser() { - // TODO: test User - } + /** + * Model tests for User + */ + @Test + public void testUser() { + // TODO: test User + } - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } - /** - * Test the property 'email' - */ - @Test - public void emailTest() { - // TODO: test email - } + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } - /** - * Test the property 'enabled' - */ - @Test - public void enabledTest() { - // TODO: test enabled - } + /** + * Test the property 'enabled' + */ + @Test + public void enabledTest() { + // TODO: test enabled + } - /** - * Test the property 'userStatus' - */ - @Test - public void userStatusTest() { - // TODO: test userStatus - } + /** + * Test the property 'userStatus' + */ + @Test + public void userStatusTest() { + // TODO: test userStatus + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/ValidationErrorTest.java b/src/test/java/com/formkiq/client/model/ValidationErrorTest.java index 39d4200c0..5dbff5baf 100644 --- a/src/test/java/com/formkiq/client/model/ValidationErrorTest.java +++ b/src/test/java/com/formkiq/client/model/ValidationErrorTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,30 +27,30 @@ * Model tests for ValidationError */ public class ValidationErrorTest { - private final ValidationError model = new ValidationError(); - - /** - * Model tests for ValidationError - */ - @Test - public void testValidationError() { - // TODO: test ValidationError - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'error' - */ - @Test - public void errorTest() { - // TODO: test error - } + private final ValidationError model = new ValidationError(); + + /** + * Model tests for ValidationError + */ + @Test + public void testValidationError() { + // TODO: test ValidationError + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'error' + */ + @Test + public void errorTest() { + // TODO: test error + } } diff --git a/src/test/java/com/formkiq/client/model/ValidationErrorsResponseTest.java b/src/test/java/com/formkiq/client/model/ValidationErrorsResponseTest.java index 6837e66d7..885ec5038 100644 --- a/src/test/java/com/formkiq/client/model/ValidationErrorsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/ValidationErrorsResponseTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,22 +30,22 @@ * Model tests for ValidationErrorsResponse */ public class ValidationErrorsResponseTest { - private final ValidationErrorsResponse model = new ValidationErrorsResponse(); + private final ValidationErrorsResponse model = new ValidationErrorsResponse(); - /** - * Model tests for ValidationErrorsResponse - */ - @Test - public void testValidationErrorsResponse() { - // TODO: test ValidationErrorsResponse - } + /** + * Model tests for ValidationErrorsResponse + */ + @Test + public void testValidationErrorsResponse() { + // TODO: test ValidationErrorsResponse + } - /** - * Test the property 'errors' - */ - @Test - public void errorsTest() { - // TODO: test errors - } + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } } diff --git a/src/test/java/com/formkiq/client/model/WatermarkPositionTest.java b/src/test/java/com/formkiq/client/model/WatermarkPositionTest.java index 3b5142d27..c877d35ec 100644 --- a/src/test/java/com/formkiq/client/model/WatermarkPositionTest.java +++ b/src/test/java/com/formkiq/client/model/WatermarkPositionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,46 +30,46 @@ * Model tests for WatermarkPosition */ public class WatermarkPositionTest { - private final WatermarkPosition model = new WatermarkPosition(); + private final WatermarkPosition model = new WatermarkPosition(); - /** - * Model tests for WatermarkPosition - */ - @Test - public void testWatermarkPosition() { - // TODO: test WatermarkPosition - } + /** + * Model tests for WatermarkPosition + */ + @Test + public void testWatermarkPosition() { + // TODO: test WatermarkPosition + } - /** - * Test the property 'xAnchor' - */ - @Test - public void xAnchorTest() { - // TODO: test xAnchor - } + /** + * Test the property 'xAnchor' + */ + @Test + public void xAnchorTest() { + // TODO: test xAnchor + } - /** - * Test the property 'yAnchor' - */ - @Test - public void yAnchorTest() { - // TODO: test yAnchor - } + /** + * Test the property 'yAnchor' + */ + @Test + public void yAnchorTest() { + // TODO: test yAnchor + } - /** - * Test the property 'xOffset' - */ - @Test - public void xOffsetTest() { - // TODO: test xOffset - } + /** + * Test the property 'xOffset' + */ + @Test + public void xOffsetTest() { + // TODO: test xOffset + } - /** - * Test the property 'yOffset' - */ - @Test - public void yOffsetTest() { - // TODO: test yOffset - } + /** + * Test the property 'yOffset' + */ + @Test + public void yOffsetTest() { + // TODO: test yOffset + } } diff --git a/src/test/java/com/formkiq/client/model/WatermarkPositionXAnchorTest.java b/src/test/java/com/formkiq/client/model/WatermarkPositionXAnchorTest.java index 1f3aff9f1..6debc557f 100644 --- a/src/test/java/com/formkiq/client/model/WatermarkPositionXAnchorTest.java +++ b/src/test/java/com/formkiq/client/model/WatermarkPositionXAnchorTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for WatermarkPositionXAnchor */ public class WatermarkPositionXAnchorTest { - /** - * Model tests for WatermarkPositionXAnchor - */ - @Test - public void testWatermarkPositionXAnchor() { - // TODO: test WatermarkPositionXAnchor - } + /** + * Model tests for WatermarkPositionXAnchor + */ + @Test + public void testWatermarkPositionXAnchor() { + // TODO: test WatermarkPositionXAnchor + } } diff --git a/src/test/java/com/formkiq/client/model/WatermarkPositionYAnchorTest.java b/src/test/java/com/formkiq/client/model/WatermarkPositionYAnchorTest.java index 3270a9c40..a1d86f6f0 100644 --- a/src/test/java/com/formkiq/client/model/WatermarkPositionYAnchorTest.java +++ b/src/test/java/com/formkiq/client/model/WatermarkPositionYAnchorTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for WatermarkPositionYAnchor */ public class WatermarkPositionYAnchorTest { - /** - * Model tests for WatermarkPositionYAnchor - */ - @Test - public void testWatermarkPositionYAnchor() { - // TODO: test WatermarkPositionYAnchor - } + /** + * Model tests for WatermarkPositionYAnchor + */ + @Test + public void testWatermarkPositionYAnchor() { + // TODO: test WatermarkPositionYAnchor + } } diff --git a/src/test/java/com/formkiq/client/model/WatermarkScaleTest.java b/src/test/java/com/formkiq/client/model/WatermarkScaleTest.java index be9af3788..f0f22497c 100644 --- a/src/test/java/com/formkiq/client/model/WatermarkScaleTest.java +++ b/src/test/java/com/formkiq/client/model/WatermarkScaleTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for WatermarkScale */ public class WatermarkScaleTest { - /** - * Model tests for WatermarkScale - */ - @Test - public void testWatermarkScale() { - // TODO: test WatermarkScale - } + /** + * Model tests for WatermarkScale + */ + @Test + public void testWatermarkScale() { + // TODO: test WatermarkScale + } } diff --git a/src/test/java/com/formkiq/client/model/WatermarkTest.java b/src/test/java/com/formkiq/client/model/WatermarkTest.java index cc2a03fb2..0ecc57623 100644 --- a/src/test/java/com/formkiq/client/model/WatermarkTest.java +++ b/src/test/java/com/formkiq/client/model/WatermarkTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -37,62 +30,62 @@ * Model tests for Watermark */ public class WatermarkTest { - private final Watermark model = new Watermark(); + private final Watermark model = new Watermark(); - /** - * Model tests for Watermark - */ - @Test - public void testWatermark() { - // TODO: test Watermark - } + /** + * Model tests for Watermark + */ + @Test + public void testWatermark() { + // TODO: test Watermark + } - /** - * Test the property 'fontSize' - */ - @Test - public void fontSizeTest() { - // TODO: test fontSize - } + /** + * Test the property 'fontSize' + */ + @Test + public void fontSizeTest() { + // TODO: test fontSize + } - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } - /** - * Test the property 'rotation' - */ - @Test - public void rotationTest() { - // TODO: test rotation - } + /** + * Test the property 'rotation' + */ + @Test + public void rotationTest() { + // TODO: test rotation + } - /** - * Test the property 'imageDocumentId' - */ - @Test - public void imageDocumentIdTest() { - // TODO: test imageDocumentId - } + /** + * Test the property 'imageDocumentId' + */ + @Test + public void imageDocumentIdTest() { + // TODO: test imageDocumentId + } - /** - * Test the property 'scale' - */ - @Test - public void scaleTest() { - // TODO: test scale - } + /** + * Test the property 'scale' + */ + @Test + public void scaleTest() { + // TODO: test scale + } - /** - * Test the property 'position' - */ - @Test - public void positionTest() { - // TODO: test position - } + /** + * Test the property 'position' + */ + @Test + public void positionTest() { + // TODO: test position + } } diff --git a/src/test/java/com/formkiq/client/model/WebhookTagTest.java b/src/test/java/com/formkiq/client/model/WebhookTagTest.java index bcbd2ad78..207069c4d 100644 --- a/src/test/java/com/formkiq/client/model/WebhookTagTest.java +++ b/src/test/java/com/formkiq/client/model/WebhookTagTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -34,62 +27,62 @@ * Model tests for WebhookTag */ public class WebhookTagTest { - private final WebhookTag model = new WebhookTag(); + private final WebhookTag model = new WebhookTag(); - /** - * Model tests for WebhookTag - */ - @Test - public void testWebhookTag() { - // TODO: test WebhookTag - } + /** + * Model tests for WebhookTag + */ + @Test + public void testWebhookTag() { + // TODO: test WebhookTag + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'webhookId' - */ - @Test - public void webhookIdTest() { - // TODO: test webhookId - } + /** + * Test the property 'webhookId' + */ + @Test + public void webhookIdTest() { + // TODO: test webhookId + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowDocumentTest.java b/src/test/java/com/formkiq/client/model/WorkflowDocumentTest.java index 4b364110f..d813fe42c 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowDocumentTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for WorkflowDocument */ public class WorkflowDocumentTest { - private final WorkflowDocument model = new WorkflowDocument(); - - /** - * Model tests for WorkflowDocument - */ - @Test - public void testWorkflowDocument() { - // TODO: test WorkflowDocument - } - - /** - * Test the property 'workflow' - */ - @Test - public void workflowTest() { - // TODO: test workflow - } - - /** - * Test the property 'document' - */ - @Test - public void documentTest() { - // TODO: test document - } + private final WorkflowDocument model = new WorkflowDocument(); + + /** + * Model tests for WorkflowDocument + */ + @Test + public void testWorkflowDocument() { + // TODO: test WorkflowDocument + } + + /** + * Test the property 'workflow' + */ + @Test + public void workflowTest() { + // TODO: test workflow + } + + /** + * Test the property 'document' + */ + @Test + public void documentTest() { + // TODO: test document + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowQueueTest.java b/src/test/java/com/formkiq/client/model/WorkflowQueueTest.java index 75311cd70..1c6d479a5 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowQueueTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowQueueTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -36,30 +29,30 @@ * Model tests for WorkflowQueue */ public class WorkflowQueueTest { - private final WorkflowQueue model = new WorkflowQueue(); - - /** - * Model tests for WorkflowQueue - */ - @Test - public void testWorkflowQueue() { - // TODO: test WorkflowQueue - } - - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } - - /** - * Test the property 'approvalGroups' - */ - @Test - public void approvalGroupsTest() { - // TODO: test approvalGroups - } + private final WorkflowQueue model = new WorkflowQueue(); + + /** + * Model tests for WorkflowQueue + */ + @Test + public void testWorkflowQueue() { + // TODO: test WorkflowQueue + } + + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } + + /** + * Test the property 'approvalGroups' + */ + @Test + public void approvalGroupsTest() { + // TODO: test approvalGroups + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowStatusTest.java b/src/test/java/com/formkiq/client/model/WorkflowStatusTest.java index cb6ffdc99..2250222f0 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowStatusTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowStatusTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for WorkflowStatus */ public class WorkflowStatusTest { - /** - * Model tests for WorkflowStatus - */ - @Test - public void testWorkflowStatus() { - // TODO: test WorkflowStatus - } + /** + * Model tests for WorkflowStatus + */ + @Test + public void testWorkflowStatus() { + // TODO: test WorkflowStatus + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTest.java b/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTest.java index bba57216c..f6cbd19a0 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,30 +28,30 @@ * Model tests for WorkflowStepDecision */ public class WorkflowStepDecisionTest { - private final WorkflowStepDecision model = new WorkflowStepDecision(); - - /** - * Model tests for WorkflowStepDecision - */ - @Test - public void testWorkflowStepDecision() { - // TODO: test WorkflowStepDecision - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'nextStepId' - */ - @Test - public void nextStepIdTest() { - // TODO: test nextStepId - } + private final WorkflowStepDecision model = new WorkflowStepDecision(); + + /** + * Model tests for WorkflowStepDecision + */ + @Test + public void testWorkflowStepDecision() { + // TODO: test WorkflowStepDecision + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'nextStepId' + */ + @Test + public void nextStepIdTest() { + // TODO: test nextStepId + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTypeTest.java b/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTypeTest.java index 004b0d181..590fe45b3 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTypeTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTypeTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -28,12 +21,12 @@ * Model tests for WorkflowStepDecisionType */ public class WorkflowStepDecisionTypeTest { - /** - * Model tests for WorkflowStepDecisionType - */ - @Test - public void testWorkflowStepDecisionType() { - // TODO: test WorkflowStepDecisionType - } + /** + * Model tests for WorkflowStepDecisionType + */ + @Test + public void testWorkflowStepDecisionType() { + // TODO: test WorkflowStepDecisionType + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowStepTest.java b/src/test/java/com/formkiq/client/model/WorkflowStepTest.java index c0d421f1b..d7ab889e9 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowStepTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowStepTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -39,46 +32,46 @@ * Model tests for WorkflowStep */ public class WorkflowStepTest { - private final WorkflowStep model = new WorkflowStep(); + private final WorkflowStep model = new WorkflowStep(); - /** - * Model tests for WorkflowStep - */ - @Test - public void testWorkflowStep() { - // TODO: test WorkflowStep - } + /** + * Model tests for WorkflowStep + */ + @Test + public void testWorkflowStep() { + // TODO: test WorkflowStep + } - /** - * Test the property 'stepId' - */ - @Test - public void stepIdTest() { - // TODO: test stepId - } + /** + * Test the property 'stepId' + */ + @Test + public void stepIdTest() { + // TODO: test stepId + } - /** - * Test the property 'action' - */ - @Test - public void actionTest() { - // TODO: test action - } + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } - /** - * Test the property 'queue' - */ - @Test - public void queueTest() { - // TODO: test queue - } + /** + * Test the property 'queue' + */ + @Test + public void queueTest() { + // TODO: test queue + } - /** - * Test the property 'decisions' - */ - @Test - public void decisionsTest() { - // TODO: test decisions - } + /** + * Test the property 'decisions' + */ + @Test + public void decisionsTest() { + // TODO: test decisions + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowSummaryTest.java b/src/test/java/com/formkiq/client/model/WorkflowSummaryTest.java index c0cba5907..a96241762 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowSummaryTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowSummaryTest.java @@ -1,20 +1,13 @@ /* - * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You - * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction - * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API - * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API - * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the - * API spec file with any application that supports the OpenAPI specification. Open API OAuth - * Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open - * API IAM Specification - - * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## - * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT + * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 + * Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech Do not edit the class manually. + * https://openapi-generator.tech + * Do not edit the class manually. */ @@ -35,70 +28,70 @@ * Model tests for WorkflowSummary */ public class WorkflowSummaryTest { - private final WorkflowSummary model = new WorkflowSummary(); + private final WorkflowSummary model = new WorkflowSummary(); - /** - * Model tests for WorkflowSummary - */ - @Test - public void testWorkflowSummary() { - // TODO: test WorkflowSummary - } + /** + * Model tests for WorkflowSummary + */ + @Test + public void testWorkflowSummary() { + // TODO: test WorkflowSummary + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'inUse' - */ - @Test - public void inUseTest() { - // TODO: test inUse - } + /** + * Test the property 'inUse' + */ + @Test + public void inUseTest() { + // TODO: test inUse + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } From a304e39acd1606e53e62c72602e3ea754fe3b3d3 Mon Sep 17 00:00:00 2001 From: Mike Friesen Date: Sat, 22 Nov 2025 21:09:27 -0600 Subject: [PATCH 2/4] Added DocumentConfig Content Types --- .openapi-generator/FILES | 12 +- api/openapi.yaml | 88 +- docs/AddApiKeyRequest.md | 2 +- docs/ApiKey.md | 14 +- docs/ApiKeyPermission.md | 17 + docs/DocumentConfig.md | 13 + docs/DocumentConfigContentTypes.md | 14 + docs/GetConfigurationResponse.md | 1 + docs/UpdateConfigurationRequest.md | 1 + .../formkiq/client/api/AccessControlApi.java | 1564 +- .../client/api/AdvancedDocumentSearchApi.java | 3097 ++-- .../com/formkiq/client/api/AttributesApi.java | 2138 +-- .../formkiq/client/api/CaseManagementApi.java | 7575 ++++++---- .../formkiq/client/api/CustomIndexApi.java | 1177 +- .../client/api/DocumentActionsApi.java | 1191 +- .../client/api/DocumentAttributesApi.java | 2464 ++-- .../api/DocumentDataClassificationApi.java | 754 +- .../client/api/DocumentFoldersApi.java | 1715 ++- .../client/api/DocumentGenerationApi.java | 455 +- .../formkiq/client/api/DocumentOcrApi.java | 1433 +- .../formkiq/client/api/DocumentSearchApi.java | 463 +- .../formkiq/client/api/DocumentSharesApi.java | 1040 +- .../formkiq/client/api/DocumentTagsApi.java | 3138 ++-- .../client/api/DocumentVersionsApi.java | 1143 +- .../client/api/DocumentWorkflowsApi.java | 5911 +++++--- .../com/formkiq/client/api/DocumentsApi.java | 7476 ++++++---- .../com/formkiq/client/api/ESignatureApi.java | 1087 +- .../com/formkiq/client/api/EntityApi.java | 3190 ++-- .../formkiq/client/api/ExamineObjectsApi.java | 677 +- .../client/api/GoogleIntegrationApi.java | 442 +- .../formkiq/client/api/MalwareScanApi.java | 1117 +- .../com/formkiq/client/api/MappingsApi.java | 1685 ++- .../com/formkiq/client/api/PublicApi.java | 728 +- .../com/formkiq/client/api/ReindexApi.java | 445 +- .../com/formkiq/client/api/RulesetsApi.java | 3409 +++-- .../com/formkiq/client/api/SchemasApi.java | 3068 ++-- .../client/api/SystemManagementApi.java | 12301 +++++++++------- .../com/formkiq/client/api/TagIndexApi.java | 468 +- .../formkiq/client/api/UserActivitiesApi.java | 1217 +- .../formkiq/client/api/UserManagementApi.java | 4275 +++--- .../com/formkiq/client/api/WebhooksApi.java | 2603 ++-- .../formkiq/client/invoker/ApiCallback.java | 89 +- .../com/formkiq/client/invoker/ApiClient.java | 3085 ++-- .../formkiq/client/invoker/ApiException.java | 333 +- .../formkiq/client/invoker/ApiResponse.java | 125 +- .../formkiq/client/invoker/Configuration.java | 34 +- .../invoker/GzipRequestInterceptor.java | 113 +- .../java/com/formkiq/client/invoker/JSON.java | 1813 ++- .../java/com/formkiq/client/invoker/Pair.java | 23 +- .../client/invoker/ProgressRequestBody.java | 107 +- .../client/invoker/ProgressResponseBody.java | 87 +- .../client/invoker/ServerConfiguration.java | 110 +- .../client/invoker/ServerVariable.java | 50 +- .../formkiq/client/invoker/StringUtil.java | 31 +- .../formkiq/client/invoker/auth/AWS4Auth.java | 23 +- .../client/invoker/auth/ApiKeyAuth.java | 28 +- .../client/invoker/auth/Authentication.java | 48 +- .../client/invoker/auth/HttpBasicAuth.java | 75 +- .../client/invoker/auth/HttpBearerAuth.java | 40 +- .../formkiq/client/invoker/auth/OAuth.java | 28 +- .../client/invoker/auth/OAuthFlow.java | 29 +- .../invoker/auth/OAuthOkHttpClient.java | 19 +- .../client/invoker/auth/RetryingOAuth.java | 19 +- .../client/model/AbstractOpenApiSchema.java | 247 +- .../com/formkiq/client/model/Activity.java | 239 +- .../formkiq/client/model/ActivityStatus.java | 28 +- .../com/formkiq/client/model/AddAction.java | 142 +- .../client/model/AddActionParameters.java | 474 +- .../client/model/AddApiKeyPermission.java | 84 - .../client/model/AddApiKeyRequest.java | 153 +- .../client/model/AddApiKeyResponse.java | 110 +- .../formkiq/client/model/AddAttribute.java | 156 +- .../client/model/AddAttributeRequest.java | 117 +- .../model/AddAttributeSchemaOptional.java | 144 +- .../model/AddAttributeSchemaRequired.java | 176 +- .../com/formkiq/client/model/AddCase.java | 285 +- .../formkiq/client/model/AddCaseRequest.java | 117 +- .../formkiq/client/model/AddCaseResponse.java | 110 +- .../client/model/AddChildDocument.java | 273 +- .../model/AddChildDocumentResponse.java | 127 +- .../client/model/AddClassification.java | 123 +- .../model/AddClassificationRequest.java | 112 +- .../model/AddClassificationResponse.java | 113 +- .../model/AddDocumentActionsRequest.java | 127 +- .../model/AddDocumentActionsResponse.java | 110 +- .../AddDocumentActionsRetryResponse.java | 122 +- .../client/model/AddDocumentAttribute.java | 610 +- .../AddDocumentAttributeClassification.java | 139 +- .../model/AddDocumentAttributeEntity.java | 162 +- .../AddDocumentAttributeRelationship.java | 170 +- .../model/AddDocumentAttributeStandard.java | 185 +- .../model/AddDocumentAttributeValue.java | 155 +- .../model/AddDocumentAttributesRequest.java | 131 +- .../model/AddDocumentFulltextRequest.java | 292 +- .../model/AddDocumentFulltextResponse.java | 110 +- .../model/AddDocumentGenerateRequest.java | 228 +- .../model/AddDocumentGenerateResponse.java | 110 +- .../client/model/AddDocumentMetadata.java | 149 +- .../client/model/AddDocumentOcrRequest.java | 208 +- .../client/model/AddDocumentOcrResponse.java | 110 +- .../client/model/AddDocumentRequest.java | 379 +- .../client/model/AddDocumentResponse.java | 174 +- .../formkiq/client/model/AddDocumentSync.java | 122 +- .../client/model/AddDocumentSyncRequest.java | 109 +- .../client/model/AddDocumentSyncService.java | 24 +- .../formkiq/client/model/AddDocumentTag.java | 149 +- .../client/model/AddDocumentTagsRequest.java | 127 +- .../model/AddDocumentUploadRequest.java | 294 +- .../AddDocumentWorkflowDecisionsRequest.java | 173 +- .../AddDocumentWorkflowDecisionsResponse.java | 126 +- .../model/AddDocumentWorkflowRequest.java | 121 +- .../model/AddDocumentWorkflowResponse.java | 110 +- .../model/AddDocusignEnvelopesRequest.java | 221 +- .../model/AddDocusignEnvelopesResponse.java | 111 +- .../AddDocusignRecipientViewRequest.java | 144 +- .../AddDocusignRecipientViewResponse.java | 122 +- .../com/formkiq/client/model/AddEntity.java | 141 +- .../client/model/AddEntityAttribute.java | 161 +- .../client/model/AddEntityRequest.java | 109 +- .../client/model/AddEntityResponse.java | 110 +- .../formkiq/client/model/AddEntityType.java | 123 +- .../client/model/AddEntityTypeRequest.java | 109 +- .../client/model/AddEntityTypeResponse.java | 110 +- .../client/model/AddFolderPermission.java | 129 +- .../client/model/AddFolderRequest.java | 110 +- .../client/model/AddFolderResponse.java | 124 +- .../client/model/AddFolderShareRequest.java | 109 +- .../client/model/AddFolderShareResponse.java | 124 +- .../model/AddGoogleDocumentExportRequest.java | 136 +- .../AddGoogleDocumentExportResponse.java | 122 +- .../com/formkiq/client/model/AddGroup.java | 124 +- .../formkiq/client/model/AddGroupRequest.java | 117 +- .../client/model/AddLocaleRequest.java | 110 +- .../AddLocaleResourceClassificationItem.java | 197 +- .../model/AddLocaleResourceInterfaceItem.java | 166 +- .../model/AddLocaleResourceItemRequest.java | 113 +- .../model/AddLocaleResourceItemResponse.java | 114 +- .../model/AddLocaleResourceSchemaItem.java | 164 +- .../com/formkiq/client/model/AddMapping.java | 153 +- .../client/model/AddMappingRequest.java | 109 +- .../client/model/AddMappingResponse.java | 110 +- .../com/formkiq/client/model/AddNigo.java | 217 +- .../formkiq/client/model/AddNigoRequest.java | 117 +- .../formkiq/client/model/AddNigoResponse.java | 110 +- .../formkiq/client/model/AddQueueRequest.java | 121 +- .../client/model/AddQueueResponse.java | 110 +- .../model/AddReindexDocumentRequest.java | 109 +- .../formkiq/client/model/AddResourceItem.java | 521 +- .../com/formkiq/client/model/AddResponse.java | 110 +- .../com/formkiq/client/model/AddRule.java | 152 +- .../formkiq/client/model/AddRuleRequest.java | 109 +- .../formkiq/client/model/AddRuleResponse.java | 110 +- .../com/formkiq/client/model/AddRuleset.java | 132 +- .../client/model/AddRulesetRequest.java | 117 +- .../client/model/AddRulesetResponse.java | 110 +- .../com/formkiq/client/model/AddShare.java | 126 +- .../com/formkiq/client/model/AddSite.java | 134 +- .../formkiq/client/model/AddSiteRequest.java | 109 +- .../com/formkiq/client/model/AddTask.java | 217 +- .../formkiq/client/model/AddTaskRequest.java | 117 +- .../formkiq/client/model/AddTaskResponse.java | 110 +- .../com/formkiq/client/model/AddUser.java | 123 +- .../formkiq/client/model/AddUserRequest.java | 117 +- .../client/model/AddWebhookRequest.java | 176 +- .../client/model/AddWebhookResponse.java | 124 +- .../client/model/AddWebhookTagRequest.java | 138 +- .../client/model/AddWorkflowRequest.java | 165 +- .../client/model/AddWorkflowResponse.java | 110 +- .../formkiq/client/model/AddWorkflowStep.java | 166 +- .../client/model/AddWorkflowStepDecision.java | 130 +- .../client/model/AddWorkflowStepQueue.java | 140 +- .../java/com/formkiq/client/model/ApiKey.java | 287 +- .../client/model/ApiKeyPermission.java | 92 + .../com/formkiq/client/model/Attribute.java | 144 +- .../client/model/AttributeDataType.java | 36 +- .../model/AttributeSchemaCompositeKey.java | 115 +- .../client/model/AttributeSchemaOptional.java | 162 +- .../client/model/AttributeSchemaRequired.java | 192 +- .../formkiq/client/model/AttributeType.java | 28 +- .../client/model/AttributeValueType.java | 42 +- .../com/formkiq/client/model/CaseStatus.java | 40 +- .../formkiq/client/model/ChecksumType.java | 26 +- .../formkiq/client/model/ChildDocument.java | 269 +- .../formkiq/client/model/Classification.java | 150 +- .../client/model/ClassificationSummary.java | 154 +- .../client/model/DataClassification.java | 193 +- .../model/DataClassificationAttribute.java | 124 +- .../client/model/DeleteApiKeyResponse.java | 110 +- .../model/DeleteCaseDocumentResponse.java | 110 +- .../model/DeleteCaseNigoDocumentResponse.java | 120 +- .../client/model/DeleteCaseNigoResponse.java | 110 +- .../client/model/DeleteCaseResponse.java | 110 +- .../model/DeleteCaseTaskDocumentResponse.java | 120 +- .../client/model/DeleteCaseTaskResponse.java | 110 +- .../client/model/DeleteFolderResponse.java | 110 +- .../client/model/DeleteFulltextResponse.java | 110 +- .../client/model/DeleteIndicesResponse.java | 110 +- .../client/model/DeleteQueueResponse.java | 110 +- .../formkiq/client/model/DeleteResponse.java | 110 +- .../client/model/DeleteRuleResponse.java | 110 +- .../client/model/DeleteRulesetResponse.java | 110 +- .../client/model/DeleteShareResponse.java | 110 +- .../client/model/DeleteWorkflowResponse.java | 110 +- .../com/formkiq/client/model/Document.java | 335 +- .../formkiq/client/model/DocumentAction.java | 237 +- .../client/model/DocumentActionStatus.java | 40 +- .../client/model/DocumentActionType.java | 50 +- .../client/model/DocumentAttribute.java | 199 +- .../formkiq/client/model/DocumentConfig.java | 223 + .../model/DocumentConfigContentTypes.java | 276 + .../model/DocumentFulltextAttribute.java | 166 +- .../model/DocumentFulltextAttributeEq.java | 124 +- .../client/model/DocumentFulltextRequest.java | 133 +- .../model/DocumentFulltextResponse.java | 130 +- .../client/model/DocumentFulltextSearch.java | 176 +- .../client/model/DocumentFulltextTag.java | 149 +- .../model/DocumentGenerateDataSource.java | 147 +- .../model/DocumentGenerateInsertDocument.java | 146 +- ...ocumentGenerateInsertDocumentPosition.java | 30 +- .../model/DocumentGenerateOutputType.java | 26 +- .../com/formkiq/client/model/DocumentId.java | 135 +- .../client/model/DocumentMetadata.java | 138 +- .../model/DocumentRelationshipType.java | 34 +- .../formkiq/client/model/DocumentSearch.java | 223 +- .../client/model/DocumentSearchAttribute.java | 172 +- .../model/DocumentSearchMatchAttribute.java | 140 +- .../client/model/DocumentSearchMatchTag.java | 136 +- .../client/model/DocumentSearchMeta.java | 183 +- .../client/model/DocumentSearchRange.java | 145 +- .../client/model/DocumentSearchRequest.java | 133 +- .../client/model/DocumentSearchResponse.java | 156 +- .../client/model/DocumentSearchTag.java | 172 +- .../client/model/DocumentSearchTags.java | 158 +- .../formkiq/client/model/DocumentSync.java | 184 +- .../client/model/DocumentSyncService.java | 26 +- .../client/model/DocumentSyncStatus.java | 30 +- .../client/model/DocumentSyncType.java | 30 +- .../com/formkiq/client/model/DocumentTag.java | 189 +- .../formkiq/client/model/DocumentVersion.java | 192 +- .../client/model/DocumentWorkflow.java | 174 +- .../client/model/DocumentWorkflowStatus.java | 28 +- .../model/DocumentsCompressRequest.java | 128 +- .../model/DocumentsCompressResponse.java | 110 +- .../formkiq/client/model/DocusignConfig.java | 155 +- .../client/model/DocusignEnvironment.java | 26 +- .../client/model/DocusignInpersonSigner.java | 216 +- .../client/model/DocusignNotification.java | 154 +- .../DocusignNotificationExpirations.java | 163 +- .../model/DocusignNotificationReminders.java | 155 +- .../client/model/DocusignRecipientView.java | 203 +- .../client/model/DocusignSignHereTabs.java | 217 +- .../formkiq/client/model/DocusignSigner.java | 200 +- .../client/model/DocusignSigningTabs.java | 130 +- .../java/com/formkiq/client/model/Entity.java | 179 +- .../formkiq/client/model/EntityAttribute.java | 175 +- .../com/formkiq/client/model/EntityType.java | 150 +- .../client/model/EntityTypeNamespace.java | 26 +- .../java/com/formkiq/client/model/Error.java | 122 +- .../formkiq/client/model/ErrorsResponse.java | 127 +- .../client/model/FolderPermission.java | 129 +- .../client/model/FolderPermissionType.java | 28 +- .../client/model/FulltextAttribute.java | 145 +- .../client/model/FulltextSearchItem.java | 266 +- .../client/model/GetActivitesResponse.java | 141 +- .../client/model/GetApiKeysResponse.java | 141 +- .../GetAttributeAllowedValuesResponse.java | 145 +- .../client/model/GetAttributeResponse.java | 109 +- .../client/model/GetAttributesResponse.java | 141 +- .../model/GetCaseDocumentsResponse.java | 141 +- .../client/model/GetCaseNigoResponse.java | 109 +- .../client/model/GetCaseNigosResponse.java | 141 +- .../formkiq/client/model/GetCaseResponse.java | 109 +- .../client/model/GetCaseTaskResponse.java | 109 +- .../client/model/GetCaseTasksResponse.java | 141 +- .../client/model/GetCasesResponse.java | 141 +- .../model/GetClassificationResponse.java | 112 +- .../model/GetClassificationsResponse.java | 150 +- .../model/GetConfigurationResponse.java | 243 +- .../model/GetDocumentActionsResponse.java | 144 +- .../model/GetDocumentAttributeResponse.java | 113 +- .../model/GetDocumentAttributesResponse.java | 148 +- .../model/GetDocumentContentResponse.java | 142 +- ...GetDocumentDataClassificationResponse.java | 170 +- .../model/GetDocumentFulltextResponse.java | 294 +- .../client/model/GetDocumentOcrResponse.java | 266 +- .../client/model/GetDocumentResponse.java | 355 +- .../client/model/GetDocumentSyncResponse.java | 141 +- .../client/model/GetDocumentTagResponse.java | 189 +- .../client/model/GetDocumentTagsResponse.java | 153 +- .../client/model/GetDocumentUrlResponse.java | 127 +- .../model/GetDocumentVersionsResponse.java | 144 +- .../model/GetDocumentWorkflowResponse.java | 112 +- .../model/GetDocumentWorkflowsResponse.java | 145 +- .../client/model/GetDocumentsResponse.java | 153 +- .../client/model/GetEntitiesResponse.java | 141 +- .../client/model/GetEntityResponse.java | 109 +- .../client/model/GetEntityTypeResponse.java | 109 +- .../client/model/GetEntityTypesResponse.java | 144 +- .../client/model/GetExaminePdfResponse.java | 109 +- .../model/GetExaminePdfUrlResponse.java | 124 +- .../model/GetFolderPermissionsResponse.java | 131 +- .../client/model/GetFoldersResponse.java | 156 +- .../client/model/GetGroupResponse.java | 109 +- .../client/model/GetGroupsResponse.java | 141 +- .../model/GetLocaleResourceItemResponse.java | 116 +- .../model/GetLocaleResourceItemsResponse.java | 154 +- .../client/model/GetLocalesResponse.java | 141 +- .../client/model/GetMalwareScanResponse.java | 151 +- .../client/model/GetMappingResponse.java | 109 +- .../client/model/GetMappingsResponse.java | 141 +- .../model/GetOpaAccessPoliciesResponse.java | 145 +- .../GetOpaAccessPolicyItemsResponse.java | 142 +- .../model/GetOpaAccessPolicyResponse.java | 110 +- .../model/GetOpenSearchIndexResponse.java | 112 +- .../model/GetOpenSearchIndiceResponse.java | 130 +- ...tOpenSearchSnapshotRepositoryResponse.java | 157 +- .../model/GetOpenSearchSnapshotResponse.java | 134 +- .../client/model/GetQueueResponse.java | 110 +- .../client/model/GetQueuesResponse.java | 141 +- .../formkiq/client/model/GetRuleResponse.java | 109 +- .../client/model/GetRulesResponse.java | 141 +- .../client/model/GetRulesetResponse.java | 109 +- .../client/model/GetRulesetsResponse.java | 141 +- .../client/model/GetSiteGroupResponse.java | 109 +- .../client/model/GetSiteGroupsResponse.java | 112 +- .../client/model/GetSitesResponse.java | 155 +- .../client/model/GetSitesSchemaResponse.java | 123 +- .../model/GetUserActivitesResponse.java | 144 +- .../client/model/GetUserGroupsResponse.java | 141 +- .../formkiq/client/model/GetUserResponse.java | 109 +- .../client/model/GetUserSharesResponse.java | 141 +- .../client/model/GetUsersInGroupResponse.java | 141 +- .../client/model/GetUsersResponse.java | 141 +- .../client/model/GetVersionResponse.java | 153 +- .../client/model/GetWebhookResponse.java | 199 +- .../client/model/GetWebhookTagsResponse.java | 153 +- .../client/model/GetWebhooksResponse.java | 144 +- .../model/GetWorkflowDocumentsResponse.java | 145 +- .../GetWorkflowQueueDocumentsResponse.java | 156 +- .../client/model/GetWorkflowResponse.java | 170 +- .../client/model/GetWorkflowsResponse.java | 144 +- .../formkiq/client/model/GoogleConfig.java | 154 +- .../client/model/GoogleExportOutputType.java | 24 +- .../java/com/formkiq/client/model/Group.java | 150 +- .../client/model/IndexFolderMoveRequest.java | 124 +- .../client/model/IndexFolderMoveResponse.java | 110 +- .../com/formkiq/client/model/IndexSearch.java | 110 +- .../client/model/IndexSearchRequest.java | 110 +- .../client/model/IndexSearchResponse.java | 153 +- .../com/formkiq/client/model/LocaleInfo.java | 110 +- .../client/model/LocaleResourceType.java | 28 +- .../formkiq/client/model/MalwareEngine.java | 24 +- .../client/model/MalwareScanResult.java | 161 +- .../client/model/MalwareScanStatus.java | 28 +- .../com/formkiq/client/model/Mapping.java | 168 +- .../client/model/MappingAttribute.java | 219 +- .../MappingAttributeLabelMatchingType.java | 30 +- .../model/MappingAttributeMetadataField.java | 28 +- .../model/MappingAttributeSourceType.java | 34 +- .../client/model/MatchDocumentTag.java | 147 +- .../com/formkiq/client/model/ModelCase.java | 252 +- .../java/com/formkiq/client/model/Nigo.java | 226 +- .../com/formkiq/client/model/NigoStatus.java | 40 +- .../com/formkiq/client/model/OcrConfig.java | 115 +- .../com/formkiq/client/model/OcrEngine.java | 23 +- .../formkiq/client/model/OcrKeyValues.java | 126 +- .../formkiq/client/model/OcrOutputType.java | 24 +- .../com/formkiq/client/model/OcrTable.java | 128 +- .../formkiq/client/model/OcrTableData.java | 110 +- .../com/formkiq/client/model/OpaPolicy.java | 124 +- .../client/model/OpaPolicyAttribute.java | 203 +- .../client/model/OpaPolicyAttributeEq.java | 132 +- .../client/model/OpaPolicyAttributeGt.java | 101 +- .../client/model/OpaPolicyAttributeGte.java | 101 +- .../client/model/OpaPolicyAttributeIn.java | 112 +- .../client/model/OpaPolicyAttributeInput.java | 101 +- .../client/model/OpaPolicyAttributeLt.java | 101 +- .../client/model/OpaPolicyAttributeLte.java | 101 +- .../client/model/OpaPolicyAttributeNeq.java | 110 +- .../client/model/OpaPolicyAttributeNotIn.java | 115 +- .../formkiq/client/model/OpaPolicyInput.java | 122 +- .../client/model/OpaPolicyInputMethod.java | 128 +- .../client/model/OpaPolicyInputResource.java | 128 +- .../formkiq/client/model/OpaPolicyItem.java | 197 +- .../formkiq/client/model/OpenSearchAlias.java | 110 +- .../formkiq/client/model/OpenSearchIndex.java | 192 +- .../client/model/OpenSearchIndexSetting.java | 127 +- .../client/model/OpenSearchS3Repository.java | 124 +- .../client/model/OpenSearchSnapshot.java | 251 +- .../model/OpenSearchSnapshotFailure.java | 166 +- .../client/model/OpenSearchSnapshotShard.java | 109 +- .../com/formkiq/client/model/PdfDocument.java | 127 +- .../client/model/PdfDocumentField.java | 124 +- .../client/model/QueryFulltextResponse.java | 101 +- .../java/com/formkiq/client/model/Queue.java | 122 +- .../formkiq/client/model/ReindexTarget.java | 24 +- .../formkiq/client/model/ResourceItem.java | 189 +- .../java/com/formkiq/client/model/Rule.java | 162 +- .../formkiq/client/model/RuleCondition.java | 127 +- .../client/model/RuleConditionAttribute.java | 32 +- .../client/model/RuleConditionCriterion.java | 32 +- .../client/model/RuleConditionMust.java | 172 +- .../client/model/RuleConditionOperation.java | 26 +- .../com/formkiq/client/model/Ruleset.java | 156 +- .../formkiq/client/model/RulesetStatus.java | 26 +- .../client/model/SchemaAttributes.java | 217 +- .../client/model/SearchRangeDataType.java | 26 +- .../client/model/SearchResponseFields.java | 128 +- .../client/model/SearchResultDocument.java | 410 +- .../model/SearchResultDocumentAttribute.java | 161 +- .../model/SetClassificationRequest.java | 112 +- .../model/SetDocumentAttributeRequest.java | 112 +- .../model/SetDocumentAttributesRequest.java | 131 +- .../SetDocumentDataClassificationRequest.java | 146 +- ...SetDocumentDataClassificationResponse.java | 166 +- .../model/SetDocumentFulltextRequest.java | 292 +- .../model/SetDocumentFulltextResponse.java | 110 +- .../client/model/SetDocumentOcrRequest.java | 138 +- .../model/SetDocumentRestoreResponse.java | 110 +- .../model/SetDocumentTagKeyRequest.java | 126 +- .../model/SetDocumentVersionRequest.java | 110 +- .../model/SetDocumentVersionResponse.java | 110 +- .../model/SetFolderPermissionsRequest.java | 144 +- .../model/SetGroupPermissionsRequest.java | 115 +- .../model/SetLocaleResourceItemRequest.java | 113 +- .../client/model/SetMappingRequest.java | 109 +- .../model/SetOpaAccessPolicyItemsRequest.java | 146 +- .../model/SetOpenSearchIndexRequest.java | 112 +- .../model/SetOpenSearchIndexResponse.java | 110 +- .../model/SetOpenSearchIndiceRequest.java | 110 +- .../com/formkiq/client/model/SetResponse.java | 110 +- .../client/model/SetSchemaAttributes.java | 217 +- .../client/model/SetSitesSchemaRequest.java | 126 +- .../client/model/SetWorkflowRequest.java | 165 +- .../client/model/SetWorkflowResponse.java | 110 +- .../java/com/formkiq/client/model/Site.java | 210 +- .../com/formkiq/client/model/SiteConfig.java | 154 +- .../com/formkiq/client/model/SiteGroup.java | 112 +- .../client/model/SiteGroupPermissions.java | 32 +- .../com/formkiq/client/model/SiteStatus.java | 26 +- .../com/formkiq/client/model/SiteUsage.java | 109 +- .../formkiq/client/model/StringFormat.java | 126 +- .../client/model/StringGeneratorType.java | 28 +- .../java/com/formkiq/client/model/Task.java | 226 +- .../com/formkiq/client/model/TaskStatus.java | 40 +- .../formkiq/client/model/TextractQuery.java | 138 +- .../formkiq/client/model/UpdateAttribute.java | 122 +- .../client/model/UpdateAttributeRequest.java | 117 +- .../com/formkiq/client/model/UpdateCase.java | 206 +- .../client/model/UpdateCaseRequest.java | 109 +- .../client/model/UpdateCaseResponse.java | 110 +- .../model/UpdateConfigurationRequest.java | 243 +- .../model/UpdateConfigurationResponse.java | 110 +- .../model/UpdateDocumentFulltextRequest.java | 299 +- .../model/UpdateDocumentFulltextResponse.java | 120 +- .../client/model/UpdateDocumentRequest.java | 359 +- .../client/model/UpdateEntityRequest.java | 109 +- .../UpdateMatchingDocumentTagsRequest.java | 144 +- ...pdateMatchingDocumentTagsRequestMatch.java | 128 +- ...dateMatchingDocumentTagsRequestUpdate.java | 148 +- .../UpdateMatchingDocumentTagsResponse.java | 122 +- .../com/formkiq/client/model/UpdateNigo.java | 206 +- .../client/model/UpdateNigoRequest.java | 109 +- .../client/model/UpdateNigoResponse.java | 110 +- .../formkiq/client/model/UpdateResponse.java | 110 +- .../com/formkiq/client/model/UpdateRule.java | 152 +- .../client/model/UpdateRuleRequest.java | 109 +- .../client/model/UpdateRuleResponse.java | 110 +- .../formkiq/client/model/UpdateRuleset.java | 132 +- .../client/model/UpdateRulesetRequest.java | 117 +- .../client/model/UpdateRulesetResponse.java | 110 +- .../com/formkiq/client/model/UpdateSite.java | 123 +- .../client/model/UpdateSiteRequest.java | 109 +- .../com/formkiq/client/model/UpdateTask.java | 206 +- .../client/model/UpdateTaskRequest.java | 109 +- .../client/model/UpdateTaskResponse.java | 110 +- .../client/model/UpdateWorkflowRequest.java | 135 +- .../client/model/UpdateWorkflowResponse.java | 110 +- .../java/com/formkiq/client/model/User.java | 178 +- .../formkiq/client/model/UserActivity.java | 152 +- .../client/model/UserActivityChanges.java | 106 +- .../client/model/UserActivityType.java | 36 +- .../formkiq/client/model/UserAttributes.java | 299 +- .../com/formkiq/client/model/UserShare.java | 216 +- .../client/model/UserSharePermission.java | 28 +- .../client/model/UserSharePermissionType.java | 24 +- .../formkiq/client/model/ValidationError.java | 124 +- .../model/ValidationErrorsResponse.java | 127 +- .../com/formkiq/client/model/Watermark.java | 155 +- .../client/model/WatermarkPosition.java | 128 +- .../model/WatermarkPositionXAnchor.java | 28 +- .../model/WatermarkPositionYAnchor.java | 28 +- .../formkiq/client/model/WatermarkScale.java | 26 +- .../com/formkiq/client/model/WebhookTag.java | 184 +- .../client/model/WorkflowDocument.java | 122 +- .../formkiq/client/model/WorkflowQueue.java | 126 +- .../formkiq/client/model/WorkflowStatus.java | 26 +- .../formkiq/client/model/WorkflowStep.java | 163 +- .../client/model/WorkflowStepDecision.java | 123 +- .../model/WorkflowStepDecisionType.java | 26 +- .../formkiq/client/model/WorkflowSummary.java | 177 +- .../client/api/AccessControlApiTest.java | 151 +- .../api/AdvancedDocumentSearchApiTest.java | 322 +- .../formkiq/client/api/AttributesApiTest.java | 193 +- .../client/api/CaseManagementApiTest.java | 669 +- .../client/api/CustomIndexApiTest.java | 106 +- .../client/api/DocumentActionsApiTest.java | 139 +- .../client/api/DocumentAttributesApiTest.java | 247 +- .../DocumentDataClassificationApiTest.java | 85 +- .../client/api/DocumentFoldersApiTest.java | 174 +- .../client/api/DocumentGenerationApiTest.java | 59 +- .../client/api/DocumentOcrApiTest.java | 154 +- .../client/api/DocumentSearchApiTest.java | 65 +- .../client/api/DocumentSharesApiTest.java | 107 +- .../client/api/DocumentTagsApiTest.java | 330 +- .../client/api/DocumentVersionsApiTest.java | 119 +- .../client/api/DocumentWorkflowsApiTest.java | 499 +- .../formkiq/client/api/DocumentsApiTest.java | 692 +- .../formkiq/client/api/ESignatureApiTest.java | 109 +- .../com/formkiq/client/api/EntityApiTest.java | 320 +- .../client/api/ExamineObjectsApiTest.java | 76 +- .../client/api/GoogleIntegrationApiTest.java | 54 +- .../client/api/MalwareScanApiTest.java | 117 +- .../formkiq/client/api/MappingsApiTest.java | 165 +- .../com/formkiq/client/api/PublicApiTest.java | 82 +- .../formkiq/client/api/ReindexApiTest.java | 55 +- .../formkiq/client/api/RulesetsApiTest.java | 339 +- .../formkiq/client/api/SchemasApiTest.java | 307 +- .../client/api/SystemManagementApiTest.java | 1122 +- .../formkiq/client/api/TagIndexApiTest.java | 54 +- .../client/api/UserActivitiesApiTest.java | 133 +- .../client/api/UserManagementApiTest.java | 403 +- .../formkiq/client/api/WebhooksApiTest.java | 257 +- .../client/model/ActivityStatusTest.java | 33 +- .../formkiq/client/model/ActivityTest.java | 245 +- .../client/model/AddActionParametersTest.java | 405 +- .../formkiq/client/model/AddActionTest.java | 77 +- .../client/model/AddApiKeyPermissionTest.java | 32 - .../client/model/AddApiKeyRequestTest.java | 79 +- .../client/model/AddApiKeyResponseTest.java | 49 +- .../client/model/AddAttributeRequestTest.java | 49 +- .../model/AddAttributeSchemaOptionalTest.java | 91 +- .../model/AddAttributeSchemaRequiredTest.java | 119 +- .../client/model/AddAttributeTest.java | 91 +- .../client/model/AddCaseRequestTest.java | 49 +- .../client/model/AddCaseResponseTest.java | 49 +- .../com/formkiq/client/model/AddCaseTest.java | 213 +- .../model/AddChildDocumentResponseTest.java | 77 +- .../client/model/AddChildDocumentTest.java | 213 +- .../model/AddClassificationRequestTest.java | 49 +- .../model/AddClassificationResponseTest.java | 49 +- .../client/model/AddClassificationTest.java | 69 +- .../model/AddDocumentActionsRequestTest.java | 49 +- .../model/AddDocumentActionsResponseTest.java | 49 +- .../AddDocumentActionsRetryResponseTest.java | 49 +- ...ddDocumentAttributeClassificationTest.java | 49 +- .../model/AddDocumentAttributeEntityTest.java | 91 +- .../AddDocumentAttributeRelationshipTest.java | 77 +- .../AddDocumentAttributeStandardTest.java | 119 +- .../model/AddDocumentAttributeTest.java | 245 +- .../model/AddDocumentAttributeValueTest.java | 105 +- .../AddDocumentAttributesRequestTest.java | 49 +- .../model/AddDocumentFulltextRequestTest.java | 229 +- .../AddDocumentFulltextResponseTest.java | 49 +- .../model/AddDocumentGenerateRequestTest.java | 119 +- .../AddDocumentGenerateResponseTest.java | 49 +- .../client/model/AddDocumentMetadataTest.java | 77 +- .../model/AddDocumentOcrRequestTest.java | 119 +- .../model/AddDocumentOcrResponseTest.java | 49 +- .../client/model/AddDocumentRequestTest.java | 277 +- .../client/model/AddDocumentResponseTest.java | 105 +- .../model/AddDocumentSyncRequestTest.java | 49 +- .../model/AddDocumentSyncServiceTest.java | 33 +- .../client/model/AddDocumentSyncTest.java | 69 +- .../client/model/AddDocumentTagTest.java | 77 +- .../model/AddDocumentTagsRequestTest.java | 49 +- .../model/AddDocumentUploadRequestTest.java | 213 +- ...dDocumentWorkflowDecisionsRequestTest.java | 78 +- ...DocumentWorkflowDecisionsResponseTest.java | 50 +- .../model/AddDocumentWorkflowRequestTest.java | 49 +- .../AddDocumentWorkflowResponseTest.java | 49 +- .../AddDocusignEnvelopesRequestTest.java | 105 +- .../AddDocusignEnvelopesResponseTest.java | 49 +- .../AddDocusignRecipientViewRequestTest.java | 69 +- .../AddDocusignRecipientViewResponseTest.java | 49 +- .../client/model/AddEntityAttributeTest.java | 119 +- .../client/model/AddEntityRequestTest.java | 49 +- .../client/model/AddEntityResponseTest.java | 49 +- .../formkiq/client/model/AddEntityTest.java | 69 +- .../model/AddEntityTypeRequestTest.java | 49 +- .../model/AddEntityTypeResponseTest.java | 49 +- .../client/model/AddEntityTypeTest.java | 69 +- .../client/model/AddFolderPermissionTest.java | 69 +- .../client/model/AddFolderRequestTest.java | 49 +- .../client/model/AddFolderResponseTest.java | 69 +- .../model/AddFolderShareRequestTest.java | 49 +- .../model/AddFolderShareResponseTest.java | 69 +- .../AddGoogleDocumentExportRequestTest.java | 69 +- .../AddGoogleDocumentExportResponseTest.java | 49 +- .../client/model/AddGroupRequestTest.java | 49 +- .../formkiq/client/model/AddGroupTest.java | 69 +- .../client/model/AddLocaleRequestTest.java | 49 +- ...dLocaleResourceClassificationItemTest.java | 106 +- .../AddLocaleResourceInterfaceItemTest.java | 77 +- .../AddLocaleResourceItemRequestTest.java | 49 +- .../AddLocaleResourceItemResponseTest.java | 49 +- .../AddLocaleResourceSchemaItemTest.java | 91 +- .../client/model/AddMappingRequestTest.java | 49 +- .../client/model/AddMappingResponseTest.java | 49 +- .../formkiq/client/model/AddMappingTest.java | 77 +- .../client/model/AddNigoRequestTest.java | 49 +- .../client/model/AddNigoResponseTest.java | 49 +- .../com/formkiq/client/model/AddNigoTest.java | 161 +- .../client/model/AddQueueRequestTest.java | 49 +- .../client/model/AddQueueResponseTest.java | 49 +- .../model/AddReindexDocumentRequestTest.java | 49 +- .../client/model/AddResourceItemTest.java | 119 +- .../formkiq/client/model/AddResponseTest.java | 49 +- .../client/model/AddRuleRequestTest.java | 49 +- .../client/model/AddRuleResponseTest.java | 49 +- .../com/formkiq/client/model/AddRuleTest.java | 105 +- .../client/model/AddRulesetRequestTest.java | 49 +- .../client/model/AddRulesetResponseTest.java | 49 +- .../formkiq/client/model/AddRulesetTest.java | 91 +- .../formkiq/client/model/AddShareTest.java | 69 +- .../client/model/AddSiteRequestTest.java | 49 +- .../com/formkiq/client/model/AddSiteTest.java | 77 +- .../client/model/AddTaskRequestTest.java | 49 +- .../client/model/AddTaskResponseTest.java | 49 +- .../com/formkiq/client/model/AddTaskTest.java | 161 +- .../client/model/AddUserRequestTest.java | 49 +- .../com/formkiq/client/model/AddUserTest.java | 69 +- .../client/model/AddWebhookRequestTest.java | 91 +- .../client/model/AddWebhookResponseTest.java | 69 +- .../model/AddWebhookTagRequestTest.java | 77 +- .../client/model/AddWorkflowRequestTest.java | 91 +- .../client/model/AddWorkflowResponseTest.java | 49 +- .../model/AddWorkflowStepDecisionTest.java | 69 +- .../model/AddWorkflowStepQueueTest.java | 69 +- .../client/model/AddWorkflowStepTest.java | 91 +- .../client/model/ApiKeyPermissionTest.java | 39 + .../com/formkiq/client/model/ApiKeyTest.java | 128 +- .../client/model/AttributeDataTypeTest.java | 33 +- .../AttributeSchemaCompositeKeyTest.java | 49 +- .../model/AttributeSchemaOptionalTest.java | 105 +- .../model/AttributeSchemaRequiredTest.java | 133 +- .../formkiq/client/model/AttributeTest.java | 91 +- .../client/model/AttributeTypeTest.java | 33 +- .../client/model/AttributeValueTypeTest.java | 33 +- .../formkiq/client/model/CaseStatusTest.java | 33 +- .../client/model/ChecksumTypeTest.java | 33 +- .../client/model/ChildDocumentTest.java | 245 +- .../model/ClassificationSummaryTest.java | 91 +- .../client/model/ClassificationTest.java | 91 +- .../DataClassificationAttributeTest.java | 69 +- .../client/model/DataClassificationTest.java | 105 +- .../model/DeleteApiKeyResponseTest.java | 49 +- .../model/DeleteCaseDocumentResponseTest.java | 49 +- .../DeleteCaseNigoDocumentResponseTest.java | 49 +- .../model/DeleteCaseNigoResponseTest.java | 49 +- .../client/model/DeleteCaseResponseTest.java | 49 +- .../DeleteCaseTaskDocumentResponseTest.java | 49 +- .../model/DeleteCaseTaskResponseTest.java | 49 +- .../model/DeleteFolderResponseTest.java | 49 +- .../model/DeleteFulltextResponseTest.java | 49 +- .../model/DeleteIndicesResponseTest.java | 49 +- .../client/model/DeleteQueueResponseTest.java | 49 +- .../client/model/DeleteResponseTest.java | 49 +- .../client/model/DeleteRuleResponseTest.java | 49 +- .../model/DeleteRulesetResponseTest.java | 49 +- .../client/model/DeleteShareResponseTest.java | 49 +- .../model/DeleteWorkflowResponseTest.java | 49 +- .../model/DocumentActionStatusTest.java | 33 +- .../client/model/DocumentActionTest.java | 261 +- .../client/model/DocumentActionTypeTest.java | 33 +- .../client/model/DocumentAttributeTest.java | 161 +- .../model/DocumentConfigContentTypesTest.java | 65 + .../client/model/DocumentConfigTest.java | 56 + .../DocumentFulltextAttributeEqTest.java | 77 +- .../model/DocumentFulltextAttributeTest.java | 77 +- .../model/DocumentFulltextRequestTest.java | 69 +- .../model/DocumentFulltextResponseTest.java | 49 +- .../model/DocumentFulltextSearchTest.java | 91 +- .../client/model/DocumentFulltextTagTest.java | 77 +- .../model/DocumentGenerateDataSourceTest.java | 77 +- ...entGenerateInsertDocumentPositionTest.java | 33 +- .../DocumentGenerateInsertDocumentTest.java | 69 +- .../model/DocumentGenerateOutputTypeTest.java | 33 +- .../formkiq/client/model/DocumentIdTest.java | 69 +- .../client/model/DocumentMetadataTest.java | 77 +- .../model/DocumentRelationshipTypeTest.java | 33 +- .../model/DocumentSearchAttributeTest.java | 105 +- .../DocumentSearchMatchAttributeTest.java | 91 +- .../model/DocumentSearchMatchTagTest.java | 77 +- .../client/model/DocumentSearchMetaTest.java | 105 +- .../client/model/DocumentSearchRangeTest.java | 77 +- .../model/DocumentSearchRequestTest.java | 69 +- .../model/DocumentSearchResponseTest.java | 77 +- .../client/model/DocumentSearchTagTest.java | 105 +- .../client/model/DocumentSearchTagsTest.java | 91 +- .../client/model/DocumentSearchTest.java | 133 +- .../client/model/DocumentSyncServiceTest.java | 33 +- .../client/model/DocumentSyncStatusTest.java | 33 +- .../client/model/DocumentSyncTest.java | 133 +- .../client/model/DocumentSyncTypeTest.java | 33 +- .../formkiq/client/model/DocumentTagTest.java | 133 +- .../formkiq/client/model/DocumentTest.java | 325 +- .../client/model/DocumentVersionTest.java | 147 +- .../model/DocumentWorkflowStatusTest.java | 33 +- .../client/model/DocumentWorkflowTest.java | 119 +- .../model/DocumentsCompressRequestTest.java | 49 +- .../model/DocumentsCompressResponseTest.java | 49 +- .../client/model/DocusignConfigTest.java | 91 +- .../client/model/DocusignEnvironmentTest.java | 33 +- .../model/DocusignInpersonSignerTest.java | 147 +- .../DocusignNotificationExpirationsTest.java | 77 +- .../DocusignNotificationRemindersTest.java | 77 +- .../model/DocusignNotificationTest.java | 77 +- .../model/DocusignRecipientViewTest.java | 133 +- .../model/DocusignSignHereTabsTest.java | 147 +- .../client/model/DocusignSignerTest.java | 133 +- .../client/model/DocusignSigningTabsTest.java | 49 +- .../client/model/EntityAttributeTest.java | 133 +- .../com/formkiq/client/model/EntityTest.java | 105 +- .../client/model/EntityTypeNamespaceTest.java | 33 +- .../formkiq/client/model/EntityTypeTest.java | 91 +- .../com/formkiq/client/model/ErrorTest.java | 69 +- .../client/model/ErrorsResponseTest.java | 49 +- .../client/model/FolderPermissionTest.java | 69 +- .../model/FolderPermissionTypeTest.java | 33 +- .../client/model/FulltextAttributeTest.java | 91 +- .../client/model/FulltextSearchItemTest.java | 293 +- .../model/GetActivitesResponseTest.java | 69 +- .../client/model/GetApiKeysResponseTest.java | 69 +- ...GetAttributeAllowedValuesResponseTest.java | 69 +- .../model/GetAttributeResponseTest.java | 49 +- .../model/GetAttributesResponseTest.java | 69 +- .../model/GetCaseDocumentsResponseTest.java | 69 +- .../client/model/GetCaseNigoResponseTest.java | 49 +- .../model/GetCaseNigosResponseTest.java | 69 +- .../client/model/GetCaseResponseTest.java | 49 +- .../client/model/GetCaseTaskResponseTest.java | 49 +- .../model/GetCaseTasksResponseTest.java | 69 +- .../client/model/GetCasesResponseTest.java | 69 +- .../model/GetClassificationResponseTest.java | 49 +- .../model/GetClassificationsResponseTest.java | 69 +- .../model/GetConfigurationResponseTest.java | 156 +- .../model/GetDocumentActionsResponseTest.java | 69 +- .../GetDocumentAttributeResponseTest.java | 49 +- .../GetDocumentAttributesResponseTest.java | 69 +- .../model/GetDocumentContentResponseTest.java | 91 +- ...ocumentDataClassificationResponseTest.java | 70 +- .../GetDocumentFulltextResponseTest.java | 309 +- .../model/GetDocumentOcrResponseTest.java | 213 +- .../client/model/GetDocumentResponseTest.java | 309 +- .../model/GetDocumentSyncResponseTest.java | 69 +- .../model/GetDocumentTagResponseTest.java | 133 +- .../model/GetDocumentTagsResponseTest.java | 77 +- .../model/GetDocumentUrlResponseTest.java | 77 +- .../GetDocumentVersionsResponseTest.java | 69 +- .../GetDocumentWorkflowResponseTest.java | 49 +- .../GetDocumentWorkflowsResponseTest.java | 69 +- .../model/GetDocumentsResponseTest.java | 77 +- .../client/model/GetEntitiesResponseTest.java | 69 +- .../client/model/GetEntityResponseTest.java | 49 +- .../model/GetEntityTypeResponseTest.java | 49 +- .../model/GetEntityTypesResponseTest.java | 69 +- .../model/GetExaminePdfResponseTest.java | 49 +- .../model/GetExaminePdfUrlResponseTest.java | 69 +- .../GetFolderPermissionsResponseTest.java | 49 +- .../client/model/GetFoldersResponseTest.java | 77 +- .../client/model/GetGroupResponseTest.java | 49 +- .../client/model/GetGroupsResponseTest.java | 69 +- .../GetLocaleResourceItemResponseTest.java | 49 +- .../GetLocaleResourceItemsResponseTest.java | 69 +- .../client/model/GetLocalesResponseTest.java | 69 +- .../model/GetMalwareScanResponseTest.java | 69 +- .../client/model/GetMappingResponseTest.java | 49 +- .../client/model/GetMappingsResponseTest.java | 69 +- .../GetOpaAccessPoliciesResponseTest.java | 69 +- .../GetOpaAccessPolicyItemsResponseTest.java | 49 +- .../model/GetOpaAccessPolicyResponseTest.java | 49 +- .../model/GetOpenSearchIndexResponseTest.java | 49 +- .../GetOpenSearchIndiceResponseTest.java | 49 +- ...nSearchSnapshotRepositoryResponseTest.java | 50 +- .../GetOpenSearchSnapshotResponseTest.java | 49 +- .../client/model/GetQueueResponseTest.java | 49 +- .../client/model/GetQueuesResponseTest.java | 69 +- .../client/model/GetRuleResponseTest.java | 49 +- .../client/model/GetRulesResponseTest.java | 69 +- .../client/model/GetRulesetResponseTest.java | 49 +- .../client/model/GetRulesetsResponseTest.java | 69 +- .../model/GetSiteGroupResponseTest.java | 49 +- .../model/GetSiteGroupsResponseTest.java | 49 +- .../client/model/GetSitesResponseTest.java | 77 +- .../model/GetSitesSchemaResponseTest.java | 69 +- .../model/GetUserActivitesResponseTest.java | 69 +- .../model/GetUserGroupsResponseTest.java | 69 +- .../client/model/GetUserResponseTest.java | 49 +- .../model/GetUserSharesResponseTest.java | 69 +- .../model/GetUsersInGroupResponseTest.java | 69 +- .../client/model/GetUsersResponseTest.java | 69 +- .../client/model/GetVersionResponseTest.java | 91 +- .../client/model/GetWebhookResponseTest.java | 147 +- .../model/GetWebhookTagsResponseTest.java | 77 +- .../client/model/GetWebhooksResponseTest.java | 69 +- .../GetWorkflowDocumentsResponseTest.java | 69 +- ...GetWorkflowQueueDocumentsResponseTest.java | 69 +- .../client/model/GetWorkflowResponseTest.java | 105 +- .../model/GetWorkflowsResponseTest.java | 69 +- .../client/model/GoogleConfigTest.java | 69 +- .../model/GoogleExportOutputTypeTest.java | 33 +- .../com/formkiq/client/model/GroupTest.java | 91 +- .../model/IndexFolderMoveRequestTest.java | 69 +- .../model/IndexFolderMoveResponseTest.java | 49 +- .../client/model/IndexSearchRequestTest.java | 49 +- .../client/model/IndexSearchResponseTest.java | 77 +- .../formkiq/client/model/IndexSearchTest.java | 49 +- .../formkiq/client/model/LocaleInfoTest.java | 49 +- .../client/model/LocaleResourceTypeTest.java | 33 +- .../client/model/MalwareEngineTest.java | 33 +- .../client/model/MalwareScanResultTest.java | 105 +- .../client/model/MalwareScanStatusTest.java | 33 +- ...MappingAttributeLabelMatchingTypeTest.java | 33 +- .../MappingAttributeMetadataFieldTest.java | 33 +- .../model/MappingAttributeSourceTypeTest.java | 33 +- .../client/model/MappingAttributeTest.java | 147 +- .../com/formkiq/client/model/MappingTest.java | 91 +- .../client/model/MatchDocumentTagTest.java | 77 +- .../formkiq/client/model/ModelCaseTest.java | 245 +- .../formkiq/client/model/NigoStatusTest.java | 33 +- .../com/formkiq/client/model/NigoTest.java | 213 +- .../formkiq/client/model/OcrConfigTest.java | 69 +- .../formkiq/client/model/OcrEngineTest.java | 33 +- .../client/model/OcrKeyValuesTest.java | 69 +- .../client/model/OcrOutputTypeTest.java | 33 +- .../client/model/OcrTableDataTest.java | 49 +- .../formkiq/client/model/OcrTableTest.java | 69 +- .../model/OpaPolicyAttributeEqTest.java | 91 +- .../model/OpaPolicyAttributeGtTest.java | 49 +- .../model/OpaPolicyAttributeGteTest.java | 49 +- .../model/OpaPolicyAttributeInTest.java | 49 +- .../model/OpaPolicyAttributeInputTest.java | 49 +- .../model/OpaPolicyAttributeLtTest.java | 49 +- .../model/OpaPolicyAttributeLteTest.java | 49 +- .../model/OpaPolicyAttributeNeqTest.java | 49 +- .../model/OpaPolicyAttributeNotInTest.java | 49 +- .../client/model/OpaPolicyAttributeTest.java | 161 +- .../model/OpaPolicyInputMethodTest.java | 69 +- .../model/OpaPolicyInputResourceTest.java | 69 +- .../client/model/OpaPolicyInputTest.java | 69 +- .../client/model/OpaPolicyItemTest.java | 119 +- .../formkiq/client/model/OpaPolicyTest.java | 69 +- .../client/model/OpenSearchAliasTest.java | 49 +- .../model/OpenSearchIndexSettingTest.java | 69 +- .../client/model/OpenSearchIndexTest.java | 119 +- .../model/OpenSearchS3RepositoryTest.java | 69 +- .../model/OpenSearchSnapshotFailureTest.java | 119 +- .../model/OpenSearchSnapshotShardTest.java | 77 +- .../client/model/OpenSearchSnapshotTest.java | 229 +- .../client/model/PdfDocumentFieldTest.java | 69 +- .../formkiq/client/model/PdfDocumentTest.java | 49 +- .../model/QueryFulltextResponseTest.java | 49 +- .../com/formkiq/client/model/QueueTest.java | 69 +- .../client/model/ReindexTargetTest.java | 33 +- .../client/model/ResourceItemTest.java | 133 +- .../model/RuleConditionAttributeTest.java | 33 +- .../model/RuleConditionCriterionTest.java | 33 +- .../client/model/RuleConditionMustTest.java | 119 +- .../model/RuleConditionOperationTest.java | 33 +- .../client/model/RuleConditionTest.java | 49 +- .../com/formkiq/client/model/RuleTest.java | 119 +- .../client/model/RulesetStatusTest.java | 33 +- .../com/formkiq/client/model/RulesetTest.java | 119 +- .../client/model/SchemaAttributesTest.java | 91 +- .../client/model/SearchRangeDataTypeTest.java | 33 +- .../model/SearchResponseFieldsTest.java | 69 +- .../SearchResultDocumentAttributeTest.java | 91 +- .../model/SearchResultDocumentTest.java | 405 +- .../model/SetClassificationRequestTest.java | 49 +- .../SetDocumentAttributeRequestTest.java | 49 +- .../SetDocumentAttributesRequestTest.java | 49 +- ...DocumentDataClassificationRequestTest.java | 50 +- ...ocumentDataClassificationResponseTest.java | 70 +- .../model/SetDocumentFulltextRequestTest.java | 229 +- .../SetDocumentFulltextResponseTest.java | 49 +- .../model/SetDocumentOcrRequestTest.java | 77 +- .../model/SetDocumentRestoreResponseTest.java | 49 +- .../model/SetDocumentTagKeyRequestTest.java | 69 +- .../model/SetDocumentVersionRequestTest.java | 49 +- .../model/SetDocumentVersionResponseTest.java | 49 +- .../SetFolderPermissionsRequestTest.java | 69 +- .../model/SetGroupPermissionsRequestTest.java | 49 +- .../SetLocaleResourceItemRequestTest.java | 49 +- .../client/model/SetMappingRequestTest.java | 49 +- .../SetOpaAccessPolicyItemsRequestTest.java | 49 +- .../model/SetOpenSearchIndexRequestTest.java | 49 +- .../model/SetOpenSearchIndexResponseTest.java | 49 +- .../model/SetOpenSearchIndiceRequestTest.java | 49 +- .../formkiq/client/model/SetResponseTest.java | 49 +- .../client/model/SetSchemaAttributesTest.java | 91 +- .../model/SetSitesSchemaRequestTest.java | 69 +- .../client/model/SetWorkflowRequestTest.java | 91 +- .../client/model/SetWorkflowResponseTest.java | 49 +- .../formkiq/client/model/SiteConfigTest.java | 91 +- .../model/SiteGroupPermissionsTest.java | 33 +- .../formkiq/client/model/SiteGroupTest.java | 49 +- .../formkiq/client/model/SiteStatusTest.java | 33 +- .../com/formkiq/client/model/SiteTest.java | 147 +- .../formkiq/client/model/SiteUsageTest.java | 69 +- .../client/model/StringFormatTest.java | 77 +- .../client/model/StringGeneratorTypeTest.java | 33 +- .../formkiq/client/model/TaskStatusTest.java | 33 +- .../com/formkiq/client/model/TaskTest.java | 213 +- .../client/model/TextractQueryTest.java | 77 +- .../model/UpdateAttributeRequestTest.java | 49 +- .../client/model/UpdateAttributeTest.java | 69 +- .../client/model/UpdateCaseRequestTest.java | 49 +- .../client/model/UpdateCaseResponseTest.java | 49 +- .../formkiq/client/model/UpdateCaseTest.java | 161 +- .../model/UpdateConfigurationRequestTest.java | 156 +- .../UpdateConfigurationResponseTest.java | 49 +- .../UpdateDocumentFulltextRequestTest.java | 229 +- .../UpdateDocumentFulltextResponseTest.java | 49 +- .../model/UpdateDocumentRequestTest.java | 261 +- .../client/model/UpdateEntityRequestTest.java | 49 +- ...eMatchingDocumentTagsRequestMatchTest.java | 50 +- ...UpdateMatchingDocumentTagsRequestTest.java | 69 +- ...MatchingDocumentTagsRequestUpdateTest.java | 50 +- ...pdateMatchingDocumentTagsResponseTest.java | 49 +- .../client/model/UpdateNigoRequestTest.java | 49 +- .../client/model/UpdateNigoResponseTest.java | 49 +- .../formkiq/client/model/UpdateNigoTest.java | 161 +- .../client/model/UpdateResponseTest.java | 49 +- .../client/model/UpdateRuleRequestTest.java | 49 +- .../client/model/UpdateRuleResponseTest.java | 49 +- .../formkiq/client/model/UpdateRuleTest.java | 105 +- .../model/UpdateRulesetRequestTest.java | 49 +- .../model/UpdateRulesetResponseTest.java | 49 +- .../client/model/UpdateRulesetTest.java | 91 +- .../client/model/UpdateSiteRequestTest.java | 49 +- .../formkiq/client/model/UpdateSiteTest.java | 69 +- .../client/model/UpdateTaskRequestTest.java | 49 +- .../client/model/UpdateTaskResponseTest.java | 49 +- .../formkiq/client/model/UpdateTaskTest.java | 161 +- .../model/UpdateWorkflowRequestTest.java | 77 +- .../model/UpdateWorkflowResponseTest.java | 49 +- .../client/model/UserActivityChangesTest.java | 69 +- .../client/model/UserActivityTest.java | 105 +- .../client/model/UserActivityTypeTest.java | 33 +- .../client/model/UserAttributesTest.java | 293 +- .../client/model/UserSharePermissionTest.java | 33 +- .../model/UserSharePermissionTypeTest.java | 33 +- .../formkiq/client/model/UserShareTest.java | 147 +- .../com/formkiq/client/model/UserTest.java | 133 +- .../client/model/ValidationErrorTest.java | 69 +- .../model/ValidationErrorsResponseTest.java | 49 +- .../client/model/WatermarkPositionTest.java | 91 +- .../model/WatermarkPositionXAnchorTest.java | 33 +- .../model/WatermarkPositionYAnchorTest.java | 33 +- .../client/model/WatermarkScaleTest.java | 33 +- .../formkiq/client/model/WatermarkTest.java | 119 +- .../formkiq/client/model/WebhookTagTest.java | 119 +- .../client/model/WorkflowDocumentTest.java | 69 +- .../client/model/WorkflowQueueTest.java | 69 +- .../client/model/WorkflowStatusTest.java | 33 +- .../model/WorkflowStepDecisionTest.java | 69 +- .../model/WorkflowStepDecisionTypeTest.java | 33 +- .../client/model/WorkflowStepTest.java | 91 +- .../client/model/WorkflowSummaryTest.java | 133 +- 970 files changed, 109082 insertions(+), 79032 deletions(-) create mode 100644 docs/ApiKeyPermission.md create mode 100644 docs/DocumentConfig.md create mode 100644 docs/DocumentConfigContentTypes.md delete mode 100644 src/main/java/com/formkiq/client/model/AddApiKeyPermission.java create mode 100644 src/main/java/com/formkiq/client/model/ApiKeyPermission.java create mode 100644 src/main/java/com/formkiq/client/model/DocumentConfig.java create mode 100644 src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java delete mode 100644 src/test/java/com/formkiq/client/model/AddApiKeyPermissionTest.java create mode 100644 src/test/java/com/formkiq/client/model/ApiKeyPermissionTest.java create mode 100644 src/test/java/com/formkiq/client/model/DocumentConfigContentTypesTest.java create mode 100644 src/test/java/com/formkiq/client/model/DocumentConfigTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 292540d2e..e132215b5 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -10,7 +10,6 @@ docs/Activity.md docs/ActivityStatus.md docs/AddAction.md docs/AddActionParameters.md -docs/AddApiKeyPermission.md docs/AddApiKeyRequest.md docs/AddApiKeyResponse.md docs/AddAttribute.md @@ -115,6 +114,7 @@ docs/AddWorkflowStepDecision.md docs/AddWorkflowStepQueue.md docs/AdvancedDocumentSearchApi.md docs/ApiKey.md +docs/ApiKeyPermission.md docs/Attribute.md docs/AttributeDataType.md docs/AttributeSchemaCompositeKey.md @@ -155,6 +155,8 @@ docs/DocumentActionType.md docs/DocumentActionsApi.md docs/DocumentAttribute.md docs/DocumentAttributesApi.md +docs/DocumentConfig.md +docs/DocumentConfigContentTypes.md docs/DocumentDataClassificationApi.md docs/DocumentFoldersApi.md docs/DocumentFulltextAttribute.md @@ -539,7 +541,6 @@ src/main/java/com/formkiq/client/model/Activity.java src/main/java/com/formkiq/client/model/ActivityStatus.java src/main/java/com/formkiq/client/model/AddAction.java src/main/java/com/formkiq/client/model/AddActionParameters.java -src/main/java/com/formkiq/client/model/AddApiKeyPermission.java src/main/java/com/formkiq/client/model/AddApiKeyRequest.java src/main/java/com/formkiq/client/model/AddApiKeyResponse.java src/main/java/com/formkiq/client/model/AddAttribute.java @@ -643,6 +644,7 @@ src/main/java/com/formkiq/client/model/AddWorkflowStep.java src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java src/main/java/com/formkiq/client/model/ApiKey.java +src/main/java/com/formkiq/client/model/ApiKeyPermission.java src/main/java/com/formkiq/client/model/Attribute.java src/main/java/com/formkiq/client/model/AttributeDataType.java src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java @@ -678,6 +680,8 @@ src/main/java/com/formkiq/client/model/DocumentAction.java src/main/java/com/formkiq/client/model/DocumentActionStatus.java src/main/java/com/formkiq/client/model/DocumentActionType.java src/main/java/com/formkiq/client/model/DocumentAttribute.java +src/main/java/com/formkiq/client/model/DocumentConfig.java +src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java @@ -1005,7 +1009,6 @@ src/test/java/com/formkiq/client/model/ActivityStatusTest.java src/test/java/com/formkiq/client/model/ActivityTest.java src/test/java/com/formkiq/client/model/AddActionParametersTest.java src/test/java/com/formkiq/client/model/AddActionTest.java -src/test/java/com/formkiq/client/model/AddApiKeyPermissionTest.java src/test/java/com/formkiq/client/model/AddApiKeyRequestTest.java src/test/java/com/formkiq/client/model/AddApiKeyResponseTest.java src/test/java/com/formkiq/client/model/AddAttributeRequestTest.java @@ -1108,6 +1111,7 @@ src/test/java/com/formkiq/client/model/AddWorkflowResponseTest.java src/test/java/com/formkiq/client/model/AddWorkflowStepDecisionTest.java src/test/java/com/formkiq/client/model/AddWorkflowStepQueueTest.java src/test/java/com/formkiq/client/model/AddWorkflowStepTest.java +src/test/java/com/formkiq/client/model/ApiKeyPermissionTest.java src/test/java/com/formkiq/client/model/ApiKeyTest.java src/test/java/com/formkiq/client/model/AttributeDataTypeTest.java src/test/java/com/formkiq/client/model/AttributeSchemaCompositeKeyTest.java @@ -1143,6 +1147,8 @@ src/test/java/com/formkiq/client/model/DocumentActionStatusTest.java src/test/java/com/formkiq/client/model/DocumentActionTest.java src/test/java/com/formkiq/client/model/DocumentActionTypeTest.java src/test/java/com/formkiq/client/model/DocumentAttributeTest.java +src/test/java/com/formkiq/client/model/DocumentConfigContentTypesTest.java +src/test/java/com/formkiq/client/model/DocumentConfigTest.java src/test/java/com/formkiq/client/model/DocumentFulltextAttributeEqTest.java src/test/java/com/formkiq/client/model/DocumentFulltextAttributeTest.java src/test/java/com/formkiq/client/model/DocumentFulltextRequestTest.java diff --git a/api/openapi.yaml b/api/openapi.yaml index b37f426c6..b1b86ca90 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -21012,6 +21012,15 @@ components: userId: userId hmacSignature: hmacSignature integrationKey: integrationKey + document: + contentTypes: + allowlist: + - application/pdf + - image/png + - image/jpeg + denylist: + - application/x-msdownload + - application/x-sh google: workloadIdentityServiceAccount: workloadIdentityServiceAccount workloadIdentityAudience: workloadIdentityAudience @@ -21036,6 +21045,8 @@ components: notificationEmail: description: Email address to use for notifications type: string + document: + $ref: "#/components/schemas/DocumentConfig" ocr: $ref: "#/components/schemas/OcrConfig" google: @@ -21276,10 +21287,10 @@ components: type: array permissions: items: - $ref: "#/components/schemas/AddApiKeyPermission" + $ref: "#/components/schemas/ApiKeyPermission" type: array type: object - AddApiKeyPermission: + ApiKeyPermission: description: List of API permissions (defaults to READ / WRITE / DELETE) enum: - READ @@ -22079,6 +22090,9 @@ components: - READ name: name siteId: siteId + groups: + - groups + - groups userId: userId - apiKey: apiKey insertedDate: insertedDate @@ -22087,6 +22101,9 @@ components: - READ name: name siteId: siteId + groups: + - groups + - groups userId: userId properties: next: @@ -22107,6 +22124,9 @@ components: - READ name: name siteId: siteId + groups: + - groups + - groups userId: userId properties: name: @@ -22123,13 +22143,12 @@ components: description: Inserted Timestamp type: string permissions: - description: List of permissions items: - enum: - - READ - - WRITE - - DELETE - - GOVERN + $ref: "#/components/schemas/ApiKeyPermission" + type: array + groups: + description: List of groups to add as custom claims to API Key + items: type: string type: array type: object @@ -22143,6 +22162,15 @@ components: userId: userId hmacSignature: hmacSignature integrationKey: integrationKey + document: + contentTypes: + allowlist: + - application/pdf + - image/png + - image/jpeg + denylist: + - application/x-msdownload + - application/x-sh google: workloadIdentityServiceAccount: workloadIdentityServiceAccount workloadIdentityAudience: workloadIdentityAudience @@ -22168,6 +22196,8 @@ components: description: Email address to use for notifications (Must be verified identity created in AWS SES) type: string + document: + $ref: "#/components/schemas/DocumentConfig" ocr: $ref: "#/components/schemas/OcrConfig" google: @@ -22210,6 +22240,48 @@ components: using OCR MaxTransactions) type: number type: object + DocumentConfig: + example: + contentTypes: + allowlist: + - application/pdf + - image/png + - image/jpeg + denylist: + - application/x-msdownload + - application/x-sh + properties: + contentTypes: + $ref: "#/components/schemas/DocumentConfigContentTypes" + type: object + DocumentConfigContentTypes: + example: + allowlist: + - application/pdf + - image/png + - image/jpeg + denylist: + - application/x-msdownload + - application/x-sh + properties: + allowlist: + example: + - application/pdf + - image/png + - image/jpeg + items: + description: Allowed MIME types + type: string + type: array + denylist: + example: + - application/x-msdownload + - application/x-sh + items: + description: Disallowed MIME types + type: string + type: array + type: object OcrConfig: example: maxPagesPerTransaction: 0.8008281904610115 diff --git a/docs/AddApiKeyRequest.md b/docs/AddApiKeyRequest.md index 62b007537..901b89096 100644 --- a/docs/AddApiKeyRequest.md +++ b/docs/AddApiKeyRequest.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**name** | **String** | Name of API Key | [optional] | |**groups** | **List<String>** | Optional list of groups to add as custom claims to API Key | [optional] | -|**permissions** | **List<AddApiKeyPermission>** | | [optional] | +|**permissions** | **List<ApiKeyPermission>** | | [optional] | diff --git a/docs/ApiKey.md b/docs/ApiKey.md index a0021d080..fa61b59e3 100644 --- a/docs/ApiKey.md +++ b/docs/ApiKey.md @@ -12,18 +12,8 @@ |**userId** | **String** | | [optional] | |**siteId** | **String** | | [optional] | |**insertedDate** | **String** | Inserted Timestamp | [optional] | -|**permissions** | [**List<PermissionsEnum>**](#List<PermissionsEnum>) | List of permissions | [optional] | - - - -## Enum: List<PermissionsEnum> - -| Name | Value | -|---- | -----| -| READ | "READ" | -| WRITE | "WRITE" | -| DELETE | "DELETE" | -| GOVERN | "GOVERN" | +|**permissions** | **List<ApiKeyPermission>** | | [optional] | +|**groups** | **List<String>** | List of groups to add as custom claims to API Key | [optional] | diff --git a/docs/ApiKeyPermission.md b/docs/ApiKeyPermission.md new file mode 100644 index 000000000..d4d15d456 --- /dev/null +++ b/docs/ApiKeyPermission.md @@ -0,0 +1,17 @@ + + +# ApiKeyPermission + +## Enum + + +* `READ` (value: `"READ"`) + +* `WRITE` (value: `"WRITE"`) + +* `DELETE` (value: `"DELETE"`) + +* `GOVERN` (value: `"GOVERN"`) + + + diff --git a/docs/DocumentConfig.md b/docs/DocumentConfig.md new file mode 100644 index 000000000..cd0e8a6dd --- /dev/null +++ b/docs/DocumentConfig.md @@ -0,0 +1,13 @@ + + +# DocumentConfig + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**contentTypes** | [**DocumentConfigContentTypes**](DocumentConfigContentTypes.md) | | [optional] | + + + diff --git a/docs/DocumentConfigContentTypes.md b/docs/DocumentConfigContentTypes.md new file mode 100644 index 000000000..f9865a31e --- /dev/null +++ b/docs/DocumentConfigContentTypes.md @@ -0,0 +1,14 @@ + + +# DocumentConfigContentTypes + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allowlist** | **List<String>** | | [optional] | +|**denylist** | **List<String>** | | [optional] | + + + diff --git a/docs/GetConfigurationResponse.md b/docs/GetConfigurationResponse.md index 50d873f6b..9cf85e545 100644 --- a/docs/GetConfigurationResponse.md +++ b/docs/GetConfigurationResponse.md @@ -12,6 +12,7 @@ |**maxDocuments** | **String** | Set Maximum number of Documents allowed | [optional] | |**maxWebhooks** | **String** | Set Maximum number of Webhooks allowed | [optional] | |**notificationEmail** | **String** | Email address to use for notifications (Must be verified identity created in AWS SES) | [optional] | +|**document** | [**DocumentConfig**](DocumentConfig.md) | | [optional] | |**ocr** | [**OcrConfig**](OcrConfig.md) | | [optional] | |**google** | [**GoogleConfig**](GoogleConfig.md) | | [optional] | |**docusign** | [**DocusignConfig**](DocusignConfig.md) | | [optional] | diff --git a/docs/UpdateConfigurationRequest.md b/docs/UpdateConfigurationRequest.md index da7e045dd..523f92e35 100644 --- a/docs/UpdateConfigurationRequest.md +++ b/docs/UpdateConfigurationRequest.md @@ -12,6 +12,7 @@ |**maxDocuments** | **String** | Set Maximum number of Documents allowed | [optional] | |**maxWebhooks** | **String** | Set Maximum number of Webhooks allowed | [optional] | |**notificationEmail** | **String** | Email address to use for notifications | [optional] | +|**document** | [**DocumentConfig**](DocumentConfig.md) | | [optional] | |**ocr** | [**OcrConfig**](OcrConfig.md) | | [optional] | |**google** | [**GoogleConfig**](GoogleConfig.md) | | [optional] | |**docusign** | [**DocusignConfig**](DocusignConfig.md) | | [optional] | diff --git a/src/main/java/com/formkiq/client/api/AccessControlApi.java b/src/main/java/com/formkiq/client/api/AccessControlApi.java index 9f09f9f95..1000e9545 100644 --- a/src/main/java/com/formkiq/client/api/AccessControlApi.java +++ b/src/main/java/com/formkiq/client/api/AccessControlApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -42,679 +49,982 @@ import java.util.Map; public class AccessControlApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public AccessControlApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AccessControlApi() { + this(Configuration.getDefaultApiClient()); + } + + public AccessControlApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for deleteOpaAccessPolicyItems + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public AccessControlApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = null; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpaAccessPolicyItemsValidateBeforeCall( + @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling deleteOpaAccessPolicyItems(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + return deleteOpaAccessPolicyItemsCall(siteId, _callback); + + } + + /** + * Delete OPA Access Policy Items Delete OPA Access Policy Items + * + * @param siteId Site Identifier (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteOpaAccessPolicyItems(@javax.annotation.Nonnull String siteId) + throws ApiException { + ApiResponse localVarResp = deleteOpaAccessPolicyItemsWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Delete OPA Access Policy Items Delete OPA Access Policy Items + * + * @param siteId Site Identifier (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteOpaAccessPolicyItemsWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteOpaAccessPolicyItemsValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete OPA Access Policy Items (asynchronously) Delete OPA Access Policy Items + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOpaAccessPolicyItemsValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getOpaAccessPolicies + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpaAccessPoliciesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Build call for deleteOpaAccessPolicyItems - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } + Object localVarPostBody = null; - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpaAccessPolicyItemsValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling deleteOpaAccessPolicyItems(Async)"); - } + // create path and map variables + String localVarPath = "/sites/opa/accessPolicies"; - return deleteOpaAccessPolicyItemsCall(siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete OPA Access Policy Items - * Delete OPA Access Policy Items - * @param siteId Site Identifier (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteOpaAccessPolicyItems(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = deleteOpaAccessPolicyItemsWithHttpInfo(siteId); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Delete OPA Access Policy Items - * Delete OPA Access Policy Items - * @param siteId Site Identifier (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteOpaAccessPolicyItemsWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteOpaAccessPolicyItemsValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpaAccessPoliciesValidateBeforeCall(final ApiCallback _callback) + throws ApiException { + return getOpaAccessPoliciesCall(_callback); + + } + + /** + * Get OPAs Access Policies Returns a list of OPA Access Policies, can only be requested with + * ADMIN privileges + * + * @return GetOpaAccessPoliciesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetOpaAccessPoliciesResponse getOpaAccessPolicies() throws ApiException { + ApiResponse localVarResp = getOpaAccessPoliciesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get OPAs Access Policies Returns a list of OPA Access Policies, can only be requested with + * ADMIN privileges + * + * @return ApiResponse<GetOpaAccessPoliciesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getOpaAccessPoliciesWithHttpInfo() + throws ApiException { + okhttp3.Call localVarCall = getOpaAccessPoliciesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get OPAs Access Policies (asynchronously) Returns a list of OPA Access Policies, can only be + * requested with ADMIN privileges + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpaAccessPoliciesAsync( + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpaAccessPoliciesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getOpaAccessPolicy + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpaAccessPolicyCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Delete OPA Access Policy Items (asynchronously) - * Delete OPA Access Policy Items - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteOpaAccessPolicyItemsValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getOpaAccessPolicies - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpaAccessPoliciesCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/opa/accessPolicies"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } + Object localVarPostBody = null; - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpaAccessPoliciesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getOpaAccessPoliciesCall(_callback); + // create path and map variables + String localVarPath = "/sites/{siteId}/opa/accessPolicy".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Get OPAs Access Policies - * Returns a list of OPA Access Policies, can only be requested with ADMIN privileges - * @return GetOpaAccessPoliciesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetOpaAccessPoliciesResponse getOpaAccessPolicies() throws ApiException { - ApiResponse localVarResp = getOpaAccessPoliciesWithHttpInfo(); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get OPAs Access Policies - * Returns a list of OPA Access Policies, can only be requested with ADMIN privileges - * @return ApiResponse<GetOpaAccessPoliciesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getOpaAccessPoliciesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getOpaAccessPoliciesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get OPAs Access Policies (asynchronously) - * Returns a list of OPA Access Policies, can only be requested with ADMIN privileges - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpaAccessPoliciesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpaAccessPoliciesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpaAccessPolicyValidateBeforeCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getOpaAccessPolicy(Async)"); } - /** - * Build call for getOpaAccessPolicy - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpaAccessPolicyCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opa/accessPolicy" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpaAccessPolicyValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getOpaAccessPolicy(Async)"); - } - - return getOpaAccessPolicyCall(siteId, _callback); + return getOpaAccessPolicyCall(siteId, _callback); + + } + + /** + * Get OPA Access Policy Returns OPA Access Policy, can only be requested with ADMIN privileges + * + * @param siteId Site Identifier (required) + * @return GetOpaAccessPolicyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetOpaAccessPolicyResponse getOpaAccessPolicy(@javax.annotation.Nonnull String siteId) + throws ApiException { + ApiResponse localVarResp = getOpaAccessPolicyWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get OPA Access Policy Returns OPA Access Policy, can only be requested with ADMIN privileges + * + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpaAccessPolicyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getOpaAccessPolicyWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpaAccessPolicyValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get OPA Access Policy (asynchronously) Returns OPA Access Policy, can only be requested with + * ADMIN privileges + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpaAccessPolicyAsync(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpaAccessPolicyValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getOpaAccessPolicyItems + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Get OPA Access Policy - * Returns OPA Access Policy, can only be requested with ADMIN privileges - * @param siteId Site Identifier (required) - * @return GetOpaAccessPolicyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetOpaAccessPolicyResponse getOpaAccessPolicy(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = getOpaAccessPolicyWithHttpInfo(siteId); - return localVarResp.getData(); - } + Object localVarPostBody = null; - /** - * Get OPA Access Policy - * Returns OPA Access Policy, can only be requested with ADMIN privileges - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpaAccessPolicyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getOpaAccessPolicyWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpaAccessPolicyValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } + // create path and map variables + String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - /** - * Get OPA Access Policy (asynchronously) - * Returns OPA Access Policy, can only be requested with ADMIN privileges - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpaAccessPolicyAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpaAccessPolicyValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getOpaAccessPolicyItems - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpaAccessPolicyItemsValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getOpaAccessPolicyItems(Async)"); - } - - return getOpaAccessPolicyItemsCall(siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get OPA Access Policy Items - * Returns OPA Access Policy Items, can only be requested with ADMIN privileges - * @param siteId Site Identifier (required) - * @return GetOpaAccessPolicyItemsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetOpaAccessPolicyItemsResponse getOpaAccessPolicyItems(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = getOpaAccessPolicyItemsWithHttpInfo(siteId); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get OPA Access Policy Items - * Returns OPA Access Policy Items, can only be requested with ADMIN privileges - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpaAccessPolicyItemsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getOpaAccessPolicyItemsWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpaAccessPolicyItemsValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpaAccessPolicyItemsValidateBeforeCall( + @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getOpaAccessPolicyItems(Async)"); } - /** - * Get OPA Access Policy Items (asynchronously) - * Returns OPA Access Policy Items, can only be requested with ADMIN privileges - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpaAccessPolicyItemsValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setOpaAccessPolicyItems - * @param siteId Site Identifier (required) - * @param setOpaAccessPolicyItemsRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call setOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setOpaAccessPolicyItemsRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return getOpaAccessPolicyItemsCall(siteId, _callback); + + } + + /** + * Get OPA Access Policy Items Returns OPA Access Policy Items, can only be requested with ADMIN + * privileges + * + * @param siteId Site Identifier (required) + * @return GetOpaAccessPolicyItemsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetOpaAccessPolicyItemsResponse getOpaAccessPolicyItems( + @javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = + getOpaAccessPolicyItemsWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get OPA Access Policy Items Returns OPA Access Policy Items, can only be requested with ADMIN + * privileges + * + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpaAccessPolicyItemsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getOpaAccessPolicyItemsWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpaAccessPolicyItemsValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get OPA Access Policy Items (asynchronously) Returns OPA Access Policy Items, can only be + * requested with ADMIN privileges + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpaAccessPolicyItemsValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setOpaAccessPolicyItems + * + * @param siteId Site Identifier (required) + * @param setOpaAccessPolicyItemsRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call setOpaAccessPolicyItemsCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call setOpaAccessPolicyItemsValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling setOpaAccessPolicyItems(Async)"); - } + Object localVarPostBody = setOpaAccessPolicyItemsRequest; - // verify the required parameter 'setOpaAccessPolicyItemsRequest' is set - if (setOpaAccessPolicyItemsRequest == null) { - throw new ApiException("Missing the required parameter 'setOpaAccessPolicyItemsRequest' when calling setOpaAccessPolicyItems(Async)"); - } + // create path and map variables + String localVarPath = "/sites/{siteId}/opa/accessPolicy/policyItems" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - return setOpaAccessPolicyItemsCall(siteId, setOpaAccessPolicyItemsRequest, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set opa access policy items, can only be requested with ADMIN privileges - * Sets opa access policy items - * @param siteId Site Identifier (required) - * @param setOpaAccessPolicyItemsRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public SetResponse setOpaAccessPolicyItems(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest) throws ApiException { - ApiResponse localVarResp = setOpaAccessPolicyItemsWithHttpInfo(siteId, setOpaAccessPolicyItemsRequest); - return localVarResp.getData(); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set opa access policy items, can only be requested with ADMIN privileges - * Sets opa access policy items - * @param siteId Site Identifier (required) - * @param setOpaAccessPolicyItemsRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse setOpaAccessPolicyItemsWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest) throws ApiException { - okhttp3.Call localVarCall = setOpaAccessPolicyItemsValidateBeforeCall(siteId, setOpaAccessPolicyItemsRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setOpaAccessPolicyItemsValidateBeforeCall( + @javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling setOpaAccessPolicyItems(Async)"); } - /** - * Set opa access policy items, can only be requested with ADMIN privileges (asynchronously) - * Sets opa access policy items - * @param siteId Site Identifier (required) - * @param setOpaAccessPolicyItemsRequest (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call setOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setOpaAccessPolicyItemsValidateBeforeCall(siteId, setOpaAccessPolicyItemsRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'setOpaAccessPolicyItemsRequest' is set + if (setOpaAccessPolicyItemsRequest == null) { + throw new ApiException( + "Missing the required parameter 'setOpaAccessPolicyItemsRequest' when calling setOpaAccessPolicyItems(Async)"); } + + return setOpaAccessPolicyItemsCall(siteId, setOpaAccessPolicyItemsRequest, _callback); + + } + + /** + * Set opa access policy items, can only be requested with ADMIN privileges Sets opa access policy + * items + * + * @param siteId Site Identifier (required) + * @param setOpaAccessPolicyItemsRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public SetResponse setOpaAccessPolicyItems(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest) + throws ApiException { + ApiResponse localVarResp = + setOpaAccessPolicyItemsWithHttpInfo(siteId, setOpaAccessPolicyItemsRequest); + return localVarResp.getData(); + } + + /** + * Set opa access policy items, can only be requested with ADMIN privileges Sets opa access policy + * items + * + * @param siteId Site Identifier (required) + * @param setOpaAccessPolicyItemsRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse setOpaAccessPolicyItemsWithHttpInfo( + @javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest) + throws ApiException { + okhttp3.Call localVarCall = + setOpaAccessPolicyItemsValidateBeforeCall(siteId, setOpaAccessPolicyItemsRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set opa access policy items, can only be requested with ADMIN privileges (asynchronously) Sets + * opa access policy items + * + * @param siteId Site Identifier (required) + * @param setOpaAccessPolicyItemsRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call setOpaAccessPolicyItemsAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setOpaAccessPolicyItemsValidateBeforeCall(siteId, + setOpaAccessPolicyItemsRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/AdvancedDocumentSearchApi.java b/src/main/java/com/formkiq/client/api/AdvancedDocumentSearchApi.java index 8386b98ef..cba0f161e 100644 --- a/src/main/java/com/formkiq/client/api/AdvancedDocumentSearchApi.java +++ b/src/main/java/com/formkiq/client/api/AdvancedDocumentSearchApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -47,1342 +54,1964 @@ import java.util.Map; public class AdvancedDocumentSearchApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public AdvancedDocumentSearchApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AdvancedDocumentSearchApi() { + this(Configuration.getDefaultApiClient()); + } + + public AdvancedDocumentSearchApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocumentFulltext + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentFulltextRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentFulltextCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public AdvancedDocumentSearchApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addDocumentFulltextRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentFulltextValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocumentFulltext(Async)"); } - /** - * Build call for addDocumentFulltext - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentFulltextRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentFulltextCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentFulltextRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addDocumentFulltextCall(documentId, siteId, addDocumentFulltextRequest, _callback); + + } + + /** + * Add document's full-text Add a document to OpenSearch; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentFulltextRequest (optional) + * @return AddDocumentFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddDocumentFulltextResponse addDocumentFulltext( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest) + throws ApiException { + ApiResponse localVarResp = + addDocumentFulltextWithHttpInfo(documentId, siteId, addDocumentFulltextRequest); + return localVarResp.getData(); + } + + /** + * Add document's full-text Add a document to OpenSearch; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentFulltextRequest (optional) + * @return ApiResponse<AddDocumentFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addDocumentFulltextWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest) + throws ApiException { + okhttp3.Call localVarCall = + addDocumentFulltextValidateBeforeCall(documentId, siteId, addDocumentFulltextRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add document's full-text (asynchronously) Add a document to OpenSearch; available as an + * Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentFulltextRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentFulltextValidateBeforeCall(documentId, siteId, + addDocumentFulltextRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteDocumentFulltext + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentFulltextCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentFulltextValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentFulltext(Async)"); - } + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - return addDocumentFulltextCall(documentId, siteId, addDocumentFulltextRequest, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add document's full-text - * Add a document to OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentFulltextRequest (optional) - * @return AddDocumentFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddDocumentFulltextResponse addDocumentFulltext(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest) throws ApiException { - ApiResponse localVarResp = addDocumentFulltextWithHttpInfo(documentId, siteId, addDocumentFulltextRequest); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add document's full-text - * Add a document to OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentFulltextRequest (optional) - * @return ApiResponse<AddDocumentFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addDocumentFulltextWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest) throws ApiException { - okhttp3.Call localVarCall = addDocumentFulltextValidateBeforeCall(documentId, siteId, addDocumentFulltextRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add document's full-text (asynchronously) - * Add a document to OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentFulltextRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentFulltextRequest addDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentFulltextValidateBeforeCall(documentId, siteId, addDocumentFulltextRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentFulltextValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocumentFulltext(Async)"); } - /** - * Build call for deleteDocumentFulltext - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentFulltextCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return deleteDocumentFulltextCall(documentId, siteId, _callback); + + } + + /** + * Delete document full-text Remove full text search for a document from OpenSearch; available as + * an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteFulltextResponse deleteDocumentFulltext(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + deleteDocumentFulltextWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete document full-text Remove full text search for a document from OpenSearch; available as + * an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentFulltextWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteDocumentFulltextValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document full-text (asynchronously) Remove full text search for a document from + * OpenSearch; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + deleteDocumentFulltextValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteDocumentFulltextTag + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentFulltextTagCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentFulltextValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentFulltext(Async)"); - } + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext/tags/{tagKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); - return deleteDocumentFulltextCall(documentId, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete document full-text - * Remove full text search for a document from OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteFulltextResponse deleteDocumentFulltext(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteDocumentFulltextWithHttpInfo(documentId, siteId); - return localVarResp.getData(); + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - /** - * Delete document full-text - * Remove full text search for a document from OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentFulltextWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentFulltextValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete document full-text (asynchronously) - * Remove full text search for a document from OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentFulltextValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Build call for deleteDocumentFulltextTag - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentFulltextTagCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext/tags/{tagKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentFulltextTagValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocumentFulltextTag(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentFulltextTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentFulltextTag(Async)"); - } + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException( + "Missing the required parameter 'tagKey' when calling deleteDocumentFulltextTag(Async)"); + } - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException("Missing the required parameter 'tagKey' when calling deleteDocumentFulltextTag(Async)"); - } + return deleteDocumentFulltextTagCall(documentId, tagKey, siteId, shareKey, _callback); + + } + + /** + * Delete document full-text tag Remove document tags from OpenSearch; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public void deleteDocumentFulltextTag(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey) throws ApiException { + deleteDocumentFulltextTagWithHttpInfo(documentId, tagKey, siteId, shareKey); + } + + /** + * Delete document full-text tag Remove document tags from OpenSearch; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentFulltextTagWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + okhttp3.Call localVarCall = + deleteDocumentFulltextTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete document full-text tag (asynchronously) Remove document tags from OpenSearch; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentFulltextTagAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentFulltextTagValidateBeforeCall(documentId, tagKey, + siteId, shareKey, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + + /** + * Build call for deleteDocumentFulltextTagAndValue + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentFulltextTagAndValueCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext/tags/{tagKey}/{tagValue}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())) + .replace("{" + "tagValue" + "}", localVarApiClient.escapeString(tagValue.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } - return deleteDocumentFulltextTagCall(documentId, tagKey, siteId, shareKey, _callback); + final String[] localVarAccepts = {}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Delete document full-text tag - * Remove document tags from OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public void deleteDocumentFulltextTag(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - deleteDocumentFulltextTagWithHttpInfo(documentId, tagKey, siteId, shareKey); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentFulltextTagAndValueValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocumentFulltextTagAndValue(Async)"); } - /** - * Delete document full-text tag - * Remove document tags from OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentFulltextTagWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentFulltextTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, null); - return localVarApiClient.execute(localVarCall); + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException( + "Missing the required parameter 'tagKey' when calling deleteDocumentFulltextTagAndValue(Async)"); } - /** - * Delete document full-text tag (asynchronously) - * Remove document tags from OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentFulltextTagAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentFulltextTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; + // verify the required parameter 'tagValue' is set + if (tagValue == null) { + throw new ApiException( + "Missing the required parameter 'tagValue' when calling deleteDocumentFulltextTagAndValue(Async)"); } - /** - * Build call for deleteDocumentFulltextTagAndValue - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentFulltextTagAndValueCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext/tags/{tagKey}/{tagValue}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())) - .replace("{" + "tagValue" + "}", localVarApiClient.escapeString(tagValue.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return deleteDocumentFulltextTagAndValueCall(documentId, tagKey, tagValue, siteId, shareKey, + _callback); + + } + + /** + * Delete document full-text tag/value Remove document tag/value from OpenSearch; available as an + * Add-On Module + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public void deleteDocumentFulltextTagAndValue(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + deleteDocumentFulltextTagAndValueWithHttpInfo(documentId, tagKey, tagValue, siteId, shareKey); + } + + /** + * Delete document full-text tag/value Remove document tag/value from OpenSearch; available as an + * Add-On Module + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentFulltextTagAndValueWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentFulltextTagAndValueValidateBeforeCall(documentId, + tagKey, tagValue, siteId, shareKey, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete document full-text tag/value (asynchronously) Remove document tag/value from OpenSearch; + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentFulltextTagAndValueAsync( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentFulltextTagAndValueValidateBeforeCall(documentId, + tagKey, tagValue, siteId, shareKey, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentFulltext + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentFulltextCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentFulltextTagAndValueValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentFulltextTagAndValue(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException("Missing the required parameter 'tagKey' when calling deleteDocumentFulltextTagAndValue(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - // verify the required parameter 'tagValue' is set - if (tagValue == null) { - throw new ApiException("Missing the required parameter 'tagValue' when calling deleteDocumentFulltextTagAndValue(Async)"); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - return deleteDocumentFulltextTagAndValueCall(documentId, tagKey, tagValue, siteId, shareKey, _callback); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - /** - * Delete document full-text tag/value - * Remove document tag/value from OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public void deleteDocumentFulltextTagAndValue(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - deleteDocumentFulltextTagAndValueWithHttpInfo(documentId, tagKey, tagValue, siteId, shareKey); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete document full-text tag/value - * Remove document tag/value from OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentFulltextTagAndValueWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentFulltextTagAndValueValidateBeforeCall(documentId, tagKey, tagValue, siteId, shareKey, null); - return localVarApiClient.execute(localVarCall); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Delete document full-text tag/value (asynchronously) - * Remove document tag/value from OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentFulltextTagAndValueAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentFulltextTagAndValueValidateBeforeCall(documentId, tagKey, tagValue, siteId, shareKey, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentFulltextValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentFulltext(Async)"); } - /** - * Build call for getDocumentFulltext - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentFulltextCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return getDocumentFulltextCall(documentId, siteId, shareKey, _callback); + + } + + /** + * Get document's full-text Retrieve an OpenSearch document's details, i.e., metadata + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentFulltextResponse getDocumentFulltext( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = + getDocumentFulltextWithHttpInfo(documentId, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Get document's full-text Retrieve an OpenSearch document's details, i.e., metadata + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentFulltextWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = + getDocumentFulltextValidateBeforeCall(documentId, siteId, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document's full-text (asynchronously) Retrieve an OpenSearch document's details, + * i.e., metadata + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentFulltextValidateBeforeCall(documentId, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for queryFulltext + * + * @param body (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call queryFulltextCall(@javax.annotation.Nonnull Object body, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentFulltextValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentFulltext(Async)"); - } + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/queryFulltext"; - return getDocumentFulltextCall(documentId, siteId, shareKey, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get document's full-text - * Retrieve an OpenSearch document's details, i.e., metadata - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentFulltextResponse getDocumentFulltext(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = getDocumentFulltextWithHttpInfo(documentId, siteId, shareKey); - return localVarResp.getData(); + if (indexName != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexName", indexName)); } - /** - * Get document's full-text - * Retrieve an OpenSearch document's details, i.e., metadata - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentFulltextWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentFulltextValidateBeforeCall(documentId, siteId, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get document's full-text (asynchronously) - * Retrieve an OpenSearch document's details, i.e., metadata - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentFulltextValidateBeforeCall(documentId, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Build call for queryFulltext - * @param body (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call queryFulltextCall(@javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/queryFulltext"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (indexName != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexName", indexName)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call queryFulltextValidateBeforeCall(@javax.annotation.Nonnull Object body, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + "Missing the required parameter 'body' when calling queryFulltext(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call queryFulltextValidateBeforeCall(@javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling queryFulltext(Async)"); - } + return queryFulltextCall(body, siteId, indexName, _callback); + + } + + /** + * Direct opensearch search API Endpoint for allowing custom, complex queries using the OpenSearch + * search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an + * Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} + * + * @param body (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @return QueryFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public QueryFulltextResponse queryFulltext(@javax.annotation.Nonnull Object body, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName) + throws ApiException { + ApiResponse localVarResp = + queryFulltextWithHttpInfo(body, siteId, indexName); + return localVarResp.getData(); + } + + /** + * Direct opensearch search API Endpoint for allowing custom, complex queries using the OpenSearch + * search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an + * Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} + * + * @param body (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @return ApiResponse<QueryFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse queryFulltextWithHttpInfo( + @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String indexName) throws ApiException { + okhttp3.Call localVarCall = queryFulltextValidateBeforeCall(body, siteId, indexName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Direct opensearch search API (asynchronously) Endpoint for allowing custom, complex queries + * using the OpenSearch search API + * (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module + * Example Request Body: { \"query\": { \"match_all\": {} }} + * + * @param body (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to 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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call queryFulltextAsync(@javax.annotation.Nonnull Object body, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = queryFulltextValidateBeforeCall(body, siteId, indexName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for searchFulltext + * + * @param documentFulltextRequest (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call searchFulltextCall( + @javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - return queryFulltextCall(body, siteId, indexName, _callback); + Object localVarPostBody = documentFulltextRequest; - } + // create path and map variables + String localVarPath = "/searchFulltext"; - /** - * Direct opensearch search API - * Endpoint for allowing custom, complex queries using the OpenSearch search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} - * @param body (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @return QueryFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public QueryFulltextResponse queryFulltext(@javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName) throws ApiException { - ApiResponse localVarResp = queryFulltextWithHttpInfo(body, siteId, indexName); - return localVarResp.getData(); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Direct opensearch search API - * Endpoint for allowing custom, complex queries using the OpenSearch search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} - * @param body (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @return ApiResponse<QueryFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse queryFulltextWithHttpInfo(@javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName) throws ApiException { - okhttp3.Call localVarCall = queryFulltextValidateBeforeCall(body, siteId, indexName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Direct opensearch search API (asynchronously) - * Endpoint for allowing custom, complex queries using the OpenSearch search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} - * @param body (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to 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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call queryFulltextAsync(@javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = queryFulltextValidateBeforeCall(body, siteId, indexName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + if (indexName != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexName", indexName)); } - /** - * Build call for searchFulltext - * @param documentFulltextRequest (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call searchFulltextCall(@javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = documentFulltextRequest; - - // create path and map variables - String localVarPath = "/searchFulltext"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (indexName != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexName", indexName)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call searchFulltextValidateBeforeCall(@javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentFulltextRequest' is set - if (documentFulltextRequest == null) { - throw new ApiException("Missing the required parameter 'documentFulltextRequest' when calling searchFulltext(Async)"); - } - - return searchFulltextCall(documentFulltextRequest, siteId, indexName, limit, _callback); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Document full-text search - * Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); available as an Add-On Module - * @param documentFulltextRequest (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @param limit Limit Results (optional, default to 10) - * @return DocumentFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public DocumentFulltextResponse searchFulltext(@javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = searchFulltextWithHttpInfo(documentFulltextRequest, siteId, indexName, limit); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Document full-text search - * Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); available as an Add-On Module - * @param documentFulltextRequest (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<DocumentFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse searchFulltextWithHttpInfo(@javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = searchFulltextValidateBeforeCall(documentFulltextRequest, siteId, indexName, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Document full-text search (asynchronously) - * Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); available as an Add-On Module - * @param documentFulltextRequest (required) - * @param siteId Site Identifier (optional) - * @param indexName IndexName to query (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call searchFulltextAsync(@javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = searchFulltextValidateBeforeCall(documentFulltextRequest, siteId, indexName, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchFulltextValidateBeforeCall( + @javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentFulltextRequest' is set + if (documentFulltextRequest == null) { + throw new ApiException( + "Missing the required parameter 'documentFulltextRequest' when calling searchFulltext(Async)"); } - /** - * Build call for setDocumentFulltext - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentFulltextRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentFulltextCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setDocumentFulltextRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return searchFulltextCall(documentFulltextRequest, siteId, indexName, limit, _callback); + + } + + /** + * Document full-text search Document full-text search (and more robust multi-tag search queries, + * powered by OpenSearch); available as an Add-On Module + * + * @param documentFulltextRequest (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @param limit Limit Results (optional, default to 10) + * @return DocumentFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public DocumentFulltextResponse searchFulltext( + @javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, + @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = + searchFulltextWithHttpInfo(documentFulltextRequest, siteId, indexName, limit); + return localVarResp.getData(); + } + + /** + * Document full-text search Document full-text search (and more robust multi-tag search queries, + * powered by OpenSearch); available as an Add-On Module + * + * @param documentFulltextRequest (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<DocumentFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse searchFulltextWithHttpInfo( + @javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = + searchFulltextValidateBeforeCall(documentFulltextRequest, siteId, indexName, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Document full-text search (asynchronously) Document full-text search (and more robust multi-tag + * search queries, powered by OpenSearch); available as an Add-On Module + * + * @param documentFulltextRequest (required) + * @param siteId Site Identifier (optional) + * @param indexName IndexName to query (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call searchFulltextAsync( + @javax.annotation.Nonnull DocumentFulltextRequest documentFulltextRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexName, + @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = searchFulltextValidateBeforeCall(documentFulltextRequest, siteId, + indexName, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentFulltext + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentFulltextRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentFulltextCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentFulltextValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentFulltext(Async)"); - } + Object localVarPostBody = setDocumentFulltextRequest; - return setDocumentFulltextCall(documentId, siteId, setDocumentFulltextRequest, _callback); + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Set document's full-text - * Set all text/tags found within a document to OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentFulltextRequest (optional) - * @return SetDocumentFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetDocumentFulltextResponse setDocumentFulltext(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest) throws ApiException { - ApiResponse localVarResp = setDocumentFulltextWithHttpInfo(documentId, siteId, setDocumentFulltextRequest); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set document's full-text - * Set all text/tags found within a document to OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentFulltextRequest (optional) - * @return ApiResponse<SetDocumentFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setDocumentFulltextWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest) throws ApiException { - okhttp3.Call localVarCall = setDocumentFulltextValidateBeforeCall(documentId, siteId, setDocumentFulltextRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set document's full-text (asynchronously) - * Set all text/tags found within a document to OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentFulltextRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentFulltextValidateBeforeCall(documentId, siteId, setDocumentFulltextRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentFulltextValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentFulltext(Async)"); } - /** - * Build call for updateDocumentFulltext - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param updateDocumentFulltextRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateDocumentFulltextCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateDocumentFulltextRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/fulltext" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return setDocumentFulltextCall(documentId, siteId, setDocumentFulltextRequest, _callback); + + } + + /** + * Set document's full-text Set all text/tags found within a document to OpenSearch; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentFulltextRequest (optional) + * @return SetDocumentFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetDocumentFulltextResponse setDocumentFulltext( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest) + throws ApiException { + ApiResponse localVarResp = + setDocumentFulltextWithHttpInfo(documentId, siteId, setDocumentFulltextRequest); + return localVarResp.getData(); + } + + /** + * Set document's full-text Set all text/tags found within a document to OpenSearch; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentFulltextRequest (optional) + * @return ApiResponse<SetDocumentFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setDocumentFulltextWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest) + throws ApiException { + okhttp3.Call localVarCall = + setDocumentFulltextValidateBeforeCall(documentId, siteId, setDocumentFulltextRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set document's full-text (asynchronously) Set all text/tags found within a document to + * OpenSearch; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentFulltextRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentFulltextRequest setDocumentFulltextRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentFulltextValidateBeforeCall(documentId, siteId, + setDocumentFulltextRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateDocumentFulltext + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param updateDocumentFulltextRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateDocumentFulltextCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call updateDocumentFulltextValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling updateDocumentFulltext(Async)"); - } + Object localVarPostBody = updateDocumentFulltextRequest; - return updateDocumentFulltextCall(documentId, siteId, updateDocumentFulltextRequest, _callback); + // create path and map variables + String localVarPath = "/documents/{documentId}/fulltext".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Update document's full-text - * Update a document in OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param updateDocumentFulltextRequest (optional) - * @return UpdateDocumentFulltextResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public UpdateDocumentFulltextResponse updateDocumentFulltext(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest) throws ApiException { - ApiResponse localVarResp = updateDocumentFulltextWithHttpInfo(documentId, siteId, updateDocumentFulltextRequest); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Update document's full-text - * Update a document in OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param updateDocumentFulltextRequest (optional) - * @return ApiResponse<UpdateDocumentFulltextResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse updateDocumentFulltextWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest) throws ApiException { - okhttp3.Call localVarCall = updateDocumentFulltextValidateBeforeCall(documentId, siteId, updateDocumentFulltextRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Update document's full-text (asynchronously) - * Update a document in OpenSearch; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param updateDocumentFulltextRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateDocumentFulltextValidateBeforeCall(documentId, siteId, updateDocumentFulltextRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateDocumentFulltextValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling updateDocumentFulltext(Async)"); } + + return updateDocumentFulltextCall(documentId, siteId, updateDocumentFulltextRequest, _callback); + + } + + /** + * Update document's full-text Update a document in OpenSearch; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param updateDocumentFulltextRequest (optional) + * @return UpdateDocumentFulltextResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public UpdateDocumentFulltextResponse updateDocumentFulltext( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest) + throws ApiException { + ApiResponse localVarResp = + updateDocumentFulltextWithHttpInfo(documentId, siteId, updateDocumentFulltextRequest); + return localVarResp.getData(); + } + + /** + * Update document's full-text Update a document in OpenSearch; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param updateDocumentFulltextRequest (optional) + * @return ApiResponse<UpdateDocumentFulltextResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse updateDocumentFulltextWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest) + throws ApiException { + okhttp3.Call localVarCall = updateDocumentFulltextValidateBeforeCall(documentId, siteId, + updateDocumentFulltextRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update document's full-text (asynchronously) Update a document in OpenSearch; available as + * an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param updateDocumentFulltextRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateDocumentFulltextAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable UpdateDocumentFulltextRequest updateDocumentFulltextRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateDocumentFulltextValidateBeforeCall(documentId, siteId, + updateDocumentFulltextRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/AttributesApi.java b/src/main/java/com/formkiq/client/api/AttributesApi.java index f7f4a7ae7..f064e66ab 100644 --- a/src/main/java/com/formkiq/client/api/AttributesApi.java +++ b/src/main/java/com/formkiq/client/api/AttributesApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -44,878 +51,1281 @@ import java.util.Map; public class AttributesApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AttributesApi() { + this(Configuration.getDefaultApiClient()); + } + + public AttributesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addAttribute + * + * @param addAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addAttributeCall( + @javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addAttributeRequest; + + // create path and map variables + String localVarPath = "/attributes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addAttributeValidateBeforeCall( + @javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addAttributeRequest' is set + if (addAttributeRequest == null) { + throw new ApiException( + "Missing the required parameter 'addAttributeRequest' when calling addAttribute(Async)"); + } + + return addAttributeCall(addAttributeRequest, siteId, _callback); + + } + + /** + * Add new attribute Creates a new attribute + * + * @param addAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddResponse addAttribute(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addAttributeWithHttpInfo(addAttributeRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add new attribute Creates a new attribute + * + * @param addAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addAttributeWithHttpInfo( + @javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addAttributeValidateBeforeCall(addAttributeRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add new attribute (asynchronously) Creates a new attribute + * + * @param addAttributeRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addAttributeAsync( + @javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addAttributeValidateBeforeCall(addAttributeRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteAttribute + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call deleteAttributeCall(@javax.annotation.Nonnull String key, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributes/{key}".replace("{" + "key" + "}", + localVarApiClient.escapeString(key.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException( + "Missing the required parameter 'key' when calling deleteAttribute(Async)"); + } + + return deleteAttributeCall(key, siteId, _callback); + + } + + /** + * Delete attribute Delete a attribute + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public DeleteResponse deleteAttribute(@javax.annotation.Nonnull String key, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteAttributeWithHttpInfo(key, siteId); + return localVarResp.getData(); + } + + /** + * Delete attribute Delete a attribute + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse deleteAttributeWithHttpInfo( + @javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteAttributeValidateBeforeCall(key, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete attribute (asynchronously) Delete a attribute + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call deleteAttributeAsync(@javax.annotation.Nonnull String key, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteAttributeValidateBeforeCall(key, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getAttribute + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getAttributeCall(@javax.annotation.Nonnull String key, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributes/{key}".replace("{" + "key" + "}", + localVarApiClient.escapeString(key.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } - public AttributesApi() { - this(Configuration.getDefaultApiClient()); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public AttributesApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException( + "Missing the required parameter 'key' when calling getAttribute(Async)"); } - public ApiClient getApiClient() { - return localVarApiClient; + return getAttributeCall(key, siteId, _callback); + + } + + /** + * Get Attribute Returns a attribute + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetAttributeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetAttributeResponse getAttribute(@javax.annotation.Nonnull String key, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getAttributeWithHttpInfo(key, siteId); + return localVarResp.getData(); + } + + /** + * Get Attribute Returns a attribute + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetAttributeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getAttributeWithHttpInfo( + @javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getAttributeValidateBeforeCall(key, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Attribute (asynchronously) Returns a attribute + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getAttributeAsync(@javax.annotation.Nonnull String key, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getAttributeValidateBeforeCall(key, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getAttributeAllowedValues + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getAttributeAllowedValuesCall(@javax.annotation.Nonnull String key, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributes/{key}/allowedValues".replace("{" + "key" + "}", + localVarApiClient.escapeString(key.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAttributeAllowedValuesValidateBeforeCall( + @javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException( + "Missing the required parameter 'key' when calling getAttributeAllowedValues(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + return getAttributeAllowedValuesCall(key, siteId, _callback); + + } + + /** + * Get Attribute Allowed Values Returns an attribute's allowed values that spans across all + * classifications and site schema + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetAttributeAllowedValuesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetAttributeAllowedValuesResponse getAttributeAllowedValues( + @javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + getAttributeAllowedValuesWithHttpInfo(key, siteId); + return localVarResp.getData(); + } + + /** + * Get Attribute Allowed Values Returns an attribute's allowed values that spans across all + * classifications and site schema + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetAttributeAllowedValuesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getAttributeAllowedValuesWithHttpInfo( + @javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getAttributeAllowedValuesValidateBeforeCall(key, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Attribute Allowed Values (asynchronously) Returns an attribute's allowed values that + * spans across all classifications and site schema + * + * @param key Key Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getAttributeAllowedValuesAsync(@javax.annotation.Nonnull String key, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAttributeAllowedValuesValidateBeforeCall(key, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getAttributes + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getAttributesCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - - /** - * Build call for addAttribute - * @param addAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addAttributeCall(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addAttributeRequest; - - // create path and map variables - String localVarPath = "/attributes"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addAttributeValidateBeforeCall(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addAttributeRequest' is set - if (addAttributeRequest == null) { - throw new ApiException("Missing the required parameter 'addAttributeRequest' when calling addAttribute(Async)"); - } - - return addAttributeCall(addAttributeRequest, siteId, _callback); - - } - - /** - * Add new attribute - * Creates a new attribute - * @param addAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddResponse addAttribute(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addAttributeWithHttpInfo(addAttributeRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add new attribute - * Creates a new attribute - * @param addAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addAttributeWithHttpInfo(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addAttributeValidateBeforeCall(addAttributeRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add new attribute (asynchronously) - * Creates a new attribute - * @param addAttributeRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addAttributeAsync(@javax.annotation.Nonnull AddAttributeRequest addAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addAttributeValidateBeforeCall(addAttributeRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteAttribute - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call deleteAttributeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/attributes/{key}" - .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException("Missing the required parameter 'key' when calling deleteAttribute(Async)"); - } - - return deleteAttributeCall(key, siteId, _callback); - - } - - /** - * Delete attribute - * Delete a attribute - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public DeleteResponse deleteAttribute(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteAttributeWithHttpInfo(key, siteId); - return localVarResp.getData(); - } - - /** - * Delete attribute - * Delete a attribute - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse deleteAttributeWithHttpInfo(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteAttributeValidateBeforeCall(key, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete attribute (asynchronously) - * Delete a attribute - * @param key Key Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call deleteAttributeAsync(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteAttributeValidateBeforeCall(key, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getAttribute - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getAttributeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/attributes/{key}" - .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException("Missing the required parameter 'key' when calling getAttribute(Async)"); - } - - return getAttributeCall(key, siteId, _callback); - - } - - /** - * Get Attribute - * Returns a attribute - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetAttributeResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetAttributeResponse getAttribute(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getAttributeWithHttpInfo(key, siteId); - return localVarResp.getData(); - } - - /** - * Get Attribute - * Returns a attribute - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetAttributeResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getAttributeWithHttpInfo(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getAttributeValidateBeforeCall(key, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Attribute (asynchronously) - * Returns a attribute - * @param key Key Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getAttributeAsync(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAttributeValidateBeforeCall(key, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getAttributeAllowedValues - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getAttributeAllowedValuesCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/attributes/{key}/allowedValues" - .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAttributeAllowedValuesValidateBeforeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException("Missing the required parameter 'key' when calling getAttributeAllowedValues(Async)"); - } - - return getAttributeAllowedValuesCall(key, siteId, _callback); - - } - - /** - * Get Attribute Allowed Values - * Returns an attribute's allowed values that spans across all classifications and site schema - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetAttributeAllowedValuesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetAttributeAllowedValuesResponse getAttributeAllowedValues(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getAttributeAllowedValuesWithHttpInfo(key, siteId); - return localVarResp.getData(); - } - - /** - * Get Attribute Allowed Values - * Returns an attribute's allowed values that spans across all classifications and site schema - * @param key Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetAttributeAllowedValuesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getAttributeAllowedValuesWithHttpInfo(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getAttributeAllowedValuesValidateBeforeCall(key, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Attribute Allowed Values (asynchronously) - * Returns an attribute's allowed values that spans across all classifications and site schema - * @param key Key Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getAttributeAllowedValuesAsync(@javax.annotation.Nonnull String key, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAttributeAllowedValuesValidateBeforeCall(key, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getAttributes - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getAttributesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/attributes"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAttributesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - return getAttributesCall(siteId, next, limit, _callback); - - } - - /** - * Get Attributes listing - * Returns a list of attributes - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetAttributesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetAttributesResponse getAttributes(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getAttributesWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get Attributes listing - * Returns a list of attributes - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetAttributesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getAttributesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getAttributesValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Attributes listing (asynchronously) - * Returns a list of attributes - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getAttributesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAttributesValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateAttribute - * @param key Key Identifier (required) - * @param updateAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateAttributeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateAttributeRequest; - - // create path and map variables - String localVarPath = "/attributes/{key}" - .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException("Missing the required parameter 'key' when calling updateAttribute(Async)"); - } - - // verify the required parameter 'updateAttributeRequest' is set - if (updateAttributeRequest == null) { - throw new ApiException("Missing the required parameter 'updateAttributeRequest' when calling updateAttribute(Async)"); - } - - return updateAttributeCall(key, updateAttributeRequest, siteId, _callback); - - } - - /** - * Update existing attribute - * Updates existing attribute - * @param key Key Identifier (required) - * @param updateAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public UpdateResponse updateAttribute(@javax.annotation.Nonnull String key, @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = updateAttributeWithHttpInfo(key, updateAttributeRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update existing attribute - * Updates existing attribute - * @param key Key Identifier (required) - * @param updateAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse updateAttributeWithHttpInfo(@javax.annotation.Nonnull String key, @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateAttributeValidateBeforeCall(key, updateAttributeRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update existing attribute (asynchronously) - * Updates existing attribute - * @param key Key Identifier (required) - * @param updateAttributeRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateAttributeAsync(@javax.annotation.Nonnull String key, @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateAttributeValidateBeforeCall(key, updateAttributeRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/attributes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAttributesValidateBeforeCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + return getAttributesCall(siteId, next, limit, _callback); + + } + + /** + * Get Attributes listing Returns a list of attributes + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetAttributesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetAttributesResponse getAttributes(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = + getAttributesWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get Attributes listing Returns a list of attributes + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetAttributesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getAttributesWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getAttributesValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Attributes listing (asynchronously) Returns a list of attributes + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getAttributesAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAttributesValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateAttribute + * + * @param key Key Identifier (required) + * @param updateAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateAttributeCall(@javax.annotation.Nonnull String key, + @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateAttributeRequest; + + // create path and map variables + String localVarPath = "/attributes/{key}".replace("{" + "key" + "}", + localVarApiClient.escapeString(key.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateAttributeValidateBeforeCall(@javax.annotation.Nonnull String key, + @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException( + "Missing the required parameter 'key' when calling updateAttribute(Async)"); + } + + // verify the required parameter 'updateAttributeRequest' is set + if (updateAttributeRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateAttributeRequest' when calling updateAttribute(Async)"); + } + + return updateAttributeCall(key, updateAttributeRequest, siteId, _callback); + + } + + /** + * Update existing attribute Updates existing attribute + * + * @param key Key Identifier (required) + * @param updateAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public UpdateResponse updateAttribute(@javax.annotation.Nonnull String key, + @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + updateAttributeWithHttpInfo(key, updateAttributeRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update existing attribute Updates existing attribute + * + * @param key Key Identifier (required) + * @param updateAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse updateAttributeWithHttpInfo( + @javax.annotation.Nonnull String key, + @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + updateAttributeValidateBeforeCall(key, updateAttributeRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update existing attribute (asynchronously) Updates existing attribute + * + * @param key Key Identifier (required) + * @param updateAttributeRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateAttributeAsync(@javax.annotation.Nonnull String key, + @javax.annotation.Nonnull UpdateAttributeRequest updateAttributeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateAttributeValidateBeforeCall(key, updateAttributeRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/CaseManagementApi.java b/src/main/java/com/formkiq/client/api/CaseManagementApi.java index 0eb661ad5..c38fcf8eb 100644 --- a/src/main/java/com/formkiq/client/api/CaseManagementApi.java +++ b/src/main/java/com/formkiq/client/api/CaseManagementApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -60,3141 +67,4457 @@ import java.util.Map; public class CaseManagementApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public CaseManagementApi() { + this(Configuration.getDefaultApiClient()); + } + + public CaseManagementApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addCase + * + * @param addCaseRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addCaseCall(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addCaseRequest; + + // create path and map variables + String localVarPath = "/cases"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addCaseValidateBeforeCall( + @javax.annotation.Nonnull AddCaseRequest addCaseRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addCaseRequest' is set + if (addCaseRequest == null) { + throw new ApiException( + "Missing the required parameter 'addCaseRequest' when calling addCase(Async)"); + } + + return addCaseCall(addCaseRequest, siteId, _callback); + + } + + /** + * Add New Case Adds new case; available as an Add-On Module + * + * @param addCaseRequest (required) + * @param siteId Site Identifier (optional) + * @return AddCaseResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddCaseResponse addCase(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addCaseWithHttpInfo(addCaseRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add New Case Adds new case; available as an Add-On Module + * + * @param addCaseRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddCaseResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addCaseWithHttpInfo( + @javax.annotation.Nonnull AddCaseRequest addCaseRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addCaseValidateBeforeCall(addCaseRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New Case (asynchronously) Adds new case; available as an Add-On Module + * + * @param addCaseRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addCaseAsync(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addCaseValidateBeforeCall(addCaseRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addNigo + * + * @param caseId Case Identifier (required) + * @param addNigoRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addNigoCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull AddNigoRequest addNigoRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addNigoRequest; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos".replace("{" + "caseId" + "}", + localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull AddNigoRequest addNigoRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling addNigo(Async)"); + } + + // verify the required parameter 'addNigoRequest' is set + if (addNigoRequest == null) { + throw new ApiException( + "Missing the required parameter 'addNigoRequest' when calling addNigo(Async)"); + } + + return addNigoCall(caseId, addNigoRequest, siteId, _callback); + + } + + /** + * Add New Nigo Adds new nigo; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param addNigoRequest (required) + * @param siteId Site Identifier (optional) + * @return AddNigoResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddNigoResponse addNigo(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull AddNigoRequest addNigoRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addNigoWithHttpInfo(caseId, addNigoRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add New Nigo Adds new nigo; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param addNigoRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddNigoResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addNigoWithHttpInfo(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull AddNigoRequest addNigoRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addNigoValidateBeforeCall(caseId, addNigoRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New Nigo (asynchronously) Adds new nigo; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param addNigoRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addNigoAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull AddNigoRequest addNigoRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addNigoValidateBeforeCall(caseId, addNigoRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addTask + * + * @param caseId Case Identifier (required) + * @param addTaskRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addTaskCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull AddTaskRequest addTaskRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addTaskRequest; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks".replace("{" + "caseId" + "}", + localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull AddTaskRequest addTaskRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling addTask(Async)"); + } + + // verify the required parameter 'addTaskRequest' is set + if (addTaskRequest == null) { + throw new ApiException( + "Missing the required parameter 'addTaskRequest' when calling addTask(Async)"); + } + + return addTaskCall(caseId, addTaskRequest, siteId, _callback); + + } + + /** + * Add New Task Adds new task; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param addTaskRequest (required) + * @param siteId Site Identifier (optional) + * @return AddTaskResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddTaskResponse addTask(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull AddTaskRequest addTaskRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addTaskWithHttpInfo(caseId, addTaskRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add New Task Adds new task; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param addTaskRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddTaskResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addTaskWithHttpInfo(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull AddTaskRequest addTaskRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addTaskValidateBeforeCall(caseId, addTaskRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New Task (asynchronously) Adds new task; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param addTaskRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addTaskAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull AddTaskRequest addTaskRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addTaskValidateBeforeCall(caseId, addTaskRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteCase + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteCaseCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}".replace("{" + "caseId" + "}", + localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling deleteCase(Async)"); + } + + return deleteCaseCall(caseId, siteId, _callback); + + } + + /** + * Delete Case Delete Case + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteCaseResponse deleteCase(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteCaseWithHttpInfo(caseId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Case Delete Case + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteCaseWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteCaseValidateBeforeCall(caseId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Case (asynchronously) Delete Case + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteCaseAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteCaseValidateBeforeCall(caseId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteCaseDocument + * + * @param caseId Case Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteCaseDocumentCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/documents/{documentId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCaseDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling deleteCaseDocument(Async)"); + } + + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteCaseDocument(Async)"); + } + + return deleteCaseDocumentCall(caseId, documentId, siteId, _callback); + + } + + /** + * Delete Document from Case Delete Document from Case + * + * @param caseId Case Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteCaseDocumentResponse deleteCaseDocument(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + deleteCaseDocumentWithHttpInfo(caseId, documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Document from Case Delete Document from Case + * + * @param caseId Case Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteCaseDocumentWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + deleteCaseDocumentValidateBeforeCall(caseId, documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Document from Case (asynchronously) Delete Document from Case + * + * @param caseId Case Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteCaseDocumentAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteCaseDocumentValidateBeforeCall(caseId, documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteNigo + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteNigoCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos/{nigoId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling deleteNigo(Async)"); + } + + // verify the required parameter 'nigoId' is set + if (nigoId == null) { + throw new ApiException( + "Missing the required parameter 'nigoId' when calling deleteNigo(Async)"); + } + + return deleteNigoCall(caseId, nigoId, siteId, _callback); + + } + + /** + * Delete Nigo Delete Nigo + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseNigoResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteCaseNigoResponse deleteNigo(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + deleteNigoWithHttpInfo(caseId, nigoId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Nigo Delete Nigo + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseNigoResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteNigoWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteNigoValidateBeforeCall(caseId, nigoId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Nigo (asynchronously) Delete Nigo + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteNigoAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNigoValidateBeforeCall(caseId, nigoId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteNigoDocument + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteNigoDocumentCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos/{nigoId}/documents/{documentId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())) + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNigoDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling deleteNigoDocument(Async)"); + } + + // verify the required parameter 'nigoId' is set + if (nigoId == null) { + throw new ApiException( + "Missing the required parameter 'nigoId' when calling deleteNigoDocument(Async)"); + } + + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteNigoDocument(Async)"); + } + + return deleteNigoDocumentCall(caseId, nigoId, documentId, siteId, _callback); + + } + + /** + * Delete Document from Nigo Delete Document from Nigo + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseNigoDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteCaseNigoDocumentResponse deleteNigoDocument(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + deleteNigoDocumentWithHttpInfo(caseId, nigoId, documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Document from Nigo Delete Document from Nigo + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseNigoDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteNigoDocumentWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = + deleteNigoDocumentValidateBeforeCall(caseId, nigoId, documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Document from Nigo (asynchronously) Delete Document from Nigo + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteNigoDocumentAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteNigoDocumentValidateBeforeCall(caseId, nigoId, documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteTask + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteTaskCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks/{taskId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling deleteTask(Async)"); + } + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new ApiException( + "Missing the required parameter 'taskId' when calling deleteTask(Async)"); + } + + return deleteTaskCall(caseId, taskId, siteId, _callback); + + } + + /** + * Delete Task Delete Task + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseTaskResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteCaseTaskResponse deleteTask(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + deleteTaskWithHttpInfo(caseId, taskId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Task Delete Task + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseTaskResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteTaskWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(caseId, taskId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Task (asynchronously) Delete Task + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteTaskAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(caseId, taskId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteTaskDocument + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteTaskDocumentCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks/{taskId}/documents/{documentId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())) + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteTaskDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling deleteTaskDocument(Async)"); + } + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new ApiException( + "Missing the required parameter 'taskId' when calling deleteTaskDocument(Async)"); + } + + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteTaskDocument(Async)"); + } + + return deleteTaskDocumentCall(caseId, taskId, documentId, siteId, _callback); + + } + + /** + * Delete Document from Task Delete Document from Task + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteCaseTaskDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteCaseTaskDocumentResponse deleteTaskDocument(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + deleteTaskDocumentWithHttpInfo(caseId, taskId, documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Document from Task Delete Document from Task + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteCaseTaskDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteTaskDocumentWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = + deleteTaskDocumentValidateBeforeCall(caseId, taskId, documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Document from Task (asynchronously) Delete Document from Task + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteTaskDocumentAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteTaskDocumentValidateBeforeCall(caseId, taskId, documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getCase + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}".replace("{" + "caseId" + "}", + localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException("Missing the required parameter 'caseId' when calling getCase(Async)"); + } + + return getCaseCall(caseId, siteId, _callback); + + } + + /** + * Get Case details Returns a Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetCaseResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetCaseResponse getCase(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getCaseWithHttpInfo(caseId, siteId); + return localVarResp.getData(); + } + + /** + * Get Case details Returns a Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetCaseResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getCaseWithHttpInfo(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getCaseValidateBeforeCall(caseId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Case details (asynchronously) Returns a Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getCaseValidateBeforeCall(caseId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getCaseDocuments + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseDocumentsCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/documents".replace("{" + "caseId" + "}", + localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling getCaseDocuments(Async)"); + } + + return getCaseDocumentsCall(caseId, siteId, next, limit, _callback); + + } + + /** + * Get list of document in a case Returns documents in a Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCaseDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetCaseDocumentsResponse getCaseDocuments(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = + getCaseDocumentsWithHttpInfo(caseId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get list of document in a case Returns documents in a Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCaseDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getCaseDocumentsWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + okhttp3.Call localVarCall = + getCaseDocumentsValidateBeforeCall(caseId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of document in a case (asynchronously) Returns documents in a Case; available as an + * Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseDocumentsAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getCaseDocumentsValidateBeforeCall(caseId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getCaseNigo + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseNigoCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos/{nigoId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling getCaseNigo(Async)"); + } - public CaseManagementApi() { - this(Configuration.getDefaultApiClient()); + // verify the required parameter 'nigoId' is set + if (nigoId == null) { + throw new ApiException( + "Missing the required parameter 'nigoId' when calling getCaseNigo(Async)"); } - public CaseManagementApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; + return getCaseNigoCall(caseId, nigoId, siteId, _callback); + + } + + /** + * Get nigo in a case Returns a Nigo in Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetCaseNigoResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetCaseNigoResponse getCaseNigo(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = getCaseNigoWithHttpInfo(caseId, nigoId, siteId); + return localVarResp.getData(); + } + + /** + * Get nigo in a case Returns a Nigo in Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetCaseNigoResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getCaseNigoWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getCaseNigoValidateBeforeCall(caseId, nigoId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get nigo in a case (asynchronously) Returns a Nigo in Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseNigoAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCaseNigoValidateBeforeCall(caseId, nigoId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getCaseNigos + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseNigosCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public ApiClient getApiClient() { - return localVarApiClient; + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos".replace("{" + "caseId" + "}", + localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseNigosValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling getCaseNigos(Async)"); + } + + return getCaseNigosCall(caseId, siteId, next, limit, _callback); + + } + + /** + * Get list of Nigos in a case Returns a Nigos of Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCaseNigosResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetCaseNigosResponse getCaseNigos(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = + getCaseNigosWithHttpInfo(caseId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get list of Nigos in a case Returns a Nigos of Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCaseNigosResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getCaseNigosWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + okhttp3.Call localVarCall = getCaseNigosValidateBeforeCall(caseId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of Nigos in a case (asynchronously) Returns a Nigos of Case; available as an Add-On + * Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseNigosAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + getCaseNigosValidateBeforeCall(caseId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getCaseTask + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseTaskCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks/{taskId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling getCaseTask(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new ApiException( + "Missing the required parameter 'taskId' when calling getCaseTask(Async)"); } - - /** - * Build call for addCase - * @param addCaseRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addCaseCall(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addCaseRequest; - - // create path and map variables - String localVarPath = "/cases"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addCaseValidateBeforeCall(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addCaseRequest' is set - if (addCaseRequest == null) { - throw new ApiException("Missing the required parameter 'addCaseRequest' when calling addCase(Async)"); - } - - return addCaseCall(addCaseRequest, siteId, _callback); - - } - - /** - * Add New Case - * Adds new case; available as an Add-On Module - * @param addCaseRequest (required) - * @param siteId Site Identifier (optional) - * @return AddCaseResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddCaseResponse addCase(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addCaseWithHttpInfo(addCaseRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add New Case - * Adds new case; available as an Add-On Module - * @param addCaseRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddCaseResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addCaseWithHttpInfo(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addCaseValidateBeforeCall(addCaseRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New Case (asynchronously) - * Adds new case; available as an Add-On Module - * @param addCaseRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addCaseAsync(@javax.annotation.Nonnull AddCaseRequest addCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addCaseValidateBeforeCall(addCaseRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addNigo - * @param caseId Case Identifier (required) - * @param addNigoRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addNigoCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddNigoRequest addNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addNigoRequest; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddNigoRequest addNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling addNigo(Async)"); - } - - // verify the required parameter 'addNigoRequest' is set - if (addNigoRequest == null) { - throw new ApiException("Missing the required parameter 'addNigoRequest' when calling addNigo(Async)"); - } - - return addNigoCall(caseId, addNigoRequest, siteId, _callback); - - } - - /** - * Add New Nigo - * Adds new nigo; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param addNigoRequest (required) - * @param siteId Site Identifier (optional) - * @return AddNigoResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddNigoResponse addNigo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddNigoRequest addNigoRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addNigoWithHttpInfo(caseId, addNigoRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add New Nigo - * Adds new nigo; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param addNigoRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddNigoResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addNigoWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddNigoRequest addNigoRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addNigoValidateBeforeCall(caseId, addNigoRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New Nigo (asynchronously) - * Adds new nigo; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param addNigoRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addNigoAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddNigoRequest addNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addNigoValidateBeforeCall(caseId, addNigoRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addTask - * @param caseId Case Identifier (required) - * @param addTaskRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addTaskCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddTaskRequest addTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addTaskRequest; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddTaskRequest addTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling addTask(Async)"); - } - - // verify the required parameter 'addTaskRequest' is set - if (addTaskRequest == null) { - throw new ApiException("Missing the required parameter 'addTaskRequest' when calling addTask(Async)"); - } - - return addTaskCall(caseId, addTaskRequest, siteId, _callback); - - } - - /** - * Add New Task - * Adds new task; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param addTaskRequest (required) - * @param siteId Site Identifier (optional) - * @return AddTaskResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddTaskResponse addTask(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddTaskRequest addTaskRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addTaskWithHttpInfo(caseId, addTaskRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add New Task - * Adds new task; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param addTaskRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddTaskResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addTaskWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddTaskRequest addTaskRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addTaskValidateBeforeCall(caseId, addTaskRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add New Task (asynchronously) - * Adds new task; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param addTaskRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addTaskAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull AddTaskRequest addTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addTaskValidateBeforeCall(caseId, addTaskRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCase - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteCaseCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling deleteCase(Async)"); - } - - return deleteCaseCall(caseId, siteId, _callback); - - } - - /** - * Delete Case - * Delete Case - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteCaseResponse deleteCase(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteCaseWithHttpInfo(caseId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Case - * Delete Case - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteCaseWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteCaseValidateBeforeCall(caseId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Case (asynchronously) - * Delete Case - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteCaseAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCaseValidateBeforeCall(caseId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCaseDocument - * @param caseId Case Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteCaseDocumentCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/documents/{documentId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCaseDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling deleteCaseDocument(Async)"); - } - - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteCaseDocument(Async)"); - } - - return deleteCaseDocumentCall(caseId, documentId, siteId, _callback); - - } - - /** - * Delete Document from Case - * Delete Document from Case - * @param caseId Case Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteCaseDocumentResponse deleteCaseDocument(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteCaseDocumentWithHttpInfo(caseId, documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Document from Case - * Delete Document from Case - * @param caseId Case Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteCaseDocumentWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteCaseDocumentValidateBeforeCall(caseId, documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Document from Case (asynchronously) - * Delete Document from Case - * @param caseId Case Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteCaseDocumentAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCaseDocumentValidateBeforeCall(caseId, documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteNigo - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteNigoCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos/{nigoId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling deleteNigo(Async)"); - } - - // verify the required parameter 'nigoId' is set - if (nigoId == null) { - throw new ApiException("Missing the required parameter 'nigoId' when calling deleteNigo(Async)"); - } - - return deleteNigoCall(caseId, nigoId, siteId, _callback); - - } - - /** - * Delete Nigo - * Delete Nigo - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseNigoResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteCaseNigoResponse deleteNigo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteNigoWithHttpInfo(caseId, nigoId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Nigo - * Delete Nigo - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseNigoResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteNigoWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteNigoValidateBeforeCall(caseId, nigoId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Nigo (asynchronously) - * Delete Nigo - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteNigoAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteNigoValidateBeforeCall(caseId, nigoId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteNigoDocument - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteNigoDocumentCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos/{nigoId}/documents/{documentId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())) - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNigoDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling deleteNigoDocument(Async)"); - } - - // verify the required parameter 'nigoId' is set - if (nigoId == null) { - throw new ApiException("Missing the required parameter 'nigoId' when calling deleteNigoDocument(Async)"); - } - - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteNigoDocument(Async)"); - } - - return deleteNigoDocumentCall(caseId, nigoId, documentId, siteId, _callback); - - } - - /** - * Delete Document from Nigo - * Delete Document from Nigo - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseNigoDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteCaseNigoDocumentResponse deleteNigoDocument(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteNigoDocumentWithHttpInfo(caseId, nigoId, documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Document from Nigo - * Delete Document from Nigo - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseNigoDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteNigoDocumentWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteNigoDocumentValidateBeforeCall(caseId, nigoId, documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Document from Nigo (asynchronously) - * Delete Document from Nigo - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteNigoDocumentAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteNigoDocumentValidateBeforeCall(caseId, nigoId, documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteTask - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteTaskCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks/{taskId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling deleteTask(Async)"); - } - - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException("Missing the required parameter 'taskId' when calling deleteTask(Async)"); - } - - return deleteTaskCall(caseId, taskId, siteId, _callback); - - } - - /** - * Delete Task - * Delete Task - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseTaskResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteCaseTaskResponse deleteTask(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteTaskWithHttpInfo(caseId, taskId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Task - * Delete Task - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseTaskResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteTaskWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(caseId, taskId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Task (asynchronously) - * Delete Task - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteTaskAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(caseId, taskId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteTaskDocument - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteTaskDocumentCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks/{taskId}/documents/{documentId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())) - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteTaskDocumentValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling deleteTaskDocument(Async)"); - } - - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException("Missing the required parameter 'taskId' when calling deleteTaskDocument(Async)"); - } - - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteTaskDocument(Async)"); - } - - return deleteTaskDocumentCall(caseId, taskId, documentId, siteId, _callback); - - } - - /** - * Delete Document from Task - * Delete Document from Task - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteCaseTaskDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteCaseTaskDocumentResponse deleteTaskDocument(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteTaskDocumentWithHttpInfo(caseId, taskId, documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete Document from Task - * Delete Document from Task - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteCaseTaskDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteTaskDocumentWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteTaskDocumentValidateBeforeCall(caseId, taskId, documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Document from Task (asynchronously) - * Delete Document from Task - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteTaskDocumentAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteTaskDocumentValidateBeforeCall(caseId, taskId, documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getCase - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling getCase(Async)"); - } - - return getCaseCall(caseId, siteId, _callback); - - } - - /** - * Get Case details - * Returns a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetCaseResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetCaseResponse getCase(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getCaseWithHttpInfo(caseId, siteId); - return localVarResp.getData(); - } - - /** - * Get Case details - * Returns a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetCaseResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getCaseWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getCaseValidateBeforeCall(caseId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Case details (asynchronously) - * Returns a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCaseValidateBeforeCall(caseId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getCaseDocuments - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseDocumentsCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/documents" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling getCaseDocuments(Async)"); - } - - return getCaseDocumentsCall(caseId, siteId, next, limit, _callback); - - } - - /** - * Get list of document in a case - * Returns documents in a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCaseDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetCaseDocumentsResponse getCaseDocuments(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getCaseDocumentsWithHttpInfo(caseId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get list of document in a case - * Returns documents in a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCaseDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getCaseDocumentsWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getCaseDocumentsValidateBeforeCall(caseId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of document in a case (asynchronously) - * Returns documents in a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseDocumentsAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCaseDocumentsValidateBeforeCall(caseId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getCaseNigo - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseNigoCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos/{nigoId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling getCaseNigo(Async)"); - } - - // verify the required parameter 'nigoId' is set - if (nigoId == null) { - throw new ApiException("Missing the required parameter 'nigoId' when calling getCaseNigo(Async)"); - } - - return getCaseNigoCall(caseId, nigoId, siteId, _callback); - - } - - /** - * Get nigo in a case - * Returns a Nigo in Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetCaseNigoResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetCaseNigoResponse getCaseNigo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getCaseNigoWithHttpInfo(caseId, nigoId, siteId); - return localVarResp.getData(); - } - - /** - * Get nigo in a case - * Returns a Nigo in Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetCaseNigoResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getCaseNigoWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getCaseNigoValidateBeforeCall(caseId, nigoId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get nigo in a case (asynchronously) - * Returns a Nigo in Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseNigoAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCaseNigoValidateBeforeCall(caseId, nigoId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getCaseNigos - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseNigosCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseNigosValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling getCaseNigos(Async)"); - } - - return getCaseNigosCall(caseId, siteId, next, limit, _callback); - - } - - /** - * Get list of Nigos in a case - * Returns a Nigos of Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCaseNigosResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetCaseNigosResponse getCaseNigos(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getCaseNigosWithHttpInfo(caseId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get list of Nigos in a case - * Returns a Nigos of Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCaseNigosResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getCaseNigosWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getCaseNigosValidateBeforeCall(caseId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of Nigos in a case (asynchronously) - * Returns a Nigos of Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseNigosAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCaseNigosValidateBeforeCall(caseId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getCaseTask - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseTaskCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks/{taskId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling getCaseTask(Async)"); - } - - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException("Missing the required parameter 'taskId' when calling getCaseTask(Async)"); - } - - return getCaseTaskCall(caseId, taskId, siteId, _callback); - - } - - /** - * Get task in a case - * Returns a Task in Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetCaseTaskResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetCaseTaskResponse getCaseTask(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getCaseTaskWithHttpInfo(caseId, taskId, siteId); - return localVarResp.getData(); - } - - /** - * Get task in a case - * Returns a Task in Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetCaseTaskResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getCaseTaskWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getCaseTaskValidateBeforeCall(caseId, taskId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get task in a case (asynchronously) - * Returns a Task in Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseTaskAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCaseTaskValidateBeforeCall(caseId, taskId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getCaseTasks - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseTasksCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCaseTasksValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling getCaseTasks(Async)"); - } - - return getCaseTasksCall(caseId, siteId, next, limit, _callback); - - } - - /** - * Get list of tasks in a case - * Returns a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCaseTasksResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetCaseTasksResponse getCaseTasks(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getCaseTasksWithHttpInfo(caseId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get list of tasks in a case - * Returns a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCaseTasksResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getCaseTasksWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getCaseTasksValidateBeforeCall(caseId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of tasks in a case (asynchronously) - * Returns a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCaseTasksAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCaseTasksValidateBeforeCall(caseId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getCases - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCasesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getCasesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - return getCasesCall(siteId, next, limit, _callback); - - } - - /** - * Get Case listing - * Returns a list of the Cases; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCasesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetCasesResponse getCases(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getCasesWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get Case listing - * Returns a list of the Cases; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCasesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getCasesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getCasesValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Case listing (asynchronously) - * Returns a list of the Cases; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getCasesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getCasesValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getNigoDocuments - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getNigoDocumentsCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos/{nigoId}/documents" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getNigoDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling getNigoDocuments(Async)"); - } - - // verify the required parameter 'nigoId' is set - if (nigoId == null) { - throw new ApiException("Missing the required parameter 'nigoId' when calling getNigoDocuments(Async)"); - } - - return getNigoDocumentsCall(caseId, nigoId, siteId, next, limit, _callback); - - } - - /** - * Get list of document in a task - * Returns a list documents in a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCaseDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetCaseDocumentsResponse getNigoDocuments(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getNigoDocumentsWithHttpInfo(caseId, nigoId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get list of document in a task - * Returns a list documents in a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCaseDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getNigoDocumentsWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getNigoDocumentsValidateBeforeCall(caseId, nigoId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of document in a task (asynchronously) - * Returns a list documents in a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getNigoDocumentsAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getNigoDocumentsValidateBeforeCall(caseId, nigoId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getTaskDocuments - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getTaskDocumentsCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks/{taskId}/documents" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getTaskDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling getTaskDocuments(Async)"); - } - - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException("Missing the required parameter 'taskId' when calling getTaskDocuments(Async)"); - } - - return getTaskDocumentsCall(caseId, taskId, siteId, next, limit, _callback); - - } - - /** - * Get list of document in a task - * Returns a list documents in a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetCaseDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetCaseDocumentsResponse getTaskDocuments(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getTaskDocumentsWithHttpInfo(caseId, taskId, siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get list of document in a task - * Returns a list documents in a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetCaseDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getTaskDocumentsWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getTaskDocumentsValidateBeforeCall(caseId, taskId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of document in a task (asynchronously) - * Returns a list documents in a Case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getTaskDocumentsAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getTaskDocumentsValidateBeforeCall(caseId, taskId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateCase - * @param caseId Case Identifier (required) - * @param updateCaseRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateCaseCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateCaseRequest; - - // create path and map variables - String localVarPath = "/cases/{caseId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling updateCase(Async)"); - } - - // verify the required parameter 'updateCaseRequest' is set - if (updateCaseRequest == null) { - throw new ApiException("Missing the required parameter 'updateCaseRequest' when calling updateCase(Async)"); - } - - return updateCaseCall(caseId, updateCaseRequest, siteId, _callback); - - } - - /** - * Update existing Case - * Updates existing case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param updateCaseRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateCaseResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public UpdateCaseResponse updateCase(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = updateCaseWithHttpInfo(caseId, updateCaseRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update existing Case - * Updates existing case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param updateCaseRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateCaseResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse updateCaseWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateCaseValidateBeforeCall(caseId, updateCaseRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update existing Case (asynchronously) - * Updates existing case; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param updateCaseRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateCaseAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateCaseValidateBeforeCall(caseId, updateCaseRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateNigo - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param updateNigoRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateNigoCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateNigoRequest; - - // create path and map variables - String localVarPath = "/cases/{caseId}/nigos/{nigoId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling updateNigo(Async)"); - } - - // verify the required parameter 'nigoId' is set - if (nigoId == null) { - throw new ApiException("Missing the required parameter 'nigoId' when calling updateNigo(Async)"); - } - - // verify the required parameter 'updateNigoRequest' is set - if (updateNigoRequest == null) { - throw new ApiException("Missing the required parameter 'updateNigoRequest' when calling updateNigo(Async)"); - } - - return updateNigoCall(caseId, nigoId, updateNigoRequest, siteId, _callback); - - } - - /** - * Update existing Nigo - * Updates existing nigo; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param updateNigoRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateNigoResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public UpdateNigoResponse updateNigo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = updateNigoWithHttpInfo(caseId, nigoId, updateNigoRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update existing Nigo - * Updates existing nigo; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param updateNigoRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateNigoResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse updateNigoWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateNigoValidateBeforeCall(caseId, nigoId, updateNigoRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update existing Nigo (asynchronously) - * Updates existing nigo; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param nigoId Nigo Identifier (required) - * @param updateNigoRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateNigoAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateNigoValidateBeforeCall(caseId, nigoId, updateNigoRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateTask - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param updateTaskRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateTaskCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateTaskRequest; - - // create path and map variables - String localVarPath = "/cases/{caseId}/tasks/{taskId}" - .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) - .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'caseId' is set - if (caseId == null) { - throw new ApiException("Missing the required parameter 'caseId' when calling updateTask(Async)"); - } - - // verify the required parameter 'taskId' is set - if (taskId == null) { - throw new ApiException("Missing the required parameter 'taskId' when calling updateTask(Async)"); - } - - // verify the required parameter 'updateTaskRequest' is set - if (updateTaskRequest == null) { - throw new ApiException("Missing the required parameter 'updateTaskRequest' when calling updateTask(Async)"); - } - - return updateTaskCall(caseId, taskId, updateTaskRequest, siteId, _callback); - - } - - /** - * Update existing Task - * Updates existing task; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param updateTaskRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateTaskResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public UpdateTaskResponse updateTask(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = updateTaskWithHttpInfo(caseId, taskId, updateTaskRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update existing Task - * Updates existing task; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param updateTaskRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateTaskResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse updateTaskWithHttpInfo(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateTaskValidateBeforeCall(caseId, taskId, updateTaskRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update existing Task (asynchronously) - * Updates existing task; available as an Add-On Module - * @param caseId Case Identifier (required) - * @param taskId Task Identifier (required) - * @param updateTaskRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateTaskAsync(@javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateTaskValidateBeforeCall(caseId, taskId, updateTaskRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + + return getCaseTaskCall(caseId, taskId, siteId, _callback); + + } + + /** + * Get task in a case Returns a Task in Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetCaseTaskResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetCaseTaskResponse getCaseTask(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = getCaseTaskWithHttpInfo(caseId, taskId, siteId); + return localVarResp.getData(); + } + + /** + * Get task in a case Returns a Task in Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetCaseTaskResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getCaseTaskWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getCaseTaskValidateBeforeCall(caseId, taskId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get task in a case (asynchronously) Returns a Task in Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseTaskAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCaseTaskValidateBeforeCall(caseId, taskId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getCaseTasks + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseTasksCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks".replace("{" + "caseId" + "}", + localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCaseTasksValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling getCaseTasks(Async)"); + } + + return getCaseTasksCall(caseId, siteId, next, limit, _callback); + + } + + /** + * Get list of tasks in a case Returns a Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCaseTasksResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetCaseTasksResponse getCaseTasks(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = + getCaseTasksWithHttpInfo(caseId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get list of tasks in a case Returns a Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCaseTasksResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getCaseTasksWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + okhttp3.Call localVarCall = getCaseTasksValidateBeforeCall(caseId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of tasks in a case (asynchronously) Returns a Case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCaseTasksAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + getCaseTasksValidateBeforeCall(caseId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getCases + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCasesCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCasesValidateBeforeCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + return getCasesCall(siteId, next, limit, _callback); + + } + + /** + * Get Case listing Returns a list of the Cases; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCasesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetCasesResponse getCases(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = getCasesWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get Case listing Returns a list of the Cases; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCasesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getCasesWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getCasesValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Case listing (asynchronously) Returns a list of the Cases; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getCasesAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCasesValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getNigoDocuments + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getNigoDocumentsCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos/{nigoId}/documents" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getNigoDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling getNigoDocuments(Async)"); + } + + // verify the required parameter 'nigoId' is set + if (nigoId == null) { + throw new ApiException( + "Missing the required parameter 'nigoId' when calling getNigoDocuments(Async)"); + } + + return getNigoDocumentsCall(caseId, nigoId, siteId, next, limit, _callback); + + } + + /** + * Get list of document in a task Returns a list documents in a Case; available as an Add-On + * Module + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCaseDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetCaseDocumentsResponse getNigoDocuments(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = + getNigoDocumentsWithHttpInfo(caseId, nigoId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get list of document in a task Returns a list documents in a Case; available as an Add-On + * Module + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCaseDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getNigoDocumentsWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = + getNigoDocumentsValidateBeforeCall(caseId, nigoId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of document in a task (asynchronously) Returns a list documents in a Case; available + * as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getNigoDocumentsAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getNigoDocumentsValidateBeforeCall(caseId, nigoId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getTaskDocuments + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getTaskDocumentsCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks/{taskId}/documents" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTaskDocumentsValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling getTaskDocuments(Async)"); + } + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new ApiException( + "Missing the required parameter 'taskId' when calling getTaskDocuments(Async)"); + } + + return getTaskDocumentsCall(caseId, taskId, siteId, next, limit, _callback); + + } + + /** + * Get list of document in a task Returns a list documents in a Case; available as an Add-On + * Module + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetCaseDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetCaseDocumentsResponse getTaskDocuments(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = + getTaskDocumentsWithHttpInfo(caseId, taskId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get list of document in a task Returns a list documents in a Case; available as an Add-On + * Module + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetCaseDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getTaskDocumentsWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = + getTaskDocumentsValidateBeforeCall(caseId, taskId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of document in a task (asynchronously) Returns a list documents in a Case; available + * as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getTaskDocumentsAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getTaskDocumentsValidateBeforeCall(caseId, taskId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateCase + * + * @param caseId Case Identifier (required) + * @param updateCaseRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateCaseCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateCaseRequest; + + // create path and map variables + String localVarPath = "/cases/{caseId}".replace("{" + "caseId" + "}", + localVarApiClient.escapeString(caseId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateCaseValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling updateCase(Async)"); + } + + // verify the required parameter 'updateCaseRequest' is set + if (updateCaseRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateCaseRequest' when calling updateCase(Async)"); + } + + return updateCaseCall(caseId, updateCaseRequest, siteId, _callback); + + } + + /** + * Update existing Case Updates existing case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param updateCaseRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateCaseResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public UpdateCaseResponse updateCase(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + updateCaseWithHttpInfo(caseId, updateCaseRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update existing Case Updates existing case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param updateCaseRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateCaseResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse updateCaseWithHttpInfo( + @javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + updateCaseValidateBeforeCall(caseId, updateCaseRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update existing Case (asynchronously) Updates existing case; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param updateCaseRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateCaseAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull UpdateCaseRequest updateCaseRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateCaseValidateBeforeCall(caseId, updateCaseRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateNigo + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param updateNigoRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateNigoCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, + @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateNigoRequest; + + // create path and map variables + String localVarPath = "/cases/{caseId}/nigos/{nigoId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "nigoId" + "}", localVarApiClient.escapeString(nigoId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateNigoValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, + @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling updateNigo(Async)"); + } + + // verify the required parameter 'nigoId' is set + if (nigoId == null) { + throw new ApiException( + "Missing the required parameter 'nigoId' when calling updateNigo(Async)"); + } + + // verify the required parameter 'updateNigoRequest' is set + if (updateNigoRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateNigoRequest' when calling updateNigo(Async)"); + } + + return updateNigoCall(caseId, nigoId, updateNigoRequest, siteId, _callback); + + } + + /** + * Update existing Nigo Updates existing nigo; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param updateNigoRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateNigoResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public UpdateNigoResponse updateNigo(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, + @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + updateNigoWithHttpInfo(caseId, nigoId, updateNigoRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update existing Nigo Updates existing nigo; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param updateNigoRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateNigoResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse updateNigoWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String nigoId, + @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + updateNigoValidateBeforeCall(caseId, nigoId, updateNigoRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update existing Nigo (asynchronously) Updates existing nigo; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param nigoId Nigo Identifier (required) + * @param updateNigoRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateNigoAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String nigoId, + @javax.annotation.Nonnull UpdateNigoRequest updateNigoRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateNigoValidateBeforeCall(caseId, nigoId, updateNigoRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateTask + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param updateTaskRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateTaskCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, + @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateTaskRequest; + + // create path and map variables + String localVarPath = "/cases/{caseId}/tasks/{taskId}" + .replace("{" + "caseId" + "}", localVarApiClient.escapeString(caseId.toString())) + .replace("{" + "taskId" + "}", localVarApiClient.escapeString(taskId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateTaskValidateBeforeCall(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, + @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + "Missing the required parameter 'caseId' when calling updateTask(Async)"); + } + + // verify the required parameter 'taskId' is set + if (taskId == null) { + throw new ApiException( + "Missing the required parameter 'taskId' when calling updateTask(Async)"); + } + + // verify the required parameter 'updateTaskRequest' is set + if (updateTaskRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateTaskRequest' when calling updateTask(Async)"); + } + + return updateTaskCall(caseId, taskId, updateTaskRequest, siteId, _callback); + + } + + /** + * Update existing Task Updates existing task; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param updateTaskRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateTaskResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public UpdateTaskResponse updateTask(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, + @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + updateTaskWithHttpInfo(caseId, taskId, updateTaskRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update existing Task Updates existing task; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param updateTaskRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateTaskResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse updateTaskWithHttpInfo( + @javax.annotation.Nonnull String caseId, @javax.annotation.Nonnull String taskId, + @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + updateTaskValidateBeforeCall(caseId, taskId, updateTaskRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update existing Task (asynchronously) Updates existing task; available as an Add-On Module + * + * @param caseId Case Identifier (required) + * @param taskId Task Identifier (required) + * @param updateTaskRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateTaskAsync(@javax.annotation.Nonnull String caseId, + @javax.annotation.Nonnull String taskId, + @javax.annotation.Nonnull UpdateTaskRequest updateTaskRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateTaskValidateBeforeCall(caseId, taskId, updateTaskRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/CustomIndexApi.java b/src/main/java/com/formkiq/client/api/CustomIndexApi.java index 1b626d1c0..00faac020 100644 --- a/src/main/java/com/formkiq/client/api/CustomIndexApi.java +++ b/src/main/java/com/formkiq/client/api/CustomIndexApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -41,501 +48,755 @@ import java.util.Map; public class CustomIndexApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public CustomIndexApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public CustomIndexApi() { + this(Configuration.getDefaultApiClient()); + } + + public CustomIndexApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for deleteIndex + * + * @param indexKey Index Key Identifier (required) + * @param indexType Index Type (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call deleteIndexCall(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public CustomIndexApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = null; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/indices/{indexType}/{indexKey}" + .replace("{" + "indexKey" + "}", localVarApiClient.escapeString(indexKey.toString())) + .replace("{" + "indexType" + "}", localVarApiClient.escapeString(indexType.toString())); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteIndexValidateBeforeCall(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexKey' is set + if (indexKey == null) { + throw new ApiException( + "Missing the required parameter 'indexKey' when calling deleteIndex(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + // verify the required parameter 'indexType' is set + if (indexType == null) { + throw new ApiException( + "Missing the required parameter 'indexType' when calling deleteIndex(Async)"); } - /** - * Build call for deleteIndex - * @param indexKey Index Key Identifier (required) - * @param indexType Index Type (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call deleteIndexCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/indices/{indexType}/{indexKey}" - .replace("{" + "indexKey" + "}", localVarApiClient.escapeString(indexKey.toString())) - .replace("{" + "indexType" + "}", localVarApiClient.escapeString(indexType.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return deleteIndexCall(indexKey, indexType, siteId, _callback); + + } + + /** + * + * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, + * you can set the indexKey to a URLEncoded path variable. + * + * @param indexKey Index Key Identifier (required) + * @param indexType Index Type (required) + * @param siteId Site Identifier (optional) + * @return DeleteIndicesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public DeleteIndicesResponse deleteIndex(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + deleteIndexWithHttpInfo(indexKey, indexType, siteId); + return localVarResp.getData(); + } + + /** + * + * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, + * you can set the indexKey to a URLEncoded path variable. + * + * @param indexKey Index Key Identifier (required) + * @param indexType Index Type (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteIndicesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse deleteIndexWithHttpInfo( + @javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteIndexValidateBeforeCall(indexKey, indexType, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Perform a delete on the Folder Index. When deleting a file from the + * \"folder\" index, you can set the indexKey to a URLEncoded path variable. + * + * @param indexKey Index Key Identifier (required) + * @param indexType Index Type (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call deleteIndexAsync(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteIndexValidateBeforeCall(indexKey, indexType, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for indexFolderMove + * + * @param indexType Index Type (required) + * @param indexFolderMoveRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call indexFolderMoveCall(@javax.annotation.Nonnull String indexType, + @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteIndexValidateBeforeCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexKey' is set - if (indexKey == null) { - throw new ApiException("Missing the required parameter 'indexKey' when calling deleteIndex(Async)"); - } + Object localVarPostBody = indexFolderMoveRequest; - // verify the required parameter 'indexType' is set - if (indexType == null) { - throw new ApiException("Missing the required parameter 'indexType' when calling deleteIndex(Async)"); - } + // create path and map variables + String localVarPath = "/indices/{indexType}/move".replace("{" + "indexType" + "}", + localVarApiClient.escapeString(indexType.toString())); - return deleteIndexCall(indexKey, indexType, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * - * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, you can set the indexKey to a URLEncoded path variable. - * @param indexKey Index Key Identifier (required) - * @param indexType Index Type (required) - * @param siteId Site Identifier (optional) - * @return DeleteIndicesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public DeleteIndicesResponse deleteIndex(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteIndexWithHttpInfo(indexKey, indexType, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * - * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, you can set the indexKey to a URLEncoded path variable. - * @param indexKey Index Key Identifier (required) - * @param indexType Index Type (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteIndicesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse deleteIndexWithHttpInfo(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteIndexValidateBeforeCall(indexKey, indexType, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * (asynchronously) - * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, you can set the indexKey to a URLEncoded path variable. - * @param indexKey Index Key Identifier (required) - * @param indexType Index Type (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call deleteIndexAsync(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull String indexType, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteIndexValidateBeforeCall(indexKey, indexType, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call indexFolderMoveValidateBeforeCall(@javax.annotation.Nonnull String indexType, + @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexType' is set + if (indexType == null) { + throw new ApiException( + "Missing the required parameter 'indexType' when calling indexFolderMove(Async)"); } - /** - * Build call for indexFolderMove - * @param indexType Index Type (required) - * @param indexFolderMoveRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call indexFolderMoveCall(@javax.annotation.Nonnull String indexType, @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = indexFolderMoveRequest; - - // create path and map variables - String localVarPath = "/indices/{indexType}/move" - .replace("{" + "indexType" + "}", localVarApiClient.escapeString(indexType.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'indexFolderMoveRequest' is set + if (indexFolderMoveRequest == null) { + throw new ApiException( + "Missing the required parameter 'indexFolderMoveRequest' when calling indexFolderMove(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call indexFolderMoveValidateBeforeCall(@javax.annotation.Nonnull String indexType, @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexType' is set - if (indexType == null) { - throw new ApiException("Missing the required parameter 'indexType' when calling indexFolderMove(Async)"); - } + return indexFolderMoveCall(indexType, indexFolderMoveRequest, siteId, _callback); + + } + + /** + * + * Perform an Folder Index Move + * + * @param indexType Index Type (required) + * @param indexFolderMoveRequest (required) + * @param siteId Site Identifier (optional) + * @return IndexFolderMoveResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public IndexFolderMoveResponse indexFolderMove(@javax.annotation.Nonnull String indexType, + @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + indexFolderMoveWithHttpInfo(indexType, indexFolderMoveRequest, siteId); + return localVarResp.getData(); + } + + /** + * + * Perform an Folder Index Move + * + * @param indexType Index Type (required) + * @param indexFolderMoveRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<IndexFolderMoveResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse indexFolderMoveWithHttpInfo( + @javax.annotation.Nonnull String indexType, + @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + indexFolderMoveValidateBeforeCall(indexType, indexFolderMoveRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Perform an Folder Index Move + * + * @param indexType Index Type (required) + * @param indexFolderMoveRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call indexFolderMoveAsync(@javax.annotation.Nonnull String indexType, + @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + indexFolderMoveValidateBeforeCall(indexType, indexFolderMoveRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for indexSearch + * + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call indexSearchCall( + @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - // verify the required parameter 'indexFolderMoveRequest' is set - if (indexFolderMoveRequest == null) { - throw new ApiException("Missing the required parameter 'indexFolderMoveRequest' when calling indexFolderMove(Async)"); - } + Object localVarPostBody = indexSearchRequest; - return indexFolderMoveCall(indexType, indexFolderMoveRequest, siteId, _callback); + // create path and map variables + String localVarPath = "/indices/search"; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * - * Perform an Folder Index Move - * @param indexType Index Type (required) - * @param indexFolderMoveRequest (required) - * @param siteId Site Identifier (optional) - * @return IndexFolderMoveResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public IndexFolderMoveResponse indexFolderMove(@javax.annotation.Nonnull String indexType, @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = indexFolderMoveWithHttpInfo(indexType, indexFolderMoveRequest, siteId); - return localVarResp.getData(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * - * Perform an Folder Index Move - * @param indexType Index Type (required) - * @param indexFolderMoveRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<IndexFolderMoveResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse indexFolderMoveWithHttpInfo(@javax.annotation.Nonnull String indexType, @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = indexFolderMoveValidateBeforeCall(indexType, indexFolderMoveRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * (asynchronously) - * Perform an Folder Index Move - * @param indexType Index Type (required) - * @param indexFolderMoveRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call indexFolderMoveAsync(@javax.annotation.Nonnull String indexType, @javax.annotation.Nonnull IndexFolderMoveRequest indexFolderMoveRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = indexFolderMoveValidateBeforeCall(indexType, indexFolderMoveRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for indexSearch - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call indexSearchCall(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = indexSearchRequest; - - // create path and map variables - String localVarPath = "/indices/search"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (previous != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call indexSearchValidateBeforeCall(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexSearchRequest' is set - if (indexSearchRequest == null) { - throw new ApiException("Missing the required parameter 'indexSearchRequest' when calling indexSearch(Async)"); - } - - return indexSearchCall(indexSearchRequest, siteId, limit, next, previous, _callback); - + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); } - /** - * - * Perform a search on a index; this is currently available for both folder and tag indices - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return IndexSearchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public IndexSearchResponse indexSearch(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { - ApiResponse localVarResp = indexSearchWithHttpInfo(indexSearchRequest, siteId, limit, next, previous); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * - * Perform a search on a index; this is currently available for both folder and tag indices - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return ApiResponse<IndexSearchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse indexSearchWithHttpInfo(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { - okhttp3.Call localVarCall = indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * (asynchronously) - * Perform a search on a index; this is currently available for both folder and tag indices - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call indexSearchAsync(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call indexSearchValidateBeforeCall( + @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexSearchRequest' is set + if (indexSearchRequest == null) { + throw new ApiException( + "Missing the required parameter 'indexSearchRequest' when calling indexSearch(Async)"); } + + return indexSearchCall(indexSearchRequest, siteId, limit, next, previous, _callback); + + } + + /** + * + * Perform a search on a index; this is currently available for both folder and tag indices + * + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return IndexSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public IndexSearchResponse indexSearch( + @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) + throws ApiException { + ApiResponse localVarResp = + indexSearchWithHttpInfo(indexSearchRequest, siteId, limit, next, previous); + return localVarResp.getData(); + } + + /** + * + * Perform a search on a index; this is currently available for both folder and tag indices + * + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return ApiResponse<IndexSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse indexSearchWithHttpInfo( + @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) + throws ApiException { + okhttp3.Call localVarCall = + indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Perform a search on a index; this is currently available for both folder and + * tag indices + * + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call indexSearchAsync( + @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentActionsApi.java b/src/main/java/com/formkiq/client/api/DocumentActionsApi.java index bf64af8c5..73f300e9b 100644 --- a/src/main/java/com/formkiq/client/api/DocumentActionsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentActionsApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -40,482 +47,782 @@ import java.util.Map; public class DocumentActionsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentActionsApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentActionsApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentActionsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocumentActions + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentActionsRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocumentActionsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public DocumentActionsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addDocumentActionsRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/documents/{documentId}/actions".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentActionsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocumentActions(Async)"); } - /** - * Build call for addDocumentActions - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentActionsRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocumentActionsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentActionsRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/actions" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addDocumentActionsCall(documentId, siteId, addDocumentActionsRequest, _callback); + + } + + /** + * Add document action Add one or more actions to a document; this appends actions and does not + * replace previous actions Each action type supports a different set of parameters as shown in + * the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | + * -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | + * TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | + * ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | + * ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR + * result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of + * pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert + * images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt + * Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext + * destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | + * DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | + * WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | + * notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | + * Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | + * Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | + * Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text + * | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | + * QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | + * eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | + * width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The + * height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type + * of the image (optional). | | | RESIZE | path | The path to use when creating resized document + * (optional). | | + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentActionsRequest (optional) + * @return AddDocumentActionsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddDocumentActionsResponse addDocumentActions(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest) + throws ApiException { + ApiResponse localVarResp = + addDocumentActionsWithHttpInfo(documentId, siteId, addDocumentActionsRequest); + return localVarResp.getData(); + } + + /** + * Add document action Add one or more actions to a document; this appends actions and does not + * replace previous actions Each action type supports a different set of parameters as shown in + * the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | + * -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | + * TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | + * ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | + * ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR + * result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of + * pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert + * images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt + * Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext + * destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | + * DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | + * WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | + * notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | + * Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | + * Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | + * Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text + * | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | + * QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | + * eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | + * width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The + * height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type + * of the image (optional). | | | RESIZE | path | The path to use when creating resized document + * (optional). | | + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentActionsRequest (optional) + * @return ApiResponse<AddDocumentActionsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addDocumentActionsWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest) + throws ApiException { + okhttp3.Call localVarCall = + addDocumentActionsValidateBeforeCall(documentId, siteId, addDocumentActionsRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add document action (asynchronously) Add one or more actions to a document; this appends + * actions and does not replace previous actions Each action type supports a different set of + * parameters as shown in the table below: ### Action Parameters | ActionType | Parameter | + * Description | Example | | -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr + * Parsing strategy to use | TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') + * | | OCR | ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | + * | OCR | ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert + * OCR result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number + * of pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents + * convert images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM + * Prompt Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to + * Fulltext destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | + * DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | + * WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | + * notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | + * Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | + * Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | + * Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text + * | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | + * QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | + * eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | + * width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The + * height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type + * of the image (optional). | | | RESIZE | path | The path to use when creating resized document + * (optional). | | + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentActionsRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocumentActionsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentActionsValidateBeforeCall(documentId, siteId, + addDocumentActionsRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addDocumentRetryAction + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocumentRetryActionCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentActionsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentActions(Async)"); - } + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/actions/retry".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - return addDocumentActionsCall(documentId, siteId, addDocumentActionsRequest, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add document action - * Add one or more actions to a document; this appends actions and does not replace previous actions Each action type supports a different set of parameters as shown in the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type of the image (optional). | | | RESIZE | path | The path to use when creating resized document (optional). | | - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentActionsRequest (optional) - * @return AddDocumentActionsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddDocumentActionsResponse addDocumentActions(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest) throws ApiException { - ApiResponse localVarResp = addDocumentActionsWithHttpInfo(documentId, siteId, addDocumentActionsRequest); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add document action - * Add one or more actions to a document; this appends actions and does not replace previous actions Each action type supports a different set of parameters as shown in the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type of the image (optional). | | | RESIZE | path | The path to use when creating resized document (optional). | | - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentActionsRequest (optional) - * @return ApiResponse<AddDocumentActionsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addDocumentActionsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest) throws ApiException { - okhttp3.Call localVarCall = addDocumentActionsValidateBeforeCall(documentId, siteId, addDocumentActionsRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add document action (asynchronously) - * Add one or more actions to a document; this appends actions and does not replace previous actions Each action type supports a different set of parameters as shown in the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type of the image (optional). | | | RESIZE | path | The path to use when creating resized document (optional). | | - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentActionsRequest (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocumentActionsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentActionsRequest addDocumentActionsRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentActionsValidateBeforeCall(documentId, siteId, addDocumentActionsRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentRetryActionValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocumentRetryAction(Async)"); } - /** - * Build call for addDocumentRetryAction - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocumentRetryActionCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/actions/retry" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return addDocumentRetryActionCall(documentId, siteId, _callback); + + } + + /** + * Retries failed document action(s) Retries all failed document action(s). Failed action status + * changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return AddDocumentActionsRetryResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddDocumentActionsRetryResponse addDocumentRetryAction( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + addDocumentRetryActionWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Retries failed document action(s) Retries all failed document action(s). Failed action status + * changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocumentActionsRetryResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addDocumentRetryActionWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = addDocumentRetryActionValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retries failed document action(s) (asynchronously) Retries all failed document action(s). + * Failed action status changes to \"FAILED_RETRY\" and a new \"PENDING\" + * action is created. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocumentRetryActionAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + addDocumentRetryActionValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentActions + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentActionsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentRetryActionValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentRetryAction(Async)"); - } + Object localVarPostBody = null; - return addDocumentRetryActionCall(documentId, siteId, _callback); + // create path and map variables + String localVarPath = "/documents/{documentId}/actions".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Retries failed document action(s) - * Retries all failed document action(s). Failed action status changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return AddDocumentActionsRetryResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddDocumentActionsRetryResponse addDocumentRetryAction(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addDocumentRetryActionWithHttpInfo(documentId, siteId); - return localVarResp.getData(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Retries failed document action(s) - * Retries all failed document action(s). Failed action status changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocumentActionsRetryResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addDocumentRetryActionWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocumentRetryActionValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Retries failed document action(s) (asynchronously) - * Retries all failed document action(s). Failed action status changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocumentRetryActionAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentRetryActionValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentActions - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentActionsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/actions" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentActionsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentActions(Async)"); - } - - return getDocumentActionsCall(documentId, siteId, limit, shareKey, next, _callback); - + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - /** - * Get document actions - * Get document actions and their status - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return GetDocumentActionsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentActionsResponse getDocumentActions(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getDocumentActionsWithHttpInfo(documentId, siteId, limit, shareKey, next); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get document actions - * Get document actions and their status - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return ApiResponse<GetDocumentActionsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentActionsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getDocumentActionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get document actions (asynchronously) - * Get document actions and their status - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentActionsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentActionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentActionsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentActions(Async)"); } + + return getDocumentActionsCall(documentId, siteId, limit, shareKey, next, _callback); + + } + + /** + * Get document actions Get document actions and their status + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return GetDocumentActionsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentActionsResponse getDocumentActions(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) + throws ApiException { + ApiResponse localVarResp = + getDocumentActionsWithHttpInfo(documentId, siteId, limit, shareKey, next); + return localVarResp.getData(); + } + + /** + * Get document actions Get document actions and their status + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return ApiResponse<GetDocumentActionsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentActionsWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = + getDocumentActionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document actions (asynchronously) Get document actions and their status + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentActionsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentActionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentAttributesApi.java b/src/main/java/com/formkiq/client/api/DocumentAttributesApi.java index 2f560bfad..644818713 100644 --- a/src/main/java/com/formkiq/client/api/DocumentAttributesApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentAttributesApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -43,1081 +50,1560 @@ import java.util.Map; public class DocumentAttributesApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentAttributesApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentAttributesApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentAttributesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocumentAttributes + * + * @param documentId Document Identifier (required) + * @param addDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentAttributesCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public DocumentAttributesApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addDocumentAttributesRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentAttributesValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocumentAttributes(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + // verify the required parameter 'addDocumentAttributesRequest' is set + if (addDocumentAttributesRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocumentAttributesRequest' when calling addDocumentAttributes(Async)"); } - /** - * Build call for addDocumentAttributes - * @param documentId Document Identifier (required) - * @param addDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentAttributesCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentAttributesRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addDocumentAttributesCall(documentId, addDocumentAttributesRequest, siteId, _callback); + + } + + /** + * Add attribute to document Add multiple attributes to a document; this endpoint also accepts a + * different body parameter for adding a single attribute + * + * @param documentId Document Identifier (required) + * @param addDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddResponse addDocumentAttributes(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addDocumentAttributesWithHttpInfo(documentId, addDocumentAttributesRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add attribute to document Add multiple attributes to a document; this endpoint also accepts a + * different body parameter for adding a single attribute + * + * @param documentId Document Identifier (required) + * @param addDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addDocumentAttributesWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocumentAttributesValidateBeforeCall(documentId, + addDocumentAttributesRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add attribute to document (asynchronously) Add multiple attributes to a document; this endpoint + * also accepts a different body parameter for adding a single attribute + * + * @param documentId Document Identifier (required) + * @param addDocumentAttributesRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addDocumentAttributesValidateBeforeCall(documentId, + addDocumentAttributesRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteDocumentAttribute + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentAttributeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentAttributesValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentAttributes(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'addDocumentAttributesRequest' is set - if (addDocumentAttributesRequest == null) { - throw new ApiException("Missing the required parameter 'addDocumentAttributesRequest' when calling addDocumentAttributes(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "attributeKey" + "}", + localVarApiClient.escapeString(attributeKey.toString())); - return addDocumentAttributesCall(documentId, addDocumentAttributesRequest, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add attribute to document - * Add multiple attributes to a document; this endpoint also accepts a different body parameter for adding a single attribute - * @param documentId Document Identifier (required) - * @param addDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddResponse addDocumentAttributes(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addDocumentAttributesWithHttpInfo(documentId, addDocumentAttributesRequest, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add attribute to document - * Add multiple attributes to a document; this endpoint also accepts a different body parameter for adding a single attribute - * @param documentId Document Identifier (required) - * @param addDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addDocumentAttributesWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocumentAttributesValidateBeforeCall(documentId, addDocumentAttributesRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add attribute to document (asynchronously) - * Add multiple attributes to a document; this endpoint also accepts a different body parameter for adding a single attribute - * @param documentId Document Identifier (required) - * @param addDocumentAttributesRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentAttributesRequest addDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentAttributesValidateBeforeCall(documentId, addDocumentAttributesRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentAttributeValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocumentAttribute(Async)"); } - /** - * Build call for deleteDocumentAttribute - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentAttributeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "attributeKey" + "}", localVarApiClient.escapeString(attributeKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'attributeKey' is set + if (attributeKey == null) { + throw new ApiException( + "Missing the required parameter 'attributeKey' when calling deleteDocumentAttribute(Async)"); + } + + return deleteDocumentAttributeCall(documentId, attributeKey, siteId, _callback); + + } + + /** + * Delete document attribute Delete a document attribute by using its key + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteDocumentAttribute(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + deleteDocumentAttributeWithHttpInfo(documentId, attributeKey, siteId); + return localVarResp.getData(); + } + + /** + * Delete document attribute Delete a document attribute by using its key + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentAttributeWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + deleteDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document attribute (asynchronously) Delete a document attribute by using its key + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentAttributeAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteDocumentAttributeAndValue + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param attributeValue Attribute Value (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentAttributeAndValueCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentAttributeValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentAttribute(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'attributeKey' is set - if (attributeKey == null) { - throw new ApiException("Missing the required parameter 'attributeKey' when calling deleteDocumentAttribute(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes/{attributeKey}/{attributeValue}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "attributeKey" + "}", + localVarApiClient.escapeString(attributeKey.toString())) + .replace("{" + "attributeValue" + "}", + localVarApiClient.escapeString(attributeValue.toString())); - return deleteDocumentAttributeCall(documentId, attributeKey, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete document attribute - * Delete a document attribute by using its key - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteDocumentAttribute(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteDocumentAttributeWithHttpInfo(documentId, attributeKey, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete document attribute - * Delete a document attribute by using its key - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentAttributeWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Delete document attribute (asynchronously) - * Delete a document attribute by using its key - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentAttributeAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentAttributeAndValueValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocumentAttributeAndValue(Async)"); } - /** - * Build call for deleteDocumentAttributeAndValue - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param attributeValue Attribute Value (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentAttributeAndValueCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes/{attributeKey}/{attributeValue}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "attributeKey" + "}", localVarApiClient.escapeString(attributeKey.toString())) - .replace("{" + "attributeValue" + "}", localVarApiClient.escapeString(attributeValue.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'attributeKey' is set + if (attributeKey == null) { + throw new ApiException( + "Missing the required parameter 'attributeKey' when calling deleteDocumentAttributeAndValue(Async)"); + } + + // verify the required parameter 'attributeValue' is set + if (attributeValue == null) { + throw new ApiException( + "Missing the required parameter 'attributeValue' when calling deleteDocumentAttributeAndValue(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentAttributeAndValueValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentAttributeAndValue(Async)"); - } + return deleteDocumentAttributeAndValueCall(documentId, attributeKey, attributeValue, siteId, + _callback); + + } + + /** + * Delete document's attribute value Delete a specific document attribute key/value + * combination; the request will be ignored if there is no valid key/value combination found + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param attributeValue Attribute Value (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteDocumentAttributeAndValue(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = deleteDocumentAttributeAndValueWithHttpInfo( + documentId, attributeKey, attributeValue, siteId); + return localVarResp.getData(); + } + + /** + * Delete document's attribute value Delete a specific document attribute key/value + * combination; the request will be ignored if there is no valid key/value combination found + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param attributeValue Attribute Value (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentAttributeAndValueWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteDocumentAttributeAndValueValidateBeforeCall(documentId, + attributeKey, attributeValue, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document's attribute value (asynchronously) Delete a specific document attribute + * key/value combination; the request will be ignored if there is no valid key/value combination + * found + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param attributeValue Attribute Value (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentAttributeAndValueAsync( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentAttributeAndValueValidateBeforeCall(documentId, + attributeKey, attributeValue, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentAttribute + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentAttributeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - // verify the required parameter 'attributeKey' is set - if (attributeKey == null) { - throw new ApiException("Missing the required parameter 'attributeKey' when calling deleteDocumentAttributeAndValue(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'attributeValue' is set - if (attributeValue == null) { - throw new ApiException("Missing the required parameter 'attributeValue' when calling deleteDocumentAttributeAndValue(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "attributeKey" + "}", + localVarApiClient.escapeString(attributeKey.toString())); - return deleteDocumentAttributeAndValueCall(documentId, attributeKey, attributeValue, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete document's attribute value - * Delete a specific document attribute key/value combination; the request will be ignored if there is no valid key/value combination found - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param attributeValue Attribute Value (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteDocumentAttributeAndValue(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteDocumentAttributeAndValueWithHttpInfo(documentId, attributeKey, attributeValue, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete document's attribute value - * Delete a specific document attribute key/value combination; the request will be ignored if there is no valid key/value combination found - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param attributeValue Attribute Value (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentAttributeAndValueWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentAttributeAndValueValidateBeforeCall(documentId, attributeKey, attributeValue, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Delete document's attribute value (asynchronously) - * Delete a specific document attribute key/value combination; the request will be ignored if there is no valid key/value combination found - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param attributeValue Attribute Value (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentAttributeAndValueAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull String attributeValue, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentAttributeAndValueValidateBeforeCall(documentId, attributeKey, attributeValue, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentAttributeValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentAttribute(Async)"); } - /** - * Build call for getDocumentAttribute - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentAttributeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "attributeKey" + "}", localVarApiClient.escapeString(attributeKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'attributeKey' is set + if (attributeKey == null) { + throw new ApiException( + "Missing the required parameter 'attributeKey' when calling getDocumentAttribute(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentAttributeValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentAttribute(Async)"); - } + return getDocumentAttributeCall(documentId, attributeKey, siteId, _callback); + + } + + /** + * Get document attribute by key Get a document attribute by using its key + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @return GetDocumentAttributeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentAttributeResponse getDocumentAttribute( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + getDocumentAttributeWithHttpInfo(documentId, attributeKey, siteId); + return localVarResp.getData(); + } + + /** + * Get document attribute by key Get a document attribute by using its key + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetDocumentAttributeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentAttributeWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + getDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document attribute by key (asynchronously) Get a document attribute by using its key + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentAttributeAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentAttributes + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentAttributesCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - // verify the required parameter 'attributeKey' is set - if (attributeKey == null) { - throw new ApiException("Missing the required parameter 'attributeKey' when calling getDocumentAttribute(Async)"); - } + Object localVarPostBody = null; - return getDocumentAttributeCall(documentId, attributeKey, siteId, _callback); + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Get document attribute by key - * Get a document attribute by using its key - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @return GetDocumentAttributeResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentAttributeResponse getDocumentAttribute(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getDocumentAttributeWithHttpInfo(documentId, attributeKey, siteId); - return localVarResp.getData(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get document attribute by key - * Get a document attribute by using its key - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetDocumentAttributeResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentAttributeWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Get document attribute by key (asynchronously) - * Get a document attribute by using its key - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentAttributeAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentAttributeValidateBeforeCall(documentId, attributeKey, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentAttributes - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentAttributesCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentAttributesValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentAttributes(Async)"); - } - - return getDocumentAttributesCall(documentId, siteId, limit, next, _callback); - + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get document's attributes - * Get a listing of a document's attributes - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetDocumentAttributesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentAttributesResponse getDocumentAttributes(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getDocumentAttributesWithHttpInfo(documentId, siteId, limit, next); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get document's attributes - * Get a listing of a document's attributes - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetDocumentAttributesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentAttributesWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getDocumentAttributesValidateBeforeCall(documentId, siteId, limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentAttributesValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentAttributes(Async)"); } - /** - * Get document's attributes (asynchronously) - * Get a listing of a document's attributes - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentAttributesValidateBeforeCall(documentId, siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setDocumentAttributeValue - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param setDocumentAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentAttributeValueCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setDocumentAttributeRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "attributeKey" + "}", localVarApiClient.escapeString(attributeKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return getDocumentAttributesCall(documentId, siteId, limit, next, _callback); + + } + + /** + * Get document's attributes Get a listing of a document's attributes + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetDocumentAttributesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentAttributesResponse getDocumentAttributes( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + ApiResponse localVarResp = + getDocumentAttributesWithHttpInfo(documentId, siteId, limit, next); + return localVarResp.getData(); + } + + /** + * Get document's attributes Get a listing of a document's attributes + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetDocumentAttributesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentAttributesWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + okhttp3.Call localVarCall = + getDocumentAttributesValidateBeforeCall(documentId, siteId, limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document's attributes (asynchronously) Get a listing of a document's attributes + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentAttributesValidateBeforeCall(documentId, siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentAttributeValue + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param setDocumentAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentAttributeValueCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentAttributeValueValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentAttributeValue(Async)"); - } + Object localVarPostBody = setDocumentAttributeRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes/{attributeKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "attributeKey" + "}", + localVarApiClient.escapeString(attributeKey.toString())); - // verify the required parameter 'attributeKey' is set - if (attributeKey == null) { - throw new ApiException("Missing the required parameter 'attributeKey' when calling setDocumentAttributeValue(Async)"); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - // verify the required parameter 'setDocumentAttributeRequest' is set - if (setDocumentAttributeRequest == null) { - throw new ApiException("Missing the required parameter 'setDocumentAttributeRequest' when calling setDocumentAttributeValue(Async)"); - } + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } - return setDocumentAttributeValueCall(documentId, attributeKey, setDocumentAttributeRequest, siteId, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set document's attributes value - * Set attributes value to a document - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param setDocumentAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setDocumentAttributeValue(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setDocumentAttributeValueWithHttpInfo(documentId, attributeKey, setDocumentAttributeRequest, siteId); - return localVarResp.getData(); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentAttributeValueValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentAttributeValue(Async)"); } - /** - * Set document's attributes value - * Set attributes value to a document - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param setDocumentAttributeRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setDocumentAttributeValueWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentAttributeValueValidateBeforeCall(documentId, attributeKey, setDocumentAttributeRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + // verify the required parameter 'attributeKey' is set + if (attributeKey == null) { + throw new ApiException( + "Missing the required parameter 'attributeKey' when calling setDocumentAttributeValue(Async)"); } - /** - * Set document's attributes value (asynchronously) - * Set attributes value to a document - * @param documentId Document Identifier (required) - * @param attributeKey Attribute Key (required) - * @param setDocumentAttributeRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentAttributeValueAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentAttributeValueValidateBeforeCall(documentId, attributeKey, setDocumentAttributeRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'setDocumentAttributeRequest' is set + if (setDocumentAttributeRequest == null) { + throw new ApiException( + "Missing the required parameter 'setDocumentAttributeRequest' when calling setDocumentAttributeValue(Async)"); } - /** - * Build call for setDocumentAttributes - * @param documentId Document Identifier (required) - * @param setDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentAttributesCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setDocumentAttributesRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/attributes" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return setDocumentAttributeValueCall(documentId, attributeKey, setDocumentAttributeRequest, + siteId, _callback); + + } + + /** + * Set document's attributes value Set attributes value to a document + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param setDocumentAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setDocumentAttributeValue(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setDocumentAttributeValueWithHttpInfo(documentId, + attributeKey, setDocumentAttributeRequest, siteId); + return localVarResp.getData(); + } + + /** + * Set document's attributes value Set attributes value to a document + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param setDocumentAttributeRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setDocumentAttributeValueWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentAttributeValueValidateBeforeCall(documentId, + attributeKey, setDocumentAttributeRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set document's attributes value (asynchronously) Set attributes value to a document + * + * @param documentId Document Identifier (required) + * @param attributeKey Attribute Key (required) + * @param setDocumentAttributeRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentAttributeValueAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String attributeKey, + @javax.annotation.Nonnull SetDocumentAttributeRequest setDocumentAttributeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = setDocumentAttributeValueValidateBeforeCall(documentId, + attributeKey, setDocumentAttributeRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentAttributes + * + * @param documentId Document Identifier (required) + * @param setDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentAttributesCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentAttributesValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentAttributes(Async)"); - } + Object localVarPostBody = setDocumentAttributesRequest; - // verify the required parameter 'setDocumentAttributesRequest' is set - if (setDocumentAttributesRequest == null) { - throw new ApiException("Missing the required parameter 'setDocumentAttributesRequest' when calling setDocumentAttributes(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/attributes".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - return setDocumentAttributesCall(documentId, setDocumentAttributesRequest, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Set document's attributes - * Set multiple attributes to a document; this endpoint also accepts a different body parameter for setting a single attribute Note: - attributes in the request will overwrite existing attributes. - * @param documentId Document Identifier (required) - * @param setDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setDocumentAttributes(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setDocumentAttributesWithHttpInfo(documentId, setDocumentAttributesRequest, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set document's attributes - * Set multiple attributes to a document; this endpoint also accepts a different body parameter for setting a single attribute Note: - attributes in the request will overwrite existing attributes. - * @param documentId Document Identifier (required) - * @param setDocumentAttributesRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setDocumentAttributesWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentAttributesValidateBeforeCall(documentId, setDocumentAttributesRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set document's attributes (asynchronously) - * Set multiple attributes to a document; this endpoint also accepts a different body parameter for setting a single attribute Note: - attributes in the request will overwrite existing attributes. - * @param documentId Document Identifier (required) - * @param setDocumentAttributesRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentAttributesValidateBeforeCall(documentId, setDocumentAttributesRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentAttributesValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentAttributes(Async)"); } + + // verify the required parameter 'setDocumentAttributesRequest' is set + if (setDocumentAttributesRequest == null) { + throw new ApiException( + "Missing the required parameter 'setDocumentAttributesRequest' when calling setDocumentAttributes(Async)"); + } + + return setDocumentAttributesCall(documentId, setDocumentAttributesRequest, siteId, _callback); + + } + + /** + * Set document's attributes Set multiple attributes to a document; this endpoint also accepts + * a different body parameter for setting a single attribute Note: - attributes in the request + * will overwrite existing attributes. + * + * @param documentId Document Identifier (required) + * @param setDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setDocumentAttributes(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + setDocumentAttributesWithHttpInfo(documentId, setDocumentAttributesRequest, siteId); + return localVarResp.getData(); + } + + /** + * Set document's attributes Set multiple attributes to a document; this endpoint also accepts + * a different body parameter for setting a single attribute Note: - attributes in the request + * will overwrite existing attributes. + * + * @param documentId Document Identifier (required) + * @param setDocumentAttributesRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setDocumentAttributesWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentAttributesValidateBeforeCall(documentId, + setDocumentAttributesRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set document's attributes (asynchronously) Set multiple attributes to a document; this + * endpoint also accepts a different body parameter for setting a single attribute Note: - + * attributes in the request will overwrite existing attributes. + * + * @param documentId Document Identifier (required) + * @param setDocumentAttributesRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentAttributesAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull SetDocumentAttributesRequest setDocumentAttributesRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = setDocumentAttributesValidateBeforeCall(documentId, + setDocumentAttributesRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentDataClassificationApi.java b/src/main/java/com/formkiq/client/api/DocumentDataClassificationApi.java index 4b8e61a85..4bcb1828f 100644 --- a/src/main/java/com/formkiq/client/api/DocumentDataClassificationApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentDataClassificationApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -38,331 +45,470 @@ import java.util.Map; public class DocumentDataClassificationApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentDataClassificationApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentDataClassificationApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentDataClassificationApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getDocumentDataClassification + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentDataClassificationCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public DocumentDataClassificationApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = null; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/documents/{documentId}/dataClassification" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Build call for getDocumentDataClassification - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentDataClassificationCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/dataClassification" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentDataClassificationValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentDataClassification(Async)"); - } - - return getDocumentDataClassificationCall(documentId, siteId, limit, next, _callback); - + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentDataClassificationValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentDataClassification(Async)"); } - /** - * Get document's data classification - * Retrieve an document's data classification; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetDocumentDataClassificationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentDataClassificationResponse getDocumentDataClassification(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getDocumentDataClassificationWithHttpInfo(documentId, siteId, limit, next); - return localVarResp.getData(); + return getDocumentDataClassificationCall(documentId, siteId, limit, next, _callback); + + } + + /** + * Get document's data classification Retrieve an document's data classification; + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetDocumentDataClassificationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentDataClassificationResponse getDocumentDataClassification( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + ApiResponse localVarResp = + getDocumentDataClassificationWithHttpInfo(documentId, siteId, limit, next); + return localVarResp.getData(); + } + + /** + * Get document's data classification Retrieve an document's data classification; + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetDocumentDataClassificationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentDataClassificationWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + okhttp3.Call localVarCall = + getDocumentDataClassificationValidateBeforeCall(documentId, siteId, limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document's data classification (asynchronously) Retrieve an document's data + * classification; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentDataClassificationAsync( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentDataClassificationValidateBeforeCall(documentId, siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentDataClassification + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentDataClassificationRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentDataClassificationCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Get document's data classification - * Retrieve an document's data classification; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetDocumentDataClassificationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentDataClassificationWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getDocumentDataClassificationValidateBeforeCall(documentId, siteId, limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } + Object localVarPostBody = setDocumentDataClassificationRequest; - /** - * Get document's data classification (asynchronously) - * Retrieve an document's data classification; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentDataClassificationAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentDataClassificationValidateBeforeCall(documentId, siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setDocumentDataClassification - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentDataClassificationRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentDataClassificationCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setDocumentDataClassificationRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/dataClassification" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/dataClassification" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentDataClassificationValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentDataClassification(Async)"); - } - - return setDocumentDataClassificationCall(documentId, siteId, setDocumentDataClassificationRequest, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Set document's data classification - * Generate Data Classfication attributes within a document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentDataClassificationRequest (optional) - * @return SetDocumentDataClassificationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetDocumentDataClassificationResponse setDocumentDataClassification(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest) throws ApiException { - ApiResponse localVarResp = setDocumentDataClassificationWithHttpInfo(documentId, siteId, setDocumentDataClassificationRequest); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set document's data classification - * Generate Data Classfication attributes within a document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentDataClassificationRequest (optional) - * @return ApiResponse<SetDocumentDataClassificationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setDocumentDataClassificationWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest) throws ApiException { - okhttp3.Call localVarCall = setDocumentDataClassificationValidateBeforeCall(documentId, siteId, setDocumentDataClassificationRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set document's data classification (asynchronously) - * Generate Data Classfication attributes within a document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentDataClassificationRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentDataClassificationAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentDataClassificationValidateBeforeCall(documentId, siteId, setDocumentDataClassificationRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentDataClassificationValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentDataClassification(Async)"); } + + return setDocumentDataClassificationCall(documentId, siteId, + setDocumentDataClassificationRequest, _callback); + + } + + /** + * Set document's data classification Generate Data Classfication attributes within a + * document; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentDataClassificationRequest (optional) + * @return SetDocumentDataClassificationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetDocumentDataClassificationResponse setDocumentDataClassification( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest) + throws ApiException { + ApiResponse localVarResp = + setDocumentDataClassificationWithHttpInfo(documentId, siteId, + setDocumentDataClassificationRequest); + return localVarResp.getData(); + } + + /** + * Set document's data classification Generate Data Classfication attributes within a + * document; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentDataClassificationRequest (optional) + * @return ApiResponse<SetDocumentDataClassificationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setDocumentDataClassificationWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest) + throws ApiException { + okhttp3.Call localVarCall = setDocumentDataClassificationValidateBeforeCall(documentId, siteId, + setDocumentDataClassificationRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set document's data classification (asynchronously) Generate Data Classfication attributes + * within a document; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentDataClassificationRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentDataClassificationAsync( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentDataClassificationRequest setDocumentDataClassificationRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentDataClassificationValidateBeforeCall(documentId, siteId, + setDocumentDataClassificationRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentFoldersApi.java b/src/main/java/com/formkiq/client/api/DocumentFoldersApi.java index d1a1fa2e4..bd1b643cb 100644 --- a/src/main/java/com/formkiq/client/api/DocumentFoldersApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentFoldersApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -42,761 +49,1075 @@ import java.util.Map; public class DocumentFoldersApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentFoldersApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentFoldersApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentFoldersApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addFolder + * + * @param addFolderRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addFolderCall(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public DocumentFoldersApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addFolderRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/folders"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public int getHostIndex() { - return localHostIndex; + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addFolderValidateBeforeCall( + @javax.annotation.Nonnull AddFolderRequest addFolderRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addFolderRequest' is set + if (addFolderRequest == null) { + throw new ApiException( + "Missing the required parameter 'addFolderRequest' when calling addFolder(Async)"); } - /** - * Build call for addFolder - * @param addFolderRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addFolderCall(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addFolderRequest; - - // create path and map variables - String localVarPath = "/folders"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addFolderCall(addFolderRequest, siteId, shareKey, _callback); + + } + + /** + * Add document folder Creates a new folder + * + * @param addFolderRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return AddFolderResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddFolderResponse addFolder(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + ApiResponse localVarResp = + addFolderWithHttpInfo(addFolderRequest, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Add document folder Creates a new folder + * + * @param addFolderRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<AddFolderResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addFolderWithHttpInfo( + @javax.annotation.Nonnull AddFolderRequest addFolderRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + okhttp3.Call localVarCall = + addFolderValidateBeforeCall(addFolderRequest, siteId, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add document folder (asynchronously) Creates a new folder + * + * @param addFolderRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addFolderAsync(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + addFolderValidateBeforeCall(addFolderRequest, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteFolder + * + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteFolderCall(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addFolderValidateBeforeCall(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addFolderRequest' is set - if (addFolderRequest == null) { - throw new ApiException("Missing the required parameter 'addFolderRequest' when calling addFolder(Async)"); - } + Object localVarPostBody = null; - return addFolderCall(addFolderRequest, siteId, shareKey, _callback); + // create path and map variables + String localVarPath = "/folders/{indexKey}".replace("{" + "indexKey" + "}", + localVarApiClient.escapeString(indexKey.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add document folder - * Creates a new folder - * @param addFolderRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return AddFolderResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddFolderResponse addFolder(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = addFolderWithHttpInfo(addFolderRequest, siteId, shareKey); - return localVarResp.getData(); + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - /** - * Add document folder - * Creates a new folder - * @param addFolderRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<AddFolderResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addFolderWithHttpInfo(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = addFolderValidateBeforeCall(addFolderRequest, siteId, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add document folder (asynchronously) - * Creates a new folder - * @param addFolderRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addFolderAsync(@javax.annotation.Nonnull AddFolderRequest addFolderRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addFolderValidateBeforeCall(addFolderRequest, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Build call for deleteFolder - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteFolderCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/folders/{indexKey}" - .replace("{" + "indexKey" + "}", localVarApiClient.escapeString(indexKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteFolderValidateBeforeCall(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexKey' is set + if (indexKey == null) { + throw new ApiException( + "Missing the required parameter 'indexKey' when calling deleteFolder(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteFolderValidateBeforeCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexKey' is set - if (indexKey == null) { - throw new ApiException("Missing the required parameter 'indexKey' when calling deleteFolder(Async)"); - } + return deleteFolderCall(indexKey, siteId, shareKey, _callback); + + } + + /** + * Delete document folder Delete a specific folder; folder must be empty + * + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return DeleteFolderResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteFolderResponse deleteFolder(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + ApiResponse localVarResp = + deleteFolderWithHttpInfo(indexKey, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Delete document folder Delete a specific folder; folder must be empty + * + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<DeleteFolderResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteFolderWithHttpInfo( + @javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = deleteFolderValidateBeforeCall(indexKey, siteId, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document folder (asynchronously) Delete a specific folder; folder must be empty + * + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteFolderAsync(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteFolderValidateBeforeCall(indexKey, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getFolderDocuments + * + * @param siteId Site Identifier (optional) + * @param indexKey Index Key Identifier (optional) + * @param path Path query parameter (must be URL Encoded) (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getFolderDocumentsCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - return deleteFolderCall(indexKey, siteId, shareKey, _callback); + Object localVarPostBody = null; - } + // create path and map variables + String localVarPath = "/folders"; - /** - * Delete document folder - * Delete a specific folder; folder must be empty - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return DeleteFolderResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteFolderResponse deleteFolder(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = deleteFolderWithHttpInfo(indexKey, siteId, shareKey); - return localVarResp.getData(); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Delete document folder - * Delete a specific folder; folder must be empty - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<DeleteFolderResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteFolderWithHttpInfo(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = deleteFolderValidateBeforeCall(indexKey, siteId, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete document folder (asynchronously) - * Delete a specific folder; folder must be empty - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteFolderAsync(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteFolderValidateBeforeCall(indexKey, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + if (indexKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexKey", indexKey)); } - /** - * Build call for getFolderDocuments - * @param siteId Site Identifier (optional) - * @param indexKey Index Key Identifier (optional) - * @param path Path query parameter (must be URL Encoded) (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getFolderDocumentsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/folders"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (indexKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("indexKey", indexKey)); - } - - if (path != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getFolderDocumentsValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - return getFolderDocumentsCall(siteId, indexKey, path, limit, shareKey, next, _callback); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - /** - * Get document folders - * Get list of documents in a folder - * @param siteId Site Identifier (optional) - * @param indexKey Index Key Identifier (optional) - * @param path Path query parameter (must be URL Encoded) (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return GetFoldersResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetFoldersResponse getFolderDocuments(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getFolderDocumentsWithHttpInfo(siteId, indexKey, path, limit, shareKey, next); - return localVarResp.getData(); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - /** - * Get document folders - * Get list of documents in a folder - * @param siteId Site Identifier (optional) - * @param indexKey Index Key Identifier (optional) - * @param path Path query parameter (must be URL Encoded) (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return ApiResponse<GetFoldersResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getFolderDocumentsWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getFolderDocumentsValidateBeforeCall(siteId, indexKey, path, limit, shareKey, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get document folders (asynchronously) - * Get list of documents in a folder - * @param siteId Site Identifier (optional) - * @param indexKey Index Key Identifier (optional) - * @param path Path query parameter (must be URL Encoded) (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getFolderDocumentsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getFolderDocumentsValidateBeforeCall(siteId, indexKey, path, limit, shareKey, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Build call for getFolderPermissions - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getFolderPermissionsCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/folders/{indexKey}/permissions" - .replace("{" + "indexKey" + "}", localVarApiClient.escapeString(indexKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFolderDocumentsValidateBeforeCall( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, + @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + return getFolderDocumentsCall(siteId, indexKey, path, limit, shareKey, next, _callback); + + } + + /** + * Get document folders Get list of documents in a folder + * + * @param siteId Site Identifier (optional) + * @param indexKey Index Key Identifier (optional) + * @param path Path query parameter (must be URL Encoded) (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return GetFoldersResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetFoldersResponse getFolderDocuments(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = + getFolderDocumentsWithHttpInfo(siteId, indexKey, path, limit, shareKey, next); + return localVarResp.getData(); + } + + /** + * Get document folders Get list of documents in a folder + * + * @param siteId Site Identifier (optional) + * @param indexKey Index Key Identifier (optional) + * @param path Path query parameter (must be URL Encoded) (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return ApiResponse<GetFoldersResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getFolderDocumentsWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String indexKey, + @javax.annotation.Nullable String path, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) + throws ApiException { + okhttp3.Call localVarCall = + getFolderDocumentsValidateBeforeCall(siteId, indexKey, path, limit, shareKey, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document folders (asynchronously) Get list of documents in a folder + * + * @param siteId Site Identifier (optional) + * @param indexKey Index Key Identifier (optional) + * @param path Path query parameter (must be URL Encoded) (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getFolderDocumentsAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String indexKey, @javax.annotation.Nullable String path, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable String next, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getFolderDocumentsValidateBeforeCall(siteId, indexKey, path, limit, + shareKey, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getFolderPermissions + * + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getFolderPermissionsCall(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call getFolderPermissionsValidateBeforeCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexKey' is set - if (indexKey == null) { - throw new ApiException("Missing the required parameter 'indexKey' when calling getFolderPermissions(Async)"); - } + Object localVarPostBody = null; - return getFolderPermissionsCall(indexKey, siteId, _callback); + // create path and map variables + String localVarPath = "/folders/{indexKey}/permissions".replace("{" + "indexKey" + "}", + localVarApiClient.escapeString(indexKey.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get folder permissions - * Get list of permissions for a folder - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetFolderPermissionsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetFolderPermissionsResponse getFolderPermissions(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getFolderPermissionsWithHttpInfo(indexKey, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get folder permissions - * Get list of permissions for a folder - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetFolderPermissionsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getFolderPermissionsWithHttpInfo(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getFolderPermissionsValidateBeforeCall(indexKey, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get folder permissions (asynchronously) - * Get list of permissions for a folder - * @param indexKey Index Key Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getFolderPermissionsAsync(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getFolderPermissionsValidateBeforeCall(indexKey, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFolderPermissionsValidateBeforeCall( + @javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexKey' is set + if (indexKey == null) { + throw new ApiException( + "Missing the required parameter 'indexKey' when calling getFolderPermissions(Async)"); } - /** - * Build call for setFolderPermissions - * @param setFolderPermissionsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setFolderPermissionsCall(@javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setFolderPermissionsRequest; - - // create path and map variables - String localVarPath = "/folders/permissions"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return getFolderPermissionsCall(indexKey, siteId, _callback); + + } + + /** + * Get folder permissions Get list of permissions for a folder + * + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetFolderPermissionsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetFolderPermissionsResponse getFolderPermissions( + @javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + getFolderPermissionsWithHttpInfo(indexKey, siteId); + return localVarResp.getData(); + } + + /** + * Get folder permissions Get list of permissions for a folder + * + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetFolderPermissionsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getFolderPermissionsWithHttpInfo( + @javax.annotation.Nonnull String indexKey, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getFolderPermissionsValidateBeforeCall(indexKey, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get folder permissions (asynchronously) Get list of permissions for a folder + * + * @param indexKey Index Key Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getFolderPermissionsAsync(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFolderPermissionsValidateBeforeCall(indexKey, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setFolderPermissions + * + * @param setFolderPermissionsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setFolderPermissionsCall( + @javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call setFolderPermissionsValidateBeforeCall(@javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'setFolderPermissionsRequest' is set - if (setFolderPermissionsRequest == null) { - throw new ApiException("Missing the required parameter 'setFolderPermissionsRequest' when calling setFolderPermissions(Async)"); - } + Object localVarPostBody = setFolderPermissionsRequest; - return setFolderPermissionsCall(setFolderPermissionsRequest, siteId, _callback); + // create path and map variables + String localVarPath = "/folders/permissions"; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Sets Folder Permissions - * Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. - * @param setFolderPermissionsRequest (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setFolderPermissions(@javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setFolderPermissionsWithHttpInfo(setFolderPermissionsRequest, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Sets Folder Permissions - * Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. - * @param setFolderPermissionsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setFolderPermissionsWithHttpInfo(@javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setFolderPermissionsValidateBeforeCall(setFolderPermissionsRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Sets Folder Permissions (asynchronously) - * Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. - * @param setFolderPermissionsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setFolderPermissionsAsync(@javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setFolderPermissionsValidateBeforeCall(setFolderPermissionsRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setFolderPermissionsValidateBeforeCall( + @javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'setFolderPermissionsRequest' is set + if (setFolderPermissionsRequest == null) { + throw new ApiException( + "Missing the required parameter 'setFolderPermissionsRequest' when calling setFolderPermissions(Async)"); } + + return setFolderPermissionsCall(setFolderPermissionsRequest, siteId, _callback); + + } + + /** + * Sets Folder Permissions Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. + * + * @param setFolderPermissionsRequest (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setFolderPermissions( + @javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + setFolderPermissionsWithHttpInfo(setFolderPermissionsRequest, siteId); + return localVarResp.getData(); + } + + /** + * Sets Folder Permissions Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. + * + * @param setFolderPermissionsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setFolderPermissionsWithHttpInfo( + @javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + setFolderPermissionsValidateBeforeCall(setFolderPermissionsRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Sets Folder Permissions (asynchronously) Sets a folders permissions NOTE: Can only be called be + * ADMIN or GOVERN. + * + * @param setFolderPermissionsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setFolderPermissionsAsync( + @javax.annotation.Nonnull SetFolderPermissionsRequest setFolderPermissionsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + setFolderPermissionsValidateBeforeCall(setFolderPermissionsRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentGenerationApi.java b/src/main/java/com/formkiq/client/api/DocumentGenerationApi.java index 1dc414206..7a6582165 100644 --- a/src/main/java/com/formkiq/client/api/DocumentGenerationApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentGenerationApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -38,189 +45,285 @@ import java.util.Map; public class DocumentGenerationApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentGenerationApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentGenerationApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentGenerationApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentGenerationApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocumentGenerate + * + * @param documentId Document Identifier (required) + * @param addDocumentGenerateRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocumentGenerateCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public int getHostIndex() { - return localHostIndex; - } + Object localVarPostBody = addDocumentGenerateRequest; - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } + // create path and map variables + String localVarPath = "/documents/{documentId}/generate".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Build call for addDocumentGenerate - * @param documentId Document Identifier (required) - * @param addDocumentGenerateRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocumentGenerateCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentGenerateRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/generate" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentGenerateValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentGenerate(Async)"); - } - - // verify the required parameter 'addDocumentGenerateRequest' is set - if (addDocumentGenerateRequest == null) { - throw new ApiException("Missing the required parameter 'addDocumentGenerateRequest' when calling addDocumentGenerate(Async)"); - } - - return addDocumentGenerateCall(documentId, addDocumentGenerateRequest, siteId, _callback); - + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add Document Generate - * Generates a new document using a specified template file and data sources. This operation allows users to merge data from multiple documents into a template to create a new document in the desired output format (e.g., DOCX). By Default data source must include a `data` object, which contains key-value pairs that will be merged into the template. The value can be any valid JSON object. { \"data\":{}}. The data path can be adjusted via the \"dataRoot\" field. ; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addDocumentGenerateRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocumentGenerateResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddDocumentGenerateResponse addDocumentGenerate(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addDocumentGenerateWithHttpInfo(documentId, addDocumentGenerateRequest, siteId); - return localVarResp.getData(); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentGenerateValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocumentGenerate(Async)"); } - /** - * Add Document Generate - * Generates a new document using a specified template file and data sources. This operation allows users to merge data from multiple documents into a template to create a new document in the desired output format (e.g., DOCX). By Default data source must include a `data` object, which contains key-value pairs that will be merged into the template. The value can be any valid JSON object. { \"data\":{}}. The data path can be adjusted via the \"dataRoot\" field. ; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addDocumentGenerateRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocumentGenerateResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addDocumentGenerateWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocumentGenerateValidateBeforeCall(documentId, addDocumentGenerateRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + // verify the required parameter 'addDocumentGenerateRequest' is set + if (addDocumentGenerateRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocumentGenerateRequest' when calling addDocumentGenerate(Async)"); } - /** - * Add Document Generate (asynchronously) - * Generates a new document using a specified template file and data sources. This operation allows users to merge data from multiple documents into a template to create a new document in the desired output format (e.g., DOCX). By Default data source must include a `data` object, which contains key-value pairs that will be merged into the template. The value can be any valid JSON object. { \"data\":{}}. The data path can be adjusted via the \"dataRoot\" field. ; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addDocumentGenerateRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocumentGenerateAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentGenerateValidateBeforeCall(documentId, addDocumentGenerateRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + return addDocumentGenerateCall(documentId, addDocumentGenerateRequest, siteId, _callback); + + } + + /** + * Add Document Generate Generates a new document using a specified template file and data + * sources. This operation allows users to merge data from multiple documents into a template to + * create a new document in the desired output format (e.g., DOCX). By Default data source must + * include a `data` object, which contains key-value pairs that will be merged into the + * template. The value can be any valid JSON object. { \"data\":{}}. The data path can + * be adjusted via the \"dataRoot\" field. ; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param addDocumentGenerateRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocumentGenerateResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddDocumentGenerateResponse addDocumentGenerate( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addDocumentGenerateWithHttpInfo(documentId, addDocumentGenerateRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add Document Generate Generates a new document using a specified template file and data + * sources. This operation allows users to merge data from multiple documents into a template to + * create a new document in the desired output format (e.g., DOCX). By Default data source must + * include a `data` object, which contains key-value pairs that will be merged into the + * template. The value can be any valid JSON object. { \"data\":{}}. The data path can + * be adjusted via the \"dataRoot\" field. ; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param addDocumentGenerateRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocumentGenerateResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addDocumentGenerateWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + addDocumentGenerateValidateBeforeCall(documentId, addDocumentGenerateRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Document Generate (asynchronously) Generates a new document using a specified template file + * and data sources. This operation allows users to merge data from multiple documents into a + * template to create a new document in the desired output format (e.g., DOCX). By Default data + * source must include a `data` object, which contains key-value pairs that will be + * merged into the template. The value can be any valid JSON object. { \"data\":{}}. The + * data path can be adjusted via the \"dataRoot\" field. ; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param addDocumentGenerateRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocumentGenerateAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentGenerateRequest addDocumentGenerateRequest, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentGenerateValidateBeforeCall(documentId, + addDocumentGenerateRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentOcrApi.java b/src/main/java/com/formkiq/client/api/DocumentOcrApi.java index 5904d29b8..37aa2c4b2 100644 --- a/src/main/java/com/formkiq/client/api/DocumentOcrApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentOcrApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -40,622 +47,908 @@ import java.util.Map; public class DocumentOcrApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentOcrApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentOcrApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentOcrApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocumentOcr + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentOcrRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentOcrCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public DocumentOcrApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addDocumentOcrRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/documents/{documentId}/ocr".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocumentOcr(Async)"); } - /** - * Build call for addDocumentOcr - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentOcrRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentOcrCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentOcrRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/ocr" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addDocumentOcrCall(documentId, siteId, addDocumentOcrRequest, _callback); + + } + + /** + * Perform document ocr Document optical character recognition (OCR) request; extract text and + * data from a document; Tesseract available for all editions, but Textract engine and tables and + * forms options available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentOcrRequest (optional) + * @return AddDocumentOcrResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddDocumentOcrResponse addDocumentOcr(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest) throws ApiException { + ApiResponse localVarResp = + addDocumentOcrWithHttpInfo(documentId, siteId, addDocumentOcrRequest); + return localVarResp.getData(); + } + + /** + * Perform document ocr Document optical character recognition (OCR) request; extract text and + * data from a document; Tesseract available for all editions, but Textract engine and tables and + * forms options available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentOcrRequest (optional) + * @return ApiResponse<AddDocumentOcrResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addDocumentOcrWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest) throws ApiException { + okhttp3.Call localVarCall = + addDocumentOcrValidateBeforeCall(documentId, siteId, addDocumentOcrRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Perform document ocr (asynchronously) Document optical character recognition (OCR) request; + * extract text and data from a document; Tesseract available for all editions, but Textract + * engine and tables and forms options available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentOcrRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentOcrAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + addDocumentOcrValidateBeforeCall(documentId, siteId, addDocumentOcrRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteDocumentOcr + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentOcrCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentOcr(Async)"); - } + Object localVarPostBody = null; - return addDocumentOcrCall(documentId, siteId, addDocumentOcrRequest, _callback); + // create path and map variables + String localVarPath = "/documents/{documentId}/ocr".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Perform document ocr - * Document optical character recognition (OCR) request; extract text and data from a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentOcrRequest (optional) - * @return AddDocumentOcrResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddDocumentOcrResponse addDocumentOcr(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest) throws ApiException { - ApiResponse localVarResp = addDocumentOcrWithHttpInfo(documentId, siteId, addDocumentOcrRequest); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Perform document ocr - * Document optical character recognition (OCR) request; extract text and data from a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentOcrRequest (optional) - * @return ApiResponse<AddDocumentOcrResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addDocumentOcrWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest) throws ApiException { - okhttp3.Call localVarCall = addDocumentOcrValidateBeforeCall(documentId, siteId, addDocumentOcrRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Perform document ocr (asynchronously) - * Document optical character recognition (OCR) request; extract text and data from a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentOcrRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentOcrAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentOcrRequest addDocumentOcrRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentOcrValidateBeforeCall(documentId, siteId, addDocumentOcrRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentOcrValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocumentOcr(Async)"); } - /** - * Build call for deleteDocumentOcr - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentOcrCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/ocr" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return deleteDocumentOcrCall(documentId, siteId, _callback); + + } + + /** + * Delete document ocr Delete a document's optical character recognition (OCR) result, if + * exists; Tesseract available for all editions, but Textract engine and tables and forms options + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteDocumentOcr(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteDocumentOcrWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete document ocr Delete a document's optical character recognition (OCR) result, if + * exists; Tesseract available for all editions, but Textract engine and tables and forms options + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentOcrWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteDocumentOcrValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document ocr (asynchronously) Delete a document's optical character recognition + * (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables + * and forms options available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentOcrAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentOcrValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentOcr + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param outputType Output Format Type (optional) + * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' + * (deprecated) (optional) + * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting + * parameter to 'true' converts JSON to Text (deprecated) (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentOcrCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, + @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentOcr(Async)"); - } + Object localVarPostBody = null; - return deleteDocumentOcrCall(documentId, siteId, _callback); + // create path and map variables + String localVarPath = "/documents/{documentId}/ocr".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Delete document ocr - * Delete a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteDocumentOcr(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteDocumentOcrWithHttpInfo(documentId, siteId); - return localVarResp.getData(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete document ocr - * Delete a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentOcrWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentOcrValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (outputType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("outputType", outputType)); } - /** - * Delete document ocr (asynchronously) - * Delete a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentOcrAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentOcrValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + if (contentUrl != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentUrl", contentUrl)); } - /** - * Build call for getDocumentOcr - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param outputType Output Format Type (optional) - * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' (deprecated) (optional) - * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting parameter to 'true' converts JSON to Text (deprecated) (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentOcrCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/ocr" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (outputType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("outputType", outputType)); - } - - if (contentUrl != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentUrl", contentUrl)); - } - - if (text != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("text", text)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentOcr(Async)"); - } - return getDocumentOcrCall(documentId, siteId, outputType, contentUrl, text, shareKey, _callback); + if (text != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("text", text)); + } + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - /** - * Get document ocr content - * Get a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param outputType Output Format Type (optional) - * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' (deprecated) (optional) - * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting parameter to 'true' converts JSON to Text (deprecated) (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentOcrResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentOcrResponse getDocumentOcr(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = getDocumentOcrWithHttpInfo(documentId, siteId, outputType, contentUrl, text, shareKey); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get document ocr content - * Get a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param outputType Output Format Type (optional) - * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' (deprecated) (optional) - * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting parameter to 'true' converts JSON to Text (deprecated) (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentOcrResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentOcrWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentOcrValidateBeforeCall(documentId, siteId, outputType, contentUrl, text, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get document ocr content (asynchronously) - * Get a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param outputType Output Format Type (optional) - * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' (deprecated) (optional) - * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting parameter to 'true' converts JSON to Text (deprecated) (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentOcrAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentOcrValidateBeforeCall(documentId, siteId, outputType, contentUrl, text, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, + @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentOcr(Async)"); } - /** - * Build call for setDocumentOcr - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentOcrRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentOcrCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setDocumentOcrRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/ocr" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return getDocumentOcrCall(documentId, siteId, outputType, contentUrl, text, shareKey, + _callback); + + } + + /** + * Get document ocr content Get a document's optical character recognition (OCR) result, if + * exists; Tesseract available for all editions, but Textract engine and tables and forms options + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param outputType Output Format Type (optional) + * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' + * (deprecated) (optional) + * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting + * parameter to 'true' converts JSON to Text (deprecated) (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentOcrResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentOcrResponse getDocumentOcr(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, + @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, + @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = + getDocumentOcrWithHttpInfo(documentId, siteId, outputType, contentUrl, text, shareKey); + return localVarResp.getData(); + } + + /** + * Get document ocr content Get a document's optical character recognition (OCR) result, if + * exists; Tesseract available for all editions, but Textract engine and tables and forms options + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param outputType Output Format Type (optional) + * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' + * (deprecated) (optional) + * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting + * parameter to 'true' converts JSON to Text (deprecated) (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentOcrResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentOcrWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String outputType, @javax.annotation.Nullable String contentUrl, + @javax.annotation.Nullable String text, @javax.annotation.Nullable String shareKey) + throws ApiException { + okhttp3.Call localVarCall = getDocumentOcrValidateBeforeCall(documentId, siteId, outputType, + contentUrl, text, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document ocr content (asynchronously) Get a document's optical character recognition + * (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables + * and forms options available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param outputType Output Format Type (optional) + * @param contentUrl Whether to return a \"contentUrl\", set value to 'true' + * (deprecated) (optional) + * @param text Returns raw 'text' of OCR content. e.g. AWS Textract returns JSON, setting + * parameter to 'true' converts JSON to Text (deprecated) (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentOcrAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String outputType, + @javax.annotation.Nullable String contentUrl, @javax.annotation.Nullable String text, + @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentOcrValidateBeforeCall(documentId, siteId, outputType, + contentUrl, text, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentOcr + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentOcrRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentOcrCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentOcr(Async)"); - } + Object localVarPostBody = setDocumentOcrRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/ocr".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - return setDocumentOcrCall(documentId, siteId, setDocumentOcrRequest, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Set document ocr result - * Set a document's optical character recognition (OCR) result for a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentOcrRequest (optional) - * @return AddDocumentOcrResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddDocumentOcrResponse setDocumentOcr(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest) throws ApiException { - ApiResponse localVarResp = setDocumentOcrWithHttpInfo(documentId, siteId, setDocumentOcrRequest); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set document ocr result - * Set a document's optical character recognition (OCR) result for a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentOcrRequest (optional) - * @return ApiResponse<AddDocumentOcrResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setDocumentOcrWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest) throws ApiException { - okhttp3.Call localVarCall = setDocumentOcrValidateBeforeCall(documentId, siteId, setDocumentOcrRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set document ocr result (asynchronously) - * Set a document's optical character recognition (OCR) result for a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param setDocumentOcrRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentOcrAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentOcrValidateBeforeCall(documentId, siteId, setDocumentOcrRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentOcrValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentOcr(Async)"); } + + return setDocumentOcrCall(documentId, siteId, setDocumentOcrRequest, _callback); + + } + + /** + * Set document ocr result Set a document's optical character recognition (OCR) result for a + * document; Tesseract available for all editions, but Textract engine and tables and forms + * options available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentOcrRequest (optional) + * @return AddDocumentOcrResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddDocumentOcrResponse setDocumentOcr(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest) throws ApiException { + ApiResponse localVarResp = + setDocumentOcrWithHttpInfo(documentId, siteId, setDocumentOcrRequest); + return localVarResp.getData(); + } + + /** + * Set document ocr result Set a document's optical character recognition (OCR) result for a + * document; Tesseract available for all editions, but Textract engine and tables and forms + * options available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentOcrRequest (optional) + * @return ApiResponse<AddDocumentOcrResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setDocumentOcrWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest) throws ApiException { + okhttp3.Call localVarCall = + setDocumentOcrValidateBeforeCall(documentId, siteId, setDocumentOcrRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set document ocr result (asynchronously) Set a document's optical character recognition + * (OCR) result for a document; Tesseract available for all editions, but Textract engine and + * tables and forms options available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param setDocumentOcrRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentOcrAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable SetDocumentOcrRequest setDocumentOcrRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + setDocumentOcrValidateBeforeCall(documentId, siteId, setDocumentOcrRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentSearchApi.java b/src/main/java/com/formkiq/client/api/DocumentSearchApi.java index d2aee91f6..97ddb540d 100644 --- a/src/main/java/com/formkiq/client/api/DocumentSearchApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentSearchApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -37,199 +44,291 @@ import java.util.Map; public class DocumentSearchApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentSearchApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentSearchApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentSearchApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for documentSearch + * + * @param documentSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call documentSearchCall( + @javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public DocumentSearchApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = documentSearchRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/search"; - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); } - /** - * Build call for documentSearch - * @param documentSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call documentSearchCall(@javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = documentSearchRequest; - - // create path and map variables - String localVarPath = "/search"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (previous != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - @SuppressWarnings("rawtypes") - private okhttp3.Call documentSearchValidateBeforeCall(@javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentSearchRequest' is set - if (documentSearchRequest == null) { - throw new ApiException("Missing the required parameter 'documentSearchRequest' when calling documentSearch(Async)"); - } - - return documentSearchCall(documentSearchRequest, siteId, limit, next, previous, _callback); - - } - - /** - * Document search - * Document search query request; Supports searching DynamoDB for document(s) by a single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" matched. Search can be filtered to only check certain documentIds (up to 100 documentIds accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. If Typesense is enabled, full text search is supported through the \"text\" parameter. Full text search will look for the text in the \"content\" and/or document \"metadata\". DocumentIds parameter allows you to filter your results to a specific set of documents. See requestBody examples below for commmon examples. - * @param documentSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return DocumentSearchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DocumentSearchResponse documentSearch(@javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { - ApiResponse localVarResp = documentSearchWithHttpInfo(documentSearchRequest, siteId, limit, next, previous); - return localVarResp.getData(); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Document search - * Document search query request; Supports searching DynamoDB for document(s) by a single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" matched. Search can be filtered to only check certain documentIds (up to 100 documentIds accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. If Typesense is enabled, full text search is supported through the \"text\" parameter. Full text search will look for the text in the \"content\" and/or document \"metadata\". DocumentIds parameter allows you to filter your results to a specific set of documents. See requestBody examples below for commmon examples. - * @param documentSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return ApiResponse<DocumentSearchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse documentSearchWithHttpInfo(@javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { - okhttp3.Call localVarCall = documentSearchValidateBeforeCall(documentSearchRequest, siteId, limit, next, previous, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call documentSearchValidateBeforeCall( + @javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentSearchRequest' is set + if (documentSearchRequest == null) { + throw new ApiException( + "Missing the required parameter 'documentSearchRequest' when calling documentSearch(Async)"); } - /** - * Document search (asynchronously) - * Document search query request; Supports searching DynamoDB for document(s) by a single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" matched. Search can be filtered to only check certain documentIds (up to 100 documentIds accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. If Typesense is enabled, full text search is supported through the \"text\" parameter. Full text search will look for the text in the \"content\" and/or document \"metadata\". DocumentIds parameter allows you to filter your results to a specific set of documents. See requestBody examples below for commmon examples. - * @param documentSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call documentSearchAsync(@javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = documentSearchValidateBeforeCall(documentSearchRequest, siteId, limit, next, previous, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + return documentSearchCall(documentSearchRequest, siteId, limit, next, previous, _callback); + + } + + /** + * Document search Document search query request; Supports searching DynamoDB for document(s) by a + * single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" + * matched. Search can be filtered to only check certain documentIds (up to 100 documentIds + * accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. + * If Typesense is enabled, full text search is supported through the \"text\" + * parameter. Full text search will look for the text in the \"content\" and/or document + * \"metadata\". DocumentIds parameter allows you to filter your results to a specific + * set of documents. See requestBody examples below for commmon examples. + * + * @param documentSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return DocumentSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DocumentSearchResponse documentSearch( + @javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) + throws ApiException { + ApiResponse localVarResp = + documentSearchWithHttpInfo(documentSearchRequest, siteId, limit, next, previous); + return localVarResp.getData(); + } + + /** + * Document search Document search query request; Supports searching DynamoDB for document(s) by a + * single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" + * matched. Search can be filtered to only check certain documentIds (up to 100 documentIds + * accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. + * If Typesense is enabled, full text search is supported through the \"text\" + * parameter. Full text search will look for the text in the \"content\" and/or document + * \"metadata\". DocumentIds parameter allows you to filter your results to a specific + * set of documents. See requestBody examples below for commmon examples. + * + * @param documentSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return ApiResponse<DocumentSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse documentSearchWithHttpInfo( + @javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) + throws ApiException { + okhttp3.Call localVarCall = documentSearchValidateBeforeCall(documentSearchRequest, siteId, + limit, next, previous, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Document search (asynchronously) Document search query request; Supports searching DynamoDB for + * document(s) by a single TAG key and/or value. Value can be \"exacted\" or + * \"begins_with\" matched. Search can be filtered to only check certain documentIds (up + * to 100 documentIds accepted). If using Enteprise Composite Keys feature then multiple tag(s) + * can be searched for. If Typesense is enabled, full text search is supported through the + * \"text\" parameter. Full text search will look for the text in the + * \"content\" and/or document \"metadata\". DocumentIds parameter allows you + * to filter your results to a specific set of documents. See requestBody examples below for + * commmon examples. + * + * @param documentSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call documentSearchAsync( + @javax.annotation.Nonnull DocumentSearchRequest documentSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = documentSearchValidateBeforeCall(documentSearchRequest, siteId, + limit, next, previous, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentSharesApi.java b/src/main/java/com/formkiq/client/api/DocumentSharesApi.java index 56b115637..f6d191db3 100644 --- a/src/main/java/com/formkiq/client/api/DocumentSharesApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentSharesApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -40,457 +47,652 @@ import java.util.Map; public class DocumentSharesApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentSharesApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentSharesApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentSharesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addFolderShare + * + * @param indexKey Index Key Identifier (required) + * @param addFolderShareRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addFolderShareCall(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public DocumentSharesApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addFolderShareRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/shares/folders/{indexKey}".replace("{" + "indexKey" + "}", + localVarApiClient.escapeString(indexKey.toString())); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addFolderShareValidateBeforeCall(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexKey' is set + if (indexKey == null) { + throw new ApiException( + "Missing the required parameter 'indexKey' when calling addFolderShare(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + // verify the required parameter 'addFolderShareRequest' is set + if (addFolderShareRequest == null) { + throw new ApiException( + "Missing the required parameter 'addFolderShareRequest' when calling addFolderShare(Async)"); } - /** - * Build call for addFolderShare - * @param indexKey Index Key Identifier (required) - * @param addFolderShareRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addFolderShareCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addFolderShareRequest; - - // create path and map variables - String localVarPath = "/shares/folders/{indexKey}" - .replace("{" + "indexKey" + "}", localVarApiClient.escapeString(indexKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addFolderShareCall(indexKey, addFolderShareRequest, siteId, _callback); + + } + + /** + * Add folder share Creates a new folder share; available as an Add-On Module + * + * @param indexKey Index Key Identifier (required) + * @param addFolderShareRequest (required) + * @param siteId Site Identifier (optional) + * @return AddFolderShareResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddFolderShareResponse addFolderShare(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addFolderShareWithHttpInfo(indexKey, addFolderShareRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add folder share Creates a new folder share; available as an Add-On Module + * + * @param indexKey Index Key Identifier (required) + * @param addFolderShareRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddFolderShareResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addFolderShareWithHttpInfo( + @javax.annotation.Nonnull String indexKey, + @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + addFolderShareValidateBeforeCall(indexKey, addFolderShareRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add folder share (asynchronously) Creates a new folder share; available as an Add-On Module + * + * @param indexKey Index Key Identifier (required) + * @param addFolderShareRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addFolderShareAsync(@javax.annotation.Nonnull String indexKey, + @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addFolderShareValidateBeforeCall(indexKey, addFolderShareRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteShare + * + * @param shareKey Share Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteShareCall(@javax.annotation.Nonnull String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addFolderShareValidateBeforeCall(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexKey' is set - if (indexKey == null) { - throw new ApiException("Missing the required parameter 'indexKey' when calling addFolderShare(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'addFolderShareRequest' is set - if (addFolderShareRequest == null) { - throw new ApiException("Missing the required parameter 'addFolderShareRequest' when calling addFolderShare(Async)"); - } + // create path and map variables + String localVarPath = "/shares/{shareKey}".replace("{" + "shareKey" + "}", + localVarApiClient.escapeString(shareKey.toString())); - return addFolderShareCall(indexKey, addFolderShareRequest, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add folder share - * Creates a new folder share; available as an Add-On Module - * @param indexKey Index Key Identifier (required) - * @param addFolderShareRequest (required) - * @param siteId Site Identifier (optional) - * @return AddFolderShareResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddFolderShareResponse addFolderShare(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addFolderShareWithHttpInfo(indexKey, addFolderShareRequest, siteId); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add folder share - * Creates a new folder share; available as an Add-On Module - * @param indexKey Index Key Identifier (required) - * @param addFolderShareRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddFolderShareResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addFolderShareWithHttpInfo(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addFolderShareValidateBeforeCall(indexKey, addFolderShareRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteShareValidateBeforeCall(@javax.annotation.Nonnull String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'shareKey' is set + if (shareKey == null) { + throw new ApiException( + "Missing the required parameter 'shareKey' when calling deleteShare(Async)"); } - /** - * Add folder share (asynchronously) - * Creates a new folder share; available as an Add-On Module - * @param indexKey Index Key Identifier (required) - * @param addFolderShareRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addFolderShareAsync(@javax.annotation.Nonnull String indexKey, @javax.annotation.Nonnull AddFolderShareRequest addFolderShareRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addFolderShareValidateBeforeCall(indexKey, addFolderShareRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteShare - * @param shareKey Share Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteShareCall(@javax.annotation.Nonnull String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/shares/{shareKey}" - .replace("{" + "shareKey" + "}", localVarApiClient.escapeString(shareKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return deleteShareCall(shareKey, _callback); + + } + + /** + * Delete folder share Delete a specific document share; available as an Add-On Module + * + * @param shareKey Share Identifier (required) + * @return DeleteShareResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteShareResponse deleteShare(@javax.annotation.Nonnull String shareKey) + throws ApiException { + ApiResponse localVarResp = deleteShareWithHttpInfo(shareKey); + return localVarResp.getData(); + } + + /** + * Delete folder share Delete a specific document share; available as an Add-On Module + * + * @param shareKey Share Identifier (required) + * @return ApiResponse<DeleteShareResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteShareWithHttpInfo( + @javax.annotation.Nonnull String shareKey) throws ApiException { + okhttp3.Call localVarCall = deleteShareValidateBeforeCall(shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete folder share (asynchronously) Delete a specific document share; available as an Add-On + * Module + * + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteShareAsync(@javax.annotation.Nonnull String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteShareValidateBeforeCall(shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getUserShares + * + * @param group Group Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getUserSharesCall(@javax.annotation.Nullable String group, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteShareValidateBeforeCall(@javax.annotation.Nonnull String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'shareKey' is set - if (shareKey == null) { - throw new ApiException("Missing the required parameter 'shareKey' when calling deleteShare(Async)"); - } + Object localVarPostBody = null; - return deleteShareCall(shareKey, _callback); + // create path and map variables + String localVarPath = "/shares"; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Delete folder share - * Delete a specific document share; available as an Add-On Module - * @param shareKey Share Identifier (required) - * @return DeleteShareResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteShareResponse deleteShare(@javax.annotation.Nonnull String shareKey) throws ApiException { - ApiResponse localVarResp = deleteShareWithHttpInfo(shareKey); - return localVarResp.getData(); + if (group != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("group", group)); } - /** - * Delete folder share - * Delete a specific document share; available as an Add-On Module - * @param shareKey Share Identifier (required) - * @return ApiResponse<DeleteShareResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteShareWithHttpInfo(@javax.annotation.Nonnull String shareKey) throws ApiException { - okhttp3.Call localVarCall = deleteShareValidateBeforeCall(shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Delete folder share (asynchronously) - * Delete a specific document share; available as an Add-On Module - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteShareAsync(@javax.annotation.Nonnull String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteShareValidateBeforeCall(shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - /** - * Build call for getUserShares - * @param group Group Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getUserSharesCall(@javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/shares"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (group != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("group", group)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getUserSharesValidateBeforeCall(@javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - return getUserSharesCall(group, limit, next, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get user shared folders - * Get a listing of user folder/document shares; available as an Add-On Module - * @param group Group Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetUserSharesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetUserSharesResponse getUserShares(@javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getUserSharesWithHttpInfo(group, limit, next); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get user shared folders - * Get a listing of user folder/document shares; available as an Add-On Module - * @param group Group Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetUserSharesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getUserSharesWithHttpInfo(@javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getUserSharesValidateBeforeCall(group, limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get user shared folders (asynchronously) - * Get a listing of user folder/document shares; available as an Add-On Module - * @param group Group Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getUserSharesAsync(@javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getUserSharesValidateBeforeCall(group, limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserSharesValidateBeforeCall(@javax.annotation.Nullable String group, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + return getUserSharesCall(group, limit, next, _callback); + + } + + /** + * Get user shared folders Get a listing of user folder/document shares; available as an Add-On + * Module + * + * @param group Group Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetUserSharesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetUserSharesResponse getUserShares(@javax.annotation.Nullable String group, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + ApiResponse localVarResp = getUserSharesWithHttpInfo(group, limit, next); + return localVarResp.getData(); + } + + /** + * Get user shared folders Get a listing of user folder/document shares; available as an Add-On + * Module + * + * @param group Group Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetUserSharesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getUserSharesWithHttpInfo( + @javax.annotation.Nullable String group, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getUserSharesValidateBeforeCall(group, limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get user shared folders (asynchronously) Get a listing of user folder/document shares; + * available as an Add-On Module + * + * @param group Group Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getUserSharesAsync(@javax.annotation.Nullable String group, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUserSharesValidateBeforeCall(group, limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentTagsApi.java b/src/main/java/com/formkiq/client/api/DocumentTagsApi.java index 89a1dfe09..ac6fa12e9 100644 --- a/src/main/java/com/formkiq/client/api/DocumentTagsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentTagsApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -43,1378 +50,1987 @@ import java.util.Map; public class DocumentTagsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentTagsApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentTagsApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentTagsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocumentTags + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentTagsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public DocumentTagsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addDocumentTagsRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/documents/{documentId}/tags".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentTagsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocumentTags(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + // verify the required parameter 'addDocumentTagsRequest' is set + if (addDocumentTagsRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocumentTagsRequest' when calling addDocumentTags(Async)"); } - /** - * Build call for addDocumentTags - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentTagsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentTagsRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/tags" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); + + } + + /** + * Add tag to document Add multiple tags to a document; this endpoint also accepts a different + * body parameter for adding a single tag + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddResponse addDocumentTags(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add tag to document Add multiple tags to a document; this endpoint also accepts a different + * body parameter for adding a single tag + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addDocumentTagsWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + addDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add tag to document (asynchronously) Add multiple tags to a document; this endpoint also + * accepts a different body parameter for adding a single tag + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentTagsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteDocumentTag + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentTagCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentTagsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentTags(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'addDocumentTagsRequest' is set - if (addDocumentTagsRequest == null) { - throw new ApiException("Missing the required parameter 'addDocumentTagsRequest' when calling addDocumentTags(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/tags/{tagKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); - return addDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add tag to document - * Add multiple tags to a document; this endpoint also accepts a different body parameter for adding a single tag - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddResponse addDocumentTags(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add tag to document - * Add multiple tags to a document; this endpoint also accepts a different body parameter for adding a single tag - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addDocumentTagsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add tag to document (asynchronously) - * Add multiple tags to a document; this endpoint also accepts a different body parameter for adding a single tag - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentTagsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentTagValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocumentTag(Async)"); } - /** - * Build call for deleteDocumentTag - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentTagCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/tags/{tagKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException( + "Missing the required parameter 'tagKey' when calling deleteDocumentTag(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentTag(Async)"); - } + return deleteDocumentTagCall(documentId, tagKey, siteId, _callback); + + } + + /** + * Delete document tag Delete a document tag by using its key + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteDocumentTag(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + deleteDocumentTagWithHttpInfo(documentId, tagKey, siteId); + return localVarResp.getData(); + } + + /** + * Delete document tag Delete a document tag by using its key + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentTagWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + deleteDocumentTagValidateBeforeCall(documentId, tagKey, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document tag (asynchronously) Delete a document tag by using its key + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentTagAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteDocumentTagValidateBeforeCall(documentId, tagKey, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteDocumentTagAndValue + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentTagAndValueCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException("Missing the required parameter 'tagKey' when calling deleteDocumentTag(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/tags/{tagKey}/{tagValue}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())) + .replace("{" + "tagValue" + "}", localVarApiClient.escapeString(tagValue.toString())); - return deleteDocumentTagCall(documentId, tagKey, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete document tag - * Delete a document tag by using its key - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteDocumentTag(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteDocumentTagWithHttpInfo(documentId, tagKey, siteId); - return localVarResp.getData(); + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - /** - * Delete document tag - * Delete a document tag by using its key - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentTagWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentTagValidateBeforeCall(documentId, tagKey, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete document tag (asynchronously) - * Delete a document tag by using its key - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentTagAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentTagValidateBeforeCall(documentId, tagKey, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Build call for deleteDocumentTagAndValue - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentTagAndValueCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/tags/{tagKey}/{tagValue}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())) - .replace("{" + "tagValue" + "}", localVarApiClient.escapeString(tagValue.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentTagAndValueValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocumentTagAndValue(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentTagAndValueValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentTagAndValue(Async)"); - } + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException( + "Missing the required parameter 'tagKey' when calling deleteDocumentTagAndValue(Async)"); + } - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException("Missing the required parameter 'tagKey' when calling deleteDocumentTagAndValue(Async)"); - } + // verify the required parameter 'tagValue' is set + if (tagValue == null) { + throw new ApiException( + "Missing the required parameter 'tagValue' when calling deleteDocumentTagAndValue(Async)"); + } + + return deleteDocumentTagAndValueCall(documentId, tagKey, tagValue, siteId, shareKey, _callback); + + } + + /** + * Delete document's tag value Delete a specific document tag's key/value combination; the + * request will be ignored if there is no valid key/value combination found + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteDocumentTagAndValue(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + ApiResponse localVarResp = + deleteDocumentTagAndValueWithHttpInfo(documentId, tagKey, tagValue, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Delete document's tag value Delete a specific document tag's key/value combination; the + * request will be ignored if there is no valid key/value combination found + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentTagAndValueWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = deleteDocumentTagAndValueValidateBeforeCall(documentId, tagKey, + tagValue, siteId, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document's tag value (asynchronously) Delete a specific document tag's key/value + * combination; the request will be ignored if there is no valid key/value combination found + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param tagValue Tag Key Value (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentTagAndValueAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentTagAndValueValidateBeforeCall(documentId, tagKey, + tagValue, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentTag + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentTagCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; - // verify the required parameter 'tagValue' is set - if (tagValue == null) { - throw new ApiException("Missing the required parameter 'tagValue' when calling deleteDocumentTagAndValue(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/tags/{tagKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); - return deleteDocumentTagAndValueCall(documentId, tagKey, tagValue, siteId, shareKey, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete document's tag value - * Delete a specific document tag's key/value combination; the request will be ignored if there is no valid key/value combination found - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteDocumentTagAndValue(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = deleteDocumentTagAndValueWithHttpInfo(documentId, tagKey, tagValue, siteId, shareKey); - return localVarResp.getData(); + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - /** - * Delete document's tag value - * Delete a specific document tag's key/value combination; the request will be ignored if there is no valid key/value combination found - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentTagAndValueWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentTagAndValueValidateBeforeCall(documentId, tagKey, tagValue, siteId, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete document's tag value (asynchronously) - * Delete a specific document tag's key/value combination; the request will be ignored if there is no valid key/value combination found - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param tagValue Tag Key Value (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentTagAndValueAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull String tagValue, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentTagAndValueValidateBeforeCall(documentId, tagKey, tagValue, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Build call for getDocumentTag - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentTagCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/tags/{tagKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentTag(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentTag(Async)"); - } + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException( + "Missing the required parameter 'tagKey' when calling getDocumentTag(Async)"); + } - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException("Missing the required parameter 'tagKey' when calling getDocumentTag(Async)"); - } + return getDocumentTagCall(documentId, tagKey, siteId, shareKey, _callback); + + } + + /** + * Get document tag by key Get a document tag by using its key + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentTagResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentTagResponse getDocumentTag(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = + getDocumentTagWithHttpInfo(documentId, tagKey, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Get document tag by key Get a document tag by using its key + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentTagResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentTagWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + okhttp3.Call localVarCall = + getDocumentTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document tag by key (asynchronously) Get a document tag by using its key + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentTagAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentTags + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentTagsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - return getDocumentTagCall(documentId, tagKey, siteId, shareKey, _callback); + Object localVarPostBody = null; - } + // create path and map variables + String localVarPath = "/documents/{documentId}/tags".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - /** - * Get document tag by key - * Get a document tag by using its key - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentTagResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentTagResponse getDocumentTag(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = getDocumentTagWithHttpInfo(documentId, tagKey, siteId, shareKey); - return localVarResp.getData(); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Get document tag by key - * Get a document tag by using its key - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentTagResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentTagWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get document tag by key (asynchronously) - * Get a document tag by using its key - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentTagAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentTagValidateBeforeCall(documentId, tagKey, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentTags - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentTagsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/tags" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (previous != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentTagsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentTags(Async)"); - } + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } - return getDocumentTagsCall(documentId, siteId, limit, shareKey, next, previous, _callback); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); } - /** - * Get document's tags - * Get a listing of a document's tags - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return GetDocumentTagsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentTagsResponse getDocumentTags(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { - ApiResponse localVarResp = getDocumentTagsWithHttpInfo(documentId, siteId, limit, shareKey, next, previous); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get document's tags - * Get a listing of a document's tags - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return ApiResponse<GetDocumentTagsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentTagsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { - okhttp3.Call localVarCall = getDocumentTagsValidateBeforeCall(documentId, siteId, limit, shareKey, next, previous, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get document's tags (asynchronously) - * Get a listing of a document's tags - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentTagsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentTagsValidateBeforeCall(documentId, siteId, limit, shareKey, next, previous, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentTagsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentTags(Async)"); } - /** - * Build call for setDocumentTag - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param setDocumentTagKeyRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentTagCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setDocumentTagKeyRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/tags/{tagKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return getDocumentTagsCall(documentId, siteId, limit, shareKey, next, previous, _callback); + + } + + /** + * Get document's tags Get a listing of a document's tags + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return GetDocumentTagsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentTagsResponse getDocumentTags(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String previous) throws ApiException { + ApiResponse localVarResp = + getDocumentTagsWithHttpInfo(documentId, siteId, limit, shareKey, next, previous); + return localVarResp.getData(); + } + + /** + * Get document's tags Get a listing of a document's tags + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return ApiResponse<GetDocumentTagsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentTagsWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) + throws ApiException { + okhttp3.Call localVarCall = getDocumentTagsValidateBeforeCall(documentId, siteId, limit, + shareKey, next, previous, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document's tags (asynchronously) Get a listing of a document's tags + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentTagsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentTagsValidateBeforeCall(documentId, siteId, limit, + shareKey, next, previous, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentTag + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param setDocumentTagKeyRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentTagCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentTag(Async)"); - } + Object localVarPostBody = setDocumentTagKeyRequest; - // verify the required parameter 'tagKey' is set - if (tagKey == null) { - throw new ApiException("Missing the required parameter 'tagKey' when calling setDocumentTag(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/tags/{tagKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "tagKey" + "}", localVarApiClient.escapeString(tagKey.toString())); - // verify the required parameter 'setDocumentTagKeyRequest' is set - if (setDocumentTagKeyRequest == null) { - throw new ApiException("Missing the required parameter 'setDocumentTagKeyRequest' when calling setDocumentTag(Async)"); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - return setDocumentTagCall(documentId, tagKey, setDocumentTagKeyRequest, siteId, _callback); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Update document tag value(s) - * Update any and all values of a document tag, by using its key; you can supply one tag value or a list of tag values in the request body - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param setDocumentTagKeyRequest (required) - * @param siteId Site Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public void setDocumentTag(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, @javax.annotation.Nullable String siteId) throws ApiException { - setDocumentTagWithHttpInfo(documentId, tagKey, setDocumentTagKeyRequest, siteId); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentTagValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentTag(Async)"); } - /** - * Update document tag value(s) - * Update any and all values of a document tag, by using its key; you can supply one tag value or a list of tag values in the request body - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param setDocumentTagKeyRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setDocumentTagWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentTagValidateBeforeCall(documentId, tagKey, setDocumentTagKeyRequest, siteId, null); - return localVarApiClient.execute(localVarCall); + // verify the required parameter 'tagKey' is set + if (tagKey == null) { + throw new ApiException( + "Missing the required parameter 'tagKey' when calling setDocumentTag(Async)"); } - /** - * Update document tag value(s) (asynchronously) - * Update any and all values of a document tag, by using its key; you can supply one tag value or a list of tag values in the request body - * @param documentId Document Identifier (required) - * @param tagKey Tag Key (required) - * @param setDocumentTagKeyRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentTagAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String tagKey, @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentTagValidateBeforeCall(documentId, tagKey, setDocumentTagKeyRequest, siteId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; + // verify the required parameter 'setDocumentTagKeyRequest' is set + if (setDocumentTagKeyRequest == null) { + throw new ApiException( + "Missing the required parameter 'setDocumentTagKeyRequest' when calling setDocumentTag(Async)"); } - /** - * Build call for setDocumentTags - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentTagsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentTagsRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/tags" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return setDocumentTagCall(documentId, tagKey, setDocumentTagKeyRequest, siteId, _callback); + + } + + /** + * Update document tag value(s) Update any and all values of a document tag, by using its key; you + * can supply one tag value or a list of tag values in the request body + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param setDocumentTagKeyRequest (required) + * @param siteId Site Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public void setDocumentTag(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + setDocumentTagWithHttpInfo(documentId, tagKey, setDocumentTagKeyRequest, siteId); + } + + /** + * Update document tag value(s) Update any and all values of a document tag, by using its key; you + * can supply one tag value or a list of tag values in the request body + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param setDocumentTagKeyRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setDocumentTagWithHttpInfo(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = setDocumentTagValidateBeforeCall(documentId, tagKey, + setDocumentTagKeyRequest, siteId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Update document tag value(s) (asynchronously) Update any and all values of a document tag, by + * using its key; you can supply one tag value or a list of tag values in the request body + * + * @param documentId Document Identifier (required) + * @param tagKey Tag Key (required) + * @param setDocumentTagKeyRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentTagAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String tagKey, + @javax.annotation.Nonnull SetDocumentTagKeyRequest setDocumentTagKeyRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = setDocumentTagValidateBeforeCall(documentId, tagKey, + setDocumentTagKeyRequest, siteId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentTags + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentTagsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentTagsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentTags(Async)"); - } + Object localVarPostBody = addDocumentTagsRequest; - // verify the required parameter 'addDocumentTagsRequest' is set - if (addDocumentTagsRequest == null) { - throw new ApiException("Missing the required parameter 'addDocumentTagsRequest' when calling setDocumentTags(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/tags".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - return setDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Set document's tags - * Set multiple tags to a document; this endpoint also accepts a different body parameter for setting a single tag - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public void setDocumentTags(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - setDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); + final String[] localVarAccepts = {}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set document's tags - * Set multiple tags to a document; this endpoint also accepts a different body parameter for setting a single tag - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setDocumentTagsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); - return localVarApiClient.execute(localVarCall); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set document's tags (asynchronously) - * Set multiple tags to a document; this endpoint also accepts a different body parameter for setting a single tag - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentTagsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentTagsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentTags(Async)"); } - /** - * Build call for updateDocumentTags - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateDocumentTagsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentTagsRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/tags" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'addDocumentTagsRequest' is set + if (addDocumentTagsRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocumentTagsRequest' when calling setDocumentTags(Async)"); + } + + return setDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); + + } + + /** + * Set document's tags Set multiple tags to a document; this endpoint also accepts a different + * body parameter for setting a single tag + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public void setDocumentTags(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + setDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); + } + + /** + * Set document's tags Set multiple tags to a document; this endpoint also accepts a different + * body parameter for setting a single tag + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setDocumentTagsWithHttpInfo(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + setDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Set document's tags (asynchronously) Set multiple tags to a document; this endpoint also + * accepts a different body parameter for setting a single tag + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentTagsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + setDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + + /** + * Build call for updateDocumentTags + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateDocumentTagsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call updateDocumentTagsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling updateDocumentTags(Async)"); - } + Object localVarPostBody = addDocumentTagsRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/tags".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - // verify the required parameter 'addDocumentTagsRequest' is set - if (addDocumentTagsRequest == null) { - throw new ApiException("Missing the required parameter 'addDocumentTagsRequest' when calling updateDocumentTags(Async)"); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - return updateDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + final String[] localVarAccepts = {}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Update document tags - * Updates multiple tags to a document; this endpoint also accepts a different body parameter for updating a single tag - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public void updateDocumentTags(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - updateDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Update document tags - * Updates multiple tags to a document; this endpoint also accepts a different body parameter for updating a single tag - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse updateDocumentTagsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); - return localVarApiClient.execute(localVarCall); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateDocumentTagsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling updateDocumentTags(Async)"); } - /** - * Update document tags (asynchronously) - * Updates multiple tags to a document; this endpoint also accepts a different body parameter for updating a single tag - * @param documentId Document Identifier (required) - * @param addDocumentTagsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateDocumentTagsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; + // verify the required parameter 'addDocumentTagsRequest' is set + if (addDocumentTagsRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocumentTagsRequest' when calling updateDocumentTags(Async)"); } - /** - * Build call for updateMatchingDocumentTags - * @param updateMatchingDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateMatchingDocumentTagsCall(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateMatchingDocumentTagsRequest; - - // create path and map variables - String localVarPath = "/documents/tags"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return updateDocumentTagsCall(documentId, addDocumentTagsRequest, siteId, _callback); + + } + + /** + * Update document tags Updates multiple tags to a document; this endpoint also accepts a + * different body parameter for updating a single tag + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public void updateDocumentTags(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + updateDocumentTagsWithHttpInfo(documentId, addDocumentTagsRequest, siteId); + } + + /** + * Update document tags Updates multiple tags to a document; this endpoint also accepts a + * different body parameter for updating a single tag + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse updateDocumentTagsWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + updateDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Update document tags (asynchronously) Updates multiple tags to a document; this endpoint also + * accepts a different body parameter for updating a single tag + * + * @param documentId Document Identifier (required) + * @param addDocumentTagsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateDocumentTagsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + + /** + * Build call for updateMatchingDocumentTags + * + * @param updateMatchingDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateMatchingDocumentTagsCall( + @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call updateMatchingDocumentTagsValidateBeforeCall(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'updateMatchingDocumentTagsRequest' is set - if (updateMatchingDocumentTagsRequest == null) { - throw new ApiException("Missing the required parameter 'updateMatchingDocumentTagsRequest' when calling updateMatchingDocumentTags(Async)"); - } + Object localVarPostBody = updateMatchingDocumentTagsRequest; - return updateMatchingDocumentTagsCall(updateMatchingDocumentTagsRequest, siteId, _callback); + // create path and map variables + String localVarPath = "/documents/tags"; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Mass Update document tag(s) - * This API request allows the adding/updating of multiple document tag(s) based on document(s) that have the matching tag. - * @param updateMatchingDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateMatchingDocumentTagsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public UpdateMatchingDocumentTagsResponse updateMatchingDocumentTags(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = updateMatchingDocumentTagsWithHttpInfo(updateMatchingDocumentTagsRequest, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Mass Update document tag(s) - * This API request allows the adding/updating of multiple document tag(s) based on document(s) that have the matching tag. - * @param updateMatchingDocumentTagsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateMatchingDocumentTagsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse updateMatchingDocumentTagsWithHttpInfo(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateMatchingDocumentTagsValidateBeforeCall(updateMatchingDocumentTagsRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Mass Update document tag(s) (asynchronously) - * This API request allows the adding/updating of multiple document tag(s) based on document(s) that have the matching tag. - * @param updateMatchingDocumentTagsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateMatchingDocumentTagsAsync(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateMatchingDocumentTagsValidateBeforeCall(updateMatchingDocumentTagsRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMatchingDocumentTagsValidateBeforeCall( + @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'updateMatchingDocumentTagsRequest' is set + if (updateMatchingDocumentTagsRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateMatchingDocumentTagsRequest' when calling updateMatchingDocumentTags(Async)"); } + + return updateMatchingDocumentTagsCall(updateMatchingDocumentTagsRequest, siteId, _callback); + + } + + /** + * Mass Update document tag(s) This API request allows the adding/updating of multiple document + * tag(s) based on document(s) that have the matching tag. + * + * @param updateMatchingDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateMatchingDocumentTagsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public UpdateMatchingDocumentTagsResponse updateMatchingDocumentTags( + @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + updateMatchingDocumentTagsWithHttpInfo(updateMatchingDocumentTagsRequest, siteId); + return localVarResp.getData(); + } + + /** + * Mass Update document tag(s) This API request allows the adding/updating of multiple document + * tag(s) based on document(s) that have the matching tag. + * + * @param updateMatchingDocumentTagsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateMatchingDocumentTagsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse updateMatchingDocumentTagsWithHttpInfo( + @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = updateMatchingDocumentTagsValidateBeforeCall( + updateMatchingDocumentTagsRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Mass Update document tag(s) (asynchronously) This API request allows the adding/updating of + * multiple document tag(s) based on document(s) that have the matching tag. + * + * @param updateMatchingDocumentTagsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateMatchingDocumentTagsAsync( + @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMatchingDocumentTagsValidateBeforeCall( + updateMatchingDocumentTagsRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java b/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java index 70126ab95..be1c1389c 100644 --- a/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -40,501 +47,723 @@ import java.util.Map; public class DocumentVersionsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentVersionsApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentVersionsApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentVersionsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for deleteDocumentVersion + * + * @param documentId Document Identifier (required) + * @param versionKey Version Key (version key required URL encoding) (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentVersionCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public DocumentVersionsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/versions/{versionKey}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "versionKey" + "}", localVarApiClient.escapeString(versionKey.toString())); - public ApiClient getApiClient() { - return localVarApiClient; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentVersionValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocumentVersion(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + // verify the required parameter 'versionKey' is set + if (versionKey == null) { + throw new ApiException( + "Missing the required parameter 'versionKey' when calling deleteDocumentVersion(Async)"); } - /** - * Build call for deleteDocumentVersion - * @param documentId Document Identifier (required) - * @param versionKey Version Key (version key required URL encoding) (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentVersionCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/versions/{versionKey}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "versionKey" + "}", localVarApiClient.escapeString(versionKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return deleteDocumentVersionCall(documentId, versionKey, siteId, shareKey, _callback); + + } + + /** + * Delete document version Delete a specific previous document version; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param versionKey Version Key (version key required URL encoding) (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteDocumentVersion(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = + deleteDocumentVersionWithHttpInfo(documentId, versionKey, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Delete document version Delete a specific previous document version; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param versionKey Version Key (version key required URL encoding) (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentVersionWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + okhttp3.Call localVarCall = + deleteDocumentVersionValidateBeforeCall(documentId, versionKey, siteId, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document version (asynchronously) Delete a specific previous document version; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param versionKey Version Key (version key required URL encoding) (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentVersionAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteDocumentVersionValidateBeforeCall(documentId, versionKey, + siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentVersions + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentVersionsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentVersionValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentVersion(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'versionKey' is set - if (versionKey == null) { - throw new ApiException("Missing the required parameter 'versionKey' when calling deleteDocumentVersion(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/versions".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - return deleteDocumentVersionCall(documentId, versionKey, siteId, shareKey, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete document version - * Delete a specific previous document version; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param versionKey Version Key (version key required URL encoding) (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteDocumentVersion(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = deleteDocumentVersionWithHttpInfo(documentId, versionKey, siteId, shareKey); - return localVarResp.getData(); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Delete document version - * Delete a specific previous document version; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param versionKey Version Key (version key required URL encoding) (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentVersionWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentVersionValidateBeforeCall(documentId, versionKey, siteId, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - /** - * Delete document version (asynchronously) - * Delete a specific previous document version; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param versionKey Version Key (version key required URL encoding) (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentVersionAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String versionKey, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentVersionValidateBeforeCall(documentId, versionKey, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentVersions - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentVersionsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/versions" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentVersionsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentVersions(Async)"); - } - - return getDocumentVersionsCall(documentId, siteId, limit, shareKey, next, _callback); - + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get document's versions - * Get a listing of document content and metadata versions; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return GetDocumentVersionsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentVersionsResponse getDocumentVersions(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getDocumentVersionsWithHttpInfo(documentId, siteId, limit, shareKey, next); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get document's versions - * Get a listing of document content and metadata versions; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (optional) - * @return ApiResponse<GetDocumentVersionsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentVersionsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getDocumentVersionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentVersionsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentVersions(Async)"); } - /** - * Get document's versions (asynchronously) - * Get a listing of document content and metadata versions; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentVersionsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentVersionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setDocumentVersion - * @param documentId Document Identifier (required) - * @param setDocumentVersionRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call setDocumentVersionCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setDocumentVersionRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/versions" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return getDocumentVersionsCall(documentId, siteId, limit, shareKey, next, _callback); + + } + + /** + * Get document's versions Get a listing of document content and metadata versions; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return GetDocumentVersionsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentVersionsResponse getDocumentVersions( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = + getDocumentVersionsWithHttpInfo(documentId, siteId, limit, shareKey, next); + return localVarResp.getData(); + } + + /** + * Get document's versions Get a listing of document content and metadata versions; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (optional) + * @return ApiResponse<GetDocumentVersionsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentVersionsWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = + getDocumentVersionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document's versions (asynchronously) Get a listing of document content and metadata + * versions; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentVersionsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentVersionsValidateBeforeCall(documentId, siteId, limit, shareKey, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentVersion + * + * @param documentId Document Identifier (required) + * @param setDocumentVersionRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call setDocumentVersionCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentVersionValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentVersion(Async)"); - } + Object localVarPostBody = setDocumentVersionRequest; - // verify the required parameter 'setDocumentVersionRequest' is set - if (setDocumentVersionRequest == null) { - throw new ApiException("Missing the required parameter 'setDocumentVersionRequest' when calling setDocumentVersion(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/versions".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - return setDocumentVersionCall(documentId, setDocumentVersionRequest, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Set version of document - * Set document to a previous document version; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param setDocumentVersionRequest (required) - * @param siteId Site Identifier (optional) - * @return SetDocumentVersionResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public SetDocumentVersionResponse setDocumentVersion(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setDocumentVersionWithHttpInfo(documentId, setDocumentVersionRequest, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set version of document - * Set document to a previous document version; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param setDocumentVersionRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetDocumentVersionResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse setDocumentVersionWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentVersionValidateBeforeCall(documentId, setDocumentVersionRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set version of document (asynchronously) - * Set document to a previous document version; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param setDocumentVersionRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call setDocumentVersionAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentVersionValidateBeforeCall(documentId, setDocumentVersionRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentVersionValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentVersion(Async)"); } + + // verify the required parameter 'setDocumentVersionRequest' is set + if (setDocumentVersionRequest == null) { + throw new ApiException( + "Missing the required parameter 'setDocumentVersionRequest' when calling setDocumentVersion(Async)"); + } + + return setDocumentVersionCall(documentId, setDocumentVersionRequest, siteId, _callback); + + } + + /** + * Set version of document Set document to a previous document version; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param setDocumentVersionRequest (required) + * @param siteId Site Identifier (optional) + * @return SetDocumentVersionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public SetDocumentVersionResponse setDocumentVersion(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + setDocumentVersionWithHttpInfo(documentId, setDocumentVersionRequest, siteId); + return localVarResp.getData(); + } + + /** + * Set version of document Set document to a previous document version; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param setDocumentVersionRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetDocumentVersionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse setDocumentVersionWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + setDocumentVersionValidateBeforeCall(documentId, setDocumentVersionRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set version of document (asynchronously) Set document to a previous document version; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param setDocumentVersionRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call setDocumentVersionAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull SetDocumentVersionRequest setDocumentVersionRequest, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentVersionValidateBeforeCall(documentId, + setDocumentVersionRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java b/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java index ae1ec9324..be8de29fb 100644 --- a/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -58,2344 +65,3556 @@ import java.util.Map; public class DocumentWorkflowsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public DocumentWorkflowsApi() { - this(Configuration.getDefaultApiClient()); - } - - public DocumentWorkflowsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocumentWorkflow - * @param documentId Document Identifier (required) - * @param addDocumentWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentWorkflowCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentWorkflowRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/workflows" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentWorkflowValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentWorkflow(Async)"); - } - - // verify the required parameter 'addDocumentWorkflowRequest' is set - if (addDocumentWorkflowRequest == null) { - throw new ApiException("Missing the required parameter 'addDocumentWorkflowRequest' when calling addDocumentWorkflow(Async)"); - } - - return addDocumentWorkflowCall(documentId, addDocumentWorkflowRequest, siteId, _callback); - - } - - /** - * Add document workflow - * Creates a document workflow; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addDocumentWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocumentWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddDocumentWorkflowResponse addDocumentWorkflow(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addDocumentWorkflowWithHttpInfo(documentId, addDocumentWorkflowRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add document workflow - * Creates a document workflow; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addDocumentWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocumentWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addDocumentWorkflowWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocumentWorkflowValidateBeforeCall(documentId, addDocumentWorkflowRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add document workflow (asynchronously) - * Creates a document workflow; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addDocumentWorkflowRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentWorkflowAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentWorkflowValidateBeforeCall(documentId, addDocumentWorkflowRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addDocumentWorkflowDecisions - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param addDocumentWorkflowDecisionsRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentWorkflowDecisionsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentWorkflowDecisionsRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/workflow/{workflowId}/decisions" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentWorkflowDecisionsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentWorkflowDecisions(Async)"); - } - - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException("Missing the required parameter 'workflowId' when calling addDocumentWorkflowDecisions(Async)"); - } - - // verify the required parameter 'addDocumentWorkflowDecisionsRequest' is set - if (addDocumentWorkflowDecisionsRequest == null) { - throw new ApiException("Missing the required parameter 'addDocumentWorkflowDecisionsRequest' when calling addDocumentWorkflowDecisions(Async)"); - } - - return addDocumentWorkflowDecisionsCall(documentId, workflowId, addDocumentWorkflowDecisionsRequest, siteId, _callback); - - } - - /** - * Approve/Reject document in approval queue - * Approve/Reject document in approval queue; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param addDocumentWorkflowDecisionsRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocumentWorkflowDecisionsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddDocumentWorkflowDecisionsResponse addDocumentWorkflowDecisions(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addDocumentWorkflowDecisionsWithHttpInfo(documentId, workflowId, addDocumentWorkflowDecisionsRequest, siteId); - return localVarResp.getData(); - } - - /** - * Approve/Reject document in approval queue - * Approve/Reject document in approval queue; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param addDocumentWorkflowDecisionsRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocumentWorkflowDecisionsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addDocumentWorkflowDecisionsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocumentWorkflowDecisionsValidateBeforeCall(documentId, workflowId, addDocumentWorkflowDecisionsRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Approve/Reject document in approval queue (asynchronously) - * Approve/Reject document in approval queue; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param addDocumentWorkflowDecisionsRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentWorkflowDecisionsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentWorkflowDecisionsValidateBeforeCall(documentId, workflowId, addDocumentWorkflowDecisionsRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addQueue - * @param addQueueRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addQueueCall(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addQueueRequest; - - // create path and map variables - String localVarPath = "/queues"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addQueueValidateBeforeCall(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addQueueRequest' is set - if (addQueueRequest == null) { - throw new ApiException("Missing the required parameter 'addQueueRequest' when calling addQueue(Async)"); - } - - return addQueueCall(addQueueRequest, siteId, _callback); - - } - - /** - * Add queue - * Creates a new Queue; available as an Add-On Module - * @param addQueueRequest (required) - * @param siteId Site Identifier (optional) - * @return AddQueueResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddQueueResponse addQueue(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addQueueWithHttpInfo(addQueueRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add queue - * Creates a new Queue; available as an Add-On Module - * @param addQueueRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddQueueResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addQueueWithHttpInfo(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addQueueValidateBeforeCall(addQueueRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add queue (asynchronously) - * Creates a new Queue; available as an Add-On Module - * @param addQueueRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addQueueAsync(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addQueueValidateBeforeCall(addQueueRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addWorkflow - * @param addWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addWorkflowCall(@javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addWorkflowRequest; - - // create path and map variables - String localVarPath = "/workflows"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addWorkflowValidateBeforeCall(@javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addWorkflowRequest' is set - if (addWorkflowRequest == null) { - throw new ApiException("Missing the required parameter 'addWorkflowRequest' when calling addWorkflow(Async)"); - } - - return addWorkflowCall(addWorkflowRequest, siteId, _callback); - - } - - /** - * Add workflow - * Creates a new Workflow; available as an Add-On Module - * @param addWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return AddWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddWorkflowResponse addWorkflow(@javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addWorkflowWithHttpInfo(addWorkflowRequest, siteId); - return localVarResp.getData(); - } - - /** - * Add workflow - * Creates a new Workflow; available as an Add-On Module - * @param addWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addWorkflowWithHttpInfo(@javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addWorkflowValidateBeforeCall(addWorkflowRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add workflow (asynchronously) - * Creates a new Workflow; available as an Add-On Module - * @param addWorkflowRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addWorkflowAsync(@javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addWorkflowValidateBeforeCall(addWorkflowRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteQueue - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteQueueCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/queues/{queueId}" - .replace("{" + "queueId" + "}", localVarApiClient.escapeString(queueId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteQueueValidateBeforeCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'queueId' is set - if (queueId == null) { - throw new ApiException("Missing the required parameter 'queueId' when calling deleteQueue(Async)"); - } - - return deleteQueueCall(queueId, siteId, _callback); - - } - - /** - * Delete queue - * Delete a Queue; available as an Add-On Module - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @return DeleteQueueResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteQueueResponse deleteQueue(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteQueueWithHttpInfo(queueId, siteId); - return localVarResp.getData(); - } - - /** - * Delete queue - * Delete a Queue; available as an Add-On Module - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteQueueResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteQueueWithHttpInfo(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteQueueValidateBeforeCall(queueId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete queue (asynchronously) - * Delete a Queue; available as an Add-On Module - * @param queueId Queue Id (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteQueueAsync(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteQueueValidateBeforeCall(queueId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteWorkflow - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteWorkflowCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/workflows/{workflowId}" - .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException("Missing the required parameter 'workflowId' when calling deleteWorkflow(Async)"); - } - - return deleteWorkflowCall(workflowId, siteId, _callback); - - } - - /** - * Delete workflow - * Delete a Workflow; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteWorkflowResponse deleteWorkflow(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteWorkflowWithHttpInfo(workflowId, siteId); - return localVarResp.getData(); - } - - /** - * Delete workflow - * Delete a Workflow; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteWorkflowWithHttpInfo(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteWorkflowValidateBeforeCall(workflowId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete workflow (asynchronously) - * Delete a Workflow; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteWorkflowAsync(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteWorkflowValidateBeforeCall(workflowId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentWorkflow - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentWorkflowCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/workflows/{workflowId}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentWorkflowValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentWorkflow(Async)"); - } - - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException("Missing the required parameter 'workflowId' when calling getDocumentWorkflow(Async)"); - } - - return getDocumentWorkflowCall(documentId, workflowId, siteId, _callback); - - } - - /** - * Get document workflow - * Gets a document workflow; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetDocumentWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentWorkflowResponse getDocumentWorkflow(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getDocumentWorkflowWithHttpInfo(documentId, workflowId, siteId); - return localVarResp.getData(); - } - - /** - * Get document workflow - * Gets a document workflow; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetDocumentWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentWorkflowWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getDocumentWorkflowValidateBeforeCall(documentId, workflowId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document workflow (asynchronously) - * Gets a document workflow; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentWorkflowAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentWorkflowValidateBeforeCall(documentId, workflowId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentWorkflows - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentWorkflowsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/workflows" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentWorkflowsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentWorkflows(Async)"); - } - - return getDocumentWorkflowsCall(documentId, siteId, _callback); - - } - - /** - * Get document workflows - * Gets a document workflows; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetDocumentWorkflowsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentWorkflowsResponse getDocumentWorkflows(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getDocumentWorkflowsWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Get document workflows - * Gets a document workflows; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetDocumentWorkflowsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentWorkflowsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getDocumentWorkflowsValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document workflows (asynchronously) - * Gets a document workflows; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentWorkflowsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentWorkflowsValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getQueue - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getQueueCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/queues/{queueId}" - .replace("{" + "queueId" + "}", localVarApiClient.escapeString(queueId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getQueueValidateBeforeCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'queueId' is set - if (queueId == null) { - throw new ApiException("Missing the required parameter 'queueId' when calling getQueue(Async)"); - } - - return getQueueCall(queueId, siteId, _callback); - - } - - /** - * Get queue - * Get a queue; available as an Add-On Module - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @return GetQueueResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetQueueResponse getQueue(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getQueueWithHttpInfo(queueId, siteId); - return localVarResp.getData(); - } - - /** - * Get queue - * Get a queue; available as an Add-On Module - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetQueueResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getQueueWithHttpInfo(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getQueueValidateBeforeCall(queueId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get queue (asynchronously) - * Get a queue; available as an Add-On Module - * @param queueId Queue Id (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getQueueAsync(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getQueueValidateBeforeCall(queueId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getQueues - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getQueuesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/queues"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getQueuesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - return getQueuesCall(siteId, next, limit, _callback); - - } - - /** - * Get queues - * Get a listing of queues; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetQueuesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetQueuesResponse getQueues(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getQueuesWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get queues - * Get a listing of queues; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetQueuesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getQueuesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getQueuesValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get queues (asynchronously) - * Get a listing of queues; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getQueuesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getQueuesValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getWorkflow - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWorkflowCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/workflows/{workflowId}" - .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException("Missing the required parameter 'workflowId' when calling getWorkflow(Async)"); - } - - return getWorkflowCall(workflowId, siteId, _callback); - - } - - /** - * Get workflow - * Get a workflow; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetWorkflowResponse getWorkflow(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getWorkflowWithHttpInfo(workflowId, siteId); - return localVarResp.getData(); - } - - /** - * Get workflow - * Get a workflow; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getWorkflowWithHttpInfo(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getWorkflowValidateBeforeCall(workflowId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get workflow (asynchronously) - * Get a workflow; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWorkflowAsync(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWorkflowValidateBeforeCall(workflowId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getWorkflowDocuments - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWorkflowDocumentsCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/workflows/{workflowId}/documents" - .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWorkflowDocumentsValidateBeforeCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException("Missing the required parameter 'workflowId' when calling getWorkflowDocuments(Async)"); - } - - return getWorkflowDocumentsCall(workflowId, siteId, limit, next, _callback); - - } - - /** - * Get list of documents in workflow - * List documents in Workflow; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetWorkflowDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetWorkflowDocumentsResponse getWorkflowDocuments(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getWorkflowDocumentsWithHttpInfo(workflowId, siteId, limit, next); - return localVarResp.getData(); - } - - /** - * Get list of documents in workflow - * List documents in Workflow; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetWorkflowDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getWorkflowDocumentsWithHttpInfo(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getWorkflowDocumentsValidateBeforeCall(workflowId, siteId, limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of documents in workflow (asynchronously) - * List documents in Workflow; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWorkflowDocumentsAsync(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWorkflowDocumentsValidateBeforeCall(workflowId, siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getWorkflowQueueDocuments - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWorkflowQueueDocumentsCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/queues/{queueId}/documents" - .replace("{" + "queueId" + "}", localVarApiClient.escapeString(queueId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWorkflowQueueDocumentsValidateBeforeCall(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'queueId' is set - if (queueId == null) { - throw new ApiException("Missing the required parameter 'queueId' when calling getWorkflowQueueDocuments(Async)"); - } - - return getWorkflowQueueDocumentsCall(queueId, siteId, limit, next, _callback); - - } - - /** - * Get list of documents in queue - * List documents in Workflow Queue; available as an Add-On Module - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetWorkflowQueueDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetWorkflowQueueDocumentsResponse getWorkflowQueueDocuments(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getWorkflowQueueDocumentsWithHttpInfo(queueId, siteId, limit, next); - return localVarResp.getData(); - } - - /** - * Get list of documents in queue - * List documents in Workflow Queue; available as an Add-On Module - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetWorkflowQueueDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getWorkflowQueueDocumentsWithHttpInfo(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getWorkflowQueueDocumentsValidateBeforeCall(queueId, siteId, limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of documents in queue (asynchronously) - * List documents in Workflow Queue; available as an Add-On Module - * @param queueId Queue Id (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWorkflowQueueDocumentsAsync(@javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWorkflowQueueDocumentsValidateBeforeCall(queueId, siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getWorkflows - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param status Filters Status (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWorkflowsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/workflows"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (status != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getWorkflowsValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { - return getWorkflowsCall(siteId, next, limit, status, _callback); - - } - - /** - * Get workflows - * Get a listing of workflows; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param status Filters Status (optional) - * @return GetWorkflowsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetWorkflowsResponse getWorkflows(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status) throws ApiException { - ApiResponse localVarResp = getWorkflowsWithHttpInfo(siteId, next, limit, status); - return localVarResp.getData(); - } - - /** - * Get workflows - * Get a listing of workflows; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param status Filters Status (optional) - * @return ApiResponse<GetWorkflowsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getWorkflowsWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status) throws ApiException { - okhttp3.Call localVarCall = getWorkflowsValidateBeforeCall(siteId, next, limit, status, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get workflows (asynchronously) - * Get a listing of workflows; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param status Filters Status (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWorkflowsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWorkflowsValidateBeforeCall(siteId, next, limit, status, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setWorkflow - * @param workflowId Workflow Identifier (required) - * @param setWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setWorkflowCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setWorkflowRequest; - - // create path and map variables - String localVarPath = "/workflows/{workflowId}" - .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException("Missing the required parameter 'workflowId' when calling setWorkflow(Async)"); - } - - // verify the required parameter 'setWorkflowRequest' is set - if (setWorkflowRequest == null) { - throw new ApiException("Missing the required parameter 'setWorkflowRequest' when calling setWorkflow(Async)"); - } - - return setWorkflowCall(workflowId, setWorkflowRequest, siteId, _callback); - - } - - /** - * Set workflow - * Set a Workflow details; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param setWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return SetWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetWorkflowResponse setWorkflow(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setWorkflowWithHttpInfo(workflowId, setWorkflowRequest, siteId); - return localVarResp.getData(); - } - - /** - * Set workflow - * Set a Workflow details; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param setWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setWorkflowWithHttpInfo(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setWorkflowValidateBeforeCall(workflowId, setWorkflowRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set workflow (asynchronously) - * Set a Workflow details; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param setWorkflowRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setWorkflowAsync(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setWorkflowValidateBeforeCall(workflowId, setWorkflowRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateWorkflow - * @param workflowId Workflow Identifier (required) - * @param updateWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateWorkflowCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateWorkflowRequest; - - // create path and map variables - String localVarPath = "/workflows/{workflowId}" - .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'workflowId' is set - if (workflowId == null) { - throw new ApiException("Missing the required parameter 'workflowId' when calling updateWorkflow(Async)"); - } - - // verify the required parameter 'updateWorkflowRequest' is set - if (updateWorkflowRequest == null) { - throw new ApiException("Missing the required parameter 'updateWorkflowRequest' when calling updateWorkflow(Async)"); - } - - return updateWorkflowCall(workflowId, updateWorkflowRequest, siteId, _callback); - - } - - /** - * Update workflow - * Update a Workflow details; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param updateWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateWorkflowResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public UpdateWorkflowResponse updateWorkflow(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = updateWorkflowWithHttpInfo(workflowId, updateWorkflowRequest, siteId); - return localVarResp.getData(); - } - - /** - * Update workflow - * Update a Workflow details; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param updateWorkflowRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateWorkflowResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse updateWorkflowWithHttpInfo(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateWorkflowValidateBeforeCall(workflowId, updateWorkflowRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update workflow (asynchronously) - * Update a Workflow details; available as an Add-On Module - * @param workflowId Workflow Identifier (required) - * @param updateWorkflowRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 20) OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateWorkflowAsync(@javax.annotation.Nonnull String workflowId, @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateWorkflowValidateBeforeCall(workflowId, updateWorkflowRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentWorkflowsApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentWorkflowsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocumentWorkflow + * + * @param documentId Document Identifier (required) + * @param addDocumentWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentWorkflowCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentWorkflowRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/workflows".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentWorkflowValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocumentWorkflow(Async)"); + } + + // verify the required parameter 'addDocumentWorkflowRequest' is set + if (addDocumentWorkflowRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocumentWorkflowRequest' when calling addDocumentWorkflow(Async)"); + } + + return addDocumentWorkflowCall(documentId, addDocumentWorkflowRequest, siteId, _callback); + + } + + /** + * Add document workflow Creates a document workflow; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param addDocumentWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocumentWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddDocumentWorkflowResponse addDocumentWorkflow( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addDocumentWorkflowWithHttpInfo(documentId, addDocumentWorkflowRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add document workflow Creates a document workflow; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param addDocumentWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocumentWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addDocumentWorkflowWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + addDocumentWorkflowValidateBeforeCall(documentId, addDocumentWorkflowRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add document workflow (asynchronously) Creates a document workflow; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param addDocumentWorkflowRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentWorkflowAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocumentWorkflowRequest addDocumentWorkflowRequest, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentWorkflowValidateBeforeCall(documentId, + addDocumentWorkflowRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addDocumentWorkflowDecisions + * + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param addDocumentWorkflowDecisionsRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentWorkflowDecisionsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentWorkflowDecisionsRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/workflow/{workflowId}/decisions" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentWorkflowDecisionsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocumentWorkflowDecisions(Async)"); + } + + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException( + "Missing the required parameter 'workflowId' when calling addDocumentWorkflowDecisions(Async)"); + } + + // verify the required parameter 'addDocumentWorkflowDecisionsRequest' is set + if (addDocumentWorkflowDecisionsRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocumentWorkflowDecisionsRequest' when calling addDocumentWorkflowDecisions(Async)"); + } + + return addDocumentWorkflowDecisionsCall(documentId, workflowId, + addDocumentWorkflowDecisionsRequest, siteId, _callback); + + } + + /** + * Approve/Reject document in approval queue Approve/Reject document in approval queue; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param addDocumentWorkflowDecisionsRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocumentWorkflowDecisionsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddDocumentWorkflowDecisionsResponse addDocumentWorkflowDecisions( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addDocumentWorkflowDecisionsWithHttpInfo(documentId, workflowId, + addDocumentWorkflowDecisionsRequest, siteId); + return localVarResp.getData(); + } + + /** + * Approve/Reject document in approval queue Approve/Reject document in approval queue; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param addDocumentWorkflowDecisionsRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocumentWorkflowDecisionsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addDocumentWorkflowDecisionsWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocumentWorkflowDecisionsValidateBeforeCall(documentId, + workflowId, addDocumentWorkflowDecisionsRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Approve/Reject document in approval queue (asynchronously) Approve/Reject document in approval + * queue; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param addDocumentWorkflowDecisionsRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentWorkflowDecisionsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentWorkflowDecisionsValidateBeforeCall(documentId, + workflowId, addDocumentWorkflowDecisionsRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addQueue + * + * @param addQueueRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addQueueCall(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addQueueRequest; + + // create path and map variables + String localVarPath = "/queues"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addQueueValidateBeforeCall( + @javax.annotation.Nonnull AddQueueRequest addQueueRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addQueueRequest' is set + if (addQueueRequest == null) { + throw new ApiException( + "Missing the required parameter 'addQueueRequest' when calling addQueue(Async)"); + } + + return addQueueCall(addQueueRequest, siteId, _callback); + + } + + /** + * Add queue Creates a new Queue; available as an Add-On Module + * + * @param addQueueRequest (required) + * @param siteId Site Identifier (optional) + * @return AddQueueResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddQueueResponse addQueue(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = addQueueWithHttpInfo(addQueueRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add queue Creates a new Queue; available as an Add-On Module + * + * @param addQueueRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddQueueResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addQueueWithHttpInfo( + @javax.annotation.Nonnull AddQueueRequest addQueueRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addQueueValidateBeforeCall(addQueueRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add queue (asynchronously) Creates a new Queue; available as an Add-On Module + * + * @param addQueueRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addQueueAsync(@javax.annotation.Nonnull AddQueueRequest addQueueRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addQueueValidateBeforeCall(addQueueRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addWorkflow + * + * @param addWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addWorkflowCall( + @javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addWorkflowRequest; + + // create path and map variables + String localVarPath = "/workflows"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addWorkflowValidateBeforeCall( + @javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addWorkflowRequest' is set + if (addWorkflowRequest == null) { + throw new ApiException( + "Missing the required parameter 'addWorkflowRequest' when calling addWorkflow(Async)"); + } + + return addWorkflowCall(addWorkflowRequest, siteId, _callback); + + } + + /** + * Add workflow Creates a new Workflow; available as an Add-On Module + * + * @param addWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return AddWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddWorkflowResponse addWorkflow( + @javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addWorkflowWithHttpInfo(addWorkflowRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add workflow Creates a new Workflow; available as an Add-On Module + * + * @param addWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addWorkflowWithHttpInfo( + @javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addWorkflowValidateBeforeCall(addWorkflowRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add workflow (asynchronously) Creates a new Workflow; available as an Add-On Module + * + * @param addWorkflowRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addWorkflowAsync( + @javax.annotation.Nonnull AddWorkflowRequest addWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addWorkflowValidateBeforeCall(addWorkflowRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteQueue + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteQueueCall(@javax.annotation.Nonnull String queueId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/queues/{queueId}".replace("{" + "queueId" + "}", + localVarApiClient.escapeString(queueId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteQueueValidateBeforeCall(@javax.annotation.Nonnull String queueId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'queueId' is set + if (queueId == null) { + throw new ApiException( + "Missing the required parameter 'queueId' when calling deleteQueue(Async)"); + } + + return deleteQueueCall(queueId, siteId, _callback); + + } + + /** + * Delete queue Delete a Queue; available as an Add-On Module + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @return DeleteQueueResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteQueueResponse deleteQueue(@javax.annotation.Nonnull String queueId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteQueueWithHttpInfo(queueId, siteId); + return localVarResp.getData(); + } + + /** + * Delete queue Delete a Queue; available as an Add-On Module + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteQueueResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteQueueWithHttpInfo( + @javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteQueueValidateBeforeCall(queueId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete queue (asynchronously) Delete a Queue; available as an Add-On Module + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteQueueAsync(@javax.annotation.Nonnull String queueId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteQueueValidateBeforeCall(queueId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteWorkflow + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteWorkflowCall(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/workflows/{workflowId}".replace("{" + "workflowId" + "}", + localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException( + "Missing the required parameter 'workflowId' when calling deleteWorkflow(Async)"); + } + + return deleteWorkflowCall(workflowId, siteId, _callback); + + } + + /** + * Delete workflow Delete a Workflow; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteWorkflowResponse deleteWorkflow(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + deleteWorkflowWithHttpInfo(workflowId, siteId); + return localVarResp.getData(); + } + + /** + * Delete workflow Delete a Workflow; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteWorkflowWithHttpInfo( + @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteWorkflowValidateBeforeCall(workflowId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete workflow (asynchronously) Delete a Workflow; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteWorkflowAsync(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteWorkflowValidateBeforeCall(workflowId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentWorkflow + * + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentWorkflowCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/workflows/{workflowId}" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "workflowId" + "}", localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentWorkflowValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentWorkflow(Async)"); + } + + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException( + "Missing the required parameter 'workflowId' when calling getDocumentWorkflow(Async)"); + } + + return getDocumentWorkflowCall(documentId, workflowId, siteId, _callback); + + } + + /** + * Get document workflow Gets a document workflow; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetDocumentWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentWorkflowResponse getDocumentWorkflow( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + getDocumentWorkflowWithHttpInfo(documentId, workflowId, siteId); + return localVarResp.getData(); + } + + /** + * Get document workflow Gets a document workflow; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetDocumentWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentWorkflowWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + getDocumentWorkflowValidateBeforeCall(documentId, workflowId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document workflow (asynchronously) Gets a document workflow; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentWorkflowAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentWorkflowValidateBeforeCall(documentId, workflowId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentWorkflows + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentWorkflowsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/workflows".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentWorkflowsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentWorkflows(Async)"); + } + + return getDocumentWorkflowsCall(documentId, siteId, _callback); + + } + + /** + * Get document workflows Gets a document workflows; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetDocumentWorkflowsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentWorkflowsResponse getDocumentWorkflows( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + getDocumentWorkflowsWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Get document workflows Gets a document workflows; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetDocumentWorkflowsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentWorkflowsWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getDocumentWorkflowsValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document workflows (asynchronously) Gets a document workflows; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentWorkflowsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentWorkflowsValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getQueue + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getQueueCall(@javax.annotation.Nonnull String queueId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/queues/{queueId}".replace("{" + "queueId" + "}", + localVarApiClient.escapeString(queueId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getQueueValidateBeforeCall(@javax.annotation.Nonnull String queueId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'queueId' is set + if (queueId == null) { + throw new ApiException( + "Missing the required parameter 'queueId' when calling getQueue(Async)"); + } + + return getQueueCall(queueId, siteId, _callback); + + } + + /** + * Get queue Get a queue; available as an Add-On Module + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @return GetQueueResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetQueueResponse getQueue(@javax.annotation.Nonnull String queueId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getQueueWithHttpInfo(queueId, siteId); + return localVarResp.getData(); + } + + /** + * Get queue Get a queue; available as an Add-On Module + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetQueueResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getQueueWithHttpInfo( + @javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getQueueValidateBeforeCall(queueId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get queue (asynchronously) Get a queue; available as an Add-On Module + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getQueueAsync(@javax.annotation.Nonnull String queueId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getQueueValidateBeforeCall(queueId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getQueues + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getQueuesCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/queues"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getQueuesValidateBeforeCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + return getQueuesCall(siteId, next, limit, _callback); + + } + + /** + * Get queues Get a listing of queues; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetQueuesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetQueuesResponse getQueues(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = getQueuesWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get queues Get a listing of queues; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetQueuesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getQueuesWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getQueuesValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get queues (asynchronously) Get a listing of queues; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getQueuesAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getQueuesValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getWorkflow + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWorkflowCall(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/workflows/{workflowId}".replace("{" + "workflowId" + "}", + localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException( + "Missing the required parameter 'workflowId' when calling getWorkflow(Async)"); + } + + return getWorkflowCall(workflowId, siteId, _callback); + + } + + /** + * Get workflow Get a workflow; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetWorkflowResponse getWorkflow(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getWorkflowWithHttpInfo(workflowId, siteId); + return localVarResp.getData(); + } + + /** + * Get workflow Get a workflow; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getWorkflowWithHttpInfo( + @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getWorkflowValidateBeforeCall(workflowId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get workflow (asynchronously) Get a workflow; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWorkflowAsync(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getWorkflowValidateBeforeCall(workflowId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getWorkflowDocuments + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWorkflowDocumentsCall(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/workflows/{workflowId}/documents".replace("{" + "workflowId" + "}", + localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWorkflowDocumentsValidateBeforeCall( + @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException( + "Missing the required parameter 'workflowId' when calling getWorkflowDocuments(Async)"); + } + + return getWorkflowDocumentsCall(workflowId, siteId, limit, next, _callback); + + } + + /** + * Get list of documents in workflow List documents in Workflow; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetWorkflowDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetWorkflowDocumentsResponse getWorkflowDocuments( + @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + ApiResponse localVarResp = + getWorkflowDocumentsWithHttpInfo(workflowId, siteId, limit, next); + return localVarResp.getData(); + } + + /** + * Get list of documents in workflow List documents in Workflow; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetWorkflowDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getWorkflowDocumentsWithHttpInfo( + @javax.annotation.Nonnull String workflowId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + okhttp3.Call localVarCall = + getWorkflowDocumentsValidateBeforeCall(workflowId, siteId, limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of documents in workflow (asynchronously) List documents in Workflow; available as an + * Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWorkflowDocumentsAsync(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getWorkflowDocumentsValidateBeforeCall(workflowId, siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getWorkflowQueueDocuments + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWorkflowQueueDocumentsCall(@javax.annotation.Nonnull String queueId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/queues/{queueId}/documents".replace("{" + "queueId" + "}", + localVarApiClient.escapeString(queueId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWorkflowQueueDocumentsValidateBeforeCall( + @javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'queueId' is set + if (queueId == null) { + throw new ApiException( + "Missing the required parameter 'queueId' when calling getWorkflowQueueDocuments(Async)"); + } + + return getWorkflowQueueDocumentsCall(queueId, siteId, limit, next, _callback); + + } + + /** + * Get list of documents in queue List documents in Workflow Queue; available as an Add-On Module + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetWorkflowQueueDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetWorkflowQueueDocumentsResponse getWorkflowQueueDocuments( + @javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + ApiResponse localVarResp = + getWorkflowQueueDocumentsWithHttpInfo(queueId, siteId, limit, next); + return localVarResp.getData(); + } + + /** + * Get list of documents in queue List documents in Workflow Queue; available as an Add-On Module + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetWorkflowQueueDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getWorkflowQueueDocumentsWithHttpInfo( + @javax.annotation.Nonnull String queueId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + okhttp3.Call localVarCall = + getWorkflowQueueDocumentsValidateBeforeCall(queueId, siteId, limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of documents in queue (asynchronously) List documents in Workflow Queue; available as + * an Add-On Module + * + * @param queueId Queue Id (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWorkflowQueueDocumentsAsync(@javax.annotation.Nonnull String queueId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getWorkflowQueueDocumentsValidateBeforeCall(queueId, siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getWorkflows + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param status Filters Status (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWorkflowsCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/workflows"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (status != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWorkflowsValidateBeforeCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String status, final ApiCallback _callback) throws ApiException { + return getWorkflowsCall(siteId, next, limit, status, _callback); + + } + + /** + * Get workflows Get a listing of workflows; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param status Filters Status (optional) + * @return GetWorkflowsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetWorkflowsResponse getWorkflows(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String status) throws ApiException { + ApiResponse localVarResp = + getWorkflowsWithHttpInfo(siteId, next, limit, status); + return localVarResp.getData(); + } + + /** + * Get workflows Get a listing of workflows; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param status Filters Status (optional) + * @return ApiResponse<GetWorkflowsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getWorkflowsWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String status) + throws ApiException { + okhttp3.Call localVarCall = getWorkflowsValidateBeforeCall(siteId, next, limit, status, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get workflows (asynchronously) Get a listing of workflows; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param status Filters Status (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWorkflowsAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String status, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + getWorkflowsValidateBeforeCall(siteId, next, limit, status, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setWorkflow + * + * @param workflowId Workflow Identifier (required) + * @param setWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setWorkflowCall(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setWorkflowRequest; + + // create path and map variables + String localVarPath = "/workflows/{workflowId}".replace("{" + "workflowId" + "}", + localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException( + "Missing the required parameter 'workflowId' when calling setWorkflow(Async)"); + } + + // verify the required parameter 'setWorkflowRequest' is set + if (setWorkflowRequest == null) { + throw new ApiException( + "Missing the required parameter 'setWorkflowRequest' when calling setWorkflow(Async)"); + } + + return setWorkflowCall(workflowId, setWorkflowRequest, siteId, _callback); + + } + + /** + * Set workflow Set a Workflow details; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param setWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return SetWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetWorkflowResponse setWorkflow(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + setWorkflowWithHttpInfo(workflowId, setWorkflowRequest, siteId); + return localVarResp.getData(); + } + + /** + * Set workflow Set a Workflow details; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param setWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setWorkflowWithHttpInfo( + @javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + setWorkflowValidateBeforeCall(workflowId, setWorkflowRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set workflow (asynchronously) Set a Workflow details; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param setWorkflowRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setWorkflowAsync(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull SetWorkflowRequest setWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + setWorkflowValidateBeforeCall(workflowId, setWorkflowRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateWorkflow + * + * @param workflowId Workflow Identifier (required) + * @param updateWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateWorkflowCall(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateWorkflowRequest; + + // create path and map variables + String localVarPath = "/workflows/{workflowId}".replace("{" + "workflowId" + "}", + localVarApiClient.escapeString(workflowId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateWorkflowValidateBeforeCall(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'workflowId' is set + if (workflowId == null) { + throw new ApiException( + "Missing the required parameter 'workflowId' when calling updateWorkflow(Async)"); + } + + // verify the required parameter 'updateWorkflowRequest' is set + if (updateWorkflowRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateWorkflowRequest' when calling updateWorkflow(Async)"); + } + + return updateWorkflowCall(workflowId, updateWorkflowRequest, siteId, _callback); + + } + + /** + * Update workflow Update a Workflow details; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param updateWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateWorkflowResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public UpdateWorkflowResponse updateWorkflow(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + updateWorkflowWithHttpInfo(workflowId, updateWorkflowRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update workflow Update a Workflow details; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param updateWorkflowRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateWorkflowResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse updateWorkflowWithHttpInfo( + @javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + updateWorkflowValidateBeforeCall(workflowId, updateWorkflowRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update workflow (asynchronously) Update a Workflow details; available as an Add-On Module + * + * @param workflowId Workflow Identifier (required) + * @param updateWorkflowRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
20020) OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateWorkflowAsync(@javax.annotation.Nonnull String workflowId, + @javax.annotation.Nonnull UpdateWorkflowRequest updateWorkflowRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateWorkflowValidateBeforeCall(workflowId, updateWorkflowRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/DocumentsApi.java b/src/main/java/com/formkiq/client/api/DocumentsApi.java index 9f8e61bbe..1b602e358 100644 --- a/src/main/java/com/formkiq/client/api/DocumentsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentsApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,3018 +59,4477 @@ import java.util.Map; public class DocumentsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DocumentsApi() { + this(Configuration.getDefaultApiClient()); + } + + public DocumentsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocument + * + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocumentCall( + @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentRequest; + + // create path and map variables + String localVarPath = "/documents"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentValidateBeforeCall( + @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addDocumentRequest' is set + if (addDocumentRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocumentRequest' when calling addDocument(Async)"); + } + + return addDocumentCall(addDocumentRequest, siteId, shareKey, _callback); + + } + + /** + * Add new document Creates a new document; body may include document content if less than 5 MB. + * Returns a unique **documentId** used in subsequent operations. See POST + * /documents/{documentId}/tags for adding tags to document schema See POST + * /documents/{documentId}/actions for adding actions to document schema + * + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return AddDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddDocumentResponse addDocument( + @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + ApiResponse localVarResp = + addDocumentWithHttpInfo(addDocumentRequest, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Add new document Creates a new document; body may include document content if less than 5 MB. + * Returns a unique **documentId** used in subsequent operations. See POST + * /documents/{documentId}/tags for adding tags to document schema See POST + * /documents/{documentId}/actions for adding actions to document schema + * + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<AddDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addDocumentWithHttpInfo( + @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + okhttp3.Call localVarCall = + addDocumentValidateBeforeCall(addDocumentRequest, siteId, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add new document (asynchronously) Creates a new document; body may include document content if + * less than 5 MB. Returns a unique **documentId** used in subsequent operations. See POST + * /documents/{documentId}/tags for adding tags to document schema See POST + * /documents/{documentId}/actions for adding actions to document schema + * + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocumentAsync( + @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + addDocumentValidateBeforeCall(addDocumentRequest, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addDocumentSync + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentSyncRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentSyncCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentSyncRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}/syncs".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentSyncValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocumentSync(Async)"); + } + + return addDocumentSyncCall(documentId, siteId, addDocumentSyncRequest, _callback); + + } + + /** + * Add document sync to service Add a document to a service + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentSyncRequest (optional) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddResponse addDocumentSync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest) + throws ApiException { + ApiResponse localVarResp = + addDocumentSyncWithHttpInfo(documentId, siteId, addDocumentSyncRequest); + return localVarResp.getData(); + } + + /** + * Add document sync to service Add a document to a service + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentSyncRequest (optional) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addDocumentSyncWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest) + throws ApiException { + okhttp3.Call localVarCall = + addDocumentSyncValidateBeforeCall(documentId, siteId, addDocumentSyncRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add document sync to service (asynchronously) Add a document to a service + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param addDocumentSyncRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentSyncAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + addDocumentSyncValidateBeforeCall(documentId, siteId, addDocumentSyncRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addDocumentUpload + * + * @param addDocumentUploadRequest (required) + * @param siteId Site Identifier (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentUploadCall( + @javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addDocumentUploadRequest; - public DocumentsApi() { - this(Configuration.getDefaultApiClient()); + // create path and map variables + String localVarPath = "/documents/upload"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (contentLength != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); + } + + if (duration != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); } - public DocumentsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - public ApiClient getApiClient() { - return localVarApiClient; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public int getHostIndex() { - return localHostIndex; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocumentUploadValidateBeforeCall( + @javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addDocumentUploadRequest' is set + if (addDocumentUploadRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocumentUploadRequest' when calling addDocumentUpload(Async)"); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + return addDocumentUploadCall(addDocumentUploadRequest, siteId, contentLength, duration, + shareKey, _callback); + + } + + /** + * Add large document Returns a URL that can be used to upload document content and create a new + * document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is + * required in order to add content that is larger than 5 MB. The POST endpoint allow the adding + * of document metadata at the same time as the document is created. + * + * @param addDocumentUploadRequest (required) + * @param siteId Site Identifier (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentUrlResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentUrlResponse addDocumentUpload( + @javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) + throws ApiException { + ApiResponse localVarResp = addDocumentUploadWithHttpInfo( + addDocumentUploadRequest, siteId, contentLength, duration, shareKey); + return localVarResp.getData(); + } + + /** + * Add large document Returns a URL that can be used to upload document content and create a new + * document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is + * required in order to add content that is larger than 5 MB. The POST endpoint allow the adding + * of document metadata at the same time as the document is created. + * + * @param addDocumentUploadRequest (required) + * @param siteId Site Identifier (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentUrlResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addDocumentUploadWithHttpInfo( + @javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) + throws ApiException { + okhttp3.Call localVarCall = addDocumentUploadValidateBeforeCall(addDocumentUploadRequest, + siteId, contentLength, duration, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add large document (asynchronously) Returns a URL that can be used to upload document content + * and create a new document, while allowing metadata to also be sent; this endpoint (whether GET + * or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow + * the adding of document metadata at the same time as the document is created. + * + * @param addDocumentUploadRequest (required) + * @param siteId Site Identifier (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addDocumentUploadAsync( + @javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocumentUploadValidateBeforeCall(addDocumentUploadRequest, + siteId, contentLength, duration, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for compressDocuments + * + * @param documentsCompressRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call compressDocumentsCall( + @javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + Object localVarPostBody = documentsCompressRequest; + + // create path and map variables + String localVarPath = "/documents/compress"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addDocument - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocumentCall(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentRequest; - - // create path and map variables - String localVarPath = "/documents"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentValidateBeforeCall(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addDocumentRequest' is set - if (addDocumentRequest == null) { - throw new ApiException("Missing the required parameter 'addDocumentRequest' when calling addDocument(Async)"); - } - - return addDocumentCall(addDocumentRequest, siteId, shareKey, _callback); - - } - - /** - * Add new document - * Creates a new document; body may include document content if less than 5 MB. Returns a unique **documentId** used in subsequent operations. See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return AddDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddDocumentResponse addDocument(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = addDocumentWithHttpInfo(addDocumentRequest, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Add new document - * Creates a new document; body may include document content if less than 5 MB. Returns a unique **documentId** used in subsequent operations. See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<AddDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addDocumentWithHttpInfo(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = addDocumentValidateBeforeCall(addDocumentRequest, siteId, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add new document (asynchronously) - * Creates a new document; body may include document content if less than 5 MB. Returns a unique **documentId** used in subsequent operations. See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocumentAsync(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentValidateBeforeCall(addDocumentRequest, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addDocumentSync - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentSyncRequest (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentSyncCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentSyncRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}/syncs" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentSyncValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocumentSync(Async)"); - } - - return addDocumentSyncCall(documentId, siteId, addDocumentSyncRequest, _callback); - - } - - /** - * Add document sync to service - * Add a document to a service - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentSyncRequest (optional) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddResponse addDocumentSync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest) throws ApiException { - ApiResponse localVarResp = addDocumentSyncWithHttpInfo(documentId, siteId, addDocumentSyncRequest); - return localVarResp.getData(); - } - - /** - * Add document sync to service - * Add a document to a service - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentSyncRequest (optional) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addDocumentSyncWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest) throws ApiException { - okhttp3.Call localVarCall = addDocumentSyncValidateBeforeCall(documentId, siteId, addDocumentSyncRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add document sync to service (asynchronously) - * Add a document to a service - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param addDocumentSyncRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentSyncAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable AddDocumentSyncRequest addDocumentSyncRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentSyncValidateBeforeCall(documentId, siteId, addDocumentSyncRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addDocumentUpload - * @param addDocumentUploadRequest (required) - * @param siteId Site Identifier (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentUploadCall(@javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentUploadRequest; - - // create path and map variables - String localVarPath = "/documents/upload"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (contentLength != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); - } - - if (duration != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocumentUploadValidateBeforeCall(@javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addDocumentUploadRequest' is set - if (addDocumentUploadRequest == null) { - throw new ApiException("Missing the required parameter 'addDocumentUploadRequest' when calling addDocumentUpload(Async)"); - } - - return addDocumentUploadCall(addDocumentUploadRequest, siteId, contentLength, duration, shareKey, _callback); - - } - - /** - * Add large document - * Returns a URL that can be used to upload document content and create a new document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata at the same time as the document is created. - * @param addDocumentUploadRequest (required) - * @param siteId Site Identifier (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentUrlResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentUrlResponse addDocumentUpload(@javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = addDocumentUploadWithHttpInfo(addDocumentUploadRequest, siteId, contentLength, duration, shareKey); - return localVarResp.getData(); - } - - /** - * Add large document - * Returns a URL that can be used to upload document content and create a new document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata at the same time as the document is created. - * @param addDocumentUploadRequest (required) - * @param siteId Site Identifier (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentUrlResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addDocumentUploadWithHttpInfo(@javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = addDocumentUploadValidateBeforeCall(addDocumentUploadRequest, siteId, contentLength, duration, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add large document (asynchronously) - * Returns a URL that can be used to upload document content and create a new document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata at the same time as the document is created. - * @param addDocumentUploadRequest (required) - * @param siteId Site Identifier (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addDocumentUploadAsync(@javax.annotation.Nonnull AddDocumentUploadRequest addDocumentUploadRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocumentUploadValidateBeforeCall(addDocumentUploadRequest, siteId, contentLength, duration, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for compressDocuments - * @param documentsCompressRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call compressDocumentsCall(@javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = documentsCompressRequest; - - // create path and map variables - String localVarPath = "/documents/compress"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call compressDocumentsValidateBeforeCall(@javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentsCompressRequest' is set - if (documentsCompressRequest == null) { - throw new ApiException("Missing the required parameter 'documentsCompressRequest' when calling compressDocuments(Async)"); - } - - return compressDocumentsCall(documentsCompressRequest, siteId, _callback); - - } - - /** - * Compress multiple documents into a .zip file - * Compress documents into an .ZIP archive file, and returns a S3 presigned url for the location of the archive file. The operation is async and processing time depends on the number and size of documents included; a 404 status code is returned until the file is ready. - * @param documentsCompressRequest (required) - * @param siteId Site Identifier (optional) - * @return DocumentsCompressResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DocumentsCompressResponse compressDocuments(@javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = compressDocumentsWithHttpInfo(documentsCompressRequest, siteId); - return localVarResp.getData(); - } - - /** - * Compress multiple documents into a .zip file - * Compress documents into an .ZIP archive file, and returns a S3 presigned url for the location of the archive file. The operation is async and processing time depends on the number and size of documents included; a 404 status code is returned until the file is ready. - * @param documentsCompressRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DocumentsCompressResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse compressDocumentsWithHttpInfo(@javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = compressDocumentsValidateBeforeCall(documentsCompressRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Compress multiple documents into a .zip file (asynchronously) - * Compress documents into an .ZIP archive file, and returns a S3 presigned url for the location of the archive file. The operation is async and processing time depends on the number and size of documents included; a 404 status code is returned until the file is ready. - * @param documentsCompressRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call compressDocumentsAsync(@javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = compressDocumentsValidateBeforeCall(documentsCompressRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteDocument - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param softDelete Whether to soft delete document (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (softDelete != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("softDelete", softDelete)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocument(Async)"); - } - - return deleteDocumentCall(documentId, siteId, softDelete, _callback); - - } - - /** - * Delete document - * Delete a document's details, i.e., metadata, contents, etc SoftDelete: The SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, etc from being retrieved from all API requests. The document can be permanently deleted by calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the soft deleted documents. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param softDelete Whether to soft delete document (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteDocument(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete) throws ApiException { - ApiResponse localVarResp = deleteDocumentWithHttpInfo(documentId, siteId, softDelete); - return localVarResp.getData(); - } - - /** - * Delete document - * Delete a document's details, i.e., metadata, contents, etc SoftDelete: The SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, etc from being retrieved from all API requests. The document can be permanently deleted by calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the soft deleted documents. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param softDelete Whether to soft delete document (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentValidateBeforeCall(documentId, siteId, softDelete, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document (asynchronously) - * Delete a document's details, i.e., metadata, contents, etc SoftDelete: The SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, etc from being retrieved from all API requests. The document can be permanently deleted by calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the soft deleted documents. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param softDelete Whether to soft delete document (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentValidateBeforeCall(documentId, siteId, softDelete, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteDocumentCheckoutLegalHold - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentCheckoutLegalHoldCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/legalHold" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDocumentCheckoutLegalHoldValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deleteDocumentCheckoutLegalHold(Async)"); - } - - return deleteDocumentCheckoutLegalHoldCall(documentId, siteId, _callback); - - } - - /** - * Delete document legal hold checkout - * Removes a legal hold checkout for the document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteDocumentCheckoutLegalHold(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteDocumentCheckoutLegalHoldWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete document legal hold checkout - * Removes a legal hold checkout for the document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteDocumentCheckoutLegalHoldWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete document legal hold checkout (asynchronously) - * Removes a legal hold checkout for the document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteDocumentCheckoutLegalHoldAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deletePublishedDocumentContent - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deletePublishedDocumentContentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/publications/{documentId}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deletePublishedDocumentContentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling deletePublishedDocumentContent(Async)"); - } - - return deletePublishedDocumentContentCall(documentId, siteId, _callback); - - } - - /** - * Delete published document's contents - * Delete a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deletePublishedDocumentContent(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deletePublishedDocumentContentWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Delete published document's contents - * Delete a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deletePublishedDocumentContentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deletePublishedDocumentContentValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete published document's contents (asynchronously) - * Delete a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deletePublishedDocumentContentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deletePublishedDocumentContentValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocument - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocument(Async)"); - } - - return getDocumentCall(documentId, siteId, shareKey, _callback); - - } - - /** - * Get document - * Retrieves a document's details, i.e., metadata - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentResponse getDocument(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = getDocumentWithHttpInfo(documentId, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Get document - * Retrieves a document's details, i.e., metadata - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentValidateBeforeCall(documentId, siteId, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document (asynchronously) - * Retrieves a document's details, i.e., metadata - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentValidateBeforeCall(documentId, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentContent - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
* Location -
- */ - public okhttp3.Call getDocumentContentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/content" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (versionKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("versionKey", versionKey)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentContentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentContent(Async)"); - } - - return getDocumentContentCall(documentId, siteId, versionKey, shareKey, _callback); - - } - - /** - * Get document's contents - * Retrieves the content of the document with the specified `documentId`. - If the content is plain text and under 6 MB, the content will be returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. - For documents not in plain text format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type of text/, application/json, application/x-www-form-urlencoded the content field will be returned. All other Content-Type, the contentUrl field will be returned, which is a S3 Presigned url. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentContentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
* Location -
- */ - public GetDocumentContentResponse getDocumentContent(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = getDocumentContentWithHttpInfo(documentId, siteId, versionKey, shareKey); - return localVarResp.getData(); - } - - /** - * Get document's contents - * Retrieves the content of the document with the specified `documentId`. - If the content is plain text and under 6 MB, the content will be returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. - For documents not in plain text format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type of text/, application/json, application/x-www-form-urlencoded the content field will be returned. All other Content-Type, the contentUrl field will be returned, which is a S3 Presigned url. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentContentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
* Location -
- */ - public ApiResponse getDocumentContentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentContentValidateBeforeCall(documentId, siteId, versionKey, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document's contents (asynchronously) - * Retrieves the content of the document with the specified `documentId`. - If the content is plain text and under 6 MB, the content will be returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. - For documents not in plain text format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type of text/, application/json, application/x-www-form-urlencoded the content field will be returned. All other Content-Type, the contentUrl field will be returned, which is a S3 Presigned url. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
* Location -
- */ - public okhttp3.Call getDocumentContentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentContentValidateBeforeCall(documentId, siteId, versionKey, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentIdUpload - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentIdUploadCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/upload" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (checksumType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksumType", checksumType)); - } - - if (checksum != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksum", checksum)); - } - - if (contentLength != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); - } - - if (duration != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentIdUploadValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentIdUpload(Async)"); - } - - return getDocumentIdUploadCall(documentId, siteId, checksumType, checksum, contentLength, duration, shareKey, _callback); - - } - - /** - * Get url to update large document - * Returns a URL that can be used to upload documents for a specific documentId; this endpoint is required in order to add content that is larger than 5 MB. If versions are enabled, this will create a new version of the document. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentUrlResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentUrlResponse getDocumentIdUpload(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = getDocumentIdUploadWithHttpInfo(documentId, siteId, checksumType, checksum, contentLength, duration, shareKey); - return localVarResp.getData(); - } - - /** - * Get url to update large document - * Returns a URL that can be used to upload documents for a specific documentId; this endpoint is required in order to add content that is larger than 5 MB. If versions are enabled, this will create a new version of the document. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentUrlResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentIdUploadWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentIdUploadValidateBeforeCall(documentId, siteId, checksumType, checksum, contentLength, duration, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get url to update large document (asynchronously) - * Returns a URL that can be used to upload documents for a specific documentId; this endpoint is required in order to add content that is larger than 5 MB. If versions are enabled, this will create a new version of the document. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentIdUploadAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentIdUploadValidateBeforeCall(documentId, siteId, checksumType, checksum, contentLength, duration, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentSyncs - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentSyncsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/syncs" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentSyncsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentSyncs(Async)"); - } - - return getDocumentSyncsCall(documentId, siteId, limit, shareKey, _callback); - - } - - /** - * Get document syncs - * Retrieve the document syncs with external services status - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @return GetDocumentSyncResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentSyncResponse getDocumentSyncs(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = getDocumentSyncsWithHttpInfo(documentId, siteId, limit, shareKey); - return localVarResp.getData(); - } - - /** - * Get document syncs - * Retrieve the document syncs with external services status - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentSyncResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentSyncsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentSyncsValidateBeforeCall(documentId, siteId, limit, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document syncs (asynchronously) - * Retrieve the document syncs with external services status - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentSyncsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentSyncsValidateBeforeCall(documentId, siteId, limit, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentUpload - * @param path The upload file's path (optional) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentUploadCall(@javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/upload"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (path != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); - } - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (checksumType != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksumType", checksumType)); - } - - if (checksum != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksum", checksum)); - } - - if (contentLength != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); - } - - if (duration != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentUploadValidateBeforeCall(@javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - return getDocumentUploadCall(path, siteId, checksumType, checksum, contentLength, duration, shareKey, _callback); - - } - - /** - * Get url to add large document - * Returns a URL that can be used to upload document content and create a new document; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB - * @param path The upload file's path (optional) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return GetDocumentUrlResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentUrlResponse getDocumentUpload(@javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = getDocumentUploadWithHttpInfo(path, siteId, checksumType, checksum, contentLength, duration, shareKey); - return localVarResp.getData(); - } - - /** - * Get url to add large document - * Returns a URL that can be used to upload document content and create a new document; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB - * @param path The upload file's path (optional) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<GetDocumentUrlResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentUploadWithHttpInfo(@javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = getDocumentUploadValidateBeforeCall(path, siteId, checksumType, checksum, contentLength, duration, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get url to add large document (asynchronously) - * Returns a URL that can be used to upload document content and create a new document; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB - * @param path The upload file's path (optional) - * @param siteId Site Identifier (optional) - * @param checksumType Checksum Type (optional) - * @param checksum Checksum value (optional) - * @param contentLength Indicates the size of the entity-body (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentUploadAsync(@javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentUploadValidateBeforeCall(path, siteId, checksumType, checksum, contentLength, duration, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocumentUrl - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param inline Set the Content-Disposition to inline (optional, default to false) - * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN permissions) (optional, default to false) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentUrlCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/url" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (versionKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("versionKey", versionKey)); - } - - if (duration != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - if (inline != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("inline", inline)); - } - - if (bypassWatermark != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("bypassWatermark", bypassWatermark)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentUrlValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentUrl(Async)"); - } - - return getDocumentUrlCall(documentId, siteId, versionKey, duration, shareKey, inline, bypassWatermark, _callback); - - } - - /** - * Get document content url - * Returns a URL for the document's contents; this URL will expire (the default is 48 hours) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param inline Set the Content-Disposition to inline (optional, default to false) - * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN permissions) (optional, default to false) - * @return GetDocumentUrlResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentUrlResponse getDocumentUrl(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark) throws ApiException { - ApiResponse localVarResp = getDocumentUrlWithHttpInfo(documentId, siteId, versionKey, duration, shareKey, inline, bypassWatermark); - return localVarResp.getData(); - } - - /** - * Get document content url - * Returns a URL for the document's contents; this URL will expire (the default is 48 hours) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param inline Set the Content-Disposition to inline (optional, default to false) - * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN permissions) (optional, default to false) - * @return ApiResponse<GetDocumentUrlResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentUrlWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark) throws ApiException { - okhttp3.Call localVarCall = getDocumentUrlValidateBeforeCall(documentId, siteId, versionKey, duration, shareKey, inline, bypassWatermark, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get document content url (asynchronously) - * Returns a URL for the document's contents; this URL will expire (the default is 48 hours) - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param versionKey Version Key (version key required URL encoding) (optional) - * @param duration Indicates the number of hours request is valid for (optional) - * @param shareKey Share Identifier (optional) - * @param inline Set the Content-Disposition to inline (optional, default to false) - * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN permissions) (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentUrlAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentUrlValidateBeforeCall(documentId, siteId, versionKey, duration, shareKey, inline, bypassWatermark, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getDocuments - * @param siteId Site Identifier (optional) - * @param actionStatus Fetch documents with an action status (optional) - * @param syncStatus Fetch documents with an sync status (optional) - * @param deleted Fetch soft deleted documents (optional) - * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) - * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (actionStatus != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("actionStatus", actionStatus)); - } - - if (syncStatus != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("syncStatus", syncStatus)); - } - - if (deleted != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("deleted", deleted)); - } - - if (date != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("date", date)); - } - - if (tz != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("tz", tz)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (previous != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentsValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - return getDocumentsCall(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit, _callback); - - } - - /** - * Get Documents listing - * Returns a list of the most recent documents added, ordered by inserted, descending - * @param siteId Site Identifier (optional) - * @param actionStatus Fetch documents with an action status (optional) - * @param syncStatus Fetch documents with an sync status (optional) - * @param deleted Fetch soft deleted documents (optional) - * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) - * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetDocumentsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetDocumentsResponse getDocuments(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getDocumentsWithHttpInfo(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit); - return localVarResp.getData(); - } - - /** - * Get Documents listing - * Returns a list of the most recent documents added, ordered by inserted, descending - * @param siteId Site Identifier (optional) - * @param actionStatus Fetch documents with an action status (optional) - * @param syncStatus Fetch documents with an sync status (optional) - * @param deleted Fetch soft deleted documents (optional) - * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) - * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetDocumentsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentsWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getDocumentsValidateBeforeCall(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Documents listing (asynchronously) - * Returns a list of the most recent documents added, ordered by inserted, descending - * @param siteId Site Identifier (optional) - * @param actionStatus Fetch documents with an action status (optional) - * @param syncStatus Fetch documents with an sync status (optional) - * @param deleted Fetch soft deleted documents (optional) - * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) - * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentsValidateBeforeCall(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getPublishedDocumentContent - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
307 Temporary Redirect * Location -
- */ - public okhttp3.Call getPublishedDocumentContentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/publications/{documentId}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getPublishedDocumentContentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getPublishedDocumentContent(Async)"); - } - - return getPublishedDocumentContentCall(documentId, siteId, _callback); - - } - - /** - * Get published document's contents - * Get a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
307 Temporary Redirect * Location -
- */ - public void getPublishedDocumentContent(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - getPublishedDocumentContentWithHttpInfo(documentId, siteId); - } - - /** - * Get published document's contents - * Get a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
307 Temporary Redirect * Location -
- */ - public ApiResponse getPublishedDocumentContentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getPublishedDocumentContentValidateBeforeCall(documentId, siteId, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * Get published document's contents (asynchronously) - * Get a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
307 Temporary Redirect * Location -
- */ - public okhttp3.Call getPublishedDocumentContentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getPublishedDocumentContentValidateBeforeCall(documentId, siteId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for purgeDocument - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call purgeDocumentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/purge" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call purgeDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling purgeDocument(Async)"); - } - - return purgeDocumentCall(documentId, siteId, _callback); - - } - - /** - * Purge document - * Remove all objects from the S3 bucket, including previous versions and current version, and should remove all metadata as well, so that no trace of the document exists outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse purgeDocument(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = purgeDocumentWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Purge document - * Remove all objects from the S3 bucket, including previous versions and current version, and should remove all metadata as well, so that no trace of the document exists outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse purgeDocumentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = purgeDocumentValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Purge document (asynchronously) - * Remove all objects from the S3 bucket, including previous versions and current version, and should remove all metadata as well, so that no trace of the document exists outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call purgeDocumentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = purgeDocumentValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setDocumentCheckout - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentCheckoutCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/checkout" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentCheckoutValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentCheckout(Async)"); - } - - return setDocumentCheckoutCall(documentId, siteId, _callback); - - } - - /** - * Perform document checkout - * Creates a checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setDocumentCheckout(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setDocumentCheckoutWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Perform document checkout - * Creates a checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setDocumentCheckoutWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentCheckoutValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Perform document checkout (asynchronously) - * Creates a checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentCheckoutAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentCheckoutValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setDocumentCheckoutLegalHold - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentCheckoutLegalHoldCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/legalHold" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentCheckoutLegalHoldValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentCheckoutLegalHold(Async)"); - } - - return setDocumentCheckoutLegalHoldCall(documentId, siteId, _callback); - - } - - /** - * Perform document legal hold checkout - * Creates a legal hold checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setDocumentCheckoutLegalHold(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setDocumentCheckoutLegalHoldWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Perform document legal hold checkout - * Creates a legal hold checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setDocumentCheckoutLegalHoldWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Perform document legal hold checkout (asynchronously) - * Creates a legal hold checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentCheckoutLegalHoldAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setDocumentRestore - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentRestoreCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/restore" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setDocumentRestoreValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setDocumentRestore(Async)"); - } - - return setDocumentRestoreCall(documentId, siteId, _callback); - - } - - /** - * Restore soft deleted document - * Restores a soft deleted document - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return SetDocumentRestoreResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetDocumentRestoreResponse setDocumentRestore(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setDocumentRestoreWithHttpInfo(documentId, siteId); - return localVarResp.getData(); - } - - /** - * Restore soft deleted document - * Restores a soft deleted document - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetDocumentRestoreResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setDocumentRestoreWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setDocumentRestoreValidateBeforeCall(documentId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Restore soft deleted document (asynchronously) - * Restores a soft deleted document - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setDocumentRestoreAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setDocumentRestoreValidateBeforeCall(documentId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateDocument - * @param documentId Document Identifier (required) - * @param updateDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateDocumentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateDocumentRequest; - - // create path and map variables - String localVarPath = "/documents/{documentId}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling updateDocument(Async)"); - } - - // verify the required parameter 'updateDocumentRequest' is set - if (updateDocumentRequest == null) { - throw new ApiException("Missing the required parameter 'updateDocumentRequest' when calling updateDocument(Async)"); - } - - return updateDocumentCall(documentId, updateDocumentRequest, siteId, shareKey, _callback); - - } - - /** - * Update document - * Update a document's details, i.e., metadata If no content is specified, the endpoint will return a S3 Presigned that will allow for the uploading of Large document data. NOTE: - provided attributes will overwrite existing matching attribute keys in the document. Attributes not included in the request body will remain unchanged. - * @param documentId Document Identifier (required) - * @param updateDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return AddDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddDocumentResponse updateDocument(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - ApiResponse localVarResp = updateDocumentWithHttpInfo(documentId, updateDocumentRequest, siteId, shareKey); - return localVarResp.getData(); - } - - /** - * Update document - * Update a document's details, i.e., metadata If no content is specified, the endpoint will return a S3 Presigned that will allow for the uploading of Large document data. NOTE: - provided attributes will overwrite existing matching attribute keys in the document. Attributes not included in the request body will remain unchanged. - * @param documentId Document Identifier (required) - * @param updateDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @return ApiResponse<AddDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse updateDocumentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) throws ApiException { - okhttp3.Call localVarCall = updateDocumentValidateBeforeCall(documentId, updateDocumentRequest, siteId, shareKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update document (asynchronously) - * Update a document's details, i.e., metadata If no content is specified, the endpoint will return a S3 Presigned that will allow for the uploading of Large document data. NOTE: - provided attributes will overwrite existing matching attribute keys in the document. Attributes not included in the request body will remain unchanged. - * @param documentId Document Identifier (required) - * @param updateDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateDocumentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateDocumentValidateBeforeCall(documentId, updateDocumentRequest, siteId, shareKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call compressDocumentsValidateBeforeCall( + @javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentsCompressRequest' is set + if (documentsCompressRequest == null) { + throw new ApiException( + "Missing the required parameter 'documentsCompressRequest' when calling compressDocuments(Async)"); + } + + return compressDocumentsCall(documentsCompressRequest, siteId, _callback); + + } + + /** + * Compress multiple documents into a .zip file Compress documents into an .ZIP archive file, and + * returns a S3 presigned url for the location of the archive file. The operation is async and + * processing time depends on the number and size of documents included; a 404 status code is + * returned until the file is ready. + * + * @param documentsCompressRequest (required) + * @param siteId Site Identifier (optional) + * @return DocumentsCompressResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DocumentsCompressResponse compressDocuments( + @javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + compressDocumentsWithHttpInfo(documentsCompressRequest, siteId); + return localVarResp.getData(); + } + + /** + * Compress multiple documents into a .zip file Compress documents into an .ZIP archive file, and + * returns a S3 presigned url for the location of the archive file. The operation is async and + * processing time depends on the number and size of documents included; a 404 status code is + * returned until the file is ready. + * + * @param documentsCompressRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DocumentsCompressResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse compressDocumentsWithHttpInfo( + @javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + compressDocumentsValidateBeforeCall(documentsCompressRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Compress multiple documents into a .zip file (asynchronously) Compress documents into an .ZIP + * archive file, and returns a S3 presigned url for the location of the archive file. The + * operation is async and processing time depends on the number and size of documents included; a + * 404 status code is returned until the file is ready. + * + * @param documentsCompressRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call compressDocumentsAsync( + @javax.annotation.Nonnull DocumentsCompressRequest documentsCompressRequest, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + compressDocumentsValidateBeforeCall(documentsCompressRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteDocument + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param softDelete Whether to soft delete document (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (softDelete != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("softDelete", softDelete)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocument(Async)"); + } + + return deleteDocumentCall(documentId, siteId, softDelete, _callback); + + } + + /** + * Delete document Delete a document's details, i.e., metadata, contents, etc SoftDelete: The + * SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, + * etc from being retrieved from all API requests. The document can be permanently deleted by + * calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT + * /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the + * soft deleted documents. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param softDelete Whether to soft delete document (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteDocument(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete) + throws ApiException { + ApiResponse localVarResp = + deleteDocumentWithHttpInfo(documentId, siteId, softDelete); + return localVarResp.getData(); + } + + /** + * Delete document Delete a document's details, i.e., metadata, contents, etc SoftDelete: The + * SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, + * etc from being retrieved from all API requests. The document can be permanently deleted by + * calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT + * /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the + * soft deleted documents. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param softDelete Whether to soft delete document (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable Boolean softDelete) throws ApiException { + okhttp3.Call localVarCall = + deleteDocumentValidateBeforeCall(documentId, siteId, softDelete, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document (asynchronously) Delete a document's details, i.e., metadata, contents, etc + * SoftDelete: The SoftDelete parameter allows for the temporary removal of a document's + * metadata, attributes, etc from being retrieved from all API requests. The document can be + * permanently deleted by calling the DELETE /documents/{documentId} with softDelete=false or + * restored using the PUT /documents/{documentId}/restore. Only the GET + * /documents?deleted=true will return all the soft deleted documents. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param softDelete Whether to soft delete document (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Boolean softDelete, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteDocumentValidateBeforeCall(documentId, siteId, softDelete, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteDocumentCheckoutLegalHold + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentCheckoutLegalHoldCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/legalHold".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDocumentCheckoutLegalHoldValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deleteDocumentCheckoutLegalHold(Async)"); + } + + return deleteDocumentCheckoutLegalHoldCall(documentId, siteId, _callback); + + } + + /** + * Delete document legal hold checkout Removes a legal hold checkout for the document; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteDocumentCheckoutLegalHold(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + deleteDocumentCheckoutLegalHoldWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete document legal hold checkout Removes a legal hold checkout for the document; available + * as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteDocumentCheckoutLegalHoldWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = + deleteDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete document legal hold checkout (asynchronously) Removes a legal hold checkout for the + * document; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteDocumentCheckoutLegalHoldAsync( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deletePublishedDocumentContent + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deletePublishedDocumentContentCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/publications/{documentId}".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deletePublishedDocumentContentValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling deletePublishedDocumentContent(Async)"); + } + + return deletePublishedDocumentContentCall(documentId, siteId, _callback); + + } + + /** + * Delete published document's contents Delete a published document's contents. Certain + * content types, text/_*, application/json, and application/x-www-form-urlencoded. return the + * \"content\" field, while all other content types return a 'contentUrl' for + * retrieving the content. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deletePublishedDocumentContent(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + deletePublishedDocumentContentWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Delete published document's contents Delete a published document's contents. Certain + * content types, text/_*, application/json, and application/x-www-form-urlencoded. return the + * \"content\" field, while all other content types return a 'contentUrl' for + * retrieving the content. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deletePublishedDocumentContentWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = + deletePublishedDocumentContentValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete published document's contents (asynchronously) Delete a published document's + * contents. Certain content types, text/_*, application/json, and + * application/x-www-form-urlencoded. return the \"content\" field, while all other + * content types return a 'contentUrl' for retrieving the content. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deletePublishedDocumentContentAsync( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deletePublishedDocumentContentValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocument + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocument(Async)"); + } + + return getDocumentCall(documentId, siteId, shareKey, _callback); + + } + + /** + * Get document Retrieves a document's details, i.e., metadata + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentResponse getDocument(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + ApiResponse localVarResp = + getDocumentWithHttpInfo(documentId, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Get document Retrieves a document's details, i.e., metadata + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentValidateBeforeCall(documentId, siteId, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document (asynchronously) Retrieves a document's details, i.e., metadata + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentValidateBeforeCall(documentId, siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentContent + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * * Location -
+ *
+ */ + public okhttp3.Call getDocumentContentCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/content".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (versionKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("versionKey", versionKey)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentContentValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentContent(Async)"); + } + + return getDocumentContentCall(documentId, siteId, versionKey, shareKey, _callback); + + } + + /** + * Get document's contents Retrieves the content of the document with the specified + * `documentId`. - If the content is plain text and under 6 MB, the content will be + * returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. + * - For documents not in plain text format, pre-signed S3 URLs will be returned to download the + * content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint + * to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type + * of text/, application/json, application/x-www-form-urlencoded the content field will be + * returned. All other Content-Type, the contentUrl field will be returned, which is a S3 + * Presigned url. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentContentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * * Location -
+ *
+ */ + public GetDocumentContentResponse getDocumentContent(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, + @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = + getDocumentContentWithHttpInfo(documentId, siteId, versionKey, shareKey); + return localVarResp.getData(); + } + + /** + * Get document's contents Retrieves the content of the document with the specified + * `documentId`. - If the content is plain text and under 6 MB, the content will be + * returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. + * - For documents not in plain text format, pre-signed S3 URLs will be returned to download the + * content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint + * to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type + * of text/, application/json, application/x-www-form-urlencoded the content field will be + * returned. All other Content-Type, the contentUrl field will be returned, which is a S3 + * Presigned url. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentContentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * * Location -
+ *
+ */ + public ApiResponse getDocumentContentWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable String shareKey) + throws ApiException { + okhttp3.Call localVarCall = + getDocumentContentValidateBeforeCall(documentId, siteId, versionKey, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document's contents (asynchronously) Retrieves the content of the document with the + * specified `documentId`. - If the content is plain text and under 6 MB, the content + * will be returned directly. - If the content is plain text but exceeds 6 MB, an error will be + * returned. - For documents not in plain text format, pre-signed S3 URLs will be returned to + * download the content from S3. It is recommended to use the + * `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for downloading + * the content. If the document has a Content-Type of text/, application/json, + * application/x-www-form-urlencoded the content field will be returned. All other Content-Type, + * the contentUrl field will be returned, which is a S3 Presigned url. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * * Location -
+ *
+ */ + public okhttp3.Call getDocumentContentAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, + @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentContentValidateBeforeCall(documentId, siteId, versionKey, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentIdUpload + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentIdUploadCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, + @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/upload".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (checksumType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksumType", checksumType)); + } + + if (checksum != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksum", checksum)); + } + + if (contentLength != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); + } + + if (duration != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentIdUploadValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, + @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentIdUpload(Async)"); + } + + return getDocumentIdUploadCall(documentId, siteId, checksumType, checksum, contentLength, + duration, shareKey, _callback); + + } + + /** + * Get url to update large document Returns a URL that can be used to upload documents for a + * specific documentId; this endpoint is required in order to add content that is larger than 5 + * MB. If versions are enabled, this will create a new version of the document. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentUrlResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentUrlResponse getDocumentIdUpload(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, + @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) + throws ApiException { + ApiResponse localVarResp = getDocumentIdUploadWithHttpInfo(documentId, + siteId, checksumType, checksum, contentLength, duration, shareKey); + return localVarResp.getData(); + } + + /** + * Get url to update large document Returns a URL that can be used to upload documents for a + * specific documentId; this endpoint is required in order to add content that is larger than 5 + * MB. If versions are enabled, this will create a new version of the document. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentUrlResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentIdUploadWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, + @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, + @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentIdUploadValidateBeforeCall(documentId, siteId, + checksumType, checksum, contentLength, duration, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get url to update large document (asynchronously) Returns a URL that can be used to upload + * documents for a specific documentId; this endpoint is required in order to add content that is + * larger than 5 MB. If versions are enabled, this will create a new version of the document. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentIdUploadAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, + @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentIdUploadValidateBeforeCall(documentId, siteId, + checksumType, checksum, contentLength, duration, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentSyncs + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentSyncsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/syncs".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentSyncsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentSyncs(Async)"); } + + return getDocumentSyncsCall(documentId, siteId, limit, shareKey, _callback); + + } + + /** + * Get document syncs Retrieve the document syncs with external services status + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @return GetDocumentSyncResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentSyncResponse getDocumentSyncs(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey) throws ApiException { + ApiResponse localVarResp = + getDocumentSyncsWithHttpInfo(documentId, siteId, limit, shareKey); + return localVarResp.getData(); + } + + /** + * Get document syncs Retrieve the document syncs with external services status + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentSyncResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentSyncsWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String shareKey) + throws ApiException { + okhttp3.Call localVarCall = + getDocumentSyncsValidateBeforeCall(documentId, siteId, limit, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document syncs (asynchronously) Retrieve the document syncs with external services status + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentSyncsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentSyncsValidateBeforeCall(documentId, siteId, limit, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentUpload + * + * @param path The upload file's path (optional) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentUploadCall(@javax.annotation.Nullable String path, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, + @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/upload"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (checksumType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksumType", checksumType)); + } + + if (checksum != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("checksum", checksum)); + } + + if (contentLength != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("contentLength", contentLength)); + } + + if (duration != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentUploadValidateBeforeCall(@javax.annotation.Nullable String path, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, + @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + return getDocumentUploadCall(path, siteId, checksumType, checksum, contentLength, duration, + shareKey, _callback); + + } + + /** + * Get url to add large document Returns a URL that can be used to upload document content and + * create a new document; this endpoint (whether GET or POST) is required in order to add content + * that is larger than 5 MB + * + * @param path The upload file's path (optional) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return GetDocumentUrlResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentUrlResponse getDocumentUpload(@javax.annotation.Nullable String path, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, + @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey) + throws ApiException { + ApiResponse localVarResp = getDocumentUploadWithHttpInfo(path, siteId, + checksumType, checksum, contentLength, duration, shareKey); + return localVarResp.getData(); + } + + /** + * Get url to add large document Returns a URL that can be used to upload document content and + * create a new document; this endpoint (whether GET or POST) is required in order to add content + * that is larger than 5 MB + * + * @param path The upload file's path (optional) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<GetDocumentUrlResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentUploadWithHttpInfo( + @javax.annotation.Nullable String path, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String checksumType, @javax.annotation.Nullable String checksum, + @javax.annotation.Nullable Integer contentLength, @javax.annotation.Nullable Integer duration, + @javax.annotation.Nullable String shareKey) throws ApiException { + okhttp3.Call localVarCall = getDocumentUploadValidateBeforeCall(path, siteId, checksumType, + checksum, contentLength, duration, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get url to add large document (asynchronously) Returns a URL that can be used to upload + * document content and create a new document; this endpoint (whether GET or POST) is required in + * order to add content that is larger than 5 MB + * + * @param path The upload file's path (optional) + * @param siteId Site Identifier (optional) + * @param checksumType Checksum Type (optional) + * @param checksum Checksum value (optional) + * @param contentLength Indicates the size of the entity-body (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentUploadAsync(@javax.annotation.Nullable String path, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String checksumType, + @javax.annotation.Nullable String checksum, @javax.annotation.Nullable Integer contentLength, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentUploadValidateBeforeCall(path, siteId, checksumType, + checksum, contentLength, duration, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocumentUrl + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param inline Set the Content-Disposition to inline (optional, default to false) + * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN + * permissions) (optional, default to false) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentUrlCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/url".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (versionKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("versionKey", versionKey)); + } + + if (duration != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration", duration)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + if (inline != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("inline", inline)); + } + + if (bypassWatermark != null) { + localVarQueryParams + .addAll(localVarApiClient.parameterToPair("bypassWatermark", bypassWatermark)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentUrlValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentUrl(Async)"); + } + + return getDocumentUrlCall(documentId, siteId, versionKey, duration, shareKey, inline, + bypassWatermark, _callback); + + } + + /** + * Get document content url Returns a URL for the document's contents; this URL will expire + * (the default is 48 hours) + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param inline Set the Content-Disposition to inline (optional, default to false) + * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN + * permissions) (optional, default to false) + * @return GetDocumentUrlResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentUrlResponse getDocumentUrl(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark) + throws ApiException { + ApiResponse localVarResp = getDocumentUrlWithHttpInfo(documentId, + siteId, versionKey, duration, shareKey, inline, bypassWatermark); + return localVarResp.getData(); + } + + /** + * Get document content url Returns a URL for the document's contents; this URL will expire + * (the default is 48 hours) + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param inline Set the Content-Disposition to inline (optional, default to false) + * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN + * permissions) (optional, default to false) + * @return ApiResponse<GetDocumentUrlResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentUrlWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String versionKey, @javax.annotation.Nullable Integer duration, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Boolean inline, + @javax.annotation.Nullable Boolean bypassWatermark) throws ApiException { + okhttp3.Call localVarCall = getDocumentUrlValidateBeforeCall(documentId, siteId, versionKey, + duration, shareKey, inline, bypassWatermark, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get document content url (asynchronously) Returns a URL for the document's contents; this + * URL will expire (the default is 48 hours) + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param versionKey Version Key (version key required URL encoding) (optional) + * @param duration Indicates the number of hours request is valid for (optional) + * @param shareKey Share Identifier (optional) + * @param inline Set the Content-Disposition to inline (optional, default to false) + * @param bypassWatermark Allow the by pass of watermark (only allowed by GOVERN / ADMIN + * permissions) (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentUrlAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String versionKey, + @javax.annotation.Nullable Integer duration, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable Boolean inline, @javax.annotation.Nullable Boolean bypassWatermark, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentUrlValidateBeforeCall(documentId, siteId, versionKey, + duration, shareKey, inline, bypassWatermark, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getDocuments + * + * @param siteId Site Identifier (optional) + * @param actionStatus Fetch documents with an action status (optional) + * @param syncStatus Fetch documents with an sync status (optional) + * @param deleted Fetch soft deleted documents (optional) + * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) + * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentsCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, + @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, + @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (actionStatus != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("actionStatus", actionStatus)); + } + + if (syncStatus != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("syncStatus", syncStatus)); + } + + if (deleted != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("deleted", deleted)); + } + + if (date != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("date", date)); + } + + if (tz != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tz", tz)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentsValidateBeforeCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, + @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, + @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + return getDocumentsCall(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, + limit, _callback); + + } + + /** + * Get Documents listing Returns a list of the most recent documents added, ordered by inserted, + * descending + * + * @param siteId Site Identifier (optional) + * @param actionStatus Fetch documents with an action status (optional) + * @param syncStatus Fetch documents with an sync status (optional) + * @param deleted Fetch soft deleted documents (optional) + * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) + * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetDocumentsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetDocumentsResponse getDocuments(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, + @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, + @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = getDocumentsWithHttpInfo(siteId, actionStatus, + syncStatus, deleted, date, tz, next, previous, limit); + return localVarResp.getData(); + } + + /** + * Get Documents listing Returns a list of the most recent documents added, ordered by inserted, + * descending + * + * @param siteId Site Identifier (optional) + * @param actionStatus Fetch documents with an action status (optional) + * @param syncStatus Fetch documents with an sync status (optional) + * @param deleted Fetch soft deleted documents (optional) + * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) + * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetDocumentsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentsWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, + @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, + @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getDocumentsValidateBeforeCall(siteId, actionStatus, syncStatus, + deleted, date, tz, next, previous, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Documents listing (asynchronously) Returns a list of the most recent documents added, + * ordered by inserted, descending + * + * @param siteId Site Identifier (optional) + * @param actionStatus Fetch documents with an action status (optional) + * @param syncStatus Fetch documents with an sync status (optional) + * @param deleted Fetch soft deleted documents (optional) + * @param date Fetch documents inserted on a certain date (yyyy-MM-dd) (optional) + * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentsAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, + @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, + @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDocumentsValidateBeforeCall(siteId, actionStatus, syncStatus, + deleted, date, tz, next, previous, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getPublishedDocumentContent + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
307Temporary Redirect* Location -
+ *
+ */ + public okhttp3.Call getPublishedDocumentContentCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/publications/{documentId}".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getPublishedDocumentContentValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getPublishedDocumentContent(Async)"); + } + + return getPublishedDocumentContentCall(documentId, siteId, _callback); + + } + + /** + * Get published document's contents Get a published document's contents. Certain content + * types, text/_*, application/json, and application/x-www-form-urlencoded. return the + * \"content\" field, while all other content types return a 'contentUrl' for + * retrieving the content. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
307Temporary Redirect* Location -
+ *
+ */ + public void getPublishedDocumentContent(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + getPublishedDocumentContentWithHttpInfo(documentId, siteId); + } + + /** + * Get published document's contents Get a published document's contents. Certain content + * types, text/_*, application/json, and application/x-www-form-urlencoded. return the + * \"content\" field, while all other content types return a 'contentUrl' for + * retrieving the content. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
307Temporary Redirect* Location -
+ *
+ */ + public ApiResponse getPublishedDocumentContentWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = + getPublishedDocumentContentValidateBeforeCall(documentId, siteId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Get published document's contents (asynchronously) Get a published document's contents. + * Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return + * the \"content\" field, while all other content types return a 'contentUrl' + * for retrieving the content. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
307Temporary Redirect* Location -
+ *
+ */ + public okhttp3.Call getPublishedDocumentContentAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + getPublishedDocumentContentValidateBeforeCall(documentId, siteId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + + /** + * Build call for purgeDocument + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call purgeDocumentCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/purge".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call purgeDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling purgeDocument(Async)"); + } + + return purgeDocumentCall(documentId, siteId, _callback); + + } + + /** + * Purge document Remove all objects from the S3 bucket, including previous versions and current + * version, and should remove all metadata as well, so that no trace of the document exists + * outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse purgeDocument(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = purgeDocumentWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Purge document Remove all objects from the S3 bucket, including previous versions and current + * version, and should remove all metadata as well, so that no trace of the document exists + * outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse purgeDocumentWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = purgeDocumentValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Purge document (asynchronously) Remove all objects from the S3 bucket, including previous + * versions and current version, and should remove all metadata as well, so that no trace of the + * document exists outside of the audit logs and any backups. Can only be called be ADMIN or + * GOVERN. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call purgeDocumentAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = purgeDocumentValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentCheckout + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentCheckoutCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/checkout".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentCheckoutValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentCheckout(Async)"); + } + + return setDocumentCheckoutCall(documentId, siteId, _callback); + + } + + /** + * Perform document checkout Creates a checkout for the document. Fails with **409 Conflict** if + * the document is already checkedout by another user; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setDocumentCheckout(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = setDocumentCheckoutWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Perform document checkout Creates a checkout for the document. Fails with **409 Conflict** if + * the document is already checkedout by another user; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setDocumentCheckoutWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = setDocumentCheckoutValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Perform document checkout (asynchronously) Creates a checkout for the document. Fails with + * **409 Conflict** if the document is already checkedout by another user; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentCheckoutAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + setDocumentCheckoutValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentCheckoutLegalHold + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentCheckoutLegalHoldCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/legalHold".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentCheckoutLegalHoldValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentCheckoutLegalHold(Async)"); + } + + return setDocumentCheckoutLegalHoldCall(documentId, siteId, _callback); + + } + + /** + * Perform document legal hold checkout Creates a legal hold checkout for the document. Fails with + * **409 Conflict** if the document is already checkedout by another user; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setDocumentCheckoutLegalHold(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + setDocumentCheckoutLegalHoldWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Perform document legal hold checkout Creates a legal hold checkout for the document. Fails with + * **409 Conflict** if the document is already checkedout by another user; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setDocumentCheckoutLegalHoldWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = + setDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Perform document legal hold checkout (asynchronously) Creates a legal hold checkout for the + * document. Fails with **409 Conflict** if the document is already checkedout by another user; + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentCheckoutLegalHoldAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + setDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setDocumentRestore + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentRestoreCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/restore".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setDocumentRestoreValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setDocumentRestore(Async)"); + } + + return setDocumentRestoreCall(documentId, siteId, _callback); + + } + + /** + * Restore soft deleted document Restores a soft deleted document + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return SetDocumentRestoreResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetDocumentRestoreResponse setDocumentRestore(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + setDocumentRestoreWithHttpInfo(documentId, siteId); + return localVarResp.getData(); + } + + /** + * Restore soft deleted document Restores a soft deleted document + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetDocumentRestoreResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setDocumentRestoreWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = setDocumentRestoreValidateBeforeCall(documentId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Restore soft deleted document (asynchronously) Restores a soft deleted document + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setDocumentRestoreAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setDocumentRestoreValidateBeforeCall(documentId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateDocument + * + * @param documentId Document Identifier (required) + * @param updateDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateDocumentCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateDocumentRequest; + + // create path and map variables + String localVarPath = "/documents/{documentId}".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling updateDocument(Async)"); + } + + // verify the required parameter 'updateDocumentRequest' is set + if (updateDocumentRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateDocumentRequest' when calling updateDocument(Async)"); + } + + return updateDocumentCall(documentId, updateDocumentRequest, siteId, shareKey, _callback); + + } + + /** + * Update document Update a document's details, i.e., metadata If no content is specified, the + * endpoint will return a S3 Presigned that will allow for the uploading of Large document data. + * NOTE: - provided attributes will overwrite existing matching attribute keys in the document. + * Attributes not included in the request body will remain unchanged. + * + * @param documentId Document Identifier (required) + * @param updateDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return AddDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddDocumentResponse updateDocument(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + ApiResponse localVarResp = + updateDocumentWithHttpInfo(documentId, updateDocumentRequest, siteId, shareKey); + return localVarResp.getData(); + } + + /** + * Update document Update a document's details, i.e., metadata If no content is specified, the + * endpoint will return a S3 Presigned that will allow for the uploading of Large document data. + * NOTE: - provided attributes will overwrite existing matching attribute keys in the document. + * Attributes not included in the request body will remain unchanged. + * + * @param documentId Document Identifier (required) + * @param updateDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @return ApiResponse<AddDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse updateDocumentWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey) + throws ApiException { + okhttp3.Call localVarCall = + updateDocumentValidateBeforeCall(documentId, updateDocumentRequest, siteId, shareKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update document (asynchronously) Update a document's details, i.e., metadata If no content + * is specified, the endpoint will return a S3 Presigned that will allow for the uploading of + * Large document data. NOTE: - provided attributes will overwrite existing matching attribute + * keys in the document. Attributes not included in the request body will remain unchanged. + * + * @param documentId Document Identifier (required) + * @param updateDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateDocumentAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull UpdateDocumentRequest updateDocumentRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateDocumentValidateBeforeCall(documentId, updateDocumentRequest, + siteId, shareKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/ESignatureApi.java b/src/main/java/com/formkiq/client/api/ESignatureApi.java index c9a96f496..5ddedceb0 100644 --- a/src/main/java/com/formkiq/client/api/ESignatureApi.java +++ b/src/main/java/com/formkiq/client/api/ESignatureApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -41,465 +48,691 @@ import java.util.Map; public class ESignatureApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public ESignatureApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ESignatureApi() { + this(Configuration.getDefaultApiClient()); + } + + public ESignatureApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addDocusignEnvelopes + * + * @param documentId Document Identifier (required) + * @param addDocusignEnvelopesRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocusignEnvelopesCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public ESignatureApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addDocusignEnvelopesRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/esignature/docusign/{documentId}/envelopes" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocusignEnvelopesValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocusignEnvelopes(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + // verify the required parameter 'addDocusignEnvelopesRequest' is set + if (addDocusignEnvelopesRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocusignEnvelopesRequest' when calling addDocusignEnvelopes(Async)"); } - /** - * Build call for addDocusignEnvelopes - * @param documentId Document Identifier (required) - * @param addDocusignEnvelopesRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocusignEnvelopesCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocusignEnvelopesRequest; - - // create path and map variables - String localVarPath = "/esignature/docusign/{documentId}/envelopes" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addDocusignEnvelopesCall(documentId, addDocusignEnvelopesRequest, siteId, _callback); + + } + + /** + * Create Docusign Envelope request DocuSign create Docusign Envelope request; available as an + * Add-On Module + * + * @param documentId Document Identifier (required) + * @param addDocusignEnvelopesRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocusignEnvelopesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddDocusignEnvelopesResponse addDocusignEnvelopes( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addDocusignEnvelopesWithHttpInfo(documentId, addDocusignEnvelopesRequest, siteId); + return localVarResp.getData(); + } + + /** + * Create Docusign Envelope request DocuSign create Docusign Envelope request; available as an + * Add-On Module + * + * @param documentId Document Identifier (required) + * @param addDocusignEnvelopesRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocusignEnvelopesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addDocusignEnvelopesWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocusignEnvelopesValidateBeforeCall(documentId, + addDocusignEnvelopesRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Docusign Envelope request (asynchronously) DocuSign create Docusign Envelope request; + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param addDocusignEnvelopesRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocusignEnvelopesAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocusignEnvelopesValidateBeforeCall(documentId, + addDocusignEnvelopesRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addDocusignRecipientView + * + * @param documentId Document Identifier (required) + * @param envelopeId Docusign Envelope Id (required) + * @param addDocusignRecipientViewRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocusignRecipientViewCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String envelopeId, + @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocusignEnvelopesValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocusignEnvelopes(Async)"); - } + Object localVarPostBody = addDocusignRecipientViewRequest; - // verify the required parameter 'addDocusignEnvelopesRequest' is set - if (addDocusignEnvelopesRequest == null) { - throw new ApiException("Missing the required parameter 'addDocusignEnvelopesRequest' when calling addDocusignEnvelopes(Async)"); - } + // create path and map variables + String localVarPath = "/esignature/docusign/{documentId}/envelopes/{envelopeId}/views/recipient" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) + .replace("{" + "envelopeId" + "}", localVarApiClient.escapeString(envelopeId.toString())); - return addDocusignEnvelopesCall(documentId, addDocusignEnvelopesRequest, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Create Docusign Envelope request - * DocuSign create Docusign Envelope request; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addDocusignEnvelopesRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocusignEnvelopesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddDocusignEnvelopesResponse addDocusignEnvelopes(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addDocusignEnvelopesWithHttpInfo(documentId, addDocusignEnvelopesRequest, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Create Docusign Envelope request - * DocuSign create Docusign Envelope request; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addDocusignEnvelopesRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocusignEnvelopesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addDocusignEnvelopesWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocusignEnvelopesValidateBeforeCall(documentId, addDocusignEnvelopesRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Create Docusign Envelope request (asynchronously) - * DocuSign create Docusign Envelope request; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addDocusignEnvelopesRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocusignEnvelopesAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddDocusignEnvelopesRequest addDocusignEnvelopesRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocusignEnvelopesValidateBeforeCall(documentId, addDocusignEnvelopesRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addDocusignRecipientViewValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, + @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addDocusignRecipientView(Async)"); } - /** - * Build call for addDocusignRecipientView - * @param documentId Document Identifier (required) - * @param envelopeId Docusign Envelope Id (required) - * @param addDocusignRecipientViewRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocusignRecipientViewCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocusignRecipientViewRequest; - - // create path and map variables - String localVarPath = "/esignature/docusign/{documentId}/envelopes/{envelopeId}/views/recipient" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())) - .replace("{" + "envelopeId" + "}", localVarApiClient.escapeString(envelopeId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addDocusignRecipientViewValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addDocusignRecipientView(Async)"); - } - - // verify the required parameter 'envelopeId' is set - if (envelopeId == null) { - throw new ApiException("Missing the required parameter 'envelopeId' when calling addDocusignRecipientView(Async)"); - } - - // verify the required parameter 'addDocusignRecipientViewRequest' is set - if (addDocusignRecipientViewRequest == null) { - throw new ApiException("Missing the required parameter 'addDocusignRecipientViewRequest' when calling addDocusignRecipientView(Async)"); - } - - return addDocusignRecipientViewCall(documentId, envelopeId, addDocusignRecipientViewRequest, siteId, _callback); + // verify the required parameter 'envelopeId' is set + if (envelopeId == null) { + throw new ApiException( + "Missing the required parameter 'envelopeId' when calling addDocusignRecipientView(Async)"); } - /** - * Create Docusign Recipient View request - * DocuSign create Docusign Recipient View request; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param envelopeId Docusign Envelope Id (required) - * @param addDocusignRecipientViewRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocusignRecipientViewResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddDocusignRecipientViewResponse addDocusignRecipientView(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addDocusignRecipientViewWithHttpInfo(documentId, envelopeId, addDocusignRecipientViewRequest, siteId); - return localVarResp.getData(); + // verify the required parameter 'addDocusignRecipientViewRequest' is set + if (addDocusignRecipientViewRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocusignRecipientViewRequest' when calling addDocusignRecipientView(Async)"); } - /** - * Create Docusign Recipient View request - * DocuSign create Docusign Recipient View request; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param envelopeId Docusign Envelope Id (required) - * @param addDocusignRecipientViewRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocusignRecipientViewResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addDocusignRecipientViewWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addDocusignRecipientViewValidateBeforeCall(documentId, envelopeId, addDocusignRecipientViewRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + return addDocusignRecipientViewCall(documentId, envelopeId, addDocusignRecipientViewRequest, + siteId, _callback); + + } + + /** + * Create Docusign Recipient View request DocuSign create Docusign Recipient View request; + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param envelopeId Docusign Envelope Id (required) + * @param addDocusignRecipientViewRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocusignRecipientViewResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddDocusignRecipientViewResponse addDocusignRecipientView( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, + @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addDocusignRecipientViewWithHttpInfo(documentId, envelopeId, + addDocusignRecipientViewRequest, siteId); + return localVarResp.getData(); + } + + /** + * Create Docusign Recipient View request DocuSign create Docusign Recipient View request; + * available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param envelopeId Docusign Envelope Id (required) + * @param addDocusignRecipientViewRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocusignRecipientViewResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addDocusignRecipientViewWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, + @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addDocusignRecipientViewValidateBeforeCall(documentId, envelopeId, + addDocusignRecipientViewRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Docusign Recipient View request (asynchronously) DocuSign create Docusign Recipient View + * request; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param envelopeId Docusign Envelope Id (required) + * @param addDocusignRecipientViewRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addDocusignRecipientViewAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull String envelopeId, + @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addDocusignRecipientViewValidateBeforeCall(documentId, envelopeId, + addDocusignRecipientViewRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addEsignatureDocusignEvents + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addEsignatureDocusignEventsCall(final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Create Docusign Recipient View request (asynchronously) - * DocuSign create Docusign Recipient View request; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param envelopeId Docusign Envelope Id (required) - * @param addDocusignRecipientViewRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addDocusignRecipientViewAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull String envelopeId, @javax.annotation.Nonnull AddDocusignRecipientViewRequest addDocusignRecipientViewRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addDocusignRecipientViewValidateBeforeCall(documentId, envelopeId, addDocusignRecipientViewRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addEsignatureDocusignEvents - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addEsignatureDocusignEventsCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/esignature/docusign/events"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } + Object localVarPostBody = null; - @SuppressWarnings("rawtypes") - private okhttp3.Call addEsignatureDocusignEventsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return addEsignatureDocusignEventsCall(_callback); + // create path and map variables + String localVarPath = "/esignature/docusign/events"; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Add E-signature event - * DocuSign callback URL handler; available as an Add-On Module - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddResponse addEsignatureDocusignEvents() throws ApiException { - ApiResponse localVarResp = addEsignatureDocusignEventsWithHttpInfo(); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add E-signature event - * DocuSign callback URL handler; available as an Add-On Module - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addEsignatureDocusignEventsWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = addEsignatureDocusignEventsValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add E-signature event (asynchronously) - * DocuSign callback URL handler; available as an Add-On Module - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addEsignatureDocusignEventsAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addEsignatureDocusignEventsValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addEsignatureDocusignEventsValidateBeforeCall(final ApiCallback _callback) + throws ApiException { + return addEsignatureDocusignEventsCall(_callback); + + } + + /** + * Add E-signature event DocuSign callback URL handler; available as an Add-On Module + * + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddResponse addEsignatureDocusignEvents() throws ApiException { + ApiResponse localVarResp = addEsignatureDocusignEventsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Add E-signature event DocuSign callback URL handler; available as an Add-On Module + * + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addEsignatureDocusignEventsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = addEsignatureDocusignEventsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add E-signature event (asynchronously) DocuSign callback URL handler; available as an Add-On + * Module + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addEsignatureDocusignEventsAsync(final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addEsignatureDocusignEventsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/EntityApi.java b/src/main/java/com/formkiq/client/api/EntityApi.java index 5d1668388..8c80fe548 100644 --- a/src/main/java/com/formkiq/client/api/EntityApi.java +++ b/src/main/java/com/formkiq/client/api/EntityApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -47,1387 +54,2020 @@ import java.util.Map; public class EntityApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public EntityApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public EntityApi() { + this(Configuration.getDefaultApiClient()); + } + + public EntityApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addEntity + * + * @param entityTypeId EntityType Identifier (required) + * @param addEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addEntityCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull AddEntityRequest addEntityRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public EntityApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addEntityRequest; + + // create path and map variables + String localVarPath = "/entities/{entityTypeId}".replace("{" + "entityTypeId" + "}", + localVarApiClient.escapeString(entityTypeId.toString())); - public ApiClient getApiClient() { - return localVarApiClient; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull AddEntityRequest addEntityRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException( + "Missing the required parameter 'entityTypeId' when calling addEntity(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + // verify the required parameter 'addEntityRequest' is set + if (addEntityRequest == null) { + throw new ApiException( + "Missing the required parameter 'addEntityRequest' when calling addEntity(Async)"); } - /** - * Build call for addEntity - * @param entityTypeId EntityType Identifier (required) - * @param addEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addEntityCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull AddEntityRequest addEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addEntityRequest; - - // create path and map variables - String localVarPath = "/entities/{entityTypeId}" - .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addEntityCall(entityTypeId, addEntityRequest, siteId, namespace, _callback); + + } + + /** + * Add New Entity Creates a Entity + * + * @param entityTypeId EntityType Identifier (required) + * @param addEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return AddEntityResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddEntityResponse addEntity(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull AddEntityRequest addEntityRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) + throws ApiException { + ApiResponse localVarResp = + addEntityWithHttpInfo(entityTypeId, addEntityRequest, siteId, namespace); + return localVarResp.getData(); + } + + /** + * Add New Entity Creates a Entity + * + * @param entityTypeId EntityType Identifier (required) + * @param addEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return ApiResponse<AddEntityResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addEntityWithHttpInfo( + @javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull AddEntityRequest addEntityRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) + throws ApiException { + okhttp3.Call localVarCall = + addEntityValidateBeforeCall(entityTypeId, addEntityRequest, siteId, namespace, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New Entity (asynchronously) Creates a Entity + * + * @param entityTypeId EntityType Identifier (required) + * @param addEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addEntityAsync(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull AddEntityRequest addEntityRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + addEntityValidateBeforeCall(entityTypeId, addEntityRequest, siteId, namespace, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addEntityType + * + * @param addEntityTypeRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addEntityTypeCall( + @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull AddEntityRequest addEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException("Missing the required parameter 'entityTypeId' when calling addEntity(Async)"); - } + Object localVarPostBody = addEntityTypeRequest; - // verify the required parameter 'addEntityRequest' is set - if (addEntityRequest == null) { - throw new ApiException("Missing the required parameter 'addEntityRequest' when calling addEntity(Async)"); - } + // create path and map variables + String localVarPath = "/entityTypes"; - return addEntityCall(entityTypeId, addEntityRequest, siteId, namespace, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add New Entity - * Creates a Entity - * @param entityTypeId EntityType Identifier (required) - * @param addEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return AddEntityResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddEntityResponse addEntity(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull AddEntityRequest addEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { - ApiResponse localVarResp = addEntityWithHttpInfo(entityTypeId, addEntityRequest, siteId, namespace); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add New Entity - * Creates a Entity - * @param entityTypeId EntityType Identifier (required) - * @param addEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return ApiResponse<AddEntityResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addEntityWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull AddEntityRequest addEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { - okhttp3.Call localVarCall = addEntityValidateBeforeCall(entityTypeId, addEntityRequest, siteId, namespace, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add New Entity (asynchronously) - * Creates a Entity - * @param entityTypeId EntityType Identifier (required) - * @param addEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addEntityAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull AddEntityRequest addEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addEntityValidateBeforeCall(entityTypeId, addEntityRequest, siteId, namespace, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addEntityTypeValidateBeforeCall( + @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addEntityTypeRequest' is set + if (addEntityTypeRequest == null) { + throw new ApiException( + "Missing the required parameter 'addEntityTypeRequest' when calling addEntityType(Async)"); } - /** - * Build call for addEntityType - * @param addEntityTypeRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addEntityTypeCall(@javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addEntityTypeRequest; - - // create path and map variables - String localVarPath = "/entityTypes"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return addEntityTypeCall(addEntityTypeRequest, siteId, _callback); + + } + + /** + * Add New EntityType Creates a Entity Type + * + * @param addEntityTypeRequest (required) + * @param siteId Site Identifier (optional) + * @return AddEntityTypeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddEntityTypeResponse addEntityType( + @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addEntityTypeWithHttpInfo(addEntityTypeRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add New EntityType Creates a Entity Type + * + * @param addEntityTypeRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddEntityTypeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addEntityTypeWithHttpInfo( + @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addEntityTypeValidateBeforeCall(addEntityTypeRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New EntityType (asynchronously) Creates a Entity Type + * + * @param addEntityTypeRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addEntityTypeAsync( + @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addEntityTypeValidateBeforeCall(addEntityTypeRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteEntity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteEntityCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addEntityTypeValidateBeforeCall(@javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addEntityTypeRequest' is set - if (addEntityTypeRequest == null) { - throw new ApiException("Missing the required parameter 'addEntityTypeRequest' when calling addEntityType(Async)"); - } + Object localVarPostBody = null; - return addEntityTypeCall(addEntityTypeRequest, siteId, _callback); + // create path and map variables + String localVarPath = "/entities/{entityTypeId}/{entityId}" + .replace("{" + "entityTypeId" + "}", + localVarApiClient.escapeString(entityTypeId.toString())) + .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add New EntityType - * Creates a Entity Type - * @param addEntityTypeRequest (required) - * @param siteId Site Identifier (optional) - * @return AddEntityTypeResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddEntityTypeResponse addEntityType(@javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addEntityTypeWithHttpInfo(addEntityTypeRequest, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add New EntityType - * Creates a Entity Type - * @param addEntityTypeRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddEntityTypeResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addEntityTypeWithHttpInfo(@javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addEntityTypeValidateBeforeCall(addEntityTypeRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add New EntityType (asynchronously) - * Creates a Entity Type - * @param addEntityTypeRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addEntityTypeAsync(@javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addEntityTypeValidateBeforeCall(addEntityTypeRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException( + "Missing the required parameter 'entityTypeId' when calling deleteEntity(Async)"); } - /** - * Build call for deleteEntity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteEntityCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/entities/{entityTypeId}/{entityId}" - .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())) - .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'entityId' is set + if (entityId == null) { + throw new ApiException( + "Missing the required parameter 'entityId' when calling deleteEntity(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException("Missing the required parameter 'entityTypeId' when calling deleteEntity(Async)"); - } + return deleteEntityCall(entityTypeId, entityId, siteId, _callback); + + } + + /** + * Deletes Entity Deletes Entity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteEntity(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + deleteEntityWithHttpInfo(entityTypeId, entityId, siteId); + return localVarResp.getData(); + } + + /** + * Deletes Entity Deletes Entity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteEntityWithHttpInfo( + @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + deleteEntityValidateBeforeCall(entityTypeId, entityId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes Entity (asynchronously) Deletes Entity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteEntityAsync(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteEntityValidateBeforeCall(entityTypeId, entityId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteEntityType + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteEntityTypeCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - // verify the required parameter 'entityId' is set - if (entityId == null) { - throw new ApiException("Missing the required parameter 'entityId' when calling deleteEntity(Async)"); - } + Object localVarPostBody = null; - return deleteEntityCall(entityTypeId, entityId, siteId, _callback); + // create path and map variables + String localVarPath = "/entityTypes/{entityTypeId}".replace("{" + "entityTypeId" + "}", + localVarApiClient.escapeString(entityTypeId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Deletes Entity - * Deletes Entity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteEntity(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteEntityWithHttpInfo(entityTypeId, entityId, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Deletes Entity - * Deletes Entity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteEntityWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteEntityValidateBeforeCall(entityTypeId, entityId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Deletes Entity (asynchronously) - * Deletes Entity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteEntityAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteEntityValidateBeforeCall(entityTypeId, entityId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteEntityTypeValidateBeforeCall( + @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException( + "Missing the required parameter 'entityTypeId' when calling deleteEntityType(Async)"); } - /** - * Build call for deleteEntityType - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteEntityTypeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/entityTypes/{entityTypeId}" - .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return deleteEntityTypeCall(entityTypeId, siteId, _callback); + + } + + /** + * Deletes Entity Type Deletes Entity Type + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteEntityType(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteEntityTypeWithHttpInfo(entityTypeId, siteId); + return localVarResp.getData(); + } + + /** + * Deletes Entity Type Deletes Entity Type + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteEntityTypeWithHttpInfo( + @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteEntityTypeValidateBeforeCall(entityTypeId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes Entity Type (asynchronously) Deletes Entity Type + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteEntityTypeAsync(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteEntityTypeValidateBeforeCall(entityTypeId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getEntities + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getEntitiesCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteEntityTypeValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException("Missing the required parameter 'entityTypeId' when calling deleteEntityType(Async)"); - } + Object localVarPostBody = null; - return deleteEntityTypeCall(entityTypeId, siteId, _callback); + // create path and map variables + String localVarPath = "/entities/{entityTypeId}".replace("{" + "entityTypeId" + "}", + localVarApiClient.escapeString(entityTypeId.toString())); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Deletes Entity Type - * Deletes Entity Type - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteEntityType(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteEntityTypeWithHttpInfo(entityTypeId, siteId); - return localVarResp.getData(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Deletes Entity Type - * Deletes Entity Type - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteEntityTypeWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteEntityTypeValidateBeforeCall(entityTypeId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); } - /** - * Deletes Entity Type (asynchronously) - * Deletes Entity Type - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteEntityTypeAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteEntityTypeValidateBeforeCall(entityTypeId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getEntities - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getEntitiesCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/entities/{entityTypeId}" - .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getEntitiesValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException("Missing the required parameter 'entityTypeId' when calling getEntities(Async)"); - } - - return getEntitiesCall(entityTypeId, siteId, namespace, next, limit, _callback); - + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Get Entities - * Returns a list of entities - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetEntitiesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetEntitiesResponse getEntities(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getEntitiesWithHttpInfo(entityTypeId, siteId, namespace, next, limit); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get Entities - * Returns a list of entities - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetEntitiesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getEntitiesWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getEntitiesValidateBeforeCall(entityTypeId, siteId, namespace, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get Entities (asynchronously) - * Returns a list of entities - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getEntitiesAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getEntitiesValidateBeforeCall(entityTypeId, siteId, namespace, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getEntitiesValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException( + "Missing the required parameter 'entityTypeId' when calling getEntities(Async)"); } - /** - * Build call for getEntity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getEntityCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/entities/{entityTypeId}/{entityId}" - .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())) - .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return getEntitiesCall(entityTypeId, siteId, namespace, next, limit, _callback); + + } + + /** + * Get Entities Returns a list of entities + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetEntitiesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetEntitiesResponse getEntities(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = + getEntitiesWithHttpInfo(entityTypeId, siteId, namespace, next, limit); + return localVarResp.getData(); + } + + /** + * Get Entities Returns a list of entities + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetEntitiesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getEntitiesWithHttpInfo( + @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = + getEntitiesValidateBeforeCall(entityTypeId, siteId, namespace, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Entities (asynchronously) Returns a list of entities + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getEntitiesAsync(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getEntitiesValidateBeforeCall(entityTypeId, siteId, namespace, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getEntity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getEntityCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call getEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException("Missing the required parameter 'entityTypeId' when calling getEntity(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'entityId' is set - if (entityId == null) { - throw new ApiException("Missing the required parameter 'entityId' when calling getEntity(Async)"); - } + // create path and map variables + String localVarPath = "/entities/{entityTypeId}/{entityId}" + .replace("{" + "entityTypeId" + "}", + localVarApiClient.escapeString(entityTypeId.toString())) + .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); - return getEntityCall(entityTypeId, entityId, siteId, namespace, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get Entity - * Returns a entity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return GetEntityResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetEntityResponse getEntity(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { - ApiResponse localVarResp = getEntityWithHttpInfo(entityTypeId, entityId, siteId, namespace); - return localVarResp.getData(); + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); } - /** - * Get Entity - * Returns a entity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return ApiResponse<GetEntityResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getEntityWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { - okhttp3.Call localVarCall = getEntityValidateBeforeCall(entityTypeId, entityId, siteId, namespace, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get Entity (asynchronously) - * Returns a entity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getEntityAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getEntityValidateBeforeCall(entityTypeId, entityId, siteId, namespace, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Build call for getEntityType - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getEntityTypeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/entityTypes/{entityTypeId}" - .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException( + "Missing the required parameter 'entityTypeId' when calling getEntity(Async)"); + } + + // verify the required parameter 'entityId' is set + if (entityId == null) { + throw new ApiException( + "Missing the required parameter 'entityId' when calling getEntity(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getEntityTypeValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException("Missing the required parameter 'entityTypeId' when calling getEntityType(Async)"); - } + return getEntityCall(entityTypeId, entityId, siteId, namespace, _callback); + + } + + /** + * Get Entity Returns a entity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return GetEntityResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetEntityResponse getEntity(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace) throws ApiException { + ApiResponse localVarResp = + getEntityWithHttpInfo(entityTypeId, entityId, siteId, namespace); + return localVarResp.getData(); + } + + /** + * Get Entity Returns a entity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return ApiResponse<GetEntityResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getEntityWithHttpInfo( + @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) + throws ApiException { + okhttp3.Call localVarCall = + getEntityValidateBeforeCall(entityTypeId, entityId, siteId, namespace, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Entity (asynchronously) Returns a entity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getEntityAsync(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + getEntityValidateBeforeCall(entityTypeId, entityId, siteId, namespace, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getEntityType + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getEntityTypeCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - return getEntityTypeCall(entityTypeId, siteId, namespace, _callback); + Object localVarPostBody = null; + // create path and map variables + String localVarPath = "/entityTypes/{entityTypeId}".replace("{" + "entityTypeId" + "}", + localVarApiClient.escapeString(entityTypeId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get EntityType - * Returns a entity type - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return GetEntityTypeResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetEntityTypeResponse getEntityType(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { - ApiResponse localVarResp = getEntityTypeWithHttpInfo(entityTypeId, siteId, namespace); - return localVarResp.getData(); + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); } - /** - * Get EntityType - * Returns a entity type - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return ApiResponse<GetEntityTypeResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getEntityTypeWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { - okhttp3.Call localVarCall = getEntityTypeValidateBeforeCall(entityTypeId, siteId, namespace, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get EntityType (asynchronously) - * Returns a entity type - * @param entityTypeId EntityType Identifier (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getEntityTypeAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getEntityTypeValidateBeforeCall(entityTypeId, siteId, namespace, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Build call for getEntityTypes - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getEntityTypesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/entityTypes"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getEntityTypeValidateBeforeCall( + @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException( + "Missing the required parameter 'entityTypeId' when calling getEntityType(Async)"); + } + + return getEntityTypeCall(entityTypeId, siteId, namespace, _callback); + + } + + /** + * Get EntityType Returns a entity type + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return GetEntityTypeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetEntityTypeResponse getEntityType(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) + throws ApiException { + ApiResponse localVarResp = + getEntityTypeWithHttpInfo(entityTypeId, siteId, namespace); + return localVarResp.getData(); + } + + /** + * Get EntityType Returns a entity type + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return ApiResponse<GetEntityTypeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getEntityTypeWithHttpInfo( + @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace) throws ApiException { + okhttp3.Call localVarCall = + getEntityTypeValidateBeforeCall(entityTypeId, siteId, namespace, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get EntityType (asynchronously) Returns a entity type + * + * @param entityTypeId EntityType Identifier (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getEntityTypeAsync(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getEntityTypeValidateBeforeCall(entityTypeId, siteId, namespace, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getEntityTypes + * + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getEntityTypesCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/entityTypes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getEntityTypesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - return getEntityTypesCall(siteId, namespace, next, limit, _callback); + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - /** - * Get EntityTypes - * Returns a list of entity types - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetEntityTypesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetEntityTypesResponse getEntityTypes(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getEntityTypesWithHttpInfo(siteId, namespace, next, limit); - return localVarResp.getData(); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Get EntityTypes - * Returns a list of entity types - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetEntityTypesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getEntityTypesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getEntityTypesValidateBeforeCall(siteId, namespace, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get EntityTypes (asynchronously) - * Returns a list of entity types - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getEntityTypesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getEntityTypesValidateBeforeCall(siteId, namespace, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Build call for updateEntity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param updateEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateEntityCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateEntityRequest; - - // create path and map variables - String localVarPath = "/entities/{entityTypeId}/{entityId}" - .replace("{" + "entityTypeId" + "}", localVarApiClient.escapeString(entityTypeId.toString())) - .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getEntityTypesValidateBeforeCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + return getEntityTypesCall(siteId, namespace, next, limit, _callback); + + } + + /** + * Get EntityTypes Returns a list of entity types + * + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetEntityTypesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetEntityTypesResponse getEntityTypes(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = + getEntityTypesWithHttpInfo(siteId, namespace, next, limit); + return localVarResp.getData(); + } + + /** + * Get EntityTypes Returns a list of entity types + * + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetEntityTypesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getEntityTypesWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + okhttp3.Call localVarCall = + getEntityTypesValidateBeforeCall(siteId, namespace, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get EntityTypes (asynchronously) Returns a list of entity types + * + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getEntityTypesAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + getEntityTypesValidateBeforeCall(siteId, namespace, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateEntity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param updateEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateEntityCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, + @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call updateEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'entityTypeId' is set - if (entityTypeId == null) { - throw new ApiException("Missing the required parameter 'entityTypeId' when calling updateEntity(Async)"); - } + Object localVarPostBody = updateEntityRequest; - // verify the required parameter 'entityId' is set - if (entityId == null) { - throw new ApiException("Missing the required parameter 'entityId' when calling updateEntity(Async)"); - } + // create path and map variables + String localVarPath = "/entities/{entityTypeId}/{entityId}" + .replace("{" + "entityTypeId" + "}", + localVarApiClient.escapeString(entityTypeId.toString())) + .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString())); - // verify the required parameter 'updateEntityRequest' is set - if (updateEntityRequest == null) { - throw new ApiException("Missing the required parameter 'updateEntityRequest' when calling updateEntity(Async)"); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - return updateEntityCall(entityTypeId, entityId, updateEntityRequest, siteId, namespace, _callback); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); } - /** - * Update Entity - * Updates a Entity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param updateEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return UpdateResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public UpdateResponse updateEntity(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { - ApiResponse localVarResp = updateEntityWithHttpInfo(entityTypeId, entityId, updateEntityRequest, siteId, namespace); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Update Entity - * Updates a Entity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param updateEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @return ApiResponse<UpdateResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse updateEntityWithHttpInfo(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) throws ApiException { - okhttp3.Call localVarCall = updateEntityValidateBeforeCall(entityTypeId, entityId, updateEntityRequest, siteId, namespace, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Update Entity (asynchronously) - * Updates a Entity - * @param entityTypeId EntityType Identifier (required) - * @param entityId Entity Identifier (required) - * @param updateEntityRequest (required) - * @param siteId Site Identifier (optional) - * @param namespace Namespace Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateEntityAsync(@javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateEntityValidateBeforeCall(entityTypeId, entityId, updateEntityRequest, siteId, namespace, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, + @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'entityTypeId' is set + if (entityTypeId == null) { + throw new ApiException( + "Missing the required parameter 'entityTypeId' when calling updateEntity(Async)"); } + + // verify the required parameter 'entityId' is set + if (entityId == null) { + throw new ApiException( + "Missing the required parameter 'entityId' when calling updateEntity(Async)"); + } + + // verify the required parameter 'updateEntityRequest' is set + if (updateEntityRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateEntityRequest' when calling updateEntity(Async)"); + } + + return updateEntityCall(entityTypeId, entityId, updateEntityRequest, siteId, namespace, + _callback); + + } + + /** + * Update Entity Updates a Entity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param updateEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return UpdateResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public UpdateResponse updateEntity(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, + @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) + throws ApiException { + ApiResponse localVarResp = + updateEntityWithHttpInfo(entityTypeId, entityId, updateEntityRequest, siteId, namespace); + return localVarResp.getData(); + } + + /** + * Update Entity Updates a Entity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param updateEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @return ApiResponse<UpdateResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse updateEntityWithHttpInfo( + @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId, + @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace) + throws ApiException { + okhttp3.Call localVarCall = updateEntityValidateBeforeCall(entityTypeId, entityId, + updateEntityRequest, siteId, namespace, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Entity (asynchronously) Updates a Entity + * + * @param entityTypeId EntityType Identifier (required) + * @param entityId Entity Identifier (required) + * @param updateEntityRequest (required) + * @param siteId Site Identifier (optional) + * @param namespace Namespace Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateEntityAsync(@javax.annotation.Nonnull String entityTypeId, + @javax.annotation.Nonnull String entityId, + @javax.annotation.Nonnull UpdateEntityRequest updateEntityRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateEntityValidateBeforeCall(entityTypeId, entityId, + updateEntityRequest, siteId, namespace, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/ExamineObjectsApi.java b/src/main/java/com/formkiq/client/api/ExamineObjectsApi.java index 0c5c9b500..1fb872946 100644 --- a/src/main/java/com/formkiq/client/api/ExamineObjectsApi.java +++ b/src/main/java/com/formkiq/client/api/ExamineObjectsApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -37,300 +44,414 @@ import java.util.Map; public class ExamineObjectsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public ExamineObjectsApi() { - this(Configuration.getDefaultApiClient()); - } - - public ExamineObjectsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ExamineObjectsApi() { + this(Configuration.getDefaultApiClient()); + } + + public ExamineObjectsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getExaminePdf + * + * @param id Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getExaminePdfCall(@javax.annotation.Nonnull String id, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public ApiClient getApiClient() { - return localVarApiClient; - } + Object localVarPostBody = null; - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } + // create path and map variables + String localVarPath = "/objects/examine/{id}/pdf".replace("{" + "id" + "}", + localVarApiClient.escapeString(id.toString())); - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public String getCustomBaseUrl() { - return localCustomBaseUrl; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Build call for getExaminePdf - * @param id Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getExaminePdfCall(@javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/objects/examine/{id}/pdf" - .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getExaminePdfValidateBeforeCall(@javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException("Missing the required parameter 'id' when calling getExaminePdf(Async)"); - } - - return getExaminePdfCall(id, siteId, _callback); - + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getExaminePdfValidateBeforeCall(@javax.annotation.Nonnull String id, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException( + "Missing the required parameter 'id' when calling getExaminePdf(Async)"); } - /** - * Add Examine Pdf - * Get PDF details File must have been uploaded previously using the GET /objects/examine/pdf API. - * @param id Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetExaminePdfResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetExaminePdfResponse getExaminePdf(@javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getExaminePdfWithHttpInfo(id, siteId); - return localVarResp.getData(); + return getExaminePdfCall(id, siteId, _callback); + + } + + /** + * Add Examine Pdf Get PDF details File must have been uploaded previously using the GET + * /objects/examine/pdf API. + * + * @param id Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetExaminePdfResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetExaminePdfResponse getExaminePdf(@javax.annotation.Nonnull String id, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getExaminePdfWithHttpInfo(id, siteId); + return localVarResp.getData(); + } + + /** + * Add Examine Pdf Get PDF details File must have been uploaded previously using the GET + * /objects/examine/pdf API. + * + * @param id Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetExaminePdfResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getExaminePdfWithHttpInfo( + @javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getExaminePdfValidateBeforeCall(id, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Examine Pdf (asynchronously) Get PDF details File must have been uploaded previously using + * the GET /objects/examine/pdf API. + * + * @param id Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getExaminePdfAsync(@javax.annotation.Nonnull String id, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getExaminePdfValidateBeforeCall(id, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getExaminePdfUrl + * + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getExaminePdfUrlCall(@javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Add Examine Pdf - * Get PDF details File must have been uploaded previously using the GET /objects/examine/pdf API. - * @param id Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetExaminePdfResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getExaminePdfWithHttpInfo(@javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getExaminePdfValidateBeforeCall(id, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } + Object localVarPostBody = null; - /** - * Add Examine Pdf (asynchronously) - * Get PDF details File must have been uploaded previously using the GET /objects/examine/pdf API. - * @param id Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getExaminePdfAsync(@javax.annotation.Nonnull String id, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getExaminePdfValidateBeforeCall(id, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getExaminePdfUrl - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getExaminePdfUrlCall(@javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/objects/examine/pdf"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } + // create path and map variables + String localVarPath = "/objects/examine/pdf"; - @SuppressWarnings("rawtypes") - private okhttp3.Call getExaminePdfUrlValidateBeforeCall(@javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - return getExaminePdfUrlCall(siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add Examine Pdf - * Get Signed URL for PDF Object Upload of a document to be examined by calling GET /objects/examine/{id}/pdf - * @param siteId Site Identifier (optional) - * @return GetExaminePdfUrlResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetExaminePdfUrlResponse getExaminePdfUrl(@javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getExaminePdfUrlWithHttpInfo(siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add Examine Pdf - * Get Signed URL for PDF Object Upload of a document to be examined by calling GET /objects/examine/{id}/pdf - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetExaminePdfUrlResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getExaminePdfUrlWithHttpInfo(@javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getExaminePdfUrlValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add Examine Pdf (asynchronously) - * Get Signed URL for PDF Object Upload of a document to be examined by calling GET /objects/examine/{id}/pdf - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getExaminePdfUrlAsync(@javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getExaminePdfUrlValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getExaminePdfUrlValidateBeforeCall(@javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + return getExaminePdfUrlCall(siteId, _callback); + + } + + /** + * Add Examine Pdf Get Signed URL for PDF Object Upload of a document to be examined by calling + * GET /objects/examine/{id}/pdf + * + * @param siteId Site Identifier (optional) + * @return GetExaminePdfUrlResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetExaminePdfUrlResponse getExaminePdfUrl(@javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = getExaminePdfUrlWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Add Examine Pdf Get Signed URL for PDF Object Upload of a document to be examined by calling + * GET /objects/examine/{id}/pdf + * + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetExaminePdfUrlResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getExaminePdfUrlWithHttpInfo( + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getExaminePdfUrlValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Examine Pdf (asynchronously) Get Signed URL for PDF Object Upload of a document to be + * examined by calling GET /objects/examine/{id}/pdf + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getExaminePdfUrlAsync(@javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getExaminePdfUrlValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/GoogleIntegrationApi.java b/src/main/java/com/formkiq/client/api/GoogleIntegrationApi.java index 80ab3586d..4d762ed4a 100644 --- a/src/main/java/com/formkiq/client/api/GoogleIntegrationApi.java +++ b/src/main/java/com/formkiq/client/api/GoogleIntegrationApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -38,189 +45,272 @@ import java.util.Map; public class GoogleIntegrationApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public GoogleIntegrationApi() { - this(Configuration.getDefaultApiClient()); - } - - public GoogleIntegrationApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public GoogleIntegrationApi() { + this(Configuration.getDefaultApiClient()); + } + + public GoogleIntegrationApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addGoogleDocumentExport + * + * @param documentId Document Identifier (required) + * @param addGoogleDocumentExportRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addGoogleDocumentExportCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public int getHostIndex() { - return localHostIndex; - } + Object localVarPostBody = addGoogleDocumentExportRequest; - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } + // create path and map variables + String localVarPath = "/integrations/google/drive/documents/{documentId}/export" + .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Build call for addGoogleDocumentExport - * @param documentId Document Identifier (required) - * @param addGoogleDocumentExportRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addGoogleDocumentExportCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addGoogleDocumentExportRequest; - - // create path and map variables - String localVarPath = "/integrations/google/drive/documents/{documentId}/export" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - @SuppressWarnings("rawtypes") - private okhttp3.Call addGoogleDocumentExportValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addGoogleDocumentExport(Async)"); - } - - // verify the required parameter 'addGoogleDocumentExportRequest' is set - if (addGoogleDocumentExportRequest == null) { - throw new ApiException("Missing the required parameter 'addGoogleDocumentExportRequest' when calling addGoogleDocumentExport(Async)"); - } - - return addGoogleDocumentExportCall(documentId, addGoogleDocumentExportRequest, siteId, _callback); - + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add Google Document Export - * Exports a Google Document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addGoogleDocumentExportRequest (required) - * @param siteId Site Identifier (optional) - * @return AddGoogleDocumentExportResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddGoogleDocumentExportResponse addGoogleDocumentExport(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addGoogleDocumentExportWithHttpInfo(documentId, addGoogleDocumentExportRequest, siteId); - return localVarResp.getData(); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addGoogleDocumentExportValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addGoogleDocumentExport(Async)"); } - /** - * Add Google Document Export - * Exports a Google Document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addGoogleDocumentExportRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddGoogleDocumentExportResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addGoogleDocumentExportWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addGoogleDocumentExportValidateBeforeCall(documentId, addGoogleDocumentExportRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + // verify the required parameter 'addGoogleDocumentExportRequest' is set + if (addGoogleDocumentExportRequest == null) { + throw new ApiException( + "Missing the required parameter 'addGoogleDocumentExportRequest' when calling addGoogleDocumentExport(Async)"); } - /** - * Add Google Document Export (asynchronously) - * Exports a Google Document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param addGoogleDocumentExportRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addGoogleDocumentExportAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addGoogleDocumentExportValidateBeforeCall(documentId, addGoogleDocumentExportRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + return addGoogleDocumentExportCall(documentId, addGoogleDocumentExportRequest, siteId, + _callback); + + } + + /** + * Add Google Document Export Exports a Google Document; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param addGoogleDocumentExportRequest (required) + * @param siteId Site Identifier (optional) + * @return AddGoogleDocumentExportResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddGoogleDocumentExportResponse addGoogleDocumentExport( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addGoogleDocumentExportWithHttpInfo(documentId, addGoogleDocumentExportRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add Google Document Export Exports a Google Document; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param addGoogleDocumentExportRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddGoogleDocumentExportResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addGoogleDocumentExportWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addGoogleDocumentExportValidateBeforeCall(documentId, + addGoogleDocumentExportRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Google Document Export (asynchronously) Exports a Google Document; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param addGoogleDocumentExportRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addGoogleDocumentExportAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddGoogleDocumentExportRequest addGoogleDocumentExportRequest, + @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addGoogleDocumentExportValidateBeforeCall(documentId, + addGoogleDocumentExportRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/MalwareScanApi.java b/src/main/java/com/formkiq/client/api/MalwareScanApi.java index e64085827..d9323ecdb 100644 --- a/src/main/java/com/formkiq/client/api/MalwareScanApi.java +++ b/src/main/java/com/formkiq/client/api/MalwareScanApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -38,483 +45,707 @@ import java.util.Map; public class MalwareScanApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MalwareScanApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MalwareScanApi() { + this(Configuration.getDefaultApiClient()); + } + + public MalwareScanApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getMalwareScanResults + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getMalwareScanResultsCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public MalwareScanApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/malwareScan".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - public ApiClient getApiClient() { - return localVarApiClient; + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - public int getHostIndex() { - return localHostIndex; + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getMalwareScanResultsValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getMalwareScanResults(Async)"); } - /** - * Build call for getMalwareScanResults - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getMalwareScanResultsCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/malwareScan" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return getMalwareScanResultsCall(documentId, siteId, next, limit, _callback); + + } + + /** + * Get Malware Scan results Gets a Malware Scan results; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetMalwareScanResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetMalwareScanResponse getMalwareScanResults(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = + getMalwareScanResultsWithHttpInfo(documentId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get Malware Scan results Gets a Malware Scan results; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetMalwareScanResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getMalwareScanResultsWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + okhttp3.Call localVarCall = + getMalwareScanResultsValidateBeforeCall(documentId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Malware Scan results (asynchronously) Gets a Malware Scan results; available as an Add-On + * Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 BAD REQUEST* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getMalwareScanResultsAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + getMalwareScanResultsValidateBeforeCall(documentId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setAntivirus + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setAntivirusCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call getMalwareScanResultsValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getMalwareScanResults(Async)"); - } + Object localVarPostBody = body; - return getMalwareScanResultsCall(documentId, siteId, next, limit, _callback); + // create path and map variables + String localVarPath = "/documents/{documentId}/antivirus".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Get Malware Scan results - * Gets a Malware Scan results; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetMalwareScanResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetMalwareScanResponse getMalwareScanResults(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getMalwareScanResultsWithHttpInfo(documentId, siteId, next, limit); - return localVarResp.getData(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get Malware Scan results - * Gets a Malware Scan results; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetMalwareScanResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getMalwareScanResultsWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getMalwareScanResultsValidateBeforeCall(documentId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (shareKey != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); } - /** - * Get Malware Scan results (asynchronously) - * Gets a Malware Scan results; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 BAD REQUEST * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getMalwareScanResultsAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getMalwareScanResultsValidateBeforeCall(documentId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setAntivirus - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setAntivirusCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/documents/{documentId}/antivirus" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (shareKey != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("shareKey", shareKey)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - @SuppressWarnings("rawtypes") - private okhttp3.Call setAntivirusValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setAntivirus(Async)"); - } - - return setAntivirusCall(documentId, siteId, shareKey, body, _callback); - + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Antivirus document scan - * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the **`/documents/{document}/malwareScan`** endpoint instead. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param body (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setAntivirus(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body) throws ApiException { - ApiResponse localVarResp = setAntivirusWithHttpInfo(documentId, siteId, shareKey, body); - return localVarResp.getData(); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setAntivirusValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setAntivirus(Async)"); } - /** - * Antivirus document scan - * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the **`/documents/{document}/malwareScan`** endpoint instead. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param body (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setAntivirusWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body) throws ApiException { - okhttp3.Call localVarCall = setAntivirusValidateBeforeCall(documentId, siteId, shareKey, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + return setAntivirusCall(documentId, siteId, shareKey, body, _callback); + + } + + /** + * Antivirus document scan Perform an Anti-Malware / Antivirus scan on a document; available as an + * Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the + * **`/documents/{document}/malwareScan`** endpoint instead. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param body (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setAntivirus(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable Object body) throws ApiException { + ApiResponse localVarResp = + setAntivirusWithHttpInfo(documentId, siteId, shareKey, body); + return localVarResp.getData(); + } + + /** + * Antivirus document scan Perform an Anti-Malware / Antivirus scan on a document; available as an + * Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the + * **`/documents/{document}/malwareScan`** endpoint instead. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param body (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setAntivirusWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body) + throws ApiException { + okhttp3.Call localVarCall = + setAntivirusValidateBeforeCall(documentId, siteId, shareKey, body, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Antivirus document scan (asynchronously) Perform an Anti-Malware / Antivirus scan on a + * document; available as an Add-On Module **Deprecated**. This endpoint is no longer recommended. + * Please use the **`/documents/{document}/malwareScan`** endpoint instead. + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param shareKey Share Identifier (optional) + * @param body (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setAntivirusAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, + @javax.annotation.Nullable Object body, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + setAntivirusValidateBeforeCall(documentId, siteId, shareKey, body, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setMalwareScan + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setMalwareScanCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Antivirus document scan (asynchronously) - * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the **`/documents/{document}/malwareScan`** endpoint instead. - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param shareKey Share Identifier (optional) - * @param body (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setAntivirusAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String shareKey, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setAntivirusValidateBeforeCall(documentId, siteId, shareKey, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setMalwareScan - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param body (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setMalwareScanCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/documents/{documentId}/malwareScan" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } + Object localVarPostBody = body; - @SuppressWarnings("rawtypes") - private okhttp3.Call setMalwareScanValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling setMalwareScan(Async)"); - } + // create path and map variables + String localVarPath = "/documents/{documentId}/malwareScan".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - return setMalwareScanCall(documentId, siteId, body, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * MalwareScan document scan - * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param body (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setMalwareScan(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body) throws ApiException { - ApiResponse localVarResp = setMalwareScanWithHttpInfo(documentId, siteId, body); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * MalwareScan document scan - * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param body (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setMalwareScanWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body) throws ApiException { - okhttp3.Call localVarCall = setMalwareScanValidateBeforeCall(documentId, siteId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * MalwareScan document scan (asynchronously) - * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param body (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setMalwareScanAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setMalwareScanValidateBeforeCall(documentId, siteId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setMalwareScanValidateBeforeCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling setMalwareScan(Async)"); } + + return setMalwareScanCall(documentId, siteId, body, _callback); + + } + + /** + * MalwareScan document scan Perform an Anti-Malware / Antivirus scan on a document; available as + * an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param body (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setMalwareScan(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body) + throws ApiException { + ApiResponse localVarResp = setMalwareScanWithHttpInfo(documentId, siteId, body); + return localVarResp.getData(); + } + + /** + * MalwareScan document scan Perform an Anti-Malware / Antivirus scan on a document; available as + * an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param body (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setMalwareScanWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable Object body) throws ApiException { + okhttp3.Call localVarCall = setMalwareScanValidateBeforeCall(documentId, siteId, body, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * MalwareScan document scan (asynchronously) Perform an Anti-Malware / Antivirus scan on a + * document; available as an Add-On Module + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param body (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setMalwareScanAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable Object body, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + setMalwareScanValidateBeforeCall(documentId, siteId, body, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/MappingsApi.java b/src/main/java/com/formkiq/client/api/MappingsApi.java index 74f7956bc..73b265f4f 100644 --- a/src/main/java/com/formkiq/client/api/MappingsApi.java +++ b/src/main/java/com/formkiq/client/api/MappingsApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -43,739 +50,1061 @@ import java.util.Map; public class MappingsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public MappingsApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MappingsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MappingsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addMapping + * + * @param addMappingRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addMappingCall(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public MappingsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addMappingRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/mappings"; - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addMappingValidateBeforeCall( + @javax.annotation.Nonnull AddMappingRequest addMappingRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addMappingRequest' is set + if (addMappingRequest == null) { + throw new ApiException( + "Missing the required parameter 'addMappingRequest' when calling addMapping(Async)"); } - /** - * Build call for addMapping - * @param addMappingRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addMappingCall(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addMappingRequest; - - // create path and map variables - String localVarPath = "/mappings"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addMappingCall(addMappingRequest, siteId, _callback); + + } + + /** + * Add New Mapping Creates a new mapping; available as an Add-On Module + * + * @param addMappingRequest (required) + * @param siteId Site Identifier (optional) + * @return AddMappingResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddMappingResponse addMapping( + @javax.annotation.Nonnull AddMappingRequest addMappingRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addMappingWithHttpInfo(addMappingRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add New Mapping Creates a new mapping; available as an Add-On Module + * + * @param addMappingRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddMappingResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addMappingWithHttpInfo( + @javax.annotation.Nonnull AddMappingRequest addMappingRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addMappingValidateBeforeCall(addMappingRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New Mapping (asynchronously) Creates a new mapping; available as an Add-On Module + * + * @param addMappingRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addMappingAsync(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addMappingValidateBeforeCall(addMappingRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteMapping + * + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteMappingCall(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addMappingValidateBeforeCall(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addMappingRequest' is set - if (addMappingRequest == null) { - throw new ApiException("Missing the required parameter 'addMappingRequest' when calling addMapping(Async)"); - } + Object localVarPostBody = null; - return addMappingCall(addMappingRequest, siteId, _callback); + // create path and map variables + String localVarPath = "/mappings/{mappingId}".replace("{" + "mappingId" + "}", + localVarApiClient.escapeString(mappingId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add New Mapping - * Creates a new mapping; available as an Add-On Module - * @param addMappingRequest (required) - * @param siteId Site Identifier (optional) - * @return AddMappingResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddMappingResponse addMapping(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addMappingWithHttpInfo(addMappingRequest, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add New Mapping - * Creates a new mapping; available as an Add-On Module - * @param addMappingRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddMappingResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addMappingWithHttpInfo(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addMappingValidateBeforeCall(addMappingRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add New Mapping (asynchronously) - * Creates a new mapping; available as an Add-On Module - * @param addMappingRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addMappingAsync(@javax.annotation.Nonnull AddMappingRequest addMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addMappingValidateBeforeCall(addMappingRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'mappingId' is set + if (mappingId == null) { + throw new ApiException( + "Missing the required parameter 'mappingId' when calling deleteMapping(Async)"); } - /** - * Build call for deleteMapping - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteMappingCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/mappings/{mappingId}" - .replace("{" + "mappingId" + "}", localVarApiClient.escapeString(mappingId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return deleteMappingCall(mappingId, siteId, _callback); + + } + + /** + * Delete Mapping Delete Mapping; available as an Add-On Module + * + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteMapping(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteMappingWithHttpInfo(mappingId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Mapping Delete Mapping; available as an Add-On Module + * + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteMappingWithHttpInfo( + @javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteMappingValidateBeforeCall(mappingId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Mapping (asynchronously) Delete Mapping; available as an Add-On Module + * + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteMappingAsync(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteMappingValidateBeforeCall(mappingId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getMapping + * + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getMappingCall(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'mappingId' is set - if (mappingId == null) { - throw new ApiException("Missing the required parameter 'mappingId' when calling deleteMapping(Async)"); - } + Object localVarPostBody = null; - return deleteMappingCall(mappingId, siteId, _callback); + // create path and map variables + String localVarPath = "/mappings/{mappingId}".replace("{" + "mappingId" + "}", + localVarApiClient.escapeString(mappingId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete Mapping - * Delete Mapping; available as an Add-On Module - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteMapping(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteMappingWithHttpInfo(mappingId, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete Mapping - * Delete Mapping; available as an Add-On Module - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteMappingWithHttpInfo(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteMappingValidateBeforeCall(mappingId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Delete Mapping (asynchronously) - * Delete Mapping; available as an Add-On Module - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteMappingAsync(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteMappingValidateBeforeCall(mappingId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'mappingId' is set + if (mappingId == null) { + throw new ApiException( + "Missing the required parameter 'mappingId' when calling getMapping(Async)"); } - /** - * Build call for getMapping - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getMappingCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/mappings/{mappingId}" - .replace("{" + "mappingId" + "}", localVarApiClient.escapeString(mappingId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return getMappingCall(mappingId, siteId, _callback); + + } + + /** + * Get Mapping Get a mapping; available as an Add-On Module + * + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetMappingResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetMappingResponse getMapping(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getMappingWithHttpInfo(mappingId, siteId); + return localVarResp.getData(); + } + + /** + * Get Mapping Get a mapping; available as an Add-On Module + * + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetMappingResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getMappingWithHttpInfo( + @javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getMappingValidateBeforeCall(mappingId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Mapping (asynchronously) Get a mapping; available as an Add-On Module + * + * @param mappingId Mapping Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getMappingAsync(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getMappingValidateBeforeCall(mappingId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getMappings + * + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getMappingsCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call getMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'mappingId' is set - if (mappingId == null) { - throw new ApiException("Missing the required parameter 'mappingId' when calling getMapping(Async)"); - } + Object localVarPostBody = null; - return getMappingCall(mappingId, siteId, _callback); + // create path and map variables + String localVarPath = "/mappings"; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Get Mapping - * Get a mapping; available as an Add-On Module - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetMappingResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetMappingResponse getMapping(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getMappingWithHttpInfo(mappingId, siteId); - return localVarResp.getData(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get Mapping - * Get a mapping; available as an Add-On Module - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetMappingResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getMappingWithHttpInfo(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getMappingValidateBeforeCall(mappingId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Get Mapping (asynchronously) - * Get a mapping; available as an Add-On Module - * @param mappingId Mapping Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getMappingAsync(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getMappingValidateBeforeCall(mappingId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getMappings - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getMappingsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/mappings"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getMappingsValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - return getMappingsCall(siteId, limit, next, _callback); - + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get Mappings - * Returns a list of mappings; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetMappingsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetMappingsResponse getMappings(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getMappingsWithHttpInfo(siteId, limit, next); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get Mappings - * Returns a list of mappings; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetMappingsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getMappingsWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getMappingsValidateBeforeCall(siteId, limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getMappingsValidateBeforeCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + return getMappingsCall(siteId, limit, next, _callback); + + } + + /** + * Get Mappings Returns a list of mappings; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetMappingsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetMappingsResponse getMappings(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + ApiResponse localVarResp = getMappingsWithHttpInfo(siteId, limit, next); + return localVarResp.getData(); + } + + /** + * Get Mappings Returns a list of mappings; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetMappingsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getMappingsWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getMappingsValidateBeforeCall(siteId, limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Mappings (asynchronously) Returns a list of mappings; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getMappingsAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMappingsValidateBeforeCall(siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setMapping + * + * @param mappingId Mapping Identifier (required) + * @param setMappingRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call setMappingCall(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nonnull SetMappingRequest setMappingRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Get Mappings (asynchronously) - * Returns a list of mappings; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getMappingsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getMappingsValidateBeforeCall(siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setMapping - * @param mappingId Mapping Identifier (required) - * @param setMappingRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call setMappingCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nonnull SetMappingRequest setMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setMappingRequest; - - // create path and map variables - String localVarPath = "/mappings/{mappingId}" - .replace("{" + "mappingId" + "}", localVarApiClient.escapeString(mappingId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } + Object localVarPostBody = setMappingRequest; - @SuppressWarnings("rawtypes") - private okhttp3.Call setMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nonnull SetMappingRequest setMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'mappingId' is set - if (mappingId == null) { - throw new ApiException("Missing the required parameter 'mappingId' when calling setMapping(Async)"); - } + // create path and map variables + String localVarPath = "/mappings/{mappingId}".replace("{" + "mappingId" + "}", + localVarApiClient.escapeString(mappingId.toString())); - // verify the required parameter 'setMappingRequest' is set - if (setMappingRequest == null) { - throw new ApiException("Missing the required parameter 'setMappingRequest' when calling setMapping(Async)"); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - return setMappingCall(mappingId, setMappingRequest, siteId, _callback); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set Mapping - * Sets an mapping; available as an Add-On Module - * @param mappingId Mapping Identifier (required) - * @param setMappingRequest (required) - * @param siteId Site Identifier (optional) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public SetResponse setMapping(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nonnull SetMappingRequest setMappingRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = setMappingWithHttpInfo(mappingId, setMappingRequest, siteId); - return localVarResp.getData(); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set Mapping - * Sets an mapping; available as an Add-On Module - * @param mappingId Mapping Identifier (required) - * @param setMappingRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse setMappingWithHttpInfo(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nonnull SetMappingRequest setMappingRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = setMappingValidateBeforeCall(mappingId, setMappingRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setMappingValidateBeforeCall(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nonnull SetMappingRequest setMappingRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'mappingId' is set + if (mappingId == null) { + throw new ApiException( + "Missing the required parameter 'mappingId' when calling setMapping(Async)"); } - /** - * Set Mapping (asynchronously) - * Sets an mapping; available as an Add-On Module - * @param mappingId Mapping Identifier (required) - * @param setMappingRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call setMappingAsync(@javax.annotation.Nonnull String mappingId, @javax.annotation.Nonnull SetMappingRequest setMappingRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setMappingValidateBeforeCall(mappingId, setMappingRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'setMappingRequest' is set + if (setMappingRequest == null) { + throw new ApiException( + "Missing the required parameter 'setMappingRequest' when calling setMapping(Async)"); } + + return setMappingCall(mappingId, setMappingRequest, siteId, _callback); + + } + + /** + * Set Mapping Sets an mapping; available as an Add-On Module + * + * @param mappingId Mapping Identifier (required) + * @param setMappingRequest (required) + * @param siteId Site Identifier (optional) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public SetResponse setMapping(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nonnull SetMappingRequest setMappingRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + setMappingWithHttpInfo(mappingId, setMappingRequest, siteId); + return localVarResp.getData(); + } + + /** + * Set Mapping Sets an mapping; available as an Add-On Module + * + * @param mappingId Mapping Identifier (required) + * @param setMappingRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse setMappingWithHttpInfo(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nonnull SetMappingRequest setMappingRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + setMappingValidateBeforeCall(mappingId, setMappingRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set Mapping (asynchronously) Sets an mapping; available as an Add-On Module + * + * @param mappingId Mapping Identifier (required) + * @param setMappingRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call setMappingAsync(@javax.annotation.Nonnull String mappingId, + @javax.annotation.Nonnull SetMappingRequest setMappingRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + setMappingValidateBeforeCall(mappingId, setMappingRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/PublicApi.java b/src/main/java/com/formkiq/client/api/PublicApi.java index 4a4134eaf..5741a1bb8 100644 --- a/src/main/java/com/formkiq/client/api/PublicApi.java +++ b/src/main/java/com/formkiq/client/api/PublicApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -38,320 +45,453 @@ import java.util.Map; public class PublicApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public PublicApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public PublicApi() { + this(Configuration.getDefaultApiClient()); + } + + public PublicApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for publicAddDocument + * + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call publicAddDocumentCall( + @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public PublicApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addDocumentRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/public/documents"; - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call publicAddDocumentValidateBeforeCall( + @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addDocumentRequest' is set + if (addDocumentRequest == null) { + throw new ApiException( + "Missing the required parameter 'addDocumentRequest' when calling publicAddDocument(Async)"); } - /** - * Build call for publicAddDocument - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call publicAddDocumentCall(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addDocumentRequest; - - // create path and map variables - String localVarPath = "/public/documents"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return publicAddDocumentCall(addDocumentRequest, siteId, _callback); + + } + + /** + * Public add document Allow unauthenticated creation of new documents; must be enabled during + * installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to + * document schema See POST /documents/{documentId}/actions for adding actions to document schema + * + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @return AddDocumentResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddDocumentResponse publicAddDocument( + @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + publicAddDocumentWithHttpInfo(addDocumentRequest, siteId); + return localVarResp.getData(); + } + + /** + * Public add document Allow unauthenticated creation of new documents; must be enabled during + * installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to + * document schema See POST /documents/{documentId}/actions for adding actions to document schema + * + * @param addDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddDocumentResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse publicAddDocumentWithHttpInfo( + @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + publicAddDocumentValidateBeforeCall(addDocumentRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Public add document (asynchronously) Allow unauthenticated creation of new documents; must be + * enabled during installation (disabled by default) See POST /documents/{documentId}/tags for + * adding tags to document schema See POST /documents/{documentId}/actions for adding actions to + * document schema + * + * @param addDocumentRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call publicAddDocumentAsync( + @javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + publicAddDocumentValidateBeforeCall(addDocumentRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for publicAddWebhook + * + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call publicAddWebhookCall(@javax.annotation.Nonnull String webhooksPlus, + @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call publicAddDocumentValidateBeforeCall(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addDocumentRequest' is set - if (addDocumentRequest == null) { - throw new ApiException("Missing the required parameter 'addDocumentRequest' when calling publicAddDocument(Async)"); - } - - return publicAddDocumentCall(addDocumentRequest, siteId, _callback); + Object localVarPostBody = body; - } + // create path and map variables + String localVarPath = "/public/webhooks/{webhooks+}".replace("{" + "webhooks+" + "}", + localVarApiClient.escapeString(webhooksPlus.toString())); - /** - * Public add document - * Allow unauthenticated creation of new documents; must be enabled during installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @return AddDocumentResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddDocumentResponse publicAddDocument(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = publicAddDocumentWithHttpInfo(addDocumentRequest, siteId); - return localVarResp.getData(); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Public add document - * Allow unauthenticated creation of new documents; must be enabled during installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema - * @param addDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddDocumentResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse publicAddDocumentWithHttpInfo(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = publicAddDocumentValidateBeforeCall(addDocumentRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Public add document (asynchronously) - * Allow unauthenticated creation of new documents; must be enabled during installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema - * @param addDocumentRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call publicAddDocumentAsync(@javax.annotation.Nonnull AddDocumentRequest addDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = publicAddDocumentValidateBeforeCall(addDocumentRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for publicAddWebhook - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call publicAddWebhookCall(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/public/webhooks/{webhooks+}" - .replace("{" + "webhooks+" + "}", localVarApiClient.escapeString(webhooksPlus.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - @SuppressWarnings("rawtypes") - private okhttp3.Call publicAddWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhooksPlus' is set - if (webhooksPlus == null) { - throw new ApiException("Missing the required parameter 'webhooksPlus' when calling publicAddWebhook(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling publicAddWebhook(Async)"); - } - - return publicAddWebhookCall(webhooksPlus, body, siteId, _callback); - + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Public add webhook - * Receive an incoming public post to a specified webhook and creates a document based on the data sent; must be enabled during installation (disabled by default) - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @return DocumentId - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DocumentId publicAddWebhook(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = publicAddWebhookWithHttpInfo(webhooksPlus, body, siteId); - return localVarResp.getData(); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call publicAddWebhookValidateBeforeCall( + @javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhooksPlus' is set + if (webhooksPlus == null) { + throw new ApiException( + "Missing the required parameter 'webhooksPlus' when calling publicAddWebhook(Async)"); } - /** - * Public add webhook - * Receive an incoming public post to a specified webhook and creates a document based on the data sent; must be enabled during installation (disabled by default) - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DocumentId> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse publicAddWebhookWithHttpInfo(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = publicAddWebhookValidateBeforeCall(webhooksPlus, body, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + "Missing the required parameter 'body' when calling publicAddWebhook(Async)"); } - /** - * Public add webhook (asynchronously) - * Receive an incoming public post to a specified webhook and creates a document based on the data sent; must be enabled during installation (disabled by default) - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call publicAddWebhookAsync(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = publicAddWebhookValidateBeforeCall(webhooksPlus, body, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + return publicAddWebhookCall(webhooksPlus, body, siteId, _callback); + + } + + /** + * Public add webhook Receive an incoming public post to a specified webhook and creates a + * document based on the data sent; must be enabled during installation (disabled by default) + * + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @return DocumentId + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DocumentId publicAddWebhook(@javax.annotation.Nonnull String webhooksPlus, + @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = publicAddWebhookWithHttpInfo(webhooksPlus, body, siteId); + return localVarResp.getData(); + } + + /** + * Public add webhook Receive an incoming public post to a specified webhook and creates a + * document based on the data sent; must be enabled during installation (disabled by default) + * + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DocumentId> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse publicAddWebhookWithHttpInfo( + @javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + publicAddWebhookValidateBeforeCall(webhooksPlus, body, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Public add webhook (asynchronously) Receive an incoming public post to a specified webhook and + * creates a document based on the data sent; must be enabled during installation (disabled by + * default) + * + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call publicAddWebhookAsync(@javax.annotation.Nonnull String webhooksPlus, + @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + publicAddWebhookValidateBeforeCall(webhooksPlus, body, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/ReindexApi.java b/src/main/java/com/formkiq/client/api/ReindexApi.java index f1a7deecc..0f8b7d914 100644 --- a/src/main/java/com/formkiq/client/api/ReindexApi.java +++ b/src/main/java/com/formkiq/client/api/ReindexApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -38,189 +45,275 @@ import java.util.Map; public class ReindexApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public ReindexApi() { - this(Configuration.getDefaultApiClient()); - } - - public ReindexApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ReindexApi() { + this(Configuration.getDefaultApiClient()); + } + + public ReindexApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addReindexDocument + * + * @param documentId Document Identifier (required) + * @param addReindexDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addReindexDocumentCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public int getHostIndex() { - return localHostIndex; - } + Object localVarPostBody = addReindexDocumentRequest; - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } + // create path and map variables + String localVarPath = "/reindex/documents/{documentId}".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Build call for addReindexDocument - * @param documentId Document Identifier (required) - * @param addReindexDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addReindexDocumentCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addReindexDocumentRequest; - - // create path and map variables - String localVarPath = "/reindex/documents/{documentId}" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - @SuppressWarnings("rawtypes") - private okhttp3.Call addReindexDocumentValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling addReindexDocument(Async)"); - } - - // verify the required parameter 'addReindexDocumentRequest' is set - if (addReindexDocumentRequest == null) { - throw new ApiException("Missing the required parameter 'addReindexDocumentRequest' when calling addReindexDocument(Async)"); - } - - return addReindexDocumentCall(documentId, addReindexDocumentRequest, siteId, _callback); - + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Reindex metadata on a document - * The API allows for the reindexing of a document's metadata determined by the target. ATTRIBUTE target will regenerate the composite keys for a document based on the Classification / SiteSchema - * @param documentId Document Identifier (required) - * @param addReindexDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddResponse addReindexDocument(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addReindexDocumentWithHttpInfo(documentId, addReindexDocumentRequest, siteId); - return localVarResp.getData(); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addReindexDocumentValidateBeforeCall( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling addReindexDocument(Async)"); } - /** - * Reindex metadata on a document - * The API allows for the reindexing of a document's metadata determined by the target. ATTRIBUTE target will regenerate the composite keys for a document based on the Classification / SiteSchema - * @param documentId Document Identifier (required) - * @param addReindexDocumentRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addReindexDocumentWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addReindexDocumentValidateBeforeCall(documentId, addReindexDocumentRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + // verify the required parameter 'addReindexDocumentRequest' is set + if (addReindexDocumentRequest == null) { + throw new ApiException( + "Missing the required parameter 'addReindexDocumentRequest' when calling addReindexDocument(Async)"); } - /** - * Reindex metadata on a document (asynchronously) - * The API allows for the reindexing of a document's metadata determined by the target. ATTRIBUTE target will regenerate the composite keys for a document based on the Classification / SiteSchema - * @param documentId Document Identifier (required) - * @param addReindexDocumentRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addReindexDocumentAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addReindexDocumentValidateBeforeCall(documentId, addReindexDocumentRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + return addReindexDocumentCall(documentId, addReindexDocumentRequest, siteId, _callback); + + } + + /** + * Reindex metadata on a document The API allows for the reindexing of a document's metadata + * determined by the target. ATTRIBUTE target will regenerate the composite keys for a document + * based on the Classification / SiteSchema + * + * @param documentId Document Identifier (required) + * @param addReindexDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddResponse addReindexDocument(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addReindexDocumentWithHttpInfo(documentId, addReindexDocumentRequest, siteId); + return localVarResp.getData(); + } + + /** + * Reindex metadata on a document The API allows for the reindexing of a document's metadata + * determined by the target. ATTRIBUTE target will regenerate the composite keys for a document + * based on the Classification / SiteSchema + * + * @param documentId Document Identifier (required) + * @param addReindexDocumentRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addReindexDocumentWithHttpInfo( + @javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + addReindexDocumentValidateBeforeCall(documentId, addReindexDocumentRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Reindex metadata on a document (asynchronously) The API allows for the reindexing of a + * document's metadata determined by the target. ATTRIBUTE target will regenerate the + * composite keys for a document based on the Classification / SiteSchema + * + * @param documentId Document Identifier (required) + * @param addReindexDocumentRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addReindexDocumentAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nonnull AddReindexDocumentRequest addReindexDocumentRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addReindexDocumentValidateBeforeCall(documentId, + addReindexDocumentRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/RulesetsApi.java b/src/main/java/com/formkiq/client/api/RulesetsApi.java index 6f6b71e28..8d2b6c76c 100644 --- a/src/main/java/com/formkiq/client/api/RulesetsApi.java +++ b/src/main/java/com/formkiq/client/api/RulesetsApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,1488 +57,2158 @@ import java.util.Map; public class RulesetsApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public RulesetsApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public RulesetsApi() { + this(Configuration.getDefaultApiClient()); + } + + public RulesetsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addRule + * + * @param rulesetId Ruleset Identifier (required) + * @param addRuleRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addRuleCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull AddRuleRequest addRuleRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public RulesetsApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addRuleRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}/rules".replace("{" + "rulesetId" + "}", + localVarApiClient.escapeString(rulesetId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull AddRuleRequest addRuleRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException( + "Missing the required parameter 'rulesetId' when calling addRule(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + // verify the required parameter 'addRuleRequest' is set + if (addRuleRequest == null) { + throw new ApiException( + "Missing the required parameter 'addRuleRequest' when calling addRule(Async)"); } - /** - * Build call for addRule - * @param rulesetId Ruleset Identifier (required) - * @param addRuleRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addRuleCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull AddRuleRequest addRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addRuleRequest; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}/rules" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addRuleCall(rulesetId, addRuleRequest, siteId, _callback); + + } + + /** + * Add New Rule Creates a new rule; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param addRuleRequest (required) + * @param siteId Site Identifier (optional) + * @return AddRuleResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddRuleResponse addRule(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull AddRuleRequest addRuleRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addRuleWithHttpInfo(rulesetId, addRuleRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add New Rule Creates a new rule; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param addRuleRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddRuleResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addRuleWithHttpInfo( + @javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull AddRuleRequest addRuleRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addRuleValidateBeforeCall(rulesetId, addRuleRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New Rule (asynchronously) Creates a new rule; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param addRuleRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addRuleAsync(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull AddRuleRequest addRuleRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addRuleValidateBeforeCall(rulesetId, addRuleRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addRuleset + * + * @param addRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addRulesetCall(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull AddRuleRequest addRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException("Missing the required parameter 'rulesetId' when calling addRule(Async)"); - } + Object localVarPostBody = addRulesetRequest; - // verify the required parameter 'addRuleRequest' is set - if (addRuleRequest == null) { - throw new ApiException("Missing the required parameter 'addRuleRequest' when calling addRule(Async)"); - } + // create path and map variables + String localVarPath = "/rulesets"; - return addRuleCall(rulesetId, addRuleRequest, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add New Rule - * Creates a new rule; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param addRuleRequest (required) - * @param siteId Site Identifier (optional) - * @return AddRuleResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddRuleResponse addRule(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull AddRuleRequest addRuleRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addRuleWithHttpInfo(rulesetId, addRuleRequest, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add New Rule - * Creates a new rule; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param addRuleRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddRuleResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addRuleWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull AddRuleRequest addRuleRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addRuleValidateBeforeCall(rulesetId, addRuleRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add New Rule (asynchronously) - * Creates a new rule; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param addRuleRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addRuleAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull AddRuleRequest addRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addRuleValidateBeforeCall(rulesetId, addRuleRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addRulesetValidateBeforeCall( + @javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addRulesetRequest' is set + if (addRulesetRequest == null) { + throw new ApiException( + "Missing the required parameter 'addRulesetRequest' when calling addRuleset(Async)"); } - /** - * Build call for addRuleset - * @param addRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addRulesetCall(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addRulesetRequest; - - // create path and map variables - String localVarPath = "/rulesets"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return addRulesetCall(addRulesetRequest, siteId, _callback); + + } + + /** + * Add New Ruleset Creates a new ruleset; available as an Add-On Module + * + * @param addRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @return AddRulesetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddRulesetResponse addRuleset( + @javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addRulesetWithHttpInfo(addRulesetRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add New Ruleset Creates a new ruleset; available as an Add-On Module + * + * @param addRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddRulesetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addRulesetWithHttpInfo( + @javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addRulesetValidateBeforeCall(addRulesetRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add New Ruleset (asynchronously) Creates a new ruleset; available as an Add-On Module + * + * @param addRulesetRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addRulesetAsync(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addRulesetValidateBeforeCall(addRulesetRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteRule + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteRuleCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addRulesetValidateBeforeCall(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addRulesetRequest' is set - if (addRulesetRequest == null) { - throw new ApiException("Missing the required parameter 'addRulesetRequest' when calling addRuleset(Async)"); - } + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) + .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); - return addRulesetCall(addRulesetRequest, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add New Ruleset - * Creates a new ruleset; available as an Add-On Module - * @param addRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @return AddRulesetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddRulesetResponse addRuleset(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addRulesetWithHttpInfo(addRulesetRequest, siteId); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add New Ruleset - * Creates a new ruleset; available as an Add-On Module - * @param addRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddRulesetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addRulesetWithHttpInfo(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addRulesetValidateBeforeCall(addRulesetRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException( + "Missing the required parameter 'rulesetId' when calling deleteRule(Async)"); } - /** - * Add New Ruleset (asynchronously) - * Creates a new ruleset; available as an Add-On Module - * @param addRulesetRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addRulesetAsync(@javax.annotation.Nonnull AddRulesetRequest addRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addRulesetValidateBeforeCall(addRulesetRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'ruleId' is set + if (ruleId == null) { + throw new ApiException( + "Missing the required parameter 'ruleId' when calling deleteRule(Async)"); } - /** - * Build call for deleteRule - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteRuleCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) - .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return deleteRuleCall(rulesetId, ruleId, siteId, _callback); + + } + + /** + * Delete Rule Delete Rule; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteRuleResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteRuleResponse deleteRule(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + deleteRuleWithHttpInfo(rulesetId, ruleId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Rule Delete Rule; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteRuleResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteRuleWithHttpInfo( + @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteRuleValidateBeforeCall(rulesetId, ruleId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Rule (asynchronously) Delete Rule; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteRuleAsync(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteRuleValidateBeforeCall(rulesetId, ruleId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteRuleset + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteRulesetCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException("Missing the required parameter 'rulesetId' when calling deleteRule(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'ruleId' is set - if (ruleId == null) { - throw new ApiException("Missing the required parameter 'ruleId' when calling deleteRule(Async)"); - } + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}".replace("{" + "rulesetId" + "}", + localVarApiClient.escapeString(rulesetId.toString())); - return deleteRuleCall(rulesetId, ruleId, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete Rule - * Delete Rule; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteRuleResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteRuleResponse deleteRule(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteRuleWithHttpInfo(rulesetId, ruleId, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete Rule - * Delete Rule; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteRuleResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteRuleWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteRuleValidateBeforeCall(rulesetId, ruleId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Delete Rule (asynchronously) - * Delete Rule; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteRuleAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteRuleValidateBeforeCall(rulesetId, ruleId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException( + "Missing the required parameter 'rulesetId' when calling deleteRuleset(Async)"); } - /** - * Build call for deleteRuleset - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteRulesetCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return deleteRulesetCall(rulesetId, siteId, _callback); + + } + + /** + * Delete Ruleset Delete Ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @return DeleteRulesetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteRulesetResponse deleteRuleset(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteRulesetWithHttpInfo(rulesetId, siteId); + return localVarResp.getData(); + } + + /** + * Delete Ruleset Delete Ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteRulesetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteRulesetWithHttpInfo( + @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteRulesetValidateBeforeCall(rulesetId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Ruleset (asynchronously) Delete Ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteRulesetAsync(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteRulesetValidateBeforeCall(rulesetId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getRule + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getRuleCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException("Missing the required parameter 'rulesetId' when calling deleteRuleset(Async)"); - } + Object localVarPostBody = null; - return deleteRulesetCall(rulesetId, siteId, _callback); + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) + .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete Ruleset - * Delete Ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @return DeleteRulesetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteRulesetResponse deleteRuleset(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteRulesetWithHttpInfo(rulesetId, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete Ruleset - * Delete Ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteRulesetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteRulesetWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteRulesetValidateBeforeCall(rulesetId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Delete Ruleset (asynchronously) - * Delete Ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteRulesetAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteRulesetValidateBeforeCall(rulesetId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException( + "Missing the required parameter 'rulesetId' when calling getRule(Async)"); } - /** - * Build call for getRule - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getRuleCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) - .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'ruleId' is set + if (ruleId == null) { + throw new ApiException("Missing the required parameter 'ruleId' when calling getRule(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException("Missing the required parameter 'rulesetId' when calling getRule(Async)"); - } + return getRuleCall(rulesetId, ruleId, siteId, _callback); + + } + + /** + * Get Rule Returns a rule in a ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetRuleResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetRuleResponse getRule(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = getRuleWithHttpInfo(rulesetId, ruleId, siteId); + return localVarResp.getData(); + } + + /** + * Get Rule Returns a rule in a ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetRuleResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getRuleWithHttpInfo( + @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = getRuleValidateBeforeCall(rulesetId, ruleId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Rule (asynchronously) Returns a rule in a ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getRuleAsync(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRuleValidateBeforeCall(rulesetId, ruleId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getRules + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getRulesCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - // verify the required parameter 'ruleId' is set - if (ruleId == null) { - throw new ApiException("Missing the required parameter 'ruleId' when calling getRule(Async)"); - } + Object localVarPostBody = null; - return getRuleCall(rulesetId, ruleId, siteId, _callback); + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}/rules".replace("{" + "rulesetId" + "}", + localVarApiClient.escapeString(rulesetId.toString())); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Get Rule - * Returns a rule in a ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetRuleResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetRuleResponse getRule(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getRuleWithHttpInfo(rulesetId, ruleId, siteId); - return localVarResp.getData(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get Rule - * Returns a rule in a ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetRuleResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getRuleWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getRuleValidateBeforeCall(rulesetId, ruleId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - /** - * Get Rule (asynchronously) - * Returns a rule in a ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getRuleAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRuleValidateBeforeCall(rulesetId, ruleId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Build call for getRules - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getRulesCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}/rules" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getRulesValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException("Missing the required parameter 'rulesetId' when calling getRules(Async)"); - } - - return getRulesCall(rulesetId, siteId, next, limit, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get Rules - * Returns a list of rules in a ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetRulesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetRulesResponse getRules(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getRulesWithHttpInfo(rulesetId, siteId, next, limit); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get Rules - * Returns a list of rules in a ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetRulesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getRulesWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getRulesValidateBeforeCall(rulesetId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getRulesValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException( + "Missing the required parameter 'rulesetId' when calling getRules(Async)"); } - /** - * Get Rules (asynchronously) - * Returns a list of rules in a ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getRulesAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRulesValidateBeforeCall(rulesetId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getRuleset - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getRulesetCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return getRulesCall(rulesetId, siteId, next, limit, _callback); + + } + + /** + * Get Rules Returns a list of rules in a ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetRulesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetRulesResponse getRules(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + ApiResponse localVarResp = + getRulesWithHttpInfo(rulesetId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get Rules Returns a list of rules in a ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetRulesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getRulesWithHttpInfo( + @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + okhttp3.Call localVarCall = getRulesValidateBeforeCall(rulesetId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Rules (asynchronously) Returns a list of rules in a ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getRulesAsync(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + getRulesValidateBeforeCall(rulesetId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getRuleset + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getRulesetCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call getRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException("Missing the required parameter 'rulesetId' when calling getRuleset(Async)"); - } + Object localVarPostBody = null; - return getRulesetCall(rulesetId, siteId, _callback); + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}".replace("{" + "rulesetId" + "}", + localVarApiClient.escapeString(rulesetId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get Ruleset - * Get a rule sets; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @return GetRulesetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetRulesetResponse getRuleset(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getRulesetWithHttpInfo(rulesetId, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get Ruleset - * Get a rule sets; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetRulesetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getRulesetWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getRulesetValidateBeforeCall(rulesetId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get Ruleset (asynchronously) - * Get a rule sets; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getRulesetAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRulesetValidateBeforeCall(rulesetId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException( + "Missing the required parameter 'rulesetId' when calling getRuleset(Async)"); } - /** - * Build call for getRulesets - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getRulesetsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/rulesets"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return getRulesetCall(rulesetId, siteId, _callback); + + } + + /** + * Get Ruleset Get a rule sets; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @return GetRulesetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetRulesetResponse getRuleset(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getRulesetWithHttpInfo(rulesetId, siteId); + return localVarResp.getData(); + } + + /** + * Get Ruleset Get a rule sets; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetRulesetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getRulesetWithHttpInfo( + @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getRulesetValidateBeforeCall(rulesetId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Ruleset (asynchronously) Get a rule sets; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getRulesetAsync(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getRulesetValidateBeforeCall(rulesetId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getRulesets + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getRulesetsCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call getRulesetsValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - return getRulesetsCall(siteId, next, limit, _callback); + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/rulesets"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - /** - * Get Rulesets - * Returns a list of rule sets; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetRulesetsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetRulesetsResponse getRulesets(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getRulesetsWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Get Rulesets - * Returns a list of rule sets; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetRulesetsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getRulesetsWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get Rulesets (asynchronously) - * Returns a list of rule sets; available as an Add-On Module - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getRulesetsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Build call for updateRule - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param updateRuleRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateRuleCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateRuleRequest; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) - .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getRulesetsValidateBeforeCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + return getRulesetsCall(siteId, next, limit, _callback); + + } + + /** + * Get Rulesets Returns a list of rule sets; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetRulesetsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetRulesetsResponse getRulesets(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = getRulesetsWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get Rulesets Returns a list of rule sets; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetRulesetsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getRulesetsWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Rulesets (asynchronously) Returns a list of rule sets; available as an Add-On Module + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getRulesetsAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateRule + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param updateRuleRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateRuleCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, + @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call updateRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException("Missing the required parameter 'rulesetId' when calling updateRule(Async)"); - } + Object localVarPostBody = updateRuleRequest; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}/rules/{ruleId}" + .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())) + .replace("{" + "ruleId" + "}", localVarApiClient.escapeString(ruleId.toString())); - // verify the required parameter 'ruleId' is set - if (ruleId == null) { - throw new ApiException("Missing the required parameter 'ruleId' when calling updateRule(Async)"); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - // verify the required parameter 'updateRuleRequest' is set - if (updateRuleRequest == null) { - throw new ApiException("Missing the required parameter 'updateRuleRequest' when calling updateRule(Async)"); - } + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } - return updateRuleCall(rulesetId, ruleId, updateRuleRequest, siteId, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Update Rule - * Update Rule; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param updateRuleRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateRuleResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public UpdateRuleResponse updateRule(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = updateRuleWithHttpInfo(rulesetId, ruleId, updateRuleRequest, siteId); - return localVarResp.getData(); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateRuleValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, + @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException( + "Missing the required parameter 'rulesetId' when calling updateRule(Async)"); } - /** - * Update Rule - * Update Rule; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param updateRuleRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateRuleResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse updateRuleWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateRuleValidateBeforeCall(rulesetId, ruleId, updateRuleRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + // verify the required parameter 'ruleId' is set + if (ruleId == null) { + throw new ApiException( + "Missing the required parameter 'ruleId' when calling updateRule(Async)"); } - /** - * Update Rule (asynchronously) - * Update Rule; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param ruleId Rule Identifier (required) - * @param updateRuleRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateRuleAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateRuleValidateBeforeCall(rulesetId, ruleId, updateRuleRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'updateRuleRequest' is set + if (updateRuleRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateRuleRequest' when calling updateRule(Async)"); } - /** - * Build call for updateRuleset - * @param rulesetId Ruleset Identifier (required) - * @param updateRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateRulesetCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateRulesetRequest; - - // create path and map variables - String localVarPath = "/rulesets/{rulesetId}" - .replace("{" + "rulesetId" + "}", localVarApiClient.escapeString(rulesetId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return updateRuleCall(rulesetId, ruleId, updateRuleRequest, siteId, _callback); + + } + + /** + * Update Rule Update Rule; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param updateRuleRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateRuleResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public UpdateRuleResponse updateRule(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, + @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + updateRuleWithHttpInfo(rulesetId, ruleId, updateRuleRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update Rule Update Rule; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param updateRuleRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateRuleResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse updateRuleWithHttpInfo( + @javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull String ruleId, + @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + updateRuleValidateBeforeCall(rulesetId, ruleId, updateRuleRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Rule (asynchronously) Update Rule; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param ruleId Rule Identifier (required) + * @param updateRuleRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateRuleAsync(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull String ruleId, + @javax.annotation.Nonnull UpdateRuleRequest updateRuleRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateRuleValidateBeforeCall(rulesetId, ruleId, updateRuleRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateRuleset + * + * @param rulesetId Ruleset Identifier (required) + * @param updateRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateRulesetCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call updateRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'rulesetId' is set - if (rulesetId == null) { - throw new ApiException("Missing the required parameter 'rulesetId' when calling updateRuleset(Async)"); - } + Object localVarPostBody = updateRulesetRequest; + + // create path and map variables + String localVarPath = "/rulesets/{rulesetId}".replace("{" + "rulesetId" + "}", + localVarApiClient.escapeString(rulesetId.toString())); - // verify the required parameter 'updateRulesetRequest' is set - if (updateRulesetRequest == null) { - throw new ApiException("Missing the required parameter 'updateRulesetRequest' when calling updateRuleset(Async)"); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - return updateRulesetCall(rulesetId, updateRulesetRequest, siteId, _callback); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Update Ruleset - * Updates an existing ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param updateRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateRulesetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public UpdateRulesetResponse updateRuleset(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = updateRulesetWithHttpInfo(rulesetId, updateRulesetRequest, siteId); - return localVarResp.getData(); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Update Ruleset - * Updates an existing ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param updateRulesetRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateRulesetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse updateRulesetWithHttpInfo(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateRulesetValidateBeforeCall(rulesetId, updateRulesetRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateRulesetValidateBeforeCall(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'rulesetId' is set + if (rulesetId == null) { + throw new ApiException( + "Missing the required parameter 'rulesetId' when calling updateRuleset(Async)"); } - /** - * Update Ruleset (asynchronously) - * Updates an existing ruleset; available as an Add-On Module - * @param rulesetId Ruleset Identifier (required) - * @param updateRulesetRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateRulesetAsync(@javax.annotation.Nonnull String rulesetId, @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateRulesetValidateBeforeCall(rulesetId, updateRulesetRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'updateRulesetRequest' is set + if (updateRulesetRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateRulesetRequest' when calling updateRuleset(Async)"); } + + return updateRulesetCall(rulesetId, updateRulesetRequest, siteId, _callback); + + } + + /** + * Update Ruleset Updates an existing ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param updateRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateRulesetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public UpdateRulesetResponse updateRuleset(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + updateRulesetWithHttpInfo(rulesetId, updateRulesetRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update Ruleset Updates an existing ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param updateRulesetRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateRulesetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse updateRulesetWithHttpInfo( + @javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + updateRulesetValidateBeforeCall(rulesetId, updateRulesetRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Ruleset (asynchronously) Updates an existing ruleset; available as an Add-On Module + * + * @param rulesetId Ruleset Identifier (required) + * @param updateRulesetRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateRulesetAsync(@javax.annotation.Nonnull String rulesetId, + @javax.annotation.Nonnull UpdateRulesetRequest updateRulesetRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateRulesetValidateBeforeCall(rulesetId, updateRulesetRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/SchemasApi.java b/src/main/java/com/formkiq/client/api/SchemasApi.java index de86f82ed..e8f56a966 100644 --- a/src/main/java/com/formkiq/client/api/SchemasApi.java +++ b/src/main/java/com/formkiq/client/api/SchemasApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -46,1333 +53,1958 @@ import java.util.Map; public class SchemasApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public SchemasApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SchemasApi() { + this(Configuration.getDefaultApiClient()); + } + + public SchemasApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addClassification + * + * @param siteId Site Identifier (required) + * @param addClassificationRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addClassificationCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public SchemasApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addClassificationRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling addClassification(Async)"); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + // verify the required parameter 'addClassificationRequest' is set + if (addClassificationRequest == null) { + throw new ApiException( + "Missing the required parameter 'addClassificationRequest' when calling addClassification(Async)"); } - /** - * Build call for addClassification - * @param siteId Site Identifier (required) - * @param addClassificationRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addClassificationCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addClassificationRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addClassificationCall(siteId, addClassificationRequest, _callback); + + } + + /** + * Add Classification Add Classification + * + * @param siteId Site Identifier (required) + * @param addClassificationRequest (required) + * @return AddClassificationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddClassificationResponse addClassification(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest) + throws ApiException { + ApiResponse localVarResp = + addClassificationWithHttpInfo(siteId, addClassificationRequest); + return localVarResp.getData(); + } + + /** + * Add Classification Add Classification + * + * @param siteId Site Identifier (required) + * @param addClassificationRequest (required) + * @return ApiResponse<AddClassificationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addClassificationWithHttpInfo( + @javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest) + throws ApiException { + okhttp3.Call localVarCall = + addClassificationValidateBeforeCall(siteId, addClassificationRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Classification (asynchronously) Add Classification + * + * @param siteId Site Identifier (required) + * @param addClassificationRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addClassificationAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + addClassificationValidateBeforeCall(siteId, addClassificationRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteClassification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteClassificationCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling addClassification(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'addClassificationRequest' is set - if (addClassificationRequest == null) { - throw new ApiException("Missing the required parameter 'addClassificationRequest' when calling addClassification(Async)"); - } + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications/{classificationId}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "classificationId" + "}", + localVarApiClient.escapeString(classificationId.toString())); - return addClassificationCall(siteId, addClassificationRequest, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add Classification - * Add Classification - * @param siteId Site Identifier (required) - * @param addClassificationRequest (required) - * @return AddClassificationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddClassificationResponse addClassification(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest) throws ApiException { - ApiResponse localVarResp = addClassificationWithHttpInfo(siteId, addClassificationRequest); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add Classification - * Add Classification - * @param siteId Site Identifier (required) - * @param addClassificationRequest (required) - * @return ApiResponse<AddClassificationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addClassificationWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest) throws ApiException { - okhttp3.Call localVarCall = addClassificationValidateBeforeCall(siteId, addClassificationRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteClassificationValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling deleteClassification(Async)"); } - /** - * Add Classification (asynchronously) - * Add Classification - * @param siteId Site Identifier (required) - * @param addClassificationRequest (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addClassificationAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddClassificationRequest addClassificationRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addClassificationValidateBeforeCall(siteId, addClassificationRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'classificationId' is set + if (classificationId == null) { + throw new ApiException( + "Missing the required parameter 'classificationId' when calling deleteClassification(Async)"); } - /** - * Build call for deleteClassification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteClassificationCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications/{classificationId}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "classificationId" + "}", localVarApiClient.escapeString(classificationId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return deleteClassificationCall(siteId, classificationId, _callback); + + } + + /** + * Delete Classification Delete Classification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteClassification(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId) throws ApiException { + ApiResponse localVarResp = + deleteClassificationWithHttpInfo(siteId, classificationId); + return localVarResp.getData(); + } + + /** + * Delete Classification Delete Classification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteClassificationWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId) + throws ApiException { + okhttp3.Call localVarCall = + deleteClassificationValidateBeforeCall(siteId, classificationId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Classification (asynchronously) Delete Classification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteClassificationAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteClassificationValidateBeforeCall(siteId, classificationId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getClassification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getClassificationCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling deleteClassification(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'classificationId' is set - if (classificationId == null) { - throw new ApiException("Missing the required parameter 'classificationId' when calling deleteClassification(Async)"); - } + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications/{classificationId}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "classificationId" + "}", + localVarApiClient.escapeString(classificationId.toString())); - return deleteClassificationCall(siteId, classificationId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); } - /** - * Delete Classification - * Delete Classification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteClassification(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId) throws ApiException { - ApiResponse localVarResp = deleteClassificationWithHttpInfo(siteId, classificationId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete Classification - * Delete Classification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteClassificationWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId) throws ApiException { - okhttp3.Call localVarCall = deleteClassificationValidateBeforeCall(siteId, classificationId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Delete Classification (asynchronously) - * Delete Classification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteClassificationAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteClassificationValidateBeforeCall(siteId, classificationId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getClassification(Async)"); } - /** - * Build call for getClassification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getClassificationCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications/{classificationId}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "classificationId" + "}", localVarApiClient.escapeString(classificationId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (locale != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'classificationId' is set + if (classificationId == null) { + throw new ApiException( + "Missing the required parameter 'classificationId' when calling getClassification(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getClassification(Async)"); - } + return getClassificationCall(siteId, classificationId, locale, _callback); + + } + + /** + * Get Classification Get Classification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return GetClassificationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetClassificationResponse getClassification(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale) + throws ApiException { + ApiResponse localVarResp = + getClassificationWithHttpInfo(siteId, classificationId, locale); + return localVarResp.getData(); + } + + /** + * Get Classification Get Classification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return ApiResponse<GetClassificationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getClassificationWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nullable String locale) throws ApiException { + okhttp3.Call localVarCall = + getClassificationValidateBeforeCall(siteId, classificationId, locale, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Classification (asynchronously) Get Classification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getClassificationAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getClassificationValidateBeforeCall(siteId, classificationId, locale, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getClassificationAttributeAllowedValues + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getClassificationAttributeAllowedValuesCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; - // verify the required parameter 'classificationId' is set - if (classificationId == null) { - throw new ApiException("Missing the required parameter 'classificationId' when calling getClassification(Async)"); - } + // create path and map variables + String localVarPath = + "/sites/{siteId}/classifications/{classificationId}/attributes/{key}/allowedValues" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "classificationId" + "}", + localVarApiClient.escapeString(classificationId.toString())) + .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); - return getClassificationCall(siteId, classificationId, locale, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); } - /** - * Get Classification - * Get Classification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return GetClassificationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetClassificationResponse getClassification(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale) throws ApiException { - ApiResponse localVarResp = getClassificationWithHttpInfo(siteId, classificationId, locale); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get Classification - * Get Classification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return ApiResponse<GetClassificationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getClassificationWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale) throws ApiException { - okhttp3.Call localVarCall = getClassificationValidateBeforeCall(siteId, classificationId, locale, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get Classification (asynchronously) - * Get Classification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getClassificationAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getClassificationValidateBeforeCall(siteId, classificationId, locale, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getClassificationAttributeAllowedValuesValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getClassificationAttributeAllowedValues(Async)"); } - /** - * Build call for getClassificationAttributeAllowedValues - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getClassificationAttributeAllowedValuesCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications/{classificationId}/attributes/{key}/allowedValues" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "classificationId" + "}", localVarApiClient.escapeString(classificationId.toString())) - .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (locale != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + // verify the required parameter 'classificationId' is set + if (classificationId == null) { + throw new ApiException( + "Missing the required parameter 'classificationId' when calling getClassificationAttributeAllowedValues(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getClassificationAttributeAllowedValuesValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getClassificationAttributeAllowedValues(Async)"); - } + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException( + "Missing the required parameter 'key' when calling getClassificationAttributeAllowedValues(Async)"); + } - // verify the required parameter 'classificationId' is set - if (classificationId == null) { - throw new ApiException("Missing the required parameter 'classificationId' when calling getClassificationAttributeAllowedValues(Async)"); - } + return getClassificationAttributeAllowedValuesCall(siteId, classificationId, key, locale, + _callback); + + } + + /** + * Get Classification's Attribute Allowed Values Returns an attribute's allowed values + * that spans for a specific classifications and site schema + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return GetAttributeAllowedValuesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetAttributeAllowedValuesResponse getClassificationAttributeAllowedValues( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) + throws ApiException { + ApiResponse localVarResp = + getClassificationAttributeAllowedValuesWithHttpInfo(siteId, classificationId, key, locale); + return localVarResp.getData(); + } + + /** + * Get Classification's Attribute Allowed Values Returns an attribute's allowed values + * that spans for a specific classifications and site schema + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return ApiResponse<GetAttributeAllowedValuesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getClassificationAttributeAllowedValuesWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) + throws ApiException { + okhttp3.Call localVarCall = getClassificationAttributeAllowedValuesValidateBeforeCall(siteId, + classificationId, key, locale, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Classification's Attribute Allowed Values (asynchronously) Returns an attribute's + * allowed values that spans for a specific classifications and site schema + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getClassificationAttributeAllowedValuesAsync( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getClassificationAttributeAllowedValuesValidateBeforeCall(siteId, + classificationId, key, locale, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getSitesClassifications + * + * @param siteId Site Identifier (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSitesClassificationsCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException("Missing the required parameter 'key' when calling getClassificationAttributeAllowedValues(Async)"); - } + Object localVarPostBody = null; - return getClassificationAttributeAllowedValuesCall(siteId, classificationId, key, locale, _callback); + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Get Classification's Attribute Allowed Values - * Returns an attribute's allowed values that spans for a specific classifications and site schema - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return GetAttributeAllowedValuesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetAttributeAllowedValuesResponse getClassificationAttributeAllowedValues(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) throws ApiException { - ApiResponse localVarResp = getClassificationAttributeAllowedValuesWithHttpInfo(siteId, classificationId, key, locale); - return localVarResp.getData(); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Get Classification's Attribute Allowed Values - * Returns an attribute's allowed values that spans for a specific classifications and site schema - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return ApiResponse<GetAttributeAllowedValuesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getClassificationAttributeAllowedValuesWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) throws ApiException { - okhttp3.Call localVarCall = getClassificationAttributeAllowedValuesValidateBeforeCall(siteId, classificationId, key, locale, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - /** - * Get Classification's Attribute Allowed Values (asynchronously) - * Returns an attribute's allowed values that spans for a specific classifications and site schema - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getClassificationAttributeAllowedValuesAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getClassificationAttributeAllowedValuesValidateBeforeCall(siteId, classificationId, key, locale, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getSitesClassifications - * @param siteId Site Identifier (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSitesClassificationsCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getSitesClassificationsValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getSitesClassifications(Async)"); - } - - return getSitesClassificationsCall(siteId, limit, next, _callback); - + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get Sites Classifications - * Gets Sites Classifications - * @param siteId Site Identifier (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetClassificationsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetClassificationsResponse getSitesClassifications(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getSitesClassificationsWithHttpInfo(siteId, limit, next); - return localVarResp.getData(); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSitesClassificationsValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getSitesClassifications(Async)"); } - /** - * Get Sites Classifications - * Gets Sites Classifications - * @param siteId Site Identifier (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetClassificationsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getSitesClassificationsWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getSitesClassificationsValidateBeforeCall(siteId, limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + return getSitesClassificationsCall(siteId, limit, next, _callback); + + } + + /** + * Get Sites Classifications Gets Sites Classifications + * + * @param siteId Site Identifier (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetClassificationsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetClassificationsResponse getSitesClassifications(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + ApiResponse localVarResp = + getSitesClassificationsWithHttpInfo(siteId, limit, next); + return localVarResp.getData(); + } + + /** + * Get Sites Classifications Gets Sites Classifications + * + * @param siteId Site Identifier (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetClassificationsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getSitesClassificationsWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = + getSitesClassificationsValidateBeforeCall(siteId, limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Sites Classifications (asynchronously) Gets Sites Classifications + * + * @param siteId Site Identifier (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSitesClassificationsAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getSitesClassificationsValidateBeforeCall(siteId, limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getSitesSchema + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSitesSchemaCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Get Sites Classifications (asynchronously) - * Gets Sites Classifications - * @param siteId Site Identifier (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSitesClassificationsAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSitesClassificationsValidateBeforeCall(siteId, limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getSitesSchema - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSitesSchemaCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/schema/document" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (locale != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } + Object localVarPostBody = null; - @SuppressWarnings("rawtypes") - private okhttp3.Call getSitesSchemaValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getSitesSchema(Async)"); - } + // create path and map variables + String localVarPath = "/sites/{siteId}/schema/document".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); - return getSitesSchemaCall(siteId, locale, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); } - /** - * Get Sites Schema - * Gets Sites schema - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return GetSitesSchemaResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetSitesSchemaResponse getSitesSchema(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale) throws ApiException { - ApiResponse localVarResp = getSitesSchemaWithHttpInfo(siteId, locale); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get Sites Schema - * Gets Sites schema - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return ApiResponse<GetSitesSchemaResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getSitesSchemaWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale) throws ApiException { - okhttp3.Call localVarCall = getSitesSchemaValidateBeforeCall(siteId, locale, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get Sites Schema (asynchronously) - * Gets Sites schema - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSitesSchemaAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSitesSchemaValidateBeforeCall(siteId, locale, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSitesSchemaValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getSitesSchema(Async)"); } - /** - * Build call for getSitesSchemaAttributeAllowedValues - * @param siteId Site Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSitesSchemaAttributeAllowedValuesCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/schema/document/attributes/{key}/allowedValues" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (locale != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return getSitesSchemaCall(siteId, locale, _callback); + + } + + /** + * Get Sites Schema Gets Sites schema + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return GetSitesSchemaResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetSitesSchemaResponse getSitesSchema(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String locale) throws ApiException { + ApiResponse localVarResp = getSitesSchemaWithHttpInfo(siteId, locale); + return localVarResp.getData(); + } + + /** + * Get Sites Schema Gets Sites schema + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return ApiResponse<GetSitesSchemaResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getSitesSchemaWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String locale) + throws ApiException { + okhttp3.Call localVarCall = getSitesSchemaValidateBeforeCall(siteId, locale, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Sites Schema (asynchronously) Gets Sites schema + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSitesSchemaAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String locale, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getSitesSchemaValidateBeforeCall(siteId, locale, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getSitesSchemaAttributeAllowedValues + * + * @param siteId Site Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSitesSchemaAttributeAllowedValuesCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, + @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call getSitesSchemaAttributeAllowedValuesValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getSitesSchemaAttributeAllowedValues(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'key' is set - if (key == null) { - throw new ApiException("Missing the required parameter 'key' when calling getSitesSchemaAttributeAllowedValues(Async)"); - } + // create path and map variables + String localVarPath = "/sites/{siteId}/schema/document/attributes/{key}/allowedValues" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "key" + "}", localVarApiClient.escapeString(key.toString())); - return getSitesSchemaAttributeAllowedValuesCall(siteId, key, locale, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (locale != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("locale", locale)); } - /** - * Get Attribute Allowed Values - * Returns an attribute's allowed values from the site schema - * @param siteId Site Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return GetAttributeAllowedValuesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetAttributeAllowedValuesResponse getSitesSchemaAttributeAllowedValues(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) throws ApiException { - ApiResponse localVarResp = getSitesSchemaAttributeAllowedValuesWithHttpInfo(siteId, key, locale); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get Attribute Allowed Values - * Returns an attribute's allowed values from the site schema - * @param siteId Site Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (optional) - * @return ApiResponse<GetAttributeAllowedValuesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getSitesSchemaAttributeAllowedValuesWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale) throws ApiException { - okhttp3.Call localVarCall = getSitesSchemaAttributeAllowedValuesValidateBeforeCall(siteId, key, locale, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get Attribute Allowed Values (asynchronously) - * Returns an attribute's allowed values from the site schema - * @param siteId Site Identifier (required) - * @param key Key Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSitesSchemaAttributeAllowedValuesAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSitesSchemaAttributeAllowedValuesValidateBeforeCall(siteId, key, locale, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSitesSchemaAttributeAllowedValuesValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, + @javax.annotation.Nullable String locale, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getSitesSchemaAttributeAllowedValues(Async)"); } - /** - * Build call for setClassification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param setClassificationRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call setClassificationCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setClassificationRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/classifications/{classificationId}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "classificationId" + "}", localVarApiClient.escapeString(classificationId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'key' is set + if (key == null) { + throw new ApiException( + "Missing the required parameter 'key' when calling getSitesSchemaAttributeAllowedValues(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call setClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling setClassification(Async)"); - } + return getSitesSchemaAttributeAllowedValuesCall(siteId, key, locale, _callback); + + } + + /** + * Get Attribute Allowed Values Returns an attribute's allowed values from the site schema + * + * @param siteId Site Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return GetAttributeAllowedValuesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetAttributeAllowedValuesResponse getSitesSchemaAttributeAllowedValues( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, + @javax.annotation.Nullable String locale) throws ApiException { + ApiResponse localVarResp = + getSitesSchemaAttributeAllowedValuesWithHttpInfo(siteId, key, locale); + return localVarResp.getData(); + } + + /** + * Get Attribute Allowed Values Returns an attribute's allowed values from the site schema + * + * @param siteId Site Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (optional) + * @return ApiResponse<GetAttributeAllowedValuesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getSitesSchemaAttributeAllowedValuesWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, + @javax.annotation.Nullable String locale) throws ApiException { + okhttp3.Call localVarCall = + getSitesSchemaAttributeAllowedValuesValidateBeforeCall(siteId, key, locale, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Attribute Allowed Values (asynchronously) Returns an attribute's allowed values from + * the site schema + * + * @param siteId Site Identifier (required) + * @param key Key Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSitesSchemaAttributeAllowedValuesAsync( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String key, + @javax.annotation.Nullable String locale, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getSitesSchemaAttributeAllowedValuesValidateBeforeCall(siteId, key, locale, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setClassification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param setClassificationRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call setClassificationCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } - // verify the required parameter 'classificationId' is set - if (classificationId == null) { - throw new ApiException("Missing the required parameter 'classificationId' when calling setClassification(Async)"); - } + Object localVarPostBody = setClassificationRequest; - // verify the required parameter 'setClassificationRequest' is set - if (setClassificationRequest == null) { - throw new ApiException("Missing the required parameter 'setClassificationRequest' when calling setClassification(Async)"); - } + // create path and map variables + String localVarPath = "/sites/{siteId}/classifications/{classificationId}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "classificationId" + "}", + localVarApiClient.escapeString(classificationId.toString())); - return setClassificationCall(siteId, classificationId, setClassificationRequest, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set Classification - * Sets Classification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param setClassificationRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public SetResponse setClassification(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest) throws ApiException { - ApiResponse localVarResp = setClassificationWithHttpInfo(siteId, classificationId, setClassificationRequest); - return localVarResp.getData(); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set Classification - * Sets Classification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param setClassificationRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse setClassificationWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest) throws ApiException { - okhttp3.Call localVarCall = setClassificationValidateBeforeCall(siteId, classificationId, setClassificationRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setClassificationValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling setClassification(Async)"); } - /** - * Set Classification (asynchronously) - * Sets Classification - * @param siteId Site Identifier (required) - * @param classificationId Classification Identifier (required) - * @param setClassificationRequest (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call setClassificationAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setClassificationValidateBeforeCall(siteId, classificationId, setClassificationRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'classificationId' is set + if (classificationId == null) { + throw new ApiException( + "Missing the required parameter 'classificationId' when calling setClassification(Async)"); } - /** - * Build call for setSitesSchema - * @param siteId Site Identifier (required) - * @param setSitesSchemaRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call setSitesSchemaCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setSitesSchemaRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/schema/document" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + // verify the required parameter 'setClassificationRequest' is set + if (setClassificationRequest == null) { + throw new ApiException( + "Missing the required parameter 'setClassificationRequest' when calling setClassification(Async)"); } - @SuppressWarnings("rawtypes") - private okhttp3.Call setSitesSchemaValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling setSitesSchema(Async)"); - } + return setClassificationCall(siteId, classificationId, setClassificationRequest, _callback); + + } + + /** + * Set Classification Sets Classification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param setClassificationRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public SetResponse setClassification(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest) + throws ApiException { + ApiResponse localVarResp = + setClassificationWithHttpInfo(siteId, classificationId, setClassificationRequest); + return localVarResp.getData(); + } + + /** + * Set Classification Sets Classification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param setClassificationRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse setClassificationWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest) + throws ApiException { + okhttp3.Call localVarCall = setClassificationValidateBeforeCall(siteId, classificationId, + setClassificationRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set Classification (asynchronously) Sets Classification + * + * @param siteId Site Identifier (required) + * @param classificationId Classification Identifier (required) + * @param setClassificationRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call setClassificationAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String classificationId, + @javax.annotation.Nonnull SetClassificationRequest setClassificationRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setClassificationValidateBeforeCall(siteId, classificationId, + setClassificationRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setSitesSchema + * + * @param siteId Site Identifier (required) + * @param setSitesSchemaRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call setSitesSchemaCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setSitesSchemaRequest; - // verify the required parameter 'setSitesSchemaRequest' is set - if (setSitesSchemaRequest == null) { - throw new ApiException("Missing the required parameter 'setSitesSchemaRequest' when calling setSitesSchema(Async)"); - } + // create path and map variables + String localVarPath = "/sites/{siteId}/schema/document".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); - return setSitesSchemaCall(siteId, setSitesSchemaRequest, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set Sites Schema - * Sets Sites schema - * @param siteId Site Identifier (required) - * @param setSitesSchemaRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public SetResponse setSitesSchema(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest) throws ApiException { - ApiResponse localVarResp = setSitesSchemaWithHttpInfo(siteId, setSitesSchemaRequest); - return localVarResp.getData(); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set Sites Schema - * Sets Sites schema - * @param siteId Site Identifier (required) - * @param setSitesSchemaRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse setSitesSchemaWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest) throws ApiException { - okhttp3.Call localVarCall = setSitesSchemaValidateBeforeCall(siteId, setSitesSchemaRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setSitesSchemaValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling setSitesSchema(Async)"); } - /** - * Set Sites Schema (asynchronously) - * Sets Sites schema - * @param siteId Site Identifier (required) - * @param setSitesSchemaRequest (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call setSitesSchemaAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setSitesSchemaValidateBeforeCall(siteId, setSitesSchemaRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'setSitesSchemaRequest' is set + if (setSitesSchemaRequest == null) { + throw new ApiException( + "Missing the required parameter 'setSitesSchemaRequest' when calling setSitesSchema(Async)"); } + + return setSitesSchemaCall(siteId, setSitesSchemaRequest, _callback); + + } + + /** + * Set Sites Schema Sets Sites schema + * + * @param siteId Site Identifier (required) + * @param setSitesSchemaRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public SetResponse setSitesSchema(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest) throws ApiException { + ApiResponse localVarResp = + setSitesSchemaWithHttpInfo(siteId, setSitesSchemaRequest); + return localVarResp.getData(); + } + + /** + * Set Sites Schema Sets Sites schema + * + * @param siteId Site Identifier (required) + * @param setSitesSchemaRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse setSitesSchemaWithHttpInfo( + @javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest) throws ApiException { + okhttp3.Call localVarCall = + setSitesSchemaValidateBeforeCall(siteId, setSitesSchemaRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set Sites Schema (asynchronously) Sets Sites schema + * + * @param siteId Site Identifier (required) + * @param setSitesSchemaRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call setSitesSchemaAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetSitesSchemaRequest setSitesSchemaRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + setSitesSchemaValidateBeforeCall(siteId, setSitesSchemaRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/SystemManagementApi.java b/src/main/java/com/formkiq/client/api/SystemManagementApi.java index 7b4f75032..f8094f561 100644 --- a/src/main/java/com/formkiq/client/api/SystemManagementApi.java +++ b/src/main/java/com/formkiq/client/api/SystemManagementApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -69,5033 +76,7257 @@ import java.util.Map; public class SystemManagementApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public SystemManagementApi() { - this(Configuration.getDefaultApiClient()); - } - - public SystemManagementApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addApiKey - * @param siteId Site Identifier (required) - * @param addApiKeyRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addApiKeyCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addApiKeyRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/apiKeys" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addApiKeyValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling addApiKey(Async)"); - } - - // verify the required parameter 'addApiKeyRequest' is set - if (addApiKeyRequest == null) { - throw new ApiException("Missing the required parameter 'addApiKeyRequest' when calling addApiKey(Async)"); - } - - return addApiKeyCall(siteId, addApiKeyRequest, _callback); - - } - - /** - * Add API Key - * Adds a new API Key - * @param siteId Site Identifier (required) - * @param addApiKeyRequest (required) - * @return AddApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddApiKeyResponse addApiKey(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest) throws ApiException { - ApiResponse localVarResp = addApiKeyWithHttpInfo(siteId, addApiKeyRequest); - return localVarResp.getData(); - } - - /** - * Add API Key - * Adds a new API Key - * @param siteId Site Identifier (required) - * @param addApiKeyRequest (required) - * @return ApiResponse<AddApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addApiKeyWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest) throws ApiException { - okhttp3.Call localVarCall = addApiKeyValidateBeforeCall(siteId, addApiKeyRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add API Key (asynchronously) - * Adds a new API Key - * @param siteId Site Identifier (required) - * @param addApiKeyRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addApiKeyAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addApiKeyValidateBeforeCall(siteId, addApiKeyRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addLocale - * @param siteId Site Identifier (required) - * @param addLocaleRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addLocaleCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addLocaleRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addLocaleValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling addLocale(Async)"); - } - - // verify the required parameter 'addLocaleRequest' is set - if (addLocaleRequest == null) { - throw new ApiException("Missing the required parameter 'addLocaleRequest' when calling addLocale(Async)"); - } - - return addLocaleCall(siteId, addLocaleRequest, _callback); - - } - - /** - * Add Locale - * Adds a new locale to the specified site - * @param siteId Site Identifier (required) - * @param addLocaleRequest (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddResponse addLocale(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest) throws ApiException { - ApiResponse localVarResp = addLocaleWithHttpInfo(siteId, addLocaleRequest); - return localVarResp.getData(); - } - - /** - * Add Locale - * Adds a new locale to the specified site - * @param siteId Site Identifier (required) - * @param addLocaleRequest (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addLocaleWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest) throws ApiException { - okhttp3.Call localVarCall = addLocaleValidateBeforeCall(siteId, addLocaleRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Locale (asynchronously) - * Adds a new locale to the specified site - * @param siteId Site Identifier (required) - * @param addLocaleRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addLocaleAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addLocaleValidateBeforeCall(siteId, addLocaleRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addLocaleResourceItem - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param addLocaleResourceItemRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addLocaleResourceItemRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addLocaleResourceItemValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling addLocaleResourceItem(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException("Missing the required parameter 'locale' when calling addLocaleResourceItem(Async)"); - } - - // verify the required parameter 'addLocaleResourceItemRequest' is set - if (addLocaleResourceItemRequest == null) { - throw new ApiException("Missing the required parameter 'addLocaleResourceItemRequest' when calling addLocaleResourceItem(Async)"); - } - - return addLocaleResourceItemCall(siteId, locale, addLocaleResourceItemRequest, _callback); - - } - - /** - * Add Locale Resource Item - * Adds a new localized resource item for a given locale - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param addLocaleResourceItemRequest (required) - * @return AddLocaleResourceItemResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddLocaleResourceItemResponse addLocaleResourceItem(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest) throws ApiException { - ApiResponse localVarResp = addLocaleResourceItemWithHttpInfo(siteId, locale, addLocaleResourceItemRequest); - return localVarResp.getData(); - } - - /** - * Add Locale Resource Item - * Adds a new localized resource item for a given locale - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param addLocaleResourceItemRequest (required) - * @return ApiResponse<AddLocaleResourceItemResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addLocaleResourceItemWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest) throws ApiException { - okhttp3.Call localVarCall = addLocaleResourceItemValidateBeforeCall(siteId, locale, addLocaleResourceItemRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Locale Resource Item (asynchronously) - * Adds a new localized resource item for a given locale - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param addLocaleResourceItemRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addLocaleResourceItemValidateBeforeCall(siteId, locale, addLocaleResourceItemRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addOpenSearchRestoreSnapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addOpenSearchRestoreSnapshotCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}/restore" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addOpenSearchRestoreSnapshotValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling addOpenSearchRestoreSnapshot(Async)"); - } - - // verify the required parameter 'snapshotName' is set - if (snapshotName == null) { - throw new ApiException("Missing the required parameter 'snapshotName' when calling addOpenSearchRestoreSnapshot(Async)"); - } - - return addOpenSearchRestoreSnapshotCall(siteId, snapshotName, _callback); - - } - - /** - * Add an OpenSearch Restore Snapshot - * Add an OpenSearch Restore Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddResponse addOpenSearchRestoreSnapshot(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { - ApiResponse localVarResp = addOpenSearchRestoreSnapshotWithHttpInfo(siteId, snapshotName); - return localVarResp.getData(); - } - - /** - * Add an OpenSearch Restore Snapshot - * Add an OpenSearch Restore Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addOpenSearchRestoreSnapshotWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { - okhttp3.Call localVarCall = addOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add an OpenSearch Restore Snapshot (asynchronously) - * Add an OpenSearch Restore Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addOpenSearchRestoreSnapshotAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addOpenSearchSnapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addOpenSearchSnapshotValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling addOpenSearchSnapshot(Async)"); - } - - // verify the required parameter 'snapshotName' is set - if (snapshotName == null) { - throw new ApiException("Missing the required parameter 'snapshotName' when calling addOpenSearchSnapshot(Async)"); - } - - return addOpenSearchSnapshotCall(siteId, snapshotName, _callback); - - } - - /** - * Add an OpenSearch Snapshot - * Add an OpenSearch Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddResponse addOpenSearchSnapshot(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { - ApiResponse localVarResp = addOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); - return localVarResp.getData(); - } - - /** - * Add an OpenSearch Snapshot - * Add an OpenSearch Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addOpenSearchSnapshotWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { - okhttp3.Call localVarCall = addOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add an OpenSearch Snapshot (asynchronously) - * Add an OpenSearch Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addSite - * @param addSiteRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addSiteCall(@javax.annotation.Nonnull AddSiteRequest addSiteRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addSiteRequest; - - // create path and map variables - String localVarPath = "/sites"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addSiteValidateBeforeCall(@javax.annotation.Nonnull AddSiteRequest addSiteRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addSiteRequest' is set - if (addSiteRequest == null) { - throw new ApiException("Missing the required parameter 'addSiteRequest' when calling addSite(Async)"); - } - - return addSiteCall(addSiteRequest, _callback); - - } - - /** - * Add Site - * Add Site - * @param addSiteRequest (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public AddResponse addSite(@javax.annotation.Nonnull AddSiteRequest addSiteRequest) throws ApiException { - ApiResponse localVarResp = addSiteWithHttpInfo(addSiteRequest); - return localVarResp.getData(); - } - - /** - * Add Site - * Add Site - * @param addSiteRequest (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse addSiteWithHttpInfo(@javax.annotation.Nonnull AddSiteRequest addSiteRequest) throws ApiException { - okhttp3.Call localVarCall = addSiteValidateBeforeCall(addSiteRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add Site (asynchronously) - * Add Site - * @param addSiteRequest (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call addSiteAsync(@javax.annotation.Nonnull AddSiteRequest addSiteRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addSiteValidateBeforeCall(addSiteRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteApiKey - * @param siteId Site Identifier (required) - * @param apiKey API Key (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteApiKeyCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/apiKeys/{apiKey}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "apiKey" + "}", localVarApiClient.escapeString(apiKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteApiKeyValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling deleteApiKey(Async)"); - } - - // verify the required parameter 'apiKey' is set - if (apiKey == null) { - throw new ApiException("Missing the required parameter 'apiKey' when calling deleteApiKey(Async)"); - } - - return deleteApiKeyCall(siteId, apiKey, _callback); - - } - - /** - * Delete API Key - * Adds a new API Key - * @param siteId Site Identifier (required) - * @param apiKey API Key (required) - * @return DeleteApiKeyResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteApiKeyResponse deleteApiKey(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey) throws ApiException { - ApiResponse localVarResp = deleteApiKeyWithHttpInfo(siteId, apiKey); - return localVarResp.getData(); - } - - /** - * Delete API Key - * Adds a new API Key - * @param siteId Site Identifier (required) - * @param apiKey API Key (required) - * @return ApiResponse<DeleteApiKeyResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteApiKeyWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey) throws ApiException { - okhttp3.Call localVarCall = deleteApiKeyValidateBeforeCall(siteId, apiKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete API Key (asynchronously) - * Adds a new API Key - * @param siteId Site Identifier (required) - * @param apiKey API Key (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteApiKeyAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteApiKeyValidateBeforeCall(siteId, apiKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteLocale - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteLocaleCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteLocaleValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling deleteLocale(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException("Missing the required parameter 'locale' when calling deleteLocale(Async)"); - } - - return deleteLocaleCall(siteId, locale, _callback); - - } - - /** - * Delete Locale - * Delete Locale - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteLocale(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale) throws ApiException { - ApiResponse localVarResp = deleteLocaleWithHttpInfo(siteId, locale); - return localVarResp.getData(); - } - - /** - * Delete Locale - * Delete Locale - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteLocaleWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale) throws ApiException { - okhttp3.Call localVarCall = deleteLocaleValidateBeforeCall(siteId, locale, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Locale (asynchronously) - * Delete Locale - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteLocaleAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteLocaleValidateBeforeCall(siteId, locale, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteLocaleResourceItem - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) - .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteLocaleResourceItemValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling deleteLocaleResourceItem(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException("Missing the required parameter 'locale' when calling deleteLocaleResourceItem(Async)"); - } - - // verify the required parameter 'itemKey' is set - if (itemKey == null) { - throw new ApiException("Missing the required parameter 'itemKey' when calling deleteLocaleResourceItem(Async)"); - } - - return deleteLocaleResourceItemCall(siteId, locale, itemKey, _callback); - - } - - /** - * Delete Local Resource Item - * Delete Local Resource Item - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteLocaleResourceItem(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey) throws ApiException { - ApiResponse localVarResp = deleteLocaleResourceItemWithHttpInfo(siteId, locale, itemKey); - return localVarResp.getData(); - } - - /** - * Delete Local Resource Item - * Delete Local Resource Item - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteLocaleResourceItemWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey) throws ApiException { - okhttp3.Call localVarCall = deleteLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Local Resource Item (asynchronously) - * Delete Local Resource Item - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteOpenSearchIndex - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/index" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpenSearchIndexValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling deleteOpenSearchIndex(Async)"); - } - - return deleteOpenSearchIndexCall(siteId, _callback); - - } - - /** - * Deletes site(s) OpenSearch index - * Deletes the OpenSearch index - * @param siteId Site Identifier (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteOpenSearchIndex(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = deleteOpenSearchIndexWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Deletes site(s) OpenSearch index - * Deletes the OpenSearch index - * @param siteId Site Identifier (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteOpenSearchIndexWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteOpenSearchIndexValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes site(s) OpenSearch index (asynchronously) - * Deletes the OpenSearch index - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteOpenSearchIndexValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteOpenSearchIndexByName - * @param indexName IndexName to path (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpenSearchIndexByNameCall(@javax.annotation.Nonnull String indexName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/global/opensearch/indices/{indexName}" - .replace("{" + "indexName" + "}", localVarApiClient.escapeString(indexName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpenSearchIndexByNameValidateBeforeCall(@javax.annotation.Nonnull String indexName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexName' is set - if (indexName == null) { - throw new ApiException("Missing the required parameter 'indexName' when calling deleteOpenSearchIndexByName(Async)"); - } - - return deleteOpenSearchIndexByNameCall(indexName, _callback); - - } - - /** - * Deletes OpenSearch index by name - * Deletes the OpenSearch index by name - * @param indexName IndexName to path (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteOpenSearchIndexByName(@javax.annotation.Nonnull String indexName) throws ApiException { - ApiResponse localVarResp = deleteOpenSearchIndexByNameWithHttpInfo(indexName); - return localVarResp.getData(); - } - - /** - * Deletes OpenSearch index by name - * Deletes the OpenSearch index by name - * @param indexName IndexName to path (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteOpenSearchIndexByNameWithHttpInfo(@javax.annotation.Nonnull String indexName) throws ApiException { - okhttp3.Call localVarCall = deleteOpenSearchIndexByNameValidateBeforeCall(indexName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes OpenSearch index by name (asynchronously) - * Deletes the OpenSearch index by name - * @param indexName IndexName to path (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpenSearchIndexByNameAsync(@javax.annotation.Nonnull String indexName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteOpenSearchIndexByNameValidateBeforeCall(indexName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteOpenSearchRestoreSnapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpenSearchRestoreSnapshotCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}/restore" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpenSearchRestoreSnapshotValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling deleteOpenSearchRestoreSnapshot(Async)"); - } - - // verify the required parameter 'snapshotName' is set - if (snapshotName == null) { - throw new ApiException("Missing the required parameter 'snapshotName' when calling deleteOpenSearchRestoreSnapshot(Async)"); - } - - return deleteOpenSearchRestoreSnapshotCall(siteId, snapshotName, _callback); - - } - - /** - * Deletes site(s) OpenSearch Restore Snapshot - * Deletes the OpenSearch Restore Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteOpenSearchRestoreSnapshot(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { - ApiResponse localVarResp = deleteOpenSearchRestoreSnapshotWithHttpInfo(siteId, snapshotName); - return localVarResp.getData(); - } - - /** - * Deletes site(s) OpenSearch Restore Snapshot - * Deletes the OpenSearch Restore Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteOpenSearchRestoreSnapshotWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { - okhttp3.Call localVarCall = deleteOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes site(s) OpenSearch Restore Snapshot (asynchronously) - * Deletes the OpenSearch Restore Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpenSearchRestoreSnapshotAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteOpenSearchSnapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpenSearchSnapshotValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling deleteOpenSearchSnapshot(Async)"); - } - - // verify the required parameter 'snapshotName' is set - if (snapshotName == null) { - throw new ApiException("Missing the required parameter 'snapshotName' when calling deleteOpenSearchSnapshot(Async)"); - } - - return deleteOpenSearchSnapshotCall(siteId, snapshotName, _callback); - - } - - /** - * Deletes site(s) OpenSearch Snapshot - * Deletes the OpenSearch Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteOpenSearchSnapshot(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { - ApiResponse localVarResp = deleteOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); - return localVarResp.getData(); - } - - /** - * Deletes site(s) OpenSearch Snapshot - * Deletes the OpenSearch Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteOpenSearchSnapshotWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { - okhttp3.Call localVarCall = deleteOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes site(s) OpenSearch Snapshot (asynchronously) - * Deletes the OpenSearch Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteOpenSearchSnapshotRepository - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpenSearchSnapshotRepositoryCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshotRepository" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteOpenSearchSnapshotRepositoryValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling deleteOpenSearchSnapshotRepository(Async)"); - } - - return deleteOpenSearchSnapshotRepositoryCall(siteId, _callback); - - } - - /** - * Deletes site(s) OpenSearch Snapshot Repository - * Deletes the OpenSearch Snapshot Repository - * @param siteId Site Identifier (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteOpenSearchSnapshotRepository(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = deleteOpenSearchSnapshotRepositoryWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Deletes site(s) OpenSearch Snapshot Repository - * Deletes the OpenSearch Snapshot Repository - * @param siteId Site Identifier (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteOpenSearchSnapshotRepositoryWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes site(s) OpenSearch Snapshot Repository (asynchronously) - * Deletes the OpenSearch Snapshot Repository - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteOpenSearchSnapshotRepositoryAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteSiteGroup - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteSiteGroupCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/groups/{groupName}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteSiteGroupValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling deleteSiteGroup(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling deleteSiteGroup(Async)"); - } - - return deleteSiteGroupCall(siteId, groupName, _callback); - - } - - /** - * Deletes Site Group and permissions - * Deletes Site Group and permissions - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteSiteGroup(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) throws ApiException { - ApiResponse localVarResp = deleteSiteGroupWithHttpInfo(siteId, groupName); - return localVarResp.getData(); - } - - /** - * Deletes Site Group and permissions - * Deletes Site Group and permissions - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteSiteGroupWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) throws ApiException { - okhttp3.Call localVarCall = deleteSiteGroupValidateBeforeCall(siteId, groupName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Deletes Site Group and permissions (asynchronously) - * Deletes Site Group and permissions - * @param siteId Site Identifier (required) - * @param groupName Group Name (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteSiteGroupAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteSiteGroupValidateBeforeCall(siteId, groupName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getAllOpenSearchIndices - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getAllOpenSearchIndicesCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/global/opensearch/indices"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAllOpenSearchIndicesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getAllOpenSearchIndicesCall(_callback); - - } - - /** - * Get all OpenSearch indices - * Returns all OpenSearch indices - * @return GetOpenSearchIndiceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetOpenSearchIndiceResponse getAllOpenSearchIndices() throws ApiException { - ApiResponse localVarResp = getAllOpenSearchIndicesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Get all OpenSearch indices - * Returns all OpenSearch indices - * @return ApiResponse<GetOpenSearchIndiceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getAllOpenSearchIndicesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAllOpenSearchIndicesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get all OpenSearch indices (asynchronously) - * Returns all OpenSearch indices - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getAllOpenSearchIndicesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAllOpenSearchIndicesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getApiKeys - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getApiKeysCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/apiKeys" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getApiKeysValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getApiKeys(Async)"); - } - - return getApiKeysCall(siteId, next, limit, _callback); - - } - - /** - * Get API Keys - * Returns the list of ApiKeys - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetApiKeysResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetApiKeysResponse getApiKeys(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getApiKeysWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get API Keys - * Returns the list of ApiKeys - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetApiKeysResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getApiKeysWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getApiKeysValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get API Keys (asynchronously) - * Returns the list of ApiKeys - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getApiKeysAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getApiKeysValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getConfiguration - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getConfigurationCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/configuration" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getConfigurationValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getConfiguration(Async)"); - } - - return getConfigurationCall(siteId, _callback); - - } - - /** - * Get site configuration - * Returns the list of sites that the user has access to - * @param siteId Site Identifier (required) - * @return GetConfigurationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetConfigurationResponse getConfiguration(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = getConfigurationWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get site configuration - * Returns the list of sites that the user has access to - * @param siteId Site Identifier (required) - * @return ApiResponse<GetConfigurationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getConfigurationWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getConfigurationValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site configuration (asynchronously) - * Returns the list of sites that the user has access to - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getConfigurationAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getConfigurationValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getLocaleResourceItem - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) - .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getLocaleResourceItemValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getLocaleResourceItem(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException("Missing the required parameter 'locale' when calling getLocaleResourceItem(Async)"); - } - - // verify the required parameter 'itemKey' is set - if (itemKey == null) { - throw new ApiException("Missing the required parameter 'itemKey' when calling getLocaleResourceItem(Async)"); - } - - return getLocaleResourceItemCall(siteId, locale, itemKey, _callback); - - } - - /** - * Get Resource Item by Locale - * Returns the resource item - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @return GetLocaleResourceItemResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetLocaleResourceItemResponse getLocaleResourceItem(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey) throws ApiException { - ApiResponse localVarResp = getLocaleResourceItemWithHttpInfo(siteId, locale, itemKey); - return localVarResp.getData(); - } - - /** - * Get Resource Item by Locale - * Returns the resource item - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @return ApiResponse<GetLocaleResourceItemResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getLocaleResourceItemWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey) throws ApiException { - okhttp3.Call localVarCall = getLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Resource Item by Locale (asynchronously) - * Returns the resource item - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getLocaleResourceItems - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getLocaleResourceItemsCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getLocaleResourceItemsValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getLocaleResourceItems(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException("Missing the required parameter 'locale' when calling getLocaleResourceItems(Async)"); - } - - return getLocaleResourceItemsCall(siteId, locale, next, limit, _callback); - - } - - /** - * Get Resource Items by Locale - * Returns the list resource items - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetLocaleResourceItemsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetLocaleResourceItemsResponse getLocaleResourceItems(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getLocaleResourceItemsWithHttpInfo(siteId, locale, next, limit); - return localVarResp.getData(); - } - - /** - * Get Resource Items by Locale - * Returns the list resource items - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetLocaleResourceItemsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getLocaleResourceItemsWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getLocaleResourceItemsValidateBeforeCall(siteId, locale, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Resource Items by Locale (asynchronously) - * Returns the list resource items - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getLocaleResourceItemsAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLocaleResourceItemsValidateBeforeCall(siteId, locale, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getLocales - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getLocalesCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getLocalesValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getLocales(Async)"); - } - - return getLocalesCall(siteId, next, limit, _callback); - - } - - /** - * Get Locales - * Returns a list of locale(s) in a specified site - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetLocalesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetLocalesResponse getLocales(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getLocalesWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); - } - - /** - * Get Locales - * Returns a list of locale(s) in a specified site - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetLocalesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getLocalesWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getLocalesValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get Locales (asynchronously) - * Returns a list of locale(s) in a specified site - * @param siteId Site Identifier (required) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getLocalesAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getLocalesValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getOpenSearchIndex - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/index" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchIndexValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getOpenSearchIndex(Async)"); - } - - return getOpenSearchIndexCall(siteId, _callback); - - } - - /** - * Get site(s) OpenSearch index settings - * Returns the OpenSearch index settings (Deprecated use /sites/{siteId}/opensearch/indices) - * @param siteId Site Identifier (required) - * @return GetOpenSearchIndexResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetOpenSearchIndexResponse getOpenSearchIndex(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = getOpenSearchIndexWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch index settings - * Returns the OpenSearch index settings (Deprecated use /sites/{siteId}/opensearch/indices) - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpenSearchIndexResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getOpenSearchIndexWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpenSearchIndexValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch index settings (asynchronously) - * Returns the OpenSearch index settings (Deprecated use /sites/{siteId}/opensearch/indices) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpenSearchIndexValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getOpenSearchIndices - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchIndicesCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/indices" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchIndicesValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getOpenSearchIndices(Async)"); - } - - return getOpenSearchIndicesCall(siteId, _callback); - - } - - /** - * Get site(s) OpenSearch indices - * Returns the OpenSearch indices - * @param siteId Site Identifier (required) - * @return GetOpenSearchIndiceResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetOpenSearchIndiceResponse getOpenSearchIndices(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = getOpenSearchIndicesWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch indices - * Returns the OpenSearch indices - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpenSearchIndiceResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getOpenSearchIndicesWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpenSearchIndicesValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch indices (asynchronously) - * Returns the OpenSearch indices - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchIndicesAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpenSearchIndicesValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getOpenSearchSnapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchSnapshotValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getOpenSearchSnapshot(Async)"); - } - - // verify the required parameter 'snapshotName' is set - if (snapshotName == null) { - throw new ApiException("Missing the required parameter 'snapshotName' when calling getOpenSearchSnapshot(Async)"); - } - - return getOpenSearchSnapshotCall(siteId, snapshotName, _callback); - - } - - /** - * Get site(s) OpenSearch snapshot - * Returns the OpenSearch Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return GetOpenSearchSnapshotResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetOpenSearchSnapshotResponse getOpenSearchSnapshot(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { - ApiResponse localVarResp = getOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch snapshot - * Returns the OpenSearch Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (required) - * @return ApiResponse<GetOpenSearchSnapshotResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getOpenSearchSnapshotWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) throws ApiException { - okhttp3.Call localVarCall = getOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch snapshot (asynchronously) - * Returns the OpenSearch Snapshot - * @param siteId Site Identifier (required) - * @param snapshotName Snapshot Name (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getOpenSearchSnapshotRepositories - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchSnapshotRepositoriesCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/global/opensearch/snapshotRepositories"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchSnapshotRepositoriesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getOpenSearchSnapshotRepositoriesCall(_callback); - - } - - /** - * Get site(s) OpenSearch snapshot repositories - * Returns the OpenSearch Snapshot Repositories - * @return GetOpenSearchSnapshotRepositoryResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepositories() throws ApiException { - ApiResponse localVarResp = getOpenSearchSnapshotRepositoriesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch snapshot repositories - * Returns the OpenSearch Snapshot Repositories - * @return ApiResponse<GetOpenSearchSnapshotRepositoryResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getOpenSearchSnapshotRepositoriesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoriesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch snapshot repositories (asynchronously) - * Returns the OpenSearch Snapshot Repositories - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchSnapshotRepositoriesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoriesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getOpenSearchSnapshotRepository - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchSnapshotRepositoryCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshotRepository" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchSnapshotRepositoryValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getOpenSearchSnapshotRepository(Async)"); - } - - return getOpenSearchSnapshotRepositoryCall(siteId, _callback); - - } - - /** - * Get site(s) OpenSearch snapshot repository - * Returns the OpenSearch Snapshot Repository - * @param siteId Site Identifier (required) - * @return GetOpenSearchSnapshotRepositoryResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepository(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = getOpenSearchSnapshotRepositoryWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch snapshot repository - * Returns the OpenSearch Snapshot Repository - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpenSearchSnapshotRepositoryResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getOpenSearchSnapshotRepositoryWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch snapshot repository (asynchronously) - * Returns the OpenSearch Snapshot Repository - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchSnapshotRepositoryAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getOpenSearchSnapshots - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchSnapshotsCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/snapshots" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getOpenSearchSnapshotsValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getOpenSearchSnapshots(Async)"); - } - - return getOpenSearchSnapshotsCall(siteId, _callback); - - } - - /** - * Get site(s) OpenSearch snapshots - * Returns the OpenSearch Snapshots - * @param siteId Site Identifier (required) - * @return GetOpenSearchSnapshotResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetOpenSearchSnapshotResponse getOpenSearchSnapshots(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = getOpenSearchSnapshotsWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get site(s) OpenSearch snapshots - * Returns the OpenSearch Snapshots - * @param siteId Site Identifier (required) - * @return ApiResponse<GetOpenSearchSnapshotResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getOpenSearchSnapshotsWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getOpenSearchSnapshotsValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) OpenSearch snapshots (asynchronously) - * Returns the OpenSearch Snapshots - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getOpenSearchSnapshotsAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getOpenSearchSnapshotsValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getSiteGroup - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSiteGroupCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/groups/{groupName}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getSiteGroupValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getSiteGroup(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling getSiteGroup(Async)"); - } - - return getSiteGroupCall(siteId, groupName, _callback); - - } - - /** - * Get group and permissions belonging to site - * Returns details of a group and permissions belonging to site - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @return GetSiteGroupResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetSiteGroupResponse getSiteGroup(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) throws ApiException { - ApiResponse localVarResp = getSiteGroupWithHttpInfo(siteId, groupName); - return localVarResp.getData(); - } - - /** - * Get group and permissions belonging to site - * Returns details of a group and permissions belonging to site - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @return ApiResponse<GetSiteGroupResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getSiteGroupWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) throws ApiException { - okhttp3.Call localVarCall = getSiteGroupValidateBeforeCall(siteId, groupName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get group and permissions belonging to site (asynchronously) - * Returns details of a group and permissions belonging to site - * @param siteId Site Identifier (required) - * @param groupName Group Name (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSiteGroupAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSiteGroupValidateBeforeCall(siteId, groupName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getSiteGroups - * @param siteId Site Identifier (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSiteGroupsCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites/{siteId}/groups" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getSiteGroupsValidateBeforeCall(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling getSiteGroups(Async)"); - } - - return getSiteGroupsCall(siteId, _callback); - - } - - /** - * Get group(s) and permissions belonging to site - * Returns list of groups and permissions belonging to site - * @param siteId Site Identifier (required) - * @return GetSiteGroupsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetSiteGroupsResponse getSiteGroups(@javax.annotation.Nonnull String siteId) throws ApiException { - ApiResponse localVarResp = getSiteGroupsWithHttpInfo(siteId); - return localVarResp.getData(); - } - - /** - * Get group(s) and permissions belonging to site - * Returns list of groups and permissions belonging to site - * @param siteId Site Identifier (required) - * @return ApiResponse<GetSiteGroupsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getSiteGroupsWithHttpInfo(@javax.annotation.Nonnull String siteId) throws ApiException { - okhttp3.Call localVarCall = getSiteGroupsValidateBeforeCall(siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get group(s) and permissions belonging to site (asynchronously) - * Returns list of groups and permissions belonging to site - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSiteGroupsAsync(@javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSiteGroupsValidateBeforeCall(siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getSites - * @param status Fetch sites with status (only valid when using SitePermissions 'defined' (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSitesCall(@javax.annotation.Nullable SiteStatus status, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/sites"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (status != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getSitesValidateBeforeCall(@javax.annotation.Nullable SiteStatus status, final ApiCallback _callback) throws ApiException { - return getSitesCall(status, _callback); - - } - - /** - * Get site(s) access - * Returns the list of sites that the user has access to - * @param status Fetch sites with status (only valid when using SitePermissions 'defined' (optional) - * @return GetSitesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetSitesResponse getSites(@javax.annotation.Nullable SiteStatus status) throws ApiException { - ApiResponse localVarResp = getSitesWithHttpInfo(status); - return localVarResp.getData(); - } - - /** - * Get site(s) access - * Returns the list of sites that the user has access to - * @param status Fetch sites with status (only valid when using SitePermissions 'defined' (optional) - * @return ApiResponse<GetSitesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getSitesWithHttpInfo(@javax.annotation.Nullable SiteStatus status) throws ApiException { - okhttp3.Call localVarCall = getSitesValidateBeforeCall(status, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get site(s) access (asynchronously) - * Returns the list of sites that the user has access to - * @param status Fetch sites with status (only valid when using SitePermissions 'defined' (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getSitesAsync(@javax.annotation.Nullable SiteStatus status, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getSitesValidateBeforeCall(status, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getVersion - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getVersionCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/version"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getVersionValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getVersionCall(_callback); - - } - - /** - * Get FormKiQ version - * Return the version of FormKiQ - * @return GetVersionResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetVersionResponse getVersion() throws ApiException { - ApiResponse localVarResp = getVersionWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Get FormKiQ version - * Return the version of FormKiQ - * @return ApiResponse<GetVersionResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getVersionWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getVersionValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get FormKiQ version (asynchronously) - * Return the version of FormKiQ - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getVersionAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getVersionValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setLocaleResourceItem - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param setLocaleResourceItemRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setLocaleResourceItemRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) - .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setLocaleResourceItemValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling setLocaleResourceItem(Async)"); - } - - // verify the required parameter 'locale' is set - if (locale == null) { - throw new ApiException("Missing the required parameter 'locale' when calling setLocaleResourceItem(Async)"); - } - - // verify the required parameter 'itemKey' is set - if (itemKey == null) { - throw new ApiException("Missing the required parameter 'itemKey' when calling setLocaleResourceItem(Async)"); - } - - // verify the required parameter 'setLocaleResourceItemRequest' is set - if (setLocaleResourceItemRequest == null) { - throw new ApiException("Missing the required parameter 'setLocaleResourceItemRequest' when calling setLocaleResourceItem(Async)"); - } - - return setLocaleResourceItemCall(siteId, locale, itemKey, setLocaleResourceItemRequest, _callback); - - } - - /** - * Set Locale Resource Item - * Set a new Locale Resource Item - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param setLocaleResourceItemRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setLocaleResourceItem(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest) throws ApiException { - ApiResponse localVarResp = setLocaleResourceItemWithHttpInfo(siteId, locale, itemKey, setLocaleResourceItemRequest); - return localVarResp.getData(); - } - - /** - * Set Locale Resource Item - * Set a new Locale Resource Item - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param setLocaleResourceItemRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setLocaleResourceItemWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest) throws ApiException { - okhttp3.Call localVarCall = setLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, setLocaleResourceItemRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set Locale Resource Item (asynchronously) - * Set a new Locale Resource Item - * @param siteId Site Identifier (required) - * @param locale Site Locale (ISO 639 / ISO 3166) (required) - * @param itemKey Item Key (MUST be URL‑encoded) (required) - * @param setLocaleResourceItemRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, setLocaleResourceItemRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setOpenSearchIndex - * @param siteId Site Identifier (required) - * @param setOpenSearchIndexRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setOpenSearchIndexRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/index" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setOpenSearchIndexValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling setOpenSearchIndex(Async)"); - } - - // verify the required parameter 'setOpenSearchIndexRequest' is set - if (setOpenSearchIndexRequest == null) { - throw new ApiException("Missing the required parameter 'setOpenSearchIndexRequest' when calling setOpenSearchIndex(Async)"); - } - - return setOpenSearchIndexCall(siteId, setOpenSearchIndexRequest, _callback); - - } - - /** - * Set site(s) OpenSearch index settings - * Sets the OpenSearch index settings - * @param siteId Site Identifier (required) - * @param setOpenSearchIndexRequest (required) - * @return SetOpenSearchIndexResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetOpenSearchIndexResponse setOpenSearchIndex(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest) throws ApiException { - ApiResponse localVarResp = setOpenSearchIndexWithHttpInfo(siteId, setOpenSearchIndexRequest); - return localVarResp.getData(); - } - - /** - * Set site(s) OpenSearch index settings - * Sets the OpenSearch index settings - * @param siteId Site Identifier (required) - * @param setOpenSearchIndexRequest (required) - * @return ApiResponse<SetOpenSearchIndexResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setOpenSearchIndexWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest) throws ApiException { - okhttp3.Call localVarCall = setOpenSearchIndexValidateBeforeCall(siteId, setOpenSearchIndexRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set site(s) OpenSearch index settings (asynchronously) - * Sets the OpenSearch index settings - * @param siteId Site Identifier (required) - * @param setOpenSearchIndexRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setOpenSearchIndexValidateBeforeCall(siteId, setOpenSearchIndexRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setOpenSearchIndices - * @param siteId Site Identifier (required) - * @param setOpenSearchIndiceRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setOpenSearchIndicesCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setOpenSearchIndiceRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/opensearch/indices" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setOpenSearchIndicesValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling setOpenSearchIndices(Async)"); - } - - // verify the required parameter 'setOpenSearchIndiceRequest' is set - if (setOpenSearchIndiceRequest == null) { - throw new ApiException("Missing the required parameter 'setOpenSearchIndiceRequest' when calling setOpenSearchIndices(Async)"); - } - - return setOpenSearchIndicesCall(siteId, setOpenSearchIndiceRequest, _callback); - - } - - /** - * Set site(s) OpenSearch index to use for a SiteId - * Sets the OpenSearch index to use for a SiteId - * @param siteId Site Identifier (required) - * @param setOpenSearchIndiceRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setOpenSearchIndices(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest) throws ApiException { - ApiResponse localVarResp = setOpenSearchIndicesWithHttpInfo(siteId, setOpenSearchIndiceRequest); - return localVarResp.getData(); - } - - /** - * Set site(s) OpenSearch index to use for a SiteId - * Sets the OpenSearch index to use for a SiteId - * @param siteId Site Identifier (required) - * @param setOpenSearchIndiceRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setOpenSearchIndicesWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest) throws ApiException { - okhttp3.Call localVarCall = setOpenSearchIndicesValidateBeforeCall(siteId, setOpenSearchIndiceRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set site(s) OpenSearch index to use for a SiteId (asynchronously) - * Sets the OpenSearch index to use for a SiteId - * @param siteId Site Identifier (required) - * @param setOpenSearchIndiceRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setOpenSearchIndicesAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setOpenSearchIndicesValidateBeforeCall(siteId, setOpenSearchIndiceRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setSiteGroupPermissions - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param setGroupPermissionsRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setSiteGroupPermissionsCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = setGroupPermissionsRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/groups/{groupName}/permissions" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setSiteGroupPermissionsValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling setSiteGroupPermissions(Async)"); - } - - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling setSiteGroupPermissions(Async)"); - } - - // verify the required parameter 'setGroupPermissionsRequest' is set - if (setGroupPermissionsRequest == null) { - throw new ApiException("Missing the required parameter 'setGroupPermissionsRequest' when calling setSiteGroupPermissions(Async)"); - } - - return setSiteGroupPermissionsCall(siteId, groupName, setGroupPermissionsRequest, _callback); - - } - - /** - * Set Site's Group Permissions - * Set Site's Group Permissions - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param setGroupPermissionsRequest (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setSiteGroupPermissions(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest) throws ApiException { - ApiResponse localVarResp = setSiteGroupPermissionsWithHttpInfo(siteId, groupName, setGroupPermissionsRequest); - return localVarResp.getData(); - } - - /** - * Set Site's Group Permissions - * Set Site's Group Permissions - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param setGroupPermissionsRequest (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setSiteGroupPermissionsWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest) throws ApiException { - okhttp3.Call localVarCall = setSiteGroupPermissionsValidateBeforeCall(siteId, groupName, setGroupPermissionsRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set Site's Group Permissions (asynchronously) - * Set Site's Group Permissions - * @param siteId Site Identifier (required) - * @param groupName Group Name (required) - * @param setGroupPermissionsRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setSiteGroupPermissionsAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setSiteGroupPermissionsValidateBeforeCall(siteId, groupName, setGroupPermissionsRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateConfiguration - * @param siteId Site Identifier (required) - * @param updateConfigurationRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateConfigurationCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateConfigurationRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}/configuration" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateConfigurationValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling updateConfiguration(Async)"); - } - - // verify the required parameter 'updateConfigurationRequest' is set - if (updateConfigurationRequest == null) { - throw new ApiException("Missing the required parameter 'updateConfigurationRequest' when calling updateConfiguration(Async)"); - } - - return updateConfigurationCall(siteId, updateConfigurationRequest, _callback); - - } - - /** - * Update site configuration - * Update the System Management configuration - * @param siteId Site Identifier (required) - * @param updateConfigurationRequest (required) - * @return UpdateConfigurationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public UpdateConfigurationResponse updateConfiguration(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest) throws ApiException { - ApiResponse localVarResp = updateConfigurationWithHttpInfo(siteId, updateConfigurationRequest); - return localVarResp.getData(); - } - - /** - * Update site configuration - * Update the System Management configuration - * @param siteId Site Identifier (required) - * @param updateConfigurationRequest (required) - * @return ApiResponse<UpdateConfigurationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse updateConfigurationWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest) throws ApiException { - okhttp3.Call localVarCall = updateConfigurationValidateBeforeCall(siteId, updateConfigurationRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update site configuration (asynchronously) - * Update the System Management configuration - * @param siteId Site Identifier (required) - * @param updateConfigurationRequest (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call updateConfigurationAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateConfigurationValidateBeforeCall(siteId, updateConfigurationRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateSite - * @param siteId Site Identifier (required) - * @param updateSiteRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateSiteCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = updateSiteRequest; - - // create path and map variables - String localVarPath = "/sites/{siteId}" - .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call updateSiteValidateBeforeCall(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'siteId' is set - if (siteId == null) { - throw new ApiException("Missing the required parameter 'siteId' when calling updateSite(Async)"); - } - - // verify the required parameter 'updateSiteRequest' is set - if (updateSiteRequest == null) { - throw new ApiException("Missing the required parameter 'updateSiteRequest' when calling updateSite(Async)"); - } - - return updateSiteCall(siteId, updateSiteRequest, _callback); - - } - - /** - * Update Site - * Update Site - * @param siteId Site Identifier (required) - * @param updateSiteRequest (required) - * @return UpdateResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public UpdateResponse updateSite(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest) throws ApiException { - ApiResponse localVarResp = updateSiteWithHttpInfo(siteId, updateSiteRequest); - return localVarResp.getData(); - } - - /** - * Update Site - * Update Site - * @param siteId Site Identifier (required) - * @param updateSiteRequest (required) - * @return ApiResponse<UpdateResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse updateSiteWithHttpInfo(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest) throws ApiException { - okhttp3.Call localVarCall = updateSiteValidateBeforeCall(siteId, updateSiteRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Update Site (asynchronously) - * Update Site - * @param siteId Site Identifier (required) - * @param updateSiteRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateSiteAsync(@javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateSiteValidateBeforeCall(siteId, updateSiteRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SystemManagementApi() { + this(Configuration.getDefaultApiClient()); + } + + public SystemManagementApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addApiKey + * + * @param siteId Site Identifier (required) + * @param addApiKeyRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addApiKeyCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addApiKeyRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/apiKeys".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addApiKeyValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling addApiKey(Async)"); + } + + // verify the required parameter 'addApiKeyRequest' is set + if (addApiKeyRequest == null) { + throw new ApiException( + "Missing the required parameter 'addApiKeyRequest' when calling addApiKey(Async)"); + } + + return addApiKeyCall(siteId, addApiKeyRequest, _callback); + + } + + /** + * Add API Key Adds a new API Key + * + * @param siteId Site Identifier (required) + * @param addApiKeyRequest (required) + * @return AddApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddApiKeyResponse addApiKey(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest) throws ApiException { + ApiResponse localVarResp = addApiKeyWithHttpInfo(siteId, addApiKeyRequest); + return localVarResp.getData(); + } + + /** + * Add API Key Adds a new API Key + * + * @param siteId Site Identifier (required) + * @param addApiKeyRequest (required) + * @return ApiResponse<AddApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addApiKeyWithHttpInfo( + @javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest) throws ApiException { + okhttp3.Call localVarCall = addApiKeyValidateBeforeCall(siteId, addApiKeyRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add API Key (asynchronously) Adds a new API Key + * + * @param siteId Site Identifier (required) + * @param addApiKeyRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addApiKeyAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddApiKeyRequest addApiKeyRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addApiKeyValidateBeforeCall(siteId, addApiKeyRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addLocale + * + * @param siteId Site Identifier (required) + * @param addLocaleRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addLocaleCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addLocaleRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addLocaleValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling addLocale(Async)"); + } + + // verify the required parameter 'addLocaleRequest' is set + if (addLocaleRequest == null) { + throw new ApiException( + "Missing the required parameter 'addLocaleRequest' when calling addLocale(Async)"); + } + + return addLocaleCall(siteId, addLocaleRequest, _callback); + + } + + /** + * Add Locale Adds a new locale to the specified site + * + * @param siteId Site Identifier (required) + * @param addLocaleRequest (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddResponse addLocale(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest) throws ApiException { + ApiResponse localVarResp = addLocaleWithHttpInfo(siteId, addLocaleRequest); + return localVarResp.getData(); + } + + /** + * Add Locale Adds a new locale to the specified site + * + * @param siteId Site Identifier (required) + * @param addLocaleRequest (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addLocaleWithHttpInfo(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest) throws ApiException { + okhttp3.Call localVarCall = addLocaleValidateBeforeCall(siteId, addLocaleRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Locale (asynchronously) Adds a new locale to the specified site + * + * @param siteId Site Identifier (required) + * @param addLocaleRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addLocaleAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull AddLocaleRequest addLocaleRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addLocaleValidateBeforeCall(siteId, addLocaleRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addLocaleResourceItem + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param addLocaleResourceItemRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addLocaleResourceItemRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addLocaleResourceItemValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling addLocaleResourceItem(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException( + "Missing the required parameter 'locale' when calling addLocaleResourceItem(Async)"); + } + + // verify the required parameter 'addLocaleResourceItemRequest' is set + if (addLocaleResourceItemRequest == null) { + throw new ApiException( + "Missing the required parameter 'addLocaleResourceItemRequest' when calling addLocaleResourceItem(Async)"); + } + + return addLocaleResourceItemCall(siteId, locale, addLocaleResourceItemRequest, _callback); + + } + + /** + * Add Locale Resource Item Adds a new localized resource item for a given locale + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param addLocaleResourceItemRequest (required) + * @return AddLocaleResourceItemResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddLocaleResourceItemResponse addLocaleResourceItem( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest) + throws ApiException { + ApiResponse localVarResp = + addLocaleResourceItemWithHttpInfo(siteId, locale, addLocaleResourceItemRequest); + return localVarResp.getData(); + } + + /** + * Add Locale Resource Item Adds a new localized resource item for a given locale + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param addLocaleResourceItemRequest (required) + * @return ApiResponse<AddLocaleResourceItemResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addLocaleResourceItemWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest) + throws ApiException { + okhttp3.Call localVarCall = + addLocaleResourceItemValidateBeforeCall(siteId, locale, addLocaleResourceItemRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Locale Resource Item (asynchronously) Adds a new localized resource item for a given locale + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param addLocaleResourceItemRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull AddLocaleResourceItemRequest addLocaleResourceItemRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addLocaleResourceItemValidateBeforeCall(siteId, locale, + addLocaleResourceItemRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addOpenSearchRestoreSnapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addOpenSearchRestoreSnapshotCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}/restore" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())).replace( + "{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addOpenSearchRestoreSnapshotValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling addOpenSearchRestoreSnapshot(Async)"); + } + + // verify the required parameter 'snapshotName' is set + if (snapshotName == null) { + throw new ApiException( + "Missing the required parameter 'snapshotName' when calling addOpenSearchRestoreSnapshot(Async)"); + } + + return addOpenSearchRestoreSnapshotCall(siteId, snapshotName, _callback); + + } + + /** + * Add an OpenSearch Restore Snapshot Add an OpenSearch Restore Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddResponse addOpenSearchRestoreSnapshot(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName) throws ApiException { + ApiResponse localVarResp = + addOpenSearchRestoreSnapshotWithHttpInfo(siteId, snapshotName); + return localVarResp.getData(); + } + + /** + * Add an OpenSearch Restore Snapshot Add an OpenSearch Restore Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addOpenSearchRestoreSnapshotWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) + throws ApiException { + okhttp3.Call localVarCall = + addOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add an OpenSearch Restore Snapshot (asynchronously) Add an OpenSearch Restore Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addOpenSearchRestoreSnapshotAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addOpenSearchSnapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())).replace( + "{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addOpenSearchSnapshotValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling addOpenSearchSnapshot(Async)"); + } + + // verify the required parameter 'snapshotName' is set + if (snapshotName == null) { + throw new ApiException( + "Missing the required parameter 'snapshotName' when calling addOpenSearchSnapshot(Async)"); + } + + return addOpenSearchSnapshotCall(siteId, snapshotName, _callback); + + } + + /** + * Add an OpenSearch Snapshot Add an OpenSearch Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddResponse addOpenSearchSnapshot(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName) throws ApiException { + ApiResponse localVarResp = addOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); + return localVarResp.getData(); + } + + /** + * Add an OpenSearch Snapshot Add an OpenSearch Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addOpenSearchSnapshotWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) + throws ApiException { + okhttp3.Call localVarCall = addOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add an OpenSearch Snapshot (asynchronously) Add an OpenSearch Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addSite + * + * @param addSiteRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addSiteCall(@javax.annotation.Nonnull AddSiteRequest addSiteRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addSiteRequest; + + // create path and map variables + String localVarPath = "/sites"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addSiteValidateBeforeCall( + @javax.annotation.Nonnull AddSiteRequest addSiteRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'addSiteRequest' is set + if (addSiteRequest == null) { + throw new ApiException( + "Missing the required parameter 'addSiteRequest' when calling addSite(Async)"); + } + + return addSiteCall(addSiteRequest, _callback); + + } + + /** + * Add Site Add Site + * + * @param addSiteRequest (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public AddResponse addSite(@javax.annotation.Nonnull AddSiteRequest addSiteRequest) + throws ApiException { + ApiResponse localVarResp = addSiteWithHttpInfo(addSiteRequest); + return localVarResp.getData(); + } + + /** + * Add Site Add Site + * + * @param addSiteRequest (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse addSiteWithHttpInfo( + @javax.annotation.Nonnull AddSiteRequest addSiteRequest) throws ApiException { + okhttp3.Call localVarCall = addSiteValidateBeforeCall(addSiteRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Site (asynchronously) Add Site + * + * @param addSiteRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call addSiteAsync(@javax.annotation.Nonnull AddSiteRequest addSiteRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addSiteValidateBeforeCall(addSiteRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteApiKey + * + * @param siteId Site Identifier (required) + * @param apiKey API Key (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteApiKeyCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/apiKeys/{apiKey}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "apiKey" + "}", localVarApiClient.escapeString(apiKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteApiKeyValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling deleteApiKey(Async)"); + } + + // verify the required parameter 'apiKey' is set + if (apiKey == null) { + throw new ApiException( + "Missing the required parameter 'apiKey' when calling deleteApiKey(Async)"); + } + + return deleteApiKeyCall(siteId, apiKey, _callback); + + } + + /** + * Delete API Key Adds a new API Key + * + * @param siteId Site Identifier (required) + * @param apiKey API Key (required) + * @return DeleteApiKeyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteApiKeyResponse deleteApiKey(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String apiKey) throws ApiException { + ApiResponse localVarResp = deleteApiKeyWithHttpInfo(siteId, apiKey); + return localVarResp.getData(); + } + + /** + * Delete API Key Adds a new API Key + * + * @param siteId Site Identifier (required) + * @param apiKey API Key (required) + * @return ApiResponse<DeleteApiKeyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteApiKeyWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String apiKey) + throws ApiException { + okhttp3.Call localVarCall = deleteApiKeyValidateBeforeCall(siteId, apiKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete API Key (asynchronously) Adds a new API Key + * + * @param siteId Site Identifier (required) + * @param apiKey API Key (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteApiKeyAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String apiKey, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteApiKeyValidateBeforeCall(siteId, apiKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteLocale + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteLocaleCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteLocaleValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling deleteLocale(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException( + "Missing the required parameter 'locale' when calling deleteLocale(Async)"); + } + + return deleteLocaleCall(siteId, locale, _callback); + + } + + /** + * Delete Locale Delete Locale + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteLocale(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale) throws ApiException { + ApiResponse localVarResp = deleteLocaleWithHttpInfo(siteId, locale); + return localVarResp.getData(); + } + + /** + * Delete Locale Delete Locale + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteLocaleWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale) + throws ApiException { + okhttp3.Call localVarCall = deleteLocaleValidateBeforeCall(siteId, locale, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Locale (asynchronously) Delete Locale + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteLocaleAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteLocaleValidateBeforeCall(siteId, locale, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteLocaleResourceItem + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) + .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteLocaleResourceItemValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling deleteLocaleResourceItem(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException( + "Missing the required parameter 'locale' when calling deleteLocaleResourceItem(Async)"); + } + + // verify the required parameter 'itemKey' is set + if (itemKey == null) { + throw new ApiException( + "Missing the required parameter 'itemKey' when calling deleteLocaleResourceItem(Async)"); + } + + return deleteLocaleResourceItemCall(siteId, locale, itemKey, _callback); + + } + + /** + * Delete Local Resource Item Delete Local Resource Item + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteLocaleResourceItem(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey) + throws ApiException { + ApiResponse localVarResp = + deleteLocaleResourceItemWithHttpInfo(siteId, locale, itemKey); + return localVarResp.getData(); + } + + /** + * Delete Local Resource Item Delete Local Resource Item + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteLocaleResourceItemWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull String itemKey) throws ApiException { + okhttp3.Call localVarCall = + deleteLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Local Resource Item (asynchronously) Delete Local Resource Item + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + deleteLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteOpenSearchIndex + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/index".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpenSearchIndexValidateBeforeCall( + @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling deleteOpenSearchIndex(Async)"); + } + + return deleteOpenSearchIndexCall(siteId, _callback); + + } + + /** + * Deletes site(s) OpenSearch index Deletes the OpenSearch index + * + * @param siteId Site Identifier (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteOpenSearchIndex(@javax.annotation.Nonnull String siteId) + throws ApiException { + ApiResponse localVarResp = deleteOpenSearchIndexWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Deletes site(s) OpenSearch index Deletes the OpenSearch index + * + * @param siteId Site Identifier (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteOpenSearchIndexWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteOpenSearchIndexValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes site(s) OpenSearch index (asynchronously) Deletes the OpenSearch index + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOpenSearchIndexValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteOpenSearchIndexByName + * + * @param indexName IndexName to path (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpenSearchIndexByNameCall(@javax.annotation.Nonnull String indexName, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/global/opensearch/indices/{indexName}" + .replace("{" + "indexName" + "}", localVarApiClient.escapeString(indexName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpenSearchIndexByNameValidateBeforeCall( + @javax.annotation.Nonnull String indexName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexName' is set + if (indexName == null) { + throw new ApiException( + "Missing the required parameter 'indexName' when calling deleteOpenSearchIndexByName(Async)"); + } + + return deleteOpenSearchIndexByNameCall(indexName, _callback); + + } + + /** + * Deletes OpenSearch index by name Deletes the OpenSearch index by name + * + * @param indexName IndexName to path (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteOpenSearchIndexByName(@javax.annotation.Nonnull String indexName) + throws ApiException { + ApiResponse localVarResp = deleteOpenSearchIndexByNameWithHttpInfo(indexName); + return localVarResp.getData(); + } + + /** + * Deletes OpenSearch index by name Deletes the OpenSearch index by name + * + * @param indexName IndexName to path (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteOpenSearchIndexByNameWithHttpInfo( + @javax.annotation.Nonnull String indexName) throws ApiException { + okhttp3.Call localVarCall = deleteOpenSearchIndexByNameValidateBeforeCall(indexName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes OpenSearch index by name (asynchronously) Deletes the OpenSearch index by name + * + * @param indexName IndexName to path (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpenSearchIndexByNameAsync(@javax.annotation.Nonnull String indexName, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOpenSearchIndexByNameValidateBeforeCall(indexName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteOpenSearchRestoreSnapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpenSearchRestoreSnapshotCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}/restore" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())).replace( + "{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpenSearchRestoreSnapshotValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling deleteOpenSearchRestoreSnapshot(Async)"); + } + + // verify the required parameter 'snapshotName' is set + if (snapshotName == null) { + throw new ApiException( + "Missing the required parameter 'snapshotName' when calling deleteOpenSearchRestoreSnapshot(Async)"); + } + + return deleteOpenSearchRestoreSnapshotCall(siteId, snapshotName, _callback); + + } + + /** + * Deletes site(s) OpenSearch Restore Snapshot Deletes the OpenSearch Restore Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteOpenSearchRestoreSnapshot(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName) throws ApiException { + ApiResponse localVarResp = + deleteOpenSearchRestoreSnapshotWithHttpInfo(siteId, snapshotName); + return localVarResp.getData(); + } + + /** + * Deletes site(s) OpenSearch Restore Snapshot Deletes the OpenSearch Restore Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteOpenSearchRestoreSnapshotWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) + throws ApiException { + okhttp3.Call localVarCall = + deleteOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes site(s) OpenSearch Restore Snapshot (asynchronously) Deletes the OpenSearch Restore + * Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpenSearchRestoreSnapshotAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + deleteOpenSearchRestoreSnapshotValidateBeforeCall(siteId, snapshotName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteOpenSearchSnapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())).replace( + "{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpenSearchSnapshotValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling deleteOpenSearchSnapshot(Async)"); + } + + // verify the required parameter 'snapshotName' is set + if (snapshotName == null) { + throw new ApiException( + "Missing the required parameter 'snapshotName' when calling deleteOpenSearchSnapshot(Async)"); + } + + return deleteOpenSearchSnapshotCall(siteId, snapshotName, _callback); + + } + + /** + * Deletes site(s) OpenSearch Snapshot Deletes the OpenSearch Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteOpenSearchSnapshot(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName) throws ApiException { + ApiResponse localVarResp = + deleteOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); + return localVarResp.getData(); + } + + /** + * Deletes site(s) OpenSearch Snapshot Deletes the OpenSearch Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteOpenSearchSnapshotWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) + throws ApiException { + okhttp3.Call localVarCall = + deleteOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes site(s) OpenSearch Snapshot (asynchronously) Deletes the OpenSearch Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + deleteOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteOpenSearchSnapshotRepository + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpenSearchSnapshotRepositoryCall( + @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshotRepository" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOpenSearchSnapshotRepositoryValidateBeforeCall( + @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling deleteOpenSearchSnapshotRepository(Async)"); + } + + return deleteOpenSearchSnapshotRepositoryCall(siteId, _callback); + + } + + /** + * Deletes site(s) OpenSearch Snapshot Repository Deletes the OpenSearch Snapshot Repository + * + * @param siteId Site Identifier (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteOpenSearchSnapshotRepository(@javax.annotation.Nonnull String siteId) + throws ApiException { + ApiResponse localVarResp = + deleteOpenSearchSnapshotRepositoryWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Deletes site(s) OpenSearch Snapshot Repository Deletes the OpenSearch Snapshot Repository + * + * @param siteId Site Identifier (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteOpenSearchSnapshotRepositoryWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = deleteOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes site(s) OpenSearch Snapshot Repository (asynchronously) Deletes the OpenSearch Snapshot + * Repository + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteOpenSearchSnapshotRepositoryAsync( + @javax.annotation.Nonnull String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + deleteOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteSiteGroup + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteSiteGroupCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/groups/{groupName}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteSiteGroupValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling deleteSiteGroup(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException( + "Missing the required parameter 'groupName' when calling deleteSiteGroup(Async)"); + } + + return deleteSiteGroupCall(siteId, groupName, _callback); + + } + + /** + * Deletes Site Group and permissions Deletes Site Group and permissions + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteSiteGroup(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName) throws ApiException { + ApiResponse localVarResp = deleteSiteGroupWithHttpInfo(siteId, groupName); + return localVarResp.getData(); + } + + /** + * Deletes Site Group and permissions Deletes Site Group and permissions + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteSiteGroupWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) + throws ApiException { + okhttp3.Call localVarCall = deleteSiteGroupValidateBeforeCall(siteId, groupName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Deletes Site Group and permissions (asynchronously) Deletes Site Group and permissions + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteSiteGroupAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteSiteGroupValidateBeforeCall(siteId, groupName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getAllOpenSearchIndices + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getAllOpenSearchIndicesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/global/opensearch/indices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllOpenSearchIndicesValidateBeforeCall(final ApiCallback _callback) + throws ApiException { + return getAllOpenSearchIndicesCall(_callback); + + } + + /** + * Get all OpenSearch indices Returns all OpenSearch indices + * + * @return GetOpenSearchIndiceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetOpenSearchIndiceResponse getAllOpenSearchIndices() throws ApiException { + ApiResponse localVarResp = getAllOpenSearchIndicesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get all OpenSearch indices Returns all OpenSearch indices + * + * @return ApiResponse<GetOpenSearchIndiceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getAllOpenSearchIndicesWithHttpInfo() + throws ApiException { + okhttp3.Call localVarCall = getAllOpenSearchIndicesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get all OpenSearch indices (asynchronously) Returns all OpenSearch indices + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getAllOpenSearchIndicesAsync( + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllOpenSearchIndicesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getApiKeys + * + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getApiKeysCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/apiKeys".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getApiKeysValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getApiKeys(Async)"); + } + + return getApiKeysCall(siteId, next, limit, _callback); + + } + + /** + * Get API Keys Returns the list of ApiKeys + * + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetApiKeysResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetApiKeysResponse getApiKeys(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = getApiKeysWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get API Keys Returns the list of ApiKeys + * + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetApiKeysResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getApiKeysWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getApiKeysValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get API Keys (asynchronously) Returns the list of ApiKeys + * + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getApiKeysAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getApiKeysValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getConfiguration + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getConfigurationCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/configuration".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getConfigurationValidateBeforeCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getConfiguration(Async)"); + } + + return getConfigurationCall(siteId, _callback); + + } + + /** + * Get site configuration Returns the list of sites that the user has access to + * + * @param siteId Site Identifier (required) + * @return GetConfigurationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetConfigurationResponse getConfiguration(@javax.annotation.Nonnull String siteId) + throws ApiException { + ApiResponse localVarResp = getConfigurationWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get site configuration Returns the list of sites that the user has access to + * + * @param siteId Site Identifier (required) + * @return ApiResponse<GetConfigurationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getConfigurationWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getConfigurationValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site configuration (asynchronously) Returns the list of sites that the user has access to + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getConfigurationAsync(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getConfigurationValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getLocaleResourceItem + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) + .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getLocaleResourceItemValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull String itemKey, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getLocaleResourceItem(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException( + "Missing the required parameter 'locale' when calling getLocaleResourceItem(Async)"); + } + + // verify the required parameter 'itemKey' is set + if (itemKey == null) { + throw new ApiException( + "Missing the required parameter 'itemKey' when calling getLocaleResourceItem(Async)"); + } + + return getLocaleResourceItemCall(siteId, locale, itemKey, _callback); + + } + + /** + * Get Resource Item by Locale Returns the resource item + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @return GetLocaleResourceItemResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetLocaleResourceItemResponse getLocaleResourceItem( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull String itemKey) throws ApiException { + ApiResponse localVarResp = + getLocaleResourceItemWithHttpInfo(siteId, locale, itemKey); + return localVarResp.getData(); + } + + /** + * Get Resource Item by Locale Returns the resource item + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @return ApiResponse<GetLocaleResourceItemResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getLocaleResourceItemWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull String itemKey) throws ApiException { + okhttp3.Call localVarCall = + getLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Resource Item by Locale (asynchronously) Returns the resource item + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getLocaleResourceItems + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getLocaleResourceItemsCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getLocaleResourceItemsValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getLocaleResourceItems(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException( + "Missing the required parameter 'locale' when calling getLocaleResourceItems(Async)"); + } + + return getLocaleResourceItemsCall(siteId, locale, next, limit, _callback); + + } + + /** + * Get Resource Items by Locale Returns the list resource items + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetLocaleResourceItemsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetLocaleResourceItemsResponse getLocaleResourceItems( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = + getLocaleResourceItemsWithHttpInfo(siteId, locale, next, limit); + return localVarResp.getData(); + } + + /** + * Get Resource Items by Locale Returns the list resource items + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetLocaleResourceItemsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getLocaleResourceItemsWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + okhttp3.Call localVarCall = + getLocaleResourceItemsValidateBeforeCall(siteId, locale, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Resource Items by Locale (asynchronously) Returns the list resource items + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getLocaleResourceItemsAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getLocaleResourceItemsValidateBeforeCall(siteId, locale, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getLocales + * + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getLocalesCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getLocalesValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getLocales(Async)"); + } + + return getLocalesCall(siteId, next, limit, _callback); + + } + + /** + * Get Locales Returns a list of locale(s) in a specified site + * + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetLocalesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetLocalesResponse getLocales(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = getLocalesWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get Locales Returns a list of locale(s) in a specified site + * + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetLocalesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getLocalesWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getLocalesValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Locales (asynchronously) Returns a list of locale(s) in a specified site + * + * @param siteId Site Identifier (required) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getLocalesAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getLocalesValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getOpenSearchIndex + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/index".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchIndexValidateBeforeCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getOpenSearchIndex(Async)"); + } + + return getOpenSearchIndexCall(siteId, _callback); + + } + + /** + * Get site(s) OpenSearch index settings Returns the OpenSearch index settings (Deprecated use + * /sites/{siteId}/opensearch/indices) + * + * @param siteId Site Identifier (required) + * @return GetOpenSearchIndexResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetOpenSearchIndexResponse getOpenSearchIndex(@javax.annotation.Nonnull String siteId) + throws ApiException { + ApiResponse localVarResp = getOpenSearchIndexWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch index settings Returns the OpenSearch index settings (Deprecated use + * /sites/{siteId}/opensearch/indices) + * + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpenSearchIndexResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getOpenSearchIndexWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpenSearchIndexValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch index settings (asynchronously) Returns the OpenSearch index settings + * (Deprecated use /sites/{siteId}/opensearch/indices) + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpenSearchIndexValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getOpenSearchIndices + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchIndicesCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/indices".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchIndicesValidateBeforeCall( + @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getOpenSearchIndices(Async)"); + } + + return getOpenSearchIndicesCall(siteId, _callback); + + } + + /** + * Get site(s) OpenSearch indices Returns the OpenSearch indices + * + * @param siteId Site Identifier (required) + * @return GetOpenSearchIndiceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetOpenSearchIndiceResponse getOpenSearchIndices(@javax.annotation.Nonnull String siteId) + throws ApiException { + ApiResponse localVarResp = + getOpenSearchIndicesWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch indices Returns the OpenSearch indices + * + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpenSearchIndiceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getOpenSearchIndicesWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpenSearchIndicesValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch indices (asynchronously) Returns the OpenSearch indices + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchIndicesAsync(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpenSearchIndicesValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getOpenSearchSnapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchSnapshotCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots/{snapshotName}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())).replace( + "{" + "snapshotName" + "}", localVarApiClient.escapeString(snapshotName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchSnapshotValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getOpenSearchSnapshot(Async)"); + } + + // verify the required parameter 'snapshotName' is set + if (snapshotName == null) { + throw new ApiException( + "Missing the required parameter 'snapshotName' when calling getOpenSearchSnapshot(Async)"); + } + + return getOpenSearchSnapshotCall(siteId, snapshotName, _callback); + + } + + /** + * Get site(s) OpenSearch snapshot Returns the OpenSearch Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return GetOpenSearchSnapshotResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetOpenSearchSnapshotResponse getOpenSearchSnapshot( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) + throws ApiException { + ApiResponse localVarResp = + getOpenSearchSnapshotWithHttpInfo(siteId, snapshotName); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch snapshot Returns the OpenSearch Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (required) + * @return ApiResponse<GetOpenSearchSnapshotResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getOpenSearchSnapshotWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String snapshotName) + throws ApiException { + okhttp3.Call localVarCall = getOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch snapshot (asynchronously) Returns the OpenSearch Snapshot + * + * @param siteId Site Identifier (required) + * @param snapshotName Snapshot Name (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchSnapshotAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String snapshotName, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getOpenSearchSnapshotValidateBeforeCall(siteId, snapshotName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getOpenSearchSnapshotRepositories + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchSnapshotRepositoriesCall(final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/global/opensearch/snapshotRepositories"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchSnapshotRepositoriesValidateBeforeCall( + final ApiCallback _callback) throws ApiException { + return getOpenSearchSnapshotRepositoriesCall(_callback); + + } + + /** + * Get site(s) OpenSearch snapshot repositories Returns the OpenSearch Snapshot Repositories + * + * @return GetOpenSearchSnapshotRepositoryResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepositories() + throws ApiException { + ApiResponse localVarResp = + getOpenSearchSnapshotRepositoriesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch snapshot repositories Returns the OpenSearch Snapshot Repositories + * + * @return ApiResponse<GetOpenSearchSnapshotRepositoryResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getOpenSearchSnapshotRepositoriesWithHttpInfo() + throws ApiException { + okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoriesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch snapshot repositories (asynchronously) Returns the OpenSearch Snapshot + * Repositories + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchSnapshotRepositoriesAsync( + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoriesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getOpenSearchSnapshotRepository + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchSnapshotRepositoryCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshotRepository" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchSnapshotRepositoryValidateBeforeCall( + @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getOpenSearchSnapshotRepository(Async)"); + } + + return getOpenSearchSnapshotRepositoryCall(siteId, _callback); + + } + + /** + * Get site(s) OpenSearch snapshot repository Returns the OpenSearch Snapshot Repository + * + * @param siteId Site Identifier (required) + * @return GetOpenSearchSnapshotRepositoryResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepository( + @javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = + getOpenSearchSnapshotRepositoryWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch snapshot repository Returns the OpenSearch Snapshot Repository + * + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpenSearchSnapshotRepositoryResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getOpenSearchSnapshotRepositoryWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch snapshot repository (asynchronously) Returns the OpenSearch Snapshot + * Repository + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchSnapshotRepositoryAsync(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getOpenSearchSnapshotRepositoryValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getOpenSearchSnapshots + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchSnapshotsCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/snapshots".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOpenSearchSnapshotsValidateBeforeCall( + @javax.annotation.Nonnull String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getOpenSearchSnapshots(Async)"); + } + + return getOpenSearchSnapshotsCall(siteId, _callback); + + } + + /** + * Get site(s) OpenSearch snapshots Returns the OpenSearch Snapshots + * + * @param siteId Site Identifier (required) + * @return GetOpenSearchSnapshotResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetOpenSearchSnapshotResponse getOpenSearchSnapshots( + @javax.annotation.Nonnull String siteId) throws ApiException { + ApiResponse localVarResp = + getOpenSearchSnapshotsWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get site(s) OpenSearch snapshots Returns the OpenSearch Snapshots + * + * @param siteId Site Identifier (required) + * @return ApiResponse<GetOpenSearchSnapshotResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getOpenSearchSnapshotsWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getOpenSearchSnapshotsValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) OpenSearch snapshots (asynchronously) Returns the OpenSearch Snapshots + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getOpenSearchSnapshotsAsync(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOpenSearchSnapshotsValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getSiteGroup + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSiteGroupCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/groups/{groupName}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSiteGroupValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getSiteGroup(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException( + "Missing the required parameter 'groupName' when calling getSiteGroup(Async)"); + } + + return getSiteGroupCall(siteId, groupName, _callback); + + } + + /** + * Get group and permissions belonging to site Returns details of a group and permissions + * belonging to site + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @return GetSiteGroupResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetSiteGroupResponse getSiteGroup(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName) throws ApiException { + ApiResponse localVarResp = getSiteGroupWithHttpInfo(siteId, groupName); + return localVarResp.getData(); + } + + /** + * Get group and permissions belonging to site Returns details of a group and permissions + * belonging to site + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @return ApiResponse<GetSiteGroupResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getSiteGroupWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName) + throws ApiException { + okhttp3.Call localVarCall = getSiteGroupValidateBeforeCall(siteId, groupName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get group and permissions belonging to site (asynchronously) Returns details of a group and + * permissions belonging to site + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSiteGroupAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getSiteGroupValidateBeforeCall(siteId, groupName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getSiteGroups + * + * @param siteId Site Identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSiteGroupsCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites/{siteId}/groups".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSiteGroupsValidateBeforeCall(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling getSiteGroups(Async)"); + } + + return getSiteGroupsCall(siteId, _callback); + + } + + /** + * Get group(s) and permissions belonging to site Returns list of groups and permissions belonging + * to site + * + * @param siteId Site Identifier (required) + * @return GetSiteGroupsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetSiteGroupsResponse getSiteGroups(@javax.annotation.Nonnull String siteId) + throws ApiException { + ApiResponse localVarResp = getSiteGroupsWithHttpInfo(siteId); + return localVarResp.getData(); + } + + /** + * Get group(s) and permissions belonging to site Returns list of groups and permissions belonging + * to site + * + * @param siteId Site Identifier (required) + * @return ApiResponse<GetSiteGroupsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getSiteGroupsWithHttpInfo( + @javax.annotation.Nonnull String siteId) throws ApiException { + okhttp3.Call localVarCall = getSiteGroupsValidateBeforeCall(siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get group(s) and permissions belonging to site (asynchronously) Returns list of groups and + * permissions belonging to site + * + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSiteGroupsAsync(@javax.annotation.Nonnull String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSiteGroupsValidateBeforeCall(siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getSites + * + * @param status Fetch sites with status (only valid when using SitePermissions 'defined' + * (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSitesCall(@javax.annotation.Nullable SiteStatus status, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/sites"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (status != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSitesValidateBeforeCall(@javax.annotation.Nullable SiteStatus status, + final ApiCallback _callback) throws ApiException { + return getSitesCall(status, _callback); + + } + + /** + * Get site(s) access Returns the list of sites that the user has access to + * + * @param status Fetch sites with status (only valid when using SitePermissions 'defined' + * (optional) + * @return GetSitesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetSitesResponse getSites(@javax.annotation.Nullable SiteStatus status) + throws ApiException { + ApiResponse localVarResp = getSitesWithHttpInfo(status); + return localVarResp.getData(); + } + + /** + * Get site(s) access Returns the list of sites that the user has access to + * + * @param status Fetch sites with status (only valid when using SitePermissions 'defined' + * (optional) + * @return ApiResponse<GetSitesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getSitesWithHttpInfo( + @javax.annotation.Nullable SiteStatus status) throws ApiException { + okhttp3.Call localVarCall = getSitesValidateBeforeCall(status, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get site(s) access (asynchronously) Returns the list of sites that the user has access to + * + * @param status Fetch sites with status (only valid when using SitePermissions 'defined' + * (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getSitesAsync(@javax.annotation.Nullable SiteStatus status, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSitesValidateBeforeCall(status, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getVersion + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getVersionCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/version"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getVersionValidateBeforeCall(final ApiCallback _callback) + throws ApiException { + return getVersionCall(_callback); + + } + + /** + * Get FormKiQ version Return the version of FormKiQ + * + * @return GetVersionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetVersionResponse getVersion() throws ApiException { + ApiResponse localVarResp = getVersionWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get FormKiQ version Return the version of FormKiQ + * + * @return ApiResponse<GetVersionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getVersionWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getVersionValidateBeforeCall(null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get FormKiQ version (asynchronously) Return the version of FormKiQ + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getVersionAsync(final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getVersionValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setLocaleResourceItem + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param setLocaleResourceItemRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setLocaleResourceItemCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, + @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setLocaleResourceItemRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/locales/{locale}/resourceItems/{itemKey}" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "locale" + "}", localVarApiClient.escapeString(locale.toString())) + .replace("{" + "itemKey" + "}", localVarApiClient.escapeString(itemKey.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setLocaleResourceItemValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull String itemKey, + @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling setLocaleResourceItem(Async)"); + } + + // verify the required parameter 'locale' is set + if (locale == null) { + throw new ApiException( + "Missing the required parameter 'locale' when calling setLocaleResourceItem(Async)"); + } + + // verify the required parameter 'itemKey' is set + if (itemKey == null) { + throw new ApiException( + "Missing the required parameter 'itemKey' when calling setLocaleResourceItem(Async)"); + } + + // verify the required parameter 'setLocaleResourceItemRequest' is set + if (setLocaleResourceItemRequest == null) { + throw new ApiException( + "Missing the required parameter 'setLocaleResourceItemRequest' when calling setLocaleResourceItem(Async)"); + } + + return setLocaleResourceItemCall(siteId, locale, itemKey, setLocaleResourceItemRequest, + _callback); + + } + + /** + * Set Locale Resource Item Set a new Locale Resource Item + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param setLocaleResourceItemRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setLocaleResourceItem(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, + @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest) + throws ApiException { + ApiResponse localVarResp = + setLocaleResourceItemWithHttpInfo(siteId, locale, itemKey, setLocaleResourceItemRequest); + return localVarResp.getData(); + } + + /** + * Set Locale Resource Item Set a new Locale Resource Item + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param setLocaleResourceItemRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setLocaleResourceItemWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String locale, + @javax.annotation.Nonnull String itemKey, + @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest) + throws ApiException { + okhttp3.Call localVarCall = setLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, + setLocaleResourceItemRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set Locale Resource Item (asynchronously) Set a new Locale Resource Item + * + * @param siteId Site Identifier (required) + * @param locale Site Locale (ISO 639 / ISO 3166) (required) + * @param itemKey Item Key (MUST be URL‑encoded) (required) + * @param setLocaleResourceItemRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setLocaleResourceItemAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String locale, @javax.annotation.Nonnull String itemKey, + @javax.annotation.Nonnull SetLocaleResourceItemRequest setLocaleResourceItemRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setLocaleResourceItemValidateBeforeCall(siteId, locale, itemKey, + setLocaleResourceItemRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setOpenSearchIndex + * + * @param siteId Site Identifier (required) + * @param setOpenSearchIndexRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setOpenSearchIndexCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setOpenSearchIndexRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/index".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setOpenSearchIndexValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling setOpenSearchIndex(Async)"); + } + + // verify the required parameter 'setOpenSearchIndexRequest' is set + if (setOpenSearchIndexRequest == null) { + throw new ApiException( + "Missing the required parameter 'setOpenSearchIndexRequest' when calling setOpenSearchIndex(Async)"); + } + + return setOpenSearchIndexCall(siteId, setOpenSearchIndexRequest, _callback); + + } + + /** + * Set site(s) OpenSearch index settings Sets the OpenSearch index settings + * + * @param siteId Site Identifier (required) + * @param setOpenSearchIndexRequest (required) + * @return SetOpenSearchIndexResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetOpenSearchIndexResponse setOpenSearchIndex(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest) + throws ApiException { + ApiResponse localVarResp = + setOpenSearchIndexWithHttpInfo(siteId, setOpenSearchIndexRequest); + return localVarResp.getData(); + } + + /** + * Set site(s) OpenSearch index settings Sets the OpenSearch index settings + * + * @param siteId Site Identifier (required) + * @param setOpenSearchIndexRequest (required) + * @return ApiResponse<SetOpenSearchIndexResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setOpenSearchIndexWithHttpInfo( + @javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest) + throws ApiException { + okhttp3.Call localVarCall = + setOpenSearchIndexValidateBeforeCall(siteId, setOpenSearchIndexRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set site(s) OpenSearch index settings (asynchronously) Sets the OpenSearch index settings + * + * @param siteId Site Identifier (required) + * @param setOpenSearchIndexRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setOpenSearchIndexAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpenSearchIndexRequest setOpenSearchIndexRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + setOpenSearchIndexValidateBeforeCall(siteId, setOpenSearchIndexRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setOpenSearchIndices + * + * @param siteId Site Identifier (required) + * @param setOpenSearchIndiceRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setOpenSearchIndicesCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setOpenSearchIndiceRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/opensearch/indices".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setOpenSearchIndicesValidateBeforeCall( + @javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling setOpenSearchIndices(Async)"); + } + + // verify the required parameter 'setOpenSearchIndiceRequest' is set + if (setOpenSearchIndiceRequest == null) { + throw new ApiException( + "Missing the required parameter 'setOpenSearchIndiceRequest' when calling setOpenSearchIndices(Async)"); + } + + return setOpenSearchIndicesCall(siteId, setOpenSearchIndiceRequest, _callback); + + } + + /** + * Set site(s) OpenSearch index to use for a SiteId Sets the OpenSearch index to use for a SiteId + * + * @param siteId Site Identifier (required) + * @param setOpenSearchIndiceRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setOpenSearchIndices(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest) + throws ApiException { + ApiResponse localVarResp = + setOpenSearchIndicesWithHttpInfo(siteId, setOpenSearchIndiceRequest); + return localVarResp.getData(); + } + + /** + * Set site(s) OpenSearch index to use for a SiteId Sets the OpenSearch index to use for a SiteId + * + * @param siteId Site Identifier (required) + * @param setOpenSearchIndiceRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setOpenSearchIndicesWithHttpInfo( + @javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest) + throws ApiException { + okhttp3.Call localVarCall = + setOpenSearchIndicesValidateBeforeCall(siteId, setOpenSearchIndiceRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set site(s) OpenSearch index to use for a SiteId (asynchronously) Sets the OpenSearch index to + * use for a SiteId + * + * @param siteId Site Identifier (required) + * @param setOpenSearchIndiceRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setOpenSearchIndicesAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull SetOpenSearchIndiceRequest setOpenSearchIndiceRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + setOpenSearchIndicesValidateBeforeCall(siteId, setOpenSearchIndiceRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setSiteGroupPermissions + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param setGroupPermissionsRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setSiteGroupPermissionsCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = setGroupPermissionsRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/groups/{groupName}/permissions" + .replace("{" + "siteId" + "}", localVarApiClient.escapeString(siteId.toString())) + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setSiteGroupPermissionsValidateBeforeCall( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling setSiteGroupPermissions(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException( + "Missing the required parameter 'groupName' when calling setSiteGroupPermissions(Async)"); + } + + // verify the required parameter 'setGroupPermissionsRequest' is set + if (setGroupPermissionsRequest == null) { + throw new ApiException( + "Missing the required parameter 'setGroupPermissionsRequest' when calling setSiteGroupPermissions(Async)"); + } + + return setSiteGroupPermissionsCall(siteId, groupName, setGroupPermissionsRequest, _callback); + + } + + /** + * Set Site's Group Permissions Set Site's Group Permissions + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param setGroupPermissionsRequest (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setSiteGroupPermissions(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest) + throws ApiException { + ApiResponse localVarResp = + setSiteGroupPermissionsWithHttpInfo(siteId, groupName, setGroupPermissionsRequest); + return localVarResp.getData(); + } + + /** + * Set Site's Group Permissions Set Site's Group Permissions + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param setGroupPermissionsRequest (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setSiteGroupPermissionsWithHttpInfo( + @javax.annotation.Nonnull String siteId, @javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest) + throws ApiException { + okhttp3.Call localVarCall = setSiteGroupPermissionsValidateBeforeCall(siteId, groupName, + setGroupPermissionsRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set Site's Group Permissions (asynchronously) Set Site's Group Permissions + * + * @param siteId Site Identifier (required) + * @param groupName Group Name (required) + * @param setGroupPermissionsRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setSiteGroupPermissionsAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull SetGroupPermissionsRequest setGroupPermissionsRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = setSiteGroupPermissionsValidateBeforeCall(siteId, groupName, + setGroupPermissionsRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateConfiguration + * + * @param siteId Site Identifier (required) + * @param updateConfigurationRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateConfigurationCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateConfigurationRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}/configuration".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateConfigurationValidateBeforeCall( + @javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling updateConfiguration(Async)"); + } + + // verify the required parameter 'updateConfigurationRequest' is set + if (updateConfigurationRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateConfigurationRequest' when calling updateConfiguration(Async)"); + } + + return updateConfigurationCall(siteId, updateConfigurationRequest, _callback); + + } + + /** + * Update site configuration Update the System Management configuration + * + * @param siteId Site Identifier (required) + * @param updateConfigurationRequest (required) + * @return UpdateConfigurationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public UpdateConfigurationResponse updateConfiguration(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest) + throws ApiException { + ApiResponse localVarResp = + updateConfigurationWithHttpInfo(siteId, updateConfigurationRequest); + return localVarResp.getData(); + } + + /** + * Update site configuration Update the System Management configuration + * + * @param siteId Site Identifier (required) + * @param updateConfigurationRequest (required) + * @return ApiResponse<UpdateConfigurationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse updateConfigurationWithHttpInfo( + @javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest) + throws ApiException { + okhttp3.Call localVarCall = + updateConfigurationValidateBeforeCall(siteId, updateConfigurationRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update site configuration (asynchronously) Update the System Management configuration + * + * @param siteId Site Identifier (required) + * @param updateConfigurationRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call updateConfigurationAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull UpdateConfigurationRequest updateConfigurationRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + updateConfigurationValidateBeforeCall(siteId, updateConfigurationRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateSite + * + * @param siteId Site Identifier (required) + * @param updateSiteRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateSiteCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateSiteRequest; + + // create path and map variables + String localVarPath = "/sites/{siteId}".replace("{" + "siteId" + "}", + localVarApiClient.escapeString(siteId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateSiteValidateBeforeCall(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'siteId' is set + if (siteId == null) { + throw new ApiException( + "Missing the required parameter 'siteId' when calling updateSite(Async)"); + } + + // verify the required parameter 'updateSiteRequest' is set + if (updateSiteRequest == null) { + throw new ApiException( + "Missing the required parameter 'updateSiteRequest' when calling updateSite(Async)"); + } + + return updateSiteCall(siteId, updateSiteRequest, _callback); + + } + + /** + * Update Site Update Site + * + * @param siteId Site Identifier (required) + * @param updateSiteRequest (required) + * @return UpdateResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public UpdateResponse updateSite(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest) throws ApiException { + ApiResponse localVarResp = updateSiteWithHttpInfo(siteId, updateSiteRequest); + return localVarResp.getData(); + } + + /** + * Update Site Update Site + * + * @param siteId Site Identifier (required) + * @param updateSiteRequest (required) + * @return ApiResponse<UpdateResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse updateSiteWithHttpInfo(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest) throws ApiException { + okhttp3.Call localVarCall = updateSiteValidateBeforeCall(siteId, updateSiteRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Site (asynchronously) Update Site + * + * @param siteId Site Identifier (required) + * @param updateSiteRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateSiteAsync(@javax.annotation.Nonnull String siteId, + @javax.annotation.Nonnull UpdateSiteRequest updateSiteRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateSiteValidateBeforeCall(siteId, updateSiteRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/TagIndexApi.java b/src/main/java/com/formkiq/client/api/TagIndexApi.java index 0399e409c..6ea49153a 100644 --- a/src/main/java/com/formkiq/client/api/TagIndexApi.java +++ b/src/main/java/com/formkiq/client/api/TagIndexApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -38,203 +45,292 @@ import java.util.Map; public class TagIndexApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public TagIndexApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public TagIndexApi() { + this(Configuration.getDefaultApiClient()); + } + + public TagIndexApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for indexSearch + * + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call indexSearchCall( + @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public TagIndexApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = indexSearchRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/indices/search"; - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); } - /** - * Build call for indexSearch - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call indexSearchCall(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = indexSearchRequest; - - // create path and map variables - String localVarPath = "/indices/search"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (previous != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - @SuppressWarnings("rawtypes") - private okhttp3.Call indexSearchValidateBeforeCall(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'indexSearchRequest' is set - if (indexSearchRequest == null) { - throw new ApiException("Missing the required parameter 'indexSearchRequest' when calling indexSearch(Async)"); - } - - return indexSearchCall(indexSearchRequest, siteId, limit, next, previous, _callback); - - } - - /** - * - * Perform a search on a index; this is currently available for both folder and tag indices - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return IndexSearchResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public IndexSearchResponse indexSearch(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { - ApiResponse localVarResp = indexSearchWithHttpInfo(indexSearchRequest, siteId, limit, next, previous); - return localVarResp.getData(); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * - * Perform a search on a index; this is currently available for both folder and tag indices - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (optional) - * @return ApiResponse<IndexSearchResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public ApiResponse indexSearchWithHttpInfo(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { - okhttp3.Call localVarCall = indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call indexSearchValidateBeforeCall( + @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'indexSearchRequest' is set + if (indexSearchRequest == null) { + throw new ApiException( + "Missing the required parameter 'indexSearchRequest' when calling indexSearch(Async)"); } - /** - * (asynchronously) - * Perform a search on a index; this is currently available for both folder and tag indices - * @param indexSearchRequest (required) - * @param siteId Site Identifier (optional) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param previous Previous page of results token (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 - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -
- */ - public okhttp3.Call indexSearchAsync(@javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + return indexSearchCall(indexSearchRequest, siteId, limit, next, previous, _callback); + + } + + /** + * + * Perform a search on a index; this is currently available for both folder and tag indices + * + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return IndexSearchResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public IndexSearchResponse indexSearch( + @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) + throws ApiException { + ApiResponse localVarResp = + indexSearchWithHttpInfo(indexSearchRequest, siteId, limit, next, previous); + return localVarResp.getData(); + } + + /** + * + * Perform a search on a index; this is currently available for both folder and tag indices + * + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (optional) + * @return ApiResponse<IndexSearchResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public ApiResponse indexSearchWithHttpInfo( + @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) + throws ApiException { + okhttp3.Call localVarCall = + indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Perform a search on a index; this is currently available for both folder and + * tag indices + * + * @param indexSearchRequest (required) + * @param siteId Site Identifier (optional) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param previous Previous page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
400400 OK-
+ */ + public okhttp3.Call indexSearchAsync( + @javax.annotation.Nonnull IndexSearchRequest indexSearchRequest, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + indexSearchValidateBeforeCall(indexSearchRequest, siteId, limit, next, previous, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/UserActivitiesApi.java b/src/main/java/com/formkiq/client/api/UserActivitiesApi.java index 97c43de13..f05225949 100644 --- a/src/main/java/com/formkiq/client/api/UserActivitiesApi.java +++ b/src/main/java/com/formkiq/client/api/UserActivitiesApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -38,545 +45,757 @@ import java.util.Map; public class UserActivitiesApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public UserActivitiesApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserActivitiesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getDocumentUserActivities + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentUserActivitiesCall(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/documents/{documentId}/userActivities".replace("{" + "documentId" + "}", + localVarApiClient.escapeString(documentId.toString())); - public UserActivitiesApi() { - this(Configuration.getDefaultApiClient()); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public UserActivitiesApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - public ApiClient getApiClient() { - return localVarApiClient; + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public int getHostIndex() { - return localHostIndex; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDocumentUserActivitiesValidateBeforeCall( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'documentId' is set + if (documentId == null) { + throw new ApiException( + "Missing the required parameter 'documentId' when calling getDocumentUserActivities(Async)"); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + return getDocumentUserActivitiesCall(documentId, siteId, next, limit, _callback); + + } + + /** + * Get user activities for a document Retrieve a user's activities for a document + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetUserActivitesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetUserActivitesResponse getDocumentUserActivities( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = + getDocumentUserActivitiesWithHttpInfo(documentId, siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get user activities for a document Retrieve a user's activities for a document + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetUserActivitesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getDocumentUserActivitiesWithHttpInfo( + @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + okhttp3.Call localVarCall = + getDocumentUserActivitiesValidateBeforeCall(documentId, siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get user activities for a document (asynchronously) Retrieve a user's activities for a + * document + * + * @param documentId Document Identifier (required) + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getDocumentUserActivitiesAsync(@javax.annotation.Nonnull String documentId, + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getDocumentUserActivitiesValidateBeforeCall(documentId, siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getResourceActivities + * + * @param siteId Site Identifier (optional) + * @param documentId Document Identifier (optional) + * @param entityTypeId EntityType Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param entityId Entity Identifier (optional) + * @param start Start of date-time range (UTC) (optional) + * @param end End of date-time range (UTC) (optional) + * @param sort Sort order (default DESC) (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getResourceActivitiesCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, + @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, + @javax.annotation.Nullable OffsetDateTime start, + @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/activities"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Build call for getDocumentUserActivities - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentUserActivitiesCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/documents/{documentId}/userActivities" - .replace("{" + "documentId" + "}", localVarApiClient.escapeString(documentId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + if (documentId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("documentId", documentId)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getDocumentUserActivitiesValidateBeforeCall(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'documentId' is set - if (documentId == null) { - throw new ApiException("Missing the required parameter 'documentId' when calling getDocumentUserActivities(Async)"); - } + if (entityTypeId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("entityTypeId", entityTypeId)); + } - return getDocumentUserActivitiesCall(documentId, siteId, next, limit, _callback); + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + if (entityId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("entityId", entityId)); } - /** - * Get user activities for a document - * Retrieve a user's activities for a document - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetUserActivitesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetUserActivitesResponse getDocumentUserActivities(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getDocumentUserActivitiesWithHttpInfo(documentId, siteId, next, limit); - return localVarResp.getData(); + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); } - /** - * Get user activities for a document - * Retrieve a user's activities for a document - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetUserActivitesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getDocumentUserActivitiesWithHttpInfo(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getDocumentUserActivitiesValidateBeforeCall(documentId, siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); } - /** - * Get user activities for a document (asynchronously) - * Retrieve a user's activities for a document - * @param documentId Document Identifier (required) - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getDocumentUserActivitiesAsync(@javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getDocumentUserActivitiesValidateBeforeCall(documentId, siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); } - /** - * Build call for getResourceActivities - * @param siteId Site Identifier (optional) - * @param documentId Document Identifier (optional) - * @param entityTypeId EntityType Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param entityId Entity Identifier (optional) - * @param start Start of date-time range (UTC) (optional) - * @param end End of date-time range (UTC) (optional) - * @param sort Sort order (default DESC) (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getResourceActivitiesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/activities"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (documentId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("documentId", documentId)); - } - - if (entityTypeId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("entityTypeId", entityTypeId)); - } - - if (namespace != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); - } - - if (entityId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("entityId", entityId)); - } - - if (start != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); - } - - if (end != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); - } - - if (sort != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (userId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getResourceActivitiesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { - return getResourceActivitiesCall(siteId, documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId, _callback); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); } - /** - * Get resource activities - * Retrieve an resource activities - * @param siteId Site Identifier (optional) - * @param documentId Document Identifier (optional) - * @param entityTypeId EntityType Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param entityId Entity Identifier (optional) - * @param start Start of date-time range (UTC) (optional) - * @param end End of date-time range (UTC) (optional) - * @param sort Sort order (default DESC) (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @return GetActivitesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetActivitesResponse getResourceActivities(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId) throws ApiException { - ApiResponse localVarResp = getResourceActivitiesWithHttpInfo(siteId, documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get resource activities - * Retrieve an resource activities - * @param siteId Site Identifier (optional) - * @param documentId Document Identifier (optional) - * @param entityTypeId EntityType Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param entityId Entity Identifier (optional) - * @param start Start of date-time range (UTC) (optional) - * @param end End of date-time range (UTC) (optional) - * @param sort Sort order (default DESC) (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @return ApiResponse<GetActivitesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getResourceActivitiesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId) throws ApiException { - okhttp3.Call localVarCall = getResourceActivitiesValidateBeforeCall(siteId, documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get resource activities (asynchronously) - * Retrieve an resource activities - * @param siteId Site Identifier (optional) - * @param documentId Document Identifier (optional) - * @param entityTypeId EntityType Identifier (optional) - * @param namespace Namespace Identifier (optional) - * @param entityId Entity Identifier (optional) - * @param start Start of date-time range (UTC) (optional) - * @param end End of date-time range (UTC) (optional) - * @param sort Sort order (default DESC) (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getResourceActivitiesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getResourceActivitiesValidateBeforeCall(siteId, documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getResourceActivitiesValidateBeforeCall( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, + @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, + @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, + @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + return getResourceActivitiesCall(siteId, documentId, entityTypeId, namespace, entityId, start, + end, sort, next, limit, userId, _callback); + + } + + /** + * Get resource activities Retrieve an resource activities + * + * @param siteId Site Identifier (optional) + * @param documentId Document Identifier (optional) + * @param entityTypeId EntityType Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param entityId Entity Identifier (optional) + * @param start Start of date-time range (UTC) (optional) + * @param end End of date-time range (UTC) (optional) + * @param sort Sort order (default DESC) (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @return GetActivitesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetActivitesResponse getResourceActivities(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, + @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, + @javax.annotation.Nullable OffsetDateTime start, + @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String userId) throws ApiException { + ApiResponse localVarResp = getResourceActivitiesWithHttpInfo(siteId, + documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId); + return localVarResp.getData(); + } + + /** + * Get resource activities Retrieve an resource activities + * + * @param siteId Site Identifier (optional) + * @param documentId Document Identifier (optional) + * @param entityTypeId EntityType Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param entityId Entity Identifier (optional) + * @param start Start of date-time range (UTC) (optional) + * @param end End of date-time range (UTC) (optional) + * @param sort Sort order (default DESC) (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @return ApiResponse<GetActivitesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getResourceActivitiesWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String documentId, + @javax.annotation.Nullable String entityTypeId, @javax.annotation.Nullable String namespace, + @javax.annotation.Nullable String entityId, @javax.annotation.Nullable OffsetDateTime start, + @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String userId) throws ApiException { + okhttp3.Call localVarCall = getResourceActivitiesValidateBeforeCall(siteId, documentId, + entityTypeId, namespace, entityId, start, end, sort, next, limit, userId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get resource activities (asynchronously) Retrieve an resource activities + * + * @param siteId Site Identifier (optional) + * @param documentId Document Identifier (optional) + * @param entityTypeId EntityType Identifier (optional) + * @param namespace Namespace Identifier (optional) + * @param entityId Entity Identifier (optional) + * @param start Start of date-time range (UTC) (optional) + * @param end End of date-time range (UTC) (optional) + * @param sort Sort order (default DESC) (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getResourceActivitiesAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String documentId, @javax.annotation.Nullable String entityTypeId, + @javax.annotation.Nullable String namespace, @javax.annotation.Nullable String entityId, + @javax.annotation.Nullable OffsetDateTime start, + @javax.annotation.Nullable OffsetDateTime end, @javax.annotation.Nullable String sort, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String userId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getResourceActivitiesValidateBeforeCall(siteId, documentId, + entityTypeId, namespace, entityId, start, end, sort, next, limit, userId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getUserActivities + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getUserActivitiesCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Build call for getUserActivities - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getUserActivitiesCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/userActivities"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (userId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/userActivities"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getUserActivitiesValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { - return getUserActivitiesCall(siteId, next, limit, userId, _callback); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - /** - * Get user activities - * Retrieve a user's activities - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @return GetUserActivitesResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetUserActivitesResponse getUserActivities(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId) throws ApiException { - ApiResponse localVarResp = getUserActivitiesWithHttpInfo(siteId, next, limit, userId); - return localVarResp.getData(); + if (userId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("userId", userId)); } - /** - * Get user activities - * Retrieve a user's activities - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (optional) - * @return ApiResponse<GetUserActivitesResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getUserActivitiesWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId) throws ApiException { - okhttp3.Call localVarCall = getUserActivitiesValidateBeforeCall(siteId, next, limit, userId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get user activities (asynchronously) - * Retrieve a user's activities - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param userId Fetch specific user activities (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getUserActivitiesAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getUserActivitiesValidateBeforeCall(siteId, next, limit, userId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserActivitiesValidateBeforeCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String userId, final ApiCallback _callback) throws ApiException { + return getUserActivitiesCall(siteId, next, limit, userId, _callback); + + } + + /** + * Get user activities Retrieve a user's activities + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @return GetUserActivitesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetUserActivitesResponse getUserActivities(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String userId) throws ApiException { + ApiResponse localVarResp = + getUserActivitiesWithHttpInfo(siteId, next, limit, userId); + return localVarResp.getData(); + } + + /** + * Get user activities Retrieve a user's activities + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (optional) + * @return ApiResponse<GetUserActivitesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getUserActivitiesWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String userId) + throws ApiException { + okhttp3.Call localVarCall = + getUserActivitiesValidateBeforeCall(siteId, next, limit, userId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get user activities (asynchronously) Retrieve a user's activities + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param userId Fetch specific user activities (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getUserActivitiesAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String userId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getUserActivitiesValidateBeforeCall(siteId, next, limit, userId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/UserManagementApi.java b/src/main/java/com/formkiq/client/api/UserManagementApi.java index c94dd0993..46b6c2bf1 100644 --- a/src/main/java/com/formkiq/client/api/UserManagementApi.java +++ b/src/main/java/com/formkiq/client/api/UserManagementApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -46,1765 +53,2499 @@ import java.util.Map; public class UserManagementApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public UserManagementApi() { - this(Configuration.getDefaultApiClient()); - } - - public UserManagementApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - /** - * Build call for addGroup - * @param addGroupRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addGroupCall(@javax.annotation.Nonnull AddGroupRequest addGroupRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addGroupRequest; - - // create path and map variables - String localVarPath = "/groups"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addGroupValidateBeforeCall(@javax.annotation.Nonnull AddGroupRequest addGroupRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addGroupRequest' is set - if (addGroupRequest == null) { - throw new ApiException("Missing the required parameter 'addGroupRequest' when calling addGroup(Async)"); - } - - return addGroupCall(addGroupRequest, _callback); - - } - - /** - * Add a group - * Add a new group - * @param addGroupRequest (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddResponse addGroup(@javax.annotation.Nonnull AddGroupRequest addGroupRequest) throws ApiException { - ApiResponse localVarResp = addGroupWithHttpInfo(addGroupRequest); - return localVarResp.getData(); - } - - /** - * Add a group - * Add a new group - * @param addGroupRequest (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addGroupWithHttpInfo(@javax.annotation.Nonnull AddGroupRequest addGroupRequest) throws ApiException { - okhttp3.Call localVarCall = addGroupValidateBeforeCall(addGroupRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add a group (asynchronously) - * Add a new group - * @param addGroupRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addGroupAsync(@javax.annotation.Nonnull AddGroupRequest addGroupRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addGroupValidateBeforeCall(addGroupRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addUser - * @param addUserRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addUserCall(@javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addUserRequest; - - // create path and map variables - String localVarPath = "/users"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addUserValidateBeforeCall(@javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addUserRequest' is set - if (addUserRequest == null) { - throw new ApiException("Missing the required parameter 'addUserRequest' when calling addUser(Async)"); - } - - return addUserCall(addUserRequest, _callback); - - } - - /** - * Add User - * Adds a user - * @param addUserRequest (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddResponse addUser(@javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { - ApiResponse localVarResp = addUserWithHttpInfo(addUserRequest); - return localVarResp.getData(); - } - - /** - * Add User - * Adds a user - * @param addUserRequest (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addUserWithHttpInfo(@javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { - okhttp3.Call localVarCall = addUserValidateBeforeCall(addUserRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add User (asynchronously) - * Adds a user - * @param addUserRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addUserAsync(@javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addUserValidateBeforeCall(addUserRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for addUserToGroup - * @param groupName Group Name (required) - * @param addUserRequest (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addUserToGroupCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addUserRequest; - - // create path and map variables - String localVarPath = "/groups/{groupName}/users" - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call addUserToGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling addUserToGroup(Async)"); - } - - // verify the required parameter 'addUserRequest' is set - if (addUserRequest == null) { - throw new ApiException("Missing the required parameter 'addUserRequest' when calling addUserToGroup(Async)"); - } - - return addUserToGroupCall(groupName, addUserRequest, _callback); - - } - - /** - * Add User to a group - * Adds a user to a group - * @param groupName Group Name (required) - * @param addUserRequest (required) - * @return AddResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddResponse addUserToGroup(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { - ApiResponse localVarResp = addUserToGroupWithHttpInfo(groupName, addUserRequest); - return localVarResp.getData(); - } - - /** - * Add User to a group - * Adds a user to a group - * @param groupName Group Name (required) - * @param addUserRequest (required) - * @return ApiResponse<AddResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addUserToGroupWithHttpInfo(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { - okhttp3.Call localVarCall = addUserToGroupValidateBeforeCall(groupName, addUserRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Add User to a group (asynchronously) - * Adds a user to a group - * @param groupName Group Name (required) - * @param addUserRequest (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addUserToGroupAsync(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addUserToGroupValidateBeforeCall(groupName, addUserRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteGroup - * @param groupName Group Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteGroupCall(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{groupName}" - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling deleteGroup(Async)"); - } - - return deleteGroupCall(groupName, _callback); - - } - - /** - * Delete Group - * Delete Group - * @param groupName Group Name (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteGroup(@javax.annotation.Nonnull String groupName) throws ApiException { - ApiResponse localVarResp = deleteGroupWithHttpInfo(groupName); - return localVarResp.getData(); - } - - /** - * Delete Group - * Delete Group - * @param groupName Group Name (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteGroupWithHttpInfo(@javax.annotation.Nonnull String groupName) throws ApiException { - okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Group (asynchronously) - * Delete Group - * @param groupName Group Name (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteGroupAsync(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteUsername - * @param username Username (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteUsernameCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/users/{username}" - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUsernameValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException("Missing the required parameter 'username' when calling deleteUsername(Async)"); - } - - return deleteUsernameCall(username, _callback); - - } - - /** - * Delete Username - * Delete Username - * @param username Username (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteUsername(@javax.annotation.Nonnull String username) throws ApiException { - ApiResponse localVarResp = deleteUsernameWithHttpInfo(username); - return localVarResp.getData(); - } - - /** - * Delete Username - * Delete Username - * @param username Username (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteUsernameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { - okhttp3.Call localVarCall = deleteUsernameValidateBeforeCall(username, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Delete Username (asynchronously) - * Delete Username - * @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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteUsernameAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteUsernameValidateBeforeCall(username, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getGroup - * @param groupName Group Name (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getGroupCall(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{groupName}" - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling getGroup(Async)"); - } - - return getGroupCall(groupName, _callback); - - } - - /** - * Get a user group - * Returns a user group - * @param groupName Group Name (required) - * @return GetGroupResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetGroupResponse getGroup(@javax.annotation.Nonnull String groupName) throws ApiException { - ApiResponse localVarResp = getGroupWithHttpInfo(groupName); - return localVarResp.getData(); - } - - /** - * Get a user group - * Returns a user group - * @param groupName Group Name (required) - * @return ApiResponse<GetGroupResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getGroupWithHttpInfo(@javax.annotation.Nonnull String groupName) throws ApiException { - okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupName, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get a user group (asynchronously) - * Returns a user group - * @param groupName Group Name (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getGroupAsync(@javax.annotation.Nonnull String groupName, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupName, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getGroups - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getGroupsCall(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getGroupsValidateBeforeCall(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - return getGroupsCall(limit, next, _callback); - - } - - /** - * Get list of user group(s) - * Returns the list of user groups - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetGroupsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetGroupsResponse getGroups(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getGroupsWithHttpInfo(limit, next); - return localVarResp.getData(); - } - - /** - * Get list of user group(s) - * Returns the list of user groups - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetGroupsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getGroupsWithHttpInfo(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getGroupsValidateBeforeCall(limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of user group(s) (asynchronously) - * Returns the list of user groups - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getGroupsAsync(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getGroupsValidateBeforeCall(limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getListOfUserGroups - * @param username Username (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getListOfUserGroupsCall(@javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/users/{username}/groups" - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getListOfUserGroupsValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException("Missing the required parameter 'username' when calling getListOfUserGroups(Async)"); - } - - return getListOfUserGroupsCall(username, limit, next, _callback); - - } - - /** - * Returns a list of group user belongs to - * Returns a list of group user belongs to - * @param username Username (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetUserGroupsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetUserGroupsResponse getListOfUserGroups(@javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getListOfUserGroupsWithHttpInfo(username, limit, next); - return localVarResp.getData(); - } - - /** - * Returns a list of group user belongs to - * Returns a list of group user belongs to - * @param username Username (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetUserGroupsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getListOfUserGroupsWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getListOfUserGroupsValidateBeforeCall(username, limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Returns a list of group user belongs to (asynchronously) - * Returns a list of group user belongs to - * @param username Username (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getListOfUserGroupsAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getListOfUserGroupsValidateBeforeCall(username, limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getUser - * @param username Username (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getUserCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/users/{username}" - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException("Missing the required parameter 'username' when calling getUser(Async)"); - } - - return getUserCall(username, _callback); - - } - - /** - * Get a user - * Returns a user - * @param username Username (required) - * @return GetUserResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetUserResponse getUser(@javax.annotation.Nonnull String username) throws ApiException { - ApiResponse localVarResp = getUserWithHttpInfo(username); - return localVarResp.getData(); - } - - /** - * Get a user - * Returns a user - * @param username Username (required) - * @return ApiResponse<GetUserResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException { - okhttp3.Call localVarCall = getUserValidateBeforeCall(username, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get a user (asynchronously) - * Returns a user - * @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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getUserAsync(@javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getUserValidateBeforeCall(username, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getUsers - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getUsersCall(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/users"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getUsersValidateBeforeCall(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - return getUsersCall(limit, next, _callback); - - } - - /** - * Get list of user(s) - * Returns the list of users - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetUsersResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetUsersResponse getUsers(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getUsersWithHttpInfo(limit, next); - return localVarResp.getData(); - } - - /** - * Get list of user(s) - * Returns the list of users - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetUsersResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getUsersWithHttpInfo(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getUsersValidateBeforeCall(limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get list of user(s) (asynchronously) - * Returns the list of users - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getUsersAsync(@javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getUsersValidateBeforeCall(limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getUsersInGroup - * @param groupName Group Name (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getUsersInGroupCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{groupName}/users" - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getUsersInGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling getUsersInGroup(Async)"); - } - - return getUsersInGroupCall(groupName, limit, next, _callback); - - } - - /** - * Get users in a group - * Returns the list of users in a group - * @param groupName Group Name (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return GetUsersInGroupResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetUsersInGroupResponse getUsersInGroup(@javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - ApiResponse localVarResp = getUsersInGroupWithHttpInfo(groupName, limit, next); - return localVarResp.getData(); - } - - /** - * Get users in a group - * Returns the list of users in a group - * @param groupName Group Name (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (optional) - * @return ApiResponse<GetUsersInGroupResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getUsersInGroupWithHttpInfo(@javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) throws ApiException { - okhttp3.Call localVarCall = getUsersInGroupValidateBeforeCall(groupName, limit, next, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Get users in a group (asynchronously) - * Returns the list of users in a group - * @param groupName Group Name (required) - * @param limit Limit Results (optional, default to 10) - * @param next Next page of results token (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getUsersInGroupAsync(@javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getUsersInGroupValidateBeforeCall(groupName, limit, next, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for removeUsernameFromGroup - * @param groupName Group Name (required) - * @param username Username (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call removeUsernameFromGroupCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/groups/{groupName}/users/{username}" - .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())) - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call removeUsernameFromGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'groupName' is set - if (groupName == null) { - throw new ApiException("Missing the required parameter 'groupName' when calling removeUsernameFromGroup(Async)"); - } - - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException("Missing the required parameter 'username' when calling removeUsernameFromGroup(Async)"); - } - - return removeUsernameFromGroupCall(groupName, username, _callback); - - } - - /** - * Remove Username From Group - * Remove Username From Group - * @param groupName Group Name (required) - * @param username Username (required) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse removeUsernameFromGroup(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username) throws ApiException { - ApiResponse localVarResp = removeUsernameFromGroupWithHttpInfo(groupName, username); - return localVarResp.getData(); - } - - /** - * Remove Username From Group - * Remove Username From Group - * @param groupName Group Name (required) - * @param username Username (required) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse removeUsernameFromGroupWithHttpInfo(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username) throws ApiException { - okhttp3.Call localVarCall = removeUsernameFromGroupValidateBeforeCall(groupName, username, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Remove Username From Group (asynchronously) - * Remove Username From Group - * @param groupName Group Name (required) - * @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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call removeUsernameFromGroupAsync(@javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = removeUsernameFromGroupValidateBeforeCall(groupName, username, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for setUserOperation - * @param username Username (required) - * @param userOperation Username Operation (required) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setUserOperationCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/users/{username}/{userOperation}" - .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())) - .replace("{" + "userOperation" + "}", localVarApiClient.escapeString(userOperation.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call setUserOperationValidateBeforeCall(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException("Missing the required parameter 'username' when calling setUserOperation(Async)"); - } - - // verify the required parameter 'userOperation' is set - if (userOperation == null) { - throw new ApiException("Missing the required parameter 'userOperation' when calling setUserOperation(Async)"); - } - - return setUserOperationCall(username, userOperation, _callback); - - } - - /** - * Set User Operation - * Set User Operation (disable, enable, reset-password) - * @param username Username (required) - * @param userOperation Username Operation (required) - * @return SetResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public SetResponse setUserOperation(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation) throws ApiException { - ApiResponse localVarResp = setUserOperationWithHttpInfo(username, userOperation); - return localVarResp.getData(); - } - - /** - * Set User Operation - * Set User Operation (disable, enable, reset-password) - * @param username Username (required) - * @param userOperation Username Operation (required) - * @return ApiResponse<SetResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse setUserOperationWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation) throws ApiException { - okhttp3.Call localVarCall = setUserOperationValidateBeforeCall(username, userOperation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * Set User Operation (asynchronously) - * Set User Operation (disable, enable, reset-password) - * @param username Username (required) - * @param userOperation Username Operation (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call setUserOperationAsync(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = setUserOperationValidateBeforeCall(username, userOperation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public UserManagementApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserManagementApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addGroup + * + * @param addGroupRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addGroupCall(@javax.annotation.Nonnull AddGroupRequest addGroupRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addGroupRequest; + + // create path and map variables + String localVarPath = "/groups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addGroupValidateBeforeCall( + @javax.annotation.Nonnull AddGroupRequest addGroupRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'addGroupRequest' is set + if (addGroupRequest == null) { + throw new ApiException( + "Missing the required parameter 'addGroupRequest' when calling addGroup(Async)"); + } + + return addGroupCall(addGroupRequest, _callback); + + } + + /** + * Add a group Add a new group + * + * @param addGroupRequest (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddResponse addGroup(@javax.annotation.Nonnull AddGroupRequest addGroupRequest) + throws ApiException { + ApiResponse localVarResp = addGroupWithHttpInfo(addGroupRequest); + return localVarResp.getData(); + } + + /** + * Add a group Add a new group + * + * @param addGroupRequest (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addGroupWithHttpInfo( + @javax.annotation.Nonnull AddGroupRequest addGroupRequest) throws ApiException { + okhttp3.Call localVarCall = addGroupValidateBeforeCall(addGroupRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add a group (asynchronously) Add a new group + * + * @param addGroupRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addGroupAsync(@javax.annotation.Nonnull AddGroupRequest addGroupRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addGroupValidateBeforeCall(addGroupRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addUser + * + * @param addUserRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addUserCall(@javax.annotation.Nonnull AddUserRequest addUserRequest, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addUserRequest; + + // create path and map variables + String localVarPath = "/users"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addUserValidateBeforeCall( + @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'addUserRequest' is set + if (addUserRequest == null) { + throw new ApiException( + "Missing the required parameter 'addUserRequest' when calling addUser(Async)"); + } + + return addUserCall(addUserRequest, _callback); + + } + + /** + * Add User Adds a user + * + * @param addUserRequest (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddResponse addUser(@javax.annotation.Nonnull AddUserRequest addUserRequest) + throws ApiException { + ApiResponse localVarResp = addUserWithHttpInfo(addUserRequest); + return localVarResp.getData(); + } + + /** + * Add User Adds a user + * + * @param addUserRequest (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addUserWithHttpInfo( + @javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { + okhttp3.Call localVarCall = addUserValidateBeforeCall(addUserRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add User (asynchronously) Adds a user + * + * @param addUserRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addUserAsync(@javax.annotation.Nonnull AddUserRequest addUserRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addUserValidateBeforeCall(addUserRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addUserToGroup + * + * @param groupName Group Name (required) + * @param addUserRequest (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addUserToGroupCall(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addUserRequest; + + // create path and map variables + String localVarPath = "/groups/{groupName}/users".replace("{" + "groupName" + "}", + localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addUserToGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull AddUserRequest addUserRequest, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException( + "Missing the required parameter 'groupName' when calling addUserToGroup(Async)"); + } + + // verify the required parameter 'addUserRequest' is set + if (addUserRequest == null) { + throw new ApiException( + "Missing the required parameter 'addUserRequest' when calling addUserToGroup(Async)"); + } + + return addUserToGroupCall(groupName, addUserRequest, _callback); + + } + + /** + * Add User to a group Adds a user to a group + * + * @param groupName Group Name (required) + * @param addUserRequest (required) + * @return AddResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddResponse addUserToGroup(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { + ApiResponse localVarResp = addUserToGroupWithHttpInfo(groupName, addUserRequest); + return localVarResp.getData(); + } + + /** + * Add User to a group Adds a user to a group + * + * @param groupName Group Name (required) + * @param addUserRequest (required) + * @return ApiResponse<AddResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addUserToGroupWithHttpInfo( + @javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull AddUserRequest addUserRequest) throws ApiException { + okhttp3.Call localVarCall = addUserToGroupValidateBeforeCall(groupName, addUserRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add User to a group (asynchronously) Adds a user to a group + * + * @param groupName Group Name (required) + * @param addUserRequest (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addUserToGroupAsync(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull AddUserRequest addUserRequest, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + addUserToGroupValidateBeforeCall(groupName, addUserRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteGroup + * + * @param groupName Group Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteGroupCall(@javax.annotation.Nonnull String groupName, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups/{groupName}".replace("{" + "groupName" + "}", + localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException( + "Missing the required parameter 'groupName' when calling deleteGroup(Async)"); + } + + return deleteGroupCall(groupName, _callback); + + } + + /** + * Delete Group Delete Group + * + * @param groupName Group Name (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteGroup(@javax.annotation.Nonnull String groupName) + throws ApiException { + ApiResponse localVarResp = deleteGroupWithHttpInfo(groupName); + return localVarResp.getData(); + } + + /** + * Delete Group Delete Group + * + * @param groupName Group Name (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteGroupWithHttpInfo( + @javax.annotation.Nonnull String groupName) throws ApiException { + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Group (asynchronously) Delete Group + * + * @param groupName Group Name (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteGroupAsync(@javax.annotation.Nonnull String groupName, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for deleteUsername + * + * @param username Username (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteUsernameCall(@javax.annotation.Nonnull String username, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users/{username}".replace("{" + "username" + "}", + localVarApiClient.escapeString(username.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUsernameValidateBeforeCall(@javax.annotation.Nonnull String username, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException( + "Missing the required parameter 'username' when calling deleteUsername(Async)"); + } + + return deleteUsernameCall(username, _callback); + + } + + /** + * Delete Username Delete Username + * + * @param username Username (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteUsername(@javax.annotation.Nonnull String username) + throws ApiException { + ApiResponse localVarResp = deleteUsernameWithHttpInfo(username); + return localVarResp.getData(); + } + + /** + * Delete Username Delete Username + * + * @param username Username (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteUsernameWithHttpInfo( + @javax.annotation.Nonnull String username) throws ApiException { + okhttp3.Call localVarCall = deleteUsernameValidateBeforeCall(username, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete Username (asynchronously) Delete Username + * + * @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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteUsernameAsync(@javax.annotation.Nonnull String username, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteUsernameValidateBeforeCall(username, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getGroup + * + * @param groupName Group Name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getGroupCall(@javax.annotation.Nonnull String groupName, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups/{groupName}".replace("{" + "groupName" + "}", + localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException( + "Missing the required parameter 'groupName' when calling getGroup(Async)"); + } + + return getGroupCall(groupName, _callback); + + } + + /** + * Get a user group Returns a user group + * + * @param groupName Group Name (required) + * @return GetGroupResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetGroupResponse getGroup(@javax.annotation.Nonnull String groupName) throws ApiException { + ApiResponse localVarResp = getGroupWithHttpInfo(groupName); + return localVarResp.getData(); + } + + /** + * Get a user group Returns a user group + * + * @param groupName Group Name (required) + * @return ApiResponse<GetGroupResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getGroupWithHttpInfo( + @javax.annotation.Nonnull String groupName) throws ApiException { + okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupName, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get a user group (asynchronously) Returns a user group + * + * @param groupName Group Name (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getGroupAsync(@javax.annotation.Nonnull String groupName, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupName, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getGroups + * + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getGroupsCall(@javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupsValidateBeforeCall(@javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + return getGroupsCall(limit, next, _callback); + + } + + /** + * Get list of user group(s) Returns the list of user groups + * + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetGroupsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetGroupsResponse getGroups(@javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getGroupsWithHttpInfo(limit, next); + return localVarResp.getData(); + } + + /** + * Get list of user group(s) Returns the list of user groups + * + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetGroupsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getGroupsWithHttpInfo( + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + okhttp3.Call localVarCall = getGroupsValidateBeforeCall(limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of user group(s) (asynchronously) Returns the list of user groups + * + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getGroupsAsync(@javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getGroupsValidateBeforeCall(limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getListOfUserGroups + * + * @param username Username (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getListOfUserGroupsCall(@javax.annotation.Nonnull String username, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users/{username}/groups".replace("{" + "username" + "}", + localVarApiClient.escapeString(username.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getListOfUserGroupsValidateBeforeCall( + @javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException( + "Missing the required parameter 'username' when calling getListOfUserGroups(Async)"); + } + + return getListOfUserGroupsCall(username, limit, next, _callback); + + } + + /** + * Returns a list of group user belongs to Returns a list of group user belongs to + * + * @param username Username (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetUserGroupsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetUserGroupsResponse getListOfUserGroups(@javax.annotation.Nonnull String username, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + ApiResponse localVarResp = + getListOfUserGroupsWithHttpInfo(username, limit, next); + return localVarResp.getData(); + } + + /** + * Returns a list of group user belongs to Returns a list of group user belongs to + * + * @param username Username (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetUserGroupsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getListOfUserGroupsWithHttpInfo( + @javax.annotation.Nonnull String username, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getListOfUserGroupsValidateBeforeCall(username, limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Returns a list of group user belongs to (asynchronously) Returns a list of group user belongs + * to + * + * @param username Username (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getListOfUserGroupsAsync(@javax.annotation.Nonnull String username, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getListOfUserGroupsValidateBeforeCall(username, limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getUser + * + * @param username Username (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getUserCall(@javax.annotation.Nonnull String username, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users/{username}".replace("{" + "username" + "}", + localVarApiClient.escapeString(username.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull String username, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException( + "Missing the required parameter 'username' when calling getUser(Async)"); + } + + return getUserCall(username, _callback); + + } + + /** + * Get a user Returns a user + * + * @param username Username (required) + * @return GetUserResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetUserResponse getUser(@javax.annotation.Nonnull String username) throws ApiException { + ApiResponse localVarResp = getUserWithHttpInfo(username); + return localVarResp.getData(); + } + + /** + * Get a user Returns a user + * + * @param username Username (required) + * @return ApiResponse<GetUserResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getUserWithHttpInfo(@javax.annotation.Nonnull String username) + throws ApiException { + okhttp3.Call localVarCall = getUserValidateBeforeCall(username, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get a user (asynchronously) Returns a user + * + * @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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getUserAsync(@javax.annotation.Nonnull String username, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUserValidateBeforeCall(username, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getUsers + * + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getUsersCall(@javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUsersValidateBeforeCall(@javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) throws ApiException { + return getUsersCall(limit, next, _callback); + + } + + /** + * Get list of user(s) Returns the list of users + * + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetUsersResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetUsersResponse getUsers(@javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next) throws ApiException { + ApiResponse localVarResp = getUsersWithHttpInfo(limit, next); + return localVarResp.getData(); + } + + /** + * Get list of user(s) Returns the list of users + * + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetUsersResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getUsersWithHttpInfo(@javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getUsersValidateBeforeCall(limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get list of user(s) (asynchronously) Returns the list of users + * + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getUsersAsync(@javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getUsersValidateBeforeCall(limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getUsersInGroup + * + * @param groupName Group Name (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getUsersInGroupCall(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups/{groupName}/users".replace("{" + "groupName" + "}", + localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUsersInGroupValidateBeforeCall(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException( + "Missing the required parameter 'groupName' when calling getUsersInGroup(Async)"); + } + + return getUsersInGroupCall(groupName, limit, next, _callback); + + } + + /** + * Get users in a group Returns the list of users in a group + * + * @param groupName Group Name (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return GetUsersInGroupResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetUsersInGroupResponse getUsersInGroup(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next) + throws ApiException { + ApiResponse localVarResp = + getUsersInGroupWithHttpInfo(groupName, limit, next); + return localVarResp.getData(); + } + + /** + * Get users in a group Returns the list of users in a group + * + * @param groupName Group Name (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (optional) + * @return ApiResponse<GetUsersInGroupResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getUsersInGroupWithHttpInfo( + @javax.annotation.Nonnull String groupName, @javax.annotation.Nullable String limit, + @javax.annotation.Nullable String next) throws ApiException { + okhttp3.Call localVarCall = getUsersInGroupValidateBeforeCall(groupName, limit, next, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get users in a group (asynchronously) Returns the list of users in a group + * + * @param groupName Group Name (required) + * @param limit Limit Results (optional, default to 10) + * @param next Next page of results token (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getUsersInGroupAsync(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nullable String limit, @javax.annotation.Nullable String next, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + getUsersInGroupValidateBeforeCall(groupName, limit, next, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for removeUsernameFromGroup + * + * @param groupName Group Name (required) + * @param username Username (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call removeUsernameFromGroupCall(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull String username, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups/{groupName}/users/{username}" + .replace("{" + "groupName" + "}", localVarApiClient.escapeString(groupName.toString())) + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeUsernameFromGroupValidateBeforeCall( + @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username, + final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException( + "Missing the required parameter 'groupName' when calling removeUsernameFromGroup(Async)"); + } + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException( + "Missing the required parameter 'username' when calling removeUsernameFromGroup(Async)"); + } + + return removeUsernameFromGroupCall(groupName, username, _callback); + + } + + /** + * Remove Username From Group Remove Username From Group + * + * @param groupName Group Name (required) + * @param username Username (required) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse removeUsernameFromGroup(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull String username) throws ApiException { + ApiResponse localVarResp = + removeUsernameFromGroupWithHttpInfo(groupName, username); + return localVarResp.getData(); + } + + /** + * Remove Username From Group Remove Username From Group + * + * @param groupName Group Name (required) + * @param username Username (required) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse removeUsernameFromGroupWithHttpInfo( + @javax.annotation.Nonnull String groupName, @javax.annotation.Nonnull String username) + throws ApiException { + okhttp3.Call localVarCall = + removeUsernameFromGroupValidateBeforeCall(groupName, username, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Remove Username From Group (asynchronously) Remove Username From Group + * + * @param groupName Group Name (required) + * @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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call removeUsernameFromGroupAsync(@javax.annotation.Nonnull String groupName, + @javax.annotation.Nonnull String username, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + removeUsernameFromGroupValidateBeforeCall(groupName, username, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for setUserOperation + * + * @param username Username (required) + * @param userOperation Username Operation (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setUserOperationCall(@javax.annotation.Nonnull String username, + @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/users/{username}/{userOperation}" + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())) + .replace("{" + "userOperation" + "}", + localVarApiClient.escapeString(userOperation.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call setUserOperationValidateBeforeCall(@javax.annotation.Nonnull String username, + @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException( + "Missing the required parameter 'username' when calling setUserOperation(Async)"); + } + + // verify the required parameter 'userOperation' is set + if (userOperation == null) { + throw new ApiException( + "Missing the required parameter 'userOperation' when calling setUserOperation(Async)"); + } + + return setUserOperationCall(username, userOperation, _callback); + + } + + /** + * Set User Operation Set User Operation (disable, enable, reset-password) + * + * @param username Username (required) + * @param userOperation Username Operation (required) + * @return SetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public SetResponse setUserOperation(@javax.annotation.Nonnull String username, + @javax.annotation.Nonnull String userOperation) throws ApiException { + ApiResponse localVarResp = setUserOperationWithHttpInfo(username, userOperation); + return localVarResp.getData(); + } + + /** + * Set User Operation Set User Operation (disable, enable, reset-password) + * + * @param username Username (required) + * @param userOperation Username Operation (required) + * @return ApiResponse<SetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse setUserOperationWithHttpInfo( + @javax.annotation.Nonnull String username, @javax.annotation.Nonnull String userOperation) + throws ApiException { + okhttp3.Call localVarCall = setUserOperationValidateBeforeCall(username, userOperation, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set User Operation (asynchronously) Set User Operation (disable, enable, reset-password) + * + * @param username Username (required) + * @param userOperation Username Operation (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call setUserOperationAsync(@javax.annotation.Nonnull String username, + @javax.annotation.Nonnull String userOperation, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + setUserOperationValidateBeforeCall(username, userOperation, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/api/WebhooksApi.java b/src/main/java/com/formkiq/client/api/WebhooksApi.java index bcc3870e6..2506f2764 100644 --- a/src/main/java/com/formkiq/client/api/WebhooksApi.java +++ b/src/main/java/com/formkiq/client/api/WebhooksApi.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -44,1151 +51,1637 @@ import java.util.Map; public class WebhooksApi { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public WebhooksApi() { - this(Configuration.getDefaultApiClient()); + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public WebhooksApi() { + this(Configuration.getDefaultApiClient()); + } + + public WebhooksApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addWebhook + * + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addWebhookCall(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - public WebhooksApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + Object localVarPostBody = addWebhookRequest; - public ApiClient getApiClient() { - return localVarApiClient; - } + // create path and map variables + String localVarPath = "/webhooks"; - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - public int getHostIndex() { - return localHostIndex; + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - public String getCustomBaseUrl() { - return localCustomBaseUrl; + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addWebhookValidateBeforeCall( + @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'addWebhookRequest' is set + if (addWebhookRequest == null) { + throw new ApiException( + "Missing the required parameter 'addWebhookRequest' when calling addWebhook(Async)"); } - /** - * Build call for addWebhook - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addWebhookCall(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addWebhookRequest; - - // create path and map variables - String localVarPath = "/webhooks"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return addWebhookCall(addWebhookRequest, siteId, _callback); + + } + + /** + * Add webhook Create a new webhook; once created, a webhook's id can be provided to an + * external service, allowing data to be sent, received, and processed via that webhook + * + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @return AddWebhookResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public AddWebhookResponse addWebhook( + @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + addWebhookWithHttpInfo(addWebhookRequest, siteId); + return localVarResp.getData(); + } + + /** + * Add webhook Create a new webhook; once created, a webhook's id can be provided to an + * external service, allowing data to be sent, received, and processed via that webhook + * + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<AddWebhookResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addWebhookWithHttpInfo( + @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = addWebhookValidateBeforeCall(addWebhookRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add webhook (asynchronously) Create a new webhook; once created, a webhook's id can be + * provided to an external service, allowing data to be sent, received, and processed via that + * webhook + * + * @param addWebhookRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201201 CREATED* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addWebhookAsync(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addWebhookValidateBeforeCall(addWebhookRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addWebhookDocument + * + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addWebhookDocumentCall(@javax.annotation.Nonnull String webhooksPlus, + @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addWebhookValidateBeforeCall(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'addWebhookRequest' is set - if (addWebhookRequest == null) { - throw new ApiException("Missing the required parameter 'addWebhookRequest' when calling addWebhook(Async)"); - } + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/private/webhooks/{webhooks+}".replace("{" + "webhooks+" + "}", + localVarApiClient.escapeString(webhooksPlus.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - return addWebhookCall(addWebhookRequest, siteId, _callback); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add webhook - * Create a new webhook; once created, a webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @return AddWebhookResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public AddWebhookResponse addWebhook(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addWebhookWithHttpInfo(addWebhookRequest, siteId); - return localVarResp.getData(); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add webhook - * Create a new webhook; once created, a webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<AddWebhookResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addWebhookWithHttpInfo(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addWebhookValidateBeforeCall(addWebhookRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addWebhookDocumentValidateBeforeCall( + @javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhooksPlus' is set + if (webhooksPlus == null) { + throw new ApiException( + "Missing the required parameter 'webhooksPlus' when calling addWebhookDocument(Async)"); } - /** - * Add webhook (asynchronously) - * Create a new webhook; once created, a webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook - * @param addWebhookRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 201 CREATED * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addWebhookAsync(@javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addWebhookValidateBeforeCall(addWebhookRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + "Missing the required parameter 'body' when calling addWebhookDocument(Async)"); } - /** - * Build call for addWebhookDocument - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addWebhookDocumentCall(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/private/webhooks/{webhooks+}" - .replace("{" + "webhooks+" + "}", localVarApiClient.escapeString(webhooksPlus.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return addWebhookDocumentCall(webhooksPlus, body, siteId, _callback); + + } + + /** + * Add webhook Receive an incoming private webhook and creates a document based on the + * webhook's body; requires authentication + * + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @return DocumentId + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DocumentId addWebhookDocument(@javax.annotation.Nonnull String webhooksPlus, + @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) + throws ApiException { + ApiResponse localVarResp = + addWebhookDocumentWithHttpInfo(webhooksPlus, body, siteId); + return localVarResp.getData(); + } + + /** + * Add webhook Receive an incoming private webhook and creates a document based on the + * webhook's body; requires authentication + * + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DocumentId> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addWebhookDocumentWithHttpInfo( + @javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + addWebhookDocumentValidateBeforeCall(webhooksPlus, body, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add webhook (asynchronously) Receive an incoming private webhook and creates a document based + * on the webhook's body; requires authentication + * + * @param webhooksPlus Web Hook Param (required) + * @param body (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addWebhookDocumentAsync(@javax.annotation.Nonnull String webhooksPlus, + @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = + addWebhookDocumentValidateBeforeCall(webhooksPlus, body, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for addWebhookTag + * + * @param webhookId Web Hook Param (required) + * @param addWebhookTagRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addWebhookTagCall(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addWebhookDocumentValidateBeforeCall(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhooksPlus' is set - if (webhooksPlus == null) { - throw new ApiException("Missing the required parameter 'webhooksPlus' when calling addWebhookDocument(Async)"); - } + Object localVarPostBody = addWebhookTagRequest; + + // create path and map variables + String localVarPath = "/webhooks/{webhookId}/tags".replace("{" + "webhookId" + "}", + localVarApiClient.escapeString(webhookId.toString())); - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling addWebhookDocument(Async)"); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - return addWebhookDocumentCall(webhooksPlus, body, siteId, _callback); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + final String[] localVarAccepts = {}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add webhook - * Receive an incoming private webhook and creates a document based on the webhook's body; requires authentication - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @return DocumentId - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DocumentId addWebhookDocument(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = addWebhookDocumentWithHttpInfo(webhooksPlus, body, siteId); - return localVarResp.getData(); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add webhook - * Receive an incoming private webhook and creates a document based on the webhook's body; requires authentication - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DocumentId> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addWebhookDocumentWithHttpInfo(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addWebhookDocumentValidateBeforeCall(webhooksPlus, body, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addWebhookTagValidateBeforeCall(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException( + "Missing the required parameter 'webhookId' when calling addWebhookTag(Async)"); } - /** - * Add webhook (asynchronously) - * Receive an incoming private webhook and creates a document based on the webhook's body; requires authentication - * @param webhooksPlus Web Hook Param (required) - * @param body (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addWebhookDocumentAsync(@javax.annotation.Nonnull String webhooksPlus, @javax.annotation.Nonnull Object body, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addWebhookDocumentValidateBeforeCall(webhooksPlus, body, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'addWebhookTagRequest' is set + if (addWebhookTagRequest == null) { + throw new ApiException( + "Missing the required parameter 'addWebhookTagRequest' when calling addWebhookTag(Async)"); } - /** - * Build call for addWebhookTag - * @param webhookId Web Hook Param (required) - * @param addWebhookTagRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addWebhookTagCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addWebhookTagRequest; - - // create path and map variables - String localVarPath = "/webhooks/{webhookId}/tags" - .replace("{" + "webhookId" + "}", localVarApiClient.escapeString(webhookId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return addWebhookTagCall(webhookId, addWebhookTagRequest, siteId, _callback); + + } + + /** + * Add webhook tag Add a tag to a webhook + * + * @param webhookId Web Hook Param (required) + * @param addWebhookTagRequest (required) + * @param siteId Site Identifier (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public void addWebhookTag(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + addWebhookTagWithHttpInfo(webhookId, addWebhookTagRequest, siteId); + } + + /** + * Add webhook tag Add a tag to a webhook + * + * @param webhookId Web Hook Param (required) + * @param addWebhookTagRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse addWebhookTagWithHttpInfo(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + addWebhookTagValidateBeforeCall(webhookId, addWebhookTagRequest, siteId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Add webhook tag (asynchronously) Add a tag to a webhook + * + * @param webhookId Web Hook Param (required) + * @param addWebhookTagRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
201200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call addWebhookTagAsync(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + addWebhookTagValidateBeforeCall(webhookId, addWebhookTagRequest, siteId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + + /** + * Build call for deleteWebhook + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteWebhookCall(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call addWebhookTagValidateBeforeCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException("Missing the required parameter 'webhookId' when calling addWebhookTag(Async)"); - } + Object localVarPostBody = null; - // verify the required parameter 'addWebhookTagRequest' is set - if (addWebhookTagRequest == null) { - throw new ApiException("Missing the required parameter 'addWebhookTagRequest' when calling addWebhookTag(Async)"); - } + // create path and map variables + String localVarPath = "/webhooks/{webhookId}".replace("{" + "webhookId" + "}", + localVarApiClient.escapeString(webhookId.toString())); - return addWebhookTagCall(webhookId, addWebhookTagRequest, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Add webhook tag - * Add a tag to a webhook - * @param webhookId Web Hook Param (required) - * @param addWebhookTagRequest (required) - * @param siteId Site Identifier (optional) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public void addWebhookTag(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, @javax.annotation.Nullable String siteId) throws ApiException { - addWebhookTagWithHttpInfo(webhookId, addWebhookTagRequest, siteId); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Add webhook tag - * Add a tag to a webhook - * @param webhookId Web Hook Param (required) - * @param addWebhookTagRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse addWebhookTagWithHttpInfo(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = addWebhookTagValidateBeforeCall(webhookId, addWebhookTagRequest, siteId, null); - return localVarApiClient.execute(localVarCall); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Add webhook tag (asynchronously) - * Add a tag to a webhook - * @param webhookId Web Hook Param (required) - * @param addWebhookTagRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
201 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call addWebhookTagAsync(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookTagRequest addWebhookTagRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = addWebhookTagValidateBeforeCall(webhookId, addWebhookTagRequest, siteId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException( + "Missing the required parameter 'webhookId' when calling deleteWebhook(Async)"); } - /** - * Build call for deleteWebhook - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteWebhookCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/webhooks/{webhookId}" - .replace("{" + "webhookId" + "}", localVarApiClient.escapeString(webhookId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return deleteWebhookCall(webhookId, siteId, _callback); + + } + + /** + * Delete webhook Delete a webhook; this will disable sending, receiving, or processing of data + * from external services to this webhook + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return DeleteResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public DeleteResponse deleteWebhook(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = deleteWebhookWithHttpInfo(webhookId, siteId); + return localVarResp.getData(); + } + + /** + * Delete webhook Delete a webhook; this will disable sending, receiving, or processing of data + * from external services to this webhook + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<DeleteResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse deleteWebhookWithHttpInfo( + @javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Delete webhook (asynchronously) Delete a webhook; this will disable sending, receiving, or + * processing of data from external services to this webhook + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call deleteWebhookAsync(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getWebhook + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWebhookCall(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException("Missing the required parameter 'webhookId' when calling deleteWebhook(Async)"); - } + Object localVarPostBody = null; - return deleteWebhookCall(webhookId, siteId, _callback); + // create path and map variables + String localVarPath = "/webhooks/{webhookId}".replace("{" + "webhookId" + "}", + localVarApiClient.escapeString(webhookId.toString())); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Delete webhook - * Delete a webhook; this will disable sending, receiving, or processing of data from external services to this webhook - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return DeleteResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public DeleteResponse deleteWebhook(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = deleteWebhookWithHttpInfo(webhookId, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Delete webhook - * Delete a webhook; this will disable sending, receiving, or processing of data from external services to this webhook - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<DeleteResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse deleteWebhookWithHttpInfo(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Delete webhook (asynchronously) - * Delete a webhook; this will disable sending, receiving, or processing of data from external services to this webhook - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call deleteWebhookAsync(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException( + "Missing the required parameter 'webhookId' when calling getWebhook(Async)"); } - /** - * Build call for getWebhook - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWebhookCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/webhooks/{webhookId}" - .replace("{" + "webhookId" + "}", localVarApiClient.escapeString(webhookId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return getWebhookCall(webhookId, siteId, _callback); + + } + + /** + * Get webhook Return a webhook's details, i.e., its metadata + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return GetWebhookResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetWebhookResponse getWebhook(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = getWebhookWithHttpInfo(webhookId, siteId); + return localVarResp.getData(); + } + + /** + * Get webhook Return a webhook's details, i.e., its metadata + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetWebhookResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getWebhookWithHttpInfo( + @javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get webhook (asynchronously) Return a webhook's details, i.e., its metadata + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWebhookAsync(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getWebhookTags + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWebhookTagsCall(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException("Missing the required parameter 'webhookId' when calling getWebhook(Async)"); - } + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/webhooks/{webhookId}/tags".replace("{" + "webhookId" + "}", + localVarApiClient.escapeString(webhookId.toString())); - return getWebhookCall(webhookId, siteId, _callback); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get webhook - * Return a webhook's details, i.e., its metadata - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return GetWebhookResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetWebhookResponse getWebhook(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getWebhookWithHttpInfo(webhookId, siteId); - return localVarResp.getData(); + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get webhook - * Return a webhook's details, i.e., its metadata - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetWebhookResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getWebhookWithHttpInfo(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get webhook (asynchronously) - * Return a webhook's details, i.e., its metadata - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWebhookAsync(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWebhookTagsValidateBeforeCall(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException( + "Missing the required parameter 'webhookId' when calling getWebhookTags(Async)"); } - /** - * Build call for getWebhookTags - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWebhookTagsCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/webhooks/{webhookId}/tags" - .replace("{" + "webhookId" + "}", localVarApiClient.escapeString(webhookId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + + return getWebhookTagsCall(webhookId, siteId, _callback); + + } + + /** + * Get webhook tags Get a webhook's tags + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return GetWebhookTagsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetWebhookTagsResponse getWebhookTags(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + getWebhookTagsWithHttpInfo(webhookId, siteId); + return localVarResp.getData(); + } + + /** + * Get webhook tags Get a webhook's tags + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<GetWebhookTagsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getWebhookTagsWithHttpInfo( + @javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) + throws ApiException { + okhttp3.Call localVarCall = getWebhookTagsValidateBeforeCall(webhookId, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get webhook tags (asynchronously) Get a webhook's tags + * + * @param webhookId Web Hook Param (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWebhookTagsAsync(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getWebhookTagsValidateBeforeCall(webhookId, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getWebhooks + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWebhooksCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhookTagsValidateBeforeCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException("Missing the required parameter 'webhookId' when calling getWebhookTags(Async)"); - } + Object localVarPostBody = null; - return getWebhookTagsCall(webhookId, siteId, _callback); + // create path and map variables + String localVarPath = "/webhooks"; - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - /** - * Get webhook tags - * Get a webhook's tags - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return GetWebhookTagsResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetWebhookTagsResponse getWebhookTags(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = getWebhookTagsWithHttpInfo(webhookId, siteId); - return localVarResp.getData(); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); } - /** - * Get webhook tags - * Get a webhook's tags - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<GetWebhookTagsResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getWebhookTagsWithHttpInfo(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = getWebhookTagsValidateBeforeCall(webhookId, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + if (next != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); } - /** - * Get webhook tags (asynchronously) - * Get a webhook's tags - * @param webhookId Web Hook Param (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWebhookTagsAsync(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWebhookTagsValidateBeforeCall(webhookId, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for getWebhooks - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWebhooksCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/webhooks"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - if (next != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("next", next)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhooksValidateBeforeCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - return getWebhooksCall(siteId, next, limit, _callback); - + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Get webhooks - * Return a list of webhooks; each webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return GetWebhooksResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public GetWebhooksResponse getWebhooks(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - ApiResponse localVarResp = getWebhooksWithHttpInfo(siteId, next, limit); - return localVarResp.getData(); + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Get webhooks - * Return a list of webhooks; each webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @return ApiResponse<GetWebhooksResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse getWebhooksWithHttpInfo(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) throws ApiException { - okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(siteId, next, limit, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getWebhooksValidateBeforeCall(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + return getWebhooksCall(siteId, next, limit, _callback); + + } + + /** + * Get webhooks Return a list of webhooks; each webhook's id can be provided to an external + * service, allowing data to be sent, received, and processed via that webhook + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return GetWebhooksResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public GetWebhooksResponse getWebhooks(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit) + throws ApiException { + ApiResponse localVarResp = getWebhooksWithHttpInfo(siteId, next, limit); + return localVarResp.getData(); + } + + /** + * Get webhooks Return a list of webhooks; each webhook's id can be provided to an external + * service, allowing data to be sent, received, and processed via that webhook + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @return ApiResponse<GetWebhooksResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse getWebhooksWithHttpInfo( + @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, + @javax.annotation.Nullable String limit) throws ApiException { + okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(siteId, next, limit, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get webhooks (asynchronously) Return a list of webhooks; each webhook's id can be provided + * to an external service, allowing data to be sent, received, and processed via that webhook + * + * @param siteId Site Identifier (optional) + * @param next Next page of results token (optional) + * @param limit Limit Results (optional, default to 10) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call getWebhooksAsync(@javax.annotation.Nullable String siteId, + @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(siteId, next, limit, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateWebhook + * + * @param webhookId Web Hook Param (required) + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateWebhookCall(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - /** - * Get webhooks (asynchronously) - * Return a list of webhooks; each webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook - * @param siteId Site Identifier (optional) - * @param next Next page of results token (optional) - * @param limit Limit Results (optional, default to 10) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call getWebhooksAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String next, @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(siteId, next, limit, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for updateWebhook - * @param webhookId Web Hook Param (required) - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateWebhookCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = addWebhookRequest; - - // create path and map variables - String localVarPath = "/webhooks/{webhookId}" - .replace("{" + "webhookId" + "}", localVarApiClient.escapeString(webhookId.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (siteId != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); - } - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "AWS4Auth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } + Object localVarPostBody = addWebhookRequest; - @SuppressWarnings("rawtypes") - private okhttp3.Call updateWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException("Missing the required parameter 'webhookId' when calling updateWebhook(Async)"); - } + // create path and map variables + String localVarPath = "/webhooks/{webhookId}".replace("{" + "webhookId" + "}", + localVarApiClient.escapeString(webhookId.toString())); - // verify the required parameter 'addWebhookRequest' is set - if (addWebhookRequest == null) { - throw new ApiException("Missing the required parameter 'addWebhookRequest' when calling updateWebhook(Async)"); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - return updateWebhookCall(webhookId, addWebhookRequest, siteId, _callback); + if (siteId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId)); + } + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Update webhook - * Updates a webhook's details, i.e., its metadata - * @param webhookId Web Hook Param (required) - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @return UpdateResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public UpdateResponse updateWebhook(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId) throws ApiException { - ApiResponse localVarResp = updateWebhookWithHttpInfo(webhookId, addWebhookRequest, siteId); - return localVarResp.getData(); + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Update webhook - * Updates a webhook's details, i.e., its metadata - * @param webhookId Web Hook Param (required) - * @param addWebhookRequest (required) - * @param siteId Site Identifier (optional) - * @return ApiResponse<UpdateResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public ApiResponse updateWebhookWithHttpInfo(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId) throws ApiException { - okhttp3.Call localVarCall = updateWebhookValidateBeforeCall(webhookId, addWebhookRequest, siteId, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + String[] localVarAuthNames = new String[] {"AWS4Auth"}; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, + localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, + localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateWebhookValidateBeforeCall(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException( + "Missing the required parameter 'webhookId' when calling updateWebhook(Async)"); } - /** - * Update webhook (asynchronously) - * Updates a webhook's details, i.e., its metadata - * @param webhookId Web Hook Param (required) - * @param addWebhookRequest (required) - * @param siteId Site Identifier (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 - * @http.response.details - - - - -
Response Details
Status Code Description Response Headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
- */ - public okhttp3.Call updateWebhookAsync(@javax.annotation.Nonnull String webhookId, @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = updateWebhookValidateBeforeCall(webhookId, addWebhookRequest, siteId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; + // verify the required parameter 'addWebhookRequest' is set + if (addWebhookRequest == null) { + throw new ApiException( + "Missing the required parameter 'addWebhookRequest' when calling updateWebhook(Async)"); } + + return updateWebhookCall(webhookId, addWebhookRequest, siteId, _callback); + + } + + /** + * Update webhook Updates a webhook's details, i.e., its metadata + * + * @param webhookId Web Hook Param (required) + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @return UpdateResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public UpdateResponse updateWebhook(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + ApiResponse localVarResp = + updateWebhookWithHttpInfo(webhookId, addWebhookRequest, siteId); + return localVarResp.getData(); + } + + /** + * Update webhook Updates a webhook's details, i.e., its metadata + * + * @param webhookId Web Hook Param (required) + * @param addWebhookRequest (required) + * @param siteId Site Identifier (optional) + * @return ApiResponse<UpdateResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public ApiResponse updateWebhookWithHttpInfo( + @javax.annotation.Nonnull String webhookId, + @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, + @javax.annotation.Nullable String siteId) throws ApiException { + okhttp3.Call localVarCall = + updateWebhookValidateBeforeCall(webhookId, addWebhookRequest, siteId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update webhook (asynchronously) Updates a webhook's details, i.e., its metadata + * + * @param webhookId Web Hook Param (required) + * @param addWebhookRequest (required) + * @param siteId Site Identifier (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 + * @http.response.details + * + * + * + * + * + * + * + * + * + * + * + * + *
Response Details
Status CodeDescriptionResponse Headers
200200 OK* Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ *
+ */ + public okhttp3.Call updateWebhookAsync(@javax.annotation.Nonnull String webhookId, + @javax.annotation.Nonnull AddWebhookRequest addWebhookRequest, + @javax.annotation.Nullable String siteId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateWebhookValidateBeforeCall(webhookId, addWebhookRequest, siteId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/src/main/java/com/formkiq/client/invoker/ApiCallback.java b/src/main/java/com/formkiq/client/invoker/ApiCallback.java index 550b4fc72..5c4a3e1f8 100644 --- a/src/main/java/com/formkiq/client/invoker/ApiCallback.java +++ b/src/main/java/com/formkiq/client/invoker/ApiCallback.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -24,39 +31,39 @@ * @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 download processing. - * - * @param bytesRead bytes Read - * @param contentLength content length of the response - * @param done Read end - */ - void onDownloadProgress(long bytesRead, long contentLength, boolean done); + /** + * 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 download processing. + * + * @param bytesRead bytes Read + * @param contentLength content length of the response + * @param done Read end + */ + void onDownloadProgress(long bytesRead, long contentLength, boolean done); } diff --git a/src/main/java/com/formkiq/client/invoker/ApiClient.java b/src/main/java/com/formkiq/client/invoker/ApiClient.java index 6cd4125bd..858d98ab8 100644 --- a/src/main/java/com/formkiq/client/invoker/ApiClient.java +++ b/src/main/java/com/formkiq/client/invoker/ApiClient.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -58,1549 +65,1571 @@ import com.formkiq.client.invoker.auth.AWS4Auth; /** - *

ApiClient class.

+ *

+ * ApiClient class. + *

*/ public class ApiClient { - protected String basePath = "http://localhost"; - protected List servers = new ArrayList(Arrays.asList( - new ServerConfiguration( - "http://localhost", - "Local development server", - new HashMap() - ) - )); - protected Integer serverIndex = 0; - protected Map serverVariables = null; - protected boolean debugging = false; - protected Map defaultHeaderMap = new HashMap(); - protected Map defaultCookieMap = new HashMap(); - protected String tempFolderPath = null; - - protected Map authentications; - - protected DateFormat dateFormat; - protected DateFormat datetimeFormat; - protected boolean lenientDatetimeFormat; - protected int dateLength; - - protected InputStream sslCaCert; - protected boolean verifyingSsl; - protected KeyManager[] keyManagers; - - protected OkHttpClient httpClient; - protected JSON json; - - protected HttpLoggingInterceptor loggingInterceptor; - - /** - * Basic constructor for ApiClient - */ - public ApiClient() { - init(); - initHttpClient(); - - // Setup authentications (key: authentication name, value: authentication). - authentications.put("AWS4Auth", new AWS4Auth()); - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - /** - * Basic constructor with custom OkHttpClient - * - * @param client a {@link okhttp3.OkHttpClient} object - */ - public ApiClient(OkHttpClient client) { - init(); - - httpClient = client; - - // Setup authentications (key: authentication name, value: authentication). - authentications.put("AWS4Auth", new AWS4Auth()); - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); - } - - protected void initHttpClient() { - initHttpClient(Collections.emptyList()); - } - - protected void initHttpClient(List interceptors) { - OkHttpClient.Builder builder = new OkHttpClient.Builder(); - builder.addNetworkInterceptor(getProgressInterceptor()); - for (Interceptor interceptor: interceptors) { - builder.addInterceptor(interceptor); - } - + protected String basePath = "http://localhost"; + protected List servers = + new ArrayList(Arrays.asList(new ServerConfiguration("http://localhost", + "Local development server", new HashMap()))); + protected Integer serverIndex = 0; + protected Map serverVariables = null; + protected boolean debugging = false; + protected Map defaultHeaderMap = new HashMap(); + protected Map defaultCookieMap = new HashMap(); + protected String tempFolderPath = null; + + protected Map authentications; + + protected DateFormat dateFormat; + protected DateFormat datetimeFormat; + protected boolean lenientDatetimeFormat; + protected int dateLength; + + protected InputStream sslCaCert; + protected boolean verifyingSsl; + protected KeyManager[] keyManagers; + + protected OkHttpClient httpClient; + protected JSON json; + + protected HttpLoggingInterceptor loggingInterceptor; + + /** + * Basic constructor for ApiClient + */ + public ApiClient() { + init(); + initHttpClient(); + + // Setup authentications (key: authentication name, value: authentication). + authentications.put("AWS4Auth", new AWS4Auth()); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + /** + * Basic constructor with custom OkHttpClient + * + * @param client a {@link okhttp3.OkHttpClient} object + */ + public ApiClient(OkHttpClient client) { + init(); + + httpClient = client; + + // Setup authentications (key: authentication name, value: authentication). + authentications.put("AWS4Auth", new AWS4Auth()); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + protected void initHttpClient() { + initHttpClient(Collections.emptyList()); + } + + protected void initHttpClient(List interceptors) { + OkHttpClient.Builder builder = new OkHttpClient.Builder(); + builder.addNetworkInterceptor(getProgressInterceptor()); + for (Interceptor interceptor : interceptors) { + builder.addInterceptor(interceptor); + } + + httpClient = builder.build(); + } + + protected void init() { + verifyingSsl = true; + + json = new JSON(); + + // Set default User-Agent. + setUserAgent("OpenAPI-Generator/1.18.1/java"); + + authentications = new HashMap(); + } + + /** + * Get base path + * + * @return Base path + */ + public String getBasePath() { + return basePath; + } + + /** + * Set base path + * + * @param basePath Base path of the URL (e.g http://localhost) + * @return An instance of ApiClient + */ + public ApiClient setBasePath(String basePath) { + this.basePath = basePath; + this.serverIndex = null; + return this; + } + + public List getServers() { + return servers; + } + + public ApiClient setServers(List servers) { + this.servers = servers; + return this; + } + + public Integer getServerIndex() { + return serverIndex; + } + + public ApiClient setServerIndex(Integer serverIndex) { + this.serverIndex = serverIndex; + return this; + } + + public Map getServerVariables() { + return serverVariables; + } + + public ApiClient setServerVariables(Map serverVariables) { + this.serverVariables = serverVariables; + return this; + } + + /** + * Get HTTP client + * + * @return An instance of OkHttpClient + */ + public OkHttpClient getHttpClient() { + return httpClient; + } + + /** + * Set HTTP client, which must never be null. + * + * @param newHttpClient An instance of OkHttpClient + * @return ApiClient + * @throws java.lang.NullPointerException when newHttpClient is null + */ + public ApiClient setHttpClient(OkHttpClient newHttpClient) { + this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); + 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; + } + + /** + *

+ * Getter for the field keyManagers. + *

+ * + * @return an array of {@link javax.net.ssl.KeyManager} objects + */ + 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; + } + + /** + *

+ * Getter for the field dateFormat. + *

+ * + * @return a {@link java.text.DateFormat} object + */ + public DateFormat getDateFormat() { + return dateFormat; + } + + /** + *

+ * Setter for the field dateFormat. + *

+ * + * @param dateFormat a {@link java.text.DateFormat} object + * @return a {@link com.formkiq.client.invoker.ApiClient} object + */ + public ApiClient setDateFormat(DateFormat dateFormat) { + JSON.setDateFormat(dateFormat); + return this; + } + + /** + *

+ * Set SqlDateFormat. + *

+ * + * @param dateFormat a {@link java.text.DateFormat} object + * @return a {@link com.formkiq.client.invoker.ApiClient} object + */ + public ApiClient setSqlDateFormat(DateFormat dateFormat) { + JSON.setSqlDateFormat(dateFormat); + return this; + } + + /** + *

+ * Set OffsetDateTimeFormat. + *

+ * + * @param dateFormat a {@link java.time.format.DateTimeFormatter} object + * @return a {@link com.formkiq.client.invoker.ApiClient} object + */ + public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + JSON.setOffsetDateTimeFormat(dateFormat); + return this; + } + + /** + *

+ * Set LocalDateFormat. + *

+ * + * @param dateFormat a {@link java.time.format.DateTimeFormatter} object + * @return a {@link com.formkiq.client.invoker.ApiClient} object + */ + public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { + JSON.setLocalDateFormat(dateFormat); + return this; + } + + /** + *

+ * Set LenientOnJson. + *

+ * + * @param lenientOnJson a boolean + * @return a {@link com.formkiq.client.invoker.ApiClient} object + */ + public ApiClient setLenientOnJson(boolean lenientOnJson) { + 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) { + throw new RuntimeException("No OAuth2 authentication configured!"); + } + + /** + * Helper method to set credentials for AWSV4 Signature + * + * @param accessKey Access Key + * @param secretKey Secret Key + * @param region Region + * @param service Service to access to + */ + public void setAWS4Configuration(String accessKey, String secretKey, String region, + String service) { + for (Authentication auth : authentications.values()) { + if (auth instanceof AWS4Auth) { + ((AWS4Auth) auth).setCredentials(accessKey, secretKey); + ((AWS4Auth) auth).setRegion(region); + ((AWS4Auth) auth).setService(service); + return; + } + } + throw new RuntimeException("No AWS4 authentication configured!"); + } + + /** + * Helper method to set credentials for AWSV4 Signature + * + * @param accessKey Access Key + * @param secretKey Secret Key + * @param sessionToken Session Token + * @param region Region + * @param service Service to access to + */ + public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, + String region, String service) { + for (Authentication auth : authentications.values()) { + if (auth instanceof AWS4Auth) { + ((AWS4Auth) auth).setCredentials(accessKey, secretKey, sessionToken); + ((AWS4Auth) auth).setRegion(region); + ((AWS4Auth) auth).setService(service); + return; + } + } + throw new RuntimeException("No AWS4 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; + } + + /** + * Add a default cookie. + * + * @param key The cookie's key + * @param value The cookie's value + * @return ApiClient + */ + public ApiClient addDefaultCookie(String key, String value) { + defaultCookieMap.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 = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); + } else { + final OkHttpClient.Builder builder = httpClient.newBuilder(); + builder.interceptors().remove(loggingInterceptor); httpClient = builder.build(); - } - - protected void init() { - verifyingSsl = true; - - json = new JSON(); - - // Set default User-Agent. - setUserAgent("OpenAPI-Generator/1.18.1/java"); - - authentications = new HashMap(); - } - - /** - * Get base path - * - * @return Base path - */ - public String getBasePath() { - return basePath; - } - - /** - * Set base path - * - * @param basePath Base path of the URL (e.g http://localhost) - * @return An instance of ApiClient - */ - public ApiClient setBasePath(String basePath) { - this.basePath = basePath; - this.serverIndex = null; - return this; - } - - public List getServers() { - return servers; - } - - public ApiClient setServers(List servers) { - this.servers = servers; - return this; - } - - public Integer getServerIndex() { - return serverIndex; - } - - public ApiClient setServerIndex(Integer serverIndex) { - this.serverIndex = serverIndex; - return this; - } - - public Map getServerVariables() { - return serverVariables; - } - - public ApiClient setServerVariables(Map serverVariables) { - this.serverVariables = serverVariables; - return this; - } - - /** - * Get HTTP client - * - * @return An instance of OkHttpClient - */ - public OkHttpClient getHttpClient() { - return httpClient; - } - - /** - * Set HTTP client, which must never be null. - * - * @param newHttpClient An instance of OkHttpClient - * @return ApiClient - * @throws java.lang.NullPointerException when newHttpClient is null - */ - public ApiClient setHttpClient(OkHttpClient newHttpClient) { - this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); - 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; - } - - /** - *

Getter for the field keyManagers.

- * - * @return an array of {@link javax.net.ssl.KeyManager} objects - */ - 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; - } - - /** - *

Getter for the field dateFormat.

- * - * @return a {@link java.text.DateFormat} object - */ - public DateFormat getDateFormat() { - return dateFormat; - } - - /** - *

Setter for the field dateFormat.

- * - * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.formkiq.client.invoker.ApiClient} object - */ - public ApiClient setDateFormat(DateFormat dateFormat) { - JSON.setDateFormat(dateFormat); - return this; - } - - /** - *

Set SqlDateFormat.

- * - * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link com.formkiq.client.invoker.ApiClient} object - */ - public ApiClient setSqlDateFormat(DateFormat dateFormat) { - JSON.setSqlDateFormat(dateFormat); - return this; - } - - /** - *

Set OffsetDateTimeFormat.

- * - * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.formkiq.client.invoker.ApiClient} object - */ - public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - JSON.setOffsetDateTimeFormat(dateFormat); - return this; - } - - /** - *

Set LocalDateFormat.

- * - * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link com.formkiq.client.invoker.ApiClient} object - */ - public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { - JSON.setLocalDateFormat(dateFormat); - return this; - } - - /** - *

Set LenientOnJson.

- * - * @param lenientOnJson a boolean - * @return a {@link com.formkiq.client.invoker.ApiClient} object - */ - public ApiClient setLenientOnJson(boolean lenientOnJson) { - 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) { - throw new RuntimeException("No OAuth2 authentication configured!"); - } - - /** - * Helper method to set credentials for AWSV4 Signature - * - * @param accessKey Access Key - * @param secretKey Secret Key - * @param region Region - * @param service Service to access to - */ - public void setAWS4Configuration(String accessKey, String secretKey, String region, String service) { - for (Authentication auth : authentications.values()) { - if (auth instanceof AWS4Auth) { - ((AWS4Auth) auth).setCredentials(accessKey, secretKey); - ((AWS4Auth) auth).setRegion(region); - ((AWS4Auth) auth).setService(service); - return; - } - } - throw new RuntimeException("No AWS4 authentication configured!"); - } - - /** - * Helper method to set credentials for AWSV4 Signature - * - * @param accessKey Access Key - * @param secretKey Secret Key - * @param sessionToken Session Token - * @param region Region - * @param service Service to access to - */ - public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, String region, String service) { - for (Authentication auth : authentications.values()) { - if (auth instanceof AWS4Auth) { - ((AWS4Auth) auth).setCredentials(accessKey, secretKey, sessionToken); - ((AWS4Auth) auth).setRegion(region); - ((AWS4Auth) auth).setService(service); - return; - } + 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 temporary 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.connectTimeoutMillis(); + } + + /** + * Sets the connect timeout (in milliseconds). A value of 0 means no timeout, otherwise values + * must be between 1 and {@link java.lang.Integer#MAX_VALUE}. + * + * @param connectionTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setConnectTimeout(int connectionTimeout) { + httpClient = + httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** + * Get read timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getReadTimeout() { + return httpClient.readTimeoutMillis(); + } + + /** + * Sets the read timeout (in milliseconds). A value of 0 means no timeout, otherwise values must + * be between 1 and {@link java.lang.Integer#MAX_VALUE}. + * + * @param readTimeout read timeout in milliseconds + * @return Api client + */ + public ApiClient setReadTimeout(int readTimeout) { + httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** + * Get write timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getWriteTimeout() { + return httpClient.writeTimeoutMillis(); + } + + /** + * Sets the write timeout (in milliseconds). A value of 0 means no timeout, otherwise values must + * be between 1 and {@link java.lang.Integer#MAX_VALUE}. + * + * @param writeTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setWriteTimeout(int writeTimeout) { + httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build(); + 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(","); } - throw new RuntimeException("No AWS4 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; - } - - /** - * Add a default cookie. - * - * @param key The cookie's key - * @param value The cookie's value - * @return ApiClient - */ - public ApiClient addDefaultCookie(String key, String value) { - defaultCookieMap.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 = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); - } else { - final OkHttpClient.Builder builder = httpClient.newBuilder(); - builder.interceptors().remove(loggingInterceptor); - httpClient = builder.build(); - 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 temporary 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; + b.append(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; + } + + /** + * Formats the specified free-form query parameters to a list of {@code Pair} objects. + * + * @param value The free-form query parameters. + * @return A list of {@code Pair} objects. + */ + public List freeFormParameterToPairs(Object value) { + List params = new ArrayList<>(); + + // preconditions + if (value == null || !(value instanceof Map)) { + return params; } - /** - * Get connection timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getConnectTimeout() { - return httpClient.connectTimeoutMillis(); - } - - /** - * Sets the connect timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param connectionTimeout connection timeout in milliseconds - * @return Api client - */ - public ApiClient setConnectTimeout(int connectionTimeout) { - httpClient = httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Get read timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getReadTimeout() { - return httpClient.readTimeoutMillis(); - } - - /** - * Sets the read timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param readTimeout read timeout in milliseconds - * @return Api client - */ - public ApiClient setReadTimeout(int readTimeout) { - httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build(); - return this; - } - - /** - * Get write timeout (in milliseconds). - * - * @return Timeout in milliseconds - */ - public int getWriteTimeout() { - return httpClient.writeTimeoutMillis(); - } - - /** - * Sets the write timeout (in milliseconds). - * A value of 0 means no timeout, otherwise values must be between 1 and - * {@link java.lang.Integer#MAX_VALUE}. - * - * @param writeTimeout connection timeout in milliseconds - * @return Api client - */ - public ApiClient setWriteTimeout(int writeTimeout) { - httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build(); - 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(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; - } - - /** - * Formats the specified free-form query parameters to a list of {@code Pair} objects. - * - * @param value The free-form query parameters. - * @return A list of {@code Pair} objects. - */ - public List freeFormParameterToPairs(Object value) { - List params = new ArrayList<>(); - - // preconditions - if (value == null || !(value instanceof Map )) { - return params; - } - - @SuppressWarnings("unchecked") - final Map valuesMap = (Map) value; - - for (Map.Entry entry : valuesMap.entrySet()) { - params.add(new Pair(entry.getKey(), parameterToString(entry.getValue()))); - } - - return params; - } - - - /** - * Formats the specified collection path parameter to a string value. - * - * @param collectionFormat The collection format of the parameter. - * @param value The value of the parameter. - * @return String representation of the parameter - */ - public String collectionPathParameterToString(String collectionFormat, Collection value) { - // create the value based on the collection format - if ("multi".equals(collectionFormat)) { - // not valid for path params - return parameterToString(value); - } - - // collectionFormat is assumed to be "csv" by default - String delimiter = ","; - - if ("ssv".equals(collectionFormat)) { - delimiter = " "; - } else if ("tsv".equals(collectionFormat)) { - delimiter = "\t"; - } else if ("pipes".equals(collectionFormat)) { - delimiter = "|"; - } - - StringBuilder sb = new StringBuilder() ; - for (Object item : value) { - sb.append(delimiter); - sb.append(parameterToString(item)); - } - - return sb.substring(delimiter.length()); - } - - /** - * 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.replaceFirst("^.*[/\\\\]", ""); - } - - /** - * 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, - * returns null. If it matches "any", JSON will be used. - */ - public String selectHeaderContentType(String[] contentTypes) { - if (contentTypes.length == 0) { - return null; - } - - if (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 com.formkiq.client.invoker.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); - } - - ResponseBody respBody = response.body(); - if (respBody == null) { - return null; - } - - String contentType = response.headers().get("Content-Type"); - if (contentType == null) { - // ensuring a default content type - contentType = "application/json"; + final Map valuesMap = (Map) value; + + for (Map.Entry entry : valuesMap.entrySet()) { + params.add(new Pair(entry.getKey(), parameterToString(entry.getValue()))); + } + + return params; + } + + + /** + * Formats the specified collection path parameter to a string value. + * + * @param collectionFormat The collection format of the parameter. + * @param value The value of the parameter. + * @return String representation of the parameter + */ + public String collectionPathParameterToString(String collectionFormat, Collection value) { + // create the value based on the collection format + if ("multi".equals(collectionFormat)) { + // not valid for path params + return parameterToString(value); + } + + // collectionFormat is assumed to be "csv" by default + String delimiter = ","; + + if ("ssv".equals(collectionFormat)) { + delimiter = " "; + } else if ("tsv".equals(collectionFormat)) { + delimiter = "\t"; + } else if ("pipes".equals(collectionFormat)) { + delimiter = "|"; + } + + StringBuilder sb = new StringBuilder(); + for (Object item : value) { + sb.append(delimiter); + sb.append(parameterToString(item)); + } + + return sb.substring(delimiter.length()); + } + + /** + * 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.replaceFirst("^.*[/\\\\]", ""); + } + + /** + * 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, returns null. If it + * matches "any", JSON will be used. + */ + public String selectHeaderContentType(String[] contentTypes) { + if (contentTypes.length == 0) { + return null; + } + + if (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 com.formkiq.client.invoker.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); + } + + ResponseBody respBody = response.body(); + if (respBody == null) { + return null; + } + + String contentType = response.headers().get("Content-Type"); + if (contentType == null) { + // ensuring a default content type + contentType = "application/json"; + } + try { + if (isJsonMime(contentType)) { + return JSON.deserialize(respBody.byteStream(), returnType); + } else if (returnType.equals(String.class)) { + String respBodyString = respBody.string(); + if (respBodyString.isEmpty()) { + return null; } + // Expecting string, return the raw response body. + return (T) respBodyString; + } else { + throw new ApiException( + "Content type \"" + contentType + "\" is not supported for type: " + returnType, + response.code(), response.headers().toMultimap(), response.body().string()); + } + } catch (IOException e) { + throw new ApiException(e); + } + } + + /** + * 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 com.formkiq.client.invoker.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((byte[]) obj, MediaType.parse(contentType)); + } else if (obj instanceof File) { + // File body parameter support. + return RequestBody.create((File) obj, MediaType.parse(contentType)); + } else if ("text/plain".equals(contentType) && obj instanceof String) { + return RequestBody.create((String) obj, MediaType.parse(contentType)); + } else if (isJsonMime(contentType)) { + String content; + if (obj != null) { + content = JSON.serialize(obj); + } else { + content = null; + } + return RequestBody.create(content, MediaType.parse(contentType)); + } else if (obj instanceof String) { + return RequestBody.create((String) obj, MediaType.parse(contentType)); + } 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 com.formkiq.client.invoker.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 + * @return Prepared file for the download + * @throws java.io.IOException If fail to prepare file for 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); + } + // Files.createTempFile requires the prefix to be at least three characters long + if (prefix.length() < 3) + prefix = "download-"; + } + + if (tempFolderPath == null) + return Files.createTempFile(prefix, suffix).toFile(); + else + return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); + } + + /** + * {@link #execute(Call, Type)} + * + * @param Type + * @param call An instance of the Call object + * @return ApiResponse<T> + * @throws com.formkiq.client.invoker.ApiException If fail to execute the call + */ + 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 com.formkiq.client.invoker.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. + * + * @param Type + * @param call The callback to be executed when the API call finishes + * @param returnType Return type + * @param callback ApiCallback + * @see #execute(Call, Type) + */ + @SuppressWarnings("unchecked") + public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { + call.enqueue(new Callback() { + @Override + public void onFailure(Call call, IOException e) { + callback.onFailure(new ApiException(e), 0, null); + } + + @Override + public void onResponse(Call call, Response response) throws IOException { + T result; try { - if (isJsonMime(contentType)) { - return JSON.deserialize(respBody.byteStream(), returnType); - } else if (returnType.equals(String.class)) { - String respBodyString = respBody.string(); - if (respBodyString.isEmpty()) { - return null; - } - // Expecting string, return the raw response body. - return (T) respBodyString; - } else { - throw new ApiException( - "Content type \"" + contentType + "\" is not supported for type: " + returnType, - response.code(), - response.headers().toMultimap(), - response.body().string()); - } - } catch (IOException e) { - throw new ApiException(e); + result = (T) handleResponse(response, returnType); + } catch (ApiException e) { + callback.onFailure(e, response.code(), response.headers().toMultimap()); + return; + } catch (Exception e) { + callback.onFailure(new ApiException(e), response.code(), response.headers().toMultimap()); + return; } - } - - /** - * 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 com.formkiq.client.invoker.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((byte[]) obj, MediaType.parse(contentType)); - } else if (obj instanceof File) { - // File body parameter support. - return RequestBody.create((File) obj, MediaType.parse(contentType)); - } else if ("text/plain".equals(contentType) && obj instanceof String) { - return RequestBody.create((String) obj, MediaType.parse(contentType)); - } else if (isJsonMime(contentType)) { - String content; - if (obj != null) { - content = JSON.serialize(obj); - } else { - content = null; - } - return RequestBody.create(content, MediaType.parse(contentType)); - } else if (obj instanceof String) { - return RequestBody.create((String) obj, MediaType.parse(contentType)); - } else { - throw new ApiException("Content type \"" + contentType + "\" is not supported"); + 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 + * @return Type + * @throws com.formkiq.client.invoker.ApiException If the response has an unsuccessful status code + * or fail to deserialize the response body + */ + 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 (Exception e) { + throw new ApiException(response.message(), e, response.code(), + response.headers().toMultimap()); + } } - } - - /** - * Download file from the given response. - * - * @param response An instance of the Response object - * @throws com.formkiq.client.invoker.ApiException If fail to read file content from response and write to disk - * @return Downloaded file - */ - public File downloadFileFromResponse(Response response) throws ApiException { + return null; + } else { + return deserialize(response, returnType); + } + } else { + String respBody = null; + if (response.body() != null) { try { - File file = prepareDownloadFile(response); - BufferedSink sink = Okio.buffer(Okio.sink(file)); - sink.writeAll(response.body().source()); - sink.close(); - return file; + respBody = response.body().string(); } catch (IOException e) { - throw new ApiException(e); - } - } - - /** - * Prepare file for download - * - * @param response An instance of the Response object - * @return Prepared file for the download - * @throws java.io.IOException If fail to prepare file for 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); - } - // Files.createTempFile requires the prefix to be at least three characters long - if (prefix.length() < 3) - prefix = "download-"; - } - - if (tempFolderPath == null) - return Files.createTempFile(prefix, suffix).toFile(); - else - return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); - } - - /** - * {@link #execute(Call, Type)} - * - * @param Type - * @param call An instance of the Call object - * @return ApiResponse<T> - * @throws com.formkiq.client.invoker.ApiException If fail to execute the call - */ - 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 com.formkiq.client.invoker.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. - * - * @param Type - * @param call The callback to be executed when the API call finishes - * @param returnType Return type - * @param callback ApiCallback - * @see #execute(Call, Type) - */ - @SuppressWarnings("unchecked") - public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { - call.enqueue(new Callback() { - @Override - public void onFailure(Call call, IOException e) { - callback.onFailure(new ApiException(e), 0, null); - } - - @Override - public void onResponse(Call call, Response response) throws IOException { - T result; - try { - result = (T) handleResponse(response, returnType); - } catch (ApiException e) { - callback.onFailure(e, response.code(), response.headers().toMultimap()); - return; - } catch (Exception e) { - callback.onFailure(new ApiException(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 - * @return Type - * @throws com.formkiq.client.invoker.ApiException If the response has an unsuccessful status code or - * fail to deserialize the response body - */ - 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 (Exception 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 baseUrl The base URL - * @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 cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress - * @return The HTTP call - * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object - */ - public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); - - return httpClient.newCall(request); - } - - /** - * Build an HTTP request with the given options. - * - * @param baseUrl The base URL - * @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 cookieParams The cookie parameters - * @param formParams The form parameters - * @param authNames The authentications to apply - * @param callback Callback for upload/download progress - * @return The HTTP request - * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object - */ - public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); - - // prepare HTTP request body - RequestBody reqBody; - String contentType = headerParams.get("Content-Type"); - String contentTypePure = contentType; - if (contentTypePure != null && contentTypePure.contains(";")) { - contentTypePure = contentType.substring(0, contentType.indexOf(";")); - } - if (!HttpMethod.permitsRequestBody(method)) { - reqBody = null; - } else if ("application/x-www-form-urlencoded".equals(contentTypePure)) { - reqBody = buildRequestBodyFormEncoding(formParams); - } else if ("multipart/form-data".equals(contentTypePure)) { - 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("", contentType == null ? null : MediaType.parse(contentType)); - } - } else { - reqBody = serialize(body, contentType); - } - - List updatedQueryParams = new ArrayList<>(queryParams); - - // update parameters with authentication settings - updateParamsForAuth(authNames, updatedQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); - - final Request.Builder reqBuilder = new Request.Builder().url(buildUrl(baseUrl, path, updatedQueryParams, collectionQueryParams)); - processHeaderParams(headerParams, reqBuilder); - processCookieParams(cookieParams, reqBuilder); - - // Associate callback with request (if not null) so interceptor can - // access it when creating ProgressResponseBody - reqBuilder.tag(callback); - - Request request = null; - - if (callback != null && reqBody != null) { - ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, callback); - request = reqBuilder.method(method, progressRequestBody).build(); - } else { - request = reqBuilder.method(method, reqBody).build(); + throw new ApiException(response.message(), e, response.code(), + response.headers().toMultimap()); } - - return request; - } - - /** - * Build full URL by concatenating base path, the given sub path and query parameters. - * - * @param baseUrl The base URL - * @param path The sub path - * @param queryParams The query parameters - * @param collectionQueryParams The collection query parameters - * @return The full URL - */ - public String buildUrl(String baseUrl, String path, List queryParams, List collectionQueryParams) { - final StringBuilder url = new StringBuilder(); - if (baseUrl != null) { - url.append(baseUrl).append(path); - } else { - String baseURL; - if (serverIndex != null) { - if (serverIndex < 0 || serverIndex >= servers.size()) { - throw new ArrayIndexOutOfBoundsException(String.format( - Locale.ROOT, - "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() - )); - } - baseURL = servers.get(serverIndex).URL(serverVariables); - } else { - baseURL = basePath; - } - url.append(baseURL).append(path); + } + throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), + respBody); + } + } + + /** + * Build HTTP call with the given options. + * + * @param baseUrl The base URL + * @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 cookieParams The cookie parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param callback Callback for upload/download progress + * @return The HTTP call + * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object + */ + public Call buildCall(String baseUrl, String path, String method, List queryParams, + List collectionQueryParams, Object body, Map headerParams, + Map cookieParams, Map formParams, String[] authNames, + ApiCallback callback) throws ApiException { + Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, + headerParams, cookieParams, formParams, authNames, callback); + + return httpClient.newCall(request); + } + + /** + * Build an HTTP request with the given options. + * + * @param baseUrl The base URL + * @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 cookieParams The cookie parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param callback Callback for upload/download progress + * @return The HTTP request + * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object + */ + public Request buildRequest(String baseUrl, String path, String method, List queryParams, + List collectionQueryParams, Object body, Map headerParams, + Map cookieParams, Map formParams, String[] authNames, + ApiCallback callback) throws ApiException { + final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); + + // prepare HTTP request body + RequestBody reqBody; + String contentType = headerParams.get("Content-Type"); + String contentTypePure = contentType; + if (contentTypePure != null && contentTypePure.contains(";")) { + contentTypePure = contentType.substring(0, contentType.indexOf(";")); + } + if (!HttpMethod.permitsRequestBody(method)) { + reqBody = null; + } else if ("application/x-www-form-urlencoded".equals(contentTypePure)) { + reqBody = buildRequestBodyFormEncoding(formParams); + } else if ("multipart/form-data".equals(contentTypePure)) { + 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("", contentType == null ? null : MediaType.parse(contentType)); + } + } else { + reqBody = serialize(body, contentType); + } + + List updatedQueryParams = new ArrayList<>(queryParams); + + // update parameters with authentication settings + updateParamsForAuth(authNames, updatedQueryParams, headerParams, cookieParams, + requestBodyToString(reqBody), method, URI.create(url)); + + final Request.Builder reqBuilder = new Request.Builder() + .url(buildUrl(baseUrl, path, updatedQueryParams, collectionQueryParams)); + processHeaderParams(headerParams, reqBuilder); + processCookieParams(cookieParams, reqBuilder); + + // Associate callback with request (if not null) so interceptor can + // access it when creating ProgressResponseBody + reqBuilder.tag(callback); + + Request request = null; + + if (callback != null && reqBody != null) { + ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, callback); + 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 baseUrl The base URL + * @param path The sub path + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @return The full URL + */ + public String buildUrl(String baseUrl, String path, List queryParams, + List collectionQueryParams) { + final StringBuilder url = new StringBuilder(); + if (baseUrl != null) { + url.append(baseUrl).append(path); + } else { + String baseURL; + if (serverIndex != null) { + if (serverIndex < 0 || serverIndex >= servers.size()) { + throw new ArrayIndexOutOfBoundsException(String.format(Locale.ROOT, + "Invalid index %d when selecting the host settings. Must be less than %d", + serverIndex, servers.size())); } - - 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)); - } - } + baseURL = servers.get(serverIndex).URL(serverVariables); + } else { + baseURL = basePath; + } + url.append(baseURL).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); - } - } + } + } + + 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 form of Map - * @param reqBuilder Request.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())); - } - } - } - - /** - * Set cookie parameters to the request builder, including default cookies. - * - * @param cookieParams Cookie parameters in the form of Map - * @param reqBuilder Request.Builder - */ - public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { - for (Entry param : cookieParams.entrySet()) { - reqBuilder.addHeader("Cookie", String.format(Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); + } + } + + return url.toString(); + } + + /** + * Set header parameters to the request builder, including default headers. + * + * @param headerParams Header parameters in the form of Map + * @param reqBuilder Request.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())); + } + } + } + + /** + * Set cookie parameters to the request builder, including default cookies. + * + * @param cookieParams Cookie parameters in the form of Map + * @param reqBuilder Request.Builder + */ + public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { + for (Entry param : cookieParams.entrySet()) { + reqBuilder.addHeader("Cookie", + String.format(Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); + } + for (Entry param : defaultCookieMap.entrySet()) { + if (!cookieParams.containsKey(param.getKey())) { + reqBuilder.addHeader("Cookie", + String.format(Locale.ROOT, "%s=%s", param.getKey(), param.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 + * @param cookieParams Map of cookie parameters + * @param payload HTTP request body + * @param method HTTP method + * @param uri URI + * @throws com.formkiq.client.invoker.ApiException If fails to update the parameters + */ + public void updateParamsForAuth(String[] authNames, List queryParams, + Map headerParams, Map cookieParams, String payload, + String method, URI uri) throws ApiException { + for (String authName : authNames) { + Authentication auth = authentications.get(authName); + if (auth == null) { + throw new RuntimeException("Authentication undefined: " + authName); + } + auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); + } + } + + /** + * 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) { + okhttp3.FormBody.Builder formBuilder = new okhttp3.FormBody.Builder(); + 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) { + MultipartBody.Builder mpBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); + for (Entry param : formParams.entrySet()) { + if (param.getValue() instanceof File) { + File file = (File) param.getValue(); + addPartToMultiPartBuilder(mpBuilder, param.getKey(), file); + } else if (param.getValue() instanceof List) { + List list = (List) param.getValue(); + for (Object item : list) { + if (item instanceof File) { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); + } else { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); + } } - for (Entry param : defaultCookieMap.entrySet()) { - if (!cookieParams.containsKey(param.getKey())) { - reqBuilder.addHeader("Cookie", String.format(Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); - } + } else { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), 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; + } + } + + /** + * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder. + * + * @param mpBuilder MultipartBody.Builder + * @param key The key of the Header element + * @param file The file to add to the Header + */ + protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { + Headers partHeaders = Headers.of("Content-Disposition", + "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); + MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); + mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); + } + + /** + * Add a Content-Disposition Header for the given key and complex object to the MultipartBody + * Builder. + * + * @param mpBuilder MultipartBody.Builder + * @param key The key of the Header element + * @param obj The complex object to add to the Header + */ + protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, + Object obj) { + RequestBody requestBody; + if (obj instanceof String) { + requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); + } else { + String content; + if (obj != null) { + content = JSON.serialize(obj); + } else { + content = null; + } + requestBody = RequestBody.create(content, MediaType.parse("application/json")); + } + + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\""); + mpBuilder.addPart(partHeaders, requestBody); + } + + /** + * Get network interceptor to add it to the httpClient to track download progress for async + * requests. + */ + protected Interceptor getProgressInterceptor() { + return new Interceptor() { + @Override + public Response intercept(Interceptor.Chain chain) throws IOException { + final Request request = chain.request(); + final Response originalResponse = chain.proceed(request); + if (request.tag() instanceof ApiCallback) { + final ApiCallback callback = (ApiCallback) request.tag(); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), callback)).build(); } - } - - /** - * 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 - * @param cookieParams Map of cookie parameters - * @param payload HTTP request body - * @param method HTTP method - * @param uri URI - * @throws com.formkiq.client.invoker.ApiException If fails to update the parameters - */ - public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, - Map cookieParams, String payload, String method, URI uri) throws ApiException { - for (String authName : authNames) { - Authentication auth = authentications.get(authName); - if (auth == null) { - throw new RuntimeException("Authentication undefined: " + authName); - } - auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); - } - } - - /** - * 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) { - okhttp3.FormBody.Builder formBuilder = new okhttp3.FormBody.Builder(); - 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) { - MultipartBody.Builder mpBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); - for (Entry param : formParams.entrySet()) { - if (param.getValue() instanceof File) { - File file = (File) param.getValue(); - addPartToMultiPartBuilder(mpBuilder, param.getKey(), file); - } else if (param.getValue() instanceof List) { - List list = (List) param.getValue(); - for (Object item: list) { - if (item instanceof File) { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); - } else { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); - } - } - } else { - addPartToMultiPartBuilder(mpBuilder, param.getKey(), 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; - } - } - - /** - * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder. - * - * @param mpBuilder MultipartBody.Builder - * @param key The key of the Header element - * @param file The file to add to the Header - */ - protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); - MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); - mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); - } - - /** - * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder. - * - * @param mpBuilder MultipartBody.Builder - * @param key The key of the Header element - * @param obj The complex object to add to the Header - */ - protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { - RequestBody requestBody; - if (obj instanceof String) { - requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); - } else { - String content; - if (obj != null) { - content = JSON.serialize(obj); - } else { - content = null; - } - requestBody = RequestBody.create(content, MediaType.parse("application/json")); - } - - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\""); - mpBuilder.addPart(partHeaders, requestBody); - } - - /** - * Get network interceptor to add it to the httpClient to track download progress for - * async requests. - */ - protected Interceptor getProgressInterceptor() { - return new Interceptor() { - @Override - public Response intercept(Interceptor.Chain chain) throws IOException { - final Request request = chain.request(); - final Response originalResponse = chain.proceed(request); - if (request.tag() instanceof ApiCallback) { - final ApiCallback callback = (ApiCallback) request.tag(); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), callback)) - .build(); - } - return originalResponse; - } + return originalResponse; + } + }; + } + + /** + * Apply SSL related settings to httpClient according to the current values of verifyingSsl and + * sslCaCert. + */ + protected void applySslSettings() { + try { + TrustManager[] trustManagers; + HostnameVerifier hostnameVerifier; + if (!verifyingSsl) { + trustManagers = new TrustManager[] {new X509TrustManager() { + @Override + public void checkClientTrusted(java.security.cert.X509Certificate[] chain, + String authType) throws CertificateException {} + + @Override + public void checkServerTrusted(java.security.cert.X509Certificate[] chain, + String authType) throws CertificateException {} + + @Override + public java.security.cert.X509Certificate[] getAcceptedIssuers() { + return new java.security.cert.X509Certificate[] {}; + } + }}; + hostnameVerifier = new HostnameVerifier() { + @Override + public boolean verify(String hostname, SSLSession session) { + return true; + } }; - } - - /** - * Apply SSL related settings to httpClient according to the current values of - * verifyingSsl and sslCaCert. - */ - protected void applySslSettings() { - try { - TrustManager[] trustManagers; - HostnameVerifier hostnameVerifier; - if (!verifyingSsl) { - trustManagers = new TrustManager[]{ - new X509TrustManager() { - @Override - public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { - } - - @Override - public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { - } - - @Override - public java.security.cert.X509Certificate[] getAcceptedIssuers() { - return new java.security.cert.X509Certificate[]{}; - } - } - }; - hostnameVerifier = new HostnameVerifier() { - @Override - public boolean verify(String hostname, SSLSession session) { - return true; - } - }; - } else { - TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); - - if (sslCaCert == null) { - trustManagerFactory.init((KeyStore) null); - } else { - 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" + (index++); - caKeyStore.setCertificateEntry(certificateAlias, certificate); - } - trustManagerFactory.init(caKeyStore); - } - trustManagers = trustManagerFactory.getTrustManagers(); - hostnameVerifier = OkHostnameVerifier.INSTANCE; - } - - SSLContext sslContext = SSLContext.getInstance("TLS"); - sslContext.init(keyManagers, trustManagers, new SecureRandom()); - httpClient = httpClient.newBuilder() - .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) - .hostnameVerifier(hostnameVerifier) - .build(); - } catch (GeneralSecurityException e) { - throw new RuntimeException(e); - } - } + } else { + TrustManagerFactory trustManagerFactory = + TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); - protected 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); - } - } - - /** - * Convert the HTTP request body to a string. - * - * @param requestBody The HTTP request object - * @return The string representation of the HTTP request body - * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object into a string - */ - protected String requestBodyToString(RequestBody requestBody) throws ApiException { - if (requestBody != null) { - try { - final Buffer buffer = new Buffer(); - requestBody.writeTo(buffer); - return buffer.readUtf8(); - } catch (final IOException e) { - throw new ApiException(e); - } + if (sslCaCert == null) { + trustManagerFactory.init((KeyStore) null); + } else { + 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" + (index++); + caKeyStore.setCertificateEntry(certificateAlias, certificate); + } + trustManagerFactory.init(caKeyStore); } - - // empty http request body - return ""; - } + trustManagers = trustManagerFactory.getTrustManagers(); + hostnameVerifier = OkHostnameVerifier.INSTANCE; + } + + SSLContext sslContext = SSLContext.getInstance("TLS"); + sslContext.init(keyManagers, trustManagers, new SecureRandom()); + httpClient = httpClient.newBuilder() + .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) + .hostnameVerifier(hostnameVerifier).build(); + } catch (GeneralSecurityException e) { + throw new RuntimeException(e); + } + } + + protected 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); + } + } + + /** + * Convert the HTTP request body to a string. + * + * @param requestBody The HTTP request object + * @return The string representation of the HTTP request body + * @throws com.formkiq.client.invoker.ApiException If fail to serialize the request body object + * into a string + */ + protected String requestBodyToString(RequestBody requestBody) throws ApiException { + if (requestBody != null) { + try { + final Buffer buffer = new Buffer(); + requestBody.writeTo(buffer); + return buffer.readUtf8(); + } catch (final IOException e) { + throw new ApiException(e); + } + } + + // empty http request body + return ""; + } } diff --git a/src/main/java/com/formkiq/client/invoker/ApiException.java b/src/main/java/com/formkiq/client/invoker/ApiException.java index c6da23de3..cdbe4d2e2 100644 --- a/src/main/java/com/formkiq/client/invoker/ApiException.java +++ b/src/main/java/com/formkiq/client/invoker/ApiException.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -19,150 +26,178 @@ /** - *

ApiException class.

+ *

+ * ApiException class. + *

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ApiException extends Exception { - private static final long serialVersionUID = 1L; - - private int code = 0; - private Map> responseHeaders = null; - private String responseBody = null; - - /** - *

Constructor for ApiException.

- */ - public ApiException() {} - - /** - *

Constructor for ApiException.

- * - * @param throwable a {@link java.lang.Throwable} object - */ - public ApiException(Throwable throwable) { - super(throwable); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - */ - public ApiException(String message) { - super(message); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param throwable a {@link java.lang.Throwable} object - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { - super(message, throwable); - this.code = code; - this.responseHeaders = responseHeaders; - this.responseBody = responseBody; - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(String message, int code, Map> responseHeaders, String responseBody) { - this(message, (Throwable) null, code, responseHeaders, responseBody); - } - - /** - *

Constructor for ApiException.

- * - * @param message the error message - * @param throwable a {@link java.lang.Throwable} object - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - */ - public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { - this(message, throwable, code, responseHeaders, null); - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - public ApiException(int code, Map> responseHeaders, String responseBody) { - this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, responseHeaders, responseBody); - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param message a {@link java.lang.String} object - */ - public ApiException(int code, String message) { - super(message); - this.code = code; - } - - /** - *

Constructor for ApiException.

- * - * @param code HTTP status code - * @param message the error message - * @param responseHeaders a {@link java.util.Map} of HTTP response headers - * @param responseBody the response body - */ - 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; - } - - /** - * Get the exception message including HTTP response data. - * - * @return The exception message - */ - public String getMessage() { - return String.format(Locale.ROOT, "Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", - super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); - } + private static final long serialVersionUID = 1L; + + private int code = 0; + private Map> responseHeaders = null; + private String responseBody = null; + + /** + *

+ * Constructor for ApiException. + *

+ */ + public ApiException() {} + + /** + *

+ * Constructor for ApiException. + *

+ * + * @param throwable a {@link java.lang.Throwable} object + */ + public ApiException(Throwable throwable) { + super(throwable); + } + + /** + *

+ * Constructor for ApiException. + *

+ * + * @param message the error message + */ + public ApiException(String message) { + super(message); + } + + /** + *

+ * Constructor for ApiException. + *

+ * + * @param message the error message + * @param throwable a {@link java.lang.Throwable} object + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(String message, Throwable throwable, int code, + Map> responseHeaders, String responseBody) { + super(message, throwable); + this.code = code; + this.responseHeaders = responseHeaders; + this.responseBody = responseBody; + } + + /** + *

+ * Constructor for ApiException. + *

+ * + * @param message the error message + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(String message, int code, Map> responseHeaders, + String responseBody) { + this(message, (Throwable) null, code, responseHeaders, responseBody); + } + + /** + *

+ * Constructor for ApiException. + *

+ * + * @param message the error message + * @param throwable a {@link java.lang.Throwable} object + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + */ + public ApiException(String message, Throwable throwable, int code, + Map> responseHeaders) { + this(message, throwable, code, responseHeaders, null); + } + + /** + *

+ * Constructor for ApiException. + *

+ * + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(int code, Map> responseHeaders, String responseBody) { + this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, + responseHeaders, responseBody); + } + + /** + *

+ * Constructor for ApiException. + *

+ * + * @param code HTTP status code + * @param message a {@link java.lang.String} object + */ + public ApiException(int code, String message) { + super(message); + this.code = code; + } + + /** + *

+ * Constructor for ApiException. + *

+ * + * @param code HTTP status code + * @param message the error message + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + 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; + } + + /** + * Get the exception message including HTTP response data. + * + * @return The exception message + */ + public String getMessage() { + return String.format(Locale.ROOT, + "Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", + super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); + } } diff --git a/src/main/java/com/formkiq/client/invoker/ApiResponse.java b/src/main/java/com/formkiq/client/invoker/ApiResponse.java index 375a19580..ab2e4a498 100644 --- a/src/main/java/com/formkiq/client/invoker/ApiResponse.java +++ b/src/main/java/com/formkiq/client/invoker/ApiResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -20,57 +27,67 @@ * API response returned by API call. */ public class ApiResponse { - final private int statusCode; - final private Map> headers; - final private T data; + final private int statusCode; + final private Map> headers; + final private T data; - /** - *

Constructor for ApiResponse.

- * - * @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); - } + /** + *

+ * Constructor for ApiResponse. + *

+ * + * @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); + } - /** - *

Constructor for ApiResponse.

- * - * @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; - } + /** + *

+ * Constructor for ApiResponse. + *

+ * + * @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; + } - /** - *

Get the status code.

- * - * @return the status code - */ - public int getStatusCode() { - return statusCode; - } + /** + *

+ * Get the status code. + *

+ * + * @return the status code + */ + public int getStatusCode() { + return statusCode; + } - /** - *

Get the headers.

- * - * @return a {@link java.util.Map} of headers - */ - public Map> getHeaders() { - return headers; - } + /** + *

+ * Get the headers. + *

+ * + * @return a {@link java.util.Map} of headers + */ + public Map> getHeaders() { + return headers; + } - /** - *

Get the data.

- * - * @return the data - */ - public T getData() { - return data; - } + /** + *

+ * Get the data. + *

+ * + * @return the data + */ + public T getData() { + return data; + } } diff --git a/src/main/java/com/formkiq/client/invoker/Configuration.java b/src/main/java/com/formkiq/client/invoker/Configuration.java index 798fcf20c..53c77b0e9 100644 --- a/src/main/java/com/formkiq/client/invoker/Configuration.java +++ b/src/main/java/com/formkiq/client/invoker/Configuration.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -17,7 +24,9 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Configuration { public static final String VERSION = "1.18.1"; @@ -25,7 +34,8 @@ public class Configuration { private static volatile Supplier apiClientFactory = ApiClient::new; /** - * Get the default API client, which would be used when creating API instances without providing an API client. + * Get the default API client, which would be used when creating API instances without providing + * an API client. * * @return Default API client */ @@ -43,7 +53,8 @@ public static ApiClient getDefaultApiClient() { } /** - * Set the default API client, which would be used when creating API instances without providing an API client. + * Set the default API client, which would be used when creating API instances without providing + * an API client. * * @param apiClient API client */ @@ -58,6 +69,5 @@ public static void setApiClientFactory(Supplier factory) { apiClientFactory = Objects.requireNonNull(factory); } - private Configuration() { - } -} \ No newline at end of file + private Configuration() {} +} diff --git a/src/main/java/com/formkiq/client/invoker/GzipRequestInterceptor.java b/src/main/java/com/formkiq/client/invoker/GzipRequestInterceptor.java index 10a6ddd2d..e65202856 100644 --- a/src/main/java/com/formkiq/client/invoker/GzipRequestInterceptor.java +++ b/src/main/java/com/formkiq/client/invoker/GzipRequestInterceptor.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,59 +34,57 @@ * 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); + @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); } - 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(); - } + Request compressedRequest = originalRequest.newBuilder().header("Content-Encoding", "gzip") + .method(originalRequest.method(), forceContentLength(gzip(originalRequest.body()))).build(); + return chain.proceed(compressedRequest); + } - @Override - public long contentLength() { - return buffer.size(); - } + 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 void writeTo(BufferedSink sink) throws IOException { - sink.write(buffer.snapshot()); - } - }; - } + @Override + public long contentLength() { + return buffer.size(); + } - private RequestBody gzip(final RequestBody body) { - return new RequestBody() { - @Override - public MediaType contentType() { - return body.contentType(); - } + @Override + public void writeTo(BufferedSink sink) throws IOException { + sink.write(buffer.snapshot()); + } + }; + } - @Override - public long contentLength() { - return -1; // We don't know the compressed length in advance! - } + private RequestBody gzip(final RequestBody body) { + return new RequestBody() { + @Override + public MediaType contentType() { + return body.contentType(); + } - @Override - public void writeTo(BufferedSink sink) throws IOException { - BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); - body.writeTo(gzipSink); - gzipSink.close(); - } - }; - } + @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(); + } + }; + } } diff --git a/src/main/java/com/formkiq/client/invoker/JSON.java b/src/main/java/com/formkiq/client/invoker/JSON.java index 050baed47..8fb6423fa 100644 --- a/src/main/java/com/formkiq/client/invoker/JSON.java +++ b/src/main/java/com/formkiq/client/invoker/JSON.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -47,765 +54,1159 @@ * A JSON utility class * * NOTE: in the future, this class may be converted to static, which may break - * backward-compatibility + * backward-compatibility */ public class JSON { - private static Gson gson; - private static boolean isLenientOnJson = false; - private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); - private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); - private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); - private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - - @SuppressWarnings("unchecked") - public static GsonBuilder createGson() { - GsonFireBuilder fireBuilder = new GsonFireBuilder() - ; - GsonBuilder builder = fireBuilder.createGsonBuilder(); - return builder; - } + private static Gson gson; + private static boolean isLenientOnJson = false; + private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); + private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); + private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = + new OffsetDateTimeTypeAdapter(); + private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); + private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - 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(); - } + @SuppressWarnings("unchecked") + public static GsonBuilder createGson() { + GsonFireBuilder fireBuilder = new GsonFireBuilder(); + GsonBuilder builder = fireBuilder.createGsonBuilder(); + return builder; + } - /** - * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. - * - * @param classByDiscriminatorValue The map of discriminator values to Java classes. - * @param discriminatorValue The value of the OpenAPI discriminator in the input data. - * @return The Java class that implements the OpenAPI schema - */ - private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { - Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); - if (null == clazz) { - throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); - } - return clazz; + 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(); + } - static { - GsonBuilder gsonBuilder = createGson(); - gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); - gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); - gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); - gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); - gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Activity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddAction.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddActionParameters.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddApiKeyRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddApiKeyResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddAttributeRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddAttributeSchemaOptional.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddAttributeSchemaRequired.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddCase.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddCaseRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddCaseResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddChildDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddChildDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddClassification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddClassificationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddClassificationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentActionsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentActionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentActionsRetryResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributeClassification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributeEntity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributeRelationship.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributeStandard.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributeValue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentAttributesRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentFulltextRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentGenerateRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentGenerateResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentOcrRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentOcrResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentSync.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentSyncRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentTagsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentUploadRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentWorkflowDecisionsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentWorkflowDecisionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentWorkflowRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocumentWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocusignEnvelopesRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocusignEnvelopesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocusignRecipientViewRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddDocusignRecipientViewResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityType.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityTypeRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddEntityTypeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddFolderPermission.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddFolderRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddFolderResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddFolderShareRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddFolderShareResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddGoogleDocumentExportRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddGoogleDocumentExportResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddGroup.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddGroupRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleResourceClassificationItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleResourceInterfaceItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleResourceItemRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleResourceItemResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddLocaleResourceSchemaItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddMapping.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddMappingRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddMappingResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddNigo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddNigoRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddNigoResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddQueueRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddQueueResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddReindexDocumentRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddResourceItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRuleRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRuleResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRuleset.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRulesetRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddRulesetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddShare.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddSite.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddSiteRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddTask.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddTaskRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddTaskResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddUser.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddUserRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWebhookRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWebhookResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWebhookTagRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWorkflowRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWorkflowStep.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWorkflowStepDecision.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AddWorkflowStepQueue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ApiKey.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Attribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AttributeSchemaCompositeKey.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AttributeSchemaOptional.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.AttributeSchemaRequired.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ChildDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Classification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ClassificationSummary.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DataClassification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DataClassificationAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteApiKeyResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseNigoDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseNigoResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseTaskDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteCaseTaskResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteFolderResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteIndicesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteQueueResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteRuleResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteRulesetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteShareResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DeleteWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Document.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentAction.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextAttributeEq.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextSearch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentFulltextTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentGenerateDataSource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentGenerateInsertDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentId.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchMatchAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchMatchTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchMeta.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchRange.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSearchTags.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentSync.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentVersion.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentWorkflow.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentsCompressRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocumentsCompressResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignInpersonSigner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignNotification.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignNotificationExpirations.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignNotificationReminders.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignRecipientView.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignSignHereTabs.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignSigner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.DocusignSigningTabs.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Entity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.EntityAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.EntityType.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Error.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ErrorsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.FolderPermission.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.FulltextAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.FulltextSearchItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetActivitesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetApiKeysResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetAttributeAllowedValuesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetAttributeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetAttributesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseDocumentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseNigoResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseNigosResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseTaskResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCaseTasksResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetCasesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetClassificationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetClassificationsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetConfigurationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentActionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentAttributeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentAttributesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentContentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentDataClassificationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentOcrResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentSyncResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentTagResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentTagsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentUrlResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentVersionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentWorkflowsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetDocumentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetEntitiesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetEntityResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetEntityTypeResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetEntityTypesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetExaminePdfResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetExaminePdfUrlResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetFolderPermissionsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetFoldersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetGroupResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetGroupsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetLocaleResourceItemResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetLocaleResourceItemsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetLocalesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetMalwareScanResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetMappingResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetMappingsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpaAccessPoliciesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpaAccessPolicyItemsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpaAccessPolicyResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpenSearchIndexResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpenSearchIndiceResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpenSearchSnapshotRepositoryResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetOpenSearchSnapshotResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetQueueResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetQueuesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetRuleResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetRulesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetRulesetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetRulesetsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetSiteGroupResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetSiteGroupsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetSitesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetSitesSchemaResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUserActivitesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUserGroupsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUserResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUserSharesResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUsersInGroupResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetUsersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetVersionResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWebhookResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWebhookTagsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWebhooksResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWorkflowDocumentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWorkflowQueueDocumentsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GetWorkflowsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.GoogleConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Group.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.IndexFolderMoveRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.IndexFolderMoveResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.IndexSearch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.IndexSearchRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.IndexSearchResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.LocaleInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.MalwareScanResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Mapping.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.MappingAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.MatchDocumentTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ModelCase.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Nigo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OcrConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OcrKeyValues.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OcrTable.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OcrTableData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeEq.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeGt.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeGte.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeIn.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeInput.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeLt.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeLte.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeNeq.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyAttributeNotIn.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyInput.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyInputMethod.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyInputResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpaPolicyItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchAlias.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchIndex.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchIndexSetting.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchS3Repository.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchSnapshot.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchSnapshotFailure.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.OpenSearchSnapshotShard.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.PdfDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.PdfDocumentField.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.QueryFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Queue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ResourceItem.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Rule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.RuleCondition.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.RuleConditionMust.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Ruleset.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SchemaAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SearchResponseFields.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SearchResultDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SearchResultDocumentAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetClassificationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentAttributeRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentAttributesRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentDataClassificationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentDataClassificationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentFulltextRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentOcrRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentRestoreResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentTagKeyRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentVersionRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetDocumentVersionResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetFolderPermissionsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetGroupPermissionsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetLocaleResourceItemRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetMappingRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetOpaAccessPolicyItemsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetOpenSearchIndexRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetOpenSearchIndexResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetOpenSearchIndiceRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetSchemaAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetSitesSchemaRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetWorkflowRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SetWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Site.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SiteConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SiteGroup.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.SiteUsage.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.StringFormat.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Task.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.TextractQuery.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateAttributeRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateCase.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateCaseRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateCaseResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateConfigurationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateConfigurationResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateDocumentFulltextRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateDocumentFulltextResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateDocumentRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateEntityRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateMatchingDocumentTagsRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateMatchingDocumentTagsRequestMatch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateMatchingDocumentTagsRequestUpdate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateMatchingDocumentTagsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateNigo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateNigoRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateNigoResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRuleRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRuleResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRuleset.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRulesetRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateRulesetResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateSite.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateSiteRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateTask.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateTaskRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateTaskResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateWorkflowRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UpdateWorkflowResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.User.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UserActivity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UserActivityChanges.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UserAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.UserShare.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ValidationError.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.ValidationErrorsResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.Watermark.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WatermarkPosition.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WebhookTag.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WorkflowDocument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WorkflowQueue.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WorkflowStep.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WorkflowStepDecision.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.formkiq.client.model.WorkflowSummary.CustomTypeAdapterFactory()); - gson = gsonBuilder.create(); + /** + * Returns the Java class that implements the OpenAPI schema for the specified discriminator + * value. + * + * @param classByDiscriminatorValue The map of discriminator values to Java classes. + * @param discriminatorValue The value of the OpenAPI discriminator in the input data. + * @return The Java class that implements the OpenAPI schema + */ + private static Class getClassByDiscriminator(Map classByDiscriminatorValue, + String discriminatorValue) { + Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); + if (null == clazz) { + throw new IllegalArgumentException( + "cannot determine model class of name: <" + discriminatorValue + ">"); } + return clazz; + } - /** - * Get Gson. - * - * @return Gson - */ - public static Gson getGson() { - return gson; - } + static { + GsonBuilder gsonBuilder = createGson(); + gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); + gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); + gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); + gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); + gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.Activity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddAction.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddActionParameters.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddApiKeyRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddApiKeyResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddAttributeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddAttributeSchemaOptional.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddAttributeSchemaRequired.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddCase.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddCaseRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddCaseResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddChildDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddChildDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddClassification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddClassificationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddClassificationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentActionsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentActionsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentActionsRetryResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentAttributeClassification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentAttributeEntity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentAttributeRelationship.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentAttributeStandard.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentAttributeValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentAttributesRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentFulltextRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentGenerateRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentGenerateResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentOcrRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentOcrResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentSync.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentSyncRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentTagsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentUploadRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentWorkflowDecisionsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentWorkflowDecisionsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentWorkflowRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocumentWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocusignEnvelopesRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocusignEnvelopesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocusignRecipientViewRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddDocusignRecipientViewResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddEntity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddEntityAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddEntityRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddEntityResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddEntityType.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddEntityTypeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddEntityTypeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddFolderPermission.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddFolderRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddFolderResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddFolderShareRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddFolderShareResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddGoogleDocumentExportRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddGoogleDocumentExportResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddGroup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddGroupRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddLocaleRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddLocaleResourceClassificationItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddLocaleResourceInterfaceItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddLocaleResourceItemRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddLocaleResourceItemResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddLocaleResourceSchemaItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddMapping.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddMappingRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddMappingResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddNigo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddNigoRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddNigoResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddQueueRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddQueueResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddReindexDocumentRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddResourceItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddRuleRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddRuleResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddRuleset.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddRulesetRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddRulesetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddShare.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddSite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddSiteRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddTask.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddTaskRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddTaskResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddUser.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddUserRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddWebhookRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddWebhookResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddWebhookTagRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddWorkflowRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddWorkflowStep.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddWorkflowStepDecision.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AddWorkflowStepQueue.CustomTypeAdapterFactory()); + gsonBuilder + .registerTypeAdapterFactory(new com.formkiq.client.model.ApiKey.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.Attribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AttributeSchemaCompositeKey.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AttributeSchemaOptional.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.AttributeSchemaRequired.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.ChildDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.Classification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.ClassificationSummary.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DataClassification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DataClassificationAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteApiKeyResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteCaseDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteCaseNigoDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteCaseNigoResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteCaseResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteCaseTaskDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteCaseTaskResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteFolderResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteIndicesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteQueueResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteRuleResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteRulesetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteShareResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DeleteWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.Document.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentAction.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentConfigContentTypes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentFulltextAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentFulltextAttributeEq.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentFulltextRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentFulltextSearch.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentFulltextTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentGenerateDataSource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentGenerateInsertDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentId.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSearch.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSearchAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSearchMatchAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSearchMatchTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSearchMeta.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSearchRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSearchRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSearchResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSearchTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSearchTags.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentSync.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentVersion.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentWorkflow.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentsCompressRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocumentsCompressResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocusignConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocusignInpersonSigner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocusignNotification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocusignNotificationExpirations.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocusignNotificationReminders.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocusignRecipientView.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocusignSignHereTabs.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocusignSigner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.DocusignSigningTabs.CustomTypeAdapterFactory()); + gsonBuilder + .registerTypeAdapterFactory(new com.formkiq.client.model.Entity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.EntityAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.EntityType.CustomTypeAdapterFactory()); + gsonBuilder + .registerTypeAdapterFactory(new com.formkiq.client.model.Error.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.ErrorsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.FolderPermission.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.FulltextAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.FulltextSearchItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetActivitesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetApiKeysResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetAttributeAllowedValuesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetAttributeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetAttributesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetCaseDocumentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetCaseNigoResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetCaseNigosResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetCaseResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetCaseTaskResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetCaseTasksResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetCasesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetClassificationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetClassificationsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetConfigurationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentActionsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentAttributeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentAttributesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentContentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentDataClassificationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentOcrResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentSyncResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentTagResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentTagsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentUrlResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentVersionsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentWorkflowsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetDocumentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetEntitiesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetEntityResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetEntityTypeResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetEntityTypesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetExaminePdfResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetExaminePdfUrlResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetFolderPermissionsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetFoldersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetGroupResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetGroupsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetLocaleResourceItemResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetLocaleResourceItemsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetLocalesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetMalwareScanResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetMappingResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetMappingsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetOpaAccessPoliciesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetOpaAccessPolicyItemsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetOpaAccessPolicyResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetOpenSearchIndexResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetOpenSearchIndiceResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetOpenSearchSnapshotRepositoryResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetOpenSearchSnapshotResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetQueueResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetQueuesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetRuleResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetRulesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetRulesetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetRulesetsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetSiteGroupResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetSiteGroupsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetSitesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetSitesSchemaResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetUserActivitesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetUserGroupsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetUserResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetUserSharesResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetUsersInGroupResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetUsersResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetVersionResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetWebhookResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetWebhookTagsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetWebhooksResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetWorkflowDocumentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetWorkflowQueueDocumentsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GetWorkflowsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.GoogleConfig.CustomTypeAdapterFactory()); + gsonBuilder + .registerTypeAdapterFactory(new com.formkiq.client.model.Group.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.IndexFolderMoveRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.IndexFolderMoveResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.IndexSearch.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.IndexSearchRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.IndexSearchResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.LocaleInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.MalwareScanResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.Mapping.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.MappingAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.MatchDocumentTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.ModelCase.CustomTypeAdapterFactory()); + gsonBuilder + .registerTypeAdapterFactory(new com.formkiq.client.model.Nigo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OcrConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OcrKeyValues.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OcrTable.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OcrTableData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyAttributeEq.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyAttributeGt.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyAttributeGte.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyAttributeIn.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyAttributeInput.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyAttributeLt.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyAttributeLte.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyAttributeNeq.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyAttributeNotIn.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyInput.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyInputMethod.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyInputResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpaPolicyItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpenSearchAlias.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpenSearchIndex.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpenSearchIndexSetting.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpenSearchS3Repository.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpenSearchSnapshot.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpenSearchSnapshotFailure.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.OpenSearchSnapshotShard.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.PdfDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.PdfDocumentField.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.QueryFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder + .registerTypeAdapterFactory(new com.formkiq.client.model.Queue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.ResourceItem.CustomTypeAdapterFactory()); + gsonBuilder + .registerTypeAdapterFactory(new com.formkiq.client.model.Rule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.RuleCondition.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.RuleConditionMust.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.Ruleset.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SchemaAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SearchResponseFields.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SearchResultDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SearchResultDocumentAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetClassificationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentAttributeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentAttributesRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentDataClassificationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentDataClassificationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentFulltextRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentOcrRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentRestoreResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentTagKeyRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentVersionRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetDocumentVersionResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetFolderPermissionsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetGroupPermissionsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetLocaleResourceItemRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetMappingRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetOpaAccessPolicyItemsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetOpenSearchIndexRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetOpenSearchIndexResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetOpenSearchIndiceRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetSchemaAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetSitesSchemaRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetWorkflowRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SetWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder + .registerTypeAdapterFactory(new com.formkiq.client.model.Site.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SiteConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SiteGroup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.SiteUsage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.StringFormat.CustomTypeAdapterFactory()); + gsonBuilder + .registerTypeAdapterFactory(new com.formkiq.client.model.Task.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.TextractQuery.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateAttributeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateCase.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateCaseRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateCaseResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateConfigurationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateConfigurationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateDocumentFulltextRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateDocumentFulltextResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateDocumentRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateEntityRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateMatchingDocumentTagsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateMatchingDocumentTagsRequestMatch.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateMatchingDocumentTagsRequestUpdate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateMatchingDocumentTagsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateNigo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateNigoRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateNigoResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateRuleRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateRuleResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateRuleset.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateRulesetRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateRulesetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateSite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateSiteRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateTask.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateTaskRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateTaskResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateWorkflowRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UpdateWorkflowResponse.CustomTypeAdapterFactory()); + gsonBuilder + .registerTypeAdapterFactory(new com.formkiq.client.model.User.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UserActivity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UserActivityChanges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UserAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.UserShare.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.ValidationError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.ValidationErrorsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.Watermark.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.WatermarkPosition.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.WebhookTag.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.WorkflowDocument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.WorkflowQueue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.WorkflowStep.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.WorkflowStepDecision.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new com.formkiq.client.model.WorkflowSummary.CustomTypeAdapterFactory()); + gson = gsonBuilder.create(); + } - /** - * Set Gson. - * - * @param gson Gson - */ - public static void setGson(Gson gson) { - JSON.gson = gson; - } + /** + * Get Gson. + * + * @return Gson + */ + public static Gson getGson() { + return gson; + } - public static void setLenientOnJson(boolean lenientOnJson) { - isLenientOnJson = lenientOnJson; - } + /** + * Set Gson. + * + * @param gson Gson + */ + public static void setGson(Gson gson) { + JSON.gson = gson; + } - /** - * Serialize the given Java object into JSON string. - * - * @param obj Object - * @return String representation of the JSON - */ - public static String serialize(Object obj) { - return gson.toJson(obj); - } + public static void setLenientOnJson(boolean lenientOnJson) { + isLenientOnJson = lenientOnJson; + } - /** - * 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 static 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); - } - } + /** + * Serialize the given Java object into JSON string. + * + * @param obj Object + * @return String representation of the JSON + */ + public static 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 static 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); + } } + } - /** - * Deserialize the given JSON InputStream to a Java object. - * - * @param Type - * @param inputStream The JSON InputStream - * @param returnType The type to deserialize into - * @return The deserialized Java object - */ - @SuppressWarnings("unchecked") - public static T deserialize(InputStream inputStream, Type returnType) throws IOException { - try (InputStreamReader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8)) { - if (isLenientOnJson) { - // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) - JsonReader jsonReader = new JsonReader(reader); - jsonReader.setLenient(true); - return gson.fromJson(jsonReader, returnType); - } else { - return gson.fromJson(reader, returnType); - } - } + /** + * Deserialize the given JSON InputStream to a Java object. + * + * @param Type + * @param inputStream The JSON InputStream + * @param returnType The type to deserialize into + * @return The deserialized Java object + */ + @SuppressWarnings("unchecked") + public static T deserialize(InputStream inputStream, Type returnType) throws IOException { + try (InputStreamReader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8)) { + if (isLenientOnJson) { + // see + // https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) + JsonReader jsonReader = new JsonReader(reader); + jsonReader.setLenient(true); + return gson.fromJson(jsonReader, returnType); + } else { + return gson.fromJson(reader, returnType); + } } + } - /** - * Gson TypeAdapter for Byte Array type - */ - public static class ByteArrayAdapter extends TypeAdapter { - - @Override - public void write(JsonWriter out, byte[] value) throws IOException { - if (value == null) { - out.nullValue(); - } else { - out.value(ByteString.of(value).base64()); - } - } + /** + * Gson TypeAdapter for Byte Array type + */ + public static class ByteArrayAdapter extends TypeAdapter { - @Override - public byte[] read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String bytesAsBase64 = in.nextString(); - ByteString byteString = ByteString.decodeBase64(bytesAsBase64); - return byteString.toByteArray(); - } - } + @Override + public void write(JsonWriter out, byte[] value) throws IOException { + if (value == null) { + out.nullValue(); + } else { + out.value(ByteString.of(value).base64()); + } } - /** - * Gson TypeAdapter for JSR310 OffsetDateTime type - */ - public static class OffsetDateTimeTypeAdapter extends TypeAdapter { - - private DateTimeFormatter formatter; + @Override + public byte[] read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String bytesAsBase64 = in.nextString(); + ByteString byteString = ByteString.decodeBase64(bytesAsBase64); + return byteString.toByteArray(); + } + } + } - public OffsetDateTimeTypeAdapter() { - this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); - } + /** + * Gson TypeAdapter for JSR310 OffsetDateTime type + */ + public static class OffsetDateTimeTypeAdapter extends TypeAdapter { - public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { - this.formatter = formatter; - } + private DateTimeFormatter formatter; - public void setFormat(DateTimeFormatter dateFormat) { - this.formatter = dateFormat; - } + public OffsetDateTimeTypeAdapter() { + this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); + } - @Override - public void write(JsonWriter out, OffsetDateTime date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - out.value(formatter.format(date)); - } - } + public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } - @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); - } - } + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; } - /** - * Gson TypeAdapter for JSR310 LocalDate type - */ - public static class LocalDateTypeAdapter extends TypeAdapter { + @Override + public void write(JsonWriter out, OffsetDateTime date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + out.value(formatter.format(date)); + } + } - private DateTimeFormatter formatter; + @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); + } + } + } - public LocalDateTypeAdapter() { - this(DateTimeFormatter.ISO_LOCAL_DATE); - } + /** + * Gson TypeAdapter for JSR310 LocalDate type + */ + public static class LocalDateTypeAdapter extends TypeAdapter { - public LocalDateTypeAdapter(DateTimeFormatter formatter) { - this.formatter = formatter; - } + private DateTimeFormatter formatter; - public void setFormat(DateTimeFormatter dateFormat) { - this.formatter = dateFormat; - } + public LocalDateTypeAdapter() { + this(DateTimeFormatter.ISO_LOCAL_DATE); + } - @Override - public void write(JsonWriter out, LocalDate date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - out.value(formatter.format(date)); - } - } + public LocalDateTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } - @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 void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; } - public static void setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { - offsetDateTimeTypeAdapter.setFormat(dateFormat); + @Override + public void write(JsonWriter out, LocalDate date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + out.value(formatter.format(date)); + } } - public static void setLocalDateFormat(DateTimeFormatter dateFormat) { - localDateTypeAdapter.setFormat(dateFormat); + @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); + } } + } - /** - * 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 { + public static void setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + offsetDateTimeTypeAdapter.setFormat(dateFormat); + } - private DateFormat dateFormat; + public static void setLocalDateFormat(DateTimeFormatter dateFormat) { + localDateTypeAdapter.setFormat(dateFormat); + } - public SqlDateTypeAdapter() {} + /** + * 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 { - public SqlDateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } + private DateFormat dateFormat; - public void setFormat(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } + public SqlDateTypeAdapter() {} - @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); - } + 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); - } + @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 { + /** + * 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; + private DateFormat dateFormat; - public DateTypeAdapter() {} + public DateTypeAdapter() {} - public DateTypeAdapter(DateFormat dateFormat) { - this.dateFormat = dateFormat; - } + public DateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } - public void setFormat(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 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 { + @Override + public Date read(JsonReader in) throws IOException { + try { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); 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); + 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 static void setDateFormat(DateFormat dateFormat) { - dateTypeAdapter.setFormat(dateFormat); - } + public static void setDateFormat(DateFormat dateFormat) { + dateTypeAdapter.setFormat(dateFormat); + } - public static void setSqlDateFormat(DateFormat dateFormat) { - sqlDateTypeAdapter.setFormat(dateFormat); - } + public static void setSqlDateFormat(DateFormat dateFormat) { + sqlDateTypeAdapter.setFormat(dateFormat); + } } diff --git a/src/main/java/com/formkiq/client/invoker/Pair.java b/src/main/java/com/formkiq/client/invoker/Pair.java index 73b2f6f65..be411603f 100644 --- a/src/main/java/com/formkiq/client/invoker/Pair.java +++ b/src/main/java/com/formkiq/client/invoker/Pair.java @@ -1,19 +1,28 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ package com.formkiq.client.invoker; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Pair { private final String name; private final String value; diff --git a/src/main/java/com/formkiq/client/invoker/ProgressRequestBody.java b/src/main/java/com/formkiq/client/invoker/ProgressRequestBody.java index 6e22df152..82ed070fc 100644 --- a/src/main/java/com/formkiq/client/invoker/ProgressRequestBody.java +++ b/src/main/java/com/formkiq/client/invoker/ProgressRequestBody.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -26,48 +33,48 @@ public class ProgressRequestBody extends RequestBody { - private final RequestBody requestBody; - - private final ApiCallback callback; - - public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { - this.requestBody = requestBody; - this.callback = callback; - } - - @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; - callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); - } - }; - } + private final RequestBody requestBody; + + private final ApiCallback callback; + + public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { + this.requestBody = requestBody; + this.callback = callback; + } + + @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; + callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); + } + }; + } } diff --git a/src/main/java/com/formkiq/client/invoker/ProgressResponseBody.java b/src/main/java/com/formkiq/client/invoker/ProgressResponseBody.java index 705249fac..52a2ff7b4 100644 --- a/src/main/java/com/formkiq/client/invoker/ProgressResponseBody.java +++ b/src/main/java/com/formkiq/client/invoker/ProgressResponseBody.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -26,45 +33,45 @@ public class ProgressResponseBody extends ResponseBody { - private final ResponseBody responseBody; - private final ApiCallback callback; - private BufferedSource bufferedSource; + private final ResponseBody responseBody; + private final ApiCallback callback; + private BufferedSource bufferedSource; - public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { - this.responseBody = responseBody; - this.callback = callback; - } + public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { + this.responseBody = responseBody; + this.callback = callback; + } - @Override - public MediaType contentType() { - return responseBody.contentType(); - } + @Override + public MediaType contentType() { + return responseBody.contentType(); + } - @Override - public long contentLength() { - return responseBody.contentLength(); - } + @Override + public long contentLength() { + return responseBody.contentLength(); + } - @Override - public BufferedSource source() { - if (bufferedSource == null) { - bufferedSource = Okio.buffer(source(responseBody.source())); - } - return bufferedSource; + @Override + public BufferedSource source() { + if (bufferedSource == null) { + bufferedSource = Okio.buffer(source(responseBody.source())); } + return bufferedSource; + } - private Source source(Source source) { - return new ForwardingSource(source) { - long totalBytesRead = 0L; + 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; - callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); - return bytesRead; - } - }; - } + @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; + callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); + return bytesRead; + } + }; + } } diff --git a/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java b/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java index b93b638a2..1531e5e1e 100644 --- a/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java +++ b/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -18,55 +25,60 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ServerConfiguration { - public String URL; - public String description; - public Map variables; + public String URL; + public String description; + public Map variables; - /** - * @param URL A URL to the target host. - * @param description A description of the host designated by the URL. - * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. - */ - public ServerConfiguration(String URL, String description, Map variables) { - this.URL = URL; - this.description = description; - this.variables = variables; - } + /** + * @param URL A URL to the target host. + * @param description A description of the host designated by the URL. + * @param variables A map between a variable name and its value. The value is used for + * substitution in the server's URL template. + */ + public ServerConfiguration(String URL, String description, + Map variables) { + this.URL = URL; + this.description = description; + this.variables = variables; + } - /** - * Format URL template using given variables. - * - * @param variables A map between a variable name and its value. - * @return Formatted URL. - */ - public String URL(Map variables) { - String url = this.URL; + /** + * Format URL template using given variables. + * + * @param variables A map between a variable name and its value. + * @return Formatted URL. + */ + public String URL(Map variables) { + String url = this.URL; - // go through variables and replace placeholders - for (Map.Entry variable: this.variables.entrySet()) { - String name = variable.getKey(); - ServerVariable serverVariable = variable.getValue(); - String value = serverVariable.defaultValue; + // go through variables and replace placeholders + for (Map.Entry variable : this.variables.entrySet()) { + String name = variable.getKey(); + ServerVariable serverVariable = variable.getValue(); + String value = serverVariable.defaultValue; - if (variables != null && variables.containsKey(name)) { - value = variables.get(name); - if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { - throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); - } - } - url = url.replace("{" + name + "}", value); + if (variables != null && variables.containsKey(name)) { + value = variables.get(name); + if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { + throw new IllegalArgumentException( + "The variable " + name + " in the server URL has invalid value " + value + "."); } - return url; + } + url = url.replace("{" + name + "}", value); } + return url; + } - /** - * Format URL template using default server variables. - * - * @return Formatted URL. - */ - public String URL() { - return URL(null); - } + /** + * Format URL template using default server variables. + * + * @return Formatted URL. + */ + public String URL() { + return URL(null); + } } diff --git a/src/main/java/com/formkiq/client/invoker/ServerVariable.java b/src/main/java/com/formkiq/client/invoker/ServerVariable.java index 1a24cb32d..e1797c55a 100644 --- a/src/main/java/com/formkiq/client/invoker/ServerVariable.java +++ b/src/main/java/com/formkiq/client/invoker/ServerVariable.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -18,20 +25,23 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ServerVariable { - public String description; - public String defaultValue; - public HashSet enumValues = null; + public String description; + public String defaultValue; + public HashSet enumValues = null; - /** - * @param description A description for the server variable. - * @param defaultValue The default value to use for substitution. - * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. - */ - public ServerVariable(String description, String defaultValue, HashSet enumValues) { - this.description = description; - this.defaultValue = defaultValue; - this.enumValues = enumValues; - } + /** + * @param description A description for the server variable. + * @param defaultValue The default value to use for substitution. + * @param enumValues An enumeration of string values to be used if the substitution options are + * from a limited set. + */ + public ServerVariable(String description, String defaultValue, HashSet enumValues) { + this.description = description; + this.defaultValue = defaultValue; + this.enumValues = enumValues; + } } diff --git a/src/main/java/com/formkiq/client/invoker/StringUtil.java b/src/main/java/com/formkiq/client/invoker/StringUtil.java index 903854cd8..08c315ad6 100644 --- a/src/main/java/com/formkiq/client/invoker/StringUtil.java +++ b/src/main/java/com/formkiq/client/invoker/StringUtil.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -16,7 +23,9 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). @@ -40,11 +49,11 @@ public static boolean containsIgnoreCase(String[] array, String value) { /** * 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. + * 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 array The array of strings * @param separator The separator * @return the resulting string */ @@ -65,7 +74,7 @@ public static String join(String[] array, String separator) { /** * Join a list of strings with the given separator. * - * @param list The list of strings + * @param list The list of strings * @param separator The separator * @return the resulting string */ diff --git a/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java b/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java index d0a5895c2..64e5c6a70 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -38,7 +45,9 @@ import okio.Buffer; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AWS4Auth implements Authentication { private AwsCredentials credentials; diff --git a/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java b/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java index faba9e07a..cb0d4b184 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -20,7 +27,9 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; @@ -58,8 +67,9 @@ public void setApiKeyPrefix(String apiKeyPrefix) { } @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { + public void applyToParams(List queryParams, Map headerParams, + Map cookieParams, String payload, String method, URI uri) + throws ApiException { if (apiKey == null) { return; } diff --git a/src/main/java/com/formkiq/client/invoker/auth/Authentication.java b/src/main/java/com/formkiq/client/invoker/auth/Authentication.java index bfb25b2ec..e609f45f4 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/Authentication.java +++ b/src/main/java/com/formkiq/client/invoker/auth/Authentication.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -20,18 +27,21 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public interface Authentication { - /** - * Apply authentication settings to header and query params. - * - * @param queryParams List of query parameters - * @param headerParams Map of header parameters - * @param cookieParams Map of cookie parameters - * @param payload HTTP request body - * @param method HTTP method - * @param uri URI - * @throws ApiException if failed to update the parameters - */ - void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException; + /** + * Apply authentication settings to header and query params. + * + * @param queryParams List of query parameters + * @param headerParams Map of header parameters + * @param cookieParams Map of cookie parameters + * @param payload HTTP request body + * @param method HTTP method + * @param uri URI + * @throws ApiException if failed to update the parameters + */ + void applyToParams(List queryParams, Map headerParams, + Map cookieParams, String payload, String method, URI uri) throws ApiException; } diff --git a/src/main/java/com/formkiq/client/invoker/auth/HttpBasicAuth.java b/src/main/java/com/formkiq/client/invoker/auth/HttpBasicAuth.java index 0196898ce..656befa91 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/HttpBasicAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/HttpBasicAuth.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -23,33 +30,33 @@ import java.util.List; 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, Map cookieParams, - String payload, String method, URI uri) throws ApiException { - if (username == null && password == null) { - return; - } - headerParams.put("Authorization", Credentials.basic( - username == null ? "" : username, - password == null ? "" : password)); + 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, + Map cookieParams, String payload, String method, URI uri) + throws ApiException { + if (username == null && password == null) { + return; } + headerParams.put("Authorization", + Credentials.basic(username == null ? "" : username, password == null ? "" : password)); + } } diff --git a/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java b/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java index cdb31b2f5..c1996e3ac 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -22,7 +29,9 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; @@ -32,7 +41,8 @@ public HttpBearerAuth(String scheme) { } /** - * Gets the token, which together with the scheme, will be sent as the value of the Authorization header. + * Gets the token, which together with the scheme, will be sent as the value of the Authorization + * header. * * @return The bearer token */ @@ -41,7 +51,8 @@ public String getBearerToken() { } /** - * Sets the token, which together with the scheme, will be sent as the value of the Authorization header. + * Sets the token, which together with the scheme, will be sent as the value of the Authorization + * header. * * @param bearerToken The bearer token to send in the Authorization header */ @@ -50,7 +61,8 @@ public void setBearerToken(String bearerToken) { } /** - * Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header. + * Sets the supplier of tokens, which together with the scheme, will be sent as the value of the + * Authorization header. * * @param tokenSupplier The supplier of bearer tokens to send in the Authorization header */ @@ -59,14 +71,16 @@ public void setBearerToken(Supplier tokenSupplier) { } @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { + public void applyToParams(List queryParams, Map headerParams, + Map cookieParams, String payload, String method, URI uri) + throws ApiException { String bearerToken = Optional.ofNullable(tokenSupplier).map(Supplier::get).orElse(null); if (bearerToken == null) { return; } - headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); + headerParams.put("Authorization", + (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); } private static String upperCaseBearer(String scheme) { diff --git a/src/main/java/com/formkiq/client/invoker/auth/OAuth.java b/src/main/java/com/formkiq/client/invoker/auth/OAuth.java index e212adfa1..d44504764 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/OAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/OAuth.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -20,7 +27,9 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OAuth implements Authentication { private String accessToken; @@ -33,8 +42,9 @@ public void setAccessToken(String accessToken) { } @Override - public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { + public void applyToParams(List queryParams, Map headerParams, + Map cookieParams, String payload, String method, URI uri) + throws ApiException { if (accessToken != null) { headerParams.put("Authorization", "Bearer " + accessToken); } diff --git a/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java b/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java index bb2527f55..099a46c66 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java +++ b/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -16,10 +23,10 @@ /** * OAuth flows that are supported by this client */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public enum OAuthFlow { - ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 - IMPLICIT, - PASSWORD, - APPLICATION //called clientCredentials in OpenAPI 3.0 + ACCESS_CODE, // called authorizationCode in OpenAPI 3.0 + IMPLICIT, PASSWORD, APPLICATION // called clientCredentials in OpenAPI 3.0 } diff --git a/src/main/java/com/formkiq/client/invoker/auth/OAuthOkHttpClient.java b/src/main/java/com/formkiq/client/invoker/auth/OAuthOkHttpClient.java index 6718d7bd3..7fe34fc26 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/OAuthOkHttpClient.java +++ b/src/main/java/com/formkiq/client/invoker/auth/OAuthOkHttpClient.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ diff --git a/src/main/java/com/formkiq/client/invoker/auth/RetryingOAuth.java b/src/main/java/com/formkiq/client/invoker/auth/RetryingOAuth.java index 6718d7bd3..7fe34fc26 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/RetryingOAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/RetryingOAuth.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ diff --git a/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java b/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java index e77385286..a08b3128f 100644 --- a/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,125 +28,131 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public abstract class AbstractOpenApiSchema { - // store the actual instance of the schema/object - private Object instance; - - // is nullable - private Boolean isNullable; - - // schema type (e.g. oneOf, anyOf) - private final String schemaType; - - public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { - this.schemaType = schemaType; - this.isNullable = isNullable; - } - - /** - * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object - * - * @return an instance of the actual schema/object - */ - public abstract Map> getSchemas(); - - /** - * Get the actual instance - * - * @return an instance of the actual schema/object - */ - //@JsonValue - public Object getActualInstance() {return instance;} - - /** - * Set the actual instance - * - * @param instance the actual instance of the schema/object - */ - public void setActualInstance(Object instance) {this.instance = instance;} - - /** - * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well - * - * @return an instance of the actual schema/object - */ - public Object getActualInstanceRecursively() { - return getActualInstanceRecursively(this); - } - - private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { - if (object.getActualInstance() == null) { - return null; - } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { - return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); - } else { - return object.getActualInstance(); - } + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map> getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + // @JsonValue + public Object getActualInstance() { + return instance; + } + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) { + this.instance = instance; + } + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf + * schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema) object.getActualInstance()); + } else { + return object.getActualInstance(); } - - /** - * Get the schema type (e.g. anyOf, oneOf) - * - * @return the schema type - */ - public String getSchemaType() { - return schemaType; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ").append(getClass()).append(" {\n"); - sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); - sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); - sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); - sb.append("}"); - return sb.toString(); + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; } + return o.toString().replace("\n", "\n "); + } - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + public boolean equals(Object o) { + if (this == o) { + return true; } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; - return Objects.equals(this.instance, a.instance) && - Objects.equals(this.isNullable, a.isNullable) && - Objects.equals(this.schemaType, a.schemaType); + if (o == null || getClass() != o.getClass()) { + return false; } - - @Override - public int hashCode() { - return Objects.hash(instance, isNullable, schemaType); - } - - /** - * Is nullable - * - * @return true if it's nullable - */ - public Boolean isNullable() { - if (Boolean.TRUE.equals(isNullable)) { - return Boolean.TRUE; - } else { - return Boolean.FALSE; - } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) + && Objects.equals(this.isNullable, a.isNullable) + && Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + if (Boolean.TRUE.equals(isNullable)) { + return Boolean.TRUE; + } else { + return Boolean.FALSE; } + } diff --git a/src/main/java/com/formkiq/client/model/Activity.java b/src/main/java/com/formkiq/client/model/Activity.java index 04b54425c..4d3f3e432 100644 --- a/src/main/java/com/formkiq/client/model/Activity.java +++ b/src/main/java/com/formkiq/client/model/Activity.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * Activity */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Activity { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) @@ -122,8 +131,7 @@ public class Activity { @javax.annotation.Nullable private Map changes = new HashMap<>(); - public Activity() { - } + public Activity() {} public Activity resource(@javax.annotation.Nullable String resource) { this.resource = resource; @@ -132,6 +140,7 @@ public Activity resource(@javax.annotation.Nullable String resource) { /** * Resource of Activity + * * @return resource */ @javax.annotation.Nullable @@ -151,6 +160,7 @@ public Activity type(@javax.annotation.Nullable String type) { /** * Type of Activity + * * @return type */ @javax.annotation.Nullable @@ -170,6 +180,7 @@ public Activity source(@javax.annotation.Nullable String source) { /** * The Source of the activity + * * @return source */ @javax.annotation.Nullable @@ -189,6 +200,7 @@ public Activity sourceIpAddress(@javax.annotation.Nullable String sourceIpAddres /** * The Source IP address of the user + * * @return sourceIpAddress */ @javax.annotation.Nullable @@ -208,6 +220,7 @@ public Activity message(@javax.annotation.Nullable String message) { /** * The activity message + * * @return message */ @javax.annotation.Nullable @@ -227,6 +240,7 @@ public Activity status(@javax.annotation.Nullable ActivityStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -246,6 +260,7 @@ public Activity insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -265,6 +280,7 @@ public Activity userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -284,6 +300,7 @@ public Activity documentId(@javax.annotation.Nullable Object documentId) { /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -303,6 +320,7 @@ public Activity attributeKey(@javax.annotation.Nullable Object attributeKey) { /** * Document Attribute Key + * * @return attributeKey */ @javax.annotation.Nullable @@ -322,6 +340,7 @@ public Activity entityTypeId(@javax.annotation.Nullable String entityTypeId) { /** * Entity Type Identifier + * * @return entityTypeId */ @javax.annotation.Nullable @@ -341,6 +360,7 @@ public Activity entityId(@javax.annotation.Nullable String entityId) { /** * Entity Identifier + * * @return entityId */ @javax.annotation.Nullable @@ -368,6 +388,7 @@ public Activity putChangesItem(String key, UserActivityChanges changesItem) { /** * Get changes + * * @return changes */ @javax.annotation.Nullable @@ -390,35 +411,36 @@ public boolean equals(Object o) { return false; } Activity activity = (Activity) o; - return Objects.equals(this.resource, activity.resource) && - Objects.equals(this.type, activity.type) && - Objects.equals(this.source, activity.source) && - Objects.equals(this.sourceIpAddress, activity.sourceIpAddress) && - Objects.equals(this.message, activity.message) && - Objects.equals(this.status, activity.status) && - Objects.equals(this.insertedDate, activity.insertedDate) && - Objects.equals(this.userId, activity.userId) && - Objects.equals(this.documentId, activity.documentId) && - Objects.equals(this.attributeKey, activity.attributeKey) && - Objects.equals(this.entityTypeId, activity.entityTypeId) && - Objects.equals(this.entityId, activity.entityId) && - Objects.equals(this.changes, activity.changes); + return Objects.equals(this.resource, activity.resource) + && Objects.equals(this.type, activity.type) && Objects.equals(this.source, activity.source) + && Objects.equals(this.sourceIpAddress, activity.sourceIpAddress) + && Objects.equals(this.message, activity.message) + && Objects.equals(this.status, activity.status) + && Objects.equals(this.insertedDate, activity.insertedDate) + && Objects.equals(this.userId, activity.userId) + && Objects.equals(this.documentId, activity.documentId) + && Objects.equals(this.attributeKey, activity.attributeKey) + && Objects.equals(this.entityTypeId, activity.entityTypeId) + && Objects.equals(this.entityId, activity.entityId) + && Objects.equals(this.changes, activity.changes); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { - return Objects.hash(resource, type, source, sourceIpAddress, message, status, insertedDate, userId, documentId, attributeKey, entityTypeId, entityId, changes); + return Objects.hash(resource, type, source, sourceIpAddress, message, status, insertedDate, + userId, documentId, attributeKey, entityTypeId, entityId, changes); } private static int hashCodeNullable(JsonNullable a) { if (a == null) { return 1; } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; } @Override @@ -443,8 +465,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -459,7 +480,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("resource", "type", "source", "sourceIpAddress", "message", "status", "insertedDate", "userId", "documentId", "attributeKey", "entityTypeId", "entityId", "changes")); + openapiFields = new HashSet(Arrays.asList("resource", "type", "source", + "sourceIpAddress", "message", "status", "insertedDate", "userId", "documentId", + "attributeKey", "entityTypeId", "entityId", "changes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -472,79 +495,111 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Activity */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Activity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Activity is not found in the empty JSON string", Activity.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Activity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Activity is not found in the empty JSON string", + Activity.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Activity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Activity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) && !jsonObj.get("resource").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) && !jsonObj.get("source").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); - } - if ((jsonObj.get("sourceIpAddress") != null && !jsonObj.get("sourceIpAddress").isJsonNull()) && !jsonObj.get("sourceIpAddress").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sourceIpAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sourceIpAddress").toString())); - } - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - ActivityStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) && !jsonObj.get("entityTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityTypeId").toString())); - } - if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) && !jsonObj.get("entityId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Activity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Activity` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) + && !jsonObj.get("resource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `resource` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("resource").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) + && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `type` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("type").toString())); + } + if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) + && !jsonObj.get("source").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `source` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("source").toString())); + } + if ((jsonObj.get("sourceIpAddress") != null && !jsonObj.get("sourceIpAddress").isJsonNull()) + && !jsonObj.get("sourceIpAddress").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `sourceIpAddress` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("sourceIpAddress").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + ActivityStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) + && !jsonObj.get("entityTypeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("entityTypeId").toString())); + } + if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) + && !jsonObj.get("entityId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("entityId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Activity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Activity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Activity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Activity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Activity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Activity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Activity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Activity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Activity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Activity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ActivityStatus.java b/src/main/java/com/formkiq/client/model/ActivityStatus.java index 995524872..0d0da8e71 100644 --- a/src/main/java/com/formkiq/client/model/ActivityStatus.java +++ b/src/main/java/com/formkiq/client/model/ActivityStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(ActivityStatus.Adapter.class) public enum ActivityStatus { - + COMPLETE("COMPLETE"), - + FAILED("FAILED"), - + UNAUTHORIZED("UNAUTHORIZED"); private String value; @@ -63,7 +70,8 @@ public static ActivityStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final ActivityStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final ActivityStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/AddAction.java b/src/main/java/com/formkiq/client/model/AddAction.java index 0f69c8fd5..7a517d4ad 100644 --- a/src/main/java/com/formkiq/client/model/AddAction.java +++ b/src/main/java/com/formkiq/client/model/AddAction.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * AddAction */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddAction { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -69,8 +78,7 @@ public class AddAction { @javax.annotation.Nullable private String queueId; - public AddAction() { - } + public AddAction() {} public AddAction type(@javax.annotation.Nonnull DocumentActionType type) { this.type = type; @@ -79,6 +87,7 @@ public AddAction type(@javax.annotation.Nonnull DocumentActionType type) { /** * Get type + * * @return type */ @javax.annotation.Nonnull @@ -98,6 +107,7 @@ public AddAction parameters(@javax.annotation.Nullable AddActionParameters param /** * Get parameters + * * @return parameters */ @javax.annotation.Nullable @@ -117,6 +127,7 @@ public AddAction queueId(@javax.annotation.Nullable String queueId) { /** * Id of Queue + * * @return queueId */ @javax.annotation.Nullable @@ -139,9 +150,9 @@ public boolean equals(Object o) { return false; } AddAction addAction = (AddAction) o; - return Objects.equals(this.type, addAction.type) && - Objects.equals(this.parameters, addAction.parameters) && - Objects.equals(this.queueId, addAction.queueId); + return Objects.equals(this.type, addAction.type) + && Objects.equals(this.parameters, addAction.parameters) + && Objects.equals(this.queueId, addAction.queueId); } @Override @@ -161,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -190,64 +200,74 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddAction */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddAction is not found in the empty JSON string", AddAction.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddAction is not found in the empty JSON string", + AddAction.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddAction.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddAction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddAction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddAction` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddAction.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `type` - DocumentActionType.validateJsonElement(jsonObj.get("type")); - // validate the optional field `parameters` - if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull()) { - AddActionParameters.validateJsonElement(jsonObj.get("parameters")); - } - if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) && !jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddAction.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `type` + DocumentActionType.validateJsonElement(jsonObj.get("type")); + // validate the optional field `parameters` + if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull()) { + AddActionParameters.validateJsonElement(jsonObj.get("parameters")); + } + if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) + && !jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("queueId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddAction.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddAction' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddAction.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddAction value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddAction read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddAction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddAction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddAction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddAction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddAction read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddActionParameters.java b/src/main/java/com/formkiq/client/model/AddActionParameters.java index f6b5d0593..2e087680a 100644 --- a/src/main/java/com/formkiq/client/model/AddActionParameters.java +++ b/src/main/java/com/formkiq/client/model/AddActionParameters.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * AddActionParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddActionParameters { public static final String SERIALIZED_NAME_OCR_TEXTRACT_QUERIES = "ocrTextractQueries"; @SerializedName(SERIALIZED_NAME_OCR_TEXTRACT_QUERIES) @@ -82,7 +91,8 @@ public class AddActionParameters { @javax.annotation.Nullable private String ocrNumberOfPages; - public static final String SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT = "addPdfDetectedCharactersAsText"; + public static final String SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT = + "addPdfDetectedCharactersAsText"; @SerializedName(SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT) @javax.annotation.Nullable private String addPdfDetectedCharactersAsText; @@ -135,13 +145,14 @@ public static EngineEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final EngineEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final EngineEnum enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public EngineEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return EngineEnum.fromValue(value); } } @@ -190,13 +201,14 @@ public static NotificationTypeEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final NotificationTypeEnum enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public NotificationTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return NotificationTypeEnum.fromValue(value); } } @@ -272,10 +284,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private String outputType; - public AddActionParameters() { - } + public AddActionParameters() {} - public AddActionParameters ocrTextractQueries(@javax.annotation.Nullable List ocrTextractQueries) { + public AddActionParameters ocrTextractQueries( + @javax.annotation.Nullable List ocrTextractQueries) { this.ocrTextractQueries = ocrTextractQueries; return this; } @@ -290,6 +302,7 @@ public AddActionParameters addOcrTextractQueriesItem(TextractQuery ocrTextractQu /** * Get ocrTextractQueries + * * @return ocrTextractQueries */ @javax.annotation.Nullable @@ -297,7 +310,8 @@ public List getOcrTextractQueries() { return ocrTextractQueries; } - public void setOcrTextractQueries(@javax.annotation.Nullable List ocrTextractQueries) { + public void setOcrTextractQueries( + @javax.annotation.Nullable List ocrTextractQueries) { this.ocrTextractQueries = ocrTextractQueries; } @@ -309,6 +323,7 @@ public AddActionParameters ocrParseTypes(@javax.annotation.Nullable String ocrPa /** * OCR: Parse types - TEXT, FORMS, TABLES, QUERIES (must include ocrTextractQueries) + * * @return ocrParseTypes */ @javax.annotation.Nullable @@ -328,6 +343,7 @@ public AddActionParameters ocrEngine(@javax.annotation.Nullable OcrEngine ocrEng /** * Get ocrEngine + * * @return ocrEngine */ @javax.annotation.Nullable @@ -347,6 +363,7 @@ public AddActionParameters ocrOutputType(@javax.annotation.Nullable OcrOutputTyp /** * Get ocrOutputType + * * @return ocrOutputType */ @javax.annotation.Nullable @@ -366,6 +383,7 @@ public AddActionParameters ocrNumberOfPages(@javax.annotation.Nullable String oc /** * Number of pages to OCR (from start) (-1 all) + * * @return ocrNumberOfPages */ @javax.annotation.Nullable @@ -378,13 +396,15 @@ public void setOcrNumberOfPages(@javax.annotation.Nullable String ocrNumberOfPag } - public AddActionParameters addPdfDetectedCharactersAsText(@javax.annotation.Nullable String addPdfDetectedCharactersAsText) { + public AddActionParameters addPdfDetectedCharactersAsText( + @javax.annotation.Nullable String addPdfDetectedCharactersAsText) { this.addPdfDetectedCharactersAsText = addPdfDetectedCharactersAsText; return this; } /** * OCR: For the rewriting of the PDF document, converting any image text to searchable text + * * @return addPdfDetectedCharactersAsText */ @javax.annotation.Nullable @@ -392,18 +412,21 @@ public String getAddPdfDetectedCharactersAsText() { return addPdfDetectedCharactersAsText; } - public void setAddPdfDetectedCharactersAsText(@javax.annotation.Nullable String addPdfDetectedCharactersAsText) { + public void setAddPdfDetectedCharactersAsText( + @javax.annotation.Nullable String addPdfDetectedCharactersAsText) { this.addPdfDetectedCharactersAsText = addPdfDetectedCharactersAsText; } - public AddActionParameters llmPromptEntityName(@javax.annotation.Nullable String llmPromptEntityName) { + public AddActionParameters llmPromptEntityName( + @javax.annotation.Nullable String llmPromptEntityName) { this.llmPromptEntityName = llmPromptEntityName; return this; } /** * DATA_CLASSIFICATION: Set the LLM Prompt Entity Name + * * @return llmPromptEntityName */ @javax.annotation.Nullable @@ -423,6 +446,7 @@ public AddActionParameters url(@javax.annotation.Nullable String url) { /** * Webhook: Callback URL + * * @return url */ @javax.annotation.Nullable @@ -442,6 +466,7 @@ public AddActionParameters characterMax(@javax.annotation.Nullable String charac /** * Fulltext: Maximum number of characters (-1 unlimited, Typesense defaults to 2048 characters) + * * @return characterMax */ @javax.annotation.Nullable @@ -461,6 +486,7 @@ public AddActionParameters engine(@javax.annotation.Nullable EngineEnum engine) /** * DocumentTagging: Engine to use for document tagging generation + * * @return engine */ @javax.annotation.Nullable @@ -473,13 +499,15 @@ public void setEngine(@javax.annotation.Nullable EngineEnum engine) { } - public AddActionParameters notificationType(@javax.annotation.Nullable NotificationTypeEnum notificationType) { + public AddActionParameters notificationType( + @javax.annotation.Nullable NotificationTypeEnum notificationType) { this.notificationType = notificationType; return this; } /** * Notification Type + * * @return notificationType */ @javax.annotation.Nullable @@ -487,7 +515,8 @@ public NotificationTypeEnum getNotificationType() { return notificationType; } - public void setNotificationType(@javax.annotation.Nullable NotificationTypeEnum notificationType) { + public void setNotificationType( + @javax.annotation.Nullable NotificationTypeEnum notificationType) { this.notificationType = notificationType; } @@ -499,6 +528,7 @@ public AddActionParameters notificationToCc(@javax.annotation.Nullable String no /** * Who to carbon copy on the notification to (comma-delimited list) + * * @return notificationToCc */ @javax.annotation.Nullable @@ -511,13 +541,15 @@ public void setNotificationToCc(@javax.annotation.Nullable String notificationTo } - public AddActionParameters notificationToBcc(@javax.annotation.Nullable String notificationToBcc) { + public AddActionParameters notificationToBcc( + @javax.annotation.Nullable String notificationToBcc) { this.notificationToBcc = notificationToBcc; return this; } /** * Who to blind carbon copy on the notification to (comma-delimited list) + * * @return notificationToBcc */ @javax.annotation.Nullable @@ -530,13 +562,15 @@ public void setNotificationToBcc(@javax.annotation.Nullable String notificationT } - public AddActionParameters notificationSubject(@javax.annotation.Nullable String notificationSubject) { + public AddActionParameters notificationSubject( + @javax.annotation.Nullable String notificationSubject) { this.notificationSubject = notificationSubject; return this; } /** * Subject of the notification + * * @return notificationSubject */ @javax.annotation.Nullable @@ -556,6 +590,7 @@ public AddActionParameters notificationText(@javax.annotation.Nullable String no /** * Text of the notification + * * @return notificationText */ @javax.annotation.Nullable @@ -575,6 +610,7 @@ public AddActionParameters notificationHtml(@javax.annotation.Nullable String no /** * Html of the notification + * * @return notificationHtml */ @javax.annotation.Nullable @@ -594,6 +630,7 @@ public AddActionParameters tags(@javax.annotation.Nullable String tags) { /** * DocumentTagging: Comma-deliminted list of keywords to generate tags for + * * @return tags */ @javax.annotation.Nullable @@ -613,6 +650,7 @@ public AddActionParameters mappingId(@javax.annotation.Nullable String mappingId /** * Id of Mapping + * * @return mappingId */ @javax.annotation.Nullable @@ -632,6 +670,7 @@ public AddActionParameters eventBusName(@javax.annotation.Nullable String eventB /** * The name or ARN of the event bus to receive the event + * * @return eventBusName */ @javax.annotation.Nullable @@ -651,6 +690,7 @@ public AddActionParameters width(@javax.annotation.Nullable String width) { /** * The width of the image to resize (or 'auto') + * * @return width */ @javax.annotation.Nullable @@ -670,6 +710,7 @@ public AddActionParameters height(@javax.annotation.Nullable String height) { /** * The height of the image to resize (or 'auto') + * * @return height */ @javax.annotation.Nullable @@ -689,6 +730,7 @@ public AddActionParameters path(@javax.annotation.Nullable String path) { /** * The path to use when creating resized document (optional) + * * @return path */ @javax.annotation.Nullable @@ -708,6 +750,7 @@ public AddActionParameters outputType(@javax.annotation.Nullable String outputTy /** * The output type of the image + * * @return outputType */ @javax.annotation.Nullable @@ -730,34 +773,39 @@ public boolean equals(Object o) { return false; } AddActionParameters addActionParameters = (AddActionParameters) o; - return Objects.equals(this.ocrTextractQueries, addActionParameters.ocrTextractQueries) && - Objects.equals(this.ocrParseTypes, addActionParameters.ocrParseTypes) && - Objects.equals(this.ocrEngine, addActionParameters.ocrEngine) && - Objects.equals(this.ocrOutputType, addActionParameters.ocrOutputType) && - Objects.equals(this.ocrNumberOfPages, addActionParameters.ocrNumberOfPages) && - Objects.equals(this.addPdfDetectedCharactersAsText, addActionParameters.addPdfDetectedCharactersAsText) && - Objects.equals(this.llmPromptEntityName, addActionParameters.llmPromptEntityName) && - Objects.equals(this.url, addActionParameters.url) && - Objects.equals(this.characterMax, addActionParameters.characterMax) && - Objects.equals(this.engine, addActionParameters.engine) && - Objects.equals(this.notificationType, addActionParameters.notificationType) && - Objects.equals(this.notificationToCc, addActionParameters.notificationToCc) && - Objects.equals(this.notificationToBcc, addActionParameters.notificationToBcc) && - Objects.equals(this.notificationSubject, addActionParameters.notificationSubject) && - Objects.equals(this.notificationText, addActionParameters.notificationText) && - Objects.equals(this.notificationHtml, addActionParameters.notificationHtml) && - Objects.equals(this.tags, addActionParameters.tags) && - Objects.equals(this.mappingId, addActionParameters.mappingId) && - Objects.equals(this.eventBusName, addActionParameters.eventBusName) && - Objects.equals(this.width, addActionParameters.width) && - Objects.equals(this.height, addActionParameters.height) && - Objects.equals(this.path, addActionParameters.path) && - Objects.equals(this.outputType, addActionParameters.outputType); + return Objects.equals(this.ocrTextractQueries, addActionParameters.ocrTextractQueries) + && Objects.equals(this.ocrParseTypes, addActionParameters.ocrParseTypes) + && Objects.equals(this.ocrEngine, addActionParameters.ocrEngine) + && Objects.equals(this.ocrOutputType, addActionParameters.ocrOutputType) + && Objects.equals(this.ocrNumberOfPages, addActionParameters.ocrNumberOfPages) + && Objects.equals(this.addPdfDetectedCharactersAsText, + addActionParameters.addPdfDetectedCharactersAsText) + && Objects.equals(this.llmPromptEntityName, addActionParameters.llmPromptEntityName) + && Objects.equals(this.url, addActionParameters.url) + && Objects.equals(this.characterMax, addActionParameters.characterMax) + && Objects.equals(this.engine, addActionParameters.engine) + && Objects.equals(this.notificationType, addActionParameters.notificationType) + && Objects.equals(this.notificationToCc, addActionParameters.notificationToCc) + && Objects.equals(this.notificationToBcc, addActionParameters.notificationToBcc) + && Objects.equals(this.notificationSubject, addActionParameters.notificationSubject) + && Objects.equals(this.notificationText, addActionParameters.notificationText) + && Objects.equals(this.notificationHtml, addActionParameters.notificationHtml) + && Objects.equals(this.tags, addActionParameters.tags) + && Objects.equals(this.mappingId, addActionParameters.mappingId) + && Objects.equals(this.eventBusName, addActionParameters.eventBusName) + && Objects.equals(this.width, addActionParameters.width) + && Objects.equals(this.height, addActionParameters.height) + && Objects.equals(this.path, addActionParameters.path) + && Objects.equals(this.outputType, addActionParameters.outputType); } @Override public int hashCode() { - return Objects.hash(ocrTextractQueries, ocrParseTypes, ocrEngine, ocrOutputType, ocrNumberOfPages, addPdfDetectedCharactersAsText, llmPromptEntityName, url, characterMax, engine, notificationType, notificationToCc, notificationToBcc, notificationSubject, notificationText, notificationHtml, tags, mappingId, eventBusName, width, height, path, outputType); + return Objects.hash(ocrTextractQueries, ocrParseTypes, ocrEngine, ocrOutputType, + ocrNumberOfPages, addPdfDetectedCharactersAsText, llmPromptEntityName, url, characterMax, + engine, notificationType, notificationToCc, notificationToBcc, notificationSubject, + notificationText, notificationHtml, tags, mappingId, eventBusName, width, height, path, + outputType); } @Override @@ -769,15 +817,18 @@ public String toString() { sb.append(" ocrEngine: ").append(toIndentedString(ocrEngine)).append("\n"); sb.append(" ocrOutputType: ").append(toIndentedString(ocrOutputType)).append("\n"); sb.append(" ocrNumberOfPages: ").append(toIndentedString(ocrNumberOfPages)).append("\n"); - sb.append(" addPdfDetectedCharactersAsText: ").append(toIndentedString(addPdfDetectedCharactersAsText)).append("\n"); - sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)).append("\n"); + sb.append(" addPdfDetectedCharactersAsText: ") + .append(toIndentedString(addPdfDetectedCharactersAsText)).append("\n"); + sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)) + .append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" characterMax: ").append(toIndentedString(characterMax)).append("\n"); sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); sb.append(" notificationType: ").append(toIndentedString(notificationType)).append("\n"); sb.append(" notificationToCc: ").append(toIndentedString(notificationToCc)).append("\n"); sb.append(" notificationToBcc: ").append(toIndentedString(notificationToBcc)).append("\n"); - sb.append(" notificationSubject: ").append(toIndentedString(notificationSubject)).append("\n"); + sb.append(" notificationSubject: ").append(toIndentedString(notificationSubject)) + .append("\n"); sb.append(" notificationText: ").append(toIndentedString(notificationText)).append("\n"); sb.append(" notificationHtml: ").append(toIndentedString(notificationHtml)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); @@ -792,8 +843,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -808,7 +858,12 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("ocrTextractQueries", "ocrParseTypes", "ocrEngine", "ocrOutputType", "ocrNumberOfPages", "addPdfDetectedCharactersAsText", "llmPromptEntityName", "url", "characterMax", "engine", "notificationType", "notificationToCc", "notificationToBcc", "notificationSubject", "notificationText", "notificationHtml", "tags", "mappingId", "eventBusName", "width", "height", "path", "outputType")); + openapiFields = new HashSet( + Arrays.asList("ocrTextractQueries", "ocrParseTypes", "ocrEngine", "ocrOutputType", + "ocrNumberOfPages", "addPdfDetectedCharactersAsText", "llmPromptEntityName", "url", + "characterMax", "engine", "notificationType", "notificationToCc", "notificationToBcc", + "notificationSubject", "notificationText", "notificationHtml", "tags", "mappingId", + "eventBusName", "width", "height", "path", "outputType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -821,138 +876,209 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddActionParameters */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddActionParameters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddActionParameters is not found in the empty JSON string", AddActionParameters.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddActionParameters.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddActionParameters is not found in the empty JSON string", + AddActionParameters.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddActionParameters.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddActionParameters` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddActionParameters.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddActionParameters` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("ocrTextractQueries") != null && !jsonObj.get("ocrTextractQueries").isJsonNull()) { - JsonArray jsonArrayocrTextractQueries = jsonObj.getAsJsonArray("ocrTextractQueries"); - if (jsonArrayocrTextractQueries != null) { - // ensure the json data is an array - if (!jsonObj.get("ocrTextractQueries").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrTextractQueries` to be an array in the JSON string but got `%s`", jsonObj.get("ocrTextractQueries").toString())); - } - - // validate the optional field `ocrTextractQueries` (array) - for (int i = 0; i < jsonArrayocrTextractQueries.size(); i++) { - TextractQuery.validateJsonElement(jsonArrayocrTextractQueries.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("ocrTextractQueries") != null + && !jsonObj.get("ocrTextractQueries").isJsonNull()) { + JsonArray jsonArrayocrTextractQueries = jsonObj.getAsJsonArray("ocrTextractQueries"); + if (jsonArrayocrTextractQueries != null) { + // ensure the json data is an array + if (!jsonObj.get("ocrTextractQueries").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `ocrTextractQueries` to be an array in the JSON string but got `%s`", + jsonObj.get("ocrTextractQueries").toString())); } + + // validate the optional field `ocrTextractQueries` (array) + for (int i = 0; i < jsonArrayocrTextractQueries.size(); i++) { + TextractQuery.validateJsonElement(jsonArrayocrTextractQueries.get(i)); + } ; } - if ((jsonObj.get("ocrParseTypes") != null && !jsonObj.get("ocrParseTypes").isJsonNull()) && !jsonObj.get("ocrParseTypes").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrParseTypes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ocrParseTypes").toString())); - } - // validate the optional field `ocrEngine` - if (jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) { - OcrEngine.validateJsonElement(jsonObj.get("ocrEngine")); - } - // validate the optional field `ocrOutputType` - if (jsonObj.get("ocrOutputType") != null && !jsonObj.get("ocrOutputType").isJsonNull()) { - OcrOutputType.validateJsonElement(jsonObj.get("ocrOutputType")); - } - if ((jsonObj.get("ocrNumberOfPages") != null && !jsonObj.get("ocrNumberOfPages").isJsonNull()) && !jsonObj.get("ocrNumberOfPages").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrNumberOfPages` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ocrNumberOfPages").toString())); - } - if ((jsonObj.get("addPdfDetectedCharactersAsText") != null && !jsonObj.get("addPdfDetectedCharactersAsText").isJsonNull()) && !jsonObj.get("addPdfDetectedCharactersAsText").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `addPdfDetectedCharactersAsText` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addPdfDetectedCharactersAsText").toString())); - } - if ((jsonObj.get("llmPromptEntityName") != null && !jsonObj.get("llmPromptEntityName").isJsonNull()) && !jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("llmPromptEntityName").toString())); - } - if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); - } - if ((jsonObj.get("characterMax") != null && !jsonObj.get("characterMax").isJsonNull()) && !jsonObj.get("characterMax").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `characterMax` to be a primitive type in the JSON string but got `%s`", jsonObj.get("characterMax").toString())); - } - if ((jsonObj.get("engine") != null && !jsonObj.get("engine").isJsonNull()) && !jsonObj.get("engine").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `engine` to be a primitive type in the JSON string but got `%s`", jsonObj.get("engine").toString())); - } - // validate the optional field `engine` - if (jsonObj.get("engine") != null && !jsonObj.get("engine").isJsonNull()) { - EngineEnum.validateJsonElement(jsonObj.get("engine")); - } - if ((jsonObj.get("notificationType") != null && !jsonObj.get("notificationType").isJsonNull()) && !jsonObj.get("notificationType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationType").toString())); - } - // validate the optional field `notificationType` - if (jsonObj.get("notificationType") != null && !jsonObj.get("notificationType").isJsonNull()) { - NotificationTypeEnum.validateJsonElement(jsonObj.get("notificationType")); - } - if ((jsonObj.get("notificationToCc") != null && !jsonObj.get("notificationToCc").isJsonNull()) && !jsonObj.get("notificationToCc").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationToCc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationToCc").toString())); - } - if ((jsonObj.get("notificationToBcc") != null && !jsonObj.get("notificationToBcc").isJsonNull()) && !jsonObj.get("notificationToBcc").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationToBcc` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationToBcc").toString())); - } - if ((jsonObj.get("notificationSubject") != null && !jsonObj.get("notificationSubject").isJsonNull()) && !jsonObj.get("notificationSubject").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationSubject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationSubject").toString())); - } - if ((jsonObj.get("notificationText") != null && !jsonObj.get("notificationText").isJsonNull()) && !jsonObj.get("notificationText").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationText` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationText").toString())); - } - if ((jsonObj.get("notificationHtml") != null && !jsonObj.get("notificationHtml").isJsonNull()) && !jsonObj.get("notificationHtml").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationHtml` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationHtml").toString())); - } - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) && !jsonObj.get("mappingId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mappingId").toString())); - } - if ((jsonObj.get("eventBusName") != null && !jsonObj.get("eventBusName").isJsonNull()) && !jsonObj.get("eventBusName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eventBusName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eventBusName").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) && !jsonObj.get("outputType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `outputType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("outputType").toString())); - } + } + if ((jsonObj.get("ocrParseTypes") != null && !jsonObj.get("ocrParseTypes").isJsonNull()) + && !jsonObj.get("ocrParseTypes").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `ocrParseTypes` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("ocrParseTypes").toString())); + } + // validate the optional field `ocrEngine` + if (jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) { + OcrEngine.validateJsonElement(jsonObj.get("ocrEngine")); + } + // validate the optional field `ocrOutputType` + if (jsonObj.get("ocrOutputType") != null && !jsonObj.get("ocrOutputType").isJsonNull()) { + OcrOutputType.validateJsonElement(jsonObj.get("ocrOutputType")); + } + if ((jsonObj.get("ocrNumberOfPages") != null && !jsonObj.get("ocrNumberOfPages").isJsonNull()) + && !jsonObj.get("ocrNumberOfPages").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `ocrNumberOfPages` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("ocrNumberOfPages").toString())); + } + if ((jsonObj.get("addPdfDetectedCharactersAsText") != null + && !jsonObj.get("addPdfDetectedCharactersAsText").isJsonNull()) + && !jsonObj.get("addPdfDetectedCharactersAsText").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `addPdfDetectedCharactersAsText` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("addPdfDetectedCharactersAsText").toString())); + } + if ((jsonObj.get("llmPromptEntityName") != null + && !jsonObj.get("llmPromptEntityName").isJsonNull()) + && !jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("llmPromptEntityName").toString())); + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) + && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `url` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("url").toString())); + } + if ((jsonObj.get("characterMax") != null && !jsonObj.get("characterMax").isJsonNull()) + && !jsonObj.get("characterMax").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `characterMax` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("characterMax").toString())); + } + if ((jsonObj.get("engine") != null && !jsonObj.get("engine").isJsonNull()) + && !jsonObj.get("engine").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `engine` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("engine").toString())); + } + // validate the optional field `engine` + if (jsonObj.get("engine") != null && !jsonObj.get("engine").isJsonNull()) { + EngineEnum.validateJsonElement(jsonObj.get("engine")); + } + if ((jsonObj.get("notificationType") != null && !jsonObj.get("notificationType").isJsonNull()) + && !jsonObj.get("notificationType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `notificationType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("notificationType").toString())); + } + // validate the optional field `notificationType` + if (jsonObj.get("notificationType") != null && !jsonObj.get("notificationType").isJsonNull()) { + NotificationTypeEnum.validateJsonElement(jsonObj.get("notificationType")); + } + if ((jsonObj.get("notificationToCc") != null && !jsonObj.get("notificationToCc").isJsonNull()) + && !jsonObj.get("notificationToCc").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `notificationToCc` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("notificationToCc").toString())); + } + if ((jsonObj.get("notificationToBcc") != null && !jsonObj.get("notificationToBcc").isJsonNull()) + && !jsonObj.get("notificationToBcc").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `notificationToBcc` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("notificationToBcc").toString())); + } + if ((jsonObj.get("notificationSubject") != null + && !jsonObj.get("notificationSubject").isJsonNull()) + && !jsonObj.get("notificationSubject").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `notificationSubject` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("notificationSubject").toString())); + } + if ((jsonObj.get("notificationText") != null && !jsonObj.get("notificationText").isJsonNull()) + && !jsonObj.get("notificationText").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `notificationText` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("notificationText").toString())); + } + if ((jsonObj.get("notificationHtml") != null && !jsonObj.get("notificationHtml").isJsonNull()) + && !jsonObj.get("notificationHtml").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `notificationHtml` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("notificationHtml").toString())); + } + if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) + && !jsonObj.get("tags").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("tags").toString())); + } + if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) + && !jsonObj.get("mappingId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("mappingId").toString())); + } + if ((jsonObj.get("eventBusName") != null && !jsonObj.get("eventBusName").isJsonNull()) + && !jsonObj.get("eventBusName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eventBusName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("eventBusName").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) + && !jsonObj.get("outputType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `outputType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("outputType").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddActionParameters.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddActionParameters' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddActionParameters.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddActionParameters value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddActionParameters read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddActionParameters.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddActionParameters' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddActionParameters.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddActionParameters value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddActionParameters read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddApiKeyPermission.java b/src/main/java/com/formkiq/client/model/AddApiKeyPermission.java deleted file mode 100644 index 397773f29..000000000 --- a/src/main/java/com/formkiq/client/model/AddApiKeyPermission.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key - * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.formkiq.client.model; - -import java.util.Objects; -import java.util.Locale; -import com.google.gson.annotations.SerializedName; - -import java.io.IOException; -import java.util.Locale; -import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * List of API permissions (defaults to READ / WRITE / DELETE) - */ -@JsonAdapter(AddApiKeyPermission.Adapter.class) -public enum AddApiKeyPermission { - - READ("READ"), - - WRITE("WRITE"), - - DELETE("DELETE"), - - GOVERN("GOVERN"); - - private String value; - - AddApiKeyPermission(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static AddApiKeyPermission fromValue(String value) { - for (AddApiKeyPermission b : AddApiKeyPermission.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final AddApiKeyPermission enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public AddApiKeyPermission read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return AddApiKeyPermission.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - AddApiKeyPermission.fromValue(value); - } -} - diff --git a/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java b/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java index 973d9504c..f0283e765 100644 --- a/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java +++ b/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -15,7 +22,7 @@ import java.util.Objects; import java.util.Locale; -import com.formkiq.client.model.AddApiKeyPermission; +import com.formkiq.client.model.ApiKeyPermission; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -53,7 +60,9 @@ /** * AddApiKeyRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddApiKeyRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -68,10 +77,9 @@ public class AddApiKeyRequest { public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; @SerializedName(SERIALIZED_NAME_PERMISSIONS) @javax.annotation.Nullable - private List permissions = new ArrayList<>(); + private List permissions = new ArrayList<>(); - public AddApiKeyRequest() { - } + public AddApiKeyRequest() {} public AddApiKeyRequest name(@javax.annotation.Nullable String name) { this.name = name; @@ -80,6 +88,7 @@ public AddApiKeyRequest name(@javax.annotation.Nullable String name) { /** * Name of API Key + * * @return name */ @javax.annotation.Nullable @@ -107,6 +116,7 @@ public AddApiKeyRequest addGroupsItem(String groupsItem) { /** * Optional list of groups to add as custom claims to API Key + * * @return groups */ @javax.annotation.Nullable @@ -119,12 +129,13 @@ public void setGroups(@javax.annotation.Nullable List groups) { } - public AddApiKeyRequest permissions(@javax.annotation.Nullable List permissions) { + public AddApiKeyRequest permissions( + @javax.annotation.Nullable List permissions) { this.permissions = permissions; return this; } - public AddApiKeyRequest addPermissionsItem(AddApiKeyPermission permissionsItem) { + public AddApiKeyRequest addPermissionsItem(ApiKeyPermission permissionsItem) { if (this.permissions == null) { this.permissions = new ArrayList<>(); } @@ -134,14 +145,15 @@ public AddApiKeyRequest addPermissionsItem(AddApiKeyPermission permissionsItem) /** * Get permissions + * * @return permissions */ @javax.annotation.Nullable - public List getPermissions() { + public List getPermissions() { return permissions; } - public void setPermissions(@javax.annotation.Nullable List permissions) { + public void setPermissions(@javax.annotation.Nullable List permissions) { this.permissions = permissions; } @@ -156,9 +168,9 @@ public boolean equals(Object o) { return false; } AddApiKeyRequest addApiKeyRequest = (AddApiKeyRequest) o; - return Objects.equals(this.name, addApiKeyRequest.name) && - Objects.equals(this.groups, addApiKeyRequest.groups) && - Objects.equals(this.permissions, addApiKeyRequest.permissions); + return Objects.equals(this.name, addApiKeyRequest.name) + && Objects.equals(this.groups, addApiKeyRequest.groups) + && Objects.equals(this.permissions, addApiKeyRequest.permissions); } @Override @@ -178,8 +190,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -207,59 +218,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddApiKeyRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddApiKeyRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddApiKeyRequest is not found in the empty JSON string", AddApiKeyRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddApiKeyRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddApiKeyRequest is not found in the empty JSON string", + AddApiKeyRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddApiKeyRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddApiKeyRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull() && !jsonObj.get("groups").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddApiKeyRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddApiKeyRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull() + && !jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `groups` to be an array in the JSON string but got `%s`", + jsonObj.get("groups").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() + && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `permissions` to be an array in the JSON string but got `%s`", + jsonObj.get("permissions").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddApiKeyRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddApiKeyRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddApiKeyRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddApiKeyRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddApiKeyRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddApiKeyRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddApiKeyRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddApiKeyRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddApiKeyRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddApiKeyRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java b/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java index 0753dde12..f25f3661d 100644 --- a/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java +++ b/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddApiKeyResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddApiKeyResponse { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; @SerializedName(SERIALIZED_NAME_API_KEY) @javax.annotation.Nullable private String apiKey; - public AddApiKeyResponse() { - } + public AddApiKeyResponse() {} public AddApiKeyResponse apiKey(@javax.annotation.Nullable String apiKey) { this.apiKey = apiKey; @@ -67,6 +75,7 @@ public AddApiKeyResponse apiKey(@javax.annotation.Nullable String apiKey) { /** * API Key Identifier + * * @return apiKey */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddApiKeyResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddApiKeyResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddApiKeyResponse is not found in the empty JSON string", AddApiKeyResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddApiKeyResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddApiKeyResponse is not found in the empty JSON string", + AddApiKeyResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddApiKeyResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddApiKeyResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("apiKey") != null && !jsonObj.get("apiKey").isJsonNull()) && !jsonObj.get("apiKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `apiKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiKey").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddApiKeyResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddApiKeyResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiKey") != null && !jsonObj.get("apiKey").isJsonNull()) + && !jsonObj.get("apiKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `apiKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("apiKey").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddApiKeyResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddApiKeyResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddApiKeyResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddApiKeyResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddApiKeyResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddApiKeyResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddApiKeyResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddApiKeyResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddApiKeyResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddApiKeyResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddAttribute.java b/src/main/java/com/formkiq/client/model/AddAttribute.java index 1a0956206..b026e9a2b 100644 --- a/src/main/java/com/formkiq/client/model/AddAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * AddAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -75,8 +84,7 @@ public class AddAttribute { @javax.annotation.Nullable private Watermark watermark; - public AddAttribute() { - } + public AddAttribute() {} public AddAttribute key(@javax.annotation.Nonnull String key) { this.key = key; @@ -85,6 +93,7 @@ public AddAttribute key(@javax.annotation.Nonnull String key) { /** * Attribute Key + * * @return key */ @javax.annotation.Nonnull @@ -104,6 +113,7 @@ public AddAttribute dataType(@javax.annotation.Nullable AttributeDataType dataTy /** * Get dataType + * * @return dataType */ @javax.annotation.Nullable @@ -123,6 +133,7 @@ public AddAttribute type(@javax.annotation.Nullable AttributeType type) { /** * Get type + * * @return type */ @javax.annotation.Nullable @@ -142,6 +153,7 @@ public AddAttribute watermark(@javax.annotation.Nullable Watermark watermark) { /** * Get watermark + * * @return watermark */ @javax.annotation.Nullable @@ -164,10 +176,10 @@ public boolean equals(Object o) { return false; } AddAttribute addAttribute = (AddAttribute) o; - return Objects.equals(this.key, addAttribute.key) && - Objects.equals(this.dataType, addAttribute.dataType) && - Objects.equals(this.type, addAttribute.type) && - Objects.equals(this.watermark, addAttribute.watermark); + return Objects.equals(this.key, addAttribute.key) + && Objects.equals(this.dataType, addAttribute.dataType) + && Objects.equals(this.type, addAttribute.type) + && Objects.equals(this.watermark, addAttribute.watermark); } @Override @@ -188,8 +200,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -217,70 +228,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddAttribute is not found in the empty JSON string", AddAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddAttribute is not found in the empty JSON string", + AddAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddAttribute.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - // validate the optional field `dataType` - if (jsonObj.get("dataType") != null && !jsonObj.get("dataType").isJsonNull()) { - AttributeDataType.validateJsonElement(jsonObj.get("dataType")); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - AttributeType.validateJsonElement(jsonObj.get("type")); - } - // validate the optional field `watermark` - if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { - Watermark.validateJsonElement(jsonObj.get("watermark")); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddAttribute.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + // validate the optional field `dataType` + if (jsonObj.get("dataType") != null && !jsonObj.get("dataType").isJsonNull()) { + AttributeDataType.validateJsonElement(jsonObj.get("dataType")); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + AttributeType.validateJsonElement(jsonObj.get("type")); + } + // validate the optional field `watermark` + if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { + Watermark.validateJsonElement(jsonObj.get("watermark")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddAttributeRequest.java b/src/main/java/com/formkiq/client/model/AddAttributeRequest.java index 0f246ad4c..9344686cd 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddAttributeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @javax.annotation.Nonnull private AddAttribute attribute; - public AddAttributeRequest() { - } + public AddAttributeRequest() {} public AddAttributeRequest attribute(@javax.annotation.Nonnull AddAttribute attribute) { this.attribute = attribute; @@ -68,6 +76,7 @@ public AddAttributeRequest attribute(@javax.annotation.Nonnull AddAttribute attr /** * Get attribute + * * @return attribute */ @javax.annotation.Nonnull @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,57 +145,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddAttributeRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddAttributeRequest is not found in the empty JSON string", AddAttributeRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddAttributeRequest is not found in the empty JSON string", + AddAttributeRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddAttributeRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddAttributeRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddAttributeRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddAttributeRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddAttributeRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddAttributeRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `attribute` - AddAttribute.validateJsonElement(jsonObj.get("attribute")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `attribute` + AddAttribute.validateJsonElement(jsonObj.get("attribute")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddAttributeRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddAttributeRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddAttributeRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddAttributeRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddAttributeRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddAttributeRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddAttributeRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddAttributeRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddAttributeRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddAttributeRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java b/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java index 3d99c175d..19721c755 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * AddAttributeSchemaOptional */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddAttributeSchemaOptional { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; @SerializedName(SERIALIZED_NAME_MIN_NUMBER_OF_VALUES) @@ -75,16 +84,17 @@ public class AddAttributeSchemaOptional { @javax.annotation.Nullable private List allowedValues = new ArrayList<>(); - public AddAttributeSchemaOptional() { - } + public AddAttributeSchemaOptional() {} - public AddAttributeSchemaOptional minNumberOfValues(@javax.annotation.Nullable BigDecimal minNumberOfValues) { + public AddAttributeSchemaOptional minNumberOfValues( + @javax.annotation.Nullable BigDecimal minNumberOfValues) { this.minNumberOfValues = minNumberOfValues; return this; } /** * The minimum number of attribute values + * * @return minNumberOfValues */ @javax.annotation.Nullable @@ -97,13 +107,15 @@ public void setMinNumberOfValues(@javax.annotation.Nullable BigDecimal minNumber } - public AddAttributeSchemaOptional maxNumberOfValues(@javax.annotation.Nullable BigDecimal maxNumberOfValues) { + public AddAttributeSchemaOptional maxNumberOfValues( + @javax.annotation.Nullable BigDecimal maxNumberOfValues) { this.maxNumberOfValues = maxNumberOfValues; return this; } /** * The maximum number of attribute values + * * @return maxNumberOfValues */ @javax.annotation.Nullable @@ -123,6 +135,7 @@ public AddAttributeSchemaOptional attributeKey(@javax.annotation.Nullable String /** * Get attributeKey + * * @return attributeKey */ @javax.annotation.Nullable @@ -135,7 +148,8 @@ public void setAttributeKey(@javax.annotation.Nullable String attributeKey) { } - public AddAttributeSchemaOptional allowedValues(@javax.annotation.Nullable List allowedValues) { + public AddAttributeSchemaOptional allowedValues( + @javax.annotation.Nullable List allowedValues) { this.allowedValues = allowedValues; return this; } @@ -150,6 +164,7 @@ public AddAttributeSchemaOptional addAllowedValuesItem(String allowedValuesItem) /** * Only valid string values + * * @return allowedValues */ @javax.annotation.Nullable @@ -172,10 +187,10 @@ public boolean equals(Object o) { return false; } AddAttributeSchemaOptional addAttributeSchemaOptional = (AddAttributeSchemaOptional) o; - return Objects.equals(this.minNumberOfValues, addAttributeSchemaOptional.minNumberOfValues) && - Objects.equals(this.maxNumberOfValues, addAttributeSchemaOptional.maxNumberOfValues) && - Objects.equals(this.attributeKey, addAttributeSchemaOptional.attributeKey) && - Objects.equals(this.allowedValues, addAttributeSchemaOptional.allowedValues); + return Objects.equals(this.minNumberOfValues, addAttributeSchemaOptional.minNumberOfValues) + && Objects.equals(this.maxNumberOfValues, addAttributeSchemaOptional.maxNumberOfValues) + && Objects.equals(this.attributeKey, addAttributeSchemaOptional.attributeKey) + && Objects.equals(this.allowedValues, addAttributeSchemaOptional.allowedValues); } @Override @@ -196,8 +211,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -212,7 +226,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("minNumberOfValues", "maxNumberOfValues", "attributeKey", "allowedValues")); + openapiFields = new HashSet( + Arrays.asList("minNumberOfValues", "maxNumberOfValues", "attributeKey", "allowedValues")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -225,55 +240,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddAttributeSchemaOptional */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddAttributeSchemaOptional.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddAttributeSchemaOptional is not found in the empty JSON string", AddAttributeSchemaOptional.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddAttributeSchemaOptional.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddAttributeSchemaOptional is not found in the empty JSON string", + AddAttributeSchemaOptional.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddAttributeSchemaOptional.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddAttributeSchemaOptional` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() && !jsonObj.get("allowedValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", jsonObj.get("allowedValues").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddAttributeSchemaOptional.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddAttributeSchemaOptional` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) + && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("attributeKey").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() + && !jsonObj.get("allowedValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", + jsonObj.get("allowedValues").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddAttributeSchemaOptional.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddAttributeSchemaOptional' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddAttributeSchemaOptional.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddAttributeSchemaOptional value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddAttributeSchemaOptional read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddAttributeSchemaOptional.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddAttributeSchemaOptional' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddAttributeSchemaOptional.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddAttributeSchemaOptional value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddAttributeSchemaOptional read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java b/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java index 95a181044..4dfd08d9f 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * AddAttributeSchemaRequired */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddAttributeSchemaRequired { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; @SerializedName(SERIALIZED_NAME_MIN_NUMBER_OF_VALUES) @@ -85,16 +94,17 @@ public class AddAttributeSchemaRequired { @javax.annotation.Nullable private List allowedValues = new ArrayList<>(); - public AddAttributeSchemaRequired() { - } + public AddAttributeSchemaRequired() {} - public AddAttributeSchemaRequired minNumberOfValues(@javax.annotation.Nullable BigDecimal minNumberOfValues) { + public AddAttributeSchemaRequired minNumberOfValues( + @javax.annotation.Nullable BigDecimal minNumberOfValues) { this.minNumberOfValues = minNumberOfValues; return this; } /** * The minimum number of attribute values + * * @return minNumberOfValues */ @javax.annotation.Nullable @@ -107,13 +117,15 @@ public void setMinNumberOfValues(@javax.annotation.Nullable BigDecimal minNumber } - public AddAttributeSchemaRequired maxNumberOfValues(@javax.annotation.Nullable BigDecimal maxNumberOfValues) { + public AddAttributeSchemaRequired maxNumberOfValues( + @javax.annotation.Nullable BigDecimal maxNumberOfValues) { this.maxNumberOfValues = maxNumberOfValues; return this; } /** * The maximum number of attribute values + * * @return maxNumberOfValues */ @javax.annotation.Nullable @@ -133,6 +145,7 @@ public AddAttributeSchemaRequired attributeKey(@javax.annotation.Nullable String /** * Get attributeKey + * * @return attributeKey */ @javax.annotation.Nullable @@ -152,6 +165,7 @@ public AddAttributeSchemaRequired defaultValue(@javax.annotation.Nullable String /** * Default value + * * @return defaultValue */ @javax.annotation.Nullable @@ -164,7 +178,8 @@ public void setDefaultValue(@javax.annotation.Nullable String defaultValue) { } - public AddAttributeSchemaRequired defaultValues(@javax.annotation.Nullable List defaultValues) { + public AddAttributeSchemaRequired defaultValues( + @javax.annotation.Nullable List defaultValues) { this.defaultValues = defaultValues; return this; } @@ -179,6 +194,7 @@ public AddAttributeSchemaRequired addDefaultValuesItem(String defaultValuesItem) /** * Default values + * * @return defaultValues */ @javax.annotation.Nullable @@ -191,7 +207,8 @@ public void setDefaultValues(@javax.annotation.Nullable List defaultValu } - public AddAttributeSchemaRequired allowedValues(@javax.annotation.Nullable List allowedValues) { + public AddAttributeSchemaRequired allowedValues( + @javax.annotation.Nullable List allowedValues) { this.allowedValues = allowedValues; return this; } @@ -206,6 +223,7 @@ public AddAttributeSchemaRequired addAllowedValuesItem(String allowedValuesItem) /** * Only valid string values + * * @return allowedValues */ @javax.annotation.Nullable @@ -228,17 +246,18 @@ public boolean equals(Object o) { return false; } AddAttributeSchemaRequired addAttributeSchemaRequired = (AddAttributeSchemaRequired) o; - return Objects.equals(this.minNumberOfValues, addAttributeSchemaRequired.minNumberOfValues) && - Objects.equals(this.maxNumberOfValues, addAttributeSchemaRequired.maxNumberOfValues) && - Objects.equals(this.attributeKey, addAttributeSchemaRequired.attributeKey) && - Objects.equals(this.defaultValue, addAttributeSchemaRequired.defaultValue) && - Objects.equals(this.defaultValues, addAttributeSchemaRequired.defaultValues) && - Objects.equals(this.allowedValues, addAttributeSchemaRequired.allowedValues); + return Objects.equals(this.minNumberOfValues, addAttributeSchemaRequired.minNumberOfValues) + && Objects.equals(this.maxNumberOfValues, addAttributeSchemaRequired.maxNumberOfValues) + && Objects.equals(this.attributeKey, addAttributeSchemaRequired.attributeKey) + && Objects.equals(this.defaultValue, addAttributeSchemaRequired.defaultValue) + && Objects.equals(this.defaultValues, addAttributeSchemaRequired.defaultValues) + && Objects.equals(this.allowedValues, addAttributeSchemaRequired.allowedValues); } @Override public int hashCode() { - return Objects.hash(minNumberOfValues, maxNumberOfValues, attributeKey, defaultValue, defaultValues, allowedValues); + return Objects.hash(minNumberOfValues, maxNumberOfValues, attributeKey, defaultValue, + defaultValues, allowedValues); } @Override @@ -256,8 +275,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -272,7 +290,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("minNumberOfValues", "maxNumberOfValues", "attributeKey", "defaultValue", "defaultValues", "allowedValues")); + openapiFields = new HashSet(Arrays.asList("minNumberOfValues", "maxNumberOfValues", + "attributeKey", "defaultValue", "defaultValues", "allowedValues")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -285,62 +304,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddAttributeSchemaRequired */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddAttributeSchemaRequired.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddAttributeSchemaRequired is not found in the empty JSON string", AddAttributeSchemaRequired.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddAttributeSchemaRequired.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddAttributeSchemaRequired is not found in the empty JSON string", + AddAttributeSchemaRequired.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddAttributeSchemaRequired.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddAttributeSchemaRequired` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); - } - if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) && !jsonObj.get("defaultValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() && !jsonObj.get("defaultValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", jsonObj.get("defaultValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() && !jsonObj.get("allowedValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", jsonObj.get("allowedValues").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddAttributeSchemaRequired.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddAttributeSchemaRequired` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) + && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("attributeKey").toString())); + } + if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) + && !jsonObj.get("defaultValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("defaultValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() + && !jsonObj.get("defaultValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", + jsonObj.get("defaultValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() + && !jsonObj.get("allowedValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", + jsonObj.get("allowedValues").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddAttributeSchemaRequired.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddAttributeSchemaRequired' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddAttributeSchemaRequired.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddAttributeSchemaRequired value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddAttributeSchemaRequired read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddAttributeSchemaRequired.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddAttributeSchemaRequired' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddAttributeSchemaRequired.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddAttributeSchemaRequired value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddAttributeSchemaRequired read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddCase.java b/src/main/java/com/formkiq/client/model/AddCase.java index 10222672a..f421a0301 100644 --- a/src/main/java/com/formkiq/client/model/AddCase.java +++ b/src/main/java/com/formkiq/client/model/AddCase.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -56,7 +63,9 @@ /** * AddCase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddCase { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -113,8 +122,7 @@ public class AddCase { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public AddCase() { - } + public AddCase() {} public AddCase name(@javax.annotation.Nonnull String name) { this.name = name; @@ -123,6 +131,7 @@ public AddCase name(@javax.annotation.Nonnull String name) { /** * Case Name + * * @return name */ @javax.annotation.Nonnull @@ -142,6 +151,7 @@ public AddCase status(@javax.annotation.Nullable CaseStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -161,6 +171,7 @@ public AddCase plannedStartDate(@javax.annotation.Nullable String plannedStartDa /** * Planned Start Date + * * @return plannedStartDate */ @javax.annotation.Nullable @@ -180,6 +191,7 @@ public AddCase startDate(@javax.annotation.Nullable String startDate) { /** * Start Date + * * @return startDate */ @javax.annotation.Nullable @@ -199,6 +211,7 @@ public AddCase endDate(@javax.annotation.Nullable String endDate) { /** * End Date + * * @return endDate */ @javax.annotation.Nullable @@ -218,6 +231,7 @@ public AddCase dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date + * * @return dueDate */ @javax.annotation.Nullable @@ -237,6 +251,7 @@ public AddCase description(@javax.annotation.Nullable String description) { /** * Case Description + * * @return description */ @javax.annotation.Nullable @@ -249,7 +264,8 @@ public void setDescription(@javax.annotation.Nullable String description) { } - public AddCase documentNumberFormat(@javax.annotation.Nullable List documentNumberFormat) { + public AddCase documentNumberFormat( + @javax.annotation.Nullable List documentNumberFormat) { this.documentNumberFormat = documentNumberFormat; return this; } @@ -264,6 +280,7 @@ public AddCase addDocumentNumberFormatItem(StringFormat documentNumberFormatItem /** * Format of Document Number + * * @return documentNumberFormat */ @javax.annotation.Nullable @@ -271,7 +288,8 @@ public List getDocumentNumberFormat() { return documentNumberFormat; } - public void setDocumentNumberFormat(@javax.annotation.Nullable List documentNumberFormat) { + public void setDocumentNumberFormat( + @javax.annotation.Nullable List documentNumberFormat) { this.documentNumberFormat = documentNumberFormat; } @@ -291,6 +309,7 @@ public AddCase addCaseNumberFormatItem(StringFormat caseNumberFormatItem) { /** * Format of Case Number + * * @return caseNumberFormat */ @javax.annotation.Nullable @@ -318,6 +337,7 @@ public AddCase putMetadataItem(String key, Object metadataItem) { /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -345,6 +365,7 @@ public AddCase addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds + * * @return documentIds */ @javax.annotation.Nullable @@ -367,22 +388,22 @@ public boolean equals(Object o) { return false; } AddCase addCase = (AddCase) o; - return Objects.equals(this.name, addCase.name) && - Objects.equals(this.status, addCase.status) && - Objects.equals(this.plannedStartDate, addCase.plannedStartDate) && - Objects.equals(this.startDate, addCase.startDate) && - Objects.equals(this.endDate, addCase.endDate) && - Objects.equals(this.dueDate, addCase.dueDate) && - Objects.equals(this.description, addCase.description) && - Objects.equals(this.documentNumberFormat, addCase.documentNumberFormat) && - Objects.equals(this.caseNumberFormat, addCase.caseNumberFormat) && - Objects.equals(this.metadata, addCase.metadata) && - Objects.equals(this.documentIds, addCase.documentIds); + return Objects.equals(this.name, addCase.name) && Objects.equals(this.status, addCase.status) + && Objects.equals(this.plannedStartDate, addCase.plannedStartDate) + && Objects.equals(this.startDate, addCase.startDate) + && Objects.equals(this.endDate, addCase.endDate) + && Objects.equals(this.dueDate, addCase.dueDate) + && Objects.equals(this.description, addCase.description) + && Objects.equals(this.documentNumberFormat, addCase.documentNumberFormat) + && Objects.equals(this.caseNumberFormat, addCase.caseNumberFormat) + && Objects.equals(this.metadata, addCase.metadata) + && Objects.equals(this.documentIds, addCase.documentIds); } @Override public int hashCode() { - return Objects.hash(name, status, plannedStartDate, startDate, endDate, dueDate, description, documentNumberFormat, caseNumberFormat, metadata, documentIds); + return Objects.hash(name, status, plannedStartDate, startDate, endDate, dueDate, description, + documentNumberFormat, caseNumberFormat, metadata, documentIds); } @Override @@ -396,7 +417,8 @@ public String toString() { sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); sb.append(" dueDate: ").append(toIndentedString(dueDate)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" documentNumberFormat: ").append(toIndentedString(documentNumberFormat)).append("\n"); + sb.append(" documentNumberFormat: ").append(toIndentedString(documentNumberFormat)) + .append("\n"); sb.append(" caseNumberFormat: ").append(toIndentedString(caseNumberFormat)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" documentIds: ").append(toIndentedString(documentIds)).append("\n"); @@ -405,8 +427,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -421,7 +442,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "status", "plannedStartDate", "startDate", "endDate", "dueDate", "description", "documentNumberFormat", "caseNumberFormat", "metadata", "documentIds")); + openapiFields = new HashSet( + Arrays.asList("name", "status", "plannedStartDate", "startDate", "endDate", "dueDate", + "description", "documentNumberFormat", "caseNumberFormat", "metadata", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); @@ -434,109 +457,141 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddCase */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddCase is not found in the empty JSON string", AddCase.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddCase is not found in the empty JSON string", + AddCase.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddCase.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddCase` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddCase.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddCase` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddCase.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - CaseStatus.validateJsonElement(jsonObj.get("status")); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddCase.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (jsonObj.get("documentNumberFormat") != null && !jsonObj.get("documentNumberFormat").isJsonNull()) { - JsonArray jsonArraydocumentNumberFormat = jsonObj.getAsJsonArray("documentNumberFormat"); - if (jsonArraydocumentNumberFormat != null) { - // ensure the json data is an array - if (!jsonObj.get("documentNumberFormat").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentNumberFormat` to be an array in the JSON string but got `%s`", jsonObj.get("documentNumberFormat").toString())); - } - - // validate the optional field `documentNumberFormat` (array) - for (int i = 0; i < jsonArraydocumentNumberFormat.size(); i++) { - StringFormat.validateJsonElement(jsonArraydocumentNumberFormat.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + CaseStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) + && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) + && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) + && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) + && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("dueDate").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if (jsonObj.get("documentNumberFormat") != null + && !jsonObj.get("documentNumberFormat").isJsonNull()) { + JsonArray jsonArraydocumentNumberFormat = jsonObj.getAsJsonArray("documentNumberFormat"); + if (jsonArraydocumentNumberFormat != null) { + // ensure the json data is an array + if (!jsonObj.get("documentNumberFormat").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentNumberFormat` to be an array in the JSON string but got `%s`", + jsonObj.get("documentNumberFormat").toString())); } + + // validate the optional field `documentNumberFormat` (array) + for (int i = 0; i < jsonArraydocumentNumberFormat.size(); i++) { + StringFormat.validateJsonElement(jsonArraydocumentNumberFormat.get(i)); + } ; } - if (jsonObj.get("caseNumberFormat") != null && !jsonObj.get("caseNumberFormat").isJsonNull()) { - JsonArray jsonArraycaseNumberFormat = jsonObj.getAsJsonArray("caseNumberFormat"); - if (jsonArraycaseNumberFormat != null) { - // ensure the json data is an array - if (!jsonObj.get("caseNumberFormat").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caseNumberFormat` to be an array in the JSON string but got `%s`", jsonObj.get("caseNumberFormat").toString())); - } - - // validate the optional field `caseNumberFormat` (array) - for (int i = 0; i < jsonArraycaseNumberFormat.size(); i++) { - StringFormat.validateJsonElement(jsonArraycaseNumberFormat.get(i)); - }; + } + if (jsonObj.get("caseNumberFormat") != null && !jsonObj.get("caseNumberFormat").isJsonNull()) { + JsonArray jsonArraycaseNumberFormat = jsonObj.getAsJsonArray("caseNumberFormat"); + if (jsonArraycaseNumberFormat != null) { + // ensure the json data is an array + if (!jsonObj.get("caseNumberFormat").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `caseNumberFormat` to be an array in the JSON string but got `%s`", + jsonObj.get("caseNumberFormat").toString())); } + + // validate the optional field `caseNumberFormat` (array) + for (int i = 0; i < jsonArraycaseNumberFormat.size(); i++) { + StringFormat.validateJsonElement(jsonArraycaseNumberFormat.get(i)); + } ; } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); - } + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() + && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentIds` to be an array in the JSON string but got `%s`", + jsonObj.get("documentIds").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddCase.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddCase' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddCase.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddCase value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddCase read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddCase.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddCase' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddCase.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddCase value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddCase read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddCaseRequest.java b/src/main/java/com/formkiq/client/model/AddCaseRequest.java index f3fbe80c3..356fbee55 100644 --- a/src/main/java/com/formkiq/client/model/AddCaseRequest.java +++ b/src/main/java/com/formkiq/client/model/AddCaseRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddCaseRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddCaseRequest { public static final String SERIALIZED_NAME_CASE = "case"; @SerializedName(SERIALIZED_NAME_CASE) @javax.annotation.Nonnull private AddCase _case; - public AddCaseRequest() { - } + public AddCaseRequest() {} public AddCaseRequest _case(@javax.annotation.Nonnull AddCase _case) { this._case = _case; @@ -68,6 +76,7 @@ public AddCaseRequest _case(@javax.annotation.Nonnull AddCase _case) { /** * Get _case + * * @return _case */ @javax.annotation.Nonnull @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,57 +145,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddCaseRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddCaseRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddCaseRequest is not found in the empty JSON string", AddCaseRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddCaseRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddCaseRequest is not found in the empty JSON string", + AddCaseRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddCaseRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddCaseRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddCaseRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddCaseRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddCaseRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddCaseRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `case` - AddCase.validateJsonElement(jsonObj.get("case")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `case` + AddCase.validateJsonElement(jsonObj.get("case")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddCaseRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddCaseRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddCaseRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddCaseRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddCaseRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddCaseRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddCaseRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddCaseRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddCaseRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddCaseRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddCaseResponse.java b/src/main/java/com/formkiq/client/model/AddCaseResponse.java index 28df9c9da..c5df1eb7a 100644 --- a/src/main/java/com/formkiq/client/model/AddCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/AddCaseResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddCaseResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddCaseResponse { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; @SerializedName(SERIALIZED_NAME_CASE_ID) @javax.annotation.Nullable private String caseId; - public AddCaseResponse() { - } + public AddCaseResponse() {} public AddCaseResponse caseId(@javax.annotation.Nullable String caseId) { this.caseId = caseId; @@ -67,6 +75,7 @@ public AddCaseResponse caseId(@javax.annotation.Nullable String caseId) { /** * Case Identifier + * * @return caseId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddCaseResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddCaseResponse is not found in the empty JSON string", AddCaseResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddCaseResponse is not found in the empty JSON string", + AddCaseResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddCaseResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddCaseResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) && !jsonObj.get("caseId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("caseId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddCaseResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddCaseResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) + && !jsonObj.get("caseId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("caseId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddCaseResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddCaseResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddCaseResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddCaseResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddCaseResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddCaseResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddCaseResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddCaseResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddCaseResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddCaseResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddChildDocument.java b/src/main/java/com/formkiq/client/model/AddChildDocument.java index 345d0845b..b2e35e708 100644 --- a/src/main/java/com/formkiq/client/model/AddChildDocument.java +++ b/src/main/java/com/formkiq/client/model/AddChildDocument.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * List of related documents */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddChildDocument { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -112,8 +121,7 @@ public class AddChildDocument { @javax.annotation.Nullable private List metadata = new ArrayList<>(); - public AddChildDocument() { - } + public AddChildDocument() {} public AddChildDocument path(@javax.annotation.Nullable String path) { this.path = path; @@ -122,6 +130,7 @@ public AddChildDocument path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -141,6 +150,7 @@ public AddChildDocument width(@javax.annotation.Nullable String width) { /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -160,6 +170,7 @@ public AddChildDocument height(@javax.annotation.Nullable String height) { /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -179,6 +190,7 @@ public AddChildDocument deepLinkPath(@javax.annotation.Nullable String deepLinkP /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -198,6 +210,7 @@ public AddChildDocument contentType(@javax.annotation.Nullable String contentTyp /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -217,6 +230,7 @@ public AddChildDocument checksumType(@javax.annotation.Nullable ChecksumType che /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -236,6 +250,7 @@ public AddChildDocument checksum(@javax.annotation.Nullable String checksum) { /** * The checksum value to validate the file against + * * @return checksum */ @javax.annotation.Nullable @@ -255,6 +270,7 @@ public AddChildDocument isBase64(@javax.annotation.Nullable Boolean isBase64) { /** * Is the content Base64-encoded? + * * @return isBase64 */ @javax.annotation.Nullable @@ -274,6 +290,7 @@ public AddChildDocument content(@javax.annotation.Nonnull String content) { /** * Document content + * * @return content */ @javax.annotation.Nonnull @@ -301,6 +318,7 @@ public AddChildDocument addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags + * * @return tags */ @javax.annotation.Nullable @@ -328,6 +346,7 @@ public AddChildDocument addMetadataItem(AddDocumentMetadata metadataItem) { /** * List of document Metadata + * * @return metadata */ @javax.annotation.Nullable @@ -350,22 +369,23 @@ public boolean equals(Object o) { return false; } AddChildDocument addChildDocument = (AddChildDocument) o; - return Objects.equals(this.path, addChildDocument.path) && - Objects.equals(this.width, addChildDocument.width) && - Objects.equals(this.height, addChildDocument.height) && - Objects.equals(this.deepLinkPath, addChildDocument.deepLinkPath) && - Objects.equals(this.contentType, addChildDocument.contentType) && - Objects.equals(this.checksumType, addChildDocument.checksumType) && - Objects.equals(this.checksum, addChildDocument.checksum) && - Objects.equals(this.isBase64, addChildDocument.isBase64) && - Objects.equals(this.content, addChildDocument.content) && - Objects.equals(this.tags, addChildDocument.tags) && - Objects.equals(this.metadata, addChildDocument.metadata); + return Objects.equals(this.path, addChildDocument.path) + && Objects.equals(this.width, addChildDocument.width) + && Objects.equals(this.height, addChildDocument.height) + && Objects.equals(this.deepLinkPath, addChildDocument.deepLinkPath) + && Objects.equals(this.contentType, addChildDocument.contentType) + && Objects.equals(this.checksumType, addChildDocument.checksumType) + && Objects.equals(this.checksum, addChildDocument.checksum) + && Objects.equals(this.isBase64, addChildDocument.isBase64) + && Objects.equals(this.content, addChildDocument.content) + && Objects.equals(this.tags, addChildDocument.tags) + && Objects.equals(this.metadata, addChildDocument.metadata); } @Override public int hashCode() { - return Objects.hash(path, width, height, deepLinkPath, contentType, checksumType, checksum, isBase64, content, tags, metadata); + return Objects.hash(path, width, height, deepLinkPath, contentType, checksumType, checksum, + isBase64, content, tags, metadata); } @Override @@ -388,8 +408,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -404,7 +423,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", "contentType", "checksumType", "checksum", "isBase64", "content", "tags", "metadata")); + openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", + "contentType", "checksumType", "checksum", "isBase64", "content", "tags", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("content")); @@ -417,108 +437,139 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddChildDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddChildDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddChildDocument is not found in the empty JSON string", AddChildDocument.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddChildDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddChildDocument is not found in the empty JSON string", + AddChildDocument.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddChildDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddChildDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddChildDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddChildDocument` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddChildDocument.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddChildDocument.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - if (!jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + if (!jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - }; + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `metadata` to be an array in the JSON string but got `%s`", + jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddChildDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddChildDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddChildDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddChildDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddChildDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddChildDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddChildDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddChildDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddChildDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddChildDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java b/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java index 33f3e8e92..2e9bfdb23 100644 --- a/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * AddChildDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddChildDocumentResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -69,8 +78,7 @@ public class AddChildDocumentResponse { @javax.annotation.Nullable private Map headers = new HashMap<>(); - public AddChildDocumentResponse() { - } + public AddChildDocumentResponse() {} public AddChildDocumentResponse documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -79,6 +87,7 @@ public AddChildDocumentResponse documentId(@javax.annotation.Nullable String doc /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -98,6 +107,7 @@ public AddChildDocumentResponse uploadUrl(@javax.annotation.Nullable String uplo /** * Url to upload document to + * * @return uploadUrl */ @javax.annotation.Nullable @@ -125,6 +135,7 @@ public AddChildDocumentResponse putHeadersItem(String key, Object headersItem) { /** * Get headers + * * @return headers */ @javax.annotation.Nullable @@ -147,9 +158,9 @@ public boolean equals(Object o) { return false; } AddChildDocumentResponse addChildDocumentResponse = (AddChildDocumentResponse) o; - return Objects.equals(this.documentId, addChildDocumentResponse.documentId) && - Objects.equals(this.uploadUrl, addChildDocumentResponse.uploadUrl) && - Objects.equals(this.headers, addChildDocumentResponse.headers); + return Objects.equals(this.documentId, addChildDocumentResponse.documentId) + && Objects.equals(this.uploadUrl, addChildDocumentResponse.uploadUrl) + && Objects.equals(this.headers, addChildDocumentResponse.headers); } @Override @@ -169,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,54 +208,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddChildDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddChildDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddChildDocumentResponse is not found in the empty JSON string", AddChildDocumentResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddChildDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddChildDocumentResponse is not found in the empty JSON string", + AddChildDocumentResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddChildDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddChildDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) && !jsonObj.get("uploadUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uploadUrl").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddChildDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddChildDocumentResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) + && !jsonObj.get("uploadUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("uploadUrl").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddChildDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddChildDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddChildDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddChildDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddChildDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddChildDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddChildDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddChildDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddChildDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddChildDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddClassification.java b/src/main/java/com/formkiq/client/model/AddClassification.java index a92d7c243..4eb0c729e 100644 --- a/src/main/java/com/formkiq/client/model/AddClassification.java +++ b/src/main/java/com/formkiq/client/model/AddClassification.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * AddClassification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddClassification { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -63,8 +72,7 @@ public class AddClassification { @javax.annotation.Nullable private SetSchemaAttributes attributes; - public AddClassification() { - } + public AddClassification() {} public AddClassification name(@javax.annotation.Nullable String name) { this.name = name; @@ -73,6 +81,7 @@ public AddClassification name(@javax.annotation.Nullable String name) { /** * Name of Classification + * * @return name */ @javax.annotation.Nullable @@ -92,6 +101,7 @@ public AddClassification attributes(@javax.annotation.Nullable SetSchemaAttribut /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -114,8 +124,8 @@ public boolean equals(Object o) { return false; } AddClassification addClassification = (AddClassification) o; - return Objects.equals(this.name, addClassification.name) && - Objects.equals(this.attributes, addClassification.attributes); + return Objects.equals(this.name, addClassification.name) + && Objects.equals(this.attributes, addClassification.attributes); } @Override @@ -134,8 +144,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,55 +172,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddClassification */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddClassification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddClassification is not found in the empty JSON string", AddClassification.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddClassification.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddClassification is not found in the empty JSON string", + AddClassification.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddClassification.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddClassification` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - SetSchemaAttributes.validateJsonElement(jsonObj.get("attributes")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddClassification.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddClassification` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + SetSchemaAttributes.validateJsonElement(jsonObj.get("attributes")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddClassification.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddClassification' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddClassification.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddClassification value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddClassification read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddClassification.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddClassification' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddClassification.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddClassification value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddClassification read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddClassificationRequest.java b/src/main/java/com/formkiq/client/model/AddClassificationRequest.java index c726aa6ce..28201df71 100644 --- a/src/main/java/com/formkiq/client/model/AddClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/AddClassificationRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * AddClassificationRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddClassificationRequest { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION) @javax.annotation.Nullable private AddClassification classification; - public AddClassificationRequest() { - } + public AddClassificationRequest() {} - public AddClassificationRequest classification(@javax.annotation.Nullable AddClassification classification) { + public AddClassificationRequest classification( + @javax.annotation.Nullable AddClassification classification) { this.classification = classification; return this; } /** * Get classification + * * @return classification */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +146,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddClassificationRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddClassificationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddClassificationRequest is not found in the empty JSON string", AddClassificationRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddClassificationRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddClassificationRequest is not found in the empty JSON string", + AddClassificationRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddClassificationRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddClassificationRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `classification` - if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { - AddClassification.validateJsonElement(jsonObj.get("classification")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddClassificationRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddClassificationRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `classification` + if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { + AddClassification.validateJsonElement(jsonObj.get("classification")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddClassificationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddClassificationRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddClassificationRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddClassificationRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddClassificationRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddClassificationRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddClassificationRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddClassificationRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddClassificationRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddClassificationRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddClassificationResponse.java b/src/main/java/com/formkiq/client/model/AddClassificationResponse.java index fbdf4d71e..c0775c78a 100644 --- a/src/main/java/com/formkiq/client/model/AddClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/AddClassificationResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,23 +57,26 @@ /** * AddClassificationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddClassificationResponse { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION_ID) @javax.annotation.Nullable private String classificationId; - public AddClassificationResponse() { - } + public AddClassificationResponse() {} - public AddClassificationResponse classificationId(@javax.annotation.Nullable String classificationId) { + public AddClassificationResponse classificationId( + @javax.annotation.Nullable String classificationId) { this.classificationId = classificationId; return this; } /** * Classification Identifier + * * @return classificationId */ @javax.annotation.Nullable @@ -107,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +145,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddClassificationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddClassificationResponse is not found in the empty JSON string", AddClassificationResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddClassificationResponse is not found in the empty JSON string", + AddClassificationResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddClassificationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddClassificationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) && !jsonObj.get("classificationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("classificationId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddClassificationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddClassificationResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) + && !jsonObj.get("classificationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("classificationId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddClassificationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddClassificationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddClassificationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddClassificationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddClassificationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddClassificationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddClassificationResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddClassificationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddClassificationResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddClassificationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java index 3bf16559a..2e663f991 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,15 +60,16 @@ /** * AddDocumentActionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentActionsRequest { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @javax.annotation.Nullable private List actions = new ArrayList<>(); - public AddDocumentActionsRequest() { - } + public AddDocumentActionsRequest() {} public AddDocumentActionsRequest actions(@javax.annotation.Nullable List actions) { this.actions = actions; @@ -78,6 +86,7 @@ public AddDocumentActionsRequest addActionsItem(AddAction actionsItem) { /** * List of Actions + * * @return actions */ @javax.annotation.Nullable @@ -118,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +155,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentActionsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentActionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentActionsRequest is not found in the empty JSON string", AddDocumentActionsRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentActionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentActionsRequest is not found in the empty JSON string", + AddDocumentActionsRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentActionsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentActionsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentActionsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentActionsRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - if (jsonArrayactions != null) { - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - - // validate the optional field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - AddAction.validateJsonElement(jsonArrayactions.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { + JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); + if (jsonArrayactions != null) { + // ensure the json data is an array + if (!jsonObj.get("actions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `actions` to be an array in the JSON string but got `%s`", + jsonObj.get("actions").toString())); } + + // validate the optional field `actions` (array) + for (int i = 0; i < jsonArrayactions.size(); i++) { + AddAction.validateJsonElement(jsonArrayactions.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentActionsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentActionsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentActionsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentActionsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentActionsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentActionsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentActionsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentActionsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java index ccfe9da65..3ffec19f6 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddDocumentActionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentActionsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentActionsResponse() { - } + public AddDocumentActionsResponse() {} public AddDocumentActionsResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public AddDocumentActionsResponse message(@javax.annotation.Nullable String mess /** * Document Action message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentActionsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentActionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentActionsResponse is not found in the empty JSON string", AddDocumentActionsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentActionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentActionsResponse is not found in the empty JSON string", + AddDocumentActionsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentActionsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentActionsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentActionsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentActionsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentActionsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentActionsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentActionsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentActionsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentActionsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentActionsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentActionsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentActionsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java index 9e98ab3d9..1b7336c37 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddDocumentActionsRetryResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentActionsRetryResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentActionsRetryResponse() { - } + public AddDocumentActionsRetryResponse() {} public AddDocumentActionsRetryResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public AddDocumentActionsRetryResponse message(@javax.annotation.Nullable String /** * Document Action message + * * @return message */ @javax.annotation.Nullable @@ -88,7 +97,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocumentActionsRetryResponse addDocumentActionsRetryResponse = (AddDocumentActionsRetryResponse) o; + AddDocumentActionsRetryResponse addDocumentActionsRetryResponse = + (AddDocumentActionsRetryResponse) o; return Objects.equals(this.message, addDocumentActionsRetryResponse.message); } @@ -107,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,54 +142,66 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDocumentActionsRetryResponse + * @throws IOException if the JSON Element is invalid with respect to + * AddDocumentActionsRetryResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentActionsRetryResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentActionsRetryResponse is not found in the empty JSON string", AddDocumentActionsRetryResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentActionsRetryResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentActionsRetryResponse is not found in the empty JSON string", + AddDocumentActionsRetryResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentActionsRetryResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentActionsRetryResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentActionsRetryResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentActionsRetryResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentActionsRetryResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentActionsRetryResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsRetryResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentActionsRetryResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentActionsRetryResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentActionsRetryResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentActionsRetryResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentActionsRetryResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentActionsRetryResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentActionsRetryResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -189,7 +210,8 @@ public AddDocumentActionsRetryResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddDocumentActionsRetryResponse - * @throws IOException if the JSON string is invalid with respect to AddDocumentActionsRetryResponse + * @throws IOException if the JSON string is invalid with respect to + * AddDocumentActionsRetryResponse */ public static AddDocumentActionsRetryResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocumentActionsRetryResponse.class); diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java b/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java index 1d5a048cf..0e28089f7 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -68,305 +75,342 @@ import com.formkiq.client.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentAttribute extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AddDocumentAttribute.class.getName()); + private static final Logger log = Logger.getLogger(AddDocumentAttribute.class.getName()); - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAddDocumentAttributeStandard = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeStandard.class)); - final TypeAdapter adapterAddDocumentAttributeClassification = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeClassification.class)); - final TypeAdapter adapterAddDocumentAttributeRelationship = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeRelationship.class)); - final TypeAdapter adapterAddDocumentAttributeEntity = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeEntity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttribute value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `AddDocumentAttributeStandard` - if (value.getActualInstance() instanceof AddDocumentAttributeStandard) { - JsonElement element = adapterAddDocumentAttributeStandard.toJsonTree((AddDocumentAttributeStandard)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `AddDocumentAttributeClassification` - if (value.getActualInstance() instanceof AddDocumentAttributeClassification) { - JsonElement element = adapterAddDocumentAttributeClassification.toJsonTree((AddDocumentAttributeClassification)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `AddDocumentAttributeRelationship` - if (value.getActualInstance() instanceof AddDocumentAttributeRelationship) { - JsonElement element = adapterAddDocumentAttributeRelationship.toJsonTree((AddDocumentAttributeRelationship)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `AddDocumentAttributeEntity` - if (value.getActualInstance() instanceof AddDocumentAttributeEntity) { - JsonElement element = adapterAddDocumentAttributeEntity.toJsonTree((AddDocumentAttributeEntity)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match oneOf schemas: AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard"); - } - - @Override - public AddDocumentAttribute read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - int match = 0; - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize AddDocumentAttributeStandard - try { - // validate the JSON object to see if any exception is thrown - AddDocumentAttributeStandard.validateJsonElement(jsonElement); - actualAdapter = adapterAddDocumentAttributeStandard; - match++; - log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeStandard'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeStandard failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeStandard'", e); - } - // deserialize AddDocumentAttributeClassification - try { - // validate the JSON object to see if any exception is thrown - AddDocumentAttributeClassification.validateJsonElement(jsonElement); - actualAdapter = adapterAddDocumentAttributeClassification; - match++; - log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeClassification'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeClassification failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeClassification'", e); - } - // deserialize AddDocumentAttributeRelationship - try { - // validate the JSON object to see if any exception is thrown - AddDocumentAttributeRelationship.validateJsonElement(jsonElement); - actualAdapter = adapterAddDocumentAttributeRelationship; - match++; - log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeRelationship'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeRelationship failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeRelationship'", e); - } - // deserialize AddDocumentAttributeEntity - try { - // validate the JSON object to see if any exception is thrown - AddDocumentAttributeEntity.validateJsonElement(jsonElement); - actualAdapter = adapterAddDocumentAttributeEntity; - match++; - log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeEntity'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeEntity failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeEntity'", e); - } - - if (match == 1) { - AddDocumentAttribute ret = new AddDocumentAttribute(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } - - throw new IOException(String.format(Locale.ROOT, "Failed deserialization for AddDocumentAttribute: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap>(); - - public AddDocumentAttribute() { - super("oneOf", Boolean.FALSE); - } - - public AddDocumentAttribute(Object o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AddDocumentAttributeStandard", AddDocumentAttributeStandard.class); - schemas.put("AddDocumentAttributeClassification", AddDocumentAttributeClassification.class); - schemas.put("AddDocumentAttributeRelationship", AddDocumentAttributeRelationship.class); - schemas.put("AddDocumentAttributeEntity", AddDocumentAttributeEntity.class); - } - - @Override - public Map> getSchemas() { - return AddDocumentAttribute.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard - * - * It could be an instance of the 'oneOf' schemas. - */ + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") @Override - public void setActualInstance(Object instance) { - if (instance instanceof AddDocumentAttributeStandard) { - super.setActualInstance(instance); + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AddDocumentAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterAddDocumentAttributeStandard = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeStandard.class)); + final TypeAdapter adapterAddDocumentAttributeClassification = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeClassification.class)); + final TypeAdapter adapterAddDocumentAttributeRelationship = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeRelationship.class)); + final TypeAdapter adapterAddDocumentAttributeEntity = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeEntity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttribute value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); return; - } + } - if (instance instanceof AddDocumentAttributeClassification) { - super.setActualInstance(instance); + // check if the actual instance is of the type `AddDocumentAttributeStandard` + if (value.getActualInstance() instanceof AddDocumentAttributeStandard) { + JsonElement element = adapterAddDocumentAttributeStandard + .toJsonTree((AddDocumentAttributeStandard) value.getActualInstance()); + elementAdapter.write(out, element); return; - } - - if (instance instanceof AddDocumentAttributeRelationship) { - super.setActualInstance(instance); + } + // check if the actual instance is of the type `AddDocumentAttributeClassification` + if (value.getActualInstance() instanceof AddDocumentAttributeClassification) { + JsonElement element = adapterAddDocumentAttributeClassification + .toJsonTree((AddDocumentAttributeClassification) value.getActualInstance()); + elementAdapter.write(out, element); return; - } - - if (instance instanceof AddDocumentAttributeEntity) { - super.setActualInstance(instance); + } + // check if the actual instance is of the type `AddDocumentAttributeRelationship` + if (value.getActualInstance() instanceof AddDocumentAttributeRelationship) { + JsonElement element = adapterAddDocumentAttributeRelationship + .toJsonTree((AddDocumentAttributeRelationship) value.getActualInstance()); + elementAdapter.write(out, element); return; + } + // check if the actual instance is of the type `AddDocumentAttributeEntity` + if (value.getActualInstance() instanceof AddDocumentAttributeEntity) { + JsonElement element = adapterAddDocumentAttributeEntity + .toJsonTree((AddDocumentAttributeEntity) value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + throw new IOException( + "Failed to serialize as the type doesn't match oneOf schemas: AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard"); } - throw new RuntimeException("Invalid instance type. Must be AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard"); - } + @Override + public AddDocumentAttribute read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); - /** - * Get the actual instance, which can be the following: - * AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard - * - * @return The actual instance (AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } + int match = 0; + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; - /** - * Get the actual instance of `AddDocumentAttributeStandard`. If the actual instance is not `AddDocumentAttributeStandard`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AddDocumentAttributeStandard` - * @throws ClassCastException if the instance is not `AddDocumentAttributeStandard` - */ - public AddDocumentAttributeStandard getAddDocumentAttributeStandard() throws ClassCastException { - return (AddDocumentAttributeStandard)super.getActualInstance(); + // deserialize AddDocumentAttributeStandard + try { + // validate the JSON object to see if any exception is thrown + AddDocumentAttributeStandard.validateJsonElement(jsonElement); + actualAdapter = adapterAddDocumentAttributeStandard; + match++; + log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeStandard'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddDocumentAttributeStandard failed with `%s`.", + e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeStandard'", + e); + } + // deserialize AddDocumentAttributeClassification + try { + // validate the JSON object to see if any exception is thrown + AddDocumentAttributeClassification.validateJsonElement(jsonElement); + actualAdapter = adapterAddDocumentAttributeClassification; + match++; + log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeClassification'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddDocumentAttributeClassification failed with `%s`.", + e.getMessage())); + log.log(Level.FINER, + "Input data does not match schema 'AddDocumentAttributeClassification'", e); + } + // deserialize AddDocumentAttributeRelationship + try { + // validate the JSON object to see if any exception is thrown + AddDocumentAttributeRelationship.validateJsonElement(jsonElement); + actualAdapter = adapterAddDocumentAttributeRelationship; + match++; + log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeRelationship'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddDocumentAttributeRelationship failed with `%s`.", + e.getMessage())); + log.log(Level.FINER, + "Input data does not match schema 'AddDocumentAttributeRelationship'", e); + } + // deserialize AddDocumentAttributeEntity + try { + // validate the JSON object to see if any exception is thrown + AddDocumentAttributeEntity.validateJsonElement(jsonElement); + actualAdapter = adapterAddDocumentAttributeEntity; + match++; + log.log(Level.FINER, "Input data matches schema 'AddDocumentAttributeEntity'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddDocumentAttributeEntity failed with `%s`.", + e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddDocumentAttributeEntity'", + e); + } + + if (match == 1) { + AddDocumentAttribute ret = new AddDocumentAttribute(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } + + throw new IOException(String.format(Locale.ROOT, + "Failed deserialization for AddDocumentAttribute: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", + match, errorMessages, jsonElement.toString())); + } + }.nullSafe(); } - - /** - * Get the actual instance of `AddDocumentAttributeClassification`. If the actual instance is not `AddDocumentAttributeClassification`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AddDocumentAttributeClassification` - * @throws ClassCastException if the instance is not `AddDocumentAttributeClassification` - */ - public AddDocumentAttributeClassification getAddDocumentAttributeClassification() throws ClassCastException { - return (AddDocumentAttributeClassification)super.getActualInstance(); + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap>(); + + public AddDocumentAttribute() { + super("oneOf", Boolean.FALSE); + } + + public AddDocumentAttribute(Object o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AddDocumentAttributeStandard", AddDocumentAttributeStandard.class); + schemas.put("AddDocumentAttributeClassification", AddDocumentAttributeClassification.class); + schemas.put("AddDocumentAttributeRelationship", AddDocumentAttributeRelationship.class); + schemas.put("AddDocumentAttributeEntity", AddDocumentAttributeEntity.class); + } + + @Override + public Map> getSchemas() { + return AddDocumentAttribute.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: AddDocumentAttributeClassification, + * AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard + * + * It could be an instance of the 'oneOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof AddDocumentAttributeStandard) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `AddDocumentAttributeRelationship`. If the actual instance is not `AddDocumentAttributeRelationship`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AddDocumentAttributeRelationship` - * @throws ClassCastException if the instance is not `AddDocumentAttributeRelationship` - */ - public AddDocumentAttributeRelationship getAddDocumentAttributeRelationship() throws ClassCastException { - return (AddDocumentAttributeRelationship)super.getActualInstance(); + if (instance instanceof AddDocumentAttributeClassification) { + super.setActualInstance(instance); + return; } - /** - * Get the actual instance of `AddDocumentAttributeEntity`. If the actual instance is not `AddDocumentAttributeEntity`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AddDocumentAttributeEntity` - * @throws ClassCastException if the instance is not `AddDocumentAttributeEntity` - */ - public AddDocumentAttributeEntity getAddDocumentAttributeEntity() throws ClassCastException { - return (AddDocumentAttributeEntity)super.getActualInstance(); + if (instance instanceof AddDocumentAttributeRelationship) { + super.setActualInstance(instance); + return; } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttribute - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate oneOf schemas one by one - int validCount = 0; - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with AddDocumentAttributeStandard - try { - AddDocumentAttributeStandard.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeStandard failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with AddDocumentAttributeClassification - try { - AddDocumentAttributeClassification.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeClassification failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with AddDocumentAttributeRelationship - try { - AddDocumentAttributeRelationship.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeRelationship failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with AddDocumentAttributeEntity - try { - AddDocumentAttributeEntity.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddDocumentAttributeEntity failed with `%s`.", e.getMessage())); - // continue to the next one - } - if (validCount != 1) { - throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for AddDocumentAttribute with oneOf schemas: AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); - } + if (instance instanceof AddDocumentAttributeEntity) { + super.setActualInstance(instance); + return; } - /** - * Create an instance of AddDocumentAttribute given an JSON string - * - * @param jsonString JSON string - * @return An instance of AddDocumentAttribute - * @throws IOException if the JSON string is invalid with respect to AddDocumentAttribute - */ - public static AddDocumentAttribute fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AddDocumentAttribute.class); + throw new RuntimeException( + "Invalid instance type. Must be AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard"); + } + + /** + * Get the actual instance, which can be the following: AddDocumentAttributeClassification, + * AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard + * + * @return The actual instance (AddDocumentAttributeClassification, AddDocumentAttributeEntity, + * AddDocumentAttributeRelationship, AddDocumentAttributeStandard) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AddDocumentAttributeStandard`. If the actual instance is not + * `AddDocumentAttributeStandard`, the ClassCastException will be thrown. + * + * @return The actual instance of `AddDocumentAttributeStandard` + * @throws ClassCastException if the instance is not `AddDocumentAttributeStandard` + */ + public AddDocumentAttributeStandard getAddDocumentAttributeStandard() throws ClassCastException { + return (AddDocumentAttributeStandard) super.getActualInstance(); + } + + /** + * Get the actual instance of `AddDocumentAttributeClassification`. If the actual instance is not + * `AddDocumentAttributeClassification`, the ClassCastException will be thrown. + * + * @return The actual instance of `AddDocumentAttributeClassification` + * @throws ClassCastException if the instance is not `AddDocumentAttributeClassification` + */ + public AddDocumentAttributeClassification getAddDocumentAttributeClassification() + throws ClassCastException { + return (AddDocumentAttributeClassification) super.getActualInstance(); + } + + /** + * Get the actual instance of `AddDocumentAttributeRelationship`. If the actual instance is not + * `AddDocumentAttributeRelationship`, the ClassCastException will be thrown. + * + * @return The actual instance of `AddDocumentAttributeRelationship` + * @throws ClassCastException if the instance is not `AddDocumentAttributeRelationship` + */ + public AddDocumentAttributeRelationship getAddDocumentAttributeRelationship() + throws ClassCastException { + return (AddDocumentAttributeRelationship) super.getActualInstance(); + } + + /** + * Get the actual instance of `AddDocumentAttributeEntity`. If the actual instance is not + * `AddDocumentAttributeEntity`, the ClassCastException will be thrown. + * + * @return The actual instance of `AddDocumentAttributeEntity` + * @throws ClassCastException if the instance is not `AddDocumentAttributeEntity` + */ + public AddDocumentAttributeEntity getAddDocumentAttributeEntity() throws ClassCastException { + return (AddDocumentAttributeEntity) super.getActualInstance(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttribute + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate oneOf schemas one by one + int validCount = 0; + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with AddDocumentAttributeStandard + try { + AddDocumentAttributeStandard.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddDocumentAttributeStandard failed with `%s`.", e.getMessage())); + // continue to the next one } - - /** - * Convert an instance of AddDocumentAttribute to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); + // validate the json string with AddDocumentAttributeClassification + try { + AddDocumentAttributeClassification.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddDocumentAttributeClassification failed with `%s`.", + e.getMessage())); + // continue to the next one + } + // validate the json string with AddDocumentAttributeRelationship + try { + AddDocumentAttributeRelationship.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddDocumentAttributeRelationship failed with `%s`.", + e.getMessage())); + // continue to the next one + } + // validate the json string with AddDocumentAttributeEntity + try { + AddDocumentAttributeEntity.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddDocumentAttributeEntity failed with `%s`.", e.getMessage())); + // continue to the next one + } + if (validCount != 1) { + throw new IOException(String.format(Locale.ROOT, + "The JSON string is invalid for AddDocumentAttribute with oneOf schemas: AddDocumentAttributeClassification, AddDocumentAttributeEntity, AddDocumentAttributeRelationship, AddDocumentAttributeStandard. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", + validCount, errorMessages, jsonElement.toString())); } + } + + /** + * Create an instance of AddDocumentAttribute given an JSON string + * + * @param jsonString JSON string + * @return An instance of AddDocumentAttribute + * @throws IOException if the JSON string is invalid with respect to AddDocumentAttribute + */ + public static AddDocumentAttribute fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AddDocumentAttribute.class); + } + + /** + * Convert an instance of AddDocumentAttribute to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java index 8d0422ac6..1a030e4ba 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,23 +57,26 @@ /** * Document Classification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentAttributeClassification { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION_ID) @javax.annotation.Nonnull private String classificationId; - public AddDocumentAttributeClassification() { - } + public AddDocumentAttributeClassification() {} - public AddDocumentAttributeClassification classificationId(@javax.annotation.Nonnull String classificationId) { + public AddDocumentAttributeClassification classificationId( + @javax.annotation.Nonnull String classificationId) { this.classificationId = classificationId; return this; } /** * Classification Identifier + * * @return classificationId */ @javax.annotation.Nonnull @@ -88,8 +98,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocumentAttributeClassification addDocumentAttributeClassification = (AddDocumentAttributeClassification) o; - return Objects.equals(this.classificationId, addDocumentAttributeClassification.classificationId); + AddDocumentAttributeClassification addDocumentAttributeClassification = + (AddDocumentAttributeClassification) o; + return Objects.equals(this.classificationId, + addDocumentAttributeClassification.classificationId); } @Override @@ -107,8 +119,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,61 +144,74 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributeClassification + * @throws IOException if the JSON Element is invalid with respect to + * AddDocumentAttributeClassification */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributeClassification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributeClassification is not found in the empty JSON string", AddDocumentAttributeClassification.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentAttributeClassification.openapiRequiredFields.isEmpty()) { // has required + // fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentAttributeClassification is not found in the empty JSON string", + AddDocumentAttributeClassification.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributeClassification.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeClassification` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributeClassification.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeClassification` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentAttributeClassification.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("classificationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("classificationId").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentAttributeClassification.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("classificationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("classificationId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributeClassification.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributeClassification' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeClassification.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributeClassification value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributeClassification read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributeClassification.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributeClassification' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeClassification.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributeClassification value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributeClassification read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -196,7 +220,8 @@ public AddDocumentAttributeClassification read(JsonReader in) throws IOException * * @param jsonString JSON string * @return An instance of AddDocumentAttributeClassification - * @throws IOException if the JSON string is invalid with respect to AddDocumentAttributeClassification + * @throws IOException if the JSON string is invalid with respect to + * AddDocumentAttributeClassification */ public static AddDocumentAttributeClassification fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocumentAttributeClassification.class); diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java index 35ed42b54..8f28f7077 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * Document Entity Attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentAttributeEntity { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -73,8 +82,7 @@ public class AddDocumentAttributeEntity { @javax.annotation.Nullable private EntityTypeNamespace namespace; - public AddDocumentAttributeEntity() { - } + public AddDocumentAttributeEntity() {} public AddDocumentAttributeEntity key(@javax.annotation.Nonnull String key) { this.key = key; @@ -83,6 +91,7 @@ public AddDocumentAttributeEntity key(@javax.annotation.Nonnull String key) { /** * Attribute key + * * @return key */ @javax.annotation.Nonnull @@ -102,6 +111,7 @@ public AddDocumentAttributeEntity entityTypeId(@javax.annotation.Nonnull String /** * EntityType Identifier or Entity Type Name + * * @return entityTypeId */ @javax.annotation.Nonnull @@ -121,6 +131,7 @@ public AddDocumentAttributeEntity entityId(@javax.annotation.Nonnull String enti /** * Entity Identifier + * * @return entityId */ @javax.annotation.Nonnull @@ -133,13 +144,15 @@ public void setEntityId(@javax.annotation.Nonnull String entityId) { } - public AddDocumentAttributeEntity namespace(@javax.annotation.Nullable EntityTypeNamespace namespace) { + public AddDocumentAttributeEntity namespace( + @javax.annotation.Nullable EntityTypeNamespace namespace) { this.namespace = namespace; return this; } /** * Get namespace + * * @return namespace */ @javax.annotation.Nullable @@ -162,10 +175,10 @@ public boolean equals(Object o) { return false; } AddDocumentAttributeEntity addDocumentAttributeEntity = (AddDocumentAttributeEntity) o; - return Objects.equals(this.key, addDocumentAttributeEntity.key) && - Objects.equals(this.entityTypeId, addDocumentAttributeEntity.entityTypeId) && - Objects.equals(this.entityId, addDocumentAttributeEntity.entityId) && - Objects.equals(this.namespace, addDocumentAttributeEntity.namespace); + return Objects.equals(this.key, addDocumentAttributeEntity.key) + && Objects.equals(this.entityTypeId, addDocumentAttributeEntity.entityTypeId) + && Objects.equals(this.entityId, addDocumentAttributeEntity.entityId) + && Objects.equals(this.namespace, addDocumentAttributeEntity.namespace); } @Override @@ -186,8 +199,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -202,7 +214,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "entityTypeId", "entityId", "namespace")); + openapiFields = + new HashSet(Arrays.asList("key", "entityTypeId", "entityId", "namespace")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("key", "entityTypeId", "entityId")); @@ -215,68 +228,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributeEntity */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributeEntity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributeEntity is not found in the empty JSON string", AddDocumentAttributeEntity.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentAttributeEntity.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentAttributeEntity is not found in the empty JSON string", + AddDocumentAttributeEntity.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributeEntity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeEntity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributeEntity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeEntity` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentAttributeEntity.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if (!jsonObj.get("entityTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityTypeId").toString())); - } - if (!jsonObj.get("entityId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityId").toString())); - } - // validate the optional field `namespace` - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { - EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentAttributeEntity.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if (!jsonObj.get("entityTypeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("entityTypeId").toString())); + } + if (!jsonObj.get("entityId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("entityId").toString())); + } + // validate the optional field `namespace` + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { + EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributeEntity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributeEntity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeEntity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributeEntity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributeEntity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributeEntity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributeEntity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeEntity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributeEntity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributeEntity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java index 385233a0a..b03c37e32 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * Document Relationship */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentAttributeRelationship { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -68,8 +77,7 @@ public class AddDocumentAttributeRelationship { @javax.annotation.Nullable private DocumentRelationshipType inverseRelationship; - public AddDocumentAttributeRelationship() { - } + public AddDocumentAttributeRelationship() {} public AddDocumentAttributeRelationship documentId(@javax.annotation.Nonnull String documentId) { this.documentId = documentId; @@ -78,6 +86,7 @@ public AddDocumentAttributeRelationship documentId(@javax.annotation.Nonnull Str /** * Relationship To Document Identifier + * * @return documentId */ @javax.annotation.Nonnull @@ -90,13 +99,15 @@ public void setDocumentId(@javax.annotation.Nonnull String documentId) { } - public AddDocumentAttributeRelationship relationship(@javax.annotation.Nonnull DocumentRelationshipType relationship) { + public AddDocumentAttributeRelationship relationship( + @javax.annotation.Nonnull DocumentRelationshipType relationship) { this.relationship = relationship; return this; } /** * Get relationship + * * @return relationship */ @javax.annotation.Nonnull @@ -109,13 +120,15 @@ public void setRelationship(@javax.annotation.Nonnull DocumentRelationshipType r } - public AddDocumentAttributeRelationship inverseRelationship(@javax.annotation.Nullable DocumentRelationshipType inverseRelationship) { + public AddDocumentAttributeRelationship inverseRelationship( + @javax.annotation.Nullable DocumentRelationshipType inverseRelationship) { this.inverseRelationship = inverseRelationship; return this; } /** * Get inverseRelationship + * * @return inverseRelationship */ @javax.annotation.Nullable @@ -123,7 +136,8 @@ public DocumentRelationshipType getInverseRelationship() { return inverseRelationship; } - public void setInverseRelationship(@javax.annotation.Nullable DocumentRelationshipType inverseRelationship) { + public void setInverseRelationship( + @javax.annotation.Nullable DocumentRelationshipType inverseRelationship) { this.inverseRelationship = inverseRelationship; } @@ -137,10 +151,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocumentAttributeRelationship addDocumentAttributeRelationship = (AddDocumentAttributeRelationship) o; - return Objects.equals(this.documentId, addDocumentAttributeRelationship.documentId) && - Objects.equals(this.relationship, addDocumentAttributeRelationship.relationship) && - Objects.equals(this.inverseRelationship, addDocumentAttributeRelationship.inverseRelationship); + AddDocumentAttributeRelationship addDocumentAttributeRelationship = + (AddDocumentAttributeRelationship) o; + return Objects.equals(this.documentId, addDocumentAttributeRelationship.documentId) + && Objects.equals(this.relationship, addDocumentAttributeRelationship.relationship) + && Objects.equals(this.inverseRelationship, + addDocumentAttributeRelationship.inverseRelationship); } @Override @@ -154,14 +170,14 @@ public String toString() { sb.append("class AddDocumentAttributeRelationship {\n"); sb.append(" documentId: ").append(toIndentedString(documentId)).append("\n"); sb.append(" relationship: ").append(toIndentedString(relationship)).append("\n"); - sb.append(" inverseRelationship: ").append(toIndentedString(inverseRelationship)).append("\n"); + sb.append(" inverseRelationship: ").append(toIndentedString(inverseRelationship)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -176,7 +192,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("documentId", "relationship", "inverseRelationship")); + openapiFields = + new HashSet(Arrays.asList("documentId", "relationship", "inverseRelationship")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("documentId", "relationship")); @@ -186,67 +203,81 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributeRelationship + * @throws IOException if the JSON Element is invalid with respect to + * AddDocumentAttributeRelationship */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributeRelationship.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributeRelationship is not found in the empty JSON string", AddDocumentAttributeRelationship.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentAttributeRelationship.openapiRequiredFields.isEmpty()) { // has required + // fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentAttributeRelationship is not found in the empty JSON string", + AddDocumentAttributeRelationship.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributeRelationship.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeRelationship` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributeRelationship.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeRelationship` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentAttributeRelationship.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - // validate the required field `relationship` - DocumentRelationshipType.validateJsonElement(jsonObj.get("relationship")); - // validate the optional field `inverseRelationship` - if (jsonObj.get("inverseRelationship") != null && !jsonObj.get("inverseRelationship").isJsonNull()) { - DocumentRelationshipType.validateJsonElement(jsonObj.get("inverseRelationship")); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentAttributeRelationship.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + // validate the required field `relationship` + DocumentRelationshipType.validateJsonElement(jsonObj.get("relationship")); + // validate the optional field `inverseRelationship` + if (jsonObj.get("inverseRelationship") != null + && !jsonObj.get("inverseRelationship").isJsonNull()) { + DocumentRelationshipType.validateJsonElement(jsonObj.get("inverseRelationship")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributeRelationship.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributeRelationship' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeRelationship.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributeRelationship value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributeRelationship read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributeRelationship.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributeRelationship' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeRelationship.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributeRelationship value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributeRelationship read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -255,7 +286,8 @@ public AddDocumentAttributeRelationship read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddDocumentAttributeRelationship - * @throws IOException if the JSON string is invalid with respect to AddDocumentAttributeRelationship + * @throws IOException if the JSON string is invalid with respect to + * AddDocumentAttributeRelationship */ public static AddDocumentAttributeRelationship fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocumentAttributeRelationship.class); diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java index e910784c3..f81421f1e 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * Document Attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentAttributeStandard { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -85,8 +94,7 @@ public class AddDocumentAttributeStandard { @javax.annotation.Nullable private Boolean booleanValue; - public AddDocumentAttributeStandard() { - } + public AddDocumentAttributeStandard() {} public AddDocumentAttributeStandard key(@javax.annotation.Nonnull String key) { this.key = key; @@ -95,6 +103,7 @@ public AddDocumentAttributeStandard key(@javax.annotation.Nonnull String key) { /** * Attribute key + * * @return key */ @javax.annotation.Nonnull @@ -114,6 +123,7 @@ public AddDocumentAttributeStandard stringValue(@javax.annotation.Nullable Strin /** * Attribute with string value + * * @return stringValue */ @javax.annotation.Nullable @@ -126,7 +136,8 @@ public void setStringValue(@javax.annotation.Nullable String stringValue) { } - public AddDocumentAttributeStandard stringValues(@javax.annotation.Nullable List stringValues) { + public AddDocumentAttributeStandard stringValues( + @javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; return this; } @@ -141,6 +152,7 @@ public AddDocumentAttributeStandard addStringValuesItem(String stringValuesItem) /** * Attribute with string values + * * @return stringValues */ @javax.annotation.Nullable @@ -153,13 +165,15 @@ public void setStringValues(@javax.annotation.Nullable List stringValues } - public AddDocumentAttributeStandard numberValue(@javax.annotation.Nullable BigDecimal numberValue) { + public AddDocumentAttributeStandard numberValue( + @javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; return this; } /** * Attribute with number value + * * @return numberValue */ @javax.annotation.Nullable @@ -172,7 +186,8 @@ public void setNumberValue(@javax.annotation.Nullable BigDecimal numberValue) { } - public AddDocumentAttributeStandard numberValues(@javax.annotation.Nullable List numberValues) { + public AddDocumentAttributeStandard numberValues( + @javax.annotation.Nullable List numberValues) { this.numberValues = numberValues; return this; } @@ -187,6 +202,7 @@ public AddDocumentAttributeStandard addNumberValuesItem(BigDecimal numberValuesI /** * Attribute with number values + * * @return numberValues */ @javax.annotation.Nullable @@ -199,13 +215,15 @@ public void setNumberValues(@javax.annotation.Nullable List numberVa } - public AddDocumentAttributeStandard booleanValue(@javax.annotation.Nullable Boolean booleanValue) { + public AddDocumentAttributeStandard booleanValue( + @javax.annotation.Nullable Boolean booleanValue) { this.booleanValue = booleanValue; return this; } /** * Attribute with boolean value + * * @return booleanValue */ @javax.annotation.Nullable @@ -228,12 +246,12 @@ public boolean equals(Object o) { return false; } AddDocumentAttributeStandard addDocumentAttributeStandard = (AddDocumentAttributeStandard) o; - return Objects.equals(this.key, addDocumentAttributeStandard.key) && - Objects.equals(this.stringValue, addDocumentAttributeStandard.stringValue) && - Objects.equals(this.stringValues, addDocumentAttributeStandard.stringValues) && - Objects.equals(this.numberValue, addDocumentAttributeStandard.numberValue) && - Objects.equals(this.numberValues, addDocumentAttributeStandard.numberValues) && - Objects.equals(this.booleanValue, addDocumentAttributeStandard.booleanValue); + return Objects.equals(this.key, addDocumentAttributeStandard.key) + && Objects.equals(this.stringValue, addDocumentAttributeStandard.stringValue) + && Objects.equals(this.stringValues, addDocumentAttributeStandard.stringValues) + && Objects.equals(this.numberValue, addDocumentAttributeStandard.numberValue) + && Objects.equals(this.numberValues, addDocumentAttributeStandard.numberValues) + && Objects.equals(this.booleanValue, addDocumentAttributeStandard.booleanValue); } @Override @@ -256,8 +274,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -272,7 +289,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", "numberValue", "numberValues", "booleanValue")); + openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", + "numberValue", "numberValues", "booleanValue")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("key")); @@ -285,69 +303,88 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributeStandard */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributeStandard.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributeStandard is not found in the empty JSON string", AddDocumentAttributeStandard.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentAttributeStandard.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentAttributeStandard is not found in the empty JSON string", + AddDocumentAttributeStandard.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributeStandard.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeStandard` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributeStandard.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeStandard` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentAttributeStandard.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentAttributeStandard.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) + && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stringValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() + && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValues` to be an array in the JSON string but got `%s`", + jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() + && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberValues` to be an array in the JSON string but got `%s`", + jsonObj.get("numberValues").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributeStandard.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributeStandard' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeStandard.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributeStandard value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributeStandard read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributeStandard.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributeStandard' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeStandard.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributeStandard value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributeStandard read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java index 3f5edd23f..d772595e9 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * Document Attribute Value */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentAttributeValue { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; @SerializedName(SERIALIZED_NAME_STRING_VALUE) @@ -80,8 +89,7 @@ public class AddDocumentAttributeValue { @javax.annotation.Nullable private Boolean booleanValue; - public AddDocumentAttributeValue() { - } + public AddDocumentAttributeValue() {} public AddDocumentAttributeValue stringValue(@javax.annotation.Nullable String stringValue) { this.stringValue = stringValue; @@ -90,6 +98,7 @@ public AddDocumentAttributeValue stringValue(@javax.annotation.Nullable String s /** * Attribute with string value + * * @return stringValue */ @javax.annotation.Nullable @@ -102,7 +111,8 @@ public void setStringValue(@javax.annotation.Nullable String stringValue) { } - public AddDocumentAttributeValue stringValues(@javax.annotation.Nullable List stringValues) { + public AddDocumentAttributeValue stringValues( + @javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; return this; } @@ -117,6 +127,7 @@ public AddDocumentAttributeValue addStringValuesItem(String stringValuesItem) { /** * Attribute with string values + * * @return stringValues */ @javax.annotation.Nullable @@ -136,6 +147,7 @@ public AddDocumentAttributeValue numberValue(@javax.annotation.Nullable BigDecim /** * Attribute with number value + * * @return numberValue */ @javax.annotation.Nullable @@ -148,7 +160,8 @@ public void setNumberValue(@javax.annotation.Nullable BigDecimal numberValue) { } - public AddDocumentAttributeValue numberValues(@javax.annotation.Nullable List numberValues) { + public AddDocumentAttributeValue numberValues( + @javax.annotation.Nullable List numberValues) { this.numberValues = numberValues; return this; } @@ -163,6 +176,7 @@ public AddDocumentAttributeValue addNumberValuesItem(BigDecimal numberValuesItem /** * Attribute with number values + * * @return numberValues */ @javax.annotation.Nullable @@ -182,6 +196,7 @@ public AddDocumentAttributeValue booleanValue(@javax.annotation.Nullable Boolean /** * Attribute with boolean value + * * @return booleanValue */ @javax.annotation.Nullable @@ -204,11 +219,11 @@ public boolean equals(Object o) { return false; } AddDocumentAttributeValue addDocumentAttributeValue = (AddDocumentAttributeValue) o; - return Objects.equals(this.stringValue, addDocumentAttributeValue.stringValue) && - Objects.equals(this.stringValues, addDocumentAttributeValue.stringValues) && - Objects.equals(this.numberValue, addDocumentAttributeValue.numberValue) && - Objects.equals(this.numberValues, addDocumentAttributeValue.numberValues) && - Objects.equals(this.booleanValue, addDocumentAttributeValue.booleanValue); + return Objects.equals(this.stringValue, addDocumentAttributeValue.stringValue) + && Objects.equals(this.stringValues, addDocumentAttributeValue.stringValues) + && Objects.equals(this.numberValue, addDocumentAttributeValue.numberValue) + && Objects.equals(this.numberValues, addDocumentAttributeValue.numberValues) + && Objects.equals(this.booleanValue, addDocumentAttributeValue.booleanValue); } @Override @@ -230,8 +245,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -246,7 +260,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("stringValue", "stringValues", "numberValue", "numberValues", "booleanValue")); + openapiFields = new HashSet(Arrays.asList("stringValue", "stringValues", "numberValue", + "numberValues", "booleanValue")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -259,59 +274,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributeValue */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributeValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributeValue is not found in the empty JSON string", AddDocumentAttributeValue.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentAttributeValue.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentAttributeValue is not found in the empty JSON string", + AddDocumentAttributeValue.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributeValue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeValue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributeValue.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentAttributeValue` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) + && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stringValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() + && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValues` to be an array in the JSON string but got `%s`", + jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() + && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberValues` to be an array in the JSON string but got `%s`", + jsonObj.get("numberValues").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributeValue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributeValue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeValue.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributeValue value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributeValue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributeValue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributeValue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributeValue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributeValue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributeValue read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java index bb131af39..68c25b02e 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * Add List of document attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentAttributesRequest { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public AddDocumentAttributesRequest() { - } + public AddDocumentAttributesRequest() {} - public AddDocumentAttributesRequest attributes(@javax.annotation.Nullable List attributes) { + public AddDocumentAttributesRequest attributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -78,6 +87,7 @@ public AddDocumentAttributesRequest addAttributesItem(AddDocumentAttribute attri /** * List of document attributes + * * @return attributes */ @javax.annotation.Nullable @@ -118,8 +128,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +156,70 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentAttributesRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentAttributesRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentAttributesRequest is not found in the empty JSON string", AddDocumentAttributesRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentAttributesRequest.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentAttributesRequest is not found in the empty JSON string", + AddDocumentAttributesRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentAttributesRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentAttributesRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentAttributesRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentAttributesRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentAttributesRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentAttributesRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributesRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentAttributesRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentAttributesRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentAttributesRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentAttributesRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentAttributesRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentAttributesRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentAttributesRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java index d1f0c4b19..901b8f74e 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -58,7 +65,9 @@ /** * AddDocumentFulltextRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) @@ -120,8 +129,7 @@ public class AddDocumentFulltextRequest { @javax.annotation.Nullable private Map attributes = new HashMap<>(); - public AddDocumentFulltextRequest() { - } + public AddDocumentFulltextRequest() {} public AddDocumentFulltextRequest contentType(@javax.annotation.Nullable String contentType) { this.contentType = contentType; @@ -130,6 +138,7 @@ public AddDocumentFulltextRequest contentType(@javax.annotation.Nullable String /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -149,6 +158,7 @@ public AddDocumentFulltextRequest content(@javax.annotation.Nullable String cont /** * Document content + * * @return content */ @javax.annotation.Nullable @@ -161,7 +171,8 @@ public void setContent(@javax.annotation.Nullable String content) { } - public AddDocumentFulltextRequest contentUrls(@javax.annotation.Nullable List contentUrls) { + public AddDocumentFulltextRequest contentUrls( + @javax.annotation.Nullable List contentUrls) { this.contentUrls = contentUrls; return this; } @@ -176,6 +187,7 @@ public AddDocumentFulltextRequest addContentUrlsItem(String contentUrlsItem) { /** * URL(s) which contain document content + * * @return contentUrls */ @javax.annotation.Nullable @@ -195,6 +207,7 @@ public AddDocumentFulltextRequest path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -214,6 +227,7 @@ public AddDocumentFulltextRequest width(@javax.annotation.Nullable String width) /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -233,6 +247,7 @@ public AddDocumentFulltextRequest height(@javax.annotation.Nullable String heigh /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -252,6 +267,7 @@ public AddDocumentFulltextRequest deepLinkPath(@javax.annotation.Nullable String /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -271,6 +287,7 @@ public AddDocumentFulltextRequest checksum(@javax.annotation.Nullable String che /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -283,13 +300,15 @@ public void setChecksum(@javax.annotation.Nullable String checksum) { } - public AddDocumentFulltextRequest checksumType(@javax.annotation.Nullable ChecksumType checksumType) { + public AddDocumentFulltextRequest checksumType( + @javax.annotation.Nullable ChecksumType checksumType) { this.checksumType = checksumType; return this; } /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -317,6 +336,7 @@ public AddDocumentFulltextRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags + * * @return tags */ @javax.annotation.Nullable @@ -329,7 +349,8 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public AddDocumentFulltextRequest metadata(@javax.annotation.Nullable List metadata) { + public AddDocumentFulltextRequest metadata( + @javax.annotation.Nullable List metadata) { this.metadata = metadata; return this; } @@ -344,6 +365,7 @@ public AddDocumentFulltextRequest addMetadataItem(AddDocumentMetadata metadataIt /** * List of document Metadata + * * @return metadata */ @javax.annotation.Nullable @@ -356,12 +378,14 @@ public void setMetadata(@javax.annotation.Nullable List met } - public AddDocumentFulltextRequest attributes(@javax.annotation.Nullable Map attributes) { + public AddDocumentFulltextRequest attributes( + @javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } - public AddDocumentFulltextRequest putAttributesItem(String key, FulltextAttribute attributesItem) { + public AddDocumentFulltextRequest putAttributesItem(String key, + FulltextAttribute attributesItem) { if (this.attributes == null) { this.attributes = new HashMap<>(); } @@ -371,6 +395,7 @@ public AddDocumentFulltextRequest putAttributesItem(String key, FulltextAttribut /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -393,23 +418,24 @@ public boolean equals(Object o) { return false; } AddDocumentFulltextRequest addDocumentFulltextRequest = (AddDocumentFulltextRequest) o; - return Objects.equals(this.contentType, addDocumentFulltextRequest.contentType) && - Objects.equals(this.content, addDocumentFulltextRequest.content) && - Objects.equals(this.contentUrls, addDocumentFulltextRequest.contentUrls) && - Objects.equals(this.path, addDocumentFulltextRequest.path) && - Objects.equals(this.width, addDocumentFulltextRequest.width) && - Objects.equals(this.height, addDocumentFulltextRequest.height) && - Objects.equals(this.deepLinkPath, addDocumentFulltextRequest.deepLinkPath) && - Objects.equals(this.checksum, addDocumentFulltextRequest.checksum) && - Objects.equals(this.checksumType, addDocumentFulltextRequest.checksumType) && - Objects.equals(this.tags, addDocumentFulltextRequest.tags) && - Objects.equals(this.metadata, addDocumentFulltextRequest.metadata) && - Objects.equals(this.attributes, addDocumentFulltextRequest.attributes); + return Objects.equals(this.contentType, addDocumentFulltextRequest.contentType) + && Objects.equals(this.content, addDocumentFulltextRequest.content) + && Objects.equals(this.contentUrls, addDocumentFulltextRequest.contentUrls) + && Objects.equals(this.path, addDocumentFulltextRequest.path) + && Objects.equals(this.width, addDocumentFulltextRequest.width) + && Objects.equals(this.height, addDocumentFulltextRequest.height) + && Objects.equals(this.deepLinkPath, addDocumentFulltextRequest.deepLinkPath) + && Objects.equals(this.checksum, addDocumentFulltextRequest.checksum) + && Objects.equals(this.checksumType, addDocumentFulltextRequest.checksumType) + && Objects.equals(this.tags, addDocumentFulltextRequest.tags) + && Objects.equals(this.metadata, addDocumentFulltextRequest.metadata) + && Objects.equals(this.attributes, addDocumentFulltextRequest.attributes); } @Override public int hashCode() { - return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, checksum, checksumType, tags, metadata, attributes); + return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, + checksum, checksumType, tags, metadata, attributes); } @Override @@ -433,8 +459,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -449,7 +474,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); + openapiFields = new HashSet( + Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", + "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -462,105 +489,138 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentFulltextRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentFulltextRequest is not found in the empty JSON string", AddDocumentFulltextRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentFulltextRequest is not found in the empty JSON string", + AddDocumentFulltextRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentFulltextRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() && !jsonObj.get("contentUrls").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", jsonObj.get("contentUrls").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentFulltextRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) + && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() + && !jsonObj.get("contentUrls").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", + jsonObj.get("contentUrls").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - }; + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `metadata` to be an array in the JSON string but got `%s`", + jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentFulltextRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentFulltextRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentFulltextRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentFulltextRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentFulltextRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentFulltextRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentFulltextRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentFulltextRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java index 7325dc570..943296a99 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddDocumentFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentFulltextResponse() { - } + public AddDocumentFulltextResponse() {} public AddDocumentFulltextResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public AddDocumentFulltextResponse message(@javax.annotation.Nullable String mes /** * Full text processing message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentFulltextResponse is not found in the empty JSON string", AddDocumentFulltextResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentFulltextResponse is not found in the empty JSON string", + AddDocumentFulltextResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentFulltextResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java index a8b62b029..510a9d215 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -56,7 +63,9 @@ /** * AddDocumentGenerateRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentGenerateRequest { public static final String SERIALIZED_NAME_LOCALE = "locale"; @SerializedName(SERIALIZED_NAME_LOCALE) @@ -88,8 +97,7 @@ public class AddDocumentGenerateRequest { @javax.annotation.Nullable private String path; - public AddDocumentGenerateRequest() { - } + public AddDocumentGenerateRequest() {} public AddDocumentGenerateRequest locale(@javax.annotation.Nullable LocaleInfo locale) { this.locale = locale; @@ -98,6 +106,7 @@ public AddDocumentGenerateRequest locale(@javax.annotation.Nullable LocaleInfo l /** * Get locale + * * @return locale */ @javax.annotation.Nullable @@ -110,12 +119,14 @@ public void setLocale(@javax.annotation.Nullable LocaleInfo locale) { } - public AddDocumentGenerateRequest insertDocuments(@javax.annotation.Nullable List insertDocuments) { + public AddDocumentGenerateRequest insertDocuments( + @javax.annotation.Nullable List insertDocuments) { this.insertDocuments = insertDocuments; return this; } - public AddDocumentGenerateRequest addInsertDocumentsItem(DocumentGenerateInsertDocument insertDocumentsItem) { + public AddDocumentGenerateRequest addInsertDocumentsItem( + DocumentGenerateInsertDocument insertDocumentsItem) { if (this.insertDocuments == null) { this.insertDocuments = new ArrayList<>(); } @@ -125,6 +136,7 @@ public AddDocumentGenerateRequest addInsertDocumentsItem(DocumentGenerateInsertD /** * List of documents to insert + * * @return insertDocuments */ @javax.annotation.Nullable @@ -132,12 +144,14 @@ public List getInsertDocuments() { return insertDocuments; } - public void setInsertDocuments(@javax.annotation.Nullable List insertDocuments) { + public void setInsertDocuments( + @javax.annotation.Nullable List insertDocuments) { this.insertDocuments = insertDocuments; } - public AddDocumentGenerateRequest datasources(@javax.annotation.Nullable List datasources) { + public AddDocumentGenerateRequest datasources( + @javax.annotation.Nullable List datasources) { this.datasources = datasources; return this; } @@ -152,6 +166,7 @@ public AddDocumentGenerateRequest addDatasourcesItem(DocumentGenerateDataSource /** * List of data sources + * * @return datasources */ @javax.annotation.Nullable @@ -159,18 +174,21 @@ public List getDatasources() { return datasources; } - public void setDatasources(@javax.annotation.Nullable List datasources) { + public void setDatasources( + @javax.annotation.Nullable List datasources) { this.datasources = datasources; } - public AddDocumentGenerateRequest outputType(@javax.annotation.Nullable DocumentGenerateOutputType outputType) { + public AddDocumentGenerateRequest outputType( + @javax.annotation.Nullable DocumentGenerateOutputType outputType) { this.outputType = outputType; return this; } /** * Get outputType + * * @return outputType */ @javax.annotation.Nullable @@ -183,13 +201,15 @@ public void setOutputType(@javax.annotation.Nullable DocumentGenerateOutputType } - public AddDocumentGenerateRequest saveAsDocumentId(@javax.annotation.Nullable String saveAsDocumentId) { + public AddDocumentGenerateRequest saveAsDocumentId( + @javax.annotation.Nullable String saveAsDocumentId) { this.saveAsDocumentId = saveAsDocumentId; return this; } /** * Save the generated document with a specific documentId + * * @return saveAsDocumentId */ @javax.annotation.Nullable @@ -209,6 +229,7 @@ public AddDocumentGenerateRequest path(@javax.annotation.Nullable String path) { /** * The path of the generated document + * * @return path */ @javax.annotation.Nullable @@ -231,12 +252,12 @@ public boolean equals(Object o) { return false; } AddDocumentGenerateRequest addDocumentGenerateRequest = (AddDocumentGenerateRequest) o; - return Objects.equals(this.locale, addDocumentGenerateRequest.locale) && - Objects.equals(this.insertDocuments, addDocumentGenerateRequest.insertDocuments) && - Objects.equals(this.datasources, addDocumentGenerateRequest.datasources) && - Objects.equals(this.outputType, addDocumentGenerateRequest.outputType) && - Objects.equals(this.saveAsDocumentId, addDocumentGenerateRequest.saveAsDocumentId) && - Objects.equals(this.path, addDocumentGenerateRequest.path); + return Objects.equals(this.locale, addDocumentGenerateRequest.locale) + && Objects.equals(this.insertDocuments, addDocumentGenerateRequest.insertDocuments) + && Objects.equals(this.datasources, addDocumentGenerateRequest.datasources) + && Objects.equals(this.outputType, addDocumentGenerateRequest.outputType) + && Objects.equals(this.saveAsDocumentId, addDocumentGenerateRequest.saveAsDocumentId) + && Objects.equals(this.path, addDocumentGenerateRequest.path); } @Override @@ -259,8 +280,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -275,7 +295,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("locale", "insertDocuments", "datasources", "outputType", "saveAsDocumentId", "path")); + openapiFields = new HashSet(Arrays.asList("locale", "insertDocuments", "datasources", + "outputType", "saveAsDocumentId", "path")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -288,90 +309,105 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentGenerateRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentGenerateRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentGenerateRequest is not found in the empty JSON string", AddDocumentGenerateRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentGenerateRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentGenerateRequest is not found in the empty JSON string", + AddDocumentGenerateRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentGenerateRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentGenerateRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `locale` - if (jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) { - LocaleInfo.validateJsonElement(jsonObj.get("locale")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentGenerateRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentGenerateRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if (jsonObj.get("insertDocuments") != null && !jsonObj.get("insertDocuments").isJsonNull()) { - JsonArray jsonArrayinsertDocuments = jsonObj.getAsJsonArray("insertDocuments"); - if (jsonArrayinsertDocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("insertDocuments").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertDocuments` to be an array in the JSON string but got `%s`", jsonObj.get("insertDocuments").toString())); - } - - // validate the optional field `insertDocuments` (array) - for (int i = 0; i < jsonArrayinsertDocuments.size(); i++) { - DocumentGenerateInsertDocument.validateJsonElement(jsonArrayinsertDocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `locale` + if (jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) { + LocaleInfo.validateJsonElement(jsonObj.get("locale")); + } + if (jsonObj.get("insertDocuments") != null && !jsonObj.get("insertDocuments").isJsonNull()) { + JsonArray jsonArrayinsertDocuments = jsonObj.getAsJsonArray("insertDocuments"); + if (jsonArrayinsertDocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("insertDocuments").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertDocuments` to be an array in the JSON string but got `%s`", + jsonObj.get("insertDocuments").toString())); } + + // validate the optional field `insertDocuments` (array) + for (int i = 0; i < jsonArrayinsertDocuments.size(); i++) { + DocumentGenerateInsertDocument.validateJsonElement(jsonArrayinsertDocuments.get(i)); + } ; } - if (jsonObj.get("datasources") != null && !jsonObj.get("datasources").isJsonNull()) { - JsonArray jsonArraydatasources = jsonObj.getAsJsonArray("datasources"); - if (jsonArraydatasources != null) { - // ensure the json data is an array - if (!jsonObj.get("datasources").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `datasources` to be an array in the JSON string but got `%s`", jsonObj.get("datasources").toString())); - } - - // validate the optional field `datasources` (array) - for (int i = 0; i < jsonArraydatasources.size(); i++) { - DocumentGenerateDataSource.validateJsonElement(jsonArraydatasources.get(i)); - }; + } + if (jsonObj.get("datasources") != null && !jsonObj.get("datasources").isJsonNull()) { + JsonArray jsonArraydatasources = jsonObj.getAsJsonArray("datasources"); + if (jsonArraydatasources != null) { + // ensure the json data is an array + if (!jsonObj.get("datasources").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `datasources` to be an array in the JSON string but got `%s`", + jsonObj.get("datasources").toString())); } + + // validate the optional field `datasources` (array) + for (int i = 0; i < jsonArraydatasources.size(); i++) { + DocumentGenerateDataSource.validateJsonElement(jsonArraydatasources.get(i)); + } ; } - // validate the optional field `outputType` - if (jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) { - DocumentGenerateOutputType.validateJsonElement(jsonObj.get("outputType")); - } - if ((jsonObj.get("saveAsDocumentId") != null && !jsonObj.get("saveAsDocumentId").isJsonNull()) && !jsonObj.get("saveAsDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `saveAsDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("saveAsDocumentId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } + } + // validate the optional field `outputType` + if (jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) { + DocumentGenerateOutputType.validateJsonElement(jsonObj.get("outputType")); + } + if ((jsonObj.get("saveAsDocumentId") != null && !jsonObj.get("saveAsDocumentId").isJsonNull()) + && !jsonObj.get("saveAsDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `saveAsDocumentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("saveAsDocumentId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentGenerateRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentGenerateRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentGenerateRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentGenerateRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentGenerateRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentGenerateRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentGenerateRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentGenerateRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentGenerateRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentGenerateRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java index 5501535ca..c15025803 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddDocumentGenerateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentGenerateResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @javax.annotation.Nullable private String documentId; - public AddDocumentGenerateResponse() { - } + public AddDocumentGenerateResponse() {} public AddDocumentGenerateResponse documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -67,6 +75,7 @@ public AddDocumentGenerateResponse documentId(@javax.annotation.Nullable String /** * Generated document identifier + * * @return documentId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentGenerateResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentGenerateResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentGenerateResponse is not found in the empty JSON string", AddDocumentGenerateResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentGenerateResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentGenerateResponse is not found in the empty JSON string", + AddDocumentGenerateResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentGenerateResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentGenerateResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentGenerateResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentGenerateResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentGenerateResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentGenerateResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentGenerateResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentGenerateResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentGenerateResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentGenerateResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentGenerateResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentGenerateResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentGenerateResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentGenerateResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java b/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java index 26166dd25..da5a4d866 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * Document Metadata (use either 'value' or 'values' not both) */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentMetadata { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -69,8 +78,7 @@ public class AddDocumentMetadata { @javax.annotation.Nullable private List values = new ArrayList<>(); - public AddDocumentMetadata() { - } + public AddDocumentMetadata() {} public AddDocumentMetadata key(@javax.annotation.Nonnull String key) { this.key = key; @@ -79,6 +87,7 @@ public AddDocumentMetadata key(@javax.annotation.Nonnull String key) { /** * Metadata key + * * @return key */ @javax.annotation.Nonnull @@ -98,6 +107,7 @@ public AddDocumentMetadata value(@javax.annotation.Nullable String value) { /** * Metadata value + * * @return value */ @javax.annotation.Nullable @@ -125,6 +135,7 @@ public AddDocumentMetadata addValuesItem(String valuesItem) { /** * Metadata values + * * @return values */ @javax.annotation.Nullable @@ -147,9 +158,9 @@ public boolean equals(Object o) { return false; } AddDocumentMetadata addDocumentMetadata = (AddDocumentMetadata) o; - return Objects.equals(this.key, addDocumentMetadata.key) && - Objects.equals(this.value, addDocumentMetadata.value) && - Objects.equals(this.values, addDocumentMetadata.values); + return Objects.equals(this.key, addDocumentMetadata.key) + && Objects.equals(this.value, addDocumentMetadata.value) + && Objects.equals(this.values, addDocumentMetadata.values); } @Override @@ -169,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,65 +208,80 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentMetadata */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentMetadata is not found in the empty JSON string", AddDocumentMetadata.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentMetadata is not found in the empty JSON string", + AddDocumentMetadata.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentMetadata.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentMetadata.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentMetadata` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentMetadata.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentMetadata.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() + && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `values` to be an array in the JSON string but got `%s`", + jsonObj.get("values").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentMetadata.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentMetadata' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentMetadata.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentMetadata value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentMetadata read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentMetadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentMetadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentMetadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentMetadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentMetadata read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java index a38a65d58..11f7dfdda 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * AddDocumentOcrRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentOcrRequest { public static final String SERIALIZED_NAME_TEXTRACT_QUERIES = "textractQueries"; @SerializedName(SERIALIZED_NAME_TEXTRACT_QUERIES) @@ -67,7 +76,8 @@ public class AddDocumentOcrRequest { @javax.annotation.Nullable private List parseTypes = new ArrayList<>(); - public static final String SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT = "addPdfDetectedCharactersAsText"; + public static final String SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT = + "addPdfDetectedCharactersAsText"; @SerializedName(SERIALIZED_NAME_ADD_PDF_DETECTED_CHARACTERS_AS_TEXT) @javax.annotation.Nullable private Boolean addPdfDetectedCharactersAsText; @@ -87,10 +97,10 @@ public class AddDocumentOcrRequest { @javax.annotation.Nullable private OcrOutputType ocrOutputType; - public AddDocumentOcrRequest() { - } + public AddDocumentOcrRequest() {} - public AddDocumentOcrRequest textractQueries(@javax.annotation.Nullable List textractQueries) { + public AddDocumentOcrRequest textractQueries( + @javax.annotation.Nullable List textractQueries) { this.textractQueries = textractQueries; return this; } @@ -105,6 +115,7 @@ public AddDocumentOcrRequest addTextractQueriesItem(TextractQuery textractQuerie /** * Get textractQueries + * * @return textractQueries */ @javax.annotation.Nullable @@ -132,6 +143,7 @@ public AddDocumentOcrRequest addParseTypesItem(String parseTypesItem) { /** * OCR Parse types - TEXT, FORMS, TABLES, QUERIES + * * @return parseTypes */ @javax.annotation.Nullable @@ -144,13 +156,15 @@ public void setParseTypes(@javax.annotation.Nullable List parseTypes) { } - public AddDocumentOcrRequest addPdfDetectedCharactersAsText(@javax.annotation.Nullable Boolean addPdfDetectedCharactersAsText) { + public AddDocumentOcrRequest addPdfDetectedCharactersAsText( + @javax.annotation.Nullable Boolean addPdfDetectedCharactersAsText) { this.addPdfDetectedCharactersAsText = addPdfDetectedCharactersAsText; return this; } /** * Rewrite PDF document, converting any Image text to searchable text + * * @return addPdfDetectedCharactersAsText */ @javax.annotation.Nullable @@ -158,7 +172,8 @@ public Boolean getAddPdfDetectedCharactersAsText() { return addPdfDetectedCharactersAsText; } - public void setAddPdfDetectedCharactersAsText(@javax.annotation.Nullable Boolean addPdfDetectedCharactersAsText) { + public void setAddPdfDetectedCharactersAsText( + @javax.annotation.Nullable Boolean addPdfDetectedCharactersAsText) { this.addPdfDetectedCharactersAsText = addPdfDetectedCharactersAsText; } @@ -170,6 +185,7 @@ public AddDocumentOcrRequest ocrEngine(@javax.annotation.Nullable OcrEngine ocrE /** * Get ocrEngine + * * @return ocrEngine */ @javax.annotation.Nullable @@ -182,13 +198,15 @@ public void setOcrEngine(@javax.annotation.Nullable OcrEngine ocrEngine) { } - public AddDocumentOcrRequest ocrNumberOfPages(@javax.annotation.Nullable String ocrNumberOfPages) { + public AddDocumentOcrRequest ocrNumberOfPages( + @javax.annotation.Nullable String ocrNumberOfPages) { this.ocrNumberOfPages = ocrNumberOfPages; return this; } /** * Number of pages to OCR (from start) (-1 all) + * * @return ocrNumberOfPages */ @javax.annotation.Nullable @@ -201,13 +219,15 @@ public void setOcrNumberOfPages(@javax.annotation.Nullable String ocrNumberOfPag } - public AddDocumentOcrRequest ocrOutputType(@javax.annotation.Nullable OcrOutputType ocrOutputType) { + public AddDocumentOcrRequest ocrOutputType( + @javax.annotation.Nullable OcrOutputType ocrOutputType) { this.ocrOutputType = ocrOutputType; return this; } /** * Get ocrOutputType + * * @return ocrOutputType */ @javax.annotation.Nullable @@ -230,17 +250,19 @@ public boolean equals(Object o) { return false; } AddDocumentOcrRequest addDocumentOcrRequest = (AddDocumentOcrRequest) o; - return Objects.equals(this.textractQueries, addDocumentOcrRequest.textractQueries) && - Objects.equals(this.parseTypes, addDocumentOcrRequest.parseTypes) && - Objects.equals(this.addPdfDetectedCharactersAsText, addDocumentOcrRequest.addPdfDetectedCharactersAsText) && - Objects.equals(this.ocrEngine, addDocumentOcrRequest.ocrEngine) && - Objects.equals(this.ocrNumberOfPages, addDocumentOcrRequest.ocrNumberOfPages) && - Objects.equals(this.ocrOutputType, addDocumentOcrRequest.ocrOutputType); + return Objects.equals(this.textractQueries, addDocumentOcrRequest.textractQueries) + && Objects.equals(this.parseTypes, addDocumentOcrRequest.parseTypes) + && Objects.equals(this.addPdfDetectedCharactersAsText, + addDocumentOcrRequest.addPdfDetectedCharactersAsText) + && Objects.equals(this.ocrEngine, addDocumentOcrRequest.ocrEngine) + && Objects.equals(this.ocrNumberOfPages, addDocumentOcrRequest.ocrNumberOfPages) + && Objects.equals(this.ocrOutputType, addDocumentOcrRequest.ocrOutputType); } @Override public int hashCode() { - return Objects.hash(textractQueries, parseTypes, addPdfDetectedCharactersAsText, ocrEngine, ocrNumberOfPages, ocrOutputType); + return Objects.hash(textractQueries, parseTypes, addPdfDetectedCharactersAsText, ocrEngine, + ocrNumberOfPages, ocrOutputType); } @Override @@ -249,7 +271,8 @@ public String toString() { sb.append("class AddDocumentOcrRequest {\n"); sb.append(" textractQueries: ").append(toIndentedString(textractQueries)).append("\n"); sb.append(" parseTypes: ").append(toIndentedString(parseTypes)).append("\n"); - sb.append(" addPdfDetectedCharactersAsText: ").append(toIndentedString(addPdfDetectedCharactersAsText)).append("\n"); + sb.append(" addPdfDetectedCharactersAsText: ") + .append(toIndentedString(addPdfDetectedCharactersAsText)).append("\n"); sb.append(" ocrEngine: ").append(toIndentedString(ocrEngine)).append("\n"); sb.append(" ocrNumberOfPages: ").append(toIndentedString(ocrNumberOfPages)).append("\n"); sb.append(" ocrOutputType: ").append(toIndentedString(ocrOutputType)).append("\n"); @@ -258,8 +281,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -274,7 +296,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("textractQueries", "parseTypes", "addPdfDetectedCharactersAsText", "ocrEngine", "ocrNumberOfPages", "ocrOutputType")); + openapiFields = new HashSet(Arrays.asList("textractQueries", "parseTypes", + "addPdfDetectedCharactersAsText", "ocrEngine", "ocrNumberOfPages", "ocrOutputType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -287,77 +310,90 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentOcrRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentOcrRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentOcrRequest is not found in the empty JSON string", AddDocumentOcrRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentOcrRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentOcrRequest is not found in the empty JSON string", + AddDocumentOcrRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentOcrRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentOcrRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentOcrRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentOcrRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("textractQueries") != null && !jsonObj.get("textractQueries").isJsonNull()) { - JsonArray jsonArraytextractQueries = jsonObj.getAsJsonArray("textractQueries"); - if (jsonArraytextractQueries != null) { - // ensure the json data is an array - if (!jsonObj.get("textractQueries").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `textractQueries` to be an array in the JSON string but got `%s`", jsonObj.get("textractQueries").toString())); - } - - // validate the optional field `textractQueries` (array) - for (int i = 0; i < jsonArraytextractQueries.size(); i++) { - TextractQuery.validateJsonElement(jsonArraytextractQueries.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("textractQueries") != null && !jsonObj.get("textractQueries").isJsonNull()) { + JsonArray jsonArraytextractQueries = jsonObj.getAsJsonArray("textractQueries"); + if (jsonArraytextractQueries != null) { + // ensure the json data is an array + if (!jsonObj.get("textractQueries").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `textractQueries` to be an array in the JSON string but got `%s`", + jsonObj.get("textractQueries").toString())); } + + // validate the optional field `textractQueries` (array) + for (int i = 0; i < jsonArraytextractQueries.size(); i++) { + TextractQuery.validateJsonElement(jsonArraytextractQueries.get(i)); + } ; } - // ensure the optional json data is an array if present - if (jsonObj.get("parseTypes") != null && !jsonObj.get("parseTypes").isJsonNull() && !jsonObj.get("parseTypes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `parseTypes` to be an array in the JSON string but got `%s`", jsonObj.get("parseTypes").toString())); - } - // validate the optional field `ocrEngine` - if (jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) { - OcrEngine.validateJsonElement(jsonObj.get("ocrEngine")); - } - if ((jsonObj.get("ocrNumberOfPages") != null && !jsonObj.get("ocrNumberOfPages").isJsonNull()) && !jsonObj.get("ocrNumberOfPages").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrNumberOfPages` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ocrNumberOfPages").toString())); - } - // validate the optional field `ocrOutputType` - if (jsonObj.get("ocrOutputType") != null && !jsonObj.get("ocrOutputType").isJsonNull()) { - OcrOutputType.validateJsonElement(jsonObj.get("ocrOutputType")); - } + } + // ensure the optional json data is an array if present + if (jsonObj.get("parseTypes") != null && !jsonObj.get("parseTypes").isJsonNull() + && !jsonObj.get("parseTypes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `parseTypes` to be an array in the JSON string but got `%s`", + jsonObj.get("parseTypes").toString())); + } + // validate the optional field `ocrEngine` + if (jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) { + OcrEngine.validateJsonElement(jsonObj.get("ocrEngine")); + } + if ((jsonObj.get("ocrNumberOfPages") != null && !jsonObj.get("ocrNumberOfPages").isJsonNull()) + && !jsonObj.get("ocrNumberOfPages").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `ocrNumberOfPages` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("ocrNumberOfPages").toString())); + } + // validate the optional field `ocrOutputType` + if (jsonObj.get("ocrOutputType") != null && !jsonObj.get("ocrOutputType").isJsonNull()) { + OcrOutputType.validateJsonElement(jsonObj.get("ocrOutputType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentOcrRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentOcrRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentOcrRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentOcrRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentOcrRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentOcrRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentOcrRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentOcrRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentOcrRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentOcrRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java index d0808c729..d17e0cf69 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddDocumentOcrResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentOcrResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentOcrResponse() { - } + public AddDocumentOcrResponse() {} public AddDocumentOcrResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public AddDocumentOcrResponse message(@javax.annotation.Nullable String message) /** * OCR processing message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentOcrResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentOcrResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentOcrResponse is not found in the empty JSON string", AddDocumentOcrResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentOcrResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentOcrResponse is not found in the empty JSON string", + AddDocumentOcrResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentOcrResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentOcrResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentOcrResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentOcrResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentOcrResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentOcrResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentOcrResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentOcrResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentOcrResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentOcrResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentOcrResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentOcrResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentOcrResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentOcrResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentRequest.java index 3d946ee8d..fed2baa3a 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -58,7 +65,9 @@ /** * AddDocumentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentRequest { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -135,8 +144,7 @@ public class AddDocumentRequest { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public AddDocumentRequest() { - } + public AddDocumentRequest() {} public AddDocumentRequest documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -145,6 +153,7 @@ public AddDocumentRequest documentId(@javax.annotation.Nullable String documentI /** * optional Document Identifier (Version 4 UUID), if skipped one will be assigned + * * @return documentId */ @javax.annotation.Nullable @@ -164,6 +173,7 @@ public AddDocumentRequest path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -183,6 +193,7 @@ public AddDocumentRequest checksumType(@javax.annotation.Nullable ChecksumType c /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -202,6 +213,7 @@ public AddDocumentRequest checksum(@javax.annotation.Nullable String checksum) { /** * The checksum value to validate the file against + * * @return checksum */ @javax.annotation.Nullable @@ -221,6 +233,7 @@ public AddDocumentRequest width(@javax.annotation.Nullable String width) { /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -240,6 +253,7 @@ public AddDocumentRequest height(@javax.annotation.Nullable String height) { /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -259,6 +273,7 @@ public AddDocumentRequest deepLinkPath(@javax.annotation.Nullable String deepLin /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -278,6 +293,7 @@ public AddDocumentRequest contentType(@javax.annotation.Nullable String contentT /** * Document media type + * * @return contentType */ @javax.annotation.Nullable @@ -297,6 +313,7 @@ public AddDocumentRequest isBase64(@javax.annotation.Nullable Boolean isBase64) /** * Is the content Base64-encoded? + * * @return isBase64 */ @javax.annotation.Nullable @@ -316,6 +333,7 @@ public AddDocumentRequest content(@javax.annotation.Nonnull String content) { /** * Document content + * * @return content */ @javax.annotation.Nonnull @@ -343,6 +361,7 @@ public AddDocumentRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags + * * @return tags */ @javax.annotation.Nullable @@ -355,7 +374,8 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public AddDocumentRequest metadata(@javax.annotation.Nullable List metadata) { + public AddDocumentRequest metadata( + @javax.annotation.Nullable List metadata) { this.metadata = metadata; return this; } @@ -370,6 +390,7 @@ public AddDocumentRequest addMetadataItem(AddDocumentMetadata metadataItem) { /** * List of document Metadata + * * @return metadata */ @javax.annotation.Nullable @@ -397,6 +418,7 @@ public AddDocumentRequest addActionsItem(AddAction actionsItem) { /** * List of Actions + * * @return actions */ @javax.annotation.Nullable @@ -409,7 +431,8 @@ public void setActions(@javax.annotation.Nullable List actions) { } - public AddDocumentRequest attributes(@javax.annotation.Nullable List attributes) { + public AddDocumentRequest attributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -424,6 +447,7 @@ public AddDocumentRequest addAttributesItem(AddDocumentAttribute attributesItem) /** * List of Attributes to add to document + * * @return attributes */ @javax.annotation.Nullable @@ -451,6 +475,7 @@ public AddDocumentRequest addDocumentsItem(AddChildDocument documentsItem) { /** * List of child documents + * * @return documents */ @javax.annotation.Nullable @@ -473,26 +498,27 @@ public boolean equals(Object o) { return false; } AddDocumentRequest addDocumentRequest = (AddDocumentRequest) o; - return Objects.equals(this.documentId, addDocumentRequest.documentId) && - Objects.equals(this.path, addDocumentRequest.path) && - Objects.equals(this.checksumType, addDocumentRequest.checksumType) && - Objects.equals(this.checksum, addDocumentRequest.checksum) && - Objects.equals(this.width, addDocumentRequest.width) && - Objects.equals(this.height, addDocumentRequest.height) && - Objects.equals(this.deepLinkPath, addDocumentRequest.deepLinkPath) && - Objects.equals(this.contentType, addDocumentRequest.contentType) && - Objects.equals(this.isBase64, addDocumentRequest.isBase64) && - Objects.equals(this.content, addDocumentRequest.content) && - Objects.equals(this.tags, addDocumentRequest.tags) && - Objects.equals(this.metadata, addDocumentRequest.metadata) && - Objects.equals(this.actions, addDocumentRequest.actions) && - Objects.equals(this.attributes, addDocumentRequest.attributes) && - Objects.equals(this.documents, addDocumentRequest.documents); + return Objects.equals(this.documentId, addDocumentRequest.documentId) + && Objects.equals(this.path, addDocumentRequest.path) + && Objects.equals(this.checksumType, addDocumentRequest.checksumType) + && Objects.equals(this.checksum, addDocumentRequest.checksum) + && Objects.equals(this.width, addDocumentRequest.width) + && Objects.equals(this.height, addDocumentRequest.height) + && Objects.equals(this.deepLinkPath, addDocumentRequest.deepLinkPath) + && Objects.equals(this.contentType, addDocumentRequest.contentType) + && Objects.equals(this.isBase64, addDocumentRequest.isBase64) + && Objects.equals(this.content, addDocumentRequest.content) + && Objects.equals(this.tags, addDocumentRequest.tags) + && Objects.equals(this.metadata, addDocumentRequest.metadata) + && Objects.equals(this.actions, addDocumentRequest.actions) + && Objects.equals(this.attributes, addDocumentRequest.attributes) + && Objects.equals(this.documents, addDocumentRequest.documents); } @Override public int hashCode() { - return Objects.hash(documentId, path, checksumType, checksum, width, height, deepLinkPath, contentType, isBase64, content, tags, metadata, actions, attributes, documents); + return Objects.hash(documentId, path, checksumType, checksum, width, height, deepLinkPath, + contentType, isBase64, content, tags, metadata, actions, attributes, documents); } @Override @@ -519,8 +545,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -535,7 +560,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("documentId", "path", "checksumType", "checksum", "width", "height", "deepLinkPath", "contentType", "isBase64", "content", "tags", "metadata", "actions", "attributes", "documents")); + openapiFields = new HashSet(Arrays.asList("documentId", "path", "checksumType", + "checksum", "width", "height", "deepLinkPath", "contentType", "isBase64", "content", "tags", + "metadata", "actions", "attributes", "documents")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("content")); @@ -548,153 +575,193 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentRequest is not found in the empty JSON string", AddDocumentRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentRequest is not found in the empty JSON string", + AddDocumentRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if (!jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if (!jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - }; + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `metadata` to be an array in the JSON string but got `%s`", + jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + } ; } - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - if (jsonArrayactions != null) { - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - - // validate the optional field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - AddAction.validateJsonElement(jsonArrayactions.get(i)); - }; + } + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { + JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); + if (jsonArrayactions != null) { + // ensure the json data is an array + if (!jsonObj.get("actions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `actions` to be an array in the JSON string but got `%s`", + jsonObj.get("actions").toString())); } + + // validate the optional field `actions` (array) + for (int i = 0; i < jsonArrayactions.size(); i++) { + AddAction.validateJsonElement(jsonArrayactions.get(i)); + } ; } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - AddChildDocument.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + AddChildDocument.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentResponse.java index 664acbbc1..389f9db2f 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * AddDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -82,8 +91,7 @@ public class AddDocumentResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public AddDocumentResponse() { - } + public AddDocumentResponse() {} public AddDocumentResponse documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -92,6 +100,7 @@ public AddDocumentResponse documentId(@javax.annotation.Nullable String document /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -111,6 +120,7 @@ public AddDocumentResponse siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -130,6 +140,7 @@ public AddDocumentResponse uploadUrl(@javax.annotation.Nullable String uploadUrl /** * Url to upload document to + * * @return uploadUrl */ @javax.annotation.Nullable @@ -157,6 +168,7 @@ public AddDocumentResponse putHeadersItem(String key, Object headersItem) { /** * Get headers + * * @return headers */ @javax.annotation.Nullable @@ -169,7 +181,8 @@ public void setHeaders(@javax.annotation.Nullable Map headers) { } - public AddDocumentResponse documents(@javax.annotation.Nullable List documents) { + public AddDocumentResponse documents( + @javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -184,6 +197,7 @@ public AddDocumentResponse addDocumentsItem(AddChildDocumentResponse documentsIt /** * List of child documents + * * @return documents */ @javax.annotation.Nullable @@ -206,11 +220,11 @@ public boolean equals(Object o) { return false; } AddDocumentResponse addDocumentResponse = (AddDocumentResponse) o; - return Objects.equals(this.documentId, addDocumentResponse.documentId) && - Objects.equals(this.siteId, addDocumentResponse.siteId) && - Objects.equals(this.uploadUrl, addDocumentResponse.uploadUrl) && - Objects.equals(this.headers, addDocumentResponse.headers) && - Objects.equals(this.documents, addDocumentResponse.documents); + return Objects.equals(this.documentId, addDocumentResponse.documentId) + && Objects.equals(this.siteId, addDocumentResponse.siteId) + && Objects.equals(this.uploadUrl, addDocumentResponse.uploadUrl) + && Objects.equals(this.headers, addDocumentResponse.headers) + && Objects.equals(this.documents, addDocumentResponse.documents); } @Override @@ -232,8 +246,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -248,7 +261,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("documentId", "siteId", "uploadUrl", "headers", "documents")); + openapiFields = new HashSet( + Arrays.asList("documentId", "siteId", "uploadUrl", "headers", "documents")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -261,71 +275,87 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentResponse is not found in the empty JSON string", AddDocumentResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentResponse is not found in the empty JSON string", + AddDocumentResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) && !jsonObj.get("uploadUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uploadUrl").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - AddChildDocumentResponse.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) + && !jsonObj.get("uploadUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("uploadUrl").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + AddChildDocumentResponse.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentSync.java b/src/main/java/com/formkiq/client/model/AddDocumentSync.java index 0876919f5..74abb5e9a 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentSync.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentSync.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * AddDocumentSync */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentSync { public static final String SERIALIZED_NAME_SERVICE = "service"; @SerializedName(SERIALIZED_NAME_SERVICE) @@ -64,8 +73,7 @@ public class AddDocumentSync { @javax.annotation.Nullable private DocumentSyncType type; - public AddDocumentSync() { - } + public AddDocumentSync() {} public AddDocumentSync service(@javax.annotation.Nullable AddDocumentSyncService service) { this.service = service; @@ -74,6 +82,7 @@ public AddDocumentSync service(@javax.annotation.Nullable AddDocumentSyncService /** * Get service + * * @return service */ @javax.annotation.Nullable @@ -93,6 +102,7 @@ public AddDocumentSync type(@javax.annotation.Nullable DocumentSyncType type) { /** * Get type + * * @return type */ @javax.annotation.Nullable @@ -115,8 +125,8 @@ public boolean equals(Object o) { return false; } AddDocumentSync addDocumentSync = (AddDocumentSync) o; - return Objects.equals(this.service, addDocumentSync.service) && - Objects.equals(this.type, addDocumentSync.type); + return Objects.equals(this.service, addDocumentSync.service) + && Objects.equals(this.type, addDocumentSync.type); } @Override @@ -135,8 +145,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -164,56 +173,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentSync */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentSync.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentSync is not found in the empty JSON string", AddDocumentSync.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentSync.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentSync is not found in the empty JSON string", + AddDocumentSync.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentSync.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentSync` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `service` - if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { - AddDocumentSyncService.validateJsonElement(jsonObj.get("service")); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - DocumentSyncType.validateJsonElement(jsonObj.get("type")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentSync.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentSync` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `service` + if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { + AddDocumentSyncService.validateJsonElement(jsonObj.get("service")); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + DocumentSyncType.validateJsonElement(jsonObj.get("type")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentSync.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentSync' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentSync.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentSync value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentSync read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentSync.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentSync' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentSync.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentSync value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentSync read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java index 977a47acf..961eb1298 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddDocumentSyncRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentSyncRequest { public static final String SERIALIZED_NAME_SYNC = "sync"; @SerializedName(SERIALIZED_NAME_SYNC) @javax.annotation.Nullable private AddDocumentSync sync; - public AddDocumentSyncRequest() { - } + public AddDocumentSyncRequest() {} public AddDocumentSyncRequest sync(@javax.annotation.Nullable AddDocumentSync sync) { this.sync = sync; @@ -68,6 +76,7 @@ public AddDocumentSyncRequest sync(@javax.annotation.Nullable AddDocumentSync sy /** * Get sync + * * @return sync */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentSyncRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentSyncRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentSyncRequest is not found in the empty JSON string", AddDocumentSyncRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentSyncRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentSyncRequest is not found in the empty JSON string", + AddDocumentSyncRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentSyncRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentSyncRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `sync` - if (jsonObj.get("sync") != null && !jsonObj.get("sync").isJsonNull()) { - AddDocumentSync.validateJsonElement(jsonObj.get("sync")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentSyncRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentSyncRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `sync` + if (jsonObj.get("sync") != null && !jsonObj.get("sync").isJsonNull()) { + AddDocumentSync.validateJsonElement(jsonObj.get("sync")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentSyncRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentSyncRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentSyncRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentSyncRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentSyncRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentSyncRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentSyncRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentSyncRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentSyncRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentSyncRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentSyncService.java b/src/main/java/com/formkiq/client/model/AddDocumentSyncService.java index 4d1059929..69d1b2cde 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentSyncService.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentSyncService.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,7 +37,7 @@ */ @JsonAdapter(AddDocumentSyncService.Adapter.class) public enum AddDocumentSyncService { - + FULLTEXT("FULLTEXT"); private String value; @@ -59,7 +66,8 @@ public static AddDocumentSyncService fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AddDocumentSyncService enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final AddDocumentSyncService enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentTag.java b/src/main/java/com/formkiq/client/model/AddDocumentTag.java index 735a6ac2e..fb885198f 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentTag.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentTag.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * List of Document Tags (use either 'value' or 'values' not both) */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentTag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -69,8 +78,7 @@ public class AddDocumentTag { @javax.annotation.Nullable private List values = new ArrayList<>(); - public AddDocumentTag() { - } + public AddDocumentTag() {} public AddDocumentTag key(@javax.annotation.Nonnull String key) { this.key = key; @@ -79,6 +87,7 @@ public AddDocumentTag key(@javax.annotation.Nonnull String key) { /** * Tag key + * * @return key */ @javax.annotation.Nonnull @@ -98,6 +107,7 @@ public AddDocumentTag value(@javax.annotation.Nullable String value) { /** * Tag value + * * @return value */ @javax.annotation.Nullable @@ -125,6 +135,7 @@ public AddDocumentTag addValuesItem(String valuesItem) { /** * Tag values + * * @return values */ @javax.annotation.Nullable @@ -147,9 +158,9 @@ public boolean equals(Object o) { return false; } AddDocumentTag addDocumentTag = (AddDocumentTag) o; - return Objects.equals(this.key, addDocumentTag.key) && - Objects.equals(this.value, addDocumentTag.value) && - Objects.equals(this.values, addDocumentTag.values); + return Objects.equals(this.key, addDocumentTag.key) + && Objects.equals(this.value, addDocumentTag.value) + && Objects.equals(this.values, addDocumentTag.values); } @Override @@ -169,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,65 +208,80 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentTag is not found in the empty JSON string", AddDocumentTag.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentTag is not found in the empty JSON string", + AddDocumentTag.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentTag` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentTag.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentTag.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() + && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `values` to be an array in the JSON string but got `%s`", + jsonObj.get("values").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java index 5a16a6504..c531a50dc 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,15 +60,16 @@ /** * Add List of document tags */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentTagsRequest { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @javax.annotation.Nullable private List tags = new ArrayList<>(); - public AddDocumentTagsRequest() { - } + public AddDocumentTagsRequest() {} public AddDocumentTagsRequest tags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -78,6 +86,7 @@ public AddDocumentTagsRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags + * * @return tags */ @javax.annotation.Nullable @@ -118,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +155,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentTagsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentTagsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentTagsRequest is not found in the empty JSON string", AddDocumentTagsRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentTagsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentTagsRequest is not found in the empty JSON string", + AddDocumentTagsRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentTagsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentTagsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentTagsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentTagsRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentTagsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentTagsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentTagsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentTagsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentTagsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentTagsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentTagsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentTagsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentTagsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentTagsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java index 5e4337264..a963fa6bc 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -56,7 +63,9 @@ /** * AddDocumentUploadRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentUploadRequest { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -113,8 +122,7 @@ public class AddDocumentUploadRequest { @javax.annotation.Nullable private List actions = new ArrayList<>(); - public AddDocumentUploadRequest() { - } + public AddDocumentUploadRequest() {} public AddDocumentUploadRequest documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -123,6 +131,7 @@ public AddDocumentUploadRequest documentId(@javax.annotation.Nullable String doc /** * optional Document Identifier, if skipped one will be assigned + * * @return documentId */ @javax.annotation.Nullable @@ -142,6 +151,7 @@ public AddDocumentUploadRequest path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -161,6 +171,7 @@ public AddDocumentUploadRequest contentType(@javax.annotation.Nullable String co /** * Document media type + * * @return contentType */ @javax.annotation.Nullable @@ -180,6 +191,7 @@ public AddDocumentUploadRequest width(@javax.annotation.Nullable String width) { /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -199,6 +211,7 @@ public AddDocumentUploadRequest height(@javax.annotation.Nullable String height) /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -218,6 +231,7 @@ public AddDocumentUploadRequest deepLinkPath(@javax.annotation.Nullable String d /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -230,13 +244,15 @@ public void setDeepLinkPath(@javax.annotation.Nullable String deepLinkPath) { } - public AddDocumentUploadRequest checksumType(@javax.annotation.Nullable ChecksumType checksumType) { + public AddDocumentUploadRequest checksumType( + @javax.annotation.Nullable ChecksumType checksumType) { this.checksumType = checksumType; return this; } /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -256,6 +272,7 @@ public AddDocumentUploadRequest checksum(@javax.annotation.Nullable String check /** * The checksum value to validate the file against + * * @return checksum */ @javax.annotation.Nullable @@ -268,7 +285,8 @@ public void setChecksum(@javax.annotation.Nullable String checksum) { } - public AddDocumentUploadRequest attributes(@javax.annotation.Nullable List attributes) { + public AddDocumentUploadRequest attributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -283,6 +301,7 @@ public AddDocumentUploadRequest addAttributesItem(AddDocumentAttribute attribute /** * List of Attributes to add to document + * * @return attributes */ @javax.annotation.Nullable @@ -310,6 +329,7 @@ public AddDocumentUploadRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags + * * @return tags */ @javax.annotation.Nullable @@ -337,6 +357,7 @@ public AddDocumentUploadRequest addActionsItem(AddAction actionsItem) { /** * List of Actions + * * @return actions */ @javax.annotation.Nullable @@ -359,22 +380,23 @@ public boolean equals(Object o) { return false; } AddDocumentUploadRequest addDocumentUploadRequest = (AddDocumentUploadRequest) o; - return Objects.equals(this.documentId, addDocumentUploadRequest.documentId) && - Objects.equals(this.path, addDocumentUploadRequest.path) && - Objects.equals(this.contentType, addDocumentUploadRequest.contentType) && - Objects.equals(this.width, addDocumentUploadRequest.width) && - Objects.equals(this.height, addDocumentUploadRequest.height) && - Objects.equals(this.deepLinkPath, addDocumentUploadRequest.deepLinkPath) && - Objects.equals(this.checksumType, addDocumentUploadRequest.checksumType) && - Objects.equals(this.checksum, addDocumentUploadRequest.checksum) && - Objects.equals(this.attributes, addDocumentUploadRequest.attributes) && - Objects.equals(this.tags, addDocumentUploadRequest.tags) && - Objects.equals(this.actions, addDocumentUploadRequest.actions); + return Objects.equals(this.documentId, addDocumentUploadRequest.documentId) + && Objects.equals(this.path, addDocumentUploadRequest.path) + && Objects.equals(this.contentType, addDocumentUploadRequest.contentType) + && Objects.equals(this.width, addDocumentUploadRequest.width) + && Objects.equals(this.height, addDocumentUploadRequest.height) + && Objects.equals(this.deepLinkPath, addDocumentUploadRequest.deepLinkPath) + && Objects.equals(this.checksumType, addDocumentUploadRequest.checksumType) + && Objects.equals(this.checksum, addDocumentUploadRequest.checksum) + && Objects.equals(this.attributes, addDocumentUploadRequest.attributes) + && Objects.equals(this.tags, addDocumentUploadRequest.tags) + && Objects.equals(this.actions, addDocumentUploadRequest.actions); } @Override public int hashCode() { - return Objects.hash(documentId, path, contentType, width, height, deepLinkPath, checksumType, checksum, attributes, tags, actions); + return Objects.hash(documentId, path, contentType, width, height, deepLinkPath, checksumType, + checksum, attributes, tags, actions); } @Override @@ -397,8 +419,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -413,7 +434,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("documentId", "path", "contentType", "width", "height", "deepLinkPath", "checksumType", "checksum", "attributes", "tags", "actions")); + openapiFields = new HashSet(Arrays.asList("documentId", "path", "contentType", "width", + "height", "deepLinkPath", "checksumType", "checksum", "attributes", "tags", "actions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -426,115 +448,147 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentUploadRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentUploadRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentUploadRequest is not found in the empty JSON string", AddDocumentUploadRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentUploadRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentUploadRequest is not found in the empty JSON string", + AddDocumentUploadRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentUploadRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentUploadRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentUploadRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentUploadRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - if (jsonArrayactions != null) { - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - - // validate the optional field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - AddAction.validateJsonElement(jsonArrayactions.get(i)); - }; + } + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { + JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); + if (jsonArrayactions != null) { + // ensure the json data is an array + if (!jsonObj.get("actions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `actions` to be an array in the JSON string but got `%s`", + jsonObj.get("actions").toString())); } + + // validate the optional field `actions` (array) + for (int i = 0; i < jsonArrayactions.size(); i++) { + AddAction.validateJsonElement(jsonArrayactions.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentUploadRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentUploadRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentUploadRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentUploadRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentUploadRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentUploadRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentUploadRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentUploadRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentUploadRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentUploadRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java index e108bab68..8be370275 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * AddDocumentWorkflowDecisionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentWorkflowDecisionsRequest { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; @SerializedName(SERIALIZED_NAME_STEP_ID) @@ -68,7 +77,7 @@ public class AddDocumentWorkflowDecisionsRequest { @JsonAdapter(DecisionEnum.Adapter.class) public enum DecisionEnum { APPROVE("APPROVE"), - + REJECT("REJECT"); private String value; @@ -97,13 +106,14 @@ public static DecisionEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DecisionEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DecisionEnum enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public DecisionEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return DecisionEnum.fromValue(value); } } @@ -119,8 +129,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nonnull private DecisionEnum decision; - public AddDocumentWorkflowDecisionsRequest() { - } + public AddDocumentWorkflowDecisionsRequest() {} public AddDocumentWorkflowDecisionsRequest stepId(@javax.annotation.Nullable String stepId) { this.stepId = stepId; @@ -129,6 +138,7 @@ public AddDocumentWorkflowDecisionsRequest stepId(@javax.annotation.Nullable Str /** * Workflow Step Identifier + * * @return stepId */ @javax.annotation.Nullable @@ -148,6 +158,7 @@ public AddDocumentWorkflowDecisionsRequest comments(@javax.annotation.Nullable S /** * Workflow decision comments + * * @return comments */ @javax.annotation.Nullable @@ -160,13 +171,15 @@ public void setComments(@javax.annotation.Nullable String comments) { } - public AddDocumentWorkflowDecisionsRequest decision(@javax.annotation.Nonnull DecisionEnum decision) { + public AddDocumentWorkflowDecisionsRequest decision( + @javax.annotation.Nonnull DecisionEnum decision) { this.decision = decision; return this; } /** * Get decision + * * @return decision */ @javax.annotation.Nonnull @@ -188,10 +201,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest = (AddDocumentWorkflowDecisionsRequest) o; - return Objects.equals(this.stepId, addDocumentWorkflowDecisionsRequest.stepId) && - Objects.equals(this.comments, addDocumentWorkflowDecisionsRequest.comments) && - Objects.equals(this.decision, addDocumentWorkflowDecisionsRequest.decision); + AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest = + (AddDocumentWorkflowDecisionsRequest) o; + return Objects.equals(this.stepId, addDocumentWorkflowDecisionsRequest.stepId) + && Objects.equals(this.comments, addDocumentWorkflowDecisionsRequest.comments) + && Objects.equals(this.decision, addDocumentWorkflowDecisionsRequest.decision); } @Override @@ -211,8 +225,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -237,69 +250,88 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDocumentWorkflowDecisionsRequest + * @throws IOException if the JSON Element is invalid with respect to + * AddDocumentWorkflowDecisionsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentWorkflowDecisionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentWorkflowDecisionsRequest is not found in the empty JSON string", AddDocumentWorkflowDecisionsRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentWorkflowDecisionsRequest.openapiRequiredFields.isEmpty()) { // has required + // fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentWorkflowDecisionsRequest is not found in the empty JSON string", + AddDocumentWorkflowDecisionsRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentWorkflowDecisionsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowDecisionsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentWorkflowDecisionsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowDecisionsRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentWorkflowDecisionsRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) && !jsonObj.get("stepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stepId").toString())); - } - if ((jsonObj.get("comments") != null && !jsonObj.get("comments").isJsonNull()) && !jsonObj.get("comments").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `comments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("comments").toString())); - } - if (!jsonObj.get("decision").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `decision` to be a primitive type in the JSON string but got `%s`", jsonObj.get("decision").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentWorkflowDecisionsRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - // validate the required field `decision` - DecisionEnum.validateJsonElement(jsonObj.get("decision")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) + && !jsonObj.get("stepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stepId").toString())); + } + if ((jsonObj.get("comments") != null && !jsonObj.get("comments").isJsonNull()) + && !jsonObj.get("comments").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `comments` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("comments").toString())); + } + if (!jsonObj.get("decision").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `decision` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("decision").toString())); + } + // validate the required field `decision` + DecisionEnum.validateJsonElement(jsonObj.get("decision")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentWorkflowDecisionsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentWorkflowDecisionsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowDecisionsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentWorkflowDecisionsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentWorkflowDecisionsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentWorkflowDecisionsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentWorkflowDecisionsRequest' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowDecisionsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentWorkflowDecisionsRequest value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentWorkflowDecisionsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -308,7 +340,8 @@ public AddDocumentWorkflowDecisionsRequest read(JsonReader in) throws IOExceptio * * @param jsonString JSON string * @return An instance of AddDocumentWorkflowDecisionsRequest - * @throws IOException if the JSON string is invalid with respect to AddDocumentWorkflowDecisionsRequest + * @throws IOException if the JSON string is invalid with respect to + * AddDocumentWorkflowDecisionsRequest */ public static AddDocumentWorkflowDecisionsRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocumentWorkflowDecisionsRequest.class); diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java index 7302583aa..fb10c7d91 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddDocumentWorkflowDecisionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentWorkflowDecisionsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentWorkflowDecisionsResponse() { - } + public AddDocumentWorkflowDecisionsResponse() {} public AddDocumentWorkflowDecisionsResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public AddDocumentWorkflowDecisionsResponse message(@javax.annotation.Nullable S /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -88,7 +97,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocumentWorkflowDecisionsResponse addDocumentWorkflowDecisionsResponse = (AddDocumentWorkflowDecisionsResponse) o; + AddDocumentWorkflowDecisionsResponse addDocumentWorkflowDecisionsResponse = + (AddDocumentWorkflowDecisionsResponse) o; return Objects.equals(this.message, addDocumentWorkflowDecisionsResponse.message); } @@ -107,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,54 +142,67 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDocumentWorkflowDecisionsResponse + * @throws IOException if the JSON Element is invalid with respect to + * AddDocumentWorkflowDecisionsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentWorkflowDecisionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentWorkflowDecisionsResponse is not found in the empty JSON string", AddDocumentWorkflowDecisionsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentWorkflowDecisionsResponse.openapiRequiredFields.isEmpty()) { // has required + // fields but + // JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentWorkflowDecisionsResponse is not found in the empty JSON string", + AddDocumentWorkflowDecisionsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentWorkflowDecisionsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowDecisionsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentWorkflowDecisionsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowDecisionsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentWorkflowDecisionsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentWorkflowDecisionsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowDecisionsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentWorkflowDecisionsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentWorkflowDecisionsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentWorkflowDecisionsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentWorkflowDecisionsResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowDecisionsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentWorkflowDecisionsResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentWorkflowDecisionsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -189,9 +211,11 @@ public AddDocumentWorkflowDecisionsResponse read(JsonReader in) throws IOExcepti * * @param jsonString JSON string * @return An instance of AddDocumentWorkflowDecisionsResponse - * @throws IOException if the JSON string is invalid with respect to AddDocumentWorkflowDecisionsResponse + * @throws IOException if the JSON string is invalid with respect to + * AddDocumentWorkflowDecisionsResponse */ - public static AddDocumentWorkflowDecisionsResponse fromJson(String jsonString) throws IOException { + public static AddDocumentWorkflowDecisionsResponse fromJson(String jsonString) + throws IOException { return JSON.getGson().fromJson(jsonString, AddDocumentWorkflowDecisionsResponse.class); } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java index 7827c3638..4a12409e8 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddDocumentWorkflowRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentWorkflowRequest { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; @SerializedName(SERIALIZED_NAME_WORKFLOW_ID) @javax.annotation.Nonnull private String workflowId; - public AddDocumentWorkflowRequest() { - } + public AddDocumentWorkflowRequest() {} public AddDocumentWorkflowRequest workflowId(@javax.annotation.Nonnull String workflowId) { this.workflowId = workflowId; @@ -67,6 +75,7 @@ public AddDocumentWorkflowRequest workflowId(@javax.annotation.Nonnull String wo /** * Workflow Identifier + * * @return workflowId */ @javax.annotation.Nonnull @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,58 +144,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentWorkflowRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentWorkflowRequest is not found in the empty JSON string", AddDocumentWorkflowRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentWorkflowRequest is not found in the empty JSON string", + AddDocumentWorkflowRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentWorkflowRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentWorkflowRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocumentWorkflowRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocumentWorkflowRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workflowId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentWorkflowRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentWorkflowRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentWorkflowRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentWorkflowRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentWorkflowRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentWorkflowRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentWorkflowRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentWorkflowRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java index aeac09224..01e730e97 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddDocumentWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocumentWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddDocumentWorkflowResponse() { - } + public AddDocumentWorkflowResponse() {} public AddDocumentWorkflowResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public AddDocumentWorkflowResponse message(@javax.annotation.Nullable String mes /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocumentWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocumentWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocumentWorkflowResponse is not found in the empty JSON string", AddDocumentWorkflowResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocumentWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocumentWorkflowResponse is not found in the empty JSON string", + AddDocumentWorkflowResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocumentWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocumentWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocumentWorkflowResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocumentWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocumentWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocumentWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocumentWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocumentWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocumentWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocumentWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocumentWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocumentWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java index 2b8bb1b12..e2d254e15 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -56,7 +63,9 @@ /** * AddDocusignEnvelopesRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocusignEnvelopesRequest { public static final String SERIALIZED_NAME_EMAIL_SUBJECT = "emailSubject"; @SerializedName(SERIALIZED_NAME_EMAIL_SUBJECT) @@ -83,8 +92,7 @@ public class AddDocusignEnvelopesRequest { @javax.annotation.Nullable private DocusignNotification notification; - public AddDocusignEnvelopesRequest() { - } + public AddDocusignEnvelopesRequest() {} public AddDocusignEnvelopesRequest emailSubject(@javax.annotation.Nullable String emailSubject) { this.emailSubject = emailSubject; @@ -93,6 +101,7 @@ public AddDocusignEnvelopesRequest emailSubject(@javax.annotation.Nullable Strin /** * The subject line of the email message that is sent to all recipients + * * @return emailSubject */ @javax.annotation.Nullable @@ -105,13 +114,15 @@ public void setEmailSubject(@javax.annotation.Nullable String emailSubject) { } - public AddDocusignEnvelopesRequest environment(@javax.annotation.Nonnull DocusignEnvironment environment) { + public AddDocusignEnvelopesRequest environment( + @javax.annotation.Nonnull DocusignEnvironment environment) { this.environment = environment; return this; } /** * Get environment + * * @return environment */ @javax.annotation.Nonnull @@ -124,7 +135,8 @@ public void setEnvironment(@javax.annotation.Nonnull DocusignEnvironment environ } - public AddDocusignEnvelopesRequest signers(@javax.annotation.Nullable List signers) { + public AddDocusignEnvelopesRequest signers( + @javax.annotation.Nullable List signers) { this.signers = signers; return this; } @@ -139,6 +151,7 @@ public AddDocusignEnvelopesRequest addSignersItem(DocusignSigner signersItem) { /** * List of DocuSign Signers + * * @return signers */ @javax.annotation.Nullable @@ -151,12 +164,14 @@ public void setSigners(@javax.annotation.Nullable List signers) } - public AddDocusignEnvelopesRequest inpersonSigners(@javax.annotation.Nullable List inpersonSigners) { + public AddDocusignEnvelopesRequest inpersonSigners( + @javax.annotation.Nullable List inpersonSigners) { this.inpersonSigners = inpersonSigners; return this; } - public AddDocusignEnvelopesRequest addInpersonSignersItem(DocusignInpersonSigner inpersonSignersItem) { + public AddDocusignEnvelopesRequest addInpersonSignersItem( + DocusignInpersonSigner inpersonSignersItem) { if (this.inpersonSigners == null) { this.inpersonSigners = new ArrayList<>(); } @@ -166,6 +181,7 @@ public AddDocusignEnvelopesRequest addInpersonSignersItem(DocusignInpersonSigner /** * List of DocuSign Inperson Signers + * * @return inpersonSigners */ @javax.annotation.Nullable @@ -173,18 +189,21 @@ public List getInpersonSigners() { return inpersonSigners; } - public void setInpersonSigners(@javax.annotation.Nullable List inpersonSigners) { + public void setInpersonSigners( + @javax.annotation.Nullable List inpersonSigners) { this.inpersonSigners = inpersonSigners; } - public AddDocusignEnvelopesRequest notification(@javax.annotation.Nullable DocusignNotification notification) { + public AddDocusignEnvelopesRequest notification( + @javax.annotation.Nullable DocusignNotification notification) { this.notification = notification; return this; } /** * Get notification + * * @return notification */ @javax.annotation.Nullable @@ -207,11 +226,11 @@ public boolean equals(Object o) { return false; } AddDocusignEnvelopesRequest addDocusignEnvelopesRequest = (AddDocusignEnvelopesRequest) o; - return Objects.equals(this.emailSubject, addDocusignEnvelopesRequest.emailSubject) && - Objects.equals(this.environment, addDocusignEnvelopesRequest.environment) && - Objects.equals(this.signers, addDocusignEnvelopesRequest.signers) && - Objects.equals(this.inpersonSigners, addDocusignEnvelopesRequest.inpersonSigners) && - Objects.equals(this.notification, addDocusignEnvelopesRequest.notification); + return Objects.equals(this.emailSubject, addDocusignEnvelopesRequest.emailSubject) + && Objects.equals(this.environment, addDocusignEnvelopesRequest.environment) + && Objects.equals(this.signers, addDocusignEnvelopesRequest.signers) + && Objects.equals(this.inpersonSigners, addDocusignEnvelopesRequest.inpersonSigners) + && Objects.equals(this.notification, addDocusignEnvelopesRequest.notification); } @Override @@ -233,8 +252,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -249,7 +267,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("emailSubject", "environment", "signers", "inpersonSigners", "notification")); + openapiFields = new HashSet( + Arrays.asList("emailSubject", "environment", "signers", "inpersonSigners", "notification")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("environment")); @@ -262,92 +281,106 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocusignEnvelopesRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocusignEnvelopesRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocusignEnvelopesRequest is not found in the empty JSON string", AddDocusignEnvelopesRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocusignEnvelopesRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocusignEnvelopesRequest is not found in the empty JSON string", + AddDocusignEnvelopesRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocusignEnvelopesRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocusignEnvelopesRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocusignEnvelopesRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocusignEnvelopesRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocusignEnvelopesRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("emailSubject") != null && !jsonObj.get("emailSubject").isJsonNull()) && !jsonObj.get("emailSubject").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `emailSubject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emailSubject").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocusignEnvelopesRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - // validate the required field `environment` - DocusignEnvironment.validateJsonElement(jsonObj.get("environment")); - if (jsonObj.get("signers") != null && !jsonObj.get("signers").isJsonNull()) { - JsonArray jsonArraysigners = jsonObj.getAsJsonArray("signers"); - if (jsonArraysigners != null) { - // ensure the json data is an array - if (!jsonObj.get("signers").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signers` to be an array in the JSON string but got `%s`", jsonObj.get("signers").toString())); - } - - // validate the optional field `signers` (array) - for (int i = 0; i < jsonArraysigners.size(); i++) { - DocusignSigner.validateJsonElement(jsonArraysigners.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("emailSubject") != null && !jsonObj.get("emailSubject").isJsonNull()) + && !jsonObj.get("emailSubject").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `emailSubject` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("emailSubject").toString())); + } + // validate the required field `environment` + DocusignEnvironment.validateJsonElement(jsonObj.get("environment")); + if (jsonObj.get("signers") != null && !jsonObj.get("signers").isJsonNull()) { + JsonArray jsonArraysigners = jsonObj.getAsJsonArray("signers"); + if (jsonArraysigners != null) { + // ensure the json data is an array + if (!jsonObj.get("signers").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `signers` to be an array in the JSON string but got `%s`", + jsonObj.get("signers").toString())); } + + // validate the optional field `signers` (array) + for (int i = 0; i < jsonArraysigners.size(); i++) { + DocusignSigner.validateJsonElement(jsonArraysigners.get(i)); + } ; } - if (jsonObj.get("inpersonSigners") != null && !jsonObj.get("inpersonSigners").isJsonNull()) { - JsonArray jsonArrayinpersonSigners = jsonObj.getAsJsonArray("inpersonSigners"); - if (jsonArrayinpersonSigners != null) { - // ensure the json data is an array - if (!jsonObj.get("inpersonSigners").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `inpersonSigners` to be an array in the JSON string but got `%s`", jsonObj.get("inpersonSigners").toString())); - } - - // validate the optional field `inpersonSigners` (array) - for (int i = 0; i < jsonArrayinpersonSigners.size(); i++) { - DocusignInpersonSigner.validateJsonElement(jsonArrayinpersonSigners.get(i)); - }; + } + if (jsonObj.get("inpersonSigners") != null && !jsonObj.get("inpersonSigners").isJsonNull()) { + JsonArray jsonArrayinpersonSigners = jsonObj.getAsJsonArray("inpersonSigners"); + if (jsonArrayinpersonSigners != null) { + // ensure the json data is an array + if (!jsonObj.get("inpersonSigners").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `inpersonSigners` to be an array in the JSON string but got `%s`", + jsonObj.get("inpersonSigners").toString())); } + + // validate the optional field `inpersonSigners` (array) + for (int i = 0; i < jsonArrayinpersonSigners.size(); i++) { + DocusignInpersonSigner.validateJsonElement(jsonArrayinpersonSigners.get(i)); + } ; } - // validate the optional field `notification` - if (jsonObj.get("notification") != null && !jsonObj.get("notification").isJsonNull()) { - DocusignNotification.validateJsonElement(jsonObj.get("notification")); - } + } + // validate the optional field `notification` + if (jsonObj.get("notification") != null && !jsonObj.get("notification").isJsonNull()) { + DocusignNotification.validateJsonElement(jsonObj.get("notification")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocusignEnvelopesRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocusignEnvelopesRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocusignEnvelopesRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocusignEnvelopesRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocusignEnvelopesRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocusignEnvelopesRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocusignEnvelopesRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocusignEnvelopesRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocusignEnvelopesRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocusignEnvelopesRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java index 71e4f9e84..4cb9fe7bd 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddDocusignEnvelopesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocusignEnvelopesResponse { public static final String SERIALIZED_NAME_ENVELOPE_ID = "envelopeId"; @SerializedName(SERIALIZED_NAME_ENVELOPE_ID) @javax.annotation.Nullable private String envelopeId; - public AddDocusignEnvelopesResponse() { - } + public AddDocusignEnvelopesResponse() {} public AddDocusignEnvelopesResponse envelopeId(@javax.annotation.Nullable String envelopeId) { this.envelopeId = envelopeId; @@ -67,6 +75,7 @@ public AddDocusignEnvelopesResponse envelopeId(@javax.annotation.Nullable String /** * Docusign Envelope Identifier + * * @return envelopeId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddDocusignEnvelopesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocusignEnvelopesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocusignEnvelopesResponse is not found in the empty JSON string", AddDocusignEnvelopesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocusignEnvelopesResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocusignEnvelopesResponse is not found in the empty JSON string", + AddDocusignEnvelopesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocusignEnvelopesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocusignEnvelopesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("envelopeId") != null && !jsonObj.get("envelopeId").isJsonNull()) && !jsonObj.get("envelopeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `envelopeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("envelopeId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocusignEnvelopesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocusignEnvelopesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("envelopeId") != null && !jsonObj.get("envelopeId").isJsonNull()) + && !jsonObj.get("envelopeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `envelopeId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("envelopeId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocusignEnvelopesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocusignEnvelopesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocusignEnvelopesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocusignEnvelopesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocusignEnvelopesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocusignEnvelopesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocusignEnvelopesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocusignEnvelopesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocusignEnvelopesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocusignEnvelopesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java index 7a34013e0..a380f4fb3 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * AddDocusignRecipientViewRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocusignRecipientViewRequest { public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; @SerializedName(SERIALIZED_NAME_ENVIRONMENT) @@ -64,16 +73,17 @@ public class AddDocusignRecipientViewRequest { @javax.annotation.Nonnull private DocusignRecipientView recipientView; - public AddDocusignRecipientViewRequest() { - } + public AddDocusignRecipientViewRequest() {} - public AddDocusignRecipientViewRequest environment(@javax.annotation.Nonnull DocusignEnvironment environment) { + public AddDocusignRecipientViewRequest environment( + @javax.annotation.Nonnull DocusignEnvironment environment) { this.environment = environment; return this; } /** * Get environment + * * @return environment */ @javax.annotation.Nonnull @@ -86,13 +96,15 @@ public void setEnvironment(@javax.annotation.Nonnull DocusignEnvironment environ } - public AddDocusignRecipientViewRequest recipientView(@javax.annotation.Nonnull DocusignRecipientView recipientView) { + public AddDocusignRecipientViewRequest recipientView( + @javax.annotation.Nonnull DocusignRecipientView recipientView) { this.recipientView = recipientView; return this; } /** * Get recipientView + * * @return recipientView */ @javax.annotation.Nonnull @@ -114,9 +126,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocusignRecipientViewRequest addDocusignRecipientViewRequest = (AddDocusignRecipientViewRequest) o; - return Objects.equals(this.environment, addDocusignRecipientViewRequest.environment) && - Objects.equals(this.recipientView, addDocusignRecipientViewRequest.recipientView); + AddDocusignRecipientViewRequest addDocusignRecipientViewRequest = + (AddDocusignRecipientViewRequest) o; + return Objects.equals(this.environment, addDocusignRecipientViewRequest.environment) + && Objects.equals(this.recipientView, addDocusignRecipientViewRequest.recipientView); } @Override @@ -135,8 +148,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -161,62 +173,73 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDocusignRecipientViewRequest + * @throws IOException if the JSON Element is invalid with respect to + * AddDocusignRecipientViewRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocusignRecipientViewRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocusignRecipientViewRequest is not found in the empty JSON string", AddDocusignRecipientViewRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocusignRecipientViewRequest.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocusignRecipientViewRequest is not found in the empty JSON string", + AddDocusignRecipientViewRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocusignRecipientViewRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocusignRecipientViewRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocusignRecipientViewRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocusignRecipientViewRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddDocusignRecipientViewRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddDocusignRecipientViewRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `environment` - DocusignEnvironment.validateJsonElement(jsonObj.get("environment")); - // validate the required field `recipientView` - DocusignRecipientView.validateJsonElement(jsonObj.get("recipientView")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `environment` + DocusignEnvironment.validateJsonElement(jsonObj.get("environment")); + // validate the required field `recipientView` + DocusignRecipientView.validateJsonElement(jsonObj.get("recipientView")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocusignRecipientViewRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocusignRecipientViewRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocusignRecipientViewRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocusignRecipientViewRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocusignRecipientViewRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocusignRecipientViewRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocusignRecipientViewRequest' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocusignRecipientViewRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocusignRecipientViewRequest value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocusignRecipientViewRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -225,7 +248,8 @@ public AddDocusignRecipientViewRequest read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddDocusignRecipientViewRequest - * @throws IOException if the JSON string is invalid with respect to AddDocusignRecipientViewRequest + * @throws IOException if the JSON string is invalid with respect to + * AddDocusignRecipientViewRequest */ public static AddDocusignRecipientViewRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocusignRecipientViewRequest.class); diff --git a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java index 85e8d4296..6b53bb1e5 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddDocusignRecipientViewResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddDocusignRecipientViewResponse { public static final String SERIALIZED_NAME_VIEW_URL = "viewUrl"; @SerializedName(SERIALIZED_NAME_VIEW_URL) @javax.annotation.Nullable private String viewUrl; - public AddDocusignRecipientViewResponse() { - } + public AddDocusignRecipientViewResponse() {} public AddDocusignRecipientViewResponse viewUrl(@javax.annotation.Nullable String viewUrl) { this.viewUrl = viewUrl; @@ -67,6 +75,7 @@ public AddDocusignRecipientViewResponse viewUrl(@javax.annotation.Nullable Strin /** * The view URL to be navigated to complete DocuSign signing + * * @return viewUrl */ @javax.annotation.Nullable @@ -88,7 +97,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddDocusignRecipientViewResponse addDocusignRecipientViewResponse = (AddDocusignRecipientViewResponse) o; + AddDocusignRecipientViewResponse addDocusignRecipientViewResponse = + (AddDocusignRecipientViewResponse) o; return Objects.equals(this.viewUrl, addDocusignRecipientViewResponse.viewUrl); } @@ -107,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,54 +142,66 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddDocusignRecipientViewResponse + * @throws IOException if the JSON Element is invalid with respect to + * AddDocusignRecipientViewResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddDocusignRecipientViewResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddDocusignRecipientViewResponse is not found in the empty JSON string", AddDocusignRecipientViewResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddDocusignRecipientViewResponse.openapiRequiredFields.isEmpty()) { // has required + // fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddDocusignRecipientViewResponse is not found in the empty JSON string", + AddDocusignRecipientViewResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddDocusignRecipientViewResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddDocusignRecipientViewResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("viewUrl") != null && !jsonObj.get("viewUrl").isJsonNull()) && !jsonObj.get("viewUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `viewUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("viewUrl").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddDocusignRecipientViewResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddDocusignRecipientViewResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("viewUrl") != null && !jsonObj.get("viewUrl").isJsonNull()) + && !jsonObj.get("viewUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `viewUrl` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("viewUrl").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddDocusignRecipientViewResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddDocusignRecipientViewResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddDocusignRecipientViewResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddDocusignRecipientViewResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddDocusignRecipientViewResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddDocusignRecipientViewResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddDocusignRecipientViewResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddDocusignRecipientViewResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddDocusignRecipientViewResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddDocusignRecipientViewResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -189,7 +210,8 @@ public AddDocusignRecipientViewResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddDocusignRecipientViewResponse - * @throws IOException if the JSON string is invalid with respect to AddDocusignRecipientViewResponse + * @throws IOException if the JSON string is invalid with respect to + * AddDocusignRecipientViewResponse */ public static AddDocusignRecipientViewResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddDocusignRecipientViewResponse.class); diff --git a/src/main/java/com/formkiq/client/model/AddEntity.java b/src/main/java/com/formkiq/client/model/AddEntity.java index dd81ceecd..1e835e041 100644 --- a/src/main/java/com/formkiq/client/model/AddEntity.java +++ b/src/main/java/com/formkiq/client/model/AddEntity.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * AddEntity */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddEntity { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -65,8 +74,7 @@ public class AddEntity { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public AddEntity() { - } + public AddEntity() {} public AddEntity name(@javax.annotation.Nullable String name) { this.name = name; @@ -75,6 +83,7 @@ public AddEntity name(@javax.annotation.Nullable String name) { /** * Entity Name + * * @return name */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public AddEntity addAttributesItem(AddEntityAttribute attributesItem) { /** * List of Entity Attributes + * * @return attributes */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } AddEntity addEntity = (AddEntity) o; - return Objects.equals(this.name, addEntity.name) && - Objects.equals(this.attributes, addEntity.attributes); + return Objects.equals(this.name, addEntity.name) + && Objects.equals(this.attributes, addEntity.attributes); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntity */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntity is not found in the empty JSON string", AddEntity.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddEntity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddEntity is not found in the empty JSON string", + AddEntity.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddEntity` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddEntityAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddEntityAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddEntity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddEntity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityAttribute.java b/src/main/java/com/formkiq/client/model/AddEntityAttribute.java index 44f042979..795c75bfe 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddEntityAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * AddEntityAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddEntityAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -85,8 +94,7 @@ public class AddEntityAttribute { @javax.annotation.Nullable private Boolean booleanValue; - public AddEntityAttribute() { - } + public AddEntityAttribute() {} public AddEntityAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -95,6 +103,7 @@ public AddEntityAttribute key(@javax.annotation.Nullable String key) { /** * Attribute key + * * @return key */ @javax.annotation.Nullable @@ -114,6 +123,7 @@ public AddEntityAttribute stringValue(@javax.annotation.Nullable String stringVa /** * Attribute with string value + * * @return stringValue */ @javax.annotation.Nullable @@ -141,6 +151,7 @@ public AddEntityAttribute addStringValuesItem(String stringValuesItem) { /** * Attribute with string values + * * @return stringValues */ @javax.annotation.Nullable @@ -160,6 +171,7 @@ public AddEntityAttribute numberValue(@javax.annotation.Nullable BigDecimal numb /** * Attribute with number value + * * @return numberValue */ @javax.annotation.Nullable @@ -187,6 +199,7 @@ public AddEntityAttribute addNumberValuesItem(BigDecimal numberValuesItem) { /** * Attribute with number values + * * @return numberValues */ @javax.annotation.Nullable @@ -206,6 +219,7 @@ public AddEntityAttribute booleanValue(@javax.annotation.Nullable Boolean boolea /** * Attribute with boolean value + * * @return booleanValue */ @javax.annotation.Nullable @@ -228,12 +242,12 @@ public boolean equals(Object o) { return false; } AddEntityAttribute addEntityAttribute = (AddEntityAttribute) o; - return Objects.equals(this.key, addEntityAttribute.key) && - Objects.equals(this.stringValue, addEntityAttribute.stringValue) && - Objects.equals(this.stringValues, addEntityAttribute.stringValues) && - Objects.equals(this.numberValue, addEntityAttribute.numberValue) && - Objects.equals(this.numberValues, addEntityAttribute.numberValues) && - Objects.equals(this.booleanValue, addEntityAttribute.booleanValue); + return Objects.equals(this.key, addEntityAttribute.key) + && Objects.equals(this.stringValue, addEntityAttribute.stringValue) + && Objects.equals(this.stringValues, addEntityAttribute.stringValues) + && Objects.equals(this.numberValue, addEntityAttribute.numberValue) + && Objects.equals(this.numberValues, addEntityAttribute.numberValues) + && Objects.equals(this.booleanValue, addEntityAttribute.booleanValue); } @Override @@ -256,8 +270,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -272,7 +285,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", "numberValue", "numberValues", "booleanValue")); + openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", + "numberValue", "numberValues", "booleanValue")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -285,62 +299,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityAttribute is not found in the empty JSON string", AddEntityAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddEntityAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddEntityAttribute is not found in the empty JSON string", + AddEntityAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddEntityAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) + && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stringValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() + && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValues` to be an array in the JSON string but got `%s`", + jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() + && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberValues` to be an array in the JSON string but got `%s`", + jsonObj.get("numberValues").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddEntityAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddEntityAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityRequest.java b/src/main/java/com/formkiq/client/model/AddEntityRequest.java index 8039df77c..9ccdcaa67 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityRequest.java +++ b/src/main/java/com/formkiq/client/model/AddEntityRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddEntityRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddEntityRequest { public static final String SERIALIZED_NAME_ENTITY = "entity"; @SerializedName(SERIALIZED_NAME_ENTITY) @javax.annotation.Nullable private AddEntity entity; - public AddEntityRequest() { - } + public AddEntityRequest() {} public AddEntityRequest entity(@javax.annotation.Nullable AddEntity entity) { this.entity = entity; @@ -68,6 +76,7 @@ public AddEntityRequest entity(@javax.annotation.Nullable AddEntity entity) { /** * Get entity + * * @return entity */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityRequest is not found in the empty JSON string", AddEntityRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddEntityRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddEntityRequest is not found in the empty JSON string", + AddEntityRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `entity` - if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { - AddEntity.validateJsonElement(jsonObj.get("entity")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddEntityRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `entity` + if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { + AddEntity.validateJsonElement(jsonObj.get("entity")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddEntityRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddEntityRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityResponse.java b/src/main/java/com/formkiq/client/model/AddEntityResponse.java index 85bb7b3ef..20a1278fd 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityResponse.java +++ b/src/main/java/com/formkiq/client/model/AddEntityResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddEntityResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddEntityResponse { public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; @SerializedName(SERIALIZED_NAME_ENTITY_ID) @javax.annotation.Nullable private String entityId; - public AddEntityResponse() { - } + public AddEntityResponse() {} public AddEntityResponse entityId(@javax.annotation.Nullable String entityId) { this.entityId = entityId; @@ -67,6 +75,7 @@ public AddEntityResponse entityId(@javax.annotation.Nullable String entityId) { /** * Entity Identifier + * * @return entityId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityResponse is not found in the empty JSON string", AddEntityResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddEntityResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddEntityResponse is not found in the empty JSON string", + AddEntityResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) && !jsonObj.get("entityId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddEntityResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) + && !jsonObj.get("entityId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("entityId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddEntityResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddEntityResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityType.java b/src/main/java/com/formkiq/client/model/AddEntityType.java index 0854b8eb8..1332a0db6 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityType.java +++ b/src/main/java/com/formkiq/client/model/AddEntityType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * AddEntityType */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddEntityType { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -63,8 +72,7 @@ public class AddEntityType { @javax.annotation.Nullable private String name; - public AddEntityType() { - } + public AddEntityType() {} public AddEntityType namespace(@javax.annotation.Nullable EntityTypeNamespace namespace) { this.namespace = namespace; @@ -73,6 +81,7 @@ public AddEntityType namespace(@javax.annotation.Nullable EntityTypeNamespace na /** * Get namespace + * * @return namespace */ @javax.annotation.Nullable @@ -92,6 +101,7 @@ public AddEntityType name(@javax.annotation.Nullable String name) { /** * Entity Type Name + * * @return name */ @javax.annotation.Nullable @@ -114,8 +124,8 @@ public boolean equals(Object o) { return false; } AddEntityType addEntityType = (AddEntityType) o; - return Objects.equals(this.namespace, addEntityType.namespace) && - Objects.equals(this.name, addEntityType.name); + return Objects.equals(this.namespace, addEntityType.namespace) + && Objects.equals(this.name, addEntityType.name); } @Override @@ -134,8 +144,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,55 +172,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityType */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityType is not found in the empty JSON string", AddEntityType.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddEntityType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddEntityType is not found in the empty JSON string", + AddEntityType.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityType.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityType` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `namespace` - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { - EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityType.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddEntityType` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `namespace` + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { + EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityType.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityType' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddEntityType.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityType value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityType read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityType.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityType' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddEntityType.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityType value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityType read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java b/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java index 148cdfc46..09bf53fc7 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java +++ b/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddEntityTypeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddEntityTypeRequest { public static final String SERIALIZED_NAME_ENTITY_TYPE = "entityType"; @SerializedName(SERIALIZED_NAME_ENTITY_TYPE) @javax.annotation.Nullable private AddEntityType entityType; - public AddEntityTypeRequest() { - } + public AddEntityTypeRequest() {} public AddEntityTypeRequest entityType(@javax.annotation.Nullable AddEntityType entityType) { this.entityType = entityType; @@ -68,6 +76,7 @@ public AddEntityTypeRequest entityType(@javax.annotation.Nullable AddEntityType /** * Get entityType + * * @return entityType */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityTypeRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityTypeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityTypeRequest is not found in the empty JSON string", AddEntityTypeRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddEntityTypeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddEntityTypeRequest is not found in the empty JSON string", + AddEntityTypeRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityTypeRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityTypeRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `entityType` - if (jsonObj.get("entityType") != null && !jsonObj.get("entityType").isJsonNull()) { - AddEntityType.validateJsonElement(jsonObj.get("entityType")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityTypeRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddEntityTypeRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `entityType` + if (jsonObj.get("entityType") != null && !jsonObj.get("entityType").isJsonNull()) { + AddEntityType.validateJsonElement(jsonObj.get("entityType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityTypeRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityTypeRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddEntityTypeRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityTypeRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityTypeRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityTypeRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityTypeRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddEntityTypeRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityTypeRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityTypeRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java b/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java index 018fe015b..733dd82d7 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java +++ b/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddEntityTypeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddEntityTypeResponse { public static final String SERIALIZED_NAME_ENTITY_TYPE_ID = "entityTypeId"; @SerializedName(SERIALIZED_NAME_ENTITY_TYPE_ID) @javax.annotation.Nullable private String entityTypeId; - public AddEntityTypeResponse() { - } + public AddEntityTypeResponse() {} public AddEntityTypeResponse entityTypeId(@javax.annotation.Nullable String entityTypeId) { this.entityTypeId = entityTypeId; @@ -67,6 +75,7 @@ public AddEntityTypeResponse entityTypeId(@javax.annotation.Nullable String enti /** * Entity Type Identifier + * * @return entityTypeId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddEntityTypeResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddEntityTypeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddEntityTypeResponse is not found in the empty JSON string", AddEntityTypeResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddEntityTypeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddEntityTypeResponse is not found in the empty JSON string", + AddEntityTypeResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddEntityTypeResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddEntityTypeResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) && !jsonObj.get("entityTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityTypeId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddEntityTypeResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddEntityTypeResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) + && !jsonObj.get("entityTypeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("entityTypeId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddEntityTypeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddEntityTypeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddEntityTypeResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddEntityTypeResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddEntityTypeResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddEntityTypeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddEntityTypeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddEntityTypeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddEntityTypeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddEntityTypeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddFolderPermission.java b/src/main/java/com/formkiq/client/model/AddFolderPermission.java index 5371d0ef5..4659a1461 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderPermission.java +++ b/src/main/java/com/formkiq/client/model/AddFolderPermission.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * AddFolderPermission */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddFolderPermission { public static final String SERIALIZED_NAME_ROLE_NAME = "roleName"; @SerializedName(SERIALIZED_NAME_ROLE_NAME) @@ -65,8 +74,7 @@ public class AddFolderPermission { @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public AddFolderPermission() { - } + public AddFolderPermission() {} public AddFolderPermission roleName(@javax.annotation.Nullable String roleName) { this.roleName = roleName; @@ -75,6 +83,7 @@ public AddFolderPermission roleName(@javax.annotation.Nullable String roleName) /** * Name of Role + * * @return roleName */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setRoleName(@javax.annotation.Nullable String roleName) { } - public AddFolderPermission permissions(@javax.annotation.Nullable List permissions) { + public AddFolderPermission permissions( + @javax.annotation.Nullable List permissions) { this.permissions = permissions; return this; } @@ -102,6 +112,7 @@ public AddFolderPermission addPermissionsItem(FolderPermissionType permissionsIt /** * List of permissions + * * @return permissions */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } AddFolderPermission addFolderPermission = (AddFolderPermission) o; - return Objects.equals(this.roleName, addFolderPermission.roleName) && - Objects.equals(this.permissions, addFolderPermission.permissions); + return Objects.equals(this.roleName, addFolderPermission.roleName) + && Objects.equals(this.permissions, addFolderPermission.permissions); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,55 +183,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddFolderPermission */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddFolderPermission.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddFolderPermission is not found in the empty JSON string", AddFolderPermission.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddFolderPermission.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddFolderPermission is not found in the empty JSON string", + AddFolderPermission.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddFolderPermission.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddFolderPermission` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("roleName") != null && !jsonObj.get("roleName").isJsonNull()) && !jsonObj.get("roleName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `roleName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("roleName").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddFolderPermission.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddFolderPermission` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("roleName") != null && !jsonObj.get("roleName").isJsonNull()) + && !jsonObj.get("roleName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `roleName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("roleName").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() + && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `permissions` to be an array in the JSON string but got `%s`", + jsonObj.get("permissions").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddFolderPermission.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddFolderPermission' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddFolderPermission.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddFolderPermission value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddFolderPermission read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddFolderPermission.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFolderPermission' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddFolderPermission.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddFolderPermission value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddFolderPermission read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddFolderRequest.java b/src/main/java/com/formkiq/client/model/AddFolderRequest.java index 2250bdb9b..adb7bde9b 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderRequest.java +++ b/src/main/java/com/formkiq/client/model/AddFolderRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddFolderRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddFolderRequest { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @javax.annotation.Nullable private String path; - public AddFolderRequest() { - } + public AddFolderRequest() {} public AddFolderRequest path(@javax.annotation.Nullable String path) { this.path = path; @@ -67,6 +75,7 @@ public AddFolderRequest path(@javax.annotation.Nullable String path) { /** * Path of Folder to create + * * @return path */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddFolderRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddFolderRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddFolderRequest is not found in the empty JSON string", AddFolderRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddFolderRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddFolderRequest is not found in the empty JSON string", + AddFolderRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddFolderRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddFolderRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddFolderRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddFolderRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddFolderRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddFolderRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddFolderRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddFolderRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddFolderRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddFolderRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFolderRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddFolderRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddFolderRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddFolderRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddFolderResponse.java b/src/main/java/com/formkiq/client/model/AddFolderResponse.java index 33ee6a026..2b3ce587d 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderResponse.java +++ b/src/main/java/com/formkiq/client/model/AddFolderResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * AddFolderResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddFolderResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -62,8 +71,7 @@ public class AddFolderResponse { @javax.annotation.Nullable private String indexKey; - public AddFolderResponse() { - } + public AddFolderResponse() {} public AddFolderResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -72,6 +80,7 @@ public AddFolderResponse message(@javax.annotation.Nullable String message) { /** * Response Message + * * @return message */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public AddFolderResponse indexKey(@javax.annotation.Nullable String indexKey) { /** * Folder Index Key + * * @return indexKey */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } AddFolderResponse addFolderResponse = (AddFolderResponse) o; - return Objects.equals(this.message, addFolderResponse.message) && - Objects.equals(this.indexKey, addFolderResponse.indexKey); + return Objects.equals(this.message, addFolderResponse.message) + && Objects.equals(this.indexKey, addFolderResponse.indexKey); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddFolderResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddFolderResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddFolderResponse is not found in the empty JSON string", AddFolderResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddFolderResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddFolderResponse is not found in the empty JSON string", + AddFolderResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddFolderResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddFolderResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - if ((jsonObj.get("indexKey") != null && !jsonObj.get("indexKey").isJsonNull()) && !jsonObj.get("indexKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexKey").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddFolderResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddFolderResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } + if ((jsonObj.get("indexKey") != null && !jsonObj.get("indexKey").isJsonNull()) + && !jsonObj.get("indexKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `indexKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("indexKey").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddFolderResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddFolderResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddFolderResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddFolderResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddFolderResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddFolderResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFolderResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddFolderResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddFolderResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddFolderResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java b/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java index 5272be78f..a0029f8e0 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java +++ b/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddFolderShareRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddFolderShareRequest { public static final String SERIALIZED_NAME_SHARE = "share"; @SerializedName(SERIALIZED_NAME_SHARE) @javax.annotation.Nullable private AddShare share; - public AddFolderShareRequest() { - } + public AddFolderShareRequest() {} public AddFolderShareRequest share(@javax.annotation.Nullable AddShare share) { this.share = share; @@ -68,6 +76,7 @@ public AddFolderShareRequest share(@javax.annotation.Nullable AddShare share) { /** * Get share + * * @return share */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddFolderShareRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddFolderShareRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddFolderShareRequest is not found in the empty JSON string", AddFolderShareRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddFolderShareRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddFolderShareRequest is not found in the empty JSON string", + AddFolderShareRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddFolderShareRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddFolderShareRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `share` - if (jsonObj.get("share") != null && !jsonObj.get("share").isJsonNull()) { - AddShare.validateJsonElement(jsonObj.get("share")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddFolderShareRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddFolderShareRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `share` + if (jsonObj.get("share") != null && !jsonObj.get("share").isJsonNull()) { + AddShare.validateJsonElement(jsonObj.get("share")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddFolderShareRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddFolderShareRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddFolderShareRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddFolderShareRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddFolderShareRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddFolderShareRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFolderShareRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddFolderShareRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddFolderShareRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddFolderShareRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java b/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java index ca5ac29aa..0aabe1f51 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java +++ b/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * AddFolderShareResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddFolderShareResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -62,8 +71,7 @@ public class AddFolderShareResponse { @javax.annotation.Nullable private String shareKey; - public AddFolderShareResponse() { - } + public AddFolderShareResponse() {} public AddFolderShareResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -72,6 +80,7 @@ public AddFolderShareResponse message(@javax.annotation.Nullable String message) /** * API Response message + * * @return message */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public AddFolderShareResponse shareKey(@javax.annotation.Nullable String shareKe /** * Share Identifier + * * @return shareKey */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } AddFolderShareResponse addFolderShareResponse = (AddFolderShareResponse) o; - return Objects.equals(this.message, addFolderShareResponse.message) && - Objects.equals(this.shareKey, addFolderShareResponse.shareKey); + return Objects.equals(this.message, addFolderShareResponse.message) + && Objects.equals(this.shareKey, addFolderShareResponse.shareKey); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddFolderShareResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddFolderShareResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddFolderShareResponse is not found in the empty JSON string", AddFolderShareResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddFolderShareResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddFolderShareResponse is not found in the empty JSON string", + AddFolderShareResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddFolderShareResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddFolderShareResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - if ((jsonObj.get("shareKey") != null && !jsonObj.get("shareKey").isJsonNull()) && !jsonObj.get("shareKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareKey").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddFolderShareResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddFolderShareResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } + if ((jsonObj.get("shareKey") != null && !jsonObj.get("shareKey").isJsonNull()) + && !jsonObj.get("shareKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `shareKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("shareKey").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddFolderShareResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddFolderShareResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddFolderShareResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddFolderShareResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddFolderShareResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddFolderShareResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddFolderShareResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddFolderShareResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddFolderShareResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddFolderShareResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java index 75c14810a..1126fca30 100644 --- a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java +++ b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * AddGoogleDocumentExportRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddGoogleDocumentExportRequest { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -63,8 +72,7 @@ public class AddGoogleDocumentExportRequest { @javax.annotation.Nullable private GoogleExportOutputType outputType; - public AddGoogleDocumentExportRequest() { - } + public AddGoogleDocumentExportRequest() {} public AddGoogleDocumentExportRequest path(@javax.annotation.Nullable String path) { this.path = path; @@ -73,6 +81,7 @@ public AddGoogleDocumentExportRequest path(@javax.annotation.Nullable String pat /** * Path of exported file + * * @return path */ @javax.annotation.Nullable @@ -85,13 +94,15 @@ public void setPath(@javax.annotation.Nullable String path) { } - public AddGoogleDocumentExportRequest outputType(@javax.annotation.Nullable GoogleExportOutputType outputType) { + public AddGoogleDocumentExportRequest outputType( + @javax.annotation.Nullable GoogleExportOutputType outputType) { this.outputType = outputType; return this; } /** * Get outputType + * * @return outputType */ @javax.annotation.Nullable @@ -113,9 +124,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddGoogleDocumentExportRequest addGoogleDocumentExportRequest = (AddGoogleDocumentExportRequest) o; - return Objects.equals(this.path, addGoogleDocumentExportRequest.path) && - Objects.equals(this.outputType, addGoogleDocumentExportRequest.outputType); + AddGoogleDocumentExportRequest addGoogleDocumentExportRequest = + (AddGoogleDocumentExportRequest) o; + return Objects.equals(this.path, addGoogleDocumentExportRequest.path) + && Objects.equals(this.outputType, addGoogleDocumentExportRequest.outputType); } @Override @@ -134,8 +146,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,58 +171,68 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddGoogleDocumentExportRequest + * @throws IOException if the JSON Element is invalid with respect to + * AddGoogleDocumentExportRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddGoogleDocumentExportRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddGoogleDocumentExportRequest is not found in the empty JSON string", AddGoogleDocumentExportRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddGoogleDocumentExportRequest.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddGoogleDocumentExportRequest is not found in the empty JSON string", + AddGoogleDocumentExportRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddGoogleDocumentExportRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddGoogleDocumentExportRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - // validate the optional field `outputType` - if (jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) { - GoogleExportOutputType.validateJsonElement(jsonObj.get("outputType")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddGoogleDocumentExportRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddGoogleDocumentExportRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + // validate the optional field `outputType` + if (jsonObj.get("outputType") != null && !jsonObj.get("outputType").isJsonNull()) { + GoogleExportOutputType.validateJsonElement(jsonObj.get("outputType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddGoogleDocumentExportRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddGoogleDocumentExportRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddGoogleDocumentExportRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddGoogleDocumentExportRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddGoogleDocumentExportRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddGoogleDocumentExportRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddGoogleDocumentExportRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddGoogleDocumentExportRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddGoogleDocumentExportRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddGoogleDocumentExportRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -220,7 +241,8 @@ public AddGoogleDocumentExportRequest read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddGoogleDocumentExportRequest - * @throws IOException if the JSON string is invalid with respect to AddGoogleDocumentExportRequest + * @throws IOException if the JSON string is invalid with respect to + * AddGoogleDocumentExportRequest */ public static AddGoogleDocumentExportRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddGoogleDocumentExportRequest.class); diff --git a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java index ca718f21f..8eddf703a 100644 --- a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java +++ b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddGoogleDocumentExportResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddGoogleDocumentExportResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @javax.annotation.Nullable private String documentId; - public AddGoogleDocumentExportResponse() { - } + public AddGoogleDocumentExportResponse() {} public AddGoogleDocumentExportResponse documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -67,6 +75,7 @@ public AddGoogleDocumentExportResponse documentId(@javax.annotation.Nullable Str /** * Exported document identifier + * * @return documentId */ @javax.annotation.Nullable @@ -88,7 +97,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddGoogleDocumentExportResponse addGoogleDocumentExportResponse = (AddGoogleDocumentExportResponse) o; + AddGoogleDocumentExportResponse addGoogleDocumentExportResponse = + (AddGoogleDocumentExportResponse) o; return Objects.equals(this.documentId, addGoogleDocumentExportResponse.documentId); } @@ -107,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,54 +142,66 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddGoogleDocumentExportResponse + * @throws IOException if the JSON Element is invalid with respect to + * AddGoogleDocumentExportResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddGoogleDocumentExportResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddGoogleDocumentExportResponse is not found in the empty JSON string", AddGoogleDocumentExportResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddGoogleDocumentExportResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddGoogleDocumentExportResponse is not found in the empty JSON string", + AddGoogleDocumentExportResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddGoogleDocumentExportResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddGoogleDocumentExportResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddGoogleDocumentExportResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddGoogleDocumentExportResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddGoogleDocumentExportResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddGoogleDocumentExportResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddGoogleDocumentExportResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddGoogleDocumentExportResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddGoogleDocumentExportResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddGoogleDocumentExportResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddGoogleDocumentExportResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddGoogleDocumentExportResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddGoogleDocumentExportResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddGoogleDocumentExportResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -189,7 +210,8 @@ public AddGoogleDocumentExportResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddGoogleDocumentExportResponse - * @throws IOException if the JSON string is invalid with respect to AddGoogleDocumentExportResponse + * @throws IOException if the JSON string is invalid with respect to + * AddGoogleDocumentExportResponse */ public static AddGoogleDocumentExportResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddGoogleDocumentExportResponse.class); diff --git a/src/main/java/com/formkiq/client/model/AddGroup.java b/src/main/java/com/formkiq/client/model/AddGroup.java index c4ad044ac..2eb6e6a80 100644 --- a/src/main/java/com/formkiq/client/model/AddGroup.java +++ b/src/main/java/com/formkiq/client/model/AddGroup.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * AddGroup */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddGroup { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,8 +71,7 @@ public class AddGroup { @javax.annotation.Nullable private String description; - public AddGroup() { - } + public AddGroup() {} public AddGroup name(@javax.annotation.Nullable String name) { this.name = name; @@ -72,6 +80,7 @@ public AddGroup name(@javax.annotation.Nullable String name) { /** * Name of Group + * * @return name */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public AddGroup description(@javax.annotation.Nullable String description) { /** * Description of Group + * * @return description */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } AddGroup addGroup = (AddGroup) o; - return Objects.equals(this.name, addGroup.name) && - Objects.equals(this.description, addGroup.description); + return Objects.equals(this.name, addGroup.name) + && Objects.equals(this.description, addGroup.description); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddGroup */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddGroup is not found in the empty JSON string", AddGroup.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddGroup is not found in the empty JSON string", + AddGroup.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddGroup.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddGroup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddGroup` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddGroup.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddGroup' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddGroup.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddGroup value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddGroup read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddGroup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddGroup' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddGroup.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddGroup value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddGroup read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddGroupRequest.java b/src/main/java/com/formkiq/client/model/AddGroupRequest.java index c6bc1b47f..42687eb4b 100644 --- a/src/main/java/com/formkiq/client/model/AddGroupRequest.java +++ b/src/main/java/com/formkiq/client/model/AddGroupRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddGroupRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddGroupRequest { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @javax.annotation.Nonnull private AddGroup group; - public AddGroupRequest() { - } + public AddGroupRequest() {} public AddGroupRequest group(@javax.annotation.Nonnull AddGroup group) { this.group = group; @@ -68,6 +76,7 @@ public AddGroupRequest group(@javax.annotation.Nonnull AddGroup group) { /** * Get group + * * @return group */ @javax.annotation.Nonnull @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,57 +145,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddGroupRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddGroupRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddGroupRequest is not found in the empty JSON string", AddGroupRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddGroupRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddGroupRequest is not found in the empty JSON string", + AddGroupRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddGroupRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddGroupRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddGroupRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddGroupRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddGroupRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddGroupRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `group` - AddGroup.validateJsonElement(jsonObj.get("group")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `group` + AddGroup.validateJsonElement(jsonObj.get("group")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddGroupRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddGroupRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddGroupRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddGroupRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddGroupRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddGroupRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddGroupRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddGroupRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddGroupRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddGroupRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddLocaleRequest.java b/src/main/java/com/formkiq/client/model/AddLocaleRequest.java index 4c3205a67..629800b6f 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleRequest.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddLocaleRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddLocaleRequest { public static final String SERIALIZED_NAME_LOCALE = "locale"; @SerializedName(SERIALIZED_NAME_LOCALE) @javax.annotation.Nullable private String locale; - public AddLocaleRequest() { - } + public AddLocaleRequest() {} public AddLocaleRequest locale(@javax.annotation.Nullable String locale) { this.locale = locale; @@ -67,6 +75,7 @@ public AddLocaleRequest locale(@javax.annotation.Nullable String locale) { /** * Name of Locale + * * @return locale */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddLocaleRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleRequest is not found in the empty JSON string", AddLocaleRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddLocaleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddLocaleRequest is not found in the empty JSON string", + AddLocaleRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) && !jsonObj.get("locale").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locale").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddLocaleRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) + && !jsonObj.get("locale").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("locale").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddLocaleRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java index ba970693d..5bfc95c0b 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * AddLocaleResourceClassificationItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddLocaleResourceClassificationItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; @SerializedName(SERIALIZED_NAME_ITEM_TYPE) @@ -78,16 +87,17 @@ public class AddLocaleResourceClassificationItem { @javax.annotation.Nonnull private String localizedValue; - public AddLocaleResourceClassificationItem() { - } + public AddLocaleResourceClassificationItem() {} - public AddLocaleResourceClassificationItem itemType(@javax.annotation.Nonnull LocaleResourceType itemType) { + public AddLocaleResourceClassificationItem itemType( + @javax.annotation.Nonnull LocaleResourceType itemType) { this.itemType = itemType; return this; } /** * Get itemType + * * @return itemType */ @javax.annotation.Nonnull @@ -100,13 +110,15 @@ public void setItemType(@javax.annotation.Nonnull LocaleResourceType itemType) { } - public AddLocaleResourceClassificationItem classificationId(@javax.annotation.Nonnull String classificationId) { + public AddLocaleResourceClassificationItem classificationId( + @javax.annotation.Nonnull String classificationId) { this.classificationId = classificationId; return this; } /** * Classification Id + * * @return classificationId */ @javax.annotation.Nonnull @@ -119,13 +131,15 @@ public void setClassificationId(@javax.annotation.Nonnull String classificationI } - public AddLocaleResourceClassificationItem attributeKey(@javax.annotation.Nonnull String attributeKey) { + public AddLocaleResourceClassificationItem attributeKey( + @javax.annotation.Nonnull String attributeKey) { this.attributeKey = attributeKey; return this; } /** * Attribute Key + * * @return attributeKey */ @javax.annotation.Nonnull @@ -138,13 +152,15 @@ public void setAttributeKey(@javax.annotation.Nonnull String attributeKey) { } - public AddLocaleResourceClassificationItem allowedValue(@javax.annotation.Nonnull String allowedValue) { + public AddLocaleResourceClassificationItem allowedValue( + @javax.annotation.Nonnull String allowedValue) { this.allowedValue = allowedValue; return this; } /** * Resource value + * * @return allowedValue */ @javax.annotation.Nonnull @@ -157,13 +173,15 @@ public void setAllowedValue(@javax.annotation.Nonnull String allowedValue) { } - public AddLocaleResourceClassificationItem localizedValue(@javax.annotation.Nonnull String localizedValue) { + public AddLocaleResourceClassificationItem localizedValue( + @javax.annotation.Nonnull String localizedValue) { this.localizedValue = localizedValue; return this; } /** * Localized Value + * * @return localizedValue */ @javax.annotation.Nonnull @@ -185,12 +203,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddLocaleResourceClassificationItem addLocaleResourceClassificationItem = (AddLocaleResourceClassificationItem) o; - return Objects.equals(this.itemType, addLocaleResourceClassificationItem.itemType) && - Objects.equals(this.classificationId, addLocaleResourceClassificationItem.classificationId) && - Objects.equals(this.attributeKey, addLocaleResourceClassificationItem.attributeKey) && - Objects.equals(this.allowedValue, addLocaleResourceClassificationItem.allowedValue) && - Objects.equals(this.localizedValue, addLocaleResourceClassificationItem.localizedValue); + AddLocaleResourceClassificationItem addLocaleResourceClassificationItem = + (AddLocaleResourceClassificationItem) o; + return Objects.equals(this.itemType, addLocaleResourceClassificationItem.itemType) + && Objects.equals(this.classificationId, + addLocaleResourceClassificationItem.classificationId) + && Objects.equals(this.attributeKey, addLocaleResourceClassificationItem.attributeKey) + && Objects.equals(this.allowedValue, addLocaleResourceClassificationItem.allowedValue) + && Objects.equals(this.localizedValue, addLocaleResourceClassificationItem.localizedValue); } @Override @@ -212,8 +232,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -228,82 +247,103 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("itemType", "classificationId", "attributeKey", "allowedValue", "localizedValue")); + openapiFields = new HashSet(Arrays.asList("itemType", "classificationId", + "attributeKey", "allowedValue", "localizedValue")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("itemType", "classificationId", "attributeKey", "allowedValue", "localizedValue")); + openapiRequiredFields = new HashSet(Arrays.asList("itemType", "classificationId", + "attributeKey", "allowedValue", "localizedValue")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddLocaleResourceClassificationItem + * @throws IOException if the JSON Element is invalid with respect to + * AddLocaleResourceClassificationItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleResourceClassificationItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleResourceClassificationItem is not found in the empty JSON string", AddLocaleResourceClassificationItem.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddLocaleResourceClassificationItem.openapiRequiredFields.isEmpty()) { // has required + // fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddLocaleResourceClassificationItem is not found in the empty JSON string", + AddLocaleResourceClassificationItem.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleResourceClassificationItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleResourceClassificationItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleResourceClassificationItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddLocaleResourceClassificationItem` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddLocaleResourceClassificationItem.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `itemType` - LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); - if (!jsonObj.get("classificationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("classificationId").toString())); - } - if (!jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); - } - if (!jsonObj.get("allowedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allowedValue").toString())); - } - if (!jsonObj.get("localizedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localizedValue").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddLocaleResourceClassificationItem.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `itemType` + LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); + if (!jsonObj.get("classificationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("classificationId").toString())); + } + if (!jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("attributeKey").toString())); + } + if (!jsonObj.get("allowedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("allowedValue").toString())); + } + if (!jsonObj.get("localizedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("localizedValue").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleResourceClassificationItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleResourceClassificationItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceClassificationItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleResourceClassificationItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleResourceClassificationItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleResourceClassificationItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleResourceClassificationItem' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceClassificationItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleResourceClassificationItem value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleResourceClassificationItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -312,7 +352,8 @@ public AddLocaleResourceClassificationItem read(JsonReader in) throws IOExceptio * * @param jsonString JSON string * @return An instance of AddLocaleResourceClassificationItem - * @throws IOException if the JSON string is invalid with respect to AddLocaleResourceClassificationItem + * @throws IOException if the JSON string is invalid with respect to + * AddLocaleResourceClassificationItem */ public static AddLocaleResourceClassificationItem fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddLocaleResourceClassificationItem.class); diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java index af92ba9ef..085d53a91 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * AddLocaleResourceInterfaceItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddLocaleResourceInterfaceItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; @SerializedName(SERIALIZED_NAME_ITEM_TYPE) @@ -68,16 +77,17 @@ public class AddLocaleResourceInterfaceItem { @javax.annotation.Nonnull private String interfaceKey; - public AddLocaleResourceInterfaceItem() { - } + public AddLocaleResourceInterfaceItem() {} - public AddLocaleResourceInterfaceItem itemType(@javax.annotation.Nonnull LocaleResourceType itemType) { + public AddLocaleResourceInterfaceItem itemType( + @javax.annotation.Nonnull LocaleResourceType itemType) { this.itemType = itemType; return this; } /** * Get itemType + * * @return itemType */ @javax.annotation.Nonnull @@ -90,13 +100,15 @@ public void setItemType(@javax.annotation.Nonnull LocaleResourceType itemType) { } - public AddLocaleResourceInterfaceItem localizedValue(@javax.annotation.Nonnull String localizedValue) { + public AddLocaleResourceInterfaceItem localizedValue( + @javax.annotation.Nonnull String localizedValue) { this.localizedValue = localizedValue; return this; } /** * Localized Value + * * @return localizedValue */ @javax.annotation.Nonnull @@ -109,13 +121,15 @@ public void setLocalizedValue(@javax.annotation.Nonnull String localizedValue) { } - public AddLocaleResourceInterfaceItem interfaceKey(@javax.annotation.Nonnull String interfaceKey) { + public AddLocaleResourceInterfaceItem interfaceKey( + @javax.annotation.Nonnull String interfaceKey) { this.interfaceKey = interfaceKey; return this; } /** * Interface Key + * * @return interfaceKey */ @javax.annotation.Nonnull @@ -137,10 +151,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AddLocaleResourceInterfaceItem addLocaleResourceInterfaceItem = (AddLocaleResourceInterfaceItem) o; - return Objects.equals(this.itemType, addLocaleResourceInterfaceItem.itemType) && - Objects.equals(this.localizedValue, addLocaleResourceInterfaceItem.localizedValue) && - Objects.equals(this.interfaceKey, addLocaleResourceInterfaceItem.interfaceKey); + AddLocaleResourceInterfaceItem addLocaleResourceInterfaceItem = + (AddLocaleResourceInterfaceItem) o; + return Objects.equals(this.itemType, addLocaleResourceInterfaceItem.itemType) + && Objects.equals(this.localizedValue, addLocaleResourceInterfaceItem.localizedValue) + && Objects.equals(this.interfaceKey, addLocaleResourceInterfaceItem.interfaceKey); } @Override @@ -160,8 +175,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -176,76 +190,91 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey")); + openapiFields = + new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey")); + openapiRequiredFields = + new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddLocaleResourceInterfaceItem + * @throws IOException if the JSON Element is invalid with respect to + * AddLocaleResourceInterfaceItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleResourceInterfaceItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleResourceInterfaceItem is not found in the empty JSON string", AddLocaleResourceInterfaceItem.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddLocaleResourceInterfaceItem.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddLocaleResourceInterfaceItem is not found in the empty JSON string", + AddLocaleResourceInterfaceItem.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleResourceInterfaceItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleResourceInterfaceItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleResourceInterfaceItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddLocaleResourceInterfaceItem` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddLocaleResourceInterfaceItem.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `itemType` - LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); - if (!jsonObj.get("localizedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localizedValue").toString())); - } - if (!jsonObj.get("interfaceKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interfaceKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceKey").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddLocaleResourceInterfaceItem.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `itemType` + LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); + if (!jsonObj.get("localizedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("localizedValue").toString())); + } + if (!jsonObj.get("interfaceKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `interfaceKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("interfaceKey").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleResourceInterfaceItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleResourceInterfaceItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceInterfaceItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleResourceInterfaceItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleResourceInterfaceItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleResourceInterfaceItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleResourceInterfaceItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceInterfaceItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleResourceInterfaceItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleResourceInterfaceItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -254,7 +283,8 @@ public AddLocaleResourceInterfaceItem read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of AddLocaleResourceInterfaceItem - * @throws IOException if the JSON string is invalid with respect to AddLocaleResourceInterfaceItem + * @throws IOException if the JSON string is invalid with respect to + * AddLocaleResourceInterfaceItem */ public static AddLocaleResourceInterfaceItem fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AddLocaleResourceInterfaceItem.class); diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java index 66afad2be..b66129793 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * AddLocaleResourceItemRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddLocaleResourceItemRequest { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; @SerializedName(SERIALIZED_NAME_RESOURCE_ITEM) @javax.annotation.Nullable private AddResourceItem resourceItem; - public AddLocaleResourceItemRequest() { - } + public AddLocaleResourceItemRequest() {} - public AddLocaleResourceItemRequest resourceItem(@javax.annotation.Nullable AddResourceItem resourceItem) { + public AddLocaleResourceItemRequest resourceItem( + @javax.annotation.Nullable AddResourceItem resourceItem) { this.resourceItem = resourceItem; return this; } /** * Get resourceItem + * * @return resourceItem */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +146,58 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddLocaleResourceItemRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleResourceItemRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleResourceItemRequest is not found in the empty JSON string", AddLocaleResourceItemRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddLocaleResourceItemRequest.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddLocaleResourceItemRequest is not found in the empty JSON string", + AddLocaleResourceItemRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleResourceItemRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleResourceItemRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `resourceItem` - if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { - AddResourceItem.validateJsonElement(jsonObj.get("resourceItem")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleResourceItemRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddLocaleResourceItemRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `resourceItem` + if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { + AddResourceItem.validateJsonElement(jsonObj.get("resourceItem")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleResourceItemRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleResourceItemRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceItemRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleResourceItemRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleResourceItemRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleResourceItemRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleResourceItemRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceItemRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleResourceItemRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleResourceItemRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java index e59ef6a4d..e5fa7db40 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddLocaleResourceItemResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddLocaleResourceItemResponse { public static final String SERIALIZED_NAME_ITEM_KEY = "itemKey"; @SerializedName(SERIALIZED_NAME_ITEM_KEY) @javax.annotation.Nullable private String itemKey; - public AddLocaleResourceItemResponse() { - } + public AddLocaleResourceItemResponse() {} public AddLocaleResourceItemResponse itemKey(@javax.annotation.Nullable String itemKey) { this.itemKey = itemKey; @@ -67,6 +75,7 @@ public AddLocaleResourceItemResponse itemKey(@javax.annotation.Nullable String i /** * Item Key of resource + * * @return itemKey */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,54 +141,64 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddLocaleResourceItemResponse + * @throws IOException if the JSON Element is invalid with respect to + * AddLocaleResourceItemResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleResourceItemResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleResourceItemResponse is not found in the empty JSON string", AddLocaleResourceItemResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddLocaleResourceItemResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddLocaleResourceItemResponse is not found in the empty JSON string", + AddLocaleResourceItemResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleResourceItemResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleResourceItemResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("itemKey") != null && !jsonObj.get("itemKey").isJsonNull()) && !jsonObj.get("itemKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `itemKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("itemKey").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleResourceItemResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddLocaleResourceItemResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("itemKey") != null && !jsonObj.get("itemKey").isJsonNull()) + && !jsonObj.get("itemKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `itemKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("itemKey").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleResourceItemResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleResourceItemResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceItemResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleResourceItemResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleResourceItemResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleResourceItemResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleResourceItemResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceItemResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleResourceItemResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleResourceItemResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java index 3cc0472e7..2c206b699 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * AddLocaleResourceSchemaItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddLocaleResourceSchemaItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; @SerializedName(SERIALIZED_NAME_ITEM_TYPE) @@ -73,16 +82,17 @@ public class AddLocaleResourceSchemaItem { @javax.annotation.Nonnull private String localizedValue; - public AddLocaleResourceSchemaItem() { - } + public AddLocaleResourceSchemaItem() {} - public AddLocaleResourceSchemaItem itemType(@javax.annotation.Nonnull LocaleResourceType itemType) { + public AddLocaleResourceSchemaItem itemType( + @javax.annotation.Nonnull LocaleResourceType itemType) { this.itemType = itemType; return this; } /** * Get itemType + * * @return itemType */ @javax.annotation.Nonnull @@ -102,6 +112,7 @@ public AddLocaleResourceSchemaItem attributeKey(@javax.annotation.Nonnull String /** * Attribute Key + * * @return attributeKey */ @javax.annotation.Nonnull @@ -121,6 +132,7 @@ public AddLocaleResourceSchemaItem allowedValue(@javax.annotation.Nonnull String /** * Resource value + * * @return allowedValue */ @javax.annotation.Nonnull @@ -133,13 +145,15 @@ public void setAllowedValue(@javax.annotation.Nonnull String allowedValue) { } - public AddLocaleResourceSchemaItem localizedValue(@javax.annotation.Nonnull String localizedValue) { + public AddLocaleResourceSchemaItem localizedValue( + @javax.annotation.Nonnull String localizedValue) { this.localizedValue = localizedValue; return this; } /** * Localized Value + * * @return localizedValue */ @javax.annotation.Nonnull @@ -162,10 +176,10 @@ public boolean equals(Object o) { return false; } AddLocaleResourceSchemaItem addLocaleResourceSchemaItem = (AddLocaleResourceSchemaItem) o; - return Objects.equals(this.itemType, addLocaleResourceSchemaItem.itemType) && - Objects.equals(this.attributeKey, addLocaleResourceSchemaItem.attributeKey) && - Objects.equals(this.allowedValue, addLocaleResourceSchemaItem.allowedValue) && - Objects.equals(this.localizedValue, addLocaleResourceSchemaItem.localizedValue); + return Objects.equals(this.itemType, addLocaleResourceSchemaItem.itemType) + && Objects.equals(this.attributeKey, addLocaleResourceSchemaItem.attributeKey) + && Objects.equals(this.allowedValue, addLocaleResourceSchemaItem.allowedValue) + && Objects.equals(this.localizedValue, addLocaleResourceSchemaItem.localizedValue); } @Override @@ -186,8 +200,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -202,10 +215,12 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("itemType", "attributeKey", "allowedValue", "localizedValue")); + openapiFields = new HashSet( + Arrays.asList("itemType", "attributeKey", "allowedValue", "localizedValue")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("itemType", "attributeKey", "allowedValue", "localizedValue")); + openapiRequiredFields = new HashSet( + Arrays.asList("itemType", "attributeKey", "allowedValue", "localizedValue")); } /** @@ -215,66 +230,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddLocaleResourceSchemaItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddLocaleResourceSchemaItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddLocaleResourceSchemaItem is not found in the empty JSON string", AddLocaleResourceSchemaItem.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddLocaleResourceSchemaItem.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddLocaleResourceSchemaItem is not found in the empty JSON string", + AddLocaleResourceSchemaItem.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddLocaleResourceSchemaItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddLocaleResourceSchemaItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddLocaleResourceSchemaItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddLocaleResourceSchemaItem` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddLocaleResourceSchemaItem.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `itemType` - LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); - if (!jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); - } - if (!jsonObj.get("allowedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allowedValue").toString())); - } - if (!jsonObj.get("localizedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localizedValue").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddLocaleResourceSchemaItem.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `itemType` + LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); + if (!jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("attributeKey").toString())); + } + if (!jsonObj.get("allowedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("allowedValue").toString())); + } + if (!jsonObj.get("localizedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("localizedValue").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddLocaleResourceSchemaItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddLocaleResourceSchemaItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceSchemaItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddLocaleResourceSchemaItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddLocaleResourceSchemaItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddLocaleResourceSchemaItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddLocaleResourceSchemaItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceSchemaItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddLocaleResourceSchemaItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddLocaleResourceSchemaItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddMapping.java b/src/main/java/com/formkiq/client/model/AddMapping.java index b7cef97e3..c6511aa89 100644 --- a/src/main/java/com/formkiq/client/model/AddMapping.java +++ b/src/main/java/com/formkiq/client/model/AddMapping.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * AddMapping */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddMapping { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -70,8 +79,7 @@ public class AddMapping { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public AddMapping() { - } + public AddMapping() {} public AddMapping name(@javax.annotation.Nullable String name) { this.name = name; @@ -80,6 +88,7 @@ public AddMapping name(@javax.annotation.Nullable String name) { /** * Name of Mapping + * * @return name */ @javax.annotation.Nullable @@ -99,6 +108,7 @@ public AddMapping description(@javax.annotation.Nullable String description) { /** * Description of Mapping + * * @return description */ @javax.annotation.Nullable @@ -126,6 +136,7 @@ public AddMapping addAttributesItem(MappingAttribute attributesItem) { /** * List of attributes + * * @return attributes */ @javax.annotation.Nullable @@ -148,9 +159,9 @@ public boolean equals(Object o) { return false; } AddMapping addMapping = (AddMapping) o; - return Objects.equals(this.name, addMapping.name) && - Objects.equals(this.description, addMapping.description) && - Objects.equals(this.attributes, addMapping.attributes); + return Objects.equals(this.name, addMapping.name) + && Objects.equals(this.description, addMapping.description) + && Objects.equals(this.attributes, addMapping.attributes); } @Override @@ -170,8 +181,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,68 +209,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddMapping */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddMapping is not found in the empty JSON string", AddMapping.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddMapping is not found in the empty JSON string", + AddMapping.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddMapping.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddMapping.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddMapping` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - MappingAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + MappingAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddMapping.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddMapping' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddMapping.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddMapping value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddMapping read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddMapping.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddMapping' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddMapping.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddMapping value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddMapping read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddMappingRequest.java b/src/main/java/com/formkiq/client/model/AddMappingRequest.java index 30bd08de7..dfb7dc82c 100644 --- a/src/main/java/com/formkiq/client/model/AddMappingRequest.java +++ b/src/main/java/com/formkiq/client/model/AddMappingRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddMappingRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddMappingRequest { public static final String SERIALIZED_NAME_MAPPING = "mapping"; @SerializedName(SERIALIZED_NAME_MAPPING) @javax.annotation.Nullable private AddMapping mapping; - public AddMappingRequest() { - } + public AddMappingRequest() {} public AddMappingRequest mapping(@javax.annotation.Nullable AddMapping mapping) { this.mapping = mapping; @@ -68,6 +76,7 @@ public AddMappingRequest mapping(@javax.annotation.Nullable AddMapping mapping) /** * Get mapping + * * @return mapping */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddMappingRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddMappingRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddMappingRequest is not found in the empty JSON string", AddMappingRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddMappingRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddMappingRequest is not found in the empty JSON string", + AddMappingRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddMappingRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddMappingRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `mapping` - if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { - AddMapping.validateJsonElement(jsonObj.get("mapping")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddMappingRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddMappingRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `mapping` + if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { + AddMapping.validateJsonElement(jsonObj.get("mapping")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddMappingRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddMappingRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddMappingRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddMappingRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddMappingRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddMappingRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddMappingRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddMappingRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddMappingRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddMappingRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddMappingResponse.java b/src/main/java/com/formkiq/client/model/AddMappingResponse.java index 6c12bccee..061ac1d5d 100644 --- a/src/main/java/com/formkiq/client/model/AddMappingResponse.java +++ b/src/main/java/com/formkiq/client/model/AddMappingResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddMappingResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddMappingResponse { public static final String SERIALIZED_NAME_MAPPING_ID = "mappingId"; @SerializedName(SERIALIZED_NAME_MAPPING_ID) @javax.annotation.Nullable private String mappingId; - public AddMappingResponse() { - } + public AddMappingResponse() {} public AddMappingResponse mappingId(@javax.annotation.Nullable String mappingId) { this.mappingId = mappingId; @@ -67,6 +75,7 @@ public AddMappingResponse mappingId(@javax.annotation.Nullable String mappingId) /** * Mapping Identifier + * * @return mappingId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddMappingResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddMappingResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddMappingResponse is not found in the empty JSON string", AddMappingResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddMappingResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddMappingResponse is not found in the empty JSON string", + AddMappingResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddMappingResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddMappingResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) && !jsonObj.get("mappingId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mappingId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddMappingResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddMappingResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) + && !jsonObj.get("mappingId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("mappingId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddMappingResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddMappingResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddMappingResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddMappingResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddMappingResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddMappingResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddMappingResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddMappingResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddMappingResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddMappingResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddNigo.java b/src/main/java/com/formkiq/client/model/AddNigo.java index 0864ad5c2..324cc0fcc 100644 --- a/src/main/java/com/formkiq/client/model/AddNigo.java +++ b/src/main/java/com/formkiq/client/model/AddNigo.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * AddNigo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddNigo { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -102,8 +111,7 @@ public class AddNigo { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public AddNigo() { - } + public AddNigo() {} public AddNigo name(@javax.annotation.Nonnull String name) { this.name = name; @@ -112,6 +120,7 @@ public AddNigo name(@javax.annotation.Nonnull String name) { /** * Name of Nigo + * * @return name */ @javax.annotation.Nonnull @@ -131,6 +140,7 @@ public AddNigo description(@javax.annotation.Nullable String description) { /** * Description of Nigo + * * @return description */ @javax.annotation.Nullable @@ -150,6 +160,7 @@ public AddNigo status(@javax.annotation.Nullable NigoStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -169,6 +180,7 @@ public AddNigo plannedStartDate(@javax.annotation.Nullable String plannedStartDa /** * Planned Start Date + * * @return plannedStartDate */ @javax.annotation.Nullable @@ -188,6 +200,7 @@ public AddNigo startDate(@javax.annotation.Nullable String startDate) { /** * Start Date + * * @return startDate */ @javax.annotation.Nullable @@ -207,6 +220,7 @@ public AddNigo endDate(@javax.annotation.Nullable String endDate) { /** * End Date + * * @return endDate */ @javax.annotation.Nullable @@ -226,6 +240,7 @@ public AddNigo dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date + * * @return dueDate */ @javax.annotation.Nullable @@ -253,6 +268,7 @@ public AddNigo putMetadataItem(String key, Object metadataItem) { /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -280,6 +296,7 @@ public AddNigo addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds + * * @return documentIds */ @javax.annotation.Nullable @@ -302,20 +319,21 @@ public boolean equals(Object o) { return false; } AddNigo addNigo = (AddNigo) o; - return Objects.equals(this.name, addNigo.name) && - Objects.equals(this.description, addNigo.description) && - Objects.equals(this.status, addNigo.status) && - Objects.equals(this.plannedStartDate, addNigo.plannedStartDate) && - Objects.equals(this.startDate, addNigo.startDate) && - Objects.equals(this.endDate, addNigo.endDate) && - Objects.equals(this.dueDate, addNigo.dueDate) && - Objects.equals(this.metadata, addNigo.metadata) && - Objects.equals(this.documentIds, addNigo.documentIds); + return Objects.equals(this.name, addNigo.name) + && Objects.equals(this.description, addNigo.description) + && Objects.equals(this.status, addNigo.status) + && Objects.equals(this.plannedStartDate, addNigo.plannedStartDate) + && Objects.equals(this.startDate, addNigo.startDate) + && Objects.equals(this.endDate, addNigo.endDate) + && Objects.equals(this.dueDate, addNigo.dueDate) + && Objects.equals(this.metadata, addNigo.metadata) + && Objects.equals(this.documentIds, addNigo.documentIds); } @Override public int hashCode() { - return Objects.hash(name, description, status, plannedStartDate, startDate, endDate, dueDate, metadata, documentIds); + return Objects.hash(name, description, status, plannedStartDate, startDate, endDate, dueDate, + metadata, documentIds); } @Override @@ -336,8 +354,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -352,7 +369,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "description", "status", "plannedStartDate", "startDate", "endDate", "dueDate", "metadata", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "description", "status", + "plannedStartDate", "startDate", "endDate", "dueDate", "metadata", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); @@ -365,81 +383,108 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddNigo */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddNigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddNigo is not found in the empty JSON string", AddNigo.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddNigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddNigo is not found in the empty JSON string", + AddNigo.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddNigo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddNigo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddNigo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddNigo` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddNigo.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - NigoStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddNigo.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + NigoStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) + && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) + && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) + && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) + && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("dueDate").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() + && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentIds` to be an array in the JSON string but got `%s`", + jsonObj.get("documentIds").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddNigo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddNigo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddNigo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddNigo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddNigo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddNigo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddNigo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddNigo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddNigo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddNigo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddNigoRequest.java b/src/main/java/com/formkiq/client/model/AddNigoRequest.java index 12578f5f7..188c8f0c4 100644 --- a/src/main/java/com/formkiq/client/model/AddNigoRequest.java +++ b/src/main/java/com/formkiq/client/model/AddNigoRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddNigoRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddNigoRequest { public static final String SERIALIZED_NAME_NIGO = "nigo"; @SerializedName(SERIALIZED_NAME_NIGO) @javax.annotation.Nonnull private AddNigo nigo; - public AddNigoRequest() { - } + public AddNigoRequest() {} public AddNigoRequest nigo(@javax.annotation.Nonnull AddNigo nigo) { this.nigo = nigo; @@ -68,6 +76,7 @@ public AddNigoRequest nigo(@javax.annotation.Nonnull AddNigo nigo) { /** * Get nigo + * * @return nigo */ @javax.annotation.Nonnull @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,57 +145,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddNigoRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddNigoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddNigoRequest is not found in the empty JSON string", AddNigoRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddNigoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddNigoRequest is not found in the empty JSON string", + AddNigoRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddNigoRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddNigoRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddNigoRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddNigoRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddNigoRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddNigoRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `nigo` - AddNigo.validateJsonElement(jsonObj.get("nigo")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `nigo` + AddNigo.validateJsonElement(jsonObj.get("nigo")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddNigoRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddNigoRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddNigoRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddNigoRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddNigoRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddNigoRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddNigoRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddNigoRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddNigoRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddNigoRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddNigoResponse.java b/src/main/java/com/formkiq/client/model/AddNigoResponse.java index fd6ee4dd4..676f81594 100644 --- a/src/main/java/com/formkiq/client/model/AddNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/AddNigoResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddNigoResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddNigoResponse { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; @SerializedName(SERIALIZED_NAME_NIGO_ID) @javax.annotation.Nullable private String nigoId; - public AddNigoResponse() { - } + public AddNigoResponse() {} public AddNigoResponse nigoId(@javax.annotation.Nullable String nigoId) { this.nigoId = nigoId; @@ -67,6 +75,7 @@ public AddNigoResponse nigoId(@javax.annotation.Nullable String nigoId) { /** * Nigo Identifier + * * @return nigoId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddNigoResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddNigoResponse is not found in the empty JSON string", AddNigoResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddNigoResponse is not found in the empty JSON string", + AddNigoResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddNigoResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddNigoResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) && !jsonObj.get("nigoId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nigoId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddNigoResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddNigoResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) + && !jsonObj.get("nigoId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("nigoId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddNigoResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddNigoResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddNigoResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddNigoResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddNigoResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddNigoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddNigoResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddNigoResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddNigoResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddNigoResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddQueueRequest.java b/src/main/java/com/formkiq/client/model/AddQueueRequest.java index cf065a1cd..0f7189cb7 100644 --- a/src/main/java/com/formkiq/client/model/AddQueueRequest.java +++ b/src/main/java/com/formkiq/client/model/AddQueueRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddQueueRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddQueueRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nonnull private String name; - public AddQueueRequest() { - } + public AddQueueRequest() {} public AddQueueRequest name(@javax.annotation.Nonnull String name) { this.name = name; @@ -67,6 +75,7 @@ public AddQueueRequest name(@javax.annotation.Nonnull String name) { /** * Queue name + * * @return name */ @javax.annotation.Nonnull @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,58 +144,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddQueueRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddQueueRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddQueueRequest is not found in the empty JSON string", AddQueueRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddQueueRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddQueueRequest is not found in the empty JSON string", + AddQueueRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddQueueRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddQueueRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddQueueRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddQueueRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddQueueRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddQueueRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddQueueRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddQueueRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddQueueRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddQueueRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddQueueRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddQueueRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddQueueRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddQueueRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddQueueRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddQueueRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddQueueResponse.java b/src/main/java/com/formkiq/client/model/AddQueueResponse.java index 718ba9800..b455f23cf 100644 --- a/src/main/java/com/formkiq/client/model/AddQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/AddQueueResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddQueueResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddQueueResponse { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; @SerializedName(SERIALIZED_NAME_QUEUE_ID) @javax.annotation.Nullable private String queueId; - public AddQueueResponse() { - } + public AddQueueResponse() {} public AddQueueResponse queueId(@javax.annotation.Nullable String queueId) { this.queueId = queueId; @@ -67,6 +75,7 @@ public AddQueueResponse queueId(@javax.annotation.Nullable String queueId) { /** * Queue Identifier + * * @return queueId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddQueueResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddQueueResponse is not found in the empty JSON string", AddQueueResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddQueueResponse is not found in the empty JSON string", + AddQueueResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddQueueResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddQueueResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) && !jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddQueueResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddQueueResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) + && !jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("queueId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddQueueResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddQueueResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddQueueResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddQueueResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddQueueResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddQueueResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddQueueResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddQueueResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddQueueResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddQueueResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java b/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java index 804576944..9b8f3849b 100644 --- a/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddReindexDocumentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddReindexDocumentRequest { public static final String SERIALIZED_NAME_TARGET = "target"; @SerializedName(SERIALIZED_NAME_TARGET) @javax.annotation.Nullable private ReindexTarget target; - public AddReindexDocumentRequest() { - } + public AddReindexDocumentRequest() {} public AddReindexDocumentRequest target(@javax.annotation.Nullable ReindexTarget target) { this.target = target; @@ -68,6 +76,7 @@ public AddReindexDocumentRequest target(@javax.annotation.Nullable ReindexTarget /** * Get target + * * @return target */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddReindexDocumentRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddReindexDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddReindexDocumentRequest is not found in the empty JSON string", AddReindexDocumentRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddReindexDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddReindexDocumentRequest is not found in the empty JSON string", + AddReindexDocumentRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddReindexDocumentRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddReindexDocumentRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `target` - if (jsonObj.get("target") != null && !jsonObj.get("target").isJsonNull()) { - ReindexTarget.validateJsonElement(jsonObj.get("target")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddReindexDocumentRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddReindexDocumentRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `target` + if (jsonObj.get("target") != null && !jsonObj.get("target").isJsonNull()) { + ReindexTarget.validateJsonElement(jsonObj.get("target")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddReindexDocumentRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddReindexDocumentRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddReindexDocumentRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddReindexDocumentRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddReindexDocumentRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddReindexDocumentRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddReindexDocumentRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddReindexDocumentRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddReindexDocumentRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddReindexDocumentRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddResourceItem.java b/src/main/java/com/formkiq/client/model/AddResourceItem.java index 05a9e34a4..b99eede9a 100644 --- a/src/main/java/com/formkiq/client/model/AddResourceItem.java +++ b/src/main/java/com/formkiq/client/model/AddResourceItem.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -63,261 +70,291 @@ import com.formkiq.client.invoker.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddResourceItem extends AbstractOpenApiSchema { - private static final Logger log = Logger.getLogger(AddResourceItem.class.getName()); + private static final Logger log = Logger.getLogger(AddResourceItem.class.getName()); - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddResourceItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddResourceItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter adapterAddLocaleResourceInterfaceItem = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceInterfaceItem.class)); - final TypeAdapter adapterAddLocaleResourceSchemaItem = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceSchemaItem.class)); - final TypeAdapter adapterAddLocaleResourceClassificationItem = gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceClassificationItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddResourceItem value) throws IOException { - if (value == null || value.getActualInstance() == null) { - elementAdapter.write(out, null); - return; - } - - // check if the actual instance is of the type `AddLocaleResourceInterfaceItem` - if (value.getActualInstance() instanceof AddLocaleResourceInterfaceItem) { - JsonElement element = adapterAddLocaleResourceInterfaceItem.toJsonTree((AddLocaleResourceInterfaceItem)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `AddLocaleResourceSchemaItem` - if (value.getActualInstance() instanceof AddLocaleResourceSchemaItem) { - JsonElement element = adapterAddLocaleResourceSchemaItem.toJsonTree((AddLocaleResourceSchemaItem)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - // check if the actual instance is of the type `AddLocaleResourceClassificationItem` - if (value.getActualInstance() instanceof AddLocaleResourceClassificationItem) { - JsonElement element = adapterAddLocaleResourceClassificationItem.toJsonTree((AddLocaleResourceClassificationItem)value.getActualInstance()); - elementAdapter.write(out, element); - return; - } - throw new IOException("Failed to serialize as the type doesn't match oneOf schemas: AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem"); - } - - @Override - public AddResourceItem read(JsonReader in) throws IOException { - Object deserialized = null; - JsonElement jsonElement = elementAdapter.read(in); - - int match = 0; - ArrayList errorMessages = new ArrayList<>(); - TypeAdapter actualAdapter = elementAdapter; - - // deserialize AddLocaleResourceInterfaceItem - try { - // validate the JSON object to see if any exception is thrown - AddLocaleResourceInterfaceItem.validateJsonElement(jsonElement); - actualAdapter = adapterAddLocaleResourceInterfaceItem; - match++; - log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceInterfaceItem'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceInterfaceItem failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddLocaleResourceInterfaceItem'", e); - } - // deserialize AddLocaleResourceSchemaItem - try { - // validate the JSON object to see if any exception is thrown - AddLocaleResourceSchemaItem.validateJsonElement(jsonElement); - actualAdapter = adapterAddLocaleResourceSchemaItem; - match++; - log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceSchemaItem'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceSchemaItem failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddLocaleResourceSchemaItem'", e); - } - // deserialize AddLocaleResourceClassificationItem - try { - // validate the JSON object to see if any exception is thrown - AddLocaleResourceClassificationItem.validateJsonElement(jsonElement); - actualAdapter = adapterAddLocaleResourceClassificationItem; - match++; - log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceClassificationItem'"); - } catch (Exception e) { - // deserialization failed, continue - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceClassificationItem failed with `%s`.", e.getMessage())); - log.log(Level.FINER, "Input data does not match schema 'AddLocaleResourceClassificationItem'", e); - } - - if (match == 1) { - AddResourceItem ret = new AddResourceItem(); - ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); - return ret; - } - - throw new IOException(String.format(Locale.ROOT, "Failed deserialization for AddResourceItem: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", match, errorMessages, jsonElement.toString())); - } - }.nullSafe(); - } - } - - // store a list of schema names defined in oneOf - public static final Map> schemas = new HashMap>(); - - public AddResourceItem() { - super("oneOf", Boolean.FALSE); - } - - public AddResourceItem(Object o) { - super("oneOf", Boolean.FALSE); - setActualInstance(o); - } - - static { - schemas.put("AddLocaleResourceInterfaceItem", AddLocaleResourceInterfaceItem.class); - schemas.put("AddLocaleResourceSchemaItem", AddLocaleResourceSchemaItem.class); - schemas.put("AddLocaleResourceClassificationItem", AddLocaleResourceClassificationItem.class); - } - - @Override - public Map> getSchemas() { - return AddResourceItem.schemas; - } - - /** - * Set the instance that matches the oneOf child schema, check - * the instance parameter is valid against the oneOf child schemas: - * AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem - * - * It could be an instance of the 'oneOf' schemas. - */ + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") @Override - public void setActualInstance(Object instance) { - if (instance instanceof AddLocaleResourceInterfaceItem) { - super.setActualInstance(instance); + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AddResourceItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddResourceItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter adapterAddLocaleResourceInterfaceItem = + gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceInterfaceItem.class)); + final TypeAdapter adapterAddLocaleResourceSchemaItem = + gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceSchemaItem.class)); + final TypeAdapter adapterAddLocaleResourceClassificationItem = + gson.getDelegateAdapter(this, TypeToken.get(AddLocaleResourceClassificationItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddResourceItem value) throws IOException { + if (value == null || value.getActualInstance() == null) { + elementAdapter.write(out, null); return; - } + } - if (instance instanceof AddLocaleResourceSchemaItem) { - super.setActualInstance(instance); + // check if the actual instance is of the type `AddLocaleResourceInterfaceItem` + if (value.getActualInstance() instanceof AddLocaleResourceInterfaceItem) { + JsonElement element = adapterAddLocaleResourceInterfaceItem + .toJsonTree((AddLocaleResourceInterfaceItem) value.getActualInstance()); + elementAdapter.write(out, element); return; - } - - if (instance instanceof AddLocaleResourceClassificationItem) { - super.setActualInstance(instance); + } + // check if the actual instance is of the type `AddLocaleResourceSchemaItem` + if (value.getActualInstance() instanceof AddLocaleResourceSchemaItem) { + JsonElement element = adapterAddLocaleResourceSchemaItem + .toJsonTree((AddLocaleResourceSchemaItem) value.getActualInstance()); + elementAdapter.write(out, element); + return; + } + // check if the actual instance is of the type `AddLocaleResourceClassificationItem` + if (value.getActualInstance() instanceof AddLocaleResourceClassificationItem) { + JsonElement element = adapterAddLocaleResourceClassificationItem + .toJsonTree((AddLocaleResourceClassificationItem) value.getActualInstance()); + elementAdapter.write(out, element); return; + } + throw new IOException( + "Failed to serialize as the type doesn't match oneOf schemas: AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem"); } - throw new RuntimeException("Invalid instance type. Must be AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem"); - } - - /** - * Get the actual instance, which can be the following: - * AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem - * - * @return The actual instance (AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem) - */ - @SuppressWarnings("unchecked") - @Override - public Object getActualInstance() { - return super.getActualInstance(); - } - - /** - * Get the actual instance of `AddLocaleResourceInterfaceItem`. If the actual instance is not `AddLocaleResourceInterfaceItem`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AddLocaleResourceInterfaceItem` - * @throws ClassCastException if the instance is not `AddLocaleResourceInterfaceItem` - */ - public AddLocaleResourceInterfaceItem getAddLocaleResourceInterfaceItem() throws ClassCastException { - return (AddLocaleResourceInterfaceItem)super.getActualInstance(); - } - - /** - * Get the actual instance of `AddLocaleResourceSchemaItem`. If the actual instance is not `AddLocaleResourceSchemaItem`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AddLocaleResourceSchemaItem` - * @throws ClassCastException if the instance is not `AddLocaleResourceSchemaItem` - */ - public AddLocaleResourceSchemaItem getAddLocaleResourceSchemaItem() throws ClassCastException { - return (AddLocaleResourceSchemaItem)super.getActualInstance(); - } + @Override + public AddResourceItem read(JsonReader in) throws IOException { + Object deserialized = null; + JsonElement jsonElement = elementAdapter.read(in); - /** - * Get the actual instance of `AddLocaleResourceClassificationItem`. If the actual instance is not `AddLocaleResourceClassificationItem`, - * the ClassCastException will be thrown. - * - * @return The actual instance of `AddLocaleResourceClassificationItem` - * @throws ClassCastException if the instance is not `AddLocaleResourceClassificationItem` - */ - public AddLocaleResourceClassificationItem getAddLocaleResourceClassificationItem() throws ClassCastException { - return (AddLocaleResourceClassificationItem)super.getActualInstance(); - } + int match = 0; + ArrayList errorMessages = new ArrayList<>(); + TypeAdapter actualAdapter = elementAdapter; - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AddResourceItem - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - // validate oneOf schemas one by one - int validCount = 0; - ArrayList errorMessages = new ArrayList<>(); - // validate the json string with AddLocaleResourceInterfaceItem - try { + // deserialize AddLocaleResourceInterfaceItem + try { + // validate the JSON object to see if any exception is thrown AddLocaleResourceInterfaceItem.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceInterfaceItem failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with AddLocaleResourceSchemaItem - try { + actualAdapter = adapterAddLocaleResourceInterfaceItem; + match++; + log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceInterfaceItem'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddLocaleResourceInterfaceItem failed with `%s`.", + e.getMessage())); + log.log(Level.FINER, + "Input data does not match schema 'AddLocaleResourceInterfaceItem'", e); + } + // deserialize AddLocaleResourceSchemaItem + try { + // validate the JSON object to see if any exception is thrown AddLocaleResourceSchemaItem.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceSchemaItem failed with `%s`.", e.getMessage())); - // continue to the next one - } - // validate the json string with AddLocaleResourceClassificationItem - try { + actualAdapter = adapterAddLocaleResourceSchemaItem; + match++; + log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceSchemaItem'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddLocaleResourceSchemaItem failed with `%s`.", + e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'AddLocaleResourceSchemaItem'", + e); + } + // deserialize AddLocaleResourceClassificationItem + try { + // validate the JSON object to see if any exception is thrown AddLocaleResourceClassificationItem.validateJsonElement(jsonElement); - validCount++; - } catch (Exception e) { - errorMessages.add(String.format(Locale.ROOT, "Deserialization for AddLocaleResourceClassificationItem failed with `%s`.", e.getMessage())); - // continue to the next one - } - if (validCount != 1) { - throw new IOException(String.format(Locale.ROOT, "The JSON string is invalid for AddResourceItem with oneOf schemas: AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + actualAdapter = adapterAddLocaleResourceClassificationItem; + match++; + log.log(Level.FINER, "Input data matches schema 'AddLocaleResourceClassificationItem'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddLocaleResourceClassificationItem failed with `%s`.", + e.getMessage())); + log.log(Level.FINER, + "Input data does not match schema 'AddLocaleResourceClassificationItem'", e); + } + + if (match == 1) { + AddResourceItem ret = new AddResourceItem(); + ret.setActualInstance(actualAdapter.fromJsonTree(jsonElement)); + return ret; + } + + throw new IOException(String.format(Locale.ROOT, + "Failed deserialization for AddResourceItem: %d classes match result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", + match, errorMessages, jsonElement.toString())); } + }.nullSafe(); + } + } + + // store a list of schema names defined in oneOf + public static final Map> schemas = new HashMap>(); + + public AddResourceItem() { + super("oneOf", Boolean.FALSE); + } + + public AddResourceItem(Object o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("AddLocaleResourceInterfaceItem", AddLocaleResourceInterfaceItem.class); + schemas.put("AddLocaleResourceSchemaItem", AddLocaleResourceSchemaItem.class); + schemas.put("AddLocaleResourceClassificationItem", AddLocaleResourceClassificationItem.class); + } + + @Override + public Map> getSchemas() { + return AddResourceItem.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check the instance parameter is valid + * against the oneOf child schemas: AddLocaleResourceClassificationItem, + * AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem + * + * It could be an instance of the 'oneOf' schemas. + */ + @Override + public void setActualInstance(Object instance) { + if (instance instanceof AddLocaleResourceInterfaceItem) { + super.setActualInstance(instance); + return; } - /** - * Create an instance of AddResourceItem given an JSON string - * - * @param jsonString JSON string - * @return An instance of AddResourceItem - * @throws IOException if the JSON string is invalid with respect to AddResourceItem - */ - public static AddResourceItem fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, AddResourceItem.class); + if (instance instanceof AddLocaleResourceSchemaItem) { + super.setActualInstance(instance); + return; } - /** - * Convert an instance of AddResourceItem to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); + if (instance instanceof AddLocaleResourceClassificationItem) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException( + "Invalid instance type. Must be AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem"); + } + + /** + * Get the actual instance, which can be the following: AddLocaleResourceClassificationItem, + * AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem + * + * @return The actual instance (AddLocaleResourceClassificationItem, + * AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem) + */ + @SuppressWarnings("unchecked") + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `AddLocaleResourceInterfaceItem`. If the actual instance is not + * `AddLocaleResourceInterfaceItem`, the ClassCastException will be thrown. + * + * @return The actual instance of `AddLocaleResourceInterfaceItem` + * @throws ClassCastException if the instance is not `AddLocaleResourceInterfaceItem` + */ + public AddLocaleResourceInterfaceItem getAddLocaleResourceInterfaceItem() + throws ClassCastException { + return (AddLocaleResourceInterfaceItem) super.getActualInstance(); + } + + /** + * Get the actual instance of `AddLocaleResourceSchemaItem`. If the actual instance is not + * `AddLocaleResourceSchemaItem`, the ClassCastException will be thrown. + * + * @return The actual instance of `AddLocaleResourceSchemaItem` + * @throws ClassCastException if the instance is not `AddLocaleResourceSchemaItem` + */ + public AddLocaleResourceSchemaItem getAddLocaleResourceSchemaItem() throws ClassCastException { + return (AddLocaleResourceSchemaItem) super.getActualInstance(); + } + + /** + * Get the actual instance of `AddLocaleResourceClassificationItem`. If the actual instance is not + * `AddLocaleResourceClassificationItem`, the ClassCastException will be thrown. + * + * @return The actual instance of `AddLocaleResourceClassificationItem` + * @throws ClassCastException if the instance is not `AddLocaleResourceClassificationItem` + */ + public AddLocaleResourceClassificationItem getAddLocaleResourceClassificationItem() + throws ClassCastException { + return (AddLocaleResourceClassificationItem) super.getActualInstance(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AddResourceItem + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + // validate oneOf schemas one by one + int validCount = 0; + ArrayList errorMessages = new ArrayList<>(); + // validate the json string with AddLocaleResourceInterfaceItem + try { + AddLocaleResourceInterfaceItem.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddLocaleResourceInterfaceItem failed with `%s`.", e.getMessage())); + // continue to the next one + } + // validate the json string with AddLocaleResourceSchemaItem + try { + AddLocaleResourceSchemaItem.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddLocaleResourceSchemaItem failed with `%s`.", e.getMessage())); + // continue to the next one + } + // validate the json string with AddLocaleResourceClassificationItem + try { + AddLocaleResourceClassificationItem.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format(Locale.ROOT, + "Deserialization for AddLocaleResourceClassificationItem failed with `%s`.", + e.getMessage())); + // continue to the next one + } + if (validCount != 1) { + throw new IOException(String.format(Locale.ROOT, + "The JSON string is invalid for AddResourceItem with oneOf schemas: AddLocaleResourceClassificationItem, AddLocaleResourceInterfaceItem, AddLocaleResourceSchemaItem. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", + validCount, errorMessages, jsonElement.toString())); } + } + + /** + * Create an instance of AddResourceItem given an JSON string + * + * @param jsonString JSON string + * @return An instance of AddResourceItem + * @throws IOException if the JSON string is invalid with respect to AddResourceItem + */ + public static AddResourceItem fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AddResourceItem.class); + } + + /** + * Convert an instance of AddResourceItem to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/com/formkiq/client/model/AddResponse.java b/src/main/java/com/formkiq/client/model/AddResponse.java index 29677d02a..0b6460037 100644 --- a/src/main/java/com/formkiq/client/model/AddResponse.java +++ b/src/main/java/com/formkiq/client/model/AddResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public AddResponse() { - } + public AddResponse() {} public AddResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public AddResponse message(@javax.annotation.Nullable String message) { /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddResponse is not found in the empty JSON string", AddResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddResponse is not found in the empty JSON string", + AddResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRule.java b/src/main/java/com/formkiq/client/model/AddRule.java index 4d088cdbb..ea290332b 100644 --- a/src/main/java/com/formkiq/client/model/AddRule.java +++ b/src/main/java/com/formkiq/client/model/AddRule.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * AddRule */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddRule { public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) @@ -80,8 +89,7 @@ public class AddRule { @javax.annotation.Nullable private RuleCondition conditions; - public AddRule() { - } + public AddRule() {} public AddRule priority(@javax.annotation.Nullable BigDecimal priority) { this.priority = priority; @@ -90,6 +98,7 @@ public AddRule priority(@javax.annotation.Nullable BigDecimal priority) { /** * Rule priority + * * @return priority */ @javax.annotation.Nullable @@ -109,6 +118,7 @@ public AddRule description(@javax.annotation.Nullable String description) { /** * Rule description + * * @return description */ @javax.annotation.Nullable @@ -128,6 +138,7 @@ public AddRule workflowId(@javax.annotation.Nullable String workflowId) { /** * Workflow to start on matching of conditions + * * @return workflowId */ @javax.annotation.Nullable @@ -147,6 +158,7 @@ public AddRule status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -166,6 +178,7 @@ public AddRule conditions(@javax.annotation.Nullable RuleCondition conditions) { /** * Get conditions + * * @return conditions */ @javax.annotation.Nullable @@ -188,11 +201,11 @@ public boolean equals(Object o) { return false; } AddRule addRule = (AddRule) o; - return Objects.equals(this.priority, addRule.priority) && - Objects.equals(this.description, addRule.description) && - Objects.equals(this.workflowId, addRule.workflowId) && - Objects.equals(this.status, addRule.status) && - Objects.equals(this.conditions, addRule.conditions); + return Objects.equals(this.priority, addRule.priority) + && Objects.equals(this.description, addRule.description) + && Objects.equals(this.workflowId, addRule.workflowId) + && Objects.equals(this.status, addRule.status) + && Objects.equals(this.conditions, addRule.conditions); } @Override @@ -214,8 +227,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -230,7 +242,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("priority", "description", "workflowId", "status", "conditions")); + openapiFields = new HashSet( + Arrays.asList("priority", "description", "workflowId", "status", "conditions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -243,62 +256,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRule */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRule is not found in the empty JSON string", AddRule.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddRule is not found in the empty JSON string", + AddRule.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); - } - // validate the optional field `conditions` - if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { - RuleCondition.validateJsonElement(jsonObj.get("conditions")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddRule` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) + && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workflowId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); + } + // validate the optional field `conditions` + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + RuleCondition.validateJsonElement(jsonObj.get("conditions")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRule.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRule' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddRule.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRule value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRule read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRule read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRuleRequest.java b/src/main/java/com/formkiq/client/model/AddRuleRequest.java index 9a9673fd7..e5680e816 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleRequest.java +++ b/src/main/java/com/formkiq/client/model/AddRuleRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddRuleRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddRuleRequest { public static final String SERIALIZED_NAME_RULE = "rule"; @SerializedName(SERIALIZED_NAME_RULE) @javax.annotation.Nullable private AddRule rule; - public AddRuleRequest() { - } + public AddRuleRequest() {} public AddRuleRequest rule(@javax.annotation.Nullable AddRule rule) { this.rule = rule; @@ -68,6 +76,7 @@ public AddRuleRequest rule(@javax.annotation.Nullable AddRule rule) { /** * Get rule + * * @return rule */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRuleRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRuleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRuleRequest is not found in the empty JSON string", AddRuleRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddRuleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddRuleRequest is not found in the empty JSON string", + AddRuleRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRuleRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRuleRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `rule` - if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { - AddRule.validateJsonElement(jsonObj.get("rule")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRuleRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddRuleRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `rule` + if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { + AddRule.validateJsonElement(jsonObj.get("rule")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRuleRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRuleRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddRuleRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRuleRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRuleRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRuleRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRuleRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddRuleRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRuleRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRuleRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRuleResponse.java b/src/main/java/com/formkiq/client/model/AddRuleResponse.java index 5223d417a..8cbe02d9a 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/AddRuleResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddRuleResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddRuleResponse { public static final String SERIALIZED_NAME_RULE_ID = "ruleId"; @SerializedName(SERIALIZED_NAME_RULE_ID) @javax.annotation.Nullable private String ruleId; - public AddRuleResponse() { - } + public AddRuleResponse() {} public AddRuleResponse ruleId(@javax.annotation.Nullable String ruleId) { this.ruleId = ruleId; @@ -67,6 +75,7 @@ public AddRuleResponse ruleId(@javax.annotation.Nullable String ruleId) { /** * Rule Identifier + * * @return ruleId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRuleResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRuleResponse is not found in the empty JSON string", AddRuleResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddRuleResponse is not found in the empty JSON string", + AddRuleResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRuleResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRuleResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("ruleId") != null && !jsonObj.get("ruleId").isJsonNull()) && !jsonObj.get("ruleId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ruleId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ruleId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRuleResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddRuleResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("ruleId") != null && !jsonObj.get("ruleId").isJsonNull()) + && !jsonObj.get("ruleId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `ruleId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("ruleId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRuleResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRuleResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddRuleResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRuleResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRuleResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRuleResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRuleResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddRuleResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRuleResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRuleResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRuleset.java b/src/main/java/com/formkiq/client/model/AddRuleset.java index 15ee36bd4..6c8345254 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleset.java +++ b/src/main/java/com/formkiq/client/model/AddRuleset.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * AddRuleset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddRuleset { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -74,8 +83,7 @@ public class AddRuleset { @javax.annotation.Nullable private RulesetStatus status; - public AddRuleset() { - } + public AddRuleset() {} public AddRuleset description(@javax.annotation.Nullable String description) { this.description = description; @@ -84,6 +92,7 @@ public AddRuleset description(@javax.annotation.Nullable String description) { /** * Ruleset description + * * @return description */ @javax.annotation.Nullable @@ -103,6 +112,7 @@ public AddRuleset priority(@javax.annotation.Nullable BigDecimal priority) { /** * Ruleset priority + * * @return priority */ @javax.annotation.Nullable @@ -122,6 +132,7 @@ public AddRuleset version(@javax.annotation.Nullable BigDecimal version) { /** * Ruleset version + * * @return version */ @javax.annotation.Nullable @@ -141,6 +152,7 @@ public AddRuleset status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -163,10 +175,10 @@ public boolean equals(Object o) { return false; } AddRuleset addRuleset = (AddRuleset) o; - return Objects.equals(this.description, addRuleset.description) && - Objects.equals(this.priority, addRuleset.priority) && - Objects.equals(this.version, addRuleset.version) && - Objects.equals(this.status, addRuleset.status); + return Objects.equals(this.description, addRuleset.description) + && Objects.equals(this.priority, addRuleset.priority) + && Objects.equals(this.version, addRuleset.version) + && Objects.equals(this.status, addRuleset.status); } @Override @@ -187,8 +199,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -203,7 +214,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("description", "priority", "version", "status")); + openapiFields = + new HashSet(Arrays.asList("description", "priority", "version", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -216,55 +228,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRuleset */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRuleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRuleset is not found in the empty JSON string", AddRuleset.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddRuleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddRuleset is not found in the empty JSON string", + AddRuleset.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRuleset.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRuleset` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRuleset.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddRuleset` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRuleset.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRuleset' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddRuleset.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRuleset value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRuleset read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRuleset.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRuleset' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddRuleset.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRuleset value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRuleset read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRulesetRequest.java b/src/main/java/com/formkiq/client/model/AddRulesetRequest.java index 5412635b6..735a19b37 100644 --- a/src/main/java/com/formkiq/client/model/AddRulesetRequest.java +++ b/src/main/java/com/formkiq/client/model/AddRulesetRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddRulesetRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddRulesetRequest { public static final String SERIALIZED_NAME_RULESET = "ruleset"; @SerializedName(SERIALIZED_NAME_RULESET) @javax.annotation.Nonnull private AddRuleset ruleset; - public AddRulesetRequest() { - } + public AddRulesetRequest() {} public AddRulesetRequest ruleset(@javax.annotation.Nonnull AddRuleset ruleset) { this.ruleset = ruleset; @@ -68,6 +76,7 @@ public AddRulesetRequest ruleset(@javax.annotation.Nonnull AddRuleset ruleset) { /** * Get ruleset + * * @return ruleset */ @javax.annotation.Nonnull @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,57 +145,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRulesetRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRulesetRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRulesetRequest is not found in the empty JSON string", AddRulesetRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddRulesetRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddRulesetRequest is not found in the empty JSON string", + AddRulesetRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRulesetRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRulesetRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRulesetRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddRulesetRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddRulesetRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddRulesetRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `ruleset` - AddRuleset.validateJsonElement(jsonObj.get("ruleset")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `ruleset` + AddRuleset.validateJsonElement(jsonObj.get("ruleset")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRulesetRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRulesetRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddRulesetRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRulesetRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRulesetRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRulesetRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRulesetRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddRulesetRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRulesetRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRulesetRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddRulesetResponse.java b/src/main/java/com/formkiq/client/model/AddRulesetResponse.java index 73fd8dc83..692a8092f 100644 --- a/src/main/java/com/formkiq/client/model/AddRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/AddRulesetResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddRulesetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddRulesetResponse { public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) @javax.annotation.Nullable private String rulesetId; - public AddRulesetResponse() { - } + public AddRulesetResponse() {} public AddRulesetResponse rulesetId(@javax.annotation.Nullable String rulesetId) { this.rulesetId = rulesetId; @@ -67,6 +75,7 @@ public AddRulesetResponse rulesetId(@javax.annotation.Nullable String rulesetId) /** * Ruleset Identifier + * * @return rulesetId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddRulesetResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddRulesetResponse is not found in the empty JSON string", AddRulesetResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddRulesetResponse is not found in the empty JSON string", + AddRulesetResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddRulesetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddRulesetResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("rulesetId") != null && !jsonObj.get("rulesetId").isJsonNull()) && !jsonObj.get("rulesetId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rulesetId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rulesetId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddRulesetResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddRulesetResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("rulesetId") != null && !jsonObj.get("rulesetId").isJsonNull()) + && !jsonObj.get("rulesetId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `rulesetId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("rulesetId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddRulesetResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddRulesetResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddRulesetResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddRulesetResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddRulesetResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddRulesetResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddRulesetResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddRulesetResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddRulesetResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddRulesetResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddShare.java b/src/main/java/com/formkiq/client/model/AddShare.java index 797a112a8..9b43b8ccc 100644 --- a/src/main/java/com/formkiq/client/model/AddShare.java +++ b/src/main/java/com/formkiq/client/model/AddShare.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * AddShare */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddShare { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -65,8 +74,7 @@ public class AddShare { @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public AddShare() { - } + public AddShare() {} public AddShare group(@javax.annotation.Nullable String group) { this.group = group; @@ -75,6 +83,7 @@ public AddShare group(@javax.annotation.Nullable String group) { /** * Share with Group + * * @return group */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public AddShare addPermissionsItem(UserSharePermission permissionsItem) { /** * List of share permissions + * * @return permissions */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } AddShare addShare = (AddShare) o; - return Objects.equals(this.group, addShare.group) && - Objects.equals(this.permissions, addShare.permissions); + return Objects.equals(this.group, addShare.group) + && Objects.equals(this.permissions, addShare.permissions); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,55 +182,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddShare */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddShare.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddShare is not found in the empty JSON string", AddShare.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddShare.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddShare is not found in the empty JSON string", + AddShare.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddShare.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddShare` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddShare.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddShare` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) + && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `group` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("group").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() + && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `permissions` to be an array in the JSON string but got `%s`", + jsonObj.get("permissions").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddShare.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddShare' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddShare.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddShare value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddShare read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddShare.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddShare' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddShare.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddShare value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddShare read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddSite.java b/src/main/java/com/formkiq/client/model/AddSite.java index 39bbe8448..3ec28dea1 100644 --- a/src/main/java/com/formkiq/client/model/AddSite.java +++ b/src/main/java/com/formkiq/client/model/AddSite.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * AddSite */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddSite { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -68,8 +77,7 @@ public class AddSite { @javax.annotation.Nullable private SiteStatus status; - public AddSite() { - } + public AddSite() {} public AddSite id(@javax.annotation.Nullable String id) { this.id = id; @@ -78,6 +86,7 @@ public AddSite id(@javax.annotation.Nullable String id) { /** * Site Id + * * @return id */ @javax.annotation.Nullable @@ -97,6 +106,7 @@ public AddSite title(@javax.annotation.Nullable String title) { /** * Title of Site + * * @return title */ @javax.annotation.Nullable @@ -116,6 +126,7 @@ public AddSite status(@javax.annotation.Nullable SiteStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -138,9 +149,8 @@ public boolean equals(Object o) { return false; } AddSite addSite = (AddSite) o; - return Objects.equals(this.id, addSite.id) && - Objects.equals(this.title, addSite.title) && - Objects.equals(this.status, addSite.status); + return Objects.equals(this.id, addSite.id) && Objects.equals(this.title, addSite.title) + && Objects.equals(this.status, addSite.status); } @Override @@ -160,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,58 +198,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddSite */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddSite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddSite is not found in the empty JSON string", AddSite.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddSite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddSite is not found in the empty JSON string", + AddSite.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddSite.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddSite` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - SiteStatus.validateJsonElement(jsonObj.get("status")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddSite.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddSite` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) + && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `id` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("id").toString())); + } + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) + && !jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `title` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("title").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + SiteStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddSite.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddSite' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddSite.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddSite value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddSite read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddSite.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddSite' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddSite.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddSite value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddSite read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddSiteRequest.java b/src/main/java/com/formkiq/client/model/AddSiteRequest.java index aff68c7ea..ab9b3ad55 100644 --- a/src/main/java/com/formkiq/client/model/AddSiteRequest.java +++ b/src/main/java/com/formkiq/client/model/AddSiteRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddSiteRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddSiteRequest { public static final String SERIALIZED_NAME_SITE = "site"; @SerializedName(SERIALIZED_NAME_SITE) @javax.annotation.Nullable private AddSite site; - public AddSiteRequest() { - } + public AddSiteRequest() {} public AddSiteRequest site(@javax.annotation.Nullable AddSite site) { this.site = site; @@ -68,6 +76,7 @@ public AddSiteRequest site(@javax.annotation.Nullable AddSite site) { /** * Get site + * * @return site */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddSiteRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddSiteRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddSiteRequest is not found in the empty JSON string", AddSiteRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddSiteRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddSiteRequest is not found in the empty JSON string", + AddSiteRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddSiteRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddSiteRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `site` - if (jsonObj.get("site") != null && !jsonObj.get("site").isJsonNull()) { - AddSite.validateJsonElement(jsonObj.get("site")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddSiteRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddSiteRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `site` + if (jsonObj.get("site") != null && !jsonObj.get("site").isJsonNull()) { + AddSite.validateJsonElement(jsonObj.get("site")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddSiteRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddSiteRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddSiteRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddSiteRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddSiteRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddSiteRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddSiteRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddSiteRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddSiteRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddSiteRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddTask.java b/src/main/java/com/formkiq/client/model/AddTask.java index 455b035ac..7eb6d9cdb 100644 --- a/src/main/java/com/formkiq/client/model/AddTask.java +++ b/src/main/java/com/formkiq/client/model/AddTask.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * AddTask */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddTask { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -102,8 +111,7 @@ public class AddTask { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public AddTask() { - } + public AddTask() {} public AddTask name(@javax.annotation.Nullable String name) { this.name = name; @@ -112,6 +120,7 @@ public AddTask name(@javax.annotation.Nullable String name) { /** * Name of Task + * * @return name */ @javax.annotation.Nullable @@ -131,6 +140,7 @@ public AddTask description(@javax.annotation.Nonnull String description) { /** * Description of Task + * * @return description */ @javax.annotation.Nonnull @@ -150,6 +160,7 @@ public AddTask status(@javax.annotation.Nullable TaskStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -169,6 +180,7 @@ public AddTask plannedStartDate(@javax.annotation.Nullable String plannedStartDa /** * Planned Start Date + * * @return plannedStartDate */ @javax.annotation.Nullable @@ -188,6 +200,7 @@ public AddTask startDate(@javax.annotation.Nullable String startDate) { /** * Start Date + * * @return startDate */ @javax.annotation.Nullable @@ -207,6 +220,7 @@ public AddTask endDate(@javax.annotation.Nullable String endDate) { /** * End Date + * * @return endDate */ @javax.annotation.Nullable @@ -226,6 +240,7 @@ public AddTask dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date + * * @return dueDate */ @javax.annotation.Nullable @@ -253,6 +268,7 @@ public AddTask putMetadataItem(String key, Object metadataItem) { /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -280,6 +296,7 @@ public AddTask addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds + * * @return documentIds */ @javax.annotation.Nullable @@ -302,20 +319,21 @@ public boolean equals(Object o) { return false; } AddTask addTask = (AddTask) o; - return Objects.equals(this.name, addTask.name) && - Objects.equals(this.description, addTask.description) && - Objects.equals(this.status, addTask.status) && - Objects.equals(this.plannedStartDate, addTask.plannedStartDate) && - Objects.equals(this.startDate, addTask.startDate) && - Objects.equals(this.endDate, addTask.endDate) && - Objects.equals(this.dueDate, addTask.dueDate) && - Objects.equals(this.metadata, addTask.metadata) && - Objects.equals(this.documentIds, addTask.documentIds); + return Objects.equals(this.name, addTask.name) + && Objects.equals(this.description, addTask.description) + && Objects.equals(this.status, addTask.status) + && Objects.equals(this.plannedStartDate, addTask.plannedStartDate) + && Objects.equals(this.startDate, addTask.startDate) + && Objects.equals(this.endDate, addTask.endDate) + && Objects.equals(this.dueDate, addTask.dueDate) + && Objects.equals(this.metadata, addTask.metadata) + && Objects.equals(this.documentIds, addTask.documentIds); } @Override public int hashCode() { - return Objects.hash(name, description, status, plannedStartDate, startDate, endDate, dueDate, metadata, documentIds); + return Objects.hash(name, description, status, plannedStartDate, startDate, endDate, dueDate, + metadata, documentIds); } @Override @@ -336,8 +354,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -352,7 +369,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "description", "status", "plannedStartDate", "startDate", "endDate", "dueDate", "metadata", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "description", "status", + "plannedStartDate", "startDate", "endDate", "dueDate", "metadata", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("description")); @@ -365,81 +383,108 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddTask */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddTask.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddTask is not found in the empty JSON string", AddTask.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddTask.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddTask is not found in the empty JSON string", + AddTask.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddTask.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddTask` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddTask.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddTask` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddTask.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (!jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - TaskStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddTask.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if (!jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + TaskStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) + && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) + && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) + && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) + && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("dueDate").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() + && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentIds` to be an array in the JSON string but got `%s`", + jsonObj.get("documentIds").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddTask.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddTask' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddTask.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddTask value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddTask read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddTask.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddTask' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddTask.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddTask value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddTask read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddTaskRequest.java b/src/main/java/com/formkiq/client/model/AddTaskRequest.java index 345245759..83d85c30d 100644 --- a/src/main/java/com/formkiq/client/model/AddTaskRequest.java +++ b/src/main/java/com/formkiq/client/model/AddTaskRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddTaskRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddTaskRequest { public static final String SERIALIZED_NAME_TASK = "task"; @SerializedName(SERIALIZED_NAME_TASK) @javax.annotation.Nonnull private AddTask task; - public AddTaskRequest() { - } + public AddTaskRequest() {} public AddTaskRequest task(@javax.annotation.Nonnull AddTask task) { this.task = task; @@ -68,6 +76,7 @@ public AddTaskRequest task(@javax.annotation.Nonnull AddTask task) { /** * Get task + * * @return task */ @javax.annotation.Nonnull @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,57 +145,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddTaskRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddTaskRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddTaskRequest is not found in the empty JSON string", AddTaskRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddTaskRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddTaskRequest is not found in the empty JSON string", + AddTaskRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddTaskRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddTaskRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddTaskRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddTaskRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddTaskRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddTaskRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `task` - AddTask.validateJsonElement(jsonObj.get("task")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `task` + AddTask.validateJsonElement(jsonObj.get("task")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddTaskRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddTaskRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddTaskRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddTaskRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddTaskRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddTaskRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddTaskRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddTaskRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddTaskRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddTaskRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddTaskResponse.java b/src/main/java/com/formkiq/client/model/AddTaskResponse.java index 4a29f976b..552458cf6 100644 --- a/src/main/java/com/formkiq/client/model/AddTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/AddTaskResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddTaskResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddTaskResponse { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; @SerializedName(SERIALIZED_NAME_TASK_ID) @javax.annotation.Nullable private String taskId; - public AddTaskResponse() { - } + public AddTaskResponse() {} public AddTaskResponse taskId(@javax.annotation.Nullable String taskId) { this.taskId = taskId; @@ -67,6 +75,7 @@ public AddTaskResponse taskId(@javax.annotation.Nullable String taskId) { /** * Task Identifier + * * @return taskId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddTaskResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddTaskResponse is not found in the empty JSON string", AddTaskResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddTaskResponse is not found in the empty JSON string", + AddTaskResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddTaskResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddTaskResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) && !jsonObj.get("taskId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("taskId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddTaskResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddTaskResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) + && !jsonObj.get("taskId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("taskId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddTaskResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddTaskResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddTaskResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddTaskResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddTaskResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddTaskResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddTaskResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddTaskResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddTaskResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddTaskResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddUser.java b/src/main/java/com/formkiq/client/model/AddUser.java index 7d74694e2..12970e985 100644 --- a/src/main/java/com/formkiq/client/model/AddUser.java +++ b/src/main/java/com/formkiq/client/model/AddUser.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * AddUser */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddUser { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) @@ -63,8 +72,7 @@ public class AddUser { @javax.annotation.Nullable private UserAttributes attributes; - public AddUser() { - } + public AddUser() {} public AddUser username(@javax.annotation.Nullable String username) { this.username = username; @@ -73,6 +81,7 @@ public AddUser username(@javax.annotation.Nullable String username) { /** * Email address of user + * * @return username */ @javax.annotation.Nullable @@ -92,6 +101,7 @@ public AddUser attributes(@javax.annotation.Nullable UserAttributes attributes) /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -114,8 +124,8 @@ public boolean equals(Object o) { return false; } AddUser addUser = (AddUser) o; - return Objects.equals(this.username, addUser.username) && - Objects.equals(this.attributes, addUser.attributes); + return Objects.equals(this.username, addUser.username) + && Objects.equals(this.attributes, addUser.attributes); } @Override @@ -134,8 +144,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,55 +172,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddUser */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddUser is not found in the empty JSON string", AddUser.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddUser is not found in the empty JSON string", + AddUser.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddUser.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddUser` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - UserAttributes.validateJsonElement(jsonObj.get("attributes")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddUser.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddUser` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) + && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `username` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("username").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + UserAttributes.validateJsonElement(jsonObj.get("attributes")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddUser.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddUser' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddUser.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddUser value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddUser read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddUser.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddUser' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddUser.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddUser value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddUser read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddUserRequest.java b/src/main/java/com/formkiq/client/model/AddUserRequest.java index ff56dde18..96483c7df 100644 --- a/src/main/java/com/formkiq/client/model/AddUserRequest.java +++ b/src/main/java/com/formkiq/client/model/AddUserRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * AddUserRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddUserRequest { public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) @javax.annotation.Nonnull private AddUser user; - public AddUserRequest() { - } + public AddUserRequest() {} public AddUserRequest user(@javax.annotation.Nonnull AddUser user) { this.user = user; @@ -68,6 +76,7 @@ public AddUserRequest user(@javax.annotation.Nonnull AddUser user) { /** * Get user + * * @return user */ @javax.annotation.Nonnull @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,57 +145,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddUserRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddUserRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddUserRequest is not found in the empty JSON string", AddUserRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddUserRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddUserRequest is not found in the empty JSON string", + AddUserRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddUserRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddUserRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddUserRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddUserRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddUserRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddUserRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `user` - AddUser.validateJsonElement(jsonObj.get("user")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `user` + AddUser.validateJsonElement(jsonObj.get("user")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddUserRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddUserRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddUserRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddUserRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddUserRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddUserRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddUserRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddUserRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddUserRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddUserRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWebhookRequest.java b/src/main/java/com/formkiq/client/model/AddWebhookRequest.java index ac007a7fd..d2d93fc5a 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * AddWebhookRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddWebhookRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -75,8 +84,7 @@ public class AddWebhookRequest { @javax.annotation.Nullable private List tags = new ArrayList<>(); - public AddWebhookRequest() { - } + public AddWebhookRequest() {} public AddWebhookRequest name(@javax.annotation.Nonnull String name) { this.name = name; @@ -85,6 +93,7 @@ public AddWebhookRequest name(@javax.annotation.Nonnull String name) { /** * Name of webhook + * * @return name */ @javax.annotation.Nonnull @@ -104,6 +113,7 @@ public AddWebhookRequest ttl(@javax.annotation.Nullable String ttl) { /** * Webhook time to live (expiry in seconds) + * * @return ttl */ @javax.annotation.Nullable @@ -123,6 +133,7 @@ public AddWebhookRequest enabled(@javax.annotation.Nullable String enabled) { /** * Is webhook enabled + * * @return enabled */ @javax.annotation.Nullable @@ -150,6 +161,7 @@ public AddWebhookRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags + * * @return tags */ @javax.annotation.Nullable @@ -172,10 +184,10 @@ public boolean equals(Object o) { return false; } AddWebhookRequest addWebhookRequest = (AddWebhookRequest) o; - return Objects.equals(this.name, addWebhookRequest.name) && - Objects.equals(this.ttl, addWebhookRequest.ttl) && - Objects.equals(this.enabled, addWebhookRequest.enabled) && - Objects.equals(this.tags, addWebhookRequest.tags); + return Objects.equals(this.name, addWebhookRequest.name) + && Objects.equals(this.ttl, addWebhookRequest.ttl) + && Objects.equals(this.enabled, addWebhookRequest.enabled) + && Objects.equals(this.tags, addWebhookRequest.tags); } @Override @@ -196,8 +208,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -225,78 +236,95 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWebhookRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWebhookRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWebhookRequest is not found in the empty JSON string", AddWebhookRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddWebhookRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddWebhookRequest is not found in the empty JSON string", + AddWebhookRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWebhookRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWebhookRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWebhookRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddWebhookRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddWebhookRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("ttl") != null && !jsonObj.get("ttl").isJsonNull()) && !jsonObj.get("ttl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ttl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ttl").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddWebhookRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - if ((jsonObj.get("enabled") != null && !jsonObj.get("enabled").isJsonNull()) && !jsonObj.get("enabled").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `enabled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("enabled").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("ttl") != null && !jsonObj.get("ttl").isJsonNull()) + && !jsonObj.get("ttl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `ttl` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("ttl").toString())); + } + if ((jsonObj.get("enabled") != null && !jsonObj.get("enabled").isJsonNull()) + && !jsonObj.get("enabled").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `enabled` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("enabled").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWebhookRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWebhookRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddWebhookRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWebhookRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWebhookRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWebhookRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWebhookRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddWebhookRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWebhookRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWebhookRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWebhookResponse.java b/src/main/java/com/formkiq/client/model/AddWebhookResponse.java index bebe943d5..da57e6c06 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookResponse.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * AddWebhookResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddWebhookResponse { public static final String SERIALIZED_NAME_WEBHOOK_ID = "webhookId"; @SerializedName(SERIALIZED_NAME_WEBHOOK_ID) @@ -62,8 +71,7 @@ public class AddWebhookResponse { @javax.annotation.Nullable private String siteId; - public AddWebhookResponse() { - } + public AddWebhookResponse() {} public AddWebhookResponse webhookId(@javax.annotation.Nullable String webhookId) { this.webhookId = webhookId; @@ -72,6 +80,7 @@ public AddWebhookResponse webhookId(@javax.annotation.Nullable String webhookId) /** * Get webhookId + * * @return webhookId */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public AddWebhookResponse siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } AddWebhookResponse addWebhookResponse = (AddWebhookResponse) o; - return Objects.equals(this.webhookId, addWebhookResponse.webhookId) && - Objects.equals(this.siteId, addWebhookResponse.siteId); + return Objects.equals(this.webhookId, addWebhookResponse.webhookId) + && Objects.equals(this.siteId, addWebhookResponse.siteId); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWebhookResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWebhookResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWebhookResponse is not found in the empty JSON string", AddWebhookResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddWebhookResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddWebhookResponse is not found in the empty JSON string", + AddWebhookResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWebhookResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWebhookResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) && !jsonObj.get("webhookId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("webhookId").toString())); - } - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWebhookResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddWebhookResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) + && !jsonObj.get("webhookId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("webhookId").toString())); + } + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWebhookResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWebhookResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddWebhookResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWebhookResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWebhookResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWebhookResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWebhookResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddWebhookResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWebhookResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWebhookResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java b/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java index 513831989..499168aa5 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * AddWebhookTagRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddWebhookTagRequest { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -69,8 +78,7 @@ public class AddWebhookTagRequest { @javax.annotation.Nullable private String key; - public AddWebhookTagRequest() { - } + public AddWebhookTagRequest() {} public AddWebhookTagRequest value(@javax.annotation.Nullable String value) { this.value = value; @@ -79,6 +87,7 @@ public AddWebhookTagRequest value(@javax.annotation.Nullable String value) { /** * Tag value + * * @return value */ @javax.annotation.Nullable @@ -106,6 +115,7 @@ public AddWebhookTagRequest addValuesItem(String valuesItem) { /** * Tag values + * * @return values */ @javax.annotation.Nullable @@ -125,6 +135,7 @@ public AddWebhookTagRequest key(@javax.annotation.Nullable String key) { /** * Tag key + * * @return key */ @javax.annotation.Nullable @@ -147,9 +158,9 @@ public boolean equals(Object o) { return false; } AddWebhookTagRequest addWebhookTagRequest = (AddWebhookTagRequest) o; - return Objects.equals(this.value, addWebhookTagRequest.value) && - Objects.equals(this.values, addWebhookTagRequest.values) && - Objects.equals(this.key, addWebhookTagRequest.key); + return Objects.equals(this.value, addWebhookTagRequest.value) + && Objects.equals(this.values, addWebhookTagRequest.values) + && Objects.equals(this.key, addWebhookTagRequest.key); } @Override @@ -169,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,58 +208,72 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWebhookTagRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWebhookTagRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWebhookTagRequest is not found in the empty JSON string", AddWebhookTagRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddWebhookTagRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddWebhookTagRequest is not found in the empty JSON string", + AddWebhookTagRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWebhookTagRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWebhookTagRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); - } - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWebhookTagRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddWebhookTagRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() + && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `values` to be an array in the JSON string but got `%s`", + jsonObj.get("values").toString())); + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWebhookTagRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWebhookTagRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddWebhookTagRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWebhookTagRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWebhookTagRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWebhookTagRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWebhookTagRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddWebhookTagRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWebhookTagRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWebhookTagRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java b/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java index 9342d4eec..4b541799c 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * AddWorkflowRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -76,8 +85,7 @@ public class AddWorkflowRequest { @javax.annotation.Nonnull private List steps = new ArrayList<>(); - public AddWorkflowRequest() { - } + public AddWorkflowRequest() {} public AddWorkflowRequest name(@javax.annotation.Nonnull String name) { this.name = name; @@ -86,6 +94,7 @@ public AddWorkflowRequest name(@javax.annotation.Nonnull String name) { /** * Workflow name + * * @return name */ @javax.annotation.Nonnull @@ -105,6 +114,7 @@ public AddWorkflowRequest description(@javax.annotation.Nullable String descript /** * Workflow description + * * @return description */ @javax.annotation.Nullable @@ -124,6 +134,7 @@ public AddWorkflowRequest status(@javax.annotation.Nonnull WorkflowStatus status /** * Get status + * * @return status */ @javax.annotation.Nonnull @@ -151,6 +162,7 @@ public AddWorkflowRequest addStepsItem(AddWorkflowStep stepsItem) { /** * Workflow Steps + * * @return steps */ @javax.annotation.Nonnull @@ -173,10 +185,10 @@ public boolean equals(Object o) { return false; } AddWorkflowRequest addWorkflowRequest = (AddWorkflowRequest) o; - return Objects.equals(this.name, addWorkflowRequest.name) && - Objects.equals(this.description, addWorkflowRequest.description) && - Objects.equals(this.status, addWorkflowRequest.status) && - Objects.equals(this.steps, addWorkflowRequest.steps); + return Objects.equals(this.name, addWorkflowRequest.name) + && Objects.equals(this.description, addWorkflowRequest.description) + && Objects.equals(this.status, addWorkflowRequest.status) + && Objects.equals(this.steps, addWorkflowRequest.steps); } @Override @@ -197,8 +209,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,73 +237,87 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWorkflowRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWorkflowRequest is not found in the empty JSON string", AddWorkflowRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddWorkflowRequest is not found in the empty JSON string", + AddWorkflowRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWorkflowRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWorkflowRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWorkflowRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddWorkflowRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddWorkflowRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the required field `status` - WorkflowStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("steps").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `steps` to be an array in the JSON string but got `%s`", jsonObj.get("steps").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddWorkflowRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + // validate the required field `status` + WorkflowStatus.validateJsonElement(jsonObj.get("status")); + // ensure the json data is an array + if (!jsonObj.get("steps").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `steps` to be an array in the JSON string but got `%s`", + jsonObj.get("steps").toString())); + } - JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); - // validate the required field `steps` (array) - for (int i = 0; i < jsonArraysteps.size(); i++) { - AddWorkflowStep.validateJsonElement(jsonArraysteps.get(i)); - }; + JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); + // validate the required field `steps` (array) + for (int i = 0; i < jsonArraysteps.size(); i++) { + AddWorkflowStep.validateJsonElement(jsonArraysteps.get(i)); + } ; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWorkflowRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWorkflowRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWorkflowRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWorkflowRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWorkflowRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWorkflowRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWorkflowRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWorkflowRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java b/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java index f6341579d..d2f212576 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * AddWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddWorkflowResponse { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; @SerializedName(SERIALIZED_NAME_WORKFLOW_ID) @javax.annotation.Nullable private String workflowId; - public AddWorkflowResponse() { - } + public AddWorkflowResponse() {} public AddWorkflowResponse workflowId(@javax.annotation.Nullable String workflowId) { this.workflowId = workflowId; @@ -67,6 +75,7 @@ public AddWorkflowResponse workflowId(@javax.annotation.Nullable String workflow /** * Workflow Identifier + * * @return workflowId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWorkflowResponse is not found in the empty JSON string", AddWorkflowResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddWorkflowResponse is not found in the empty JSON string", + AddWorkflowResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddWorkflowResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) + && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workflowId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStep.java b/src/main/java/com/formkiq/client/model/AddWorkflowStep.java index 3e93c1b59..2a5d0eb93 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStep.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStep.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * AddWorkflowStep */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddWorkflowStep { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; @SerializedName(SERIALIZED_NAME_STEP_ID) @@ -77,8 +86,7 @@ public class AddWorkflowStep { @javax.annotation.Nullable private List decisions = new ArrayList<>(); - public AddWorkflowStep() { - } + public AddWorkflowStep() {} public AddWorkflowStep stepId(@javax.annotation.Nullable String stepId) { this.stepId = stepId; @@ -87,6 +95,7 @@ public AddWorkflowStep stepId(@javax.annotation.Nullable String stepId) { /** * Workflow Step Identifier + * * @return stepId */ @javax.annotation.Nullable @@ -106,6 +115,7 @@ public AddWorkflowStep action(@javax.annotation.Nullable AddAction action) { /** * Get action + * * @return action */ @javax.annotation.Nullable @@ -125,6 +135,7 @@ public AddWorkflowStep queue(@javax.annotation.Nullable AddWorkflowStepQueue que /** * Get queue + * * @return queue */ @javax.annotation.Nullable @@ -137,7 +148,8 @@ public void setQueue(@javax.annotation.Nullable AddWorkflowStepQueue queue) { } - public AddWorkflowStep decisions(@javax.annotation.Nullable List decisions) { + public AddWorkflowStep decisions( + @javax.annotation.Nullable List decisions) { this.decisions = decisions; return this; } @@ -152,6 +164,7 @@ public AddWorkflowStep addDecisionsItem(AddWorkflowStepDecision decisionsItem) { /** * Workflow Decisions + * * @return decisions */ @javax.annotation.Nullable @@ -174,10 +187,10 @@ public boolean equals(Object o) { return false; } AddWorkflowStep addWorkflowStep = (AddWorkflowStep) o; - return Objects.equals(this.stepId, addWorkflowStep.stepId) && - Objects.equals(this.action, addWorkflowStep.action) && - Objects.equals(this.queue, addWorkflowStep.queue) && - Objects.equals(this.decisions, addWorkflowStep.decisions); + return Objects.equals(this.stepId, addWorkflowStep.stepId) + && Objects.equals(this.action, addWorkflowStep.action) + && Objects.equals(this.queue, addWorkflowStep.queue) + && Objects.equals(this.decisions, addWorkflowStep.decisions); } @Override @@ -198,8 +211,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -227,73 +239,83 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWorkflowStep */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWorkflowStep.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWorkflowStep is not found in the empty JSON string", AddWorkflowStep.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddWorkflowStep.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddWorkflowStep is not found in the empty JSON string", + AddWorkflowStep.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWorkflowStep.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWorkflowStep` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) && !jsonObj.get("stepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stepId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWorkflowStep.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddWorkflowStep` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - // validate the optional field `action` - if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { - AddAction.validateJsonElement(jsonObj.get("action")); - } - // validate the optional field `queue` - if (jsonObj.get("queue") != null && !jsonObj.get("queue").isJsonNull()) { - AddWorkflowStepQueue.validateJsonElement(jsonObj.get("queue")); - } - if (jsonObj.get("decisions") != null && !jsonObj.get("decisions").isJsonNull()) { - JsonArray jsonArraydecisions = jsonObj.getAsJsonArray("decisions"); - if (jsonArraydecisions != null) { - // ensure the json data is an array - if (!jsonObj.get("decisions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `decisions` to be an array in the JSON string but got `%s`", jsonObj.get("decisions").toString())); - } - - // validate the optional field `decisions` (array) - for (int i = 0; i < jsonArraydecisions.size(); i++) { - AddWorkflowStepDecision.validateJsonElement(jsonArraydecisions.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) + && !jsonObj.get("stepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stepId").toString())); + } + // validate the optional field `action` + if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { + AddAction.validateJsonElement(jsonObj.get("action")); + } + // validate the optional field `queue` + if (jsonObj.get("queue") != null && !jsonObj.get("queue").isJsonNull()) { + AddWorkflowStepQueue.validateJsonElement(jsonObj.get("queue")); + } + if (jsonObj.get("decisions") != null && !jsonObj.get("decisions").isJsonNull()) { + JsonArray jsonArraydecisions = jsonObj.getAsJsonArray("decisions"); + if (jsonArraydecisions != null) { + // ensure the json data is an array + if (!jsonObj.get("decisions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `decisions` to be an array in the JSON string but got `%s`", + jsonObj.get("decisions").toString())); } + + // validate the optional field `decisions` (array) + for (int i = 0; i < jsonArraydecisions.size(); i++) { + AddWorkflowStepDecision.validateJsonElement(jsonArraydecisions.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWorkflowStep.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWorkflowStep' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStep.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWorkflowStep value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWorkflowStep read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWorkflowStep.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWorkflowStep' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStep.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWorkflowStep value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWorkflowStep read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java b/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java index 19ef24977..b0508eeae 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * AddWorkflowStepDecision */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddWorkflowStepDecision { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -63,8 +72,7 @@ public class AddWorkflowStepDecision { @javax.annotation.Nonnull private String nextStepId; - public AddWorkflowStepDecision() { - } + public AddWorkflowStepDecision() {} public AddWorkflowStepDecision type(@javax.annotation.Nonnull WorkflowStepDecisionType type) { this.type = type; @@ -73,6 +81,7 @@ public AddWorkflowStepDecision type(@javax.annotation.Nonnull WorkflowStepDecisi /** * Get type + * * @return type */ @javax.annotation.Nonnull @@ -92,6 +101,7 @@ public AddWorkflowStepDecision nextStepId(@javax.annotation.Nonnull String nextS /** * Workflow Step to move to + * * @return nextStepId */ @javax.annotation.Nonnull @@ -114,8 +124,8 @@ public boolean equals(Object o) { return false; } AddWorkflowStepDecision addWorkflowStepDecision = (AddWorkflowStepDecision) o; - return Objects.equals(this.type, addWorkflowStepDecision.type) && - Objects.equals(this.nextStepId, addWorkflowStepDecision.nextStepId); + return Objects.equals(this.type, addWorkflowStepDecision.type) + && Objects.equals(this.nextStepId, addWorkflowStepDecision.nextStepId); } @Override @@ -134,8 +144,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,60 +172,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWorkflowStepDecision */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWorkflowStepDecision.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWorkflowStepDecision is not found in the empty JSON string", AddWorkflowStepDecision.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddWorkflowStepDecision.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddWorkflowStepDecision is not found in the empty JSON string", + AddWorkflowStepDecision.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWorkflowStepDecision.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWorkflowStepDecision` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWorkflowStepDecision.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddWorkflowStepDecision` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddWorkflowStepDecision.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `type` - WorkflowStepDecisionType.validateJsonElement(jsonObj.get("type")); - if (!jsonObj.get("nextStepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nextStepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextStepId").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddWorkflowStepDecision.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `type` + WorkflowStepDecisionType.validateJsonElement(jsonObj.get("type")); + if (!jsonObj.get("nextStepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `nextStepId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("nextStepId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWorkflowStepDecision.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWorkflowStepDecision' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStepDecision.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWorkflowStepDecision value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWorkflowStepDecision read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWorkflowStepDecision.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWorkflowStepDecision' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStepDecision.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWorkflowStepDecision value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWorkflowStepDecision read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java b/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java index 32c732d47..595653dd1 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * AddWorkflowStepQueue */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AddWorkflowStepQueue { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; @SerializedName(SERIALIZED_NAME_QUEUE_ID) @@ -64,8 +73,7 @@ public class AddWorkflowStepQueue { @javax.annotation.Nullable private List approvalGroups = new ArrayList<>(); - public AddWorkflowStepQueue() { - } + public AddWorkflowStepQueue() {} public AddWorkflowStepQueue queueId(@javax.annotation.Nonnull String queueId) { this.queueId = queueId; @@ -74,6 +82,7 @@ public AddWorkflowStepQueue queueId(@javax.annotation.Nonnull String queueId) { /** * Queue Identifier + * * @return queueId */ @javax.annotation.Nonnull @@ -86,7 +95,8 @@ public void setQueueId(@javax.annotation.Nonnull String queueId) { } - public AddWorkflowStepQueue approvalGroups(@javax.annotation.Nullable List approvalGroups) { + public AddWorkflowStepQueue approvalGroups( + @javax.annotation.Nullable List approvalGroups) { this.approvalGroups = approvalGroups; return this; } @@ -101,6 +111,7 @@ public AddWorkflowStepQueue addApprovalGroupsItem(String approvalGroupsItem) { /** * Get approvalGroups + * * @return approvalGroups */ @javax.annotation.Nullable @@ -123,8 +134,8 @@ public boolean equals(Object o) { return false; } AddWorkflowStepQueue addWorkflowStepQueue = (AddWorkflowStepQueue) o; - return Objects.equals(this.queueId, addWorkflowStepQueue.queueId) && - Objects.equals(this.approvalGroups, addWorkflowStepQueue.approvalGroups); + return Objects.equals(this.queueId, addWorkflowStepQueue.queueId) + && Objects.equals(this.approvalGroups, addWorkflowStepQueue.approvalGroups); } @Override @@ -143,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,62 +182,74 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AddWorkflowStepQueue */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AddWorkflowStepQueue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AddWorkflowStepQueue is not found in the empty JSON string", AddWorkflowStepQueue.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AddWorkflowStepQueue.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AddWorkflowStepQueue is not found in the empty JSON string", + AddWorkflowStepQueue.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AddWorkflowStepQueue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AddWorkflowStepQueue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AddWorkflowStepQueue.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AddWorkflowStepQueue` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AddWorkflowStepQueue.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("approvalGroups") != null && !jsonObj.get("approvalGroups").isJsonNull() && !jsonObj.get("approvalGroups").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `approvalGroups` to be an array in the JSON string but got `%s`", jsonObj.get("approvalGroups").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AddWorkflowStepQueue.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("queueId").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("approvalGroups") != null && !jsonObj.get("approvalGroups").isJsonNull() + && !jsonObj.get("approvalGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `approvalGroups` to be an array in the JSON string but got `%s`", + jsonObj.get("approvalGroups").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AddWorkflowStepQueue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AddWorkflowStepQueue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStepQueue.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AddWorkflowStepQueue value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AddWorkflowStepQueue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AddWorkflowStepQueue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AddWorkflowStepQueue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AddWorkflowStepQueue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AddWorkflowStepQueue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AddWorkflowStepQueue read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ApiKey.java b/src/main/java/com/formkiq/client/model/ApiKey.java index 8e1d501e1..8a51eca4c 100644 --- a/src/main/java/com/formkiq/client/model/ApiKey.java +++ b/src/main/java/com/formkiq/client/model/ApiKey.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -15,6 +22,7 @@ import java.util.Objects; import java.util.Locale; +import com.formkiq.client.model.ApiKeyPermission; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -52,7 +60,9 @@ /** * ApiKey */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ApiKey { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -79,69 +89,17 @@ public class ApiKey { @javax.annotation.Nullable private String insertedDate; - /** - * Gets or Sets permissions - */ - @JsonAdapter(PermissionsEnum.Adapter.class) - public enum PermissionsEnum { - READ("READ"), - - WRITE("WRITE"), - - DELETE("DELETE"), - - GOVERN("GOVERN"); - - private String value; - - PermissionsEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static PermissionsEnum fromValue(String value) { - for (PermissionsEnum b : PermissionsEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final PermissionsEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public PermissionsEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return PermissionsEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PermissionsEnum.fromValue(value); - } - } - public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; @SerializedName(SERIALIZED_NAME_PERMISSIONS) @javax.annotation.Nullable - private List permissions = new ArrayList<>(); + private List permissions = new ArrayList<>(); - public ApiKey() { - } + public static final String SERIALIZED_NAME_GROUPS = "groups"; + @SerializedName(SERIALIZED_NAME_GROUPS) + @javax.annotation.Nullable + private List groups = new ArrayList<>(); + + public ApiKey() {} public ApiKey name(@javax.annotation.Nullable String name) { this.name = name; @@ -150,6 +108,7 @@ public ApiKey name(@javax.annotation.Nullable String name) { /** * Name of API Key + * * @return name */ @javax.annotation.Nullable @@ -169,6 +128,7 @@ public ApiKey apiKey(@javax.annotation.Nullable String apiKey) { /** * API Key value + * * @return apiKey */ @javax.annotation.Nullable @@ -188,6 +148,7 @@ public ApiKey userId(@javax.annotation.Nullable String userId) { /** * Get userId + * * @return userId */ @javax.annotation.Nullable @@ -207,6 +168,7 @@ public ApiKey siteId(@javax.annotation.Nullable String siteId) { /** * Get siteId + * * @return siteId */ @javax.annotation.Nullable @@ -226,6 +188,7 @@ public ApiKey insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -238,12 +201,12 @@ public void setInsertedDate(@javax.annotation.Nullable String insertedDate) { } - public ApiKey permissions(@javax.annotation.Nullable List permissions) { + public ApiKey permissions(@javax.annotation.Nullable List permissions) { this.permissions = permissions; return this; } - public ApiKey addPermissionsItem(PermissionsEnum permissionsItem) { + public ApiKey addPermissionsItem(ApiKeyPermission permissionsItem) { if (this.permissions == null) { this.permissions = new ArrayList<>(); } @@ -252,19 +215,48 @@ public ApiKey addPermissionsItem(PermissionsEnum permissionsItem) { } /** - * List of permissions + * Get permissions + * * @return permissions */ @javax.annotation.Nullable - public List getPermissions() { + public List getPermissions() { return permissions; } - public void setPermissions(@javax.annotation.Nullable List permissions) { + public void setPermissions(@javax.annotation.Nullable List permissions) { this.permissions = permissions; } + public ApiKey groups(@javax.annotation.Nullable List groups) { + this.groups = groups; + return this; + } + + public ApiKey addGroupsItem(String groupsItem) { + if (this.groups == null) { + this.groups = new ArrayList<>(); + } + this.groups.add(groupsItem); + return this; + } + + /** + * List of groups to add as custom claims to API Key + * + * @return groups + */ + @javax.annotation.Nullable + public List getGroups() { + return groups; + } + + public void setGroups(@javax.annotation.Nullable List groups) { + this.groups = groups; + } + + @Override public boolean equals(Object o) { @@ -275,17 +267,16 @@ public boolean equals(Object o) { return false; } ApiKey apiKey = (ApiKey) o; - return Objects.equals(this.name, apiKey.name) && - Objects.equals(this.apiKey, apiKey.apiKey) && - Objects.equals(this.userId, apiKey.userId) && - Objects.equals(this.siteId, apiKey.siteId) && - Objects.equals(this.insertedDate, apiKey.insertedDate) && - Objects.equals(this.permissions, apiKey.permissions); + return Objects.equals(this.name, apiKey.name) && Objects.equals(this.apiKey, apiKey.apiKey) + && Objects.equals(this.userId, apiKey.userId) && Objects.equals(this.siteId, apiKey.siteId) + && Objects.equals(this.insertedDate, apiKey.insertedDate) + && Objects.equals(this.permissions, apiKey.permissions) + && Objects.equals(this.groups, apiKey.groups); } @Override public int hashCode() { - return Objects.hash(name, apiKey, userId, siteId, insertedDate, permissions); + return Objects.hash(name, apiKey, userId, siteId, insertedDate, permissions, groups); } @Override @@ -298,13 +289,13 @@ public String toString() { sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); sb.append(" insertedDate: ").append(toIndentedString(insertedDate)).append("\n"); sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); + sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -319,7 +310,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "apiKey", "userId", "siteId", "insertedDate", "permissions")); + openapiFields = new HashSet(Arrays.asList("name", "apiKey", "userId", "siteId", + "insertedDate", "permissions", "groups")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -332,67 +324,96 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ApiKey */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ApiKey.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ApiKey is not found in the empty JSON string", ApiKey.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!ApiKey.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in ApiKey is not found in the empty JSON string", + ApiKey.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ApiKey.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ApiKey` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("apiKey") != null && !jsonObj.get("apiKey").isJsonNull()) && !jsonObj.get("apiKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `apiKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiKey").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ApiKey.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `ApiKey` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("apiKey") != null && !jsonObj.get("apiKey").isJsonNull()) + && !jsonObj.get("apiKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `apiKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("apiKey").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() + && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `permissions` to be an array in the JSON string but got `%s`", + jsonObj.get("permissions").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull() + && !jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `groups` to be an array in the JSON string but got `%s`", + jsonObj.get("groups").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ApiKey.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ApiKey' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ApiKey.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ApiKey value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ApiKey read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ApiKey.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ApiKey' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(ApiKey.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ApiKey value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ApiKey read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ApiKeyPermission.java b/src/main/java/com/formkiq/client/model/ApiKeyPermission.java new file mode 100644 index 000000000..8df035999 --- /dev/null +++ b/src/main/java/com/formkiq/client/model/ApiKeyPermission.java @@ -0,0 +1,92 @@ +/* + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ + + +package com.formkiq.client.model; + +import java.util.Objects; +import java.util.Locale; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * List of API permissions (defaults to READ / WRITE / DELETE) + */ +@JsonAdapter(ApiKeyPermission.Adapter.class) +public enum ApiKeyPermission { + + READ("READ"), + + WRITE("WRITE"), + + DELETE("DELETE"), + + GOVERN("GOVERN"); + + private String value; + + ApiKeyPermission(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ApiKeyPermission fromValue(String value) { + for (ApiKeyPermission b : ApiKeyPermission.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ApiKeyPermission enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ApiKeyPermission read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ApiKeyPermission.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ApiKeyPermission.fromValue(value); + } +} + diff --git a/src/main/java/com/formkiq/client/model/Attribute.java b/src/main/java/com/formkiq/client/model/Attribute.java index 923857ba3..c4888a54c 100644 --- a/src/main/java/com/formkiq/client/model/Attribute.java +++ b/src/main/java/com/formkiq/client/model/Attribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * Attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Attribute { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -75,8 +84,7 @@ public class Attribute { @javax.annotation.Nullable private Watermark watermark; - public Attribute() { - } + public Attribute() {} public Attribute type(@javax.annotation.Nullable AttributeType type) { this.type = type; @@ -85,6 +93,7 @@ public Attribute type(@javax.annotation.Nullable AttributeType type) { /** * Get type + * * @return type */ @javax.annotation.Nullable @@ -104,6 +113,7 @@ public Attribute key(@javax.annotation.Nullable String key) { /** * Attribute Key + * * @return key */ @javax.annotation.Nullable @@ -123,6 +133,7 @@ public Attribute dataType(@javax.annotation.Nullable AttributeDataType dataType) /** * Get dataType + * * @return dataType */ @javax.annotation.Nullable @@ -142,6 +153,7 @@ public Attribute watermark(@javax.annotation.Nullable Watermark watermark) { /** * Get watermark + * * @return watermark */ @javax.annotation.Nullable @@ -164,10 +176,9 @@ public boolean equals(Object o) { return false; } Attribute attribute = (Attribute) o; - return Objects.equals(this.type, attribute.type) && - Objects.equals(this.key, attribute.key) && - Objects.equals(this.dataType, attribute.dataType) && - Objects.equals(this.watermark, attribute.watermark); + return Objects.equals(this.type, attribute.type) && Objects.equals(this.key, attribute.key) + && Objects.equals(this.dataType, attribute.dataType) + && Objects.equals(this.watermark, attribute.watermark); } @Override @@ -188,8 +199,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -217,63 +227,71 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Attribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Attribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Attribute is not found in the empty JSON string", Attribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Attribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Attribute is not found in the empty JSON string", + Attribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Attribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Attribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - AttributeType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - // validate the optional field `dataType` - if (jsonObj.get("dataType") != null && !jsonObj.get("dataType").isJsonNull()) { - AttributeDataType.validateJsonElement(jsonObj.get("dataType")); - } - // validate the optional field `watermark` - if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { - Watermark.validateJsonElement(jsonObj.get("watermark")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Attribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Attribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + AttributeType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + // validate the optional field `dataType` + if (jsonObj.get("dataType") != null && !jsonObj.get("dataType").isJsonNull()) { + AttributeDataType.validateJsonElement(jsonObj.get("dataType")); + } + // validate the optional field `watermark` + if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { + Watermark.validateJsonElement(jsonObj.get("watermark")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Attribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Attribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Attribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Attribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Attribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Attribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Attribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Attribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Attribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Attribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AttributeDataType.java b/src/main/java/com/formkiq/client/model/AttributeDataType.java index 524c261bf..e7c6499e2 100644 --- a/src/main/java/com/formkiq/client/model/AttributeDataType.java +++ b/src/main/java/com/formkiq/client/model/AttributeDataType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,19 +37,19 @@ */ @JsonAdapter(AttributeDataType.Adapter.class) public enum AttributeDataType { - + STRING("STRING"), - + NUMBER("NUMBER"), - + BOOLEAN("BOOLEAN"), - + KEY_ONLY("KEY_ONLY"), - + PUBLICATION("PUBLICATION"), - + WATERMARK("WATERMARK"), - + ENTITY("ENTITY"); private String value; @@ -71,7 +78,8 @@ public static AttributeDataType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AttributeDataType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final AttributeDataType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java b/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java index ad8d82b46..33de0a6cb 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,17 +59,19 @@ /** * AttributeSchemaCompositeKey */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AttributeSchemaCompositeKey { public static final String SERIALIZED_NAME_ATTRIBUTE_KEYS = "attributeKeys"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_KEYS) @javax.annotation.Nullable private List attributeKeys = new ArrayList<>(); - public AttributeSchemaCompositeKey() { - } + public AttributeSchemaCompositeKey() {} - public AttributeSchemaCompositeKey attributeKeys(@javax.annotation.Nullable List attributeKeys) { + public AttributeSchemaCompositeKey attributeKeys( + @javax.annotation.Nullable List attributeKeys) { this.attributeKeys = attributeKeys; return this; } @@ -77,6 +86,7 @@ public AttributeSchemaCompositeKey addAttributeKeysItem(String attributeKeysItem /** * Get attributeKeys + * * @return attributeKeys */ @javax.annotation.Nullable @@ -117,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,52 +155,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AttributeSchemaCompositeKey */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AttributeSchemaCompositeKey.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AttributeSchemaCompositeKey is not found in the empty JSON string", AttributeSchemaCompositeKey.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AttributeSchemaCompositeKey.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AttributeSchemaCompositeKey is not found in the empty JSON string", + AttributeSchemaCompositeKey.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AttributeSchemaCompositeKey.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AttributeSchemaCompositeKey` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("attributeKeys") != null && !jsonObj.get("attributeKeys").isJsonNull() && !jsonObj.get("attributeKeys").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKeys` to be an array in the JSON string but got `%s`", jsonObj.get("attributeKeys").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AttributeSchemaCompositeKey.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AttributeSchemaCompositeKey` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("attributeKeys") != null && !jsonObj.get("attributeKeys").isJsonNull() + && !jsonObj.get("attributeKeys").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributeKeys` to be an array in the JSON string but got `%s`", + jsonObj.get("attributeKeys").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AttributeSchemaCompositeKey.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AttributeSchemaCompositeKey' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaCompositeKey.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AttributeSchemaCompositeKey value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AttributeSchemaCompositeKey read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AttributeSchemaCompositeKey.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AttributeSchemaCompositeKey' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaCompositeKey.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AttributeSchemaCompositeKey value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AttributeSchemaCompositeKey read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java b/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java index b952cfe2d..a35b2d0f6 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * AttributeSchemaOptional */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AttributeSchemaOptional { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; @SerializedName(SERIALIZED_NAME_MIN_NUMBER_OF_VALUES) @@ -82,16 +91,17 @@ public class AttributeSchemaOptional { @javax.annotation.Nullable private Map localizedAllowedValues = new HashMap<>(); - public AttributeSchemaOptional() { - } + public AttributeSchemaOptional() {} - public AttributeSchemaOptional minNumberOfValues(@javax.annotation.Nullable BigDecimal minNumberOfValues) { + public AttributeSchemaOptional minNumberOfValues( + @javax.annotation.Nullable BigDecimal minNumberOfValues) { this.minNumberOfValues = minNumberOfValues; return this; } /** * The minimum number of attribute values + * * @return minNumberOfValues */ @javax.annotation.Nullable @@ -104,13 +114,15 @@ public void setMinNumberOfValues(@javax.annotation.Nullable BigDecimal minNumber } - public AttributeSchemaOptional maxNumberOfValues(@javax.annotation.Nullable BigDecimal maxNumberOfValues) { + public AttributeSchemaOptional maxNumberOfValues( + @javax.annotation.Nullable BigDecimal maxNumberOfValues) { this.maxNumberOfValues = maxNumberOfValues; return this; } /** * The maximum number of attribute values + * * @return maxNumberOfValues */ @javax.annotation.Nullable @@ -130,6 +142,7 @@ public AttributeSchemaOptional attributeKey(@javax.annotation.Nullable String at /** * Get attributeKey + * * @return attributeKey */ @javax.annotation.Nullable @@ -142,7 +155,8 @@ public void setAttributeKey(@javax.annotation.Nullable String attributeKey) { } - public AttributeSchemaOptional allowedValues(@javax.annotation.Nullable List allowedValues) { + public AttributeSchemaOptional allowedValues( + @javax.annotation.Nullable List allowedValues) { this.allowedValues = allowedValues; return this; } @@ -157,6 +171,7 @@ public AttributeSchemaOptional addAllowedValuesItem(String allowedValuesItem) { /** * Only valid string values + * * @return allowedValues */ @javax.annotation.Nullable @@ -169,12 +184,14 @@ public void setAllowedValues(@javax.annotation.Nullable List allowedValu } - public AttributeSchemaOptional localizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { + public AttributeSchemaOptional localizedAllowedValues( + @javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; return this; } - public AttributeSchemaOptional putLocalizedAllowedValuesItem(String key, String localizedAllowedValuesItem) { + public AttributeSchemaOptional putLocalizedAllowedValuesItem(String key, + String localizedAllowedValuesItem) { if (this.localizedAllowedValues == null) { this.localizedAllowedValues = new HashMap<>(); } @@ -184,6 +201,7 @@ public AttributeSchemaOptional putLocalizedAllowedValuesItem(String key, String /** * Get localizedAllowedValues + * * @return localizedAllowedValues */ @javax.annotation.Nullable @@ -191,7 +209,8 @@ public Map getLocalizedAllowedValues() { return localizedAllowedValues; } - public void setLocalizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { + public void setLocalizedAllowedValues( + @javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; } @@ -206,16 +225,17 @@ public boolean equals(Object o) { return false; } AttributeSchemaOptional attributeSchemaOptional = (AttributeSchemaOptional) o; - return Objects.equals(this.minNumberOfValues, attributeSchemaOptional.minNumberOfValues) && - Objects.equals(this.maxNumberOfValues, attributeSchemaOptional.maxNumberOfValues) && - Objects.equals(this.attributeKey, attributeSchemaOptional.attributeKey) && - Objects.equals(this.allowedValues, attributeSchemaOptional.allowedValues) && - Objects.equals(this.localizedAllowedValues, attributeSchemaOptional.localizedAllowedValues); + return Objects.equals(this.minNumberOfValues, attributeSchemaOptional.minNumberOfValues) + && Objects.equals(this.maxNumberOfValues, attributeSchemaOptional.maxNumberOfValues) + && Objects.equals(this.attributeKey, attributeSchemaOptional.attributeKey) + && Objects.equals(this.allowedValues, attributeSchemaOptional.allowedValues) && Objects + .equals(this.localizedAllowedValues, attributeSchemaOptional.localizedAllowedValues); } @Override public int hashCode() { - return Objects.hash(minNumberOfValues, maxNumberOfValues, attributeKey, allowedValues, localizedAllowedValues); + return Objects.hash(minNumberOfValues, maxNumberOfValues, attributeKey, allowedValues, + localizedAllowedValues); } @Override @@ -226,14 +246,14 @@ public String toString() { sb.append(" maxNumberOfValues: ").append(toIndentedString(maxNumberOfValues)).append("\n"); sb.append(" attributeKey: ").append(toIndentedString(attributeKey)).append("\n"); sb.append(" allowedValues: ").append(toIndentedString(allowedValues)).append("\n"); - sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)).append("\n"); + sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -248,7 +268,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("minNumberOfValues", "maxNumberOfValues", "attributeKey", "allowedValues", "localizedAllowedValues")); + openapiFields = new HashSet(Arrays.asList("minNumberOfValues", "maxNumberOfValues", + "attributeKey", "allowedValues", "localizedAllowedValues")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -261,55 +282,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AttributeSchemaOptional */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AttributeSchemaOptional.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AttributeSchemaOptional is not found in the empty JSON string", AttributeSchemaOptional.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AttributeSchemaOptional.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AttributeSchemaOptional is not found in the empty JSON string", + AttributeSchemaOptional.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AttributeSchemaOptional.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AttributeSchemaOptional` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() && !jsonObj.get("allowedValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", jsonObj.get("allowedValues").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AttributeSchemaOptional.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AttributeSchemaOptional` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) + && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("attributeKey").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() + && !jsonObj.get("allowedValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", + jsonObj.get("allowedValues").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AttributeSchemaOptional.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AttributeSchemaOptional' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaOptional.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AttributeSchemaOptional value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AttributeSchemaOptional read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AttributeSchemaOptional.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AttributeSchemaOptional' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaOptional.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AttributeSchemaOptional value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AttributeSchemaOptional read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java b/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java index 667733d2e..ac82f6e9b 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * AttributeSchemaRequired */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class AttributeSchemaRequired { public static final String SERIALIZED_NAME_ATTRIBUTE_KEY = "attributeKey"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_KEY) @@ -92,8 +101,7 @@ public class AttributeSchemaRequired { @javax.annotation.Nullable private Map localizedAllowedValues = new HashMap<>(); - public AttributeSchemaRequired() { - } + public AttributeSchemaRequired() {} public AttributeSchemaRequired attributeKey(@javax.annotation.Nullable String attributeKey) { this.attributeKey = attributeKey; @@ -102,6 +110,7 @@ public AttributeSchemaRequired attributeKey(@javax.annotation.Nullable String at /** * Get attributeKey + * * @return attributeKey */ @javax.annotation.Nullable @@ -114,13 +123,15 @@ public void setAttributeKey(@javax.annotation.Nullable String attributeKey) { } - public AttributeSchemaRequired minNumberOfValues(@javax.annotation.Nullable BigDecimal minNumberOfValues) { + public AttributeSchemaRequired minNumberOfValues( + @javax.annotation.Nullable BigDecimal minNumberOfValues) { this.minNumberOfValues = minNumberOfValues; return this; } /** * The minimum number of attribute values + * * @return minNumberOfValues */ @javax.annotation.Nullable @@ -133,13 +144,15 @@ public void setMinNumberOfValues(@javax.annotation.Nullable BigDecimal minNumber } - public AttributeSchemaRequired maxNumberOfValues(@javax.annotation.Nullable BigDecimal maxNumberOfValues) { + public AttributeSchemaRequired maxNumberOfValues( + @javax.annotation.Nullable BigDecimal maxNumberOfValues) { this.maxNumberOfValues = maxNumberOfValues; return this; } /** * The maximum number of attribute values + * * @return maxNumberOfValues */ @javax.annotation.Nullable @@ -159,6 +172,7 @@ public AttributeSchemaRequired defaultValue(@javax.annotation.Nullable String de /** * Default value + * * @return defaultValue */ @javax.annotation.Nullable @@ -171,7 +185,8 @@ public void setDefaultValue(@javax.annotation.Nullable String defaultValue) { } - public AttributeSchemaRequired defaultValues(@javax.annotation.Nullable List defaultValues) { + public AttributeSchemaRequired defaultValues( + @javax.annotation.Nullable List defaultValues) { this.defaultValues = defaultValues; return this; } @@ -186,6 +201,7 @@ public AttributeSchemaRequired addDefaultValuesItem(String defaultValuesItem) { /** * Default values + * * @return defaultValues */ @javax.annotation.Nullable @@ -198,7 +214,8 @@ public void setDefaultValues(@javax.annotation.Nullable List defaultValu } - public AttributeSchemaRequired allowedValues(@javax.annotation.Nullable List allowedValues) { + public AttributeSchemaRequired allowedValues( + @javax.annotation.Nullable List allowedValues) { this.allowedValues = allowedValues; return this; } @@ -213,6 +230,7 @@ public AttributeSchemaRequired addAllowedValuesItem(String allowedValuesItem) { /** * Only valid string values + * * @return allowedValues */ @javax.annotation.Nullable @@ -225,12 +243,14 @@ public void setAllowedValues(@javax.annotation.Nullable List allowedValu } - public AttributeSchemaRequired localizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { + public AttributeSchemaRequired localizedAllowedValues( + @javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; return this; } - public AttributeSchemaRequired putLocalizedAllowedValuesItem(String key, String localizedAllowedValuesItem) { + public AttributeSchemaRequired putLocalizedAllowedValuesItem(String key, + String localizedAllowedValuesItem) { if (this.localizedAllowedValues == null) { this.localizedAllowedValues = new HashMap<>(); } @@ -240,6 +260,7 @@ public AttributeSchemaRequired putLocalizedAllowedValuesItem(String key, String /** * Get localizedAllowedValues + * * @return localizedAllowedValues */ @javax.annotation.Nullable @@ -247,7 +268,8 @@ public Map getLocalizedAllowedValues() { return localizedAllowedValues; } - public void setLocalizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { + public void setLocalizedAllowedValues( + @javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; } @@ -262,18 +284,19 @@ public boolean equals(Object o) { return false; } AttributeSchemaRequired attributeSchemaRequired = (AttributeSchemaRequired) o; - return Objects.equals(this.attributeKey, attributeSchemaRequired.attributeKey) && - Objects.equals(this.minNumberOfValues, attributeSchemaRequired.minNumberOfValues) && - Objects.equals(this.maxNumberOfValues, attributeSchemaRequired.maxNumberOfValues) && - Objects.equals(this.defaultValue, attributeSchemaRequired.defaultValue) && - Objects.equals(this.defaultValues, attributeSchemaRequired.defaultValues) && - Objects.equals(this.allowedValues, attributeSchemaRequired.allowedValues) && - Objects.equals(this.localizedAllowedValues, attributeSchemaRequired.localizedAllowedValues); + return Objects.equals(this.attributeKey, attributeSchemaRequired.attributeKey) + && Objects.equals(this.minNumberOfValues, attributeSchemaRequired.minNumberOfValues) + && Objects.equals(this.maxNumberOfValues, attributeSchemaRequired.maxNumberOfValues) + && Objects.equals(this.defaultValue, attributeSchemaRequired.defaultValue) + && Objects.equals(this.defaultValues, attributeSchemaRequired.defaultValues) + && Objects.equals(this.allowedValues, attributeSchemaRequired.allowedValues) && Objects + .equals(this.localizedAllowedValues, attributeSchemaRequired.localizedAllowedValues); } @Override public int hashCode() { - return Objects.hash(attributeKey, minNumberOfValues, maxNumberOfValues, defaultValue, defaultValues, allowedValues, localizedAllowedValues); + return Objects.hash(attributeKey, minNumberOfValues, maxNumberOfValues, defaultValue, + defaultValues, allowedValues, localizedAllowedValues); } @Override @@ -286,14 +309,14 @@ public String toString() { sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); sb.append(" defaultValues: ").append(toIndentedString(defaultValues)).append("\n"); sb.append(" allowedValues: ").append(toIndentedString(allowedValues)).append("\n"); - sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)).append("\n"); + sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -308,7 +331,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("attributeKey", "minNumberOfValues", "maxNumberOfValues", "defaultValue", "defaultValues", "allowedValues", "localizedAllowedValues")); + openapiFields = + new HashSet(Arrays.asList("attributeKey", "minNumberOfValues", "maxNumberOfValues", + "defaultValue", "defaultValues", "allowedValues", "localizedAllowedValues")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -321,62 +346,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to AttributeSchemaRequired */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!AttributeSchemaRequired.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AttributeSchemaRequired is not found in the empty JSON string", AttributeSchemaRequired.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!AttributeSchemaRequired.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in AttributeSchemaRequired is not found in the empty JSON string", + AttributeSchemaRequired.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!AttributeSchemaRequired.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AttributeSchemaRequired` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); - } - if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) && !jsonObj.get("defaultValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() && !jsonObj.get("defaultValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", jsonObj.get("defaultValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() && !jsonObj.get("allowedValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", jsonObj.get("allowedValues").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!AttributeSchemaRequired.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `AttributeSchemaRequired` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) + && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("attributeKey").toString())); + } + if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) + && !jsonObj.get("defaultValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("defaultValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() + && !jsonObj.get("defaultValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", + jsonObj.get("defaultValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() + && !jsonObj.get("allowedValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", + jsonObj.get("allowedValues").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!AttributeSchemaRequired.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'AttributeSchemaRequired' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaRequired.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, AttributeSchemaRequired value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public AttributeSchemaRequired read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!AttributeSchemaRequired.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AttributeSchemaRequired' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(AttributeSchemaRequired.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AttributeSchemaRequired value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AttributeSchemaRequired read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/AttributeType.java b/src/main/java/com/formkiq/client/model/AttributeType.java index 12cf42854..91375aa89 100644 --- a/src/main/java/com/formkiq/client/model/AttributeType.java +++ b/src/main/java/com/formkiq/client/model/AttributeType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(AttributeType.Adapter.class) public enum AttributeType { - + STANDARD("STANDARD"), - + OPA("OPA"), - + GOVERNANCE("GOVERNANCE"); private String value; @@ -63,7 +70,8 @@ public static AttributeType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AttributeType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final AttributeType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/AttributeValueType.java b/src/main/java/com/formkiq/client/model/AttributeValueType.java index d667e049e..d162bba12 100644 --- a/src/main/java/com/formkiq/client/model/AttributeValueType.java +++ b/src/main/java/com/formkiq/client/model/AttributeValueType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,25 +37,25 @@ */ @JsonAdapter(AttributeValueType.Adapter.class) public enum AttributeValueType { - + BOOLEAN("BOOLEAN"), - + KEY_ONLY("KEY_ONLY"), - + NUMBER("NUMBER"), - + STRING("STRING"), - + PUBLICATION("PUBLICATION"), - + CLASSIFICATION("CLASSIFICATION"), - + COMPOSITE_STRING("COMPOSITE_STRING"), - + RELATIONSHIPS("RELATIONSHIPS"), - + WATERMARK("WATERMARK"), - + ENTITY("ENTITY"); private String value; @@ -77,7 +84,8 @@ public static AttributeValueType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final AttributeValueType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final AttributeValueType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/CaseStatus.java b/src/main/java/com/formkiq/client/model/CaseStatus.java index bd38fb52f..41b0c6b11 100644 --- a/src/main/java/com/formkiq/client/model/CaseStatus.java +++ b/src/main/java/com/formkiq/client/model/CaseStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,23 +37,23 @@ */ @JsonAdapter(CaseStatus.Adapter.class) public enum CaseStatus { - + NEW("NEW"), - + ASSIGNED("ASSIGNED"), - + IN_PROGRESS("IN_PROGRESS"), - + ON_HOLD("ON_HOLD"), - + ESCALATED("ESCALATED"), - + RESOLVED("RESOLVED"), - + CLOSED("CLOSED"), - + UNDER_REVIEW("UNDER_REVIEW"), - + AWAITING_CLIENT_RESPONSE("AWAITING_CLIENT_RESPONSE"); private String value; @@ -75,7 +82,8 @@ public static CaseStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final CaseStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final CaseStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/ChecksumType.java b/src/main/java/com/formkiq/client/model/ChecksumType.java index baa02a409..242a5eb09 100644 --- a/src/main/java/com/formkiq/client/model/ChecksumType.java +++ b/src/main/java/com/formkiq/client/model/ChecksumType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(ChecksumType.Adapter.class) public enum ChecksumType { - + SHA1("SHA1"), - + SHA256("SHA256"); private String value; @@ -61,7 +68,8 @@ public static ChecksumType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final ChecksumType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final ChecksumType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/ChildDocument.java b/src/main/java/com/formkiq/client/model/ChildDocument.java index 82bd304a4..6649c0329 100644 --- a/src/main/java/com/formkiq/client/model/ChildDocument.java +++ b/src/main/java/com/formkiq/client/model/ChildDocument.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * ChildDocument */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ChildDocument { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -117,8 +126,7 @@ public class ChildDocument { @javax.annotation.Nullable private String belongsToDocumentId; - public ChildDocument() { - } + public ChildDocument() {} public ChildDocument path(@javax.annotation.Nullable String path) { this.path = path; @@ -127,6 +135,7 @@ public ChildDocument path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -146,6 +155,7 @@ public ChildDocument width(@javax.annotation.Nullable String width) { /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -165,6 +175,7 @@ public ChildDocument height(@javax.annotation.Nullable String height) { /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -184,6 +195,7 @@ public ChildDocument deepLinkPath(@javax.annotation.Nullable String deepLinkPath /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -203,6 +215,7 @@ public ChildDocument insertedDate(@javax.annotation.Nullable String insertedDate /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -222,6 +235,7 @@ public ChildDocument lastModifiedDate(@javax.annotation.Nullable String lastModi /** * Last Modified Timestamp + * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -241,6 +255,7 @@ public ChildDocument checksum(@javax.annotation.Nullable String checksum) { /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -260,6 +275,7 @@ public ChildDocument documentId(@javax.annotation.Nonnull String documentId) { /** * Document Identifier + * * @return documentId */ @javax.annotation.Nonnull @@ -279,6 +295,7 @@ public ChildDocument contentType(@javax.annotation.Nullable String contentType) /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -298,6 +315,7 @@ public ChildDocument userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -317,6 +335,7 @@ public ChildDocument contentLength(@javax.annotation.Nullable Integer contentLen /** * Document size + * * @return contentLength */ @javax.annotation.Nullable @@ -336,6 +355,7 @@ public ChildDocument versionId(@javax.annotation.Nullable String versionId) { /** * Document version + * * @return versionId */ @javax.annotation.Nullable @@ -355,6 +375,7 @@ public ChildDocument belongsToDocumentId(@javax.annotation.Nullable String belon /** * Parent Document Identifier + * * @return belongsToDocumentId */ @javax.annotation.Nullable @@ -377,24 +398,25 @@ public boolean equals(Object o) { return false; } ChildDocument childDocument = (ChildDocument) o; - return Objects.equals(this.path, childDocument.path) && - Objects.equals(this.width, childDocument.width) && - Objects.equals(this.height, childDocument.height) && - Objects.equals(this.deepLinkPath, childDocument.deepLinkPath) && - Objects.equals(this.insertedDate, childDocument.insertedDate) && - Objects.equals(this.lastModifiedDate, childDocument.lastModifiedDate) && - Objects.equals(this.checksum, childDocument.checksum) && - Objects.equals(this.documentId, childDocument.documentId) && - Objects.equals(this.contentType, childDocument.contentType) && - Objects.equals(this.userId, childDocument.userId) && - Objects.equals(this.contentLength, childDocument.contentLength) && - Objects.equals(this.versionId, childDocument.versionId) && - Objects.equals(this.belongsToDocumentId, childDocument.belongsToDocumentId); + return Objects.equals(this.path, childDocument.path) + && Objects.equals(this.width, childDocument.width) + && Objects.equals(this.height, childDocument.height) + && Objects.equals(this.deepLinkPath, childDocument.deepLinkPath) + && Objects.equals(this.insertedDate, childDocument.insertedDate) + && Objects.equals(this.lastModifiedDate, childDocument.lastModifiedDate) + && Objects.equals(this.checksum, childDocument.checksum) + && Objects.equals(this.documentId, childDocument.documentId) + && Objects.equals(this.contentType, childDocument.contentType) + && Objects.equals(this.userId, childDocument.userId) + && Objects.equals(this.contentLength, childDocument.contentLength) + && Objects.equals(this.versionId, childDocument.versionId) + && Objects.equals(this.belongsToDocumentId, childDocument.belongsToDocumentId); } @Override public int hashCode() { - return Objects.hash(path, width, height, deepLinkPath, insertedDate, lastModifiedDate, checksum, documentId, contentType, userId, contentLength, versionId, belongsToDocumentId); + return Objects.hash(path, width, height, deepLinkPath, insertedDate, lastModifiedDate, checksum, + documentId, contentType, userId, contentLength, versionId, belongsToDocumentId); } @Override @@ -413,14 +435,14 @@ public String toString() { sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" contentLength: ").append(toIndentedString(contentLength)).append("\n"); sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); - sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)).append("\n"); + sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -435,7 +457,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "documentId", "contentType", "userId", "contentLength", "versionId", "belongsToDocumentId")); + openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", + "insertedDate", "lastModifiedDate", "checksum", "documentId", "contentType", "userId", + "contentLength", "versionId", "belongsToDocumentId")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("documentId")); @@ -448,91 +472,134 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ChildDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ChildDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ChildDocument is not found in the empty JSON string", ChildDocument.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!ChildDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in ChildDocument is not found in the empty JSON string", + ChildDocument.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ChildDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ChildDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ChildDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `ChildDocument` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ChildDocument.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) && !jsonObj.get("versionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionId").toString())); - } - if ((jsonObj.get("belongsToDocumentId") != null && !jsonObj.get("belongsToDocumentId").isJsonNull()) && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("belongsToDocumentId").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ChildDocument.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) + && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) + && !jsonObj.get("versionId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("versionId").toString())); + } + if ((jsonObj.get("belongsToDocumentId") != null + && !jsonObj.get("belongsToDocumentId").isJsonNull()) + && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("belongsToDocumentId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ChildDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ChildDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ChildDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ChildDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ChildDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ChildDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ChildDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(ChildDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ChildDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ChildDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Classification.java b/src/main/java/com/formkiq/client/model/Classification.java index 8dcff2dcb..441b058c5 100644 --- a/src/main/java/com/formkiq/client/model/Classification.java +++ b/src/main/java/com/formkiq/client/model/Classification.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * Classification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Classification { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -73,8 +82,7 @@ public class Classification { @javax.annotation.Nullable private SchemaAttributes attributes; - public Classification() { - } + public Classification() {} public Classification name(@javax.annotation.Nullable String name) { this.name = name; @@ -83,6 +91,7 @@ public Classification name(@javax.annotation.Nullable String name) { /** * Name of Classification + * * @return name */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public Classification userId(@javax.annotation.Nullable String userId) { /** * Get userId + * * @return userId */ @javax.annotation.Nullable @@ -121,6 +131,7 @@ public Classification insertedDate(@javax.annotation.Nullable String insertedDat /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -140,6 +151,7 @@ public Classification attributes(@javax.annotation.Nullable SchemaAttributes att /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -162,10 +174,10 @@ public boolean equals(Object o) { return false; } Classification classification = (Classification) o; - return Objects.equals(this.name, classification.name) && - Objects.equals(this.userId, classification.userId) && - Objects.equals(this.insertedDate, classification.insertedDate) && - Objects.equals(this.attributes, classification.attributes); + return Objects.equals(this.name, classification.name) + && Objects.equals(this.userId, classification.userId) + && Objects.equals(this.insertedDate, classification.insertedDate) + && Objects.equals(this.attributes, classification.attributes); } @Override @@ -186,8 +198,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -202,7 +213,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "userId", "insertedDate", "attributes")); + openapiFields = + new HashSet(Arrays.asList("name", "userId", "insertedDate", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -215,61 +227,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Classification */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Classification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Classification is not found in the empty JSON string", Classification.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Classification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Classification is not found in the empty JSON string", + Classification.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Classification.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Classification` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - SchemaAttributes.validateJsonElement(jsonObj.get("attributes")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Classification.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Classification` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + SchemaAttributes.validateJsonElement(jsonObj.get("attributes")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Classification.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Classification' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Classification.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Classification value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Classification read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Classification.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Classification' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Classification.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Classification value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Classification read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ClassificationSummary.java b/src/main/java/com/formkiq/client/model/ClassificationSummary.java index 3a9c3a264..6121be5d3 100644 --- a/src/main/java/com/formkiq/client/model/ClassificationSummary.java +++ b/src/main/java/com/formkiq/client/model/ClassificationSummary.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * ClassificationSummary */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ClassificationSummary { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION_ID) @@ -72,16 +81,17 @@ public class ClassificationSummary { @javax.annotation.Nullable private String insertedDate; - public ClassificationSummary() { - } + public ClassificationSummary() {} - public ClassificationSummary classificationId(@javax.annotation.Nullable String classificationId) { + public ClassificationSummary classificationId( + @javax.annotation.Nullable String classificationId) { this.classificationId = classificationId; return this; } /** * Classification Identifier + * * @return classificationId */ @javax.annotation.Nullable @@ -101,6 +111,7 @@ public ClassificationSummary name(@javax.annotation.Nullable String name) { /** * Name of Classification + * * @return name */ @javax.annotation.Nullable @@ -120,6 +131,7 @@ public ClassificationSummary userId(@javax.annotation.Nullable String userId) { /** * Get userId + * * @return userId */ @javax.annotation.Nullable @@ -139,6 +151,7 @@ public ClassificationSummary insertedDate(@javax.annotation.Nullable String inse /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -161,10 +174,10 @@ public boolean equals(Object o) { return false; } ClassificationSummary classificationSummary = (ClassificationSummary) o; - return Objects.equals(this.classificationId, classificationSummary.classificationId) && - Objects.equals(this.name, classificationSummary.name) && - Objects.equals(this.userId, classificationSummary.userId) && - Objects.equals(this.insertedDate, classificationSummary.insertedDate); + return Objects.equals(this.classificationId, classificationSummary.classificationId) + && Objects.equals(this.name, classificationSummary.name) + && Objects.equals(this.userId, classificationSummary.userId) + && Objects.equals(this.insertedDate, classificationSummary.insertedDate); } @Override @@ -185,8 +198,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -201,7 +213,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("classificationId", "name", "userId", "insertedDate")); + openapiFields = + new HashSet(Arrays.asList("classificationId", "name", "userId", "insertedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -214,60 +227,77 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ClassificationSummary */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ClassificationSummary.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ClassificationSummary is not found in the empty JSON string", ClassificationSummary.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!ClassificationSummary.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in ClassificationSummary is not found in the empty JSON string", + ClassificationSummary.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ClassificationSummary.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ClassificationSummary` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) && !jsonObj.get("classificationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("classificationId").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ClassificationSummary.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `ClassificationSummary` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) + && !jsonObj.get("classificationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("classificationId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ClassificationSummary.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ClassificationSummary' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ClassificationSummary.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ClassificationSummary value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ClassificationSummary read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ClassificationSummary.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ClassificationSummary' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(ClassificationSummary.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ClassificationSummary value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ClassificationSummary read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DataClassification.java b/src/main/java/com/formkiq/client/model/DataClassification.java index 78aeda248..7756865f5 100644 --- a/src/main/java/com/formkiq/client/model/DataClassification.java +++ b/src/main/java/com/formkiq/client/model/DataClassification.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * DataClassification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DataClassification { public static final String SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME = "llmPromptEntityName"; @SerializedName(SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME) @@ -80,16 +89,17 @@ public class DataClassification { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public DataClassification() { - } + public DataClassification() {} - public DataClassification llmPromptEntityName(@javax.annotation.Nullable String llmPromptEntityName) { + public DataClassification llmPromptEntityName( + @javax.annotation.Nullable String llmPromptEntityName) { this.llmPromptEntityName = llmPromptEntityName; return this; } /** * Name of the LLM Prompt Entity + * * @return llmPromptEntityName */ @javax.annotation.Nullable @@ -109,6 +119,7 @@ public DataClassification insertedDate(@javax.annotation.Nullable String inserte /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -128,6 +139,7 @@ public DataClassification content(@javax.annotation.Nullable String content) { /** * Result content + * * @return content */ @javax.annotation.Nullable @@ -147,6 +159,7 @@ public DataClassification userId(@javax.annotation.Nullable String userId) { /** * UserId that created Result + * * @return userId */ @javax.annotation.Nullable @@ -159,7 +172,8 @@ public void setUserId(@javax.annotation.Nullable String userId) { } - public DataClassification attributes(@javax.annotation.Nullable List attributes) { + public DataClassification attributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -174,6 +188,7 @@ public DataClassification addAttributesItem(DataClassificationAttribute attribut /** * Attributes extracted from result content + * * @return attributes */ @javax.annotation.Nullable @@ -181,7 +196,8 @@ public List getAttributes() { return attributes; } - public void setAttributes(@javax.annotation.Nullable List attributes) { + public void setAttributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; } @@ -196,11 +212,11 @@ public boolean equals(Object o) { return false; } DataClassification dataClassification = (DataClassification) o; - return Objects.equals(this.llmPromptEntityName, dataClassification.llmPromptEntityName) && - Objects.equals(this.insertedDate, dataClassification.insertedDate) && - Objects.equals(this.content, dataClassification.content) && - Objects.equals(this.userId, dataClassification.userId) && - Objects.equals(this.attributes, dataClassification.attributes); + return Objects.equals(this.llmPromptEntityName, dataClassification.llmPromptEntityName) + && Objects.equals(this.insertedDate, dataClassification.insertedDate) + && Objects.equals(this.content, dataClassification.content) + && Objects.equals(this.userId, dataClassification.userId) + && Objects.equals(this.attributes, dataClassification.attributes); } @Override @@ -212,7 +228,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DataClassification {\n"); - sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)).append("\n"); + sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)) + .append("\n"); sb.append(" insertedDate: ").append(toIndentedString(insertedDate)).append("\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); @@ -222,8 +239,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -238,7 +254,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("llmPromptEntityName", "insertedDate", "content", "userId", "attributes")); + openapiFields = new HashSet( + Arrays.asList("llmPromptEntityName", "insertedDate", "content", "userId", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -251,74 +268,94 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DataClassification */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DataClassification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DataClassification is not found in the empty JSON string", DataClassification.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DataClassification.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DataClassification is not found in the empty JSON string", + DataClassification.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DataClassification.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DataClassification` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("llmPromptEntityName") != null && !jsonObj.get("llmPromptEntityName").isJsonNull()) && !jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("llmPromptEntityName").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DataClassification.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DataClassification` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - DataClassificationAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("llmPromptEntityName") != null + && !jsonObj.get("llmPromptEntityName").isJsonNull()) + && !jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("llmPromptEntityName").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) + && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + DataClassificationAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DataClassification.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DataClassification' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DataClassification.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DataClassification value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DataClassification read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DataClassification.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DataClassification' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DataClassification.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DataClassification value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DataClassification read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java b/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java index 83847d2c4..0d6da5170 100644 --- a/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java +++ b/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * DataClassificationAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DataClassificationAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -62,8 +71,7 @@ public class DataClassificationAttribute { @javax.annotation.Nullable private String value; - public DataClassificationAttribute() { - } + public DataClassificationAttribute() {} public DataClassificationAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -72,6 +80,7 @@ public DataClassificationAttribute key(@javax.annotation.Nullable String key) { /** * Data Classification Attribute Key + * * @return key */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public DataClassificationAttribute value(@javax.annotation.Nullable String value /** * Data Classification Attribute Value + * * @return value */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } DataClassificationAttribute dataClassificationAttribute = (DataClassificationAttribute) o; - return Objects.equals(this.key, dataClassificationAttribute.key) && - Objects.equals(this.value, dataClassificationAttribute.value); + return Objects.equals(this.key, dataClassificationAttribute.key) + && Objects.equals(this.value, dataClassificationAttribute.value); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DataClassificationAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DataClassificationAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DataClassificationAttribute is not found in the empty JSON string", DataClassificationAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DataClassificationAttribute.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DataClassificationAttribute is not found in the empty JSON string", + DataClassificationAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DataClassificationAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DataClassificationAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DataClassificationAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DataClassificationAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DataClassificationAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DataClassificationAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DataClassificationAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DataClassificationAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DataClassificationAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DataClassificationAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DataClassificationAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DataClassificationAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DataClassificationAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DataClassificationAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java b/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java index 2458654bd..16db3a4ce 100644 --- a/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteApiKeyResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteApiKeyResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteApiKeyResponse() { - } + public DeleteApiKeyResponse() {} public DeleteApiKeyResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteApiKeyResponse message(@javax.annotation.Nullable String message) { /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteApiKeyResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteApiKeyResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteApiKeyResponse is not found in the empty JSON string", DeleteApiKeyResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteApiKeyResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteApiKeyResponse is not found in the empty JSON string", + DeleteApiKeyResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteApiKeyResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteApiKeyResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteApiKeyResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteApiKeyResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteApiKeyResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteApiKeyResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteApiKeyResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteApiKeyResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteApiKeyResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteApiKeyResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteApiKeyResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteApiKeyResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteApiKeyResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteApiKeyResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java index 5b30d3dcc..9dd5b6134 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteCaseDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteCaseDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseDocumentResponse() { - } + public DeleteCaseDocumentResponse() {} public DeleteCaseDocumentResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteCaseDocumentResponse message(@javax.annotation.Nullable String mess /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteCaseDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseDocumentResponse is not found in the empty JSON string", DeleteCaseDocumentResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteCaseDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteCaseDocumentResponse is not found in the empty JSON string", + DeleteCaseDocumentResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteCaseDocumentResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java index a58b6d036..64c6b1ebb 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteCaseNigoDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteCaseNigoDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseNigoDocumentResponse() { - } + public DeleteCaseNigoDocumentResponse() {} public DeleteCaseNigoDocumentResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteCaseNigoDocumentResponse message(@javax.annotation.Nullable String /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -88,7 +97,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeleteCaseNigoDocumentResponse deleteCaseNigoDocumentResponse = (DeleteCaseNigoDocumentResponse) o; + DeleteCaseNigoDocumentResponse deleteCaseNigoDocumentResponse = + (DeleteCaseNigoDocumentResponse) o; return Objects.equals(this.message, deleteCaseNigoDocumentResponse.message); } @@ -107,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,54 +142,64 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeleteCaseNigoDocumentResponse + * @throws IOException if the JSON Element is invalid with respect to + * DeleteCaseNigoDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseNigoDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseNigoDocumentResponse is not found in the empty JSON string", DeleteCaseNigoDocumentResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteCaseNigoDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteCaseNigoDocumentResponse is not found in the empty JSON string", + DeleteCaseNigoDocumentResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseNigoDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseNigoDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseNigoDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteCaseNigoDocumentResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseNigoDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseNigoDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseNigoDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseNigoDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseNigoDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseNigoDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseNigoDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseNigoDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseNigoDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseNigoDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -189,7 +208,8 @@ public DeleteCaseNigoDocumentResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of DeleteCaseNigoDocumentResponse - * @throws IOException if the JSON string is invalid with respect to DeleteCaseNigoDocumentResponse + * @throws IOException if the JSON string is invalid with respect to + * DeleteCaseNigoDocumentResponse */ public static DeleteCaseNigoDocumentResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DeleteCaseNigoDocumentResponse.class); diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java index dd8308432..2608ae1f2 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteCaseNigoResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteCaseNigoResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseNigoResponse() { - } + public DeleteCaseNigoResponse() {} public DeleteCaseNigoResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteCaseNigoResponse message(@javax.annotation.Nullable String message) /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteCaseNigoResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseNigoResponse is not found in the empty JSON string", DeleteCaseNigoResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteCaseNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteCaseNigoResponse is not found in the empty JSON string", + DeleteCaseNigoResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseNigoResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseNigoResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseNigoResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteCaseNigoResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseNigoResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseNigoResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseNigoResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseNigoResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseNigoResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseNigoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseNigoResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseNigoResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseNigoResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseNigoResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java index c8706a4ce..13382b575 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteCaseResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteCaseResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseResponse() { - } + public DeleteCaseResponse() {} public DeleteCaseResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteCaseResponse message(@javax.annotation.Nullable String message) { /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteCaseResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseResponse is not found in the empty JSON string", DeleteCaseResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteCaseResponse is not found in the empty JSON string", + DeleteCaseResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteCaseResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java index 2486bdd71..5720611df 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteCaseTaskDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteCaseTaskDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseTaskDocumentResponse() { - } + public DeleteCaseTaskDocumentResponse() {} public DeleteCaseTaskDocumentResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteCaseTaskDocumentResponse message(@javax.annotation.Nullable String /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -88,7 +97,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeleteCaseTaskDocumentResponse deleteCaseTaskDocumentResponse = (DeleteCaseTaskDocumentResponse) o; + DeleteCaseTaskDocumentResponse deleteCaseTaskDocumentResponse = + (DeleteCaseTaskDocumentResponse) o; return Objects.equals(this.message, deleteCaseTaskDocumentResponse.message); } @@ -107,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,54 +142,64 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeleteCaseTaskDocumentResponse + * @throws IOException if the JSON Element is invalid with respect to + * DeleteCaseTaskDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseTaskDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseTaskDocumentResponse is not found in the empty JSON string", DeleteCaseTaskDocumentResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteCaseTaskDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteCaseTaskDocumentResponse is not found in the empty JSON string", + DeleteCaseTaskDocumentResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseTaskDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseTaskDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseTaskDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteCaseTaskDocumentResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseTaskDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseTaskDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseTaskDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseTaskDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseTaskDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseTaskDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseTaskDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseTaskDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseTaskDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseTaskDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -189,7 +208,8 @@ public DeleteCaseTaskDocumentResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of DeleteCaseTaskDocumentResponse - * @throws IOException if the JSON string is invalid with respect to DeleteCaseTaskDocumentResponse + * @throws IOException if the JSON string is invalid with respect to + * DeleteCaseTaskDocumentResponse */ public static DeleteCaseTaskDocumentResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DeleteCaseTaskDocumentResponse.class); diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java index 2abf996aa..c4dd38a6e 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteCaseTaskResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteCaseTaskResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteCaseTaskResponse() { - } + public DeleteCaseTaskResponse() {} public DeleteCaseTaskResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteCaseTaskResponse message(@javax.annotation.Nullable String message) /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteCaseTaskResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteCaseTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteCaseTaskResponse is not found in the empty JSON string", DeleteCaseTaskResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteCaseTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteCaseTaskResponse is not found in the empty JSON string", + DeleteCaseTaskResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteCaseTaskResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteCaseTaskResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteCaseTaskResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteCaseTaskResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteCaseTaskResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteCaseTaskResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseTaskResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteCaseTaskResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteCaseTaskResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteCaseTaskResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteCaseTaskResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteCaseTaskResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteCaseTaskResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteCaseTaskResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java b/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java index 4c707cee6..80ca41ca4 100644 --- a/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteFolderResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteFolderResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteFolderResponse() { - } + public DeleteFolderResponse() {} public DeleteFolderResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteFolderResponse message(@javax.annotation.Nullable String message) { /** * API Response message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteFolderResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteFolderResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteFolderResponse is not found in the empty JSON string", DeleteFolderResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteFolderResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteFolderResponse is not found in the empty JSON string", + DeleteFolderResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteFolderResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteFolderResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteFolderResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteFolderResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteFolderResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteFolderResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteFolderResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteFolderResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteFolderResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteFolderResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteFolderResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteFolderResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteFolderResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteFolderResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java b/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java index 14dac468a..63d31e00e 100644 --- a/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteFulltextResponse() { - } + public DeleteFulltextResponse() {} public DeleteFulltextResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteFulltextResponse message(@javax.annotation.Nullable String message) /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteFulltextResponse is not found in the empty JSON string", DeleteFulltextResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteFulltextResponse is not found in the empty JSON string", + DeleteFulltextResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteFulltextResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java b/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java index 40d26390a..2c5d6bafd 100644 --- a/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteIndicesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteIndicesResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteIndicesResponse() { - } + public DeleteIndicesResponse() {} public DeleteIndicesResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteIndicesResponse message(@javax.annotation.Nullable String message) /** * response message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteIndicesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteIndicesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteIndicesResponse is not found in the empty JSON string", DeleteIndicesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteIndicesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteIndicesResponse is not found in the empty JSON string", + DeleteIndicesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteIndicesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteIndicesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteIndicesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteIndicesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteIndicesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteIndicesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteIndicesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteIndicesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteIndicesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteIndicesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteIndicesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteIndicesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteIndicesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteIndicesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java b/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java index 95b2bafd2..7c734343f 100644 --- a/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteQueueResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteQueueResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteQueueResponse() { - } + public DeleteQueueResponse() {} public DeleteQueueResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteQueueResponse message(@javax.annotation.Nullable String message) { /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteQueueResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteQueueResponse is not found in the empty JSON string", DeleteQueueResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteQueueResponse is not found in the empty JSON string", + DeleteQueueResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteQueueResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteQueueResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteQueueResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteQueueResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteQueueResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteQueueResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteQueueResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteQueueResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteQueueResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteQueueResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteQueueResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteQueueResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteQueueResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteQueueResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteResponse.java b/src/main/java/com/formkiq/client/model/DeleteResponse.java index a6e3af602..3f8ad0d12 100644 --- a/src/main/java/com/formkiq/client/model/DeleteResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteResponse() { - } + public DeleteResponse() {} public DeleteResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteResponse message(@javax.annotation.Nullable String message) { /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteResponse is not found in the empty JSON string", DeleteResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteResponse is not found in the empty JSON string", + DeleteResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java b/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java index 6bfb0164f..edc940547 100644 --- a/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteRuleResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteRuleResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteRuleResponse() { - } + public DeleteRuleResponse() {} public DeleteRuleResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteRuleResponse message(@javax.annotation.Nullable String message) { /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteRuleResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteRuleResponse is not found in the empty JSON string", DeleteRuleResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteRuleResponse is not found in the empty JSON string", + DeleteRuleResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteRuleResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteRuleResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteRuleResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteRuleResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteRuleResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteRuleResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteRuleResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteRuleResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteRuleResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteRuleResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteRuleResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteRuleResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteRuleResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteRuleResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java b/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java index 335673e9e..1f87aa8ba 100644 --- a/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteRulesetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteRulesetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteRulesetResponse() { - } + public DeleteRulesetResponse() {} public DeleteRulesetResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteRulesetResponse message(@javax.annotation.Nullable String message) /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteRulesetResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteRulesetResponse is not found in the empty JSON string", DeleteRulesetResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteRulesetResponse is not found in the empty JSON string", + DeleteRulesetResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteRulesetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteRulesetResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteRulesetResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteRulesetResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteRulesetResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteRulesetResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteRulesetResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteRulesetResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteRulesetResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteRulesetResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteRulesetResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteRulesetResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteRulesetResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteRulesetResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteShareResponse.java b/src/main/java/com/formkiq/client/model/DeleteShareResponse.java index 05156508f..47b2bb628 100644 --- a/src/main/java/com/formkiq/client/model/DeleteShareResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteShareResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteShareResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteShareResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteShareResponse() { - } + public DeleteShareResponse() {} public DeleteShareResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteShareResponse message(@javax.annotation.Nullable String message) { /** * API Response message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteShareResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteShareResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteShareResponse is not found in the empty JSON string", DeleteShareResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteShareResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteShareResponse is not found in the empty JSON string", + DeleteShareResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteShareResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteShareResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteShareResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteShareResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteShareResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteShareResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteShareResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteShareResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteShareResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteShareResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteShareResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteShareResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteShareResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteShareResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java b/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java index 719d8e8d6..31e58fb6f 100644 --- a/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DeleteWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DeleteWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public DeleteWorkflowResponse() { - } + public DeleteWorkflowResponse() {} public DeleteWorkflowResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public DeleteWorkflowResponse message(@javax.annotation.Nullable String message) /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DeleteWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DeleteWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DeleteWorkflowResponse is not found in the empty JSON string", DeleteWorkflowResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DeleteWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DeleteWorkflowResponse is not found in the empty JSON string", + DeleteWorkflowResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DeleteWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DeleteWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DeleteWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DeleteWorkflowResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DeleteWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DeleteWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DeleteWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DeleteWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DeleteWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DeleteWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DeleteWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DeleteWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DeleteWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DeleteWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Document.java b/src/main/java/com/formkiq/client/model/Document.java index 4cf447cfd..6f67aba45 100644 --- a/src/main/java/com/formkiq/client/model/Document.java +++ b/src/main/java/com/formkiq/client/model/Document.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * Document */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Document { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -146,8 +155,7 @@ public class Document { @javax.annotation.Nullable private List metadata = new ArrayList<>(); - public Document() { - } + public Document() {} public Document siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -156,6 +164,7 @@ public Document siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -175,6 +184,7 @@ public Document path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -194,6 +204,7 @@ public Document width(@javax.annotation.Nullable String width) { /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -213,6 +224,7 @@ public Document height(@javax.annotation.Nullable String height) { /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -232,6 +244,7 @@ public Document deepLinkPath(@javax.annotation.Nullable String deepLinkPath) { /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -251,6 +264,7 @@ public Document insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -270,6 +284,7 @@ public Document lastModifiedDate(@javax.annotation.Nullable String lastModifiedD /** * Last Modified Timestamp + * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -289,6 +304,7 @@ public Document checksum(@javax.annotation.Nullable String checksum) { /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -308,6 +324,7 @@ public Document checksumType(@javax.annotation.Nullable ChecksumType checksumTyp /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -327,6 +344,7 @@ public Document documentId(@javax.annotation.Nullable String documentId) { /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -346,6 +364,7 @@ public Document contentType(@javax.annotation.Nullable String contentType) { /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -365,6 +384,7 @@ public Document userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -384,6 +404,7 @@ public Document contentLength(@javax.annotation.Nullable Integer contentLength) /** * Document size + * * @return contentLength */ @javax.annotation.Nullable @@ -403,6 +424,7 @@ public Document version(@javax.annotation.Nullable String version) { /** * Document version + * * @return version */ @javax.annotation.Nullable @@ -422,6 +444,7 @@ public Document versionKey(@javax.annotation.Nullable String versionKey) { /** * Document Version Identifier + * * @return versionKey */ @javax.annotation.Nullable @@ -441,6 +464,7 @@ public Document s3version(@javax.annotation.Nullable String s3version) { /** * Document storage version + * * @return s3version */ @javax.annotation.Nullable @@ -460,6 +484,7 @@ public Document belongsToDocumentId(@javax.annotation.Nullable String belongsToD /** * Parent Document Identifier + * * @return belongsToDocumentId */ @javax.annotation.Nullable @@ -487,6 +512,7 @@ public Document addMetadataItem(DocumentMetadata metadataItem) { /** * List of document Metadata + * * @return metadata */ @javax.annotation.Nullable @@ -509,29 +535,30 @@ public boolean equals(Object o) { return false; } Document document = (Document) o; - return Objects.equals(this.siteId, document.siteId) && - Objects.equals(this.path, document.path) && - Objects.equals(this.width, document.width) && - Objects.equals(this.height, document.height) && - Objects.equals(this.deepLinkPath, document.deepLinkPath) && - Objects.equals(this.insertedDate, document.insertedDate) && - Objects.equals(this.lastModifiedDate, document.lastModifiedDate) && - Objects.equals(this.checksum, document.checksum) && - Objects.equals(this.checksumType, document.checksumType) && - Objects.equals(this.documentId, document.documentId) && - Objects.equals(this.contentType, document.contentType) && - Objects.equals(this.userId, document.userId) && - Objects.equals(this.contentLength, document.contentLength) && - Objects.equals(this.version, document.version) && - Objects.equals(this.versionKey, document.versionKey) && - Objects.equals(this.s3version, document.s3version) && - Objects.equals(this.belongsToDocumentId, document.belongsToDocumentId) && - Objects.equals(this.metadata, document.metadata); + return Objects.equals(this.siteId, document.siteId) && Objects.equals(this.path, document.path) + && Objects.equals(this.width, document.width) + && Objects.equals(this.height, document.height) + && Objects.equals(this.deepLinkPath, document.deepLinkPath) + && Objects.equals(this.insertedDate, document.insertedDate) + && Objects.equals(this.lastModifiedDate, document.lastModifiedDate) + && Objects.equals(this.checksum, document.checksum) + && Objects.equals(this.checksumType, document.checksumType) + && Objects.equals(this.documentId, document.documentId) + && Objects.equals(this.contentType, document.contentType) + && Objects.equals(this.userId, document.userId) + && Objects.equals(this.contentLength, document.contentLength) + && Objects.equals(this.version, document.version) + && Objects.equals(this.versionKey, document.versionKey) + && Objects.equals(this.s3version, document.s3version) + && Objects.equals(this.belongsToDocumentId, document.belongsToDocumentId) + && Objects.equals(this.metadata, document.metadata); } @Override public int hashCode() { - return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, checksum, checksumType, documentId, contentType, userId, contentLength, version, versionKey, s3version, belongsToDocumentId, metadata); + return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, + checksum, checksumType, documentId, contentType, userId, contentLength, version, versionKey, + s3version, belongsToDocumentId, metadata); } @Override @@ -554,15 +581,15 @@ public String toString() { sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" versionKey: ").append(toIndentedString(versionKey)).append("\n"); sb.append(" s3version: ").append(toIndentedString(s3version)).append("\n"); - sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)).append("\n"); + sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -577,7 +604,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "path", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "checksumType", "documentId", "contentType", "userId", "contentLength", "version", "versionKey", "s3version", "belongsToDocumentId", "metadata")); + openapiFields = new HashSet(Arrays.asList("siteId", "path", "width", "height", + "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "checksumType", + "documentId", "contentType", "userId", "contentLength", "version", "versionKey", + "s3version", "belongsToDocumentId", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -590,111 +620,164 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Document */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Document.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Document is not found in the empty JSON string", Document.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Document.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Document is not found in the empty JSON string", + Document.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Document.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Document` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Document.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Document` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); - } - if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) && !jsonObj.get("versionKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionKey").toString())); - } - if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) && !jsonObj.get("s3version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("s3version").toString())); - } - if ((jsonObj.get("belongsToDocumentId") != null && !jsonObj.get("belongsToDocumentId").isJsonNull()) && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("belongsToDocumentId").toString())); - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) + && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) + && !jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `version` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("version").toString())); + } + if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) + && !jsonObj.get("versionKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("versionKey").toString())); + } + if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) + && !jsonObj.get("s3version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("s3version").toString())); + } + if ((jsonObj.get("belongsToDocumentId") != null + && !jsonObj.get("belongsToDocumentId").isJsonNull()) + && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("belongsToDocumentId").toString())); + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `metadata` to be an array in the JSON string but got `%s`", + jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Document.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Document' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Document.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Document value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Document read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Document.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Document' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Document.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Document value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Document read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentAction.java b/src/main/java/com/formkiq/client/model/DocumentAction.java index b492837c9..411697eb1 100644 --- a/src/main/java/com/formkiq/client/model/DocumentAction.java +++ b/src/main/java/com/formkiq/client/model/DocumentAction.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * DocumentAction */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentAction { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -127,8 +136,7 @@ public class DocumentAction { @javax.annotation.Nullable private Map metadata = new HashMap<>(); - public DocumentAction() { - } + public DocumentAction() {} public DocumentAction status(@javax.annotation.Nullable DocumentActionStatus status) { this.status = status; @@ -137,6 +145,7 @@ public DocumentAction status(@javax.annotation.Nullable DocumentActionStatus sta /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -156,6 +165,7 @@ public DocumentAction type(@javax.annotation.Nullable DocumentActionType type) { /** * Get type + * * @return type */ @javax.annotation.Nullable @@ -175,6 +185,7 @@ public DocumentAction retryCount(@javax.annotation.Nullable BigDecimal retryCoun /** * The number of times this action has already been attempted + * * @return retryCount */ @javax.annotation.Nullable @@ -194,6 +205,7 @@ public DocumentAction maxRetries(@javax.annotation.Nullable BigDecimal maxRetrie /** * The maximum number of retry attempts allowed for this action + * * @return maxRetries */ @javax.annotation.Nullable @@ -213,6 +225,7 @@ public DocumentAction queueId(@javax.annotation.Nullable String queueId) { /** * Queue Id + * * @return queueId */ @javax.annotation.Nullable @@ -232,6 +245,7 @@ public DocumentAction workflowId(@javax.annotation.Nullable String workflowId) { /** * Workflow Id + * * @return workflowId */ @javax.annotation.Nullable @@ -251,6 +265,7 @@ public DocumentAction workflowStepId(@javax.annotation.Nullable String workflowS /** * Workflow Step Id + * * @return workflowStepId */ @javax.annotation.Nullable @@ -270,6 +285,7 @@ public DocumentAction message(@javax.annotation.Nullable String message) { /** * Action message information + * * @return message */ @javax.annotation.Nullable @@ -289,6 +305,7 @@ public DocumentAction userId(@javax.annotation.Nullable String userId) { /** * User who requested the Action + * * @return userId */ @javax.annotation.Nullable @@ -308,6 +325,7 @@ public DocumentAction insertedDate(@javax.annotation.Nullable String insertedDat /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -327,6 +345,7 @@ public DocumentAction startDate(@javax.annotation.Nullable String startDate) { /** * Started Timestamp + * * @return startDate */ @javax.annotation.Nullable @@ -346,6 +365,7 @@ public DocumentAction completedDate(@javax.annotation.Nullable String completedD /** * Completed Timestamp + * * @return completedDate */ @javax.annotation.Nullable @@ -373,6 +393,7 @@ public DocumentAction putParametersItem(String key, Object parametersItem) { /** * Action parameters + * * @return parameters */ @javax.annotation.Nullable @@ -400,6 +421,7 @@ public DocumentAction putMetadataItem(String key, String metadataItem) { /** * Action metadata + * * @return metadata */ @javax.annotation.Nullable @@ -422,25 +444,26 @@ public boolean equals(Object o) { return false; } DocumentAction documentAction = (DocumentAction) o; - return Objects.equals(this.status, documentAction.status) && - Objects.equals(this.type, documentAction.type) && - Objects.equals(this.retryCount, documentAction.retryCount) && - Objects.equals(this.maxRetries, documentAction.maxRetries) && - Objects.equals(this.queueId, documentAction.queueId) && - Objects.equals(this.workflowId, documentAction.workflowId) && - Objects.equals(this.workflowStepId, documentAction.workflowStepId) && - Objects.equals(this.message, documentAction.message) && - Objects.equals(this.userId, documentAction.userId) && - Objects.equals(this.insertedDate, documentAction.insertedDate) && - Objects.equals(this.startDate, documentAction.startDate) && - Objects.equals(this.completedDate, documentAction.completedDate) && - Objects.equals(this.parameters, documentAction.parameters) && - Objects.equals(this.metadata, documentAction.metadata); + return Objects.equals(this.status, documentAction.status) + && Objects.equals(this.type, documentAction.type) + && Objects.equals(this.retryCount, documentAction.retryCount) + && Objects.equals(this.maxRetries, documentAction.maxRetries) + && Objects.equals(this.queueId, documentAction.queueId) + && Objects.equals(this.workflowId, documentAction.workflowId) + && Objects.equals(this.workflowStepId, documentAction.workflowStepId) + && Objects.equals(this.message, documentAction.message) + && Objects.equals(this.userId, documentAction.userId) + && Objects.equals(this.insertedDate, documentAction.insertedDate) + && Objects.equals(this.startDate, documentAction.startDate) + && Objects.equals(this.completedDate, documentAction.completedDate) + && Objects.equals(this.parameters, documentAction.parameters) + && Objects.equals(this.metadata, documentAction.metadata); } @Override public int hashCode() { - return Objects.hash(status, type, retryCount, maxRetries, queueId, workflowId, workflowStepId, message, userId, insertedDate, startDate, completedDate, parameters, metadata); + return Objects.hash(status, type, retryCount, maxRetries, queueId, workflowId, workflowStepId, + message, userId, insertedDate, startDate, completedDate, parameters, metadata); } @Override @@ -466,8 +489,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -482,7 +504,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("status", "type", "retryCount", "maxRetries", "queueId", "workflowId", "workflowStepId", "message", "userId", "insertedDate", "startDate", "completedDate", "parameters", "metadata")); + openapiFields = new HashSet(Arrays.asList("status", "type", "retryCount", "maxRetries", + "queueId", "workflowId", "workflowStepId", "message", "userId", "insertedDate", "startDate", + "completedDate", "parameters", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -495,80 +519,109 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentAction */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentAction is not found in the empty JSON string", DocumentAction.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentAction is not found in the empty JSON string", + DocumentAction.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentAction.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentAction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - DocumentActionStatus.validateJsonElement(jsonObj.get("status")); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - DocumentActionType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) && !jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); - } - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); - } - if ((jsonObj.get("workflowStepId") != null && !jsonObj.get("workflowStepId").isJsonNull()) && !jsonObj.get("workflowStepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowStepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowStepId").toString())); - } - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("completedDate") != null && !jsonObj.get("completedDate").isJsonNull()) && !jsonObj.get("completedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `completedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("completedDate").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentAction.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentAction` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + DocumentActionStatus.validateJsonElement(jsonObj.get("status")); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + DocumentActionType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) + && !jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("queueId").toString())); + } + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) + && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workflowId").toString())); + } + if ((jsonObj.get("workflowStepId") != null && !jsonObj.get("workflowStepId").isJsonNull()) + && !jsonObj.get("workflowStepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflowStepId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workflowStepId").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) + && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("completedDate") != null && !jsonObj.get("completedDate").isJsonNull()) + && !jsonObj.get("completedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `completedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("completedDate").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentAction.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentAction' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentAction.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentAction value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentAction read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentAction.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentAction' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentAction.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentAction value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentAction read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentActionStatus.java b/src/main/java/com/formkiq/client/model/DocumentActionStatus.java index 6ce216f31..774b1ed49 100644 --- a/src/main/java/com/formkiq/client/model/DocumentActionStatus.java +++ b/src/main/java/com/formkiq/client/model/DocumentActionStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,23 +37,23 @@ */ @JsonAdapter(DocumentActionStatus.Adapter.class) public enum DocumentActionStatus { - + COMPLETE("COMPLETE"), - + FAILED("FAILED"), - + IN_QUEUE("IN_QUEUE"), - + PENDING("PENDING"), - + RUNNING("RUNNING"), - + SKIPPED("SKIPPED"), - + FAILED_RETRY("FAILED_RETRY"), - + MAX_RETRIES_REACHED("MAX_RETRIES_REACHED"), - + WAITING_FOR_RETRY("WAITING_FOR_RETRY"); private String value; @@ -75,7 +82,8 @@ public static DocumentActionStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentActionStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentActionStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentActionType.java b/src/main/java/com/formkiq/client/model/DocumentActionType.java index 0580756b3..26785c47d 100644 --- a/src/main/java/com/formkiq/client/model/DocumentActionType.java +++ b/src/main/java/com/formkiq/client/model/DocumentActionType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,33 +37,33 @@ */ @JsonAdapter(DocumentActionType.Adapter.class) public enum DocumentActionType { - + ANTIVIRUS("ANTIVIRUS"), - + DOCUMENTTAGGING("DOCUMENTTAGGING"), - + FULLTEXT("FULLTEXT"), - + NOTIFICATION("NOTIFICATION"), - + OCR("OCR"), - + QUEUE("QUEUE"), - + WEBHOOK("WEBHOOK"), - + IDP("IDP"), - + PUBLISH("PUBLISH"), - + PDFEXPORT("PDFEXPORT"), - + EVENTBRIDGE("EVENTBRIDGE"), - + RESIZE("RESIZE"), - + DATA_CLASSIFICATION("DATA_CLASSIFICATION"), - + MALWARE_SCAN("MALWARE_SCAN"); private String value; @@ -85,7 +92,8 @@ public static DocumentActionType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentActionType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentActionType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentAttribute.java b/src/main/java/com/formkiq/client/model/DocumentAttribute.java index e4f5b1b5d..57c7eb649 100644 --- a/src/main/java/com/formkiq/client/model/DocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * DocumentAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -101,8 +110,7 @@ public class DocumentAttribute { @javax.annotation.Nullable private AttributeValueType valueType; - public DocumentAttribute() { - } + public DocumentAttribute() {} public DocumentAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -111,6 +119,7 @@ public DocumentAttribute key(@javax.annotation.Nullable String key) { /** * Attribute key + * * @return key */ @javax.annotation.Nullable @@ -130,6 +139,7 @@ public DocumentAttribute stringValue(@javax.annotation.Nullable String stringVal /** * Attribute with string value + * * @return stringValue */ @javax.annotation.Nullable @@ -157,6 +167,7 @@ public DocumentAttribute addStringValuesItem(String stringValuesItem) { /** * Attribute with string values + * * @return stringValues */ @javax.annotation.Nullable @@ -176,6 +187,7 @@ public DocumentAttribute numberValue(@javax.annotation.Nullable BigDecimal numbe /** * Attribute with number value + * * @return numberValue */ @javax.annotation.Nullable @@ -203,6 +215,7 @@ public DocumentAttribute addNumberValuesItem(BigDecimal numberValuesItem) { /** * Attribute with number values + * * @return numberValues */ @javax.annotation.Nullable @@ -222,6 +235,7 @@ public DocumentAttribute booleanValue(@javax.annotation.Nullable Boolean boolean /** * Attribute with boolean value + * * @return booleanValue */ @javax.annotation.Nullable @@ -241,6 +255,7 @@ public DocumentAttribute insertedDate(@javax.annotation.Nullable String inserted /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -260,6 +275,7 @@ public DocumentAttribute userId(@javax.annotation.Nullable String userId) { /** * User who added attribute + * * @return userId */ @javax.annotation.Nullable @@ -279,6 +295,7 @@ public DocumentAttribute valueType(@javax.annotation.Nullable AttributeValueType /** * Get valueType + * * @return valueType */ @javax.annotation.Nullable @@ -301,20 +318,21 @@ public boolean equals(Object o) { return false; } DocumentAttribute documentAttribute = (DocumentAttribute) o; - return Objects.equals(this.key, documentAttribute.key) && - Objects.equals(this.stringValue, documentAttribute.stringValue) && - Objects.equals(this.stringValues, documentAttribute.stringValues) && - Objects.equals(this.numberValue, documentAttribute.numberValue) && - Objects.equals(this.numberValues, documentAttribute.numberValues) && - Objects.equals(this.booleanValue, documentAttribute.booleanValue) && - Objects.equals(this.insertedDate, documentAttribute.insertedDate) && - Objects.equals(this.userId, documentAttribute.userId) && - Objects.equals(this.valueType, documentAttribute.valueType); + return Objects.equals(this.key, documentAttribute.key) + && Objects.equals(this.stringValue, documentAttribute.stringValue) + && Objects.equals(this.stringValues, documentAttribute.stringValues) + && Objects.equals(this.numberValue, documentAttribute.numberValue) + && Objects.equals(this.numberValues, documentAttribute.numberValues) + && Objects.equals(this.booleanValue, documentAttribute.booleanValue) + && Objects.equals(this.insertedDate, documentAttribute.insertedDate) + && Objects.equals(this.userId, documentAttribute.userId) + && Objects.equals(this.valueType, documentAttribute.valueType); } @Override public int hashCode() { - return Objects.hash(key, stringValue, stringValues, numberValue, numberValues, booleanValue, insertedDate, userId, valueType); + return Objects.hash(key, stringValue, stringValues, numberValue, numberValues, booleanValue, + insertedDate, userId, valueType); } @Override @@ -335,8 +353,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -351,7 +368,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", "numberValue", "numberValues", "booleanValue", "insertedDate", "userId", "valueType")); + openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", + "numberValue", "numberValues", "booleanValue", "insertedDate", "userId", "valueType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -364,72 +382,95 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentAttribute is not found in the empty JSON string", DocumentAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentAttribute is not found in the empty JSON string", + DocumentAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - // validate the optional field `valueType` - if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { - AttributeValueType.validateJsonElement(jsonObj.get("valueType")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) + && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stringValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() + && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValues` to be an array in the JSON string but got `%s`", + jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() + && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberValues` to be an array in the JSON string but got `%s`", + jsonObj.get("numberValues").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + // validate the optional field `valueType` + if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { + AttributeValueType.validateJsonElement(jsonObj.get("valueType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentConfig.java b/src/main/java/com/formkiq/client/model/DocumentConfig.java new file mode 100644 index 000000000..4a1e21d25 --- /dev/null +++ b/src/main/java/com/formkiq/client/model/DocumentConfig.java @@ -0,0 +1,223 @@ +/* + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ + + +package com.formkiq.client.model; + +import java.util.Objects; +import java.util.Locale; +import com.formkiq.client.model.DocumentConfigContentTypes; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.formkiq.client.invoker.JSON; + +/** + * DocumentConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") +public class DocumentConfig { + public static final String SERIALIZED_NAME_CONTENT_TYPES = "contentTypes"; + @SerializedName(SERIALIZED_NAME_CONTENT_TYPES) + @javax.annotation.Nullable + private DocumentConfigContentTypes contentTypes; + + public DocumentConfig() {} + + public DocumentConfig contentTypes( + @javax.annotation.Nullable DocumentConfigContentTypes contentTypes) { + this.contentTypes = contentTypes; + return this; + } + + /** + * Get contentTypes + * + * @return contentTypes + */ + @javax.annotation.Nullable + public DocumentConfigContentTypes getContentTypes() { + return contentTypes; + } + + public void setContentTypes(@javax.annotation.Nullable DocumentConfigContentTypes contentTypes) { + this.contentTypes = contentTypes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DocumentConfig documentConfig = (DocumentConfig) o; + return Objects.equals(this.contentTypes, documentConfig.contentTypes); + } + + @Override + public int hashCode() { + return Objects.hash(contentTypes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DocumentConfig {\n"); + sb.append(" contentTypes: ").append(toIndentedString(contentTypes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("contentTypes")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DocumentConfig + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DocumentConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentConfig is not found in the empty JSON string", + DocumentConfig.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentConfig` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `contentTypes` + if (jsonObj.get("contentTypes") != null && !jsonObj.get("contentTypes").isJsonNull()) { + DocumentConfigContentTypes.validateJsonElement(jsonObj.get("contentTypes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DocumentConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentConfig read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of DocumentConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of DocumentConfig + * @throws IOException if the JSON string is invalid with respect to DocumentConfig + */ + public static DocumentConfig fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DocumentConfig.class); + } + + /** + * Convert an instance of DocumentConfig to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java b/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java new file mode 100644 index 000000000..2492e3cc5 --- /dev/null +++ b/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java @@ -0,0 +1,276 @@ +/* + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ + + +package com.formkiq.client.model; + +import java.util.Objects; +import java.util.Locale; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.Locale; + +import com.formkiq.client.invoker.JSON; + +/** + * DocumentConfigContentTypes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") +public class DocumentConfigContentTypes { + public static final String SERIALIZED_NAME_ALLOWLIST = "allowlist"; + @SerializedName(SERIALIZED_NAME_ALLOWLIST) + @javax.annotation.Nullable + private List allowlist = new ArrayList<>(); + + public static final String SERIALIZED_NAME_DENYLIST = "denylist"; + @SerializedName(SERIALIZED_NAME_DENYLIST) + @javax.annotation.Nullable + private List denylist = new ArrayList<>(); + + public DocumentConfigContentTypes() {} + + public DocumentConfigContentTypes allowlist(@javax.annotation.Nullable List allowlist) { + this.allowlist = allowlist; + return this; + } + + public DocumentConfigContentTypes addAllowlistItem(String allowlistItem) { + if (this.allowlist == null) { + this.allowlist = new ArrayList<>(); + } + this.allowlist.add(allowlistItem); + return this; + } + + /** + * Get allowlist + * + * @return allowlist + */ + @javax.annotation.Nullable + public List getAllowlist() { + return allowlist; + } + + public void setAllowlist(@javax.annotation.Nullable List allowlist) { + this.allowlist = allowlist; + } + + + public DocumentConfigContentTypes denylist(@javax.annotation.Nullable List denylist) { + this.denylist = denylist; + return this; + } + + public DocumentConfigContentTypes addDenylistItem(String denylistItem) { + if (this.denylist == null) { + this.denylist = new ArrayList<>(); + } + this.denylist.add(denylistItem); + return this; + } + + /** + * Get denylist + * + * @return denylist + */ + @javax.annotation.Nullable + public List getDenylist() { + return denylist; + } + + public void setDenylist(@javax.annotation.Nullable List denylist) { + this.denylist = denylist; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DocumentConfigContentTypes documentConfigContentTypes = (DocumentConfigContentTypes) o; + return Objects.equals(this.allowlist, documentConfigContentTypes.allowlist) + && Objects.equals(this.denylist, documentConfigContentTypes.denylist); + } + + @Override + public int hashCode() { + return Objects.hash(allowlist, denylist); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DocumentConfigContentTypes {\n"); + sb.append(" allowlist: ").append(toIndentedString(allowlist)).append("\n"); + sb.append(" denylist: ").append(toIndentedString(denylist)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("allowlist", "denylist")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DocumentConfigContentTypes + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DocumentConfigContentTypes.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentConfigContentTypes is not found in the empty JSON string", + DocumentConfigContentTypes.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentConfigContentTypes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentConfigContentTypes` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("allowlist") != null && !jsonObj.get("allowlist").isJsonNull() + && !jsonObj.get("allowlist").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `allowlist` to be an array in the JSON string but got `%s`", + jsonObj.get("allowlist").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("denylist") != null && !jsonObj.get("denylist").isJsonNull() + && !jsonObj.get("denylist").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `denylist` to be an array in the JSON string but got `%s`", + jsonObj.get("denylist").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DocumentConfigContentTypes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentConfigContentTypes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentConfigContentTypes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentConfigContentTypes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentConfigContentTypes read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of DocumentConfigContentTypes given an JSON string + * + * @param jsonString JSON string + * @return An instance of DocumentConfigContentTypes + * @throws IOException if the JSON string is invalid with respect to DocumentConfigContentTypes + */ + public static DocumentConfigContentTypes fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DocumentConfigContentTypes.class); + } + + /** + * Convert an instance of DocumentConfigContentTypes to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java b/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java index fec6ee373..362373faf 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * DocumentFulltextAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentFulltextAttribute { public static final String SERIALIZED_NAME_EQ = "eq"; @SerializedName(SERIALIZED_NAME_EQ) @@ -70,8 +79,7 @@ public class DocumentFulltextAttribute { @javax.annotation.Nonnull private String key; - public DocumentFulltextAttribute() { - } + public DocumentFulltextAttribute() {} public DocumentFulltextAttribute eq(@javax.annotation.Nullable DocumentFulltextAttributeEq eq) { this.eq = eq; @@ -80,6 +88,7 @@ public DocumentFulltextAttribute eq(@javax.annotation.Nullable DocumentFulltextA /** * Get eq + * * @return eq */ @javax.annotation.Nullable @@ -92,7 +101,8 @@ public void setEq(@javax.annotation.Nullable DocumentFulltextAttributeEq eq) { } - public DocumentFulltextAttribute eqOr(@javax.annotation.Nullable List eqOr) { + public DocumentFulltextAttribute eqOr( + @javax.annotation.Nullable List eqOr) { this.eqOr = eqOr; return this; } @@ -107,6 +117,7 @@ public DocumentFulltextAttribute addEqOrItem(DocumentFulltextAttributeEq eqOrIte /** * Searches for ANY strings that eq + * * @return eqOr */ @javax.annotation.Nullable @@ -126,6 +137,7 @@ public DocumentFulltextAttribute key(@javax.annotation.Nonnull String key) { /** * Tag key to search + * * @return key */ @javax.annotation.Nonnull @@ -148,9 +160,9 @@ public boolean equals(Object o) { return false; } DocumentFulltextAttribute documentFulltextAttribute = (DocumentFulltextAttribute) o; - return Objects.equals(this.eq, documentFulltextAttribute.eq) && - Objects.equals(this.eqOr, documentFulltextAttribute.eqOr) && - Objects.equals(this.key, documentFulltextAttribute.key); + return Objects.equals(this.eq, documentFulltextAttribute.eq) + && Objects.equals(this.eqOr, documentFulltextAttribute.eqOr) + && Objects.equals(this.key, documentFulltextAttribute.key); } @Override @@ -170,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,76 +210,87 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextAttribute is not found in the empty JSON string", DocumentFulltextAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentFulltextAttribute.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentFulltextAttribute is not found in the empty JSON string", + DocumentFulltextAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentFulltextAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentFulltextAttribute.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `eq` - if (jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) { - DocumentFulltextAttributeEq.validateJsonElement(jsonObj.get("eq")); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentFulltextAttribute.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull()) { - JsonArray jsonArrayeqOr = jsonObj.getAsJsonArray("eqOr"); - if (jsonArrayeqOr != null) { - // ensure the json data is an array - if (!jsonObj.get("eqOr").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eqOr` to be an array in the JSON string but got `%s`", jsonObj.get("eqOr").toString())); - } - - // validate the optional field `eqOr` (array) - for (int i = 0; i < jsonArrayeqOr.size(); i++) { - DocumentFulltextAttributeEq.validateJsonElement(jsonArrayeqOr.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `eq` + if (jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) { + DocumentFulltextAttributeEq.validateJsonElement(jsonObj.get("eq")); + } + if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull()) { + JsonArray jsonArrayeqOr = jsonObj.getAsJsonArray("eqOr"); + if (jsonArrayeqOr != null) { + // ensure the json data is an array + if (!jsonObj.get("eqOr").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eqOr` to be an array in the JSON string but got `%s`", + jsonObj.get("eqOr").toString())); } + + // validate the optional field `eqOr` (array) + for (int i = 0; i < jsonArrayeqOr.size(); i++) { + DocumentFulltextAttributeEq.validateJsonElement(jsonArrayeqOr.get(i)); + } ; } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java b/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java index 4ea9f2ebc..110d76d44 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * DocumentFulltextAttributeEq */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentFulltextAttributeEq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; @SerializedName(SERIALIZED_NAME_STRING_VALUE) @@ -68,8 +77,7 @@ public class DocumentFulltextAttributeEq { @javax.annotation.Nullable private Boolean booleanValue; - public DocumentFulltextAttributeEq() { - } + public DocumentFulltextAttributeEq() {} public DocumentFulltextAttributeEq stringValue(@javax.annotation.Nullable String stringValue) { this.stringValue = stringValue; @@ -78,6 +86,7 @@ public DocumentFulltextAttributeEq stringValue(@javax.annotation.Nullable String /** * Search for string value + * * @return stringValue */ @javax.annotation.Nullable @@ -90,13 +99,15 @@ public void setStringValue(@javax.annotation.Nullable String stringValue) { } - public DocumentFulltextAttributeEq numberValue(@javax.annotation.Nullable BigDecimal numberValue) { + public DocumentFulltextAttributeEq numberValue( + @javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; return this; } /** * Search for number value + * * @return numberValue */ @javax.annotation.Nullable @@ -116,6 +127,7 @@ public DocumentFulltextAttributeEq booleanValue(@javax.annotation.Nullable Boole /** * Search for boolean value + * * @return booleanValue */ @javax.annotation.Nullable @@ -138,9 +150,9 @@ public boolean equals(Object o) { return false; } DocumentFulltextAttributeEq documentFulltextAttributeEq = (DocumentFulltextAttributeEq) o; - return Objects.equals(this.stringValue, documentFulltextAttributeEq.stringValue) && - Objects.equals(this.numberValue, documentFulltextAttributeEq.numberValue) && - Objects.equals(this.booleanValue, documentFulltextAttributeEq.booleanValue); + return Objects.equals(this.stringValue, documentFulltextAttributeEq.stringValue) + && Objects.equals(this.numberValue, documentFulltextAttributeEq.numberValue) + && Objects.equals(this.booleanValue, documentFulltextAttributeEq.booleanValue); } @Override @@ -160,8 +172,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -176,7 +187,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("stringValue", "numberValue", "booleanValue")); + openapiFields = + new HashSet(Arrays.asList("stringValue", "numberValue", "booleanValue")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -189,51 +201,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextAttributeEq */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextAttributeEq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextAttributeEq is not found in the empty JSON string", DocumentFulltextAttributeEq.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentFulltextAttributeEq.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentFulltextAttributeEq is not found in the empty JSON string", + DocumentFulltextAttributeEq.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextAttributeEq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextAttributeEq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextAttributeEq.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentFulltextAttributeEq` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) + && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stringValue").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextAttributeEq.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextAttributeEq' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextAttributeEq.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextAttributeEq value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextAttributeEq read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextAttributeEq.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextAttributeEq' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextAttributeEq.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextAttributeEq value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextAttributeEq read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java index bd9524802..a055837ea 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * Document full text search */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentFulltextRequest { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) @@ -64,8 +73,7 @@ public class DocumentFulltextRequest { @javax.annotation.Nullable private SearchResponseFields responseFields; - public DocumentFulltextRequest() { - } + public DocumentFulltextRequest() {} public DocumentFulltextRequest query(@javax.annotation.Nonnull DocumentFulltextSearch query) { this.query = query; @@ -74,6 +82,7 @@ public DocumentFulltextRequest query(@javax.annotation.Nonnull DocumentFulltextS /** * Get query + * * @return query */ @javax.annotation.Nonnull @@ -86,13 +95,15 @@ public void setQuery(@javax.annotation.Nonnull DocumentFulltextSearch query) { } - public DocumentFulltextRequest responseFields(@javax.annotation.Nullable SearchResponseFields responseFields) { + public DocumentFulltextRequest responseFields( + @javax.annotation.Nullable SearchResponseFields responseFields) { this.responseFields = responseFields; return this; } /** * Get responseFields + * * @return responseFields */ @javax.annotation.Nullable @@ -115,8 +126,8 @@ public boolean equals(Object o) { return false; } DocumentFulltextRequest documentFulltextRequest = (DocumentFulltextRequest) o; - return Objects.equals(this.query, documentFulltextRequest.query) && - Objects.equals(this.responseFields, documentFulltextRequest.responseFields); + return Objects.equals(this.query, documentFulltextRequest.query) + && Objects.equals(this.responseFields, documentFulltextRequest.responseFields); } @Override @@ -135,8 +146,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -164,61 +174,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextRequest is not found in the empty JSON string", DocumentFulltextRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentFulltextRequest is not found in the empty JSON string", + DocumentFulltextRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentFulltextRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentFulltextRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `query` - DocumentFulltextSearch.validateJsonElement(jsonObj.get("query")); - // validate the optional field `responseFields` - if (jsonObj.get("responseFields") != null && !jsonObj.get("responseFields").isJsonNull()) { - SearchResponseFields.validateJsonElement(jsonObj.get("responseFields")); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentFulltextRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `query` + DocumentFulltextSearch.validateJsonElement(jsonObj.get("query")); + // validate the optional field `responseFields` + if (jsonObj.get("responseFields") != null && !jsonObj.get("responseFields").isJsonNull()) { + SearchResponseFields.validateJsonElement(jsonObj.get("responseFields")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java index 4355840b3..f27c4b839 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * DocumentFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentFulltextResponse { public static final String SERIALIZED_NAME_DOCUMENTS = "documents"; @SerializedName(SERIALIZED_NAME_DOCUMENTS) @javax.annotation.Nullable private List documents = new ArrayList<>(); - public DocumentFulltextResponse() { - } + public DocumentFulltextResponse() {} - public DocumentFulltextResponse documents(@javax.annotation.Nullable List documents) { + public DocumentFulltextResponse documents( + @javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -78,6 +87,7 @@ public DocumentFulltextResponse addDocumentsItem(FulltextSearchItem documentsIte /** * List of search result documents + * * @return documents */ @javax.annotation.Nullable @@ -118,8 +128,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +156,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextResponse is not found in the empty JSON string", DocumentFulltextResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentFulltextResponse is not found in the empty JSON string", + DocumentFulltextResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentFulltextResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - FulltextSearchItem.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + FulltextSearchItem.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java b/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java index 9634fecc0..1bd999523 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * Document full text search criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentFulltextSearch { public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) @@ -76,8 +85,7 @@ public class DocumentFulltextSearch { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public DocumentFulltextSearch() { - } + public DocumentFulltextSearch() {} public DocumentFulltextSearch page(@javax.annotation.Nullable Integer page) { this.page = page; @@ -86,6 +94,7 @@ public DocumentFulltextSearch page(@javax.annotation.Nullable Integer page) { /** * Result page to return (starting at 1) + * * @return page */ @javax.annotation.Nullable @@ -105,6 +114,7 @@ public DocumentFulltextSearch text(@javax.annotation.Nullable String text) { /** * Full text search + * * @return text */ @javax.annotation.Nullable @@ -132,6 +142,7 @@ public DocumentFulltextSearch addTagsItem(DocumentFulltextTag tagsItem) { /** * List of search tags + * * @return tags */ @javax.annotation.Nullable @@ -144,7 +155,8 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public DocumentFulltextSearch attributes(@javax.annotation.Nullable List attributes) { + public DocumentFulltextSearch attributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -159,6 +171,7 @@ public DocumentFulltextSearch addAttributesItem(DocumentFulltextAttribute attrib /** * List of search attributes + * * @return attributes */ @javax.annotation.Nullable @@ -181,10 +194,10 @@ public boolean equals(Object o) { return false; } DocumentFulltextSearch documentFulltextSearch = (DocumentFulltextSearch) o; - return Objects.equals(this.page, documentFulltextSearch.page) && - Objects.equals(this.text, documentFulltextSearch.text) && - Objects.equals(this.tags, documentFulltextSearch.tags) && - Objects.equals(this.attributes, documentFulltextSearch.attributes); + return Objects.equals(this.page, documentFulltextSearch.page) + && Objects.equals(this.text, documentFulltextSearch.text) + && Objects.equals(this.tags, documentFulltextSearch.tags) + && Objects.equals(this.attributes, documentFulltextSearch.attributes); } @Override @@ -205,8 +218,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -234,79 +246,91 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextSearch */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextSearch is not found in the empty JSON string", DocumentFulltextSearch.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentFulltextSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentFulltextSearch is not found in the empty JSON string", + DocumentFulltextSearch.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextSearch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextSearch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextSearch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentFulltextSearch` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) && !jsonObj.get("text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - DocumentFulltextTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) + && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `text` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("text").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + DocumentFulltextTag.validateJsonElement(jsonArraytags.get(i)); + } ; } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - DocumentFulltextAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + DocumentFulltextAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextSearch.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextSearch' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextSearch.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextSearch value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextSearch read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextSearch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextSearch' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextSearch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextSearch value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextSearch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java b/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java index 4002e2b32..0d810cb14 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * DocumentFulltextTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentFulltextTag { public static final String SERIALIZED_NAME_EQ = "eq"; @SerializedName(SERIALIZED_NAME_EQ) @@ -69,8 +78,7 @@ public class DocumentFulltextTag { @javax.annotation.Nonnull private String key; - public DocumentFulltextTag() { - } + public DocumentFulltextTag() {} public DocumentFulltextTag eq(@javax.annotation.Nullable String eq) { this.eq = eq; @@ -79,6 +87,7 @@ public DocumentFulltextTag eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq + * * @return eq */ @javax.annotation.Nullable @@ -106,6 +115,7 @@ public DocumentFulltextTag addEqOrItem(String eqOrItem) { /** * Searches for ANY strings that eq + * * @return eqOr */ @javax.annotation.Nullable @@ -125,6 +135,7 @@ public DocumentFulltextTag key(@javax.annotation.Nonnull String key) { /** * Tag key to search + * * @return key */ @javax.annotation.Nonnull @@ -147,9 +158,9 @@ public boolean equals(Object o) { return false; } DocumentFulltextTag documentFulltextTag = (DocumentFulltextTag) o; - return Objects.equals(this.eq, documentFulltextTag.eq) && - Objects.equals(this.eqOr, documentFulltextTag.eqOr) && - Objects.equals(this.key, documentFulltextTag.key); + return Objects.equals(this.eq, documentFulltextTag.eq) + && Objects.equals(this.eqOr, documentFulltextTag.eqOr) + && Objects.equals(this.key, documentFulltextTag.key); } @Override @@ -169,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,65 +208,80 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentFulltextTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentFulltextTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentFulltextTag is not found in the empty JSON string", DocumentFulltextTag.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentFulltextTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentFulltextTag is not found in the empty JSON string", + DocumentFulltextTag.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentFulltextTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentFulltextTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentFulltextTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentFulltextTag` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentFulltextTag.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() && !jsonObj.get("eqOr").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eqOr` to be an array in the JSON string but got `%s`", jsonObj.get("eqOr").toString())); - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentFulltextTag.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) + && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("eq").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() + && !jsonObj.get("eqOr").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eqOr` to be an array in the JSON string but got `%s`", + jsonObj.get("eqOr").toString())); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentFulltextTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentFulltextTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentFulltextTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentFulltextTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentFulltextTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentFulltextTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentFulltextTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentFulltextTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentFulltextTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java b/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java index 976b7051d..1c12727ba 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * DocumentGenerateDataSource */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentGenerateDataSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,8 +76,7 @@ public class DocumentGenerateDataSource { @javax.annotation.Nullable private String dataRoot = "data"; - public DocumentGenerateDataSource() { - } + public DocumentGenerateDataSource() {} public DocumentGenerateDataSource name(@javax.annotation.Nullable String name) { this.name = name; @@ -77,6 +85,7 @@ public DocumentGenerateDataSource name(@javax.annotation.Nullable String name) { /** * The data source name + * * @return name */ @javax.annotation.Nullable @@ -96,6 +105,7 @@ public DocumentGenerateDataSource documentId(@javax.annotation.Nonnull String do /** * Document Identifier of the data source document + * * @return documentId */ @javax.annotation.Nonnull @@ -115,6 +125,7 @@ public DocumentGenerateDataSource dataRoot(@javax.annotation.Nullable String dat /** * The default JSON object path for the data object + * * @return dataRoot */ @javax.annotation.Nullable @@ -137,9 +148,9 @@ public boolean equals(Object o) { return false; } DocumentGenerateDataSource documentGenerateDataSource = (DocumentGenerateDataSource) o; - return Objects.equals(this.name, documentGenerateDataSource.name) && - Objects.equals(this.documentId, documentGenerateDataSource.documentId) && - Objects.equals(this.dataRoot, documentGenerateDataSource.dataRoot); + return Objects.equals(this.name, documentGenerateDataSource.name) + && Objects.equals(this.documentId, documentGenerateDataSource.documentId) + && Objects.equals(this.dataRoot, documentGenerateDataSource.dataRoot); } @Override @@ -159,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,64 +198,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentGenerateDataSource */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentGenerateDataSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentGenerateDataSource is not found in the empty JSON string", DocumentGenerateDataSource.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentGenerateDataSource.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentGenerateDataSource is not found in the empty JSON string", + DocumentGenerateDataSource.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentGenerateDataSource.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentGenerateDataSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentGenerateDataSource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentGenerateDataSource` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentGenerateDataSource.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("dataRoot") != null && !jsonObj.get("dataRoot").isJsonNull()) && !jsonObj.get("dataRoot").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dataRoot` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dataRoot").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentGenerateDataSource.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("dataRoot") != null && !jsonObj.get("dataRoot").isJsonNull()) + && !jsonObj.get("dataRoot").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dataRoot` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("dataRoot").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentGenerateDataSource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentGenerateDataSource' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentGenerateDataSource.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentGenerateDataSource value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentGenerateDataSource read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentGenerateDataSource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentGenerateDataSource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentGenerateDataSource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentGenerateDataSource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentGenerateDataSource read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java index b98929f33..0c963aff9 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * DocumentGenerateInsertDocument */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentGenerateInsertDocument { public static final String SERIALIZED_NAME_POSITION = "position"; @SerializedName(SERIALIZED_NAME_POSITION) @@ -63,16 +72,17 @@ public class DocumentGenerateInsertDocument { @javax.annotation.Nonnull private String documentId; - public DocumentGenerateInsertDocument() { - } + public DocumentGenerateInsertDocument() {} - public DocumentGenerateInsertDocument position(@javax.annotation.Nonnull DocumentGenerateInsertDocumentPosition position) { + public DocumentGenerateInsertDocument position( + @javax.annotation.Nonnull DocumentGenerateInsertDocumentPosition position) { this.position = position; return this; } /** * Get position + * * @return position */ @javax.annotation.Nonnull @@ -80,7 +90,8 @@ public DocumentGenerateInsertDocumentPosition getPosition() { return position; } - public void setPosition(@javax.annotation.Nonnull DocumentGenerateInsertDocumentPosition position) { + public void setPosition( + @javax.annotation.Nonnull DocumentGenerateInsertDocumentPosition position) { this.position = position; } @@ -92,6 +103,7 @@ public DocumentGenerateInsertDocument documentId(@javax.annotation.Nonnull Strin /** * Document Identifier of the data source document + * * @return documentId */ @javax.annotation.Nonnull @@ -113,9 +125,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DocumentGenerateInsertDocument documentGenerateInsertDocument = (DocumentGenerateInsertDocument) o; - return Objects.equals(this.position, documentGenerateInsertDocument.position) && - Objects.equals(this.documentId, documentGenerateInsertDocument.documentId); + DocumentGenerateInsertDocument documentGenerateInsertDocument = + (DocumentGenerateInsertDocument) o; + return Objects.equals(this.position, documentGenerateInsertDocument.position) + && Objects.equals(this.documentId, documentGenerateInsertDocument.documentId); } @Override @@ -134,8 +147,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -160,63 +172,74 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DocumentGenerateInsertDocument + * @throws IOException if the JSON Element is invalid with respect to + * DocumentGenerateInsertDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentGenerateInsertDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentGenerateInsertDocument is not found in the empty JSON string", DocumentGenerateInsertDocument.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentGenerateInsertDocument.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentGenerateInsertDocument is not found in the empty JSON string", + DocumentGenerateInsertDocument.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentGenerateInsertDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentGenerateInsertDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentGenerateInsertDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentGenerateInsertDocument` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentGenerateInsertDocument.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `position` - DocumentGenerateInsertDocumentPosition.validateJsonElement(jsonObj.get("position")); - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentGenerateInsertDocument.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `position` + DocumentGenerateInsertDocumentPosition.validateJsonElement(jsonObj.get("position")); + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentGenerateInsertDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentGenerateInsertDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentGenerateInsertDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentGenerateInsertDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentGenerateInsertDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentGenerateInsertDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentGenerateInsertDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentGenerateInsertDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentGenerateInsertDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentGenerateInsertDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -225,7 +248,8 @@ public DocumentGenerateInsertDocument read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of DocumentGenerateInsertDocument - * @throws IOException if the JSON string is invalid with respect to DocumentGenerateInsertDocument + * @throws IOException if the JSON string is invalid with respect to + * DocumentGenerateInsertDocument */ public static DocumentGenerateInsertDocument fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DocumentGenerateInsertDocument.class); diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPosition.java b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPosition.java index d97ad9d73..05111e4ab 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPosition.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPosition.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,7 +37,7 @@ */ @JsonAdapter(DocumentGenerateInsertDocumentPosition.Adapter.class) public enum DocumentGenerateInsertDocumentPosition { - + APPEND("APPEND"); private String value; @@ -49,7 +56,8 @@ public String toString() { } public static DocumentGenerateInsertDocumentPosition fromValue(String value) { - for (DocumentGenerateInsertDocumentPosition b : DocumentGenerateInsertDocumentPosition.values()) { + for (DocumentGenerateInsertDocumentPosition b : DocumentGenerateInsertDocumentPosition + .values()) { if (b.value.equals(value)) { return b; } @@ -59,12 +67,14 @@ public static DocumentGenerateInsertDocumentPosition fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentGenerateInsertDocumentPosition enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, + final DocumentGenerateInsertDocumentPosition enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } @Override - public DocumentGenerateInsertDocumentPosition read(final JsonReader jsonReader) throws IOException { + public DocumentGenerateInsertDocumentPosition read(final JsonReader jsonReader) + throws IOException { String value = jsonReader.nextString(); return DocumentGenerateInsertDocumentPosition.fromValue(value); } diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateOutputType.java b/src/main/java/com/formkiq/client/model/DocumentGenerateOutputType.java index d8bea849a..a8b737677 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateOutputType.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateOutputType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(DocumentGenerateOutputType.Adapter.class) public enum DocumentGenerateOutputType { - + DOCX("DOCX"), - + PDF("PDF"); private String value; @@ -61,7 +68,8 @@ public static DocumentGenerateOutputType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentGenerateOutputType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentGenerateOutputType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentId.java b/src/main/java/com/formkiq/client/model/DocumentId.java index a0cacc715..71fbd0d0a 100644 --- a/src/main/java/com/formkiq/client/model/DocumentId.java +++ b/src/main/java/com/formkiq/client/model/DocumentId.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * DocumentId */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentId { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -62,8 +71,7 @@ public class DocumentId { @javax.annotation.Nullable private String siteId; - public DocumentId() { - } + public DocumentId() {} public DocumentId documentId(@javax.annotation.Nonnull String documentId) { this.documentId = documentId; @@ -72,6 +80,7 @@ public DocumentId documentId(@javax.annotation.Nonnull String documentId) { /** * Document Identifier + * * @return documentId */ @javax.annotation.Nonnull @@ -91,6 +100,7 @@ public DocumentId siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } DocumentId documentId = (DocumentId) o; - return Objects.equals(this.documentId, documentId.documentId) && - Objects.equals(this.siteId, documentId.siteId); + return Objects.equals(this.documentId, documentId.documentId) + && Objects.equals(this.siteId, documentId.siteId); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,61 +171,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentId */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentId.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentId is not found in the empty JSON string", DocumentId.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentId.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentId is not found in the empty JSON string", + DocumentId.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentId.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentId` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentId.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentId` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentId.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentId.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentId.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentId' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentId.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentId value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentId read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentId.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentId' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentId.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentId value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentId read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentMetadata.java b/src/main/java/com/formkiq/client/model/DocumentMetadata.java index 9865b9551..71cc4e4d3 100644 --- a/src/main/java/com/formkiq/client/model/DocumentMetadata.java +++ b/src/main/java/com/formkiq/client/model/DocumentMetadata.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * Document Metadata (use either 'value' or 'values' not both) */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentMetadata { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -69,8 +78,7 @@ public class DocumentMetadata { @javax.annotation.Nullable private List values = new ArrayList<>(); - public DocumentMetadata() { - } + public DocumentMetadata() {} public DocumentMetadata key(@javax.annotation.Nullable String key) { this.key = key; @@ -79,6 +87,7 @@ public DocumentMetadata key(@javax.annotation.Nullable String key) { /** * Metadata key + * * @return key */ @javax.annotation.Nullable @@ -98,6 +107,7 @@ public DocumentMetadata value(@javax.annotation.Nullable String value) { /** * Metadata value + * * @return value */ @javax.annotation.Nullable @@ -125,6 +135,7 @@ public DocumentMetadata addValuesItem(String valuesItem) { /** * Metadata values + * * @return values */ @javax.annotation.Nullable @@ -147,9 +158,9 @@ public boolean equals(Object o) { return false; } DocumentMetadata documentMetadata = (DocumentMetadata) o; - return Objects.equals(this.key, documentMetadata.key) && - Objects.equals(this.value, documentMetadata.value) && - Objects.equals(this.values, documentMetadata.values); + return Objects.equals(this.key, documentMetadata.key) + && Objects.equals(this.value, documentMetadata.value) + && Objects.equals(this.values, documentMetadata.values); } @Override @@ -169,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,58 +208,72 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentMetadata */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentMetadata is not found in the empty JSON string", DocumentMetadata.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentMetadata is not found in the empty JSON string", + DocumentMetadata.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentMetadata.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentMetadata` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentMetadata.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentMetadata` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() + && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `values` to be an array in the JSON string but got `%s`", + jsonObj.get("values").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentMetadata.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentMetadata' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentMetadata.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentMetadata value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentMetadata read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentMetadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentMetadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentMetadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentMetadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentMetadata read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentRelationshipType.java b/src/main/java/com/formkiq/client/model/DocumentRelationshipType.java index b35bb9c4f..981170d0a 100644 --- a/src/main/java/com/formkiq/client/model/DocumentRelationshipType.java +++ b/src/main/java/com/formkiq/client/model/DocumentRelationshipType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,17 +37,17 @@ */ @JsonAdapter(DocumentRelationshipType.Adapter.class) public enum DocumentRelationshipType { - + PRIMARY("PRIMARY"), - + ATTACHMENT("ATTACHMENT"), - + APPENDIX("APPENDIX"), - + SUPPLEMENT("SUPPLEMENT"), - + ASSOCIATED("ASSOCIATED"), - + RENDITION("RENDITION"); private String value; @@ -69,7 +76,8 @@ public static DocumentRelationshipType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentRelationshipType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentRelationshipType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearch.java b/src/main/java/com/formkiq/client/model/DocumentSearch.java index 8caffb12c..63b800912 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearch.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearch.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -56,7 +63,9 @@ /** * Document tag search criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSearch { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -93,8 +102,7 @@ public class DocumentSearch { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public DocumentSearch() { - } + public DocumentSearch() {} public DocumentSearch text(@javax.annotation.Nullable String text) { this.text = text; @@ -103,6 +111,7 @@ public DocumentSearch text(@javax.annotation.Nullable String text) { /** * Full text search + * * @return text */ @javax.annotation.Nullable @@ -122,6 +131,7 @@ public DocumentSearch meta(@javax.annotation.Nullable DocumentSearchMeta meta) { /** * Get meta + * * @return meta */ @javax.annotation.Nullable @@ -141,6 +151,7 @@ public DocumentSearch attribute(@javax.annotation.Nullable DocumentSearchAttribu /** * Get attribute + * * @return attribute */ @javax.annotation.Nullable @@ -153,7 +164,8 @@ public void setAttribute(@javax.annotation.Nullable DocumentSearchAttribute attr } - public DocumentSearch attributes(@javax.annotation.Nullable List attributes) { + public DocumentSearch attributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -168,6 +180,7 @@ public DocumentSearch addAttributesItem(DocumentSearchAttribute attributesItem) /** * List of Composite Key attributes to filter search results on + * * @return attributes */ @javax.annotation.Nullable @@ -187,6 +200,7 @@ public DocumentSearch tag(@javax.annotation.Nullable DocumentSearchTag tag) { /** * Get tag + * * @return tag */ @javax.annotation.Nullable @@ -214,6 +228,7 @@ public DocumentSearch addTagsItem(DocumentSearchTags tagsItem) { /** * List of Composite Key tags to filter search results on + * * @return tags */ @javax.annotation.Nullable @@ -241,6 +256,7 @@ public DocumentSearch addDocumentIdsItem(String documentIdsItem) { /** * List of DocumentIds to filter search results on + * * @return documentIds */ @javax.annotation.Nullable @@ -263,13 +279,13 @@ public boolean equals(Object o) { return false; } DocumentSearch documentSearch = (DocumentSearch) o; - return Objects.equals(this.text, documentSearch.text) && - Objects.equals(this.meta, documentSearch.meta) && - Objects.equals(this.attribute, documentSearch.attribute) && - Objects.equals(this.attributes, documentSearch.attributes) && - Objects.equals(this.tag, documentSearch.tag) && - Objects.equals(this.tags, documentSearch.tags) && - Objects.equals(this.documentIds, documentSearch.documentIds); + return Objects.equals(this.text, documentSearch.text) + && Objects.equals(this.meta, documentSearch.meta) + && Objects.equals(this.attribute, documentSearch.attribute) + && Objects.equals(this.attributes, documentSearch.attributes) + && Objects.equals(this.tag, documentSearch.tag) + && Objects.equals(this.tags, documentSearch.tags) + && Objects.equals(this.documentIds, documentSearch.documentIds); } @Override @@ -293,8 +309,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -309,7 +324,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("text", "meta", "attribute", "attributes", "tag", "tags", "documentIds")); + openapiFields = new HashSet( + Arrays.asList("text", "meta", "attribute", "attributes", "tag", "tags", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -322,95 +338,110 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearch */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearch is not found in the empty JSON string", DocumentSearch.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSearch is not found in the empty JSON string", + DocumentSearch.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) && !jsonObj.get("text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); - } - // validate the optional field `meta` - if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { - DocumentSearchMeta.validateJsonElement(jsonObj.get("meta")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSearch` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - // validate the optional field `attribute` - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { - DocumentSearchAttribute.validateJsonElement(jsonObj.get("attribute")); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - DocumentSearchAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) + && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `text` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("text").toString())); + } + // validate the optional field `meta` + if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { + DocumentSearchMeta.validateJsonElement(jsonObj.get("meta")); + } + // validate the optional field `attribute` + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { + DocumentSearchAttribute.validateJsonElement(jsonObj.get("attribute")); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + DocumentSearchAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } - // validate the optional field `tag` - if (jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) { - DocumentSearchTag.validateJsonElement(jsonObj.get("tag")); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - DocumentSearchTags.validateJsonElement(jsonArraytags.get(i)); - }; + } + // validate the optional field `tag` + if (jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) { + DocumentSearchTag.validateJsonElement(jsonObj.get("tag")); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + DocumentSearchTags.validateJsonElement(jsonArraytags.get(i)); + } ; } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); - } + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() + && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentIds` to be an array in the JSON string but got `%s`", + jsonObj.get("documentIds").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearch.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearch' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearch.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearch value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearch read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearch' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSearch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearch value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java b/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java index aff26c581..1bd55cf4a 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * DocumentSearchAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSearchAttribute { public static final String SERIALIZED_NAME_EQ = "eq"; @SerializedName(SERIALIZED_NAME_EQ) @@ -80,8 +89,7 @@ public class DocumentSearchAttribute { @javax.annotation.Nonnull private String key; - public DocumentSearchAttribute() { - } + public DocumentSearchAttribute() {} public DocumentSearchAttribute eq(@javax.annotation.Nullable String eq) { this.eq = eq; @@ -90,6 +98,7 @@ public DocumentSearchAttribute eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq + * * @return eq */ @javax.annotation.Nullable @@ -117,6 +126,7 @@ public DocumentSearchAttribute addEqOrItem(String eqOrItem) { /** * Searches for ANY strings that eq + * * @return eqOr */ @javax.annotation.Nullable @@ -136,6 +146,7 @@ public DocumentSearchAttribute beginsWith(@javax.annotation.Nullable String begi /** * Searches for strings that begin with + * * @return beginsWith */ @javax.annotation.Nullable @@ -155,6 +166,7 @@ public DocumentSearchAttribute range(@javax.annotation.Nullable DocumentSearchRa /** * Get range + * * @return range */ @javax.annotation.Nullable @@ -174,6 +186,7 @@ public DocumentSearchAttribute key(@javax.annotation.Nonnull String key) { /** * Attribute key to search + * * @return key */ @javax.annotation.Nonnull @@ -196,11 +209,11 @@ public boolean equals(Object o) { return false; } DocumentSearchAttribute documentSearchAttribute = (DocumentSearchAttribute) o; - return Objects.equals(this.eq, documentSearchAttribute.eq) && - Objects.equals(this.eqOr, documentSearchAttribute.eqOr) && - Objects.equals(this.beginsWith, documentSearchAttribute.beginsWith) && - Objects.equals(this.range, documentSearchAttribute.range) && - Objects.equals(this.key, documentSearchAttribute.key); + return Objects.equals(this.eq, documentSearchAttribute.eq) + && Objects.equals(this.eqOr, documentSearchAttribute.eqOr) + && Objects.equals(this.beginsWith, documentSearchAttribute.beginsWith) + && Objects.equals(this.range, documentSearchAttribute.range) + && Objects.equals(this.key, documentSearchAttribute.key); } @Override @@ -222,8 +235,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -251,72 +263,90 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchAttribute is not found in the empty JSON string", DocumentSearchAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSearchAttribute.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSearchAttribute is not found in the empty JSON string", + DocumentSearchAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSearchAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentSearchAttribute.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() && !jsonObj.get("eqOr").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eqOr` to be an array in the JSON string but got `%s`", jsonObj.get("eqOr").toString())); - } - if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) && !jsonObj.get("beginsWith").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", jsonObj.get("beginsWith").toString())); - } - // validate the optional field `range` - if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { - DocumentSearchRange.validateJsonElement(jsonObj.get("range")); - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentSearchAttribute.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) + && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("eq").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() + && !jsonObj.get("eqOr").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eqOr` to be an array in the JSON string but got `%s`", + jsonObj.get("eqOr").toString())); + } + if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) + && !jsonObj.get("beginsWith").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("beginsWith").toString())); + } + // validate the optional field `range` + if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { + DocumentSearchRange.validateJsonElement(jsonObj.get("range")); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java b/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java index 2f854cf37..8396b0976 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * DocumentSearchMatchAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSearchMatchAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -73,8 +82,7 @@ public class DocumentSearchMatchAttribute { @javax.annotation.Nullable private Boolean booleanValue; - public DocumentSearchMatchAttribute() { - } + public DocumentSearchMatchAttribute() {} public DocumentSearchMatchAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -83,6 +91,7 @@ public DocumentSearchMatchAttribute key(@javax.annotation.Nullable String key) { /** * Tag key + * * @return key */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public DocumentSearchMatchAttribute stringValue(@javax.annotation.Nullable Strin /** * Attribute with string value + * * @return stringValue */ @javax.annotation.Nullable @@ -114,13 +124,15 @@ public void setStringValue(@javax.annotation.Nullable String stringValue) { } - public DocumentSearchMatchAttribute numberValue(@javax.annotation.Nullable BigDecimal numberValue) { + public DocumentSearchMatchAttribute numberValue( + @javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; return this; } /** * Attribute with number value + * * @return numberValue */ @javax.annotation.Nullable @@ -133,13 +145,15 @@ public void setNumberValue(@javax.annotation.Nullable BigDecimal numberValue) { } - public DocumentSearchMatchAttribute booleanValue(@javax.annotation.Nullable Boolean booleanValue) { + public DocumentSearchMatchAttribute booleanValue( + @javax.annotation.Nullable Boolean booleanValue) { this.booleanValue = booleanValue; return this; } /** * Attribute with boolean value + * * @return booleanValue */ @javax.annotation.Nullable @@ -162,10 +176,10 @@ public boolean equals(Object o) { return false; } DocumentSearchMatchAttribute documentSearchMatchAttribute = (DocumentSearchMatchAttribute) o; - return Objects.equals(this.key, documentSearchMatchAttribute.key) && - Objects.equals(this.stringValue, documentSearchMatchAttribute.stringValue) && - Objects.equals(this.numberValue, documentSearchMatchAttribute.numberValue) && - Objects.equals(this.booleanValue, documentSearchMatchAttribute.booleanValue); + return Objects.equals(this.key, documentSearchMatchAttribute.key) + && Objects.equals(this.stringValue, documentSearchMatchAttribute.stringValue) + && Objects.equals(this.numberValue, documentSearchMatchAttribute.numberValue) + && Objects.equals(this.booleanValue, documentSearchMatchAttribute.booleanValue); } @Override @@ -186,8 +200,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -202,7 +215,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "stringValue", "numberValue", "booleanValue")); + openapiFields = + new HashSet(Arrays.asList("key", "stringValue", "numberValue", "booleanValue")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -215,54 +229,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchMatchAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchMatchAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchMatchAttribute is not found in the empty JSON string", DocumentSearchMatchAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSearchMatchAttribute.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSearchMatchAttribute is not found in the empty JSON string", + DocumentSearchMatchAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchMatchAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchMatchAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchMatchAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSearchMatchAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) + && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stringValue").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchMatchAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchMatchAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMatchAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchMatchAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchMatchAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchMatchAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchMatchAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMatchAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchMatchAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchMatchAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java b/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java index e2cca1f9e..7df7acab7 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * DocumentSearchMatchTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSearchMatchTag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -67,8 +76,7 @@ public class DocumentSearchMatchTag { @javax.annotation.Nullable private String type; - public DocumentSearchMatchTag() { - } + public DocumentSearchMatchTag() {} public DocumentSearchMatchTag key(@javax.annotation.Nullable String key) { this.key = key; @@ -77,6 +85,7 @@ public DocumentSearchMatchTag key(@javax.annotation.Nullable String key) { /** * Tag key + * * @return key */ @javax.annotation.Nullable @@ -96,6 +105,7 @@ public DocumentSearchMatchTag value(@javax.annotation.Nullable String value) { /** * Tag value + * * @return value */ @javax.annotation.Nullable @@ -115,6 +125,7 @@ public DocumentSearchMatchTag type(@javax.annotation.Nullable String type) { /** * Tag type + * * @return type */ @javax.annotation.Nullable @@ -137,9 +148,9 @@ public boolean equals(Object o) { return false; } DocumentSearchMatchTag documentSearchMatchTag = (DocumentSearchMatchTag) o; - return Objects.equals(this.key, documentSearchMatchTag.key) && - Objects.equals(this.value, documentSearchMatchTag.value) && - Objects.equals(this.type, documentSearchMatchTag.type); + return Objects.equals(this.key, documentSearchMatchTag.key) + && Objects.equals(this.value, documentSearchMatchTag.value) + && Objects.equals(this.type, documentSearchMatchTag.type); } @Override @@ -159,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,57 +198,71 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchMatchTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchMatchTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchMatchTag is not found in the empty JSON string", DocumentSearchMatchTag.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSearchMatchTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSearchMatchTag is not found in the empty JSON string", + DocumentSearchMatchTag.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchMatchTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchMatchTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchMatchTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSearchMatchTag` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) + && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `type` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("type").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchMatchTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchMatchTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMatchTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchMatchTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchMatchTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchMatchTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchMatchTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMatchTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchMatchTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchMatchTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java b/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java index 3fe936858..246c7323e 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * DocumentSearchMeta */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSearchMeta { public static final String SERIALIZED_NAME_FOLDER = "folder"; @SerializedName(SERIALIZED_NAME_FOLDER) @@ -100,13 +109,14 @@ public static IndexTypeEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final IndexTypeEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final IndexTypeEnum enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public IndexTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return IndexTypeEnum.fromValue(value); } } @@ -127,8 +137,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private String indexFilterBeginsWith; - public DocumentSearchMeta() { - } + public DocumentSearchMeta() {} public DocumentSearchMeta folder(@javax.annotation.Nullable String folder) { this.folder = folder; @@ -137,6 +146,7 @@ public DocumentSearchMeta folder(@javax.annotation.Nullable String folder) { /** * Searches for a folder + * * @return folder */ @javax.annotation.Nullable @@ -156,6 +166,7 @@ public DocumentSearchMeta path(@javax.annotation.Nullable String path) { /** * Searches for a Path of document + * * @return path */ @javax.annotation.Nullable @@ -175,6 +186,7 @@ public DocumentSearchMeta eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq + * * @return eq */ @javax.annotation.Nullable @@ -194,6 +206,7 @@ public DocumentSearchMeta indexType(@javax.annotation.Nullable IndexTypeEnum ind /** * Searches in an index + * * @return indexType */ @javax.annotation.Nullable @@ -206,13 +219,15 @@ public void setIndexType(@javax.annotation.Nullable IndexTypeEnum indexType) { } - public DocumentSearchMeta indexFilterBeginsWith(@javax.annotation.Nullable String indexFilterBeginsWith) { + public DocumentSearchMeta indexFilterBeginsWith( + @javax.annotation.Nullable String indexFilterBeginsWith) { this.indexFilterBeginsWith = indexFilterBeginsWith; return this; } /** * Returns index records that begins with a particular substring + * * @return indexFilterBeginsWith */ @javax.annotation.Nullable @@ -235,11 +250,11 @@ public boolean equals(Object o) { return false; } DocumentSearchMeta documentSearchMeta = (DocumentSearchMeta) o; - return Objects.equals(this.folder, documentSearchMeta.folder) && - Objects.equals(this.path, documentSearchMeta.path) && - Objects.equals(this.eq, documentSearchMeta.eq) && - Objects.equals(this.indexType, documentSearchMeta.indexType) && - Objects.equals(this.indexFilterBeginsWith, documentSearchMeta.indexFilterBeginsWith); + return Objects.equals(this.folder, documentSearchMeta.folder) + && Objects.equals(this.path, documentSearchMeta.path) + && Objects.equals(this.eq, documentSearchMeta.eq) + && Objects.equals(this.indexType, documentSearchMeta.indexType) + && Objects.equals(this.indexFilterBeginsWith, documentSearchMeta.indexFilterBeginsWith); } @Override @@ -255,14 +270,14 @@ public String toString() { sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" eq: ").append(toIndentedString(eq)).append("\n"); sb.append(" indexType: ").append(toIndentedString(indexType)).append("\n"); - sb.append(" indexFilterBeginsWith: ").append(toIndentedString(indexFilterBeginsWith)).append("\n"); + sb.append(" indexFilterBeginsWith: ").append(toIndentedString(indexFilterBeginsWith)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -277,7 +292,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("folder", "path", "eq", "indexType", "indexFilterBeginsWith")); + openapiFields = new HashSet( + Arrays.asList("folder", "path", "eq", "indexType", "indexFilterBeginsWith")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -290,67 +306,88 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchMeta */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchMeta is not found in the empty JSON string", DocumentSearchMeta.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSearchMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSearchMeta is not found in the empty JSON string", + DocumentSearchMeta.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchMeta.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchMeta` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("folder") != null && !jsonObj.get("folder").isJsonNull()) && !jsonObj.get("folder").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `folder` to be a primitive type in the JSON string but got `%s`", jsonObj.get("folder").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); - } - if ((jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) && !jsonObj.get("indexType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexType").toString())); - } - // validate the optional field `indexType` - if (jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) { - IndexTypeEnum.validateJsonElement(jsonObj.get("indexType")); - } - if ((jsonObj.get("indexFilterBeginsWith") != null && !jsonObj.get("indexFilterBeginsWith").isJsonNull()) && !jsonObj.get("indexFilterBeginsWith").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexFilterBeginsWith` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexFilterBeginsWith").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchMeta.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSearchMeta` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("folder") != null && !jsonObj.get("folder").isJsonNull()) + && !jsonObj.get("folder").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `folder` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("folder").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) + && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("eq").toString())); + } + if ((jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) + && !jsonObj.get("indexType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `indexType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("indexType").toString())); + } + // validate the optional field `indexType` + if (jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) { + IndexTypeEnum.validateJsonElement(jsonObj.get("indexType")); + } + if ((jsonObj.get("indexFilterBeginsWith") != null + && !jsonObj.get("indexFilterBeginsWith").isJsonNull()) + && !jsonObj.get("indexFilterBeginsWith").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `indexFilterBeginsWith` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("indexFilterBeginsWith").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchMeta.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchMeta' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMeta.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchMeta value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchMeta read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchMeta.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchMeta' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchMeta.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchMeta value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchMeta read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchRange.java b/src/main/java/com/formkiq/client/model/DocumentSearchRange.java index 1601ca78e..eda7ae725 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchRange.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchRange.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * DocumentSearchRange */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSearchRange { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) @@ -68,8 +77,7 @@ public class DocumentSearchRange { @javax.annotation.Nullable private SearchRangeDataType type = SearchRangeDataType.STRING; - public DocumentSearchRange() { - } + public DocumentSearchRange() {} public DocumentSearchRange start(@javax.annotation.Nonnull String start) { this.start = start; @@ -78,6 +86,7 @@ public DocumentSearchRange start(@javax.annotation.Nonnull String start) { /** * Start of range query + * * @return start */ @javax.annotation.Nonnull @@ -97,6 +106,7 @@ public DocumentSearchRange end(@javax.annotation.Nonnull String end) { /** * End of range query + * * @return end */ @javax.annotation.Nonnull @@ -116,6 +126,7 @@ public DocumentSearchRange type(@javax.annotation.Nullable SearchRangeDataType t /** * Get type + * * @return type */ @javax.annotation.Nullable @@ -138,9 +149,9 @@ public boolean equals(Object o) { return false; } DocumentSearchRange documentSearchRange = (DocumentSearchRange) o; - return Objects.equals(this.start, documentSearchRange.start) && - Objects.equals(this.end, documentSearchRange.end) && - Objects.equals(this.type, documentSearchRange.type); + return Objects.equals(this.start, documentSearchRange.start) + && Objects.equals(this.end, documentSearchRange.end) + && Objects.equals(this.type, documentSearchRange.type); } @Override @@ -160,8 +171,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,65 +199,76 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchRange */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchRange is not found in the empty JSON string", DocumentSearchRange.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSearchRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSearchRange is not found in the empty JSON string", + DocumentSearchRange.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchRange.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchRange.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSearchRange` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentSearchRange.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("start").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `start` to be a primitive type in the JSON string but got `%s`", jsonObj.get("start").toString())); - } - if (!jsonObj.get("end").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `end` to be a primitive type in the JSON string but got `%s`", jsonObj.get("end").toString())); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - SearchRangeDataType.validateJsonElement(jsonObj.get("type")); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentSearchRange.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("start").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `start` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("start").toString())); + } + if (!jsonObj.get("end").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `end` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("end").toString())); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + SearchRangeDataType.validateJsonElement(jsonObj.get("type")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchRange.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchRange' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchRange.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchRange value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchRange read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchRange.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchRange' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchRange.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchRange value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchRange read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java b/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java index 21e393c70..39605a2aa 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * Document search tag criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSearchRequest { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) @@ -64,8 +73,7 @@ public class DocumentSearchRequest { @javax.annotation.Nullable private SearchResponseFields responseFields; - public DocumentSearchRequest() { - } + public DocumentSearchRequest() {} public DocumentSearchRequest query(@javax.annotation.Nonnull DocumentSearch query) { this.query = query; @@ -74,6 +82,7 @@ public DocumentSearchRequest query(@javax.annotation.Nonnull DocumentSearch quer /** * Get query + * * @return query */ @javax.annotation.Nonnull @@ -86,13 +95,15 @@ public void setQuery(@javax.annotation.Nonnull DocumentSearch query) { } - public DocumentSearchRequest responseFields(@javax.annotation.Nullable SearchResponseFields responseFields) { + public DocumentSearchRequest responseFields( + @javax.annotation.Nullable SearchResponseFields responseFields) { this.responseFields = responseFields; return this; } /** * Get responseFields + * * @return responseFields */ @javax.annotation.Nullable @@ -115,8 +126,8 @@ public boolean equals(Object o) { return false; } DocumentSearchRequest documentSearchRequest = (DocumentSearchRequest) o; - return Objects.equals(this.query, documentSearchRequest.query) && - Objects.equals(this.responseFields, documentSearchRequest.responseFields); + return Objects.equals(this.query, documentSearchRequest.query) + && Objects.equals(this.responseFields, documentSearchRequest.responseFields); } @Override @@ -135,8 +146,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -164,61 +174,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchRequest is not found in the empty JSON string", DocumentSearchRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSearchRequest is not found in the empty JSON string", + DocumentSearchRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSearchRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentSearchRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `query` - DocumentSearch.validateJsonElement(jsonObj.get("query")); - // validate the optional field `responseFields` - if (jsonObj.get("responseFields") != null && !jsonObj.get("responseFields").isJsonNull()) { - SearchResponseFields.validateJsonElement(jsonObj.get("responseFields")); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentSearchRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `query` + DocumentSearch.validateJsonElement(jsonObj.get("query")); + // validate the optional field `responseFields` + if (jsonObj.get("responseFields") != null && !jsonObj.get("responseFields").isJsonNull()) { + SearchResponseFields.validateJsonElement(jsonObj.get("responseFields")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java b/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java index 51512e6e1..1f5b74452 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * DocumentSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSearchResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -70,8 +79,7 @@ public class DocumentSearchResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public DocumentSearchResponse() { - } + public DocumentSearchResponse() {} public DocumentSearchResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -80,6 +88,7 @@ public DocumentSearchResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -99,6 +108,7 @@ public DocumentSearchResponse previous(@javax.annotation.Nullable String previou /** * Previous page of results token + * * @return previous */ @javax.annotation.Nullable @@ -111,7 +121,8 @@ public void setPrevious(@javax.annotation.Nullable String previous) { } - public DocumentSearchResponse documents(@javax.annotation.Nullable List documents) { + public DocumentSearchResponse documents( + @javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -126,6 +137,7 @@ public DocumentSearchResponse addDocumentsItem(SearchResultDocument documentsIte /** * List of search result documents + * * @return documents */ @javax.annotation.Nullable @@ -148,9 +160,9 @@ public boolean equals(Object o) { return false; } DocumentSearchResponse documentSearchResponse = (DocumentSearchResponse) o; - return Objects.equals(this.next, documentSearchResponse.next) && - Objects.equals(this.previous, documentSearchResponse.previous) && - Objects.equals(this.documents, documentSearchResponse.documents); + return Objects.equals(this.next, documentSearchResponse.next) + && Objects.equals(this.previous, documentSearchResponse.previous) + && Objects.equals(this.documents, documentSearchResponse.documents); } @Override @@ -170,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,68 +210,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchResponse is not found in the empty JSON string", DocumentSearchResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSearchResponse is not found in the empty JSON string", + DocumentSearchResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSearchResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - SearchResultDocument.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) + && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("previous").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + SearchResultDocument.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchTag.java b/src/main/java/com/formkiq/client/model/DocumentSearchTag.java index 94324c2e1..371ac922c 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchTag.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * DocumentSearchTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSearchTag { public static final String SERIALIZED_NAME_BEGINS_WITH = "beginsWith"; @SerializedName(SERIALIZED_NAME_BEGINS_WITH) @@ -80,8 +89,7 @@ public class DocumentSearchTag { @javax.annotation.Nonnull private String key; - public DocumentSearchTag() { - } + public DocumentSearchTag() {} public DocumentSearchTag beginsWith(@javax.annotation.Nullable String beginsWith) { this.beginsWith = beginsWith; @@ -90,6 +98,7 @@ public DocumentSearchTag beginsWith(@javax.annotation.Nullable String beginsWith /** * Searches for strings that begin with + * * @return beginsWith */ @javax.annotation.Nullable @@ -109,6 +118,7 @@ public DocumentSearchTag eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq + * * @return eq */ @javax.annotation.Nullable @@ -136,6 +146,7 @@ public DocumentSearchTag addEqOrItem(String eqOrItem) { /** * Searches for ANY strings that eq + * * @return eqOr */ @javax.annotation.Nullable @@ -155,6 +166,7 @@ public DocumentSearchTag range(@javax.annotation.Nullable DocumentSearchRange ra /** * Get range + * * @return range */ @javax.annotation.Nullable @@ -174,6 +186,7 @@ public DocumentSearchTag key(@javax.annotation.Nonnull String key) { /** * Tag key to search + * * @return key */ @javax.annotation.Nonnull @@ -196,11 +209,11 @@ public boolean equals(Object o) { return false; } DocumentSearchTag documentSearchTag = (DocumentSearchTag) o; - return Objects.equals(this.beginsWith, documentSearchTag.beginsWith) && - Objects.equals(this.eq, documentSearchTag.eq) && - Objects.equals(this.eqOr, documentSearchTag.eqOr) && - Objects.equals(this.range, documentSearchTag.range) && - Objects.equals(this.key, documentSearchTag.key); + return Objects.equals(this.beginsWith, documentSearchTag.beginsWith) + && Objects.equals(this.eq, documentSearchTag.eq) + && Objects.equals(this.eqOr, documentSearchTag.eqOr) + && Objects.equals(this.range, documentSearchTag.range) + && Objects.equals(this.key, documentSearchTag.key); } @Override @@ -222,8 +235,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -251,72 +263,90 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchTag is not found in the empty JSON string", DocumentSearchTag.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSearchTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSearchTag is not found in the empty JSON string", + DocumentSearchTag.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSearchTag` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentSearchTag.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) && !jsonObj.get("beginsWith").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", jsonObj.get("beginsWith").toString())); - } - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() && !jsonObj.get("eqOr").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eqOr` to be an array in the JSON string but got `%s`", jsonObj.get("eqOr").toString())); - } - // validate the optional field `range` - if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { - DocumentSearchRange.validateJsonElement(jsonObj.get("range")); - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentSearchTag.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) + && !jsonObj.get("beginsWith").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("beginsWith").toString())); + } + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) + && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("eq").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("eqOr") != null && !jsonObj.get("eqOr").isJsonNull() + && !jsonObj.get("eqOr").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eqOr` to be an array in the JSON string but got `%s`", + jsonObj.get("eqOr").toString())); + } + // validate the optional field `range` + if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { + DocumentSearchRange.validateJsonElement(jsonObj.get("range")); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchTags.java b/src/main/java/com/formkiq/client/model/DocumentSearchTags.java index a134a62ee..b92d50334 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchTags.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchTags.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * DocumentSearchTags */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSearchTags { public static final String SERIALIZED_NAME_EQ = "eq"; @SerializedName(SERIALIZED_NAME_EQ) @@ -73,8 +82,7 @@ public class DocumentSearchTags { @javax.annotation.Nonnull private String key; - public DocumentSearchTags() { - } + public DocumentSearchTags() {} public DocumentSearchTags eq(@javax.annotation.Nullable String eq) { this.eq = eq; @@ -83,6 +91,7 @@ public DocumentSearchTags eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq + * * @return eq */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public DocumentSearchTags beginsWith(@javax.annotation.Nullable String beginsWit /** * Searches for strings that begin with + * * @return beginsWith */ @javax.annotation.Nullable @@ -121,6 +131,7 @@ public DocumentSearchTags range(@javax.annotation.Nullable DocumentSearchRange r /** * Get range + * * @return range */ @javax.annotation.Nullable @@ -140,6 +151,7 @@ public DocumentSearchTags key(@javax.annotation.Nonnull String key) { /** * Tag key to search + * * @return key */ @javax.annotation.Nonnull @@ -162,10 +174,10 @@ public boolean equals(Object o) { return false; } DocumentSearchTags documentSearchTags = (DocumentSearchTags) o; - return Objects.equals(this.eq, documentSearchTags.eq) && - Objects.equals(this.beginsWith, documentSearchTags.beginsWith) && - Objects.equals(this.range, documentSearchTags.range) && - Objects.equals(this.key, documentSearchTags.key); + return Objects.equals(this.eq, documentSearchTags.eq) + && Objects.equals(this.beginsWith, documentSearchTags.beginsWith) + && Objects.equals(this.range, documentSearchTags.range) + && Objects.equals(this.key, documentSearchTags.key); } @Override @@ -186,8 +198,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -215,68 +226,83 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSearchTags */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSearchTags.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSearchTags is not found in the empty JSON string", DocumentSearchTags.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSearchTags.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSearchTags is not found in the empty JSON string", + DocumentSearchTags.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSearchTags.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSearchTags` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSearchTags.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSearchTags` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentSearchTags.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); - } - if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) && !jsonObj.get("beginsWith").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", jsonObj.get("beginsWith").toString())); - } - // validate the optional field `range` - if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { - DocumentSearchRange.validateJsonElement(jsonObj.get("range")); - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentSearchTags.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) + && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("eq").toString())); + } + if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) + && !jsonObj.get("beginsWith").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("beginsWith").toString())); + } + // validate the optional field `range` + if (jsonObj.get("range") != null && !jsonObj.get("range").isJsonNull()) { + DocumentSearchRange.validateJsonElement(jsonObj.get("range")); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSearchTags.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSearchTags' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchTags.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSearchTags value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSearchTags read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSearchTags.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSearchTags' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSearchTags.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSearchTags value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSearchTags read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSync.java b/src/main/java/com/formkiq/client/model/DocumentSync.java index f1297facb..d42c491d5 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSync.java +++ b/src/main/java/com/formkiq/client/model/DocumentSync.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * DocumentSync */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentSync { public static final String SERIALIZED_NAME_SERVICE = "service"; @SerializedName(SERIALIZED_NAME_SERVICE) @@ -90,8 +99,7 @@ public class DocumentSync { @javax.annotation.Nullable private String message; - public DocumentSync() { - } + public DocumentSync() {} public DocumentSync service(@javax.annotation.Nullable DocumentSyncService service) { this.service = service; @@ -100,6 +108,7 @@ public DocumentSync service(@javax.annotation.Nullable DocumentSyncService servi /** * Get service + * * @return service */ @javax.annotation.Nullable @@ -119,6 +128,7 @@ public DocumentSync status(@javax.annotation.Nullable DocumentSyncStatus status) /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -138,6 +148,7 @@ public DocumentSync type(@javax.annotation.Nullable DocumentSyncType type) { /** * Get type + * * @return type */ @javax.annotation.Nullable @@ -157,6 +168,7 @@ public DocumentSync insertedDate(@javax.annotation.Nullable String insertedDate) /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -176,6 +188,7 @@ public DocumentSync syncDate(@javax.annotation.Nullable String syncDate) { /** * Timestamp of synchronization + * * @return syncDate */ @javax.annotation.Nullable @@ -195,6 +208,7 @@ public DocumentSync userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -214,6 +228,7 @@ public DocumentSync message(@javax.annotation.Nullable String message) { /** * Document sync message + * * @return message */ @javax.annotation.Nullable @@ -236,13 +251,13 @@ public boolean equals(Object o) { return false; } DocumentSync documentSync = (DocumentSync) o; - return Objects.equals(this.service, documentSync.service) && - Objects.equals(this.status, documentSync.status) && - Objects.equals(this.type, documentSync.type) && - Objects.equals(this.insertedDate, documentSync.insertedDate) && - Objects.equals(this.syncDate, documentSync.syncDate) && - Objects.equals(this.userId, documentSync.userId) && - Objects.equals(this.message, documentSync.message); + return Objects.equals(this.service, documentSync.service) + && Objects.equals(this.status, documentSync.status) + && Objects.equals(this.type, documentSync.type) + && Objects.equals(this.insertedDate, documentSync.insertedDate) + && Objects.equals(this.syncDate, documentSync.syncDate) + && Objects.equals(this.userId, documentSync.userId) + && Objects.equals(this.message, documentSync.message); } @Override @@ -266,8 +281,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -282,7 +296,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("service", "status", "type", "insertedDate", "syncDate", "userId", "message")); + openapiFields = new HashSet(Arrays.asList("service", "status", "type", "insertedDate", + "syncDate", "userId", "message")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -295,72 +310,89 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentSync */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentSync.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentSync is not found in the empty JSON string", DocumentSync.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentSync.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentSync is not found in the empty JSON string", + DocumentSync.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentSync.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentSync` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `service` - if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { - DocumentSyncService.validateJsonElement(jsonObj.get("service")); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - DocumentSyncStatus.validateJsonElement(jsonObj.get("status")); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - DocumentSyncType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("syncDate") != null && !jsonObj.get("syncDate").isJsonNull()) && !jsonObj.get("syncDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `syncDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("syncDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentSync.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentSync` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `service` + if (jsonObj.get("service") != null && !jsonObj.get("service").isJsonNull()) { + DocumentSyncService.validateJsonElement(jsonObj.get("service")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + DocumentSyncStatus.validateJsonElement(jsonObj.get("status")); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + DocumentSyncType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("syncDate") != null && !jsonObj.get("syncDate").isJsonNull()) + && !jsonObj.get("syncDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `syncDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("syncDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentSync.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentSync' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentSync.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentSync value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentSync read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentSync.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentSync' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentSync.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentSync value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentSync read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentSyncService.java b/src/main/java/com/formkiq/client/model/DocumentSyncService.java index fe3ff1e54..017c841f9 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSyncService.java +++ b/src/main/java/com/formkiq/client/model/DocumentSyncService.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(DocumentSyncService.Adapter.class) public enum DocumentSyncService { - + TYPESENSE("TYPESENSE"), - + OPENSEARCH("OPENSEARCH"); private String value; @@ -61,7 +68,8 @@ public static DocumentSyncService fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentSyncService enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentSyncService enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentSyncStatus.java b/src/main/java/com/formkiq/client/model/DocumentSyncStatus.java index b28ae77a7..65b0126e5 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSyncStatus.java +++ b/src/main/java/com/formkiq/client/model/DocumentSyncStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,13 +37,13 @@ */ @JsonAdapter(DocumentSyncStatus.Adapter.class) public enum DocumentSyncStatus { - + COMPLETE("COMPLETE"), - + FAILED("FAILED"), - + FAILED_RETRY("FAILED_RETRY"), - + PENDING("PENDING"); private String value; @@ -65,7 +72,8 @@ public static DocumentSyncStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentSyncStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentSyncStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentSyncType.java b/src/main/java/com/formkiq/client/model/DocumentSyncType.java index 41c2f88b2..ecd80bdc0 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSyncType.java +++ b/src/main/java/com/formkiq/client/model/DocumentSyncType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,13 +37,13 @@ */ @JsonAdapter(DocumentSyncType.Adapter.class) public enum DocumentSyncType { - + METADATA("METADATA"), - + CONTENT("CONTENT"), - + SOFT_DELETE("SOFT_DELETE"), - + DELETE("DELETE"); private String value; @@ -65,7 +72,8 @@ public static DocumentSyncType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentSyncType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentSyncType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentTag.java b/src/main/java/com/formkiq/client/model/DocumentTag.java index 6173f816e..bd24cb7af 100644 --- a/src/main/java/com/formkiq/client/model/DocumentTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentTag.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * DocumentTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentTag { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; @SerializedName(SERIALIZED_NAME_INSERTED_DATE) @@ -89,8 +98,7 @@ public class DocumentTag { @javax.annotation.Nullable private String key; - public DocumentTag() { - } + public DocumentTag() {} public DocumentTag insertedDate(@javax.annotation.Nullable String insertedDate) { this.insertedDate = insertedDate; @@ -99,6 +107,7 @@ public DocumentTag insertedDate(@javax.annotation.Nullable String insertedDate) /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -118,6 +127,7 @@ public DocumentTag documentId(@javax.annotation.Nullable String documentId) { /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -137,6 +147,7 @@ public DocumentTag type(@javax.annotation.Nullable String type) { /** * Tag type + * * @return type */ @javax.annotation.Nullable @@ -156,6 +167,7 @@ public DocumentTag userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -175,6 +187,7 @@ public DocumentTag value(@javax.annotation.Nullable String value) { /** * Tag value + * * @return value */ @javax.annotation.Nullable @@ -202,6 +215,7 @@ public DocumentTag addValuesItem(String valuesItem) { /** * Tag values + * * @return values */ @javax.annotation.Nullable @@ -221,6 +235,7 @@ public DocumentTag key(@javax.annotation.Nullable String key) { /** * Tag key + * * @return key */ @javax.annotation.Nullable @@ -243,13 +258,13 @@ public boolean equals(Object o) { return false; } DocumentTag documentTag = (DocumentTag) o; - return Objects.equals(this.insertedDate, documentTag.insertedDate) && - Objects.equals(this.documentId, documentTag.documentId) && - Objects.equals(this.type, documentTag.type) && - Objects.equals(this.userId, documentTag.userId) && - Objects.equals(this.value, documentTag.value) && - Objects.equals(this.values, documentTag.values) && - Objects.equals(this.key, documentTag.key); + return Objects.equals(this.insertedDate, documentTag.insertedDate) + && Objects.equals(this.documentId, documentTag.documentId) + && Objects.equals(this.type, documentTag.type) + && Objects.equals(this.userId, documentTag.userId) + && Objects.equals(this.value, documentTag.value) + && Objects.equals(this.values, documentTag.values) + && Objects.equals(this.key, documentTag.key); } @Override @@ -273,8 +288,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -289,7 +303,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("insertedDate", "documentId", "type", "userId", "value", "values", "key")); + openapiFields = new HashSet( + Arrays.asList("insertedDate", "documentId", "type", "userId", "value", "values", "key")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -302,70 +317,96 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentTag is not found in the empty JSON string", DocumentTag.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentTag is not found in the empty JSON string", + DocumentTag.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); - } - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentTag` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) + && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `type` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("type").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() + && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `values` to be an array in the JSON string but got `%s`", + jsonObj.get("values").toString())); + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentVersion.java b/src/main/java/com/formkiq/client/model/DocumentVersion.java index 07b3f4139..26803c6f6 100644 --- a/src/main/java/com/formkiq/client/model/DocumentVersion.java +++ b/src/main/java/com/formkiq/client/model/DocumentVersion.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * DocumentVersion */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentVersion { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; @SerializedName(SERIALIZED_NAME_INSERTED_DATE) @@ -93,8 +102,7 @@ public class DocumentVersion { @javax.annotation.Nullable private String s3version; - public DocumentVersion() { - } + public DocumentVersion() {} public DocumentVersion insertedDate(@javax.annotation.Nullable String insertedDate) { this.insertedDate = insertedDate; @@ -103,6 +111,7 @@ public DocumentVersion insertedDate(@javax.annotation.Nullable String insertedDa /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -122,6 +131,7 @@ public DocumentVersion checksum(@javax.annotation.Nullable String checksum) { /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -141,6 +151,7 @@ public DocumentVersion checksumType(@javax.annotation.Nullable ChecksumType chec /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -160,6 +171,7 @@ public DocumentVersion contentType(@javax.annotation.Nullable String contentType /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -179,6 +191,7 @@ public DocumentVersion userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -198,6 +211,7 @@ public DocumentVersion contentLength(@javax.annotation.Nullable Integer contentL /** * Document size + * * @return contentLength */ @javax.annotation.Nullable @@ -217,6 +231,7 @@ public DocumentVersion versionKey(@javax.annotation.Nullable String versionKey) /** * Document Version Identifier + * * @return versionKey */ @javax.annotation.Nullable @@ -236,6 +251,7 @@ public DocumentVersion s3version(@javax.annotation.Nullable String s3version) { /** * Document storage version + * * @return s3version */ @javax.annotation.Nullable @@ -258,19 +274,20 @@ public boolean equals(Object o) { return false; } DocumentVersion documentVersion = (DocumentVersion) o; - return Objects.equals(this.insertedDate, documentVersion.insertedDate) && - Objects.equals(this.checksum, documentVersion.checksum) && - Objects.equals(this.checksumType, documentVersion.checksumType) && - Objects.equals(this.contentType, documentVersion.contentType) && - Objects.equals(this.userId, documentVersion.userId) && - Objects.equals(this.contentLength, documentVersion.contentLength) && - Objects.equals(this.versionKey, documentVersion.versionKey) && - Objects.equals(this.s3version, documentVersion.s3version); + return Objects.equals(this.insertedDate, documentVersion.insertedDate) + && Objects.equals(this.checksum, documentVersion.checksum) + && Objects.equals(this.checksumType, documentVersion.checksumType) + && Objects.equals(this.contentType, documentVersion.contentType) + && Objects.equals(this.userId, documentVersion.userId) + && Objects.equals(this.contentLength, documentVersion.contentLength) + && Objects.equals(this.versionKey, documentVersion.versionKey) + && Objects.equals(this.s3version, documentVersion.s3version); } @Override public int hashCode() { - return Objects.hash(insertedDate, checksum, checksumType, contentType, userId, contentLength, versionKey, s3version); + return Objects.hash(insertedDate, checksum, checksumType, contentType, userId, contentLength, + versionKey, s3version); } @Override @@ -290,8 +307,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -306,7 +322,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("insertedDate", "checksum", "checksumType", "contentType", "userId", "contentLength", "versionKey", "s3version")); + openapiFields = new HashSet(Arrays.asList("insertedDate", "checksum", "checksumType", + "contentType", "userId", "contentLength", "versionKey", "s3version")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -319,70 +336,93 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentVersion */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentVersion is not found in the empty JSON string", DocumentVersion.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentVersion is not found in the empty JSON string", + DocumentVersion.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentVersion.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentVersion` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) && !jsonObj.get("versionKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionKey").toString())); - } - if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) && !jsonObj.get("s3version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("s3version").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentVersion.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentVersion` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) + && !jsonObj.get("versionKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("versionKey").toString())); + } + if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) + && !jsonObj.get("s3version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("s3version").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentVersion.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentVersion' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentVersion.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentVersion value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentVersion read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentVersion.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentVersion' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentVersion.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentVersion value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentVersion read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentWorkflow.java b/src/main/java/com/formkiq/client/model/DocumentWorkflow.java index ca30bd5a4..6b33ecf25 100644 --- a/src/main/java/com/formkiq/client/model/DocumentWorkflow.java +++ b/src/main/java/com/formkiq/client/model/DocumentWorkflow.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * DocumentWorkflow */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentWorkflow { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; @SerializedName(SERIALIZED_NAME_WORKFLOW_ID) @@ -83,8 +92,7 @@ public class DocumentWorkflow { @javax.annotation.Nullable private String insertedDate; - public DocumentWorkflow() { - } + public DocumentWorkflow() {} public DocumentWorkflow workflowId(@javax.annotation.Nullable String workflowId) { this.workflowId = workflowId; @@ -93,6 +101,7 @@ public DocumentWorkflow workflowId(@javax.annotation.Nullable String workflowId) /** * Workflow identifier + * * @return workflowId */ @javax.annotation.Nullable @@ -112,6 +121,7 @@ public DocumentWorkflow name(@javax.annotation.Nullable String name) { /** * Workflow name + * * @return name */ @javax.annotation.Nullable @@ -131,6 +141,7 @@ public DocumentWorkflow description(@javax.annotation.Nullable String descriptio /** * Workflow description + * * @return description */ @javax.annotation.Nullable @@ -150,6 +161,7 @@ public DocumentWorkflow currentStepId(@javax.annotation.Nullable String currentS /** * The current step workflow is on + * * @return currentStepId */ @javax.annotation.Nullable @@ -169,6 +181,7 @@ public DocumentWorkflow status(@javax.annotation.Nullable DocumentWorkflowStatus /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -188,6 +201,7 @@ public DocumentWorkflow insertedDate(@javax.annotation.Nullable String insertedD /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -210,12 +224,12 @@ public boolean equals(Object o) { return false; } DocumentWorkflow documentWorkflow = (DocumentWorkflow) o; - return Objects.equals(this.workflowId, documentWorkflow.workflowId) && - Objects.equals(this.name, documentWorkflow.name) && - Objects.equals(this.description, documentWorkflow.description) && - Objects.equals(this.currentStepId, documentWorkflow.currentStepId) && - Objects.equals(this.status, documentWorkflow.status) && - Objects.equals(this.insertedDate, documentWorkflow.insertedDate); + return Objects.equals(this.workflowId, documentWorkflow.workflowId) + && Objects.equals(this.name, documentWorkflow.name) + && Objects.equals(this.description, documentWorkflow.description) + && Objects.equals(this.currentStepId, documentWorkflow.currentStepId) + && Objects.equals(this.status, documentWorkflow.status) + && Objects.equals(this.insertedDate, documentWorkflow.insertedDate); } @Override @@ -238,8 +252,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -254,7 +267,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("workflowId", "name", "description", "currentStepId", "status", "insertedDate")); + openapiFields = new HashSet(Arrays.asList("workflowId", "name", "description", + "currentStepId", "status", "insertedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -267,67 +281,87 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentWorkflow */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentWorkflow.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentWorkflow is not found in the empty JSON string", DocumentWorkflow.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentWorkflow.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentWorkflow is not found in the empty JSON string", + DocumentWorkflow.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentWorkflow.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentWorkflow` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("currentStepId") != null && !jsonObj.get("currentStepId").isJsonNull()) && !jsonObj.get("currentStepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `currentStepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currentStepId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - DocumentWorkflowStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentWorkflow.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentWorkflow` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) + && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workflowId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("currentStepId") != null && !jsonObj.get("currentStepId").isJsonNull()) + && !jsonObj.get("currentStepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `currentStepId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("currentStepId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + DocumentWorkflowStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentWorkflow.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentWorkflow' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentWorkflow.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentWorkflow value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentWorkflow read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentWorkflow.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentWorkflow' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentWorkflow.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentWorkflow value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentWorkflow read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentWorkflowStatus.java b/src/main/java/com/formkiq/client/model/DocumentWorkflowStatus.java index 6cde750d2..5f5675b67 100644 --- a/src/main/java/com/formkiq/client/model/DocumentWorkflowStatus.java +++ b/src/main/java/com/formkiq/client/model/DocumentWorkflowStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(DocumentWorkflowStatus.Adapter.class) public enum DocumentWorkflowStatus { - + COMPLETE("COMPLETE"), - + IN_PROGRESS("IN_PROGRESS"), - + FAILED("FAILED"); private String value; @@ -63,7 +70,8 @@ public static DocumentWorkflowStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocumentWorkflowStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DocumentWorkflowStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java b/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java index 7fe226d93..82334e944 100644 --- a/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,15 +59,16 @@ /** * DocumentsCompressRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentsCompressRequest { public static final String SERIALIZED_NAME_DOCUMENT_IDS = "documentIds"; @SerializedName(SERIALIZED_NAME_DOCUMENT_IDS) @javax.annotation.Nonnull private List documentIds = new ArrayList<>(); - public DocumentsCompressRequest() { - } + public DocumentsCompressRequest() {} public DocumentsCompressRequest documentIds(@javax.annotation.Nonnull List documentIds) { this.documentIds = documentIds; @@ -77,6 +85,7 @@ public DocumentsCompressRequest addDocumentIdsItem(String documentIdsItem) { /** * Documents to compress + * * @return documentIds */ @javax.annotation.Nonnull @@ -117,8 +126,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,61 +154,71 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentsCompressRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentsCompressRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentsCompressRequest is not found in the empty JSON string", DocumentsCompressRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentsCompressRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentsCompressRequest is not found in the empty JSON string", + DocumentsCompressRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentsCompressRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentsCompressRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentsCompressRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentsCompressRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocumentsCompressRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the required json array is present - if (jsonObj.get("documentIds") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocumentsCompressRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("documentIds") == null) { + throw new IllegalArgumentException( + "Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentIds` to be an array in the JSON string but got `%s`", + jsonObj.get("documentIds").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentsCompressRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentsCompressRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentsCompressRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentsCompressRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentsCompressRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentsCompressRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentsCompressRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentsCompressRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentsCompressRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentsCompressRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java b/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java index 8b4ad4998..5c9aabb0b 100644 --- a/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * DocumentsCompressResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocumentsCompressResponse { public static final String SERIALIZED_NAME_DOWNLOAD_URL = "downloadUrl"; @SerializedName(SERIALIZED_NAME_DOWNLOAD_URL) @javax.annotation.Nullable private String downloadUrl; - public DocumentsCompressResponse() { - } + public DocumentsCompressResponse() {} public DocumentsCompressResponse downloadUrl(@javax.annotation.Nullable String downloadUrl) { this.downloadUrl = downloadUrl; @@ -67,6 +75,7 @@ public DocumentsCompressResponse downloadUrl(@javax.annotation.Nullable String d /** * Archive download URL + * * @return downloadUrl */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocumentsCompressResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocumentsCompressResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocumentsCompressResponse is not found in the empty JSON string", DocumentsCompressResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocumentsCompressResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocumentsCompressResponse is not found in the empty JSON string", + DocumentsCompressResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocumentsCompressResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocumentsCompressResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("downloadUrl") != null && !jsonObj.get("downloadUrl").isJsonNull()) && !jsonObj.get("downloadUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `downloadUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("downloadUrl").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocumentsCompressResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocumentsCompressResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("downloadUrl") != null && !jsonObj.get("downloadUrl").isJsonNull()) + && !jsonObj.get("downloadUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `downloadUrl` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("downloadUrl").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocumentsCompressResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocumentsCompressResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocumentsCompressResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocumentsCompressResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocumentsCompressResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocumentsCompressResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocumentsCompressResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocumentsCompressResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocumentsCompressResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocumentsCompressResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignConfig.java b/src/main/java/com/formkiq/client/model/DocusignConfig.java index 5261d0416..188cdb047 100644 --- a/src/main/java/com/formkiq/client/model/DocusignConfig.java +++ b/src/main/java/com/formkiq/client/model/DocusignConfig.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * DocusignConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocusignConfig { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) @@ -72,8 +81,7 @@ public class DocusignConfig { @javax.annotation.Nullable private String hmacSignature; - public DocusignConfig() { - } + public DocusignConfig() {} public DocusignConfig userId(@javax.annotation.Nullable String userId) { this.userId = userId; @@ -82,6 +90,7 @@ public DocusignConfig userId(@javax.annotation.Nullable String userId) { /** * Docusign UserId + * * @return userId */ @javax.annotation.Nullable @@ -101,6 +110,7 @@ public DocusignConfig integrationKey(@javax.annotation.Nullable String integrati /** * Docusign Integration Key or ClientId + * * @return integrationKey */ @javax.annotation.Nullable @@ -120,6 +130,7 @@ public DocusignConfig rsaPrivateKey(@javax.annotation.Nullable String rsaPrivate /** * Docusign Rsa Private Key + * * @return rsaPrivateKey */ @javax.annotation.Nullable @@ -138,7 +149,10 @@ public DocusignConfig hmacSignature(@javax.annotation.Nullable String hmacSignat } /** - * Enabled security with Docusign Connect using HMAC keys. When enabled these keys are known only by Docusign and your app, and will be used to sign all Connect messages sent from your Docusign account to your application. + * Enabled security with Docusign Connect using HMAC keys. When enabled these keys are known only + * by Docusign and your app, and will be used to sign all Connect messages sent from your Docusign + * account to your application. + * * @return hmacSignature */ @javax.annotation.Nullable @@ -161,10 +175,10 @@ public boolean equals(Object o) { return false; } DocusignConfig docusignConfig = (DocusignConfig) o; - return Objects.equals(this.userId, docusignConfig.userId) && - Objects.equals(this.integrationKey, docusignConfig.integrationKey) && - Objects.equals(this.rsaPrivateKey, docusignConfig.rsaPrivateKey) && - Objects.equals(this.hmacSignature, docusignConfig.hmacSignature); + return Objects.equals(this.userId, docusignConfig.userId) + && Objects.equals(this.integrationKey, docusignConfig.integrationKey) + && Objects.equals(this.rsaPrivateKey, docusignConfig.rsaPrivateKey) + && Objects.equals(this.hmacSignature, docusignConfig.hmacSignature); } @Override @@ -185,8 +199,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -201,7 +214,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("userId", "integrationKey", "rsaPrivateKey", "hmacSignature")); + openapiFields = new HashSet( + Arrays.asList("userId", "integrationKey", "rsaPrivateKey", "hmacSignature")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -214,60 +228,77 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignConfig */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignConfig is not found in the empty JSON string", DocusignConfig.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocusignConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocusignConfig is not found in the empty JSON string", + DocusignConfig.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignConfig.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("integrationKey") != null && !jsonObj.get("integrationKey").isJsonNull()) && !jsonObj.get("integrationKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `integrationKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("integrationKey").toString())); - } - if ((jsonObj.get("rsaPrivateKey") != null && !jsonObj.get("rsaPrivateKey").isJsonNull()) && !jsonObj.get("rsaPrivateKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rsaPrivateKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rsaPrivateKey").toString())); - } - if ((jsonObj.get("hmacSignature") != null && !jsonObj.get("hmacSignature").isJsonNull()) && !jsonObj.get("hmacSignature").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hmacSignature` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hmacSignature").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocusignConfig` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("integrationKey") != null && !jsonObj.get("integrationKey").isJsonNull()) + && !jsonObj.get("integrationKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `integrationKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("integrationKey").toString())); + } + if ((jsonObj.get("rsaPrivateKey") != null && !jsonObj.get("rsaPrivateKey").isJsonNull()) + && !jsonObj.get("rsaPrivateKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `rsaPrivateKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("rsaPrivateKey").toString())); + } + if ((jsonObj.get("hmacSignature") != null && !jsonObj.get("hmacSignature").isJsonNull()) + && !jsonObj.get("hmacSignature").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `hmacSignature` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("hmacSignature").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignConfig.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignConfig' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocusignConfig.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignConfig value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignConfig read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocusignConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignConfig read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignEnvironment.java b/src/main/java/com/formkiq/client/model/DocusignEnvironment.java index e2ddd1064..03a39574d 100644 --- a/src/main/java/com/formkiq/client/model/DocusignEnvironment.java +++ b/src/main/java/com/formkiq/client/model/DocusignEnvironment.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(DocusignEnvironment.Adapter.class) public enum DocusignEnvironment { - + PRODUCTION("PRODUCTION"), - + DEVELOPMENT("DEVELOPMENT"); private String value; @@ -61,7 +68,8 @@ public static DocusignEnvironment fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final DocusignEnvironment enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final DocusignEnvironment enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java b/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java index a0506f358..75b027906 100644 --- a/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java +++ b/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * DocusignInpersonSigner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocusignInpersonSigner { public static final String SERIALIZED_NAME_HOST_EMAIL = "hostEmail"; @SerializedName(SERIALIZED_NAME_HOST_EMAIL) @@ -93,8 +102,7 @@ public class DocusignInpersonSigner { @javax.annotation.Nullable private DocusignSigningTabs tabs; - public DocusignInpersonSigner() { - } + public DocusignInpersonSigner() {} public DocusignInpersonSigner hostEmail(@javax.annotation.Nonnull String hostEmail) { this.hostEmail = hostEmail; @@ -103,6 +111,7 @@ public DocusignInpersonSigner hostEmail(@javax.annotation.Nonnull String hostEma /** * The email of the signing host + * * @return hostEmail */ @javax.annotation.Nonnull @@ -122,6 +131,7 @@ public DocusignInpersonSigner hostName(@javax.annotation.Nonnull String hostName /** * The name of the signing host + * * @return hostName */ @javax.annotation.Nonnull @@ -141,6 +151,7 @@ public DocusignInpersonSigner signerName(@javax.annotation.Nonnull String signer /** * The full legal name of a signer + * * @return signerName */ @javax.annotation.Nonnull @@ -160,6 +171,7 @@ public DocusignInpersonSigner signerEmail(@javax.annotation.Nullable String sign /** * The in-person signer's email address + * * @return signerEmail */ @javax.annotation.Nullable @@ -179,6 +191,7 @@ public DocusignInpersonSigner recipientId(@javax.annotation.Nullable String reci /** * A reference used to map recipients to other objects, such as specific document tabs. + * * @return recipientId */ @javax.annotation.Nullable @@ -198,6 +211,7 @@ public DocusignInpersonSigner routingOrder(@javax.annotation.Nullable String rou /** * Specifies the routing order of the recipient in the envelope. + * * @return routingOrder */ @javax.annotation.Nullable @@ -216,7 +230,9 @@ public DocusignInpersonSigner suppressEmails(@javax.annotation.Nullable String s } /** - * When true, email notifications are suppressed for the recipient, and they must access envelopes and documents from their Docusign inbox. + * When true, email notifications are suppressed for the recipient, and they must access envelopes + * and documents from their Docusign inbox. + * * @return suppressEmails */ @javax.annotation.Nullable @@ -236,6 +252,7 @@ public DocusignInpersonSigner tabs(@javax.annotation.Nullable DocusignSigningTab /** * Get tabs + * * @return tabs */ @javax.annotation.Nullable @@ -258,19 +275,20 @@ public boolean equals(Object o) { return false; } DocusignInpersonSigner docusignInpersonSigner = (DocusignInpersonSigner) o; - return Objects.equals(this.hostEmail, docusignInpersonSigner.hostEmail) && - Objects.equals(this.hostName, docusignInpersonSigner.hostName) && - Objects.equals(this.signerName, docusignInpersonSigner.signerName) && - Objects.equals(this.signerEmail, docusignInpersonSigner.signerEmail) && - Objects.equals(this.recipientId, docusignInpersonSigner.recipientId) && - Objects.equals(this.routingOrder, docusignInpersonSigner.routingOrder) && - Objects.equals(this.suppressEmails, docusignInpersonSigner.suppressEmails) && - Objects.equals(this.tabs, docusignInpersonSigner.tabs); + return Objects.equals(this.hostEmail, docusignInpersonSigner.hostEmail) + && Objects.equals(this.hostName, docusignInpersonSigner.hostName) + && Objects.equals(this.signerName, docusignInpersonSigner.signerName) + && Objects.equals(this.signerEmail, docusignInpersonSigner.signerEmail) + && Objects.equals(this.recipientId, docusignInpersonSigner.recipientId) + && Objects.equals(this.routingOrder, docusignInpersonSigner.routingOrder) + && Objects.equals(this.suppressEmails, docusignInpersonSigner.suppressEmails) + && Objects.equals(this.tabs, docusignInpersonSigner.tabs); } @Override public int hashCode() { - return Objects.hash(hostEmail, hostName, signerName, signerEmail, recipientId, routingOrder, suppressEmails, tabs); + return Objects.hash(hostEmail, hostName, signerName, signerEmail, recipientId, routingOrder, + suppressEmails, tabs); } @Override @@ -290,8 +308,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -306,10 +323,12 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("hostEmail", "hostName", "signerName", "signerEmail", "recipientId", "routingOrder", "suppressEmails", "tabs")); + openapiFields = new HashSet(Arrays.asList("hostEmail", "hostName", "signerName", + "signerEmail", "recipientId", "routingOrder", "suppressEmails", "tabs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("hostEmail", "hostName", "signerName")); + openapiRequiredFields = + new HashSet(Arrays.asList("hostEmail", "hostName", "signerName")); } /** @@ -319,80 +338,105 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignInpersonSigner */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignInpersonSigner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignInpersonSigner is not found in the empty JSON string", DocusignInpersonSigner.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocusignInpersonSigner.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocusignInpersonSigner is not found in the empty JSON string", + DocusignInpersonSigner.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignInpersonSigner.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignInpersonSigner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignInpersonSigner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocusignInpersonSigner` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocusignInpersonSigner.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("hostEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hostEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostEmail").toString())); - } - if (!jsonObj.get("hostName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hostName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostName").toString())); - } - if (!jsonObj.get("signerName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signerName").toString())); - } - if ((jsonObj.get("signerEmail") != null && !jsonObj.get("signerEmail").isJsonNull()) && !jsonObj.get("signerEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signerEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signerEmail").toString())); - } - if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) && !jsonObj.get("recipientId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recipientId").toString())); - } - if ((jsonObj.get("routingOrder") != null && !jsonObj.get("routingOrder").isJsonNull()) && !jsonObj.get("routingOrder").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `routingOrder` to be a primitive type in the JSON string but got `%s`", jsonObj.get("routingOrder").toString())); - } - if ((jsonObj.get("suppressEmails") != null && !jsonObj.get("suppressEmails").isJsonNull()) && !jsonObj.get("suppressEmails").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `suppressEmails` to be a primitive type in the JSON string but got `%s`", jsonObj.get("suppressEmails").toString())); - } - // validate the optional field `tabs` - if (jsonObj.get("tabs") != null && !jsonObj.get("tabs").isJsonNull()) { - DocusignSigningTabs.validateJsonElement(jsonObj.get("tabs")); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocusignInpersonSigner.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("hostEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `hostEmail` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("hostEmail").toString())); + } + if (!jsonObj.get("hostName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `hostName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("hostName").toString())); + } + if (!jsonObj.get("signerName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `signerName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("signerName").toString())); + } + if ((jsonObj.get("signerEmail") != null && !jsonObj.get("signerEmail").isJsonNull()) + && !jsonObj.get("signerEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `signerEmail` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("signerEmail").toString())); + } + if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) + && !jsonObj.get("recipientId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("recipientId").toString())); + } + if ((jsonObj.get("routingOrder") != null && !jsonObj.get("routingOrder").isJsonNull()) + && !jsonObj.get("routingOrder").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `routingOrder` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("routingOrder").toString())); + } + if ((jsonObj.get("suppressEmails") != null && !jsonObj.get("suppressEmails").isJsonNull()) + && !jsonObj.get("suppressEmails").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `suppressEmails` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("suppressEmails").toString())); + } + // validate the optional field `tabs` + if (jsonObj.get("tabs") != null && !jsonObj.get("tabs").isJsonNull()) { + DocusignSigningTabs.validateJsonElement(jsonObj.get("tabs")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignInpersonSigner.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignInpersonSigner' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocusignInpersonSigner.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignInpersonSigner value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignInpersonSigner read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignInpersonSigner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignInpersonSigner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocusignInpersonSigner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignInpersonSigner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignInpersonSigner read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignNotification.java b/src/main/java/com/formkiq/client/model/DocusignNotification.java index bd2ff7119..bb97cb3ae 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotification.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotification.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * DocusignNotification */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocusignNotification { public static final String SERIALIZED_NAME_USE_ACCOUNT_DEFAULTS = "useAccountDefaults"; @SerializedName(SERIALIZED_NAME_USE_ACCOUNT_DEFAULTS) @@ -69,16 +78,19 @@ public class DocusignNotification { @javax.annotation.Nullable private DocusignNotificationReminders reminders; - public DocusignNotification() { - } + public DocusignNotification() {} - public DocusignNotification useAccountDefaults(@javax.annotation.Nullable String useAccountDefaults) { + public DocusignNotification useAccountDefaults( + @javax.annotation.Nullable String useAccountDefaults) { this.useAccountDefaults = useAccountDefaults; return this; } /** - * When true, the account default notification settings are used for the envelope, overriding the reminders and expirations settings. When false, the reminders and expirations settings specified in this request are used. The default value is false. + * When true, the account default notification settings are used for the envelope, overriding the + * reminders and expirations settings. When false, the reminders and expirations settings + * specified in this request are used. The default value is false. + * * @return useAccountDefaults */ @javax.annotation.Nullable @@ -91,13 +103,15 @@ public void setUseAccountDefaults(@javax.annotation.Nullable String useAccountDe } - public DocusignNotification expirations(@javax.annotation.Nullable DocusignNotificationExpirations expirations) { + public DocusignNotification expirations( + @javax.annotation.Nullable DocusignNotificationExpirations expirations) { this.expirations = expirations; return this; } /** * Get expirations + * * @return expirations */ @javax.annotation.Nullable @@ -105,18 +119,21 @@ public DocusignNotificationExpirations getExpirations() { return expirations; } - public void setExpirations(@javax.annotation.Nullable DocusignNotificationExpirations expirations) { + public void setExpirations( + @javax.annotation.Nullable DocusignNotificationExpirations expirations) { this.expirations = expirations; } - public DocusignNotification reminders(@javax.annotation.Nullable DocusignNotificationReminders reminders) { + public DocusignNotification reminders( + @javax.annotation.Nullable DocusignNotificationReminders reminders) { this.reminders = reminders; return this; } /** * Get reminders + * * @return reminders */ @javax.annotation.Nullable @@ -139,9 +156,9 @@ public boolean equals(Object o) { return false; } DocusignNotification docusignNotification = (DocusignNotification) o; - return Objects.equals(this.useAccountDefaults, docusignNotification.useAccountDefaults) && - Objects.equals(this.expirations, docusignNotification.expirations) && - Objects.equals(this.reminders, docusignNotification.reminders); + return Objects.equals(this.useAccountDefaults, docusignNotification.useAccountDefaults) + && Objects.equals(this.expirations, docusignNotification.expirations) + && Objects.equals(this.reminders, docusignNotification.reminders); } @Override @@ -161,8 +178,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -177,7 +193,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("useAccountDefaults", "expirations", "reminders")); + openapiFields = + new HashSet(Arrays.asList("useAccountDefaults", "expirations", "reminders")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -190,59 +207,68 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignNotification */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignNotification.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignNotification is not found in the empty JSON string", DocusignNotification.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocusignNotification.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocusignNotification is not found in the empty JSON string", + DocusignNotification.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignNotification.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignNotification` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("useAccountDefaults") != null && !jsonObj.get("useAccountDefaults").isJsonNull()) && !jsonObj.get("useAccountDefaults").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `useAccountDefaults` to be a primitive type in the JSON string but got `%s`", jsonObj.get("useAccountDefaults").toString())); - } - // validate the optional field `expirations` - if (jsonObj.get("expirations") != null && !jsonObj.get("expirations").isJsonNull()) { - DocusignNotificationExpirations.validateJsonElement(jsonObj.get("expirations")); - } - // validate the optional field `reminders` - if (jsonObj.get("reminders") != null && !jsonObj.get("reminders").isJsonNull()) { - DocusignNotificationReminders.validateJsonElement(jsonObj.get("reminders")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignNotification.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocusignNotification` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("useAccountDefaults") != null + && !jsonObj.get("useAccountDefaults").isJsonNull()) + && !jsonObj.get("useAccountDefaults").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `useAccountDefaults` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("useAccountDefaults").toString())); + } + // validate the optional field `expirations` + if (jsonObj.get("expirations") != null && !jsonObj.get("expirations").isJsonNull()) { + DocusignNotificationExpirations.validateJsonElement(jsonObj.get("expirations")); + } + // validate the optional field `reminders` + if (jsonObj.get("reminders") != null && !jsonObj.get("reminders").isJsonNull()) { + DocusignNotificationReminders.validateJsonElement(jsonObj.get("reminders")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignNotification.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignNotification' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocusignNotification.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignNotification value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignNotification read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignNotification.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignNotification' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocusignNotification.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignNotification value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignNotification read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java b/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java index 2fc982595..d2e7515ba 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * DocusignNotificationExpirations */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocusignNotificationExpirations { public static final String SERIALIZED_NAME_EXPIRE_AFTER = "expireAfter"; @SerializedName(SERIALIZED_NAME_EXPIRE_AFTER) @@ -67,16 +76,18 @@ public class DocusignNotificationExpirations { @javax.annotation.Nullable private String expireWarn; - public DocusignNotificationExpirations() { - } + public DocusignNotificationExpirations() {} - public DocusignNotificationExpirations expireAfter(@javax.annotation.Nullable String expireAfter) { + public DocusignNotificationExpirations expireAfter( + @javax.annotation.Nullable String expireAfter) { this.expireAfter = expireAfter; return this; } /** - * An integer that sets the number of days the envelope is active. For this value to be used, expireEnabled must be explicitly set to true. + * An integer that sets the number of days the envelope is active. For this value to be used, + * expireEnabled must be explicitly set to true. + * * @return expireAfter */ @javax.annotation.Nullable @@ -89,13 +100,15 @@ public void setExpireAfter(@javax.annotation.Nullable String expireAfter) { } - public DocusignNotificationExpirations expireEnabled(@javax.annotation.Nullable String expireEnabled) { + public DocusignNotificationExpirations expireEnabled( + @javax.annotation.Nullable String expireEnabled) { this.expireEnabled = expireEnabled; return this; } /** * When true, the envelope expires in the number of days set by expireAfter. + * * @return expireEnabled */ @javax.annotation.Nullable @@ -114,7 +127,9 @@ public DocusignNotificationExpirations expireWarn(@javax.annotation.Nullable Str } /** - * An integer that specifying the number of days before the envelope expires that an expiration warning email is sent to the recipient. + * An integer that specifying the number of days before the envelope expires that an expiration + * warning email is sent to the recipient. + * * @return expireWarn */ @javax.annotation.Nullable @@ -136,10 +151,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DocusignNotificationExpirations docusignNotificationExpirations = (DocusignNotificationExpirations) o; - return Objects.equals(this.expireAfter, docusignNotificationExpirations.expireAfter) && - Objects.equals(this.expireEnabled, docusignNotificationExpirations.expireEnabled) && - Objects.equals(this.expireWarn, docusignNotificationExpirations.expireWarn); + DocusignNotificationExpirations docusignNotificationExpirations = + (DocusignNotificationExpirations) o; + return Objects.equals(this.expireAfter, docusignNotificationExpirations.expireAfter) + && Objects.equals(this.expireEnabled, docusignNotificationExpirations.expireEnabled) + && Objects.equals(this.expireWarn, docusignNotificationExpirations.expireWarn); } @Override @@ -159,8 +175,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +190,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("expireAfter", "expireEnabled", "expireWarn")); + openapiFields = + new HashSet(Arrays.asList("expireAfter", "expireEnabled", "expireWarn")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -185,60 +201,78 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DocusignNotificationExpirations + * @throws IOException if the JSON Element is invalid with respect to + * DocusignNotificationExpirations */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignNotificationExpirations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignNotificationExpirations is not found in the empty JSON string", DocusignNotificationExpirations.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocusignNotificationExpirations.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocusignNotificationExpirations is not found in the empty JSON string", + DocusignNotificationExpirations.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignNotificationExpirations.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignNotificationExpirations` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("expireAfter") != null && !jsonObj.get("expireAfter").isJsonNull()) && !jsonObj.get("expireAfter").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expireAfter` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expireAfter").toString())); - } - if ((jsonObj.get("expireEnabled") != null && !jsonObj.get("expireEnabled").isJsonNull()) && !jsonObj.get("expireEnabled").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expireEnabled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expireEnabled").toString())); - } - if ((jsonObj.get("expireWarn") != null && !jsonObj.get("expireWarn").isJsonNull()) && !jsonObj.get("expireWarn").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expireWarn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expireWarn").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignNotificationExpirations.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocusignNotificationExpirations` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("expireAfter") != null && !jsonObj.get("expireAfter").isJsonNull()) + && !jsonObj.get("expireAfter").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `expireAfter` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("expireAfter").toString())); + } + if ((jsonObj.get("expireEnabled") != null && !jsonObj.get("expireEnabled").isJsonNull()) + && !jsonObj.get("expireEnabled").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `expireEnabled` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("expireEnabled").toString())); + } + if ((jsonObj.get("expireWarn") != null && !jsonObj.get("expireWarn").isJsonNull()) + && !jsonObj.get("expireWarn").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `expireWarn` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("expireWarn").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignNotificationExpirations.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignNotificationExpirations' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocusignNotificationExpirations.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignNotificationExpirations value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignNotificationExpirations read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignNotificationExpirations.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignNotificationExpirations' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocusignNotificationExpirations.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignNotificationExpirations value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignNotificationExpirations read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -247,7 +281,8 @@ public DocusignNotificationExpirations read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of DocusignNotificationExpirations - * @throws IOException if the JSON string is invalid with respect to DocusignNotificationExpirations + * @throws IOException if the JSON string is invalid with respect to + * DocusignNotificationExpirations */ public static DocusignNotificationExpirations fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DocusignNotificationExpirations.class); diff --git a/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java b/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java index 2969254d5..c4169cbe0 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * DocusignNotificationReminders */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocusignNotificationReminders { public static final String SERIALIZED_NAME_REMINDER_DELAY = "reminderDelay"; @SerializedName(SERIALIZED_NAME_REMINDER_DELAY) @@ -67,16 +76,18 @@ public class DocusignNotificationReminders { @javax.annotation.Nullable private String reminderFrequency; - public DocusignNotificationReminders() { - } + public DocusignNotificationReminders() {} - public DocusignNotificationReminders reminderDelay(@javax.annotation.Nullable String reminderDelay) { + public DocusignNotificationReminders reminderDelay( + @javax.annotation.Nullable String reminderDelay) { this.reminderDelay = reminderDelay; return this; } /** - * An integer specifying the number of days after the recipient receives the envelope that reminder emails are sent to the recipient. + * An integer specifying the number of days after the recipient receives the envelope that + * reminder emails are sent to the recipient. + * * @return reminderDelay */ @javax.annotation.Nullable @@ -89,13 +100,15 @@ public void setReminderDelay(@javax.annotation.Nullable String reminderDelay) { } - public DocusignNotificationReminders reminderEnabled(@javax.annotation.Nullable String reminderEnabled) { + public DocusignNotificationReminders reminderEnabled( + @javax.annotation.Nullable String reminderEnabled) { this.reminderEnabled = reminderEnabled; return this; } /** * When true, reminders are enabled. The default value is false. + * * @return reminderEnabled */ @javax.annotation.Nullable @@ -108,13 +121,15 @@ public void setReminderEnabled(@javax.annotation.Nullable String reminderEnabled } - public DocusignNotificationReminders reminderFrequency(@javax.annotation.Nullable String reminderFrequency) { + public DocusignNotificationReminders reminderFrequency( + @javax.annotation.Nullable String reminderFrequency) { this.reminderFrequency = reminderFrequency; return this; } /** * An integer specifying the interval in days between reminder emails. + * * @return reminderFrequency */ @javax.annotation.Nullable @@ -137,9 +152,9 @@ public boolean equals(Object o) { return false; } DocusignNotificationReminders docusignNotificationReminders = (DocusignNotificationReminders) o; - return Objects.equals(this.reminderDelay, docusignNotificationReminders.reminderDelay) && - Objects.equals(this.reminderEnabled, docusignNotificationReminders.reminderEnabled) && - Objects.equals(this.reminderFrequency, docusignNotificationReminders.reminderFrequency); + return Objects.equals(this.reminderDelay, docusignNotificationReminders.reminderDelay) + && Objects.equals(this.reminderEnabled, docusignNotificationReminders.reminderEnabled) + && Objects.equals(this.reminderFrequency, docusignNotificationReminders.reminderFrequency); } @Override @@ -159,8 +174,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -175,7 +189,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("reminderDelay", "reminderEnabled", "reminderFrequency")); + openapiFields = + new HashSet(Arrays.asList("reminderDelay", "reminderEnabled", "reminderFrequency")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -185,60 +200,76 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DocusignNotificationReminders + * @throws IOException if the JSON Element is invalid with respect to + * DocusignNotificationReminders */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignNotificationReminders.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignNotificationReminders is not found in the empty JSON string", DocusignNotificationReminders.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocusignNotificationReminders.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocusignNotificationReminders is not found in the empty JSON string", + DocusignNotificationReminders.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignNotificationReminders.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignNotificationReminders` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("reminderDelay") != null && !jsonObj.get("reminderDelay").isJsonNull()) && !jsonObj.get("reminderDelay").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reminderDelay` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reminderDelay").toString())); - } - if ((jsonObj.get("reminderEnabled") != null && !jsonObj.get("reminderEnabled").isJsonNull()) && !jsonObj.get("reminderEnabled").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reminderEnabled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reminderEnabled").toString())); - } - if ((jsonObj.get("reminderFrequency") != null && !jsonObj.get("reminderFrequency").isJsonNull()) && !jsonObj.get("reminderFrequency").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reminderFrequency` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reminderFrequency").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignNotificationReminders.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocusignNotificationReminders` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("reminderDelay") != null && !jsonObj.get("reminderDelay").isJsonNull()) + && !jsonObj.get("reminderDelay").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `reminderDelay` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("reminderDelay").toString())); + } + if ((jsonObj.get("reminderEnabled") != null && !jsonObj.get("reminderEnabled").isJsonNull()) + && !jsonObj.get("reminderEnabled").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `reminderEnabled` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("reminderEnabled").toString())); + } + if ((jsonObj.get("reminderFrequency") != null && !jsonObj.get("reminderFrequency").isJsonNull()) + && !jsonObj.get("reminderFrequency").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `reminderFrequency` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("reminderFrequency").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignNotificationReminders.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignNotificationReminders' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocusignNotificationReminders.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignNotificationReminders value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignNotificationReminders read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignNotificationReminders.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignNotificationReminders' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocusignNotificationReminders.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignNotificationReminders value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignNotificationReminders read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignRecipientView.java b/src/main/java/com/formkiq/client/model/DocusignRecipientView.java index 88bb1580b..2266ed73a 100644 --- a/src/main/java/com/formkiq/client/model/DocusignRecipientView.java +++ b/src/main/java/com/formkiq/client/model/DocusignRecipientView.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * DocusignRecipientView */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocusignRecipientView { public static final String SERIALIZED_NAME_RETURN_URL = "returnUrl"; @SerializedName(SERIALIZED_NAME_RETURN_URL) @@ -89,8 +98,7 @@ public class DocusignRecipientView { @javax.annotation.Nullable private List messageOrigins = new ArrayList<>(); - public DocusignRecipientView() { - } + public DocusignRecipientView() {} public DocusignRecipientView returnUrl(@javax.annotation.Nullable String returnUrl) { this.returnUrl = returnUrl; @@ -99,6 +107,7 @@ public DocusignRecipientView returnUrl(@javax.annotation.Nullable String returnU /** * Identifies the return point after sending the envelope + * * @return returnUrl */ @javax.annotation.Nullable @@ -118,6 +127,7 @@ public DocusignRecipientView recipientId(@javax.annotation.Nullable String recip /** * A reference used to map recipients to other objects, such as specific document tabs. + * * @return recipientId */ @javax.annotation.Nullable @@ -137,6 +147,7 @@ public DocusignRecipientView userName(@javax.annotation.Nullable String userName /** * The username of the recipient. You can use either email and userName. + * * @return userName */ @javax.annotation.Nullable @@ -156,6 +167,7 @@ public DocusignRecipientView clientUserId(@javax.annotation.Nullable String clie /** * Specifies unique identifier for signer + * * @return clientUserId */ @javax.annotation.Nullable @@ -175,6 +187,7 @@ public DocusignRecipientView email(@javax.annotation.Nullable String email) { /** * Specifies the email of the recipient + * * @return email */ @javax.annotation.Nullable @@ -187,7 +200,8 @@ public void setEmail(@javax.annotation.Nullable String email) { } - public DocusignRecipientView frameAncestors(@javax.annotation.Nullable List frameAncestors) { + public DocusignRecipientView frameAncestors( + @javax.annotation.Nullable List frameAncestors) { this.frameAncestors = frameAncestors; return this; } @@ -201,7 +215,9 @@ public DocusignRecipientView addFrameAncestorsItem(String frameAncestorsItem) { } /** - * An array of ancestors that can embed the frame. Include the domain where the envelope will be embedded and the same URL as messageOrigins. + * An array of ancestors that can embed the frame. Include the domain where the envelope will be + * embedded and the same URL as messageOrigins. + * * @return frameAncestors */ @javax.annotation.Nullable @@ -214,7 +230,8 @@ public void setFrameAncestors(@javax.annotation.Nullable List frameAnces } - public DocusignRecipientView messageOrigins(@javax.annotation.Nullable List messageOrigins) { + public DocusignRecipientView messageOrigins( + @javax.annotation.Nullable List messageOrigins) { this.messageOrigins = messageOrigins; return this; } @@ -229,6 +246,7 @@ public DocusignRecipientView addMessageOriginsItem(String messageOriginsItem) { /** * The originating domain for the signature request message + * * @return messageOrigins */ @javax.annotation.Nullable @@ -251,18 +269,19 @@ public boolean equals(Object o) { return false; } DocusignRecipientView docusignRecipientView = (DocusignRecipientView) o; - return Objects.equals(this.returnUrl, docusignRecipientView.returnUrl) && - Objects.equals(this.recipientId, docusignRecipientView.recipientId) && - Objects.equals(this.userName, docusignRecipientView.userName) && - Objects.equals(this.clientUserId, docusignRecipientView.clientUserId) && - Objects.equals(this.email, docusignRecipientView.email) && - Objects.equals(this.frameAncestors, docusignRecipientView.frameAncestors) && - Objects.equals(this.messageOrigins, docusignRecipientView.messageOrigins); + return Objects.equals(this.returnUrl, docusignRecipientView.returnUrl) + && Objects.equals(this.recipientId, docusignRecipientView.recipientId) + && Objects.equals(this.userName, docusignRecipientView.userName) + && Objects.equals(this.clientUserId, docusignRecipientView.clientUserId) + && Objects.equals(this.email, docusignRecipientView.email) + && Objects.equals(this.frameAncestors, docusignRecipientView.frameAncestors) + && Objects.equals(this.messageOrigins, docusignRecipientView.messageOrigins); } @Override public int hashCode() { - return Objects.hash(returnUrl, recipientId, userName, clientUserId, email, frameAncestors, messageOrigins); + return Objects.hash(returnUrl, recipientId, userName, clientUserId, email, frameAncestors, + messageOrigins); } @Override @@ -281,8 +300,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -297,7 +315,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("returnUrl", "recipientId", "userName", "clientUserId", "email", "frameAncestors", "messageOrigins")); + openapiFields = new HashSet(Arrays.asList("returnUrl", "recipientId", "userName", + "clientUserId", "email", "frameAncestors", "messageOrigins")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -310,71 +329,97 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignRecipientView */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignRecipientView.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignRecipientView is not found in the empty JSON string", DocusignRecipientView.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocusignRecipientView.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocusignRecipientView is not found in the empty JSON string", + DocusignRecipientView.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignRecipientView.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignRecipientView` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("returnUrl") != null && !jsonObj.get("returnUrl").isJsonNull()) && !jsonObj.get("returnUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `returnUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("returnUrl").toString())); - } - if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) && !jsonObj.get("recipientId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recipientId").toString())); - } - if ((jsonObj.get("userName") != null && !jsonObj.get("userName").isJsonNull()) && !jsonObj.get("userName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userName").toString())); - } - if ((jsonObj.get("clientUserId") != null && !jsonObj.get("clientUserId").isJsonNull()) && !jsonObj.get("clientUserId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `clientUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientUserId").toString())); - } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("frameAncestors") != null && !jsonObj.get("frameAncestors").isJsonNull() && !jsonObj.get("frameAncestors").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `frameAncestors` to be an array in the JSON string but got `%s`", jsonObj.get("frameAncestors").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("messageOrigins") != null && !jsonObj.get("messageOrigins").isJsonNull() && !jsonObj.get("messageOrigins").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `messageOrigins` to be an array in the JSON string but got `%s`", jsonObj.get("messageOrigins").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignRecipientView.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocusignRecipientView` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("returnUrl") != null && !jsonObj.get("returnUrl").isJsonNull()) + && !jsonObj.get("returnUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `returnUrl` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("returnUrl").toString())); + } + if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) + && !jsonObj.get("recipientId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("recipientId").toString())); + } + if ((jsonObj.get("userName") != null && !jsonObj.get("userName").isJsonNull()) + && !jsonObj.get("userName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userName").toString())); + } + if ((jsonObj.get("clientUserId") != null && !jsonObj.get("clientUserId").isJsonNull()) + && !jsonObj.get("clientUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `clientUserId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("clientUserId").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) + && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `email` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("email").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("frameAncestors") != null && !jsonObj.get("frameAncestors").isJsonNull() + && !jsonObj.get("frameAncestors").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `frameAncestors` to be an array in the JSON string but got `%s`", + jsonObj.get("frameAncestors").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("messageOrigins") != null && !jsonObj.get("messageOrigins").isJsonNull() + && !jsonObj.get("messageOrigins").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `messageOrigins` to be an array in the JSON string but got `%s`", + jsonObj.get("messageOrigins").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignRecipientView.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignRecipientView' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocusignRecipientView.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignRecipientView value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignRecipientView read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignRecipientView.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignRecipientView' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocusignRecipientView.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignRecipientView value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignRecipientView read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java b/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java index ea5869bc5..8c76c894f 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java +++ b/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * DocusignSignHereTabs */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocusignSignHereTabs { public static final String SERIALIZED_NAME_ANCHOR_STRING = "anchorString"; @SerializedName(SERIALIZED_NAME_ANCHOR_STRING) @@ -67,7 +76,8 @@ public class DocusignSignHereTabs { @javax.annotation.Nullable private String anchorYOffset; - public static final String SERIALIZED_NAME_ANCHOR_IGNORE_IF_NOT_PRESENT = "anchorIgnoreIfNotPresent"; + public static final String SERIALIZED_NAME_ANCHOR_IGNORE_IF_NOT_PRESENT = + "anchorIgnoreIfNotPresent"; @SerializedName(SERIALIZED_NAME_ANCHOR_IGNORE_IF_NOT_PRESENT) @javax.annotation.Nullable private String anchorIgnoreIfNotPresent; @@ -92,8 +102,7 @@ public class DocusignSignHereTabs { @javax.annotation.Nullable private String pageNumber; - public DocusignSignHereTabs() { - } + public DocusignSignHereTabs() {} public DocusignSignHereTabs anchorString(@javax.annotation.Nullable String anchorString) { this.anchorString = anchorString; @@ -102,6 +111,7 @@ public DocusignSignHereTabs anchorString(@javax.annotation.Nullable String ancho /** * Specifies the string to find in the document and use as the basis for tab placement. + * * @return anchorString */ @javax.annotation.Nullable @@ -121,6 +131,7 @@ public DocusignSignHereTabs anchorXOffset(@javax.annotation.Nullable String anch /** * Specifies the X axis location of the tab in anchorUnits relative to the anchorString. + * * @return anchorXOffset */ @javax.annotation.Nullable @@ -140,6 +151,7 @@ public DocusignSignHereTabs anchorYOffset(@javax.annotation.Nullable String anch /** * Specifies the Y axis location of the tab in anchorUnits relative to the anchorString. + * * @return anchorYOffset */ @javax.annotation.Nullable @@ -152,13 +164,15 @@ public void setAnchorYOffset(@javax.annotation.Nullable String anchorYOffset) { } - public DocusignSignHereTabs anchorIgnoreIfNotPresent(@javax.annotation.Nullable String anchorIgnoreIfNotPresent) { + public DocusignSignHereTabs anchorIgnoreIfNotPresent( + @javax.annotation.Nullable String anchorIgnoreIfNotPresent) { this.anchorIgnoreIfNotPresent = anchorIgnoreIfNotPresent; return this; } /** * When true, this tab is ignored if the anchorString is not found in the document. + * * @return anchorIgnoreIfNotPresent */ @javax.annotation.Nullable @@ -166,7 +180,8 @@ public String getAnchorIgnoreIfNotPresent() { return anchorIgnoreIfNotPresent; } - public void setAnchorIgnoreIfNotPresent(@javax.annotation.Nullable String anchorIgnoreIfNotPresent) { + public void setAnchorIgnoreIfNotPresent( + @javax.annotation.Nullable String anchorIgnoreIfNotPresent) { this.anchorIgnoreIfNotPresent = anchorIgnoreIfNotPresent; } @@ -178,6 +193,7 @@ public DocusignSignHereTabs anchorUnits(@javax.annotation.Nullable String anchor /** * Specifies units of the anchorXOffset and anchorYOffset + * * @return anchorUnits */ @javax.annotation.Nullable @@ -197,6 +213,7 @@ public DocusignSignHereTabs xPosition(@javax.annotation.Nullable String xPositio /** * This property indicates the horizontal offset of the object on the page + * * @return xPosition */ @javax.annotation.Nullable @@ -216,6 +233,7 @@ public DocusignSignHereTabs yPosition(@javax.annotation.Nullable String yPositio /** * This property indicates the vertical offset of the object on the page + * * @return yPosition */ @javax.annotation.Nullable @@ -235,6 +253,7 @@ public DocusignSignHereTabs pageNumber(@javax.annotation.Nullable String pageNum /** * Specifies the page number on which the tab is located + * * @return pageNumber */ @javax.annotation.Nullable @@ -257,19 +276,21 @@ public boolean equals(Object o) { return false; } DocusignSignHereTabs docusignSignHereTabs = (DocusignSignHereTabs) o; - return Objects.equals(this.anchorString, docusignSignHereTabs.anchorString) && - Objects.equals(this.anchorXOffset, docusignSignHereTabs.anchorXOffset) && - Objects.equals(this.anchorYOffset, docusignSignHereTabs.anchorYOffset) && - Objects.equals(this.anchorIgnoreIfNotPresent, docusignSignHereTabs.anchorIgnoreIfNotPresent) && - Objects.equals(this.anchorUnits, docusignSignHereTabs.anchorUnits) && - Objects.equals(this.xPosition, docusignSignHereTabs.xPosition) && - Objects.equals(this.yPosition, docusignSignHereTabs.yPosition) && - Objects.equals(this.pageNumber, docusignSignHereTabs.pageNumber); + return Objects.equals(this.anchorString, docusignSignHereTabs.anchorString) + && Objects.equals(this.anchorXOffset, docusignSignHereTabs.anchorXOffset) + && Objects.equals(this.anchorYOffset, docusignSignHereTabs.anchorYOffset) + && Objects.equals(this.anchorIgnoreIfNotPresent, + docusignSignHereTabs.anchorIgnoreIfNotPresent) + && Objects.equals(this.anchorUnits, docusignSignHereTabs.anchorUnits) + && Objects.equals(this.xPosition, docusignSignHereTabs.xPosition) + && Objects.equals(this.yPosition, docusignSignHereTabs.yPosition) + && Objects.equals(this.pageNumber, docusignSignHereTabs.pageNumber); } @Override public int hashCode() { - return Objects.hash(anchorString, anchorXOffset, anchorYOffset, anchorIgnoreIfNotPresent, anchorUnits, xPosition, yPosition, pageNumber); + return Objects.hash(anchorString, anchorXOffset, anchorYOffset, anchorIgnoreIfNotPresent, + anchorUnits, xPosition, yPosition, pageNumber); } @Override @@ -279,7 +300,8 @@ public String toString() { sb.append(" anchorString: ").append(toIndentedString(anchorString)).append("\n"); sb.append(" anchorXOffset: ").append(toIndentedString(anchorXOffset)).append("\n"); sb.append(" anchorYOffset: ").append(toIndentedString(anchorYOffset)).append("\n"); - sb.append(" anchorIgnoreIfNotPresent: ").append(toIndentedString(anchorIgnoreIfNotPresent)).append("\n"); + sb.append(" anchorIgnoreIfNotPresent: ").append(toIndentedString(anchorIgnoreIfNotPresent)) + .append("\n"); sb.append(" anchorUnits: ").append(toIndentedString(anchorUnits)).append("\n"); sb.append(" xPosition: ").append(toIndentedString(xPosition)).append("\n"); sb.append(" yPosition: ").append(toIndentedString(yPosition)).append("\n"); @@ -289,8 +311,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -305,7 +326,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("anchorString", "anchorXOffset", "anchorYOffset", "anchorIgnoreIfNotPresent", "anchorUnits", "xPosition", "yPosition", "pageNumber")); + openapiFields = + new HashSet(Arrays.asList("anchorString", "anchorXOffset", "anchorYOffset", + "anchorIgnoreIfNotPresent", "anchorUnits", "xPosition", "yPosition", "pageNumber")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -318,72 +341,102 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignSignHereTabs */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignSignHereTabs.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignSignHereTabs is not found in the empty JSON string", DocusignSignHereTabs.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocusignSignHereTabs.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocusignSignHereTabs is not found in the empty JSON string", + DocusignSignHereTabs.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignSignHereTabs.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignSignHereTabs` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("anchorString") != null && !jsonObj.get("anchorString").isJsonNull()) && !jsonObj.get("anchorString").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anchorString` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anchorString").toString())); - } - if ((jsonObj.get("anchorXOffset") != null && !jsonObj.get("anchorXOffset").isJsonNull()) && !jsonObj.get("anchorXOffset").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anchorXOffset` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anchorXOffset").toString())); - } - if ((jsonObj.get("anchorYOffset") != null && !jsonObj.get("anchorYOffset").isJsonNull()) && !jsonObj.get("anchorYOffset").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anchorYOffset` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anchorYOffset").toString())); - } - if ((jsonObj.get("anchorIgnoreIfNotPresent") != null && !jsonObj.get("anchorIgnoreIfNotPresent").isJsonNull()) && !jsonObj.get("anchorIgnoreIfNotPresent").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anchorIgnoreIfNotPresent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anchorIgnoreIfNotPresent").toString())); - } - if ((jsonObj.get("anchorUnits") != null && !jsonObj.get("anchorUnits").isJsonNull()) && !jsonObj.get("anchorUnits").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anchorUnits` to be a primitive type in the JSON string but got `%s`", jsonObj.get("anchorUnits").toString())); - } - if ((jsonObj.get("xPosition") != null && !jsonObj.get("xPosition").isJsonNull()) && !jsonObj.get("xPosition").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `xPosition` to be a primitive type in the JSON string but got `%s`", jsonObj.get("xPosition").toString())); - } - if ((jsonObj.get("yPosition") != null && !jsonObj.get("yPosition").isJsonNull()) && !jsonObj.get("yPosition").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `yPosition` to be a primitive type in the JSON string but got `%s`", jsonObj.get("yPosition").toString())); - } - if ((jsonObj.get("pageNumber") != null && !jsonObj.get("pageNumber").isJsonNull()) && !jsonObj.get("pageNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pageNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pageNumber").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignSignHereTabs.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocusignSignHereTabs` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("anchorString") != null && !jsonObj.get("anchorString").isJsonNull()) + && !jsonObj.get("anchorString").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `anchorString` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("anchorString").toString())); + } + if ((jsonObj.get("anchorXOffset") != null && !jsonObj.get("anchorXOffset").isJsonNull()) + && !jsonObj.get("anchorXOffset").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `anchorXOffset` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("anchorXOffset").toString())); + } + if ((jsonObj.get("anchorYOffset") != null && !jsonObj.get("anchorYOffset").isJsonNull()) + && !jsonObj.get("anchorYOffset").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `anchorYOffset` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("anchorYOffset").toString())); + } + if ((jsonObj.get("anchorIgnoreIfNotPresent") != null + && !jsonObj.get("anchorIgnoreIfNotPresent").isJsonNull()) + && !jsonObj.get("anchorIgnoreIfNotPresent").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `anchorIgnoreIfNotPresent` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("anchorIgnoreIfNotPresent").toString())); + } + if ((jsonObj.get("anchorUnits") != null && !jsonObj.get("anchorUnits").isJsonNull()) + && !jsonObj.get("anchorUnits").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `anchorUnits` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("anchorUnits").toString())); + } + if ((jsonObj.get("xPosition") != null && !jsonObj.get("xPosition").isJsonNull()) + && !jsonObj.get("xPosition").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `xPosition` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("xPosition").toString())); + } + if ((jsonObj.get("yPosition") != null && !jsonObj.get("yPosition").isJsonNull()) + && !jsonObj.get("yPosition").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `yPosition` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("yPosition").toString())); + } + if ((jsonObj.get("pageNumber") != null && !jsonObj.get("pageNumber").isJsonNull()) + && !jsonObj.get("pageNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `pageNumber` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("pageNumber").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignSignHereTabs.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignSignHereTabs' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocusignSignHereTabs.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignSignHereTabs value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignSignHereTabs read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignSignHereTabs.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignSignHereTabs' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocusignSignHereTabs.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignSignHereTabs value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignSignHereTabs read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignSigner.java b/src/main/java/com/formkiq/client/model/DocusignSigner.java index e09f2ea33..43b3adaff 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSigner.java +++ b/src/main/java/com/formkiq/client/model/DocusignSigner.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * DocusignSigner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocusignSigner { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -88,8 +97,7 @@ public class DocusignSigner { @javax.annotation.Nullable private DocusignSigningTabs tabs; - public DocusignSigner() { - } + public DocusignSigner() {} public DocusignSigner name(@javax.annotation.Nonnull String name) { this.name = name; @@ -98,6 +106,7 @@ public DocusignSigner name(@javax.annotation.Nonnull String name) { /** * Name of Signer + * * @return name */ @javax.annotation.Nonnull @@ -117,6 +126,7 @@ public DocusignSigner email(@javax.annotation.Nullable String email) { /** * Email of Signer + * * @return email */ @javax.annotation.Nullable @@ -136,6 +146,7 @@ public DocusignSigner clientUserId(@javax.annotation.Nullable String clientUserI /** * Specifies unique identifier for signer + * * @return clientUserId */ @javax.annotation.Nullable @@ -155,6 +166,7 @@ public DocusignSigner recipientId(@javax.annotation.Nullable String recipientId) /** * A reference used to map recipients to other objects, such as specific document tabs. + * * @return recipientId */ @javax.annotation.Nullable @@ -174,6 +186,7 @@ public DocusignSigner routingOrder(@javax.annotation.Nullable String routingOrde /** * Specifies the routing order of the recipient in the envelope. + * * @return routingOrder */ @javax.annotation.Nullable @@ -192,7 +205,9 @@ public DocusignSigner suppressEmails(@javax.annotation.Nullable String suppressE } /** - * When true, email notifications are suppressed for the recipient, and they must access envelopes and documents from their Docusign inbox. + * When true, email notifications are suppressed for the recipient, and they must access envelopes + * and documents from their Docusign inbox. + * * @return suppressEmails */ @javax.annotation.Nullable @@ -212,6 +227,7 @@ public DocusignSigner tabs(@javax.annotation.Nullable DocusignSigningTabs tabs) /** * Get tabs + * * @return tabs */ @javax.annotation.Nullable @@ -234,13 +250,13 @@ public boolean equals(Object o) { return false; } DocusignSigner docusignSigner = (DocusignSigner) o; - return Objects.equals(this.name, docusignSigner.name) && - Objects.equals(this.email, docusignSigner.email) && - Objects.equals(this.clientUserId, docusignSigner.clientUserId) && - Objects.equals(this.recipientId, docusignSigner.recipientId) && - Objects.equals(this.routingOrder, docusignSigner.routingOrder) && - Objects.equals(this.suppressEmails, docusignSigner.suppressEmails) && - Objects.equals(this.tabs, docusignSigner.tabs); + return Objects.equals(this.name, docusignSigner.name) + && Objects.equals(this.email, docusignSigner.email) + && Objects.equals(this.clientUserId, docusignSigner.clientUserId) + && Objects.equals(this.recipientId, docusignSigner.recipientId) + && Objects.equals(this.routingOrder, docusignSigner.routingOrder) + && Objects.equals(this.suppressEmails, docusignSigner.suppressEmails) + && Objects.equals(this.tabs, docusignSigner.tabs); } @Override @@ -264,8 +280,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -280,7 +295,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "email", "clientUserId", "recipientId", "routingOrder", "suppressEmails", "tabs")); + openapiFields = new HashSet(Arrays.asList("name", "email", "clientUserId", + "recipientId", "routingOrder", "suppressEmails", "tabs")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); @@ -293,77 +309,101 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignSigner */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignSigner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignSigner is not found in the empty JSON string", DocusignSigner.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocusignSigner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocusignSigner is not found in the empty JSON string", + DocusignSigner.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignSigner.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignSigner` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignSigner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocusignSigner` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DocusignSigner.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); - } - if ((jsonObj.get("clientUserId") != null && !jsonObj.get("clientUserId").isJsonNull()) && !jsonObj.get("clientUserId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `clientUserId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clientUserId").toString())); - } - if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) && !jsonObj.get("recipientId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recipientId").toString())); - } - if ((jsonObj.get("routingOrder") != null && !jsonObj.get("routingOrder").isJsonNull()) && !jsonObj.get("routingOrder").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `routingOrder` to be a primitive type in the JSON string but got `%s`", jsonObj.get("routingOrder").toString())); - } - if ((jsonObj.get("suppressEmails") != null && !jsonObj.get("suppressEmails").isJsonNull()) && !jsonObj.get("suppressEmails").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `suppressEmails` to be a primitive type in the JSON string but got `%s`", jsonObj.get("suppressEmails").toString())); - } - // validate the optional field `tabs` - if (jsonObj.get("tabs") != null && !jsonObj.get("tabs").isJsonNull()) { - DocusignSigningTabs.validateJsonElement(jsonObj.get("tabs")); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : DocusignSigner.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) + && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `email` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("email").toString())); + } + if ((jsonObj.get("clientUserId") != null && !jsonObj.get("clientUserId").isJsonNull()) + && !jsonObj.get("clientUserId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `clientUserId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("clientUserId").toString())); + } + if ((jsonObj.get("recipientId") != null && !jsonObj.get("recipientId").isJsonNull()) + && !jsonObj.get("recipientId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `recipientId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("recipientId").toString())); + } + if ((jsonObj.get("routingOrder") != null && !jsonObj.get("routingOrder").isJsonNull()) + && !jsonObj.get("routingOrder").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `routingOrder` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("routingOrder").toString())); + } + if ((jsonObj.get("suppressEmails") != null && !jsonObj.get("suppressEmails").isJsonNull()) + && !jsonObj.get("suppressEmails").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `suppressEmails` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("suppressEmails").toString())); + } + // validate the optional field `tabs` + if (jsonObj.get("tabs") != null && !jsonObj.get("tabs").isJsonNull()) { + DocusignSigningTabs.validateJsonElement(jsonObj.get("tabs")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignSigner.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignSigner' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocusignSigner.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignSigner value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignSigner read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignSigner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignSigner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocusignSigner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignSigner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignSigner read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java b/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java index 5207b7a55..dfb7cb047 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java +++ b/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * DocusignSigningTabs */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class DocusignSigningTabs { public static final String SERIALIZED_NAME_SIGN_HERE_TABS = "signHereTabs"; @SerializedName(SERIALIZED_NAME_SIGN_HERE_TABS) @javax.annotation.Nullable private List signHereTabs = new ArrayList<>(); - public DocusignSigningTabs() { - } + public DocusignSigningTabs() {} - public DocusignSigningTabs signHereTabs(@javax.annotation.Nullable List signHereTabs) { + public DocusignSigningTabs signHereTabs( + @javax.annotation.Nullable List signHereTabs) { this.signHereTabs = signHereTabs; return this; } @@ -78,6 +87,7 @@ public DocusignSigningTabs addSignHereTabsItem(DocusignSignHereTabs signHereTabs /** * A list of Sign Here tabs + * * @return signHereTabs */ @javax.annotation.Nullable @@ -118,8 +128,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +156,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to DocusignSigningTabs */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DocusignSigningTabs.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DocusignSigningTabs is not found in the empty JSON string", DocusignSigningTabs.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!DocusignSigningTabs.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in DocusignSigningTabs is not found in the empty JSON string", + DocusignSigningTabs.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DocusignSigningTabs.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DocusignSigningTabs` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!DocusignSigningTabs.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `DocusignSigningTabs` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("signHereTabs") != null && !jsonObj.get("signHereTabs").isJsonNull()) { - JsonArray jsonArraysignHereTabs = jsonObj.getAsJsonArray("signHereTabs"); - if (jsonArraysignHereTabs != null) { - // ensure the json data is an array - if (!jsonObj.get("signHereTabs").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signHereTabs` to be an array in the JSON string but got `%s`", jsonObj.get("signHereTabs").toString())); - } - - // validate the optional field `signHereTabs` (array) - for (int i = 0; i < jsonArraysignHereTabs.size(); i++) { - DocusignSignHereTabs.validateJsonElement(jsonArraysignHereTabs.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("signHereTabs") != null && !jsonObj.get("signHereTabs").isJsonNull()) { + JsonArray jsonArraysignHereTabs = jsonObj.getAsJsonArray("signHereTabs"); + if (jsonArraysignHereTabs != null) { + // ensure the json data is an array + if (!jsonObj.get("signHereTabs").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `signHereTabs` to be an array in the JSON string but got `%s`", + jsonObj.get("signHereTabs").toString())); } + + // validate the optional field `signHereTabs` (array) + for (int i = 0; i < jsonArraysignHereTabs.size(); i++) { + DocusignSignHereTabs.validateJsonElement(jsonArraysignHereTabs.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!DocusignSigningTabs.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DocusignSigningTabs' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(DocusignSigningTabs.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, DocusignSigningTabs value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DocusignSigningTabs read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!DocusignSigningTabs.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DocusignSigningTabs' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(DocusignSigningTabs.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DocusignSigningTabs value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DocusignSigningTabs read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Entity.java b/src/main/java/com/formkiq/client/model/Entity.java index 63a598f4e..a945b6d00 100644 --- a/src/main/java/com/formkiq/client/model/Entity.java +++ b/src/main/java/com/formkiq/client/model/Entity.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * Entity */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Entity { public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; @SerializedName(SERIALIZED_NAME_ENTITY_ID) @@ -80,8 +89,7 @@ public class Entity { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public Entity() { - } + public Entity() {} public Entity entityId(@javax.annotation.Nullable String entityId) { this.entityId = entityId; @@ -90,6 +98,7 @@ public Entity entityId(@javax.annotation.Nullable String entityId) { /** * Entity identifier + * * @return entityId */ @javax.annotation.Nullable @@ -109,6 +118,7 @@ public Entity entityTypeId(@javax.annotation.Nullable String entityTypeId) { /** * Entity Type identifier + * * @return entityTypeId */ @javax.annotation.Nullable @@ -128,6 +138,7 @@ public Entity name(@javax.annotation.Nullable String name) { /** * Entity Name + * * @return name */ @javax.annotation.Nullable @@ -147,6 +158,7 @@ public Entity insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -174,6 +186,7 @@ public Entity addAttributesItem(EntityAttribute attributesItem) { /** * List of Entity Attributes + * * @return attributes */ @javax.annotation.Nullable @@ -196,11 +209,11 @@ public boolean equals(Object o) { return false; } Entity entity = (Entity) o; - return Objects.equals(this.entityId, entity.entityId) && - Objects.equals(this.entityTypeId, entity.entityTypeId) && - Objects.equals(this.name, entity.name) && - Objects.equals(this.insertedDate, entity.insertedDate) && - Objects.equals(this.attributes, entity.attributes); + return Objects.equals(this.entityId, entity.entityId) + && Objects.equals(this.entityTypeId, entity.entityTypeId) + && Objects.equals(this.name, entity.name) + && Objects.equals(this.insertedDate, entity.insertedDate) + && Objects.equals(this.attributes, entity.attributes); } @Override @@ -222,8 +235,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -238,7 +250,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("entityId", "entityTypeId", "name", "insertedDate", "attributes")); + openapiFields = new HashSet( + Arrays.asList("entityId", "entityTypeId", "name", "insertedDate", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -251,74 +264,92 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Entity */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Entity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Entity is not found in the empty JSON string", Entity.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Entity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Entity is not found in the empty JSON string", + Entity.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Entity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Entity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) && !jsonObj.get("entityId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Entity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Entity` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) && !jsonObj.get("entityTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityTypeId").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - EntityAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("entityId") != null && !jsonObj.get("entityId").isJsonNull()) + && !jsonObj.get("entityId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entityId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("entityId").toString())); + } + if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) + && !jsonObj.get("entityTypeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("entityTypeId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + EntityAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Entity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Entity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Entity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Entity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Entity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Entity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Entity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Entity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Entity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Entity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/EntityAttribute.java b/src/main/java/com/formkiq/client/model/EntityAttribute.java index 123211648..496cc4286 100644 --- a/src/main/java/com/formkiq/client/model/EntityAttribute.java +++ b/src/main/java/com/formkiq/client/model/EntityAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * EntityAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class EntityAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -91,8 +100,7 @@ public class EntityAttribute { @javax.annotation.Nullable private AttributeValueType valueType; - public EntityAttribute() { - } + public EntityAttribute() {} public EntityAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -101,6 +109,7 @@ public EntityAttribute key(@javax.annotation.Nullable String key) { /** * Attribute key + * * @return key */ @javax.annotation.Nullable @@ -120,6 +129,7 @@ public EntityAttribute stringValue(@javax.annotation.Nullable String stringValue /** * Attribute with string value + * * @return stringValue */ @javax.annotation.Nullable @@ -147,6 +157,7 @@ public EntityAttribute addStringValuesItem(String stringValuesItem) { /** * Attribute with string values + * * @return stringValues */ @javax.annotation.Nullable @@ -166,6 +177,7 @@ public EntityAttribute numberValue(@javax.annotation.Nullable BigDecimal numberV /** * Attribute with number value + * * @return numberValue */ @javax.annotation.Nullable @@ -193,6 +205,7 @@ public EntityAttribute addNumberValuesItem(BigDecimal numberValuesItem) { /** * Attribute with number values + * * @return numberValues */ @javax.annotation.Nullable @@ -212,6 +225,7 @@ public EntityAttribute booleanValue(@javax.annotation.Nullable Boolean booleanVa /** * Attribute with boolean value + * * @return booleanValue */ @javax.annotation.Nullable @@ -231,6 +245,7 @@ public EntityAttribute valueType(@javax.annotation.Nullable AttributeValueType v /** * Get valueType + * * @return valueType */ @javax.annotation.Nullable @@ -253,18 +268,19 @@ public boolean equals(Object o) { return false; } EntityAttribute entityAttribute = (EntityAttribute) o; - return Objects.equals(this.key, entityAttribute.key) && - Objects.equals(this.stringValue, entityAttribute.stringValue) && - Objects.equals(this.stringValues, entityAttribute.stringValues) && - Objects.equals(this.numberValue, entityAttribute.numberValue) && - Objects.equals(this.numberValues, entityAttribute.numberValues) && - Objects.equals(this.booleanValue, entityAttribute.booleanValue) && - Objects.equals(this.valueType, entityAttribute.valueType); + return Objects.equals(this.key, entityAttribute.key) + && Objects.equals(this.stringValue, entityAttribute.stringValue) + && Objects.equals(this.stringValues, entityAttribute.stringValues) + && Objects.equals(this.numberValue, entityAttribute.numberValue) + && Objects.equals(this.numberValues, entityAttribute.numberValues) + && Objects.equals(this.booleanValue, entityAttribute.booleanValue) + && Objects.equals(this.valueType, entityAttribute.valueType); } @Override public int hashCode() { - return Objects.hash(key, stringValue, stringValues, numberValue, numberValues, booleanValue, valueType); + return Objects.hash(key, stringValue, stringValues, numberValue, numberValues, booleanValue, + valueType); } @Override @@ -283,8 +299,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -299,7 +314,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", "numberValue", "numberValues", "booleanValue", "valueType")); + openapiFields = new HashSet(Arrays.asList("key", "stringValue", "stringValues", + "numberValue", "numberValues", "booleanValue", "valueType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -312,66 +328,83 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to EntityAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!EntityAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in EntityAttribute is not found in the empty JSON string", EntityAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!EntityAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in EntityAttribute is not found in the empty JSON string", + EntityAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!EntityAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `EntityAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); - } - // validate the optional field `valueType` - if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { - AttributeValueType.validateJsonElement(jsonObj.get("valueType")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!EntityAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `EntityAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) + && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stringValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() + && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValues` to be an array in the JSON string but got `%s`", + jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() + && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberValues` to be an array in the JSON string but got `%s`", + jsonObj.get("numberValues").toString())); + } + // validate the optional field `valueType` + if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { + AttributeValueType.validateJsonElement(jsonObj.get("valueType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!EntityAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'EntityAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(EntityAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, EntityAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public EntityAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!EntityAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'EntityAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(EntityAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, EntityAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public EntityAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/EntityType.java b/src/main/java/com/formkiq/client/model/EntityType.java index 3ef5c13d1..0ae11d424 100644 --- a/src/main/java/com/formkiq/client/model/EntityType.java +++ b/src/main/java/com/formkiq/client/model/EntityType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * EntityType */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class EntityType { public static final String SERIALIZED_NAME_ENTITY_TYPE_ID = "entityTypeId"; @SerializedName(SERIALIZED_NAME_ENTITY_TYPE_ID) @@ -73,8 +82,7 @@ public class EntityType { @javax.annotation.Nullable private String insertedDate; - public EntityType() { - } + public EntityType() {} public EntityType entityTypeId(@javax.annotation.Nullable String entityTypeId) { this.entityTypeId = entityTypeId; @@ -83,6 +91,7 @@ public EntityType entityTypeId(@javax.annotation.Nullable String entityTypeId) { /** * Entity Type identifier + * * @return entityTypeId */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public EntityType namespace(@javax.annotation.Nullable EntityTypeNamespace names /** * Get namespace + * * @return namespace */ @javax.annotation.Nullable @@ -121,6 +131,7 @@ public EntityType name(@javax.annotation.Nullable String name) { /** * Entity Type Name + * * @return name */ @javax.annotation.Nullable @@ -140,6 +151,7 @@ public EntityType insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -162,10 +174,10 @@ public boolean equals(Object o) { return false; } EntityType entityType = (EntityType) o; - return Objects.equals(this.entityTypeId, entityType.entityTypeId) && - Objects.equals(this.namespace, entityType.namespace) && - Objects.equals(this.name, entityType.name) && - Objects.equals(this.insertedDate, entityType.insertedDate); + return Objects.equals(this.entityTypeId, entityType.entityTypeId) + && Objects.equals(this.namespace, entityType.namespace) + && Objects.equals(this.name, entityType.name) + && Objects.equals(this.insertedDate, entityType.insertedDate); } @Override @@ -186,8 +198,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -202,7 +213,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("entityTypeId", "namespace", "name", "insertedDate")); + openapiFields = + new HashSet(Arrays.asList("entityTypeId", "namespace", "name", "insertedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -215,61 +227,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to EntityType */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!EntityType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in EntityType is not found in the empty JSON string", EntityType.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!EntityType.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in EntityType is not found in the empty JSON string", + EntityType.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!EntityType.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `EntityType` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) && !jsonObj.get("entityTypeId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("entityTypeId").toString())); - } - // validate the optional field `namespace` - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { - EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!EntityType.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `EntityType` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("entityTypeId") != null && !jsonObj.get("entityTypeId").isJsonNull()) + && !jsonObj.get("entityTypeId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entityTypeId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("entityTypeId").toString())); + } + // validate the optional field `namespace` + if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) { + EntityTypeNamespace.validateJsonElement(jsonObj.get("namespace")); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!EntityType.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'EntityType' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(EntityType.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, EntityType value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public EntityType read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!EntityType.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'EntityType' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(EntityType.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, EntityType value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public EntityType read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/EntityTypeNamespace.java b/src/main/java/com/formkiq/client/model/EntityTypeNamespace.java index 85f8e9317..533388e70 100644 --- a/src/main/java/com/formkiq/client/model/EntityTypeNamespace.java +++ b/src/main/java/com/formkiq/client/model/EntityTypeNamespace.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(EntityTypeNamespace.Adapter.class) public enum EntityTypeNamespace { - + PRESET("PRESET"), - + CUSTOM("CUSTOM"); private String value; @@ -61,7 +68,8 @@ public static EntityTypeNamespace fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final EntityTypeNamespace enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final EntityTypeNamespace enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/Error.java b/src/main/java/com/formkiq/client/model/Error.java index d0d77096c..8fe6afc49 100644 --- a/src/main/java/com/formkiq/client/model/Error.java +++ b/src/main/java/com/formkiq/client/model/Error.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * Error */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Error { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -62,8 +71,7 @@ public class Error { @javax.annotation.Nullable private String error; - public Error() { - } + public Error() {} public Error key(@javax.annotation.Nullable String key) { this.key = key; @@ -72,6 +80,7 @@ public Error key(@javax.annotation.Nullable String key) { /** * Error Key + * * @return key */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public Error error(@javax.annotation.Nullable String error) { /** * Error Message + * * @return error */ @javax.annotation.Nullable @@ -113,8 +123,7 @@ public boolean equals(Object o) { return false; } Error error = (Error) o; - return Objects.equals(this.key, error.key) && - Objects.equals(this.error, error.error); + return Objects.equals(this.key, error.key) && Objects.equals(this.error, error.error); } @Override @@ -133,8 +142,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +170,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Error */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Error.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Error is not found in the empty JSON string", Error.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Error.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Error is not found in the empty JSON string", + Error.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Error.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Error` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) && !jsonObj.get("error").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Error.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Error` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) + && !jsonObj.get("error").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `error` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("error").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Error.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Error' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Error.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Error value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Error read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Error.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Error' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Error.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Error value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Error read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ErrorsResponse.java b/src/main/java/com/formkiq/client/model/ErrorsResponse.java index 4f72e57d1..b04cf6076 100644 --- a/src/main/java/com/formkiq/client/model/ErrorsResponse.java +++ b/src/main/java/com/formkiq/client/model/ErrorsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,15 +60,16 @@ /** * ErrorsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ErrorsResponse { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors = new ArrayList<>(); - public ErrorsResponse() { - } + public ErrorsResponse() {} public ErrorsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; @@ -78,6 +86,7 @@ public ErrorsResponse addErrorsItem(Error errorsItem) { /** * List of errors + * * @return errors */ @javax.annotation.Nullable @@ -118,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +155,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ErrorsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ErrorsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ErrorsResponse is not found in the empty JSON string", ErrorsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!ErrorsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in ErrorsResponse is not found in the empty JSON string", + ErrorsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ErrorsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ErrorsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ErrorsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `ErrorsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - if (jsonArrayerrors != null) { - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); - } - - // validate the optional field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - Error.validateJsonElement(jsonArrayerrors.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `errors` to be an array in the JSON string but got `%s`", + jsonObj.get("errors").toString())); } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + Error.validateJsonElement(jsonArrayerrors.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ErrorsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ErrorsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ErrorsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ErrorsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ErrorsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ErrorsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ErrorsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(ErrorsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ErrorsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ErrorsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/FolderPermission.java b/src/main/java/com/formkiq/client/model/FolderPermission.java index 6b493c958..b21554051 100644 --- a/src/main/java/com/formkiq/client/model/FolderPermission.java +++ b/src/main/java/com/formkiq/client/model/FolderPermission.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * FolderPermission */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class FolderPermission { public static final String SERIALIZED_NAME_ROLE_NAME = "roleName"; @SerializedName(SERIALIZED_NAME_ROLE_NAME) @@ -65,8 +74,7 @@ public class FolderPermission { @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public FolderPermission() { - } + public FolderPermission() {} public FolderPermission roleName(@javax.annotation.Nullable String roleName) { this.roleName = roleName; @@ -75,6 +83,7 @@ public FolderPermission roleName(@javax.annotation.Nullable String roleName) { /** * Name of Role + * * @return roleName */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setRoleName(@javax.annotation.Nullable String roleName) { } - public FolderPermission permissions(@javax.annotation.Nullable List permissions) { + public FolderPermission permissions( + @javax.annotation.Nullable List permissions) { this.permissions = permissions; return this; } @@ -102,6 +112,7 @@ public FolderPermission addPermissionsItem(FolderPermissionType permissionsItem) /** * Get permissions + * * @return permissions */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } FolderPermission folderPermission = (FolderPermission) o; - return Objects.equals(this.roleName, folderPermission.roleName) && - Objects.equals(this.permissions, folderPermission.permissions); + return Objects.equals(this.roleName, folderPermission.roleName) + && Objects.equals(this.permissions, folderPermission.permissions); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,55 +183,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to FolderPermission */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FolderPermission.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in FolderPermission is not found in the empty JSON string", FolderPermission.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!FolderPermission.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in FolderPermission is not found in the empty JSON string", + FolderPermission.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FolderPermission.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `FolderPermission` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("roleName") != null && !jsonObj.get("roleName").isJsonNull()) && !jsonObj.get("roleName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `roleName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("roleName").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FolderPermission.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `FolderPermission` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("roleName") != null && !jsonObj.get("roleName").isJsonNull()) + && !jsonObj.get("roleName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `roleName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("roleName").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() + && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `permissions` to be an array in the JSON string but got `%s`", + jsonObj.get("permissions").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!FolderPermission.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FolderPermission' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FolderPermission.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FolderPermission value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FolderPermission read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!FolderPermission.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FolderPermission' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(FolderPermission.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FolderPermission value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FolderPermission read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/FolderPermissionType.java b/src/main/java/com/formkiq/client/model/FolderPermissionType.java index cbb167b93..4fc284774 100644 --- a/src/main/java/com/formkiq/client/model/FolderPermissionType.java +++ b/src/main/java/com/formkiq/client/model/FolderPermissionType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(FolderPermissionType.Adapter.class) public enum FolderPermissionType { - + READ("READ"), - + WRITE("WRITE"), - + DELETE("DELETE"); private String value; @@ -63,7 +70,8 @@ public static FolderPermissionType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final FolderPermissionType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final FolderPermissionType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/FulltextAttribute.java b/src/main/java/com/formkiq/client/model/FulltextAttribute.java index 2fb413cda..d08ef0e60 100644 --- a/src/main/java/com/formkiq/client/model/FulltextAttribute.java +++ b/src/main/java/com/formkiq/client/model/FulltextAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * FulltextAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class FulltextAttribute { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; @SerializedName(SERIALIZED_NAME_STRING_VALUES) @@ -76,8 +85,7 @@ public class FulltextAttribute { @javax.annotation.Nullable private AttributeValueType valueType; - public FulltextAttribute() { - } + public FulltextAttribute() {} public FulltextAttribute stringValues(@javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; @@ -94,6 +102,7 @@ public FulltextAttribute addStringValuesItem(String stringValuesItem) { /** * Attribute with string values + * * @return stringValues */ @javax.annotation.Nullable @@ -121,6 +130,7 @@ public FulltextAttribute addNumberValuesItem(BigDecimal numberValuesItem) { /** * Attribute with number values + * * @return numberValues */ @javax.annotation.Nullable @@ -140,6 +150,7 @@ public FulltextAttribute booleanValue(@javax.annotation.Nullable Boolean boolean /** * Attribute with boolean value + * * @return booleanValue */ @javax.annotation.Nullable @@ -159,6 +170,7 @@ public FulltextAttribute valueType(@javax.annotation.Nullable AttributeValueType /** * Get valueType + * * @return valueType */ @javax.annotation.Nullable @@ -181,10 +193,10 @@ public boolean equals(Object o) { return false; } FulltextAttribute fulltextAttribute = (FulltextAttribute) o; - return Objects.equals(this.stringValues, fulltextAttribute.stringValues) && - Objects.equals(this.numberValues, fulltextAttribute.numberValues) && - Objects.equals(this.booleanValue, fulltextAttribute.booleanValue) && - Objects.equals(this.valueType, fulltextAttribute.valueType); + return Objects.equals(this.stringValues, fulltextAttribute.stringValues) + && Objects.equals(this.numberValues, fulltextAttribute.numberValues) + && Objects.equals(this.booleanValue, fulltextAttribute.booleanValue) + && Objects.equals(this.valueType, fulltextAttribute.valueType); } @Override @@ -205,8 +217,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -221,7 +232,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("stringValues", "numberValues", "booleanValue", "valueType")); + openapiFields = new HashSet( + Arrays.asList("stringValues", "numberValues", "booleanValue", "valueType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -234,60 +246,71 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to FulltextAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FulltextAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in FulltextAttribute is not found in the empty JSON string", FulltextAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!FulltextAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in FulltextAttribute is not found in the empty JSON string", + FulltextAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FulltextAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `FulltextAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); - } - // validate the optional field `valueType` - if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { - AttributeValueType.validateJsonElement(jsonObj.get("valueType")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FulltextAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `FulltextAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() + && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValues` to be an array in the JSON string but got `%s`", + jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() + && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberValues` to be an array in the JSON string but got `%s`", + jsonObj.get("numberValues").toString())); + } + // validate the optional field `valueType` + if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { + AttributeValueType.validateJsonElement(jsonObj.get("valueType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!FulltextAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FulltextAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FulltextAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FulltextAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FulltextAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!FulltextAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FulltextAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(FulltextAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FulltextAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FulltextAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/FulltextSearchItem.java b/src/main/java/com/formkiq/client/model/FulltextSearchItem.java index c5f10a792..11a02a7d4 100644 --- a/src/main/java/com/formkiq/client/model/FulltextSearchItem.java +++ b/src/main/java/com/formkiq/client/model/FulltextSearchItem.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * FulltextSearchItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class FulltextSearchItem { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -136,8 +145,7 @@ public class FulltextSearchItem { @javax.annotation.Nullable private Map attributes = new HashMap<>(); - public FulltextSearchItem() { - } + public FulltextSearchItem() {} public FulltextSearchItem siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -146,6 +154,7 @@ public FulltextSearchItem siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -165,6 +174,7 @@ public FulltextSearchItem path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -184,6 +194,7 @@ public FulltextSearchItem contentType(@javax.annotation.Nullable String contentT /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -203,6 +214,7 @@ public FulltextSearchItem width(@javax.annotation.Nullable String width) { /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -222,6 +234,7 @@ public FulltextSearchItem height(@javax.annotation.Nullable String height) { /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -241,6 +254,7 @@ public FulltextSearchItem deepLinkPath(@javax.annotation.Nullable String deepLin /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -260,6 +274,7 @@ public FulltextSearchItem insertedDate(@javax.annotation.Nullable String inserte /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -279,6 +294,7 @@ public FulltextSearchItem lastModifiedDate(@javax.annotation.Nullable String las /** * Last Modified Timestamp + * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -298,6 +314,7 @@ public FulltextSearchItem checksum(@javax.annotation.Nullable String checksum) { /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -317,6 +334,7 @@ public FulltextSearchItem checksumType(@javax.annotation.Nullable ChecksumType c /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -336,6 +354,7 @@ public FulltextSearchItem documentId(@javax.annotation.Nullable String documentI /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -355,6 +374,7 @@ public FulltextSearchItem contentLength(@javax.annotation.Nullable Integer conte /** * Document size + * * @return contentLength */ @javax.annotation.Nullable @@ -374,6 +394,7 @@ public FulltextSearchItem createdBy(@javax.annotation.Nullable String createdBy) /** * User who added document + * * @return createdBy */ @javax.annotation.Nullable @@ -401,6 +422,7 @@ public FulltextSearchItem putTagsItem(String key, Object tagsItem) { /** * Get tags + * * @return tags */ @javax.annotation.Nullable @@ -428,6 +450,7 @@ public FulltextSearchItem putMetadataItem(String key, Object metadataItem) { /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -440,7 +463,8 @@ public void setMetadata(@javax.annotation.Nullable Map metadata) } - public FulltextSearchItem attributes(@javax.annotation.Nullable Map attributes) { + public FulltextSearchItem attributes( + @javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } @@ -455,6 +479,7 @@ public FulltextSearchItem putAttributesItem(String key, FulltextAttribute attrib /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -477,27 +502,29 @@ public boolean equals(Object o) { return false; } FulltextSearchItem fulltextSearchItem = (FulltextSearchItem) o; - return Objects.equals(this.siteId, fulltextSearchItem.siteId) && - Objects.equals(this.path, fulltextSearchItem.path) && - Objects.equals(this.contentType, fulltextSearchItem.contentType) && - Objects.equals(this.width, fulltextSearchItem.width) && - Objects.equals(this.height, fulltextSearchItem.height) && - Objects.equals(this.deepLinkPath, fulltextSearchItem.deepLinkPath) && - Objects.equals(this.insertedDate, fulltextSearchItem.insertedDate) && - Objects.equals(this.lastModifiedDate, fulltextSearchItem.lastModifiedDate) && - Objects.equals(this.checksum, fulltextSearchItem.checksum) && - Objects.equals(this.checksumType, fulltextSearchItem.checksumType) && - Objects.equals(this.documentId, fulltextSearchItem.documentId) && - Objects.equals(this.contentLength, fulltextSearchItem.contentLength) && - Objects.equals(this.createdBy, fulltextSearchItem.createdBy) && - Objects.equals(this.tags, fulltextSearchItem.tags) && - Objects.equals(this.metadata, fulltextSearchItem.metadata) && - Objects.equals(this.attributes, fulltextSearchItem.attributes); + return Objects.equals(this.siteId, fulltextSearchItem.siteId) + && Objects.equals(this.path, fulltextSearchItem.path) + && Objects.equals(this.contentType, fulltextSearchItem.contentType) + && Objects.equals(this.width, fulltextSearchItem.width) + && Objects.equals(this.height, fulltextSearchItem.height) + && Objects.equals(this.deepLinkPath, fulltextSearchItem.deepLinkPath) + && Objects.equals(this.insertedDate, fulltextSearchItem.insertedDate) + && Objects.equals(this.lastModifiedDate, fulltextSearchItem.lastModifiedDate) + && Objects.equals(this.checksum, fulltextSearchItem.checksum) + && Objects.equals(this.checksumType, fulltextSearchItem.checksumType) + && Objects.equals(this.documentId, fulltextSearchItem.documentId) + && Objects.equals(this.contentLength, fulltextSearchItem.contentLength) + && Objects.equals(this.createdBy, fulltextSearchItem.createdBy) + && Objects.equals(this.tags, fulltextSearchItem.tags) + && Objects.equals(this.metadata, fulltextSearchItem.metadata) + && Objects.equals(this.attributes, fulltextSearchItem.attributes); } @Override public int hashCode() { - return Objects.hash(siteId, path, contentType, width, height, deepLinkPath, insertedDate, lastModifiedDate, checksum, checksumType, documentId, contentLength, createdBy, tags, metadata, attributes); + return Objects.hash(siteId, path, contentType, width, height, deepLinkPath, insertedDate, + lastModifiedDate, checksum, checksumType, documentId, contentLength, createdBy, tags, + metadata, attributes); } @Override @@ -525,8 +552,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -541,7 +567,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "path", "contentType", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "checksumType", "documentId", "contentLength", "createdBy", "tags", "metadata", "attributes")); + openapiFields = new HashSet(Arrays.asList("siteId", "path", "contentType", "width", + "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "checksumType", + "documentId", "contentLength", "createdBy", "tags", "metadata", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -554,85 +582,123 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to FulltextSearchItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!FulltextSearchItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in FulltextSearchItem is not found in the empty JSON string", FulltextSearchItem.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!FulltextSearchItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in FulltextSearchItem is not found in the empty JSON string", + FulltextSearchItem.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!FulltextSearchItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `FulltextSearchItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!FulltextSearchItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `FulltextSearchItem` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) + && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) + && !jsonObj.get("createdBy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("createdBy").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!FulltextSearchItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'FulltextSearchItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(FulltextSearchItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, FulltextSearchItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public FulltextSearchItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!FulltextSearchItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FulltextSearchItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(FulltextSearchItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FulltextSearchItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FulltextSearchItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetActivitesResponse.java b/src/main/java/com/formkiq/client/model/GetActivitesResponse.java index c9074294b..3491add55 100644 --- a/src/main/java/com/formkiq/client/model/GetActivitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetActivitesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetActivitesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetActivitesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetActivitesResponse { @javax.annotation.Nullable private List activities = new ArrayList<>(); - public GetActivitesResponse() { - } + public GetActivitesResponse() {} public GetActivitesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetActivitesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetActivitesResponse addActivitiesItem(Activity activitiesItem) { /** * List of Entity Type activities + * * @return activities */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetActivitesResponse getActivitesResponse = (GetActivitesResponse) o; - return Objects.equals(this.next, getActivitesResponse.next) && - Objects.equals(this.activities, getActivitesResponse.activities); + return Objects.equals(this.next, getActivitesResponse.next) + && Objects.equals(this.activities, getActivitesResponse.activities); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetActivitesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetActivitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetActivitesResponse is not found in the empty JSON string", GetActivitesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetActivitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetActivitesResponse is not found in the empty JSON string", + GetActivitesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetActivitesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetActivitesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetActivitesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetActivitesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("activities") != null && !jsonObj.get("activities").isJsonNull()) { - JsonArray jsonArrayactivities = jsonObj.getAsJsonArray("activities"); - if (jsonArrayactivities != null) { - // ensure the json data is an array - if (!jsonObj.get("activities").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `activities` to be an array in the JSON string but got `%s`", jsonObj.get("activities").toString())); - } - - // validate the optional field `activities` (array) - for (int i = 0; i < jsonArrayactivities.size(); i++) { - Activity.validateJsonElement(jsonArrayactivities.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("activities") != null && !jsonObj.get("activities").isJsonNull()) { + JsonArray jsonArrayactivities = jsonObj.getAsJsonArray("activities"); + if (jsonArrayactivities != null) { + // ensure the json data is an array + if (!jsonObj.get("activities").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `activities` to be an array in the JSON string but got `%s`", + jsonObj.get("activities").toString())); } + + // validate the optional field `activities` (array) + for (int i = 0; i < jsonArrayactivities.size(); i++) { + Activity.validateJsonElement(jsonArrayactivities.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetActivitesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetActivitesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetActivitesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetActivitesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetActivitesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetActivitesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetActivitesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetActivitesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetActivitesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetActivitesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java b/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java index cfe2497d6..0a7c6eb72 100644 --- a/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java +++ b/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetApiKeysResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetApiKeysResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetApiKeysResponse { @javax.annotation.Nullable private List apiKeys = new ArrayList<>(); - public GetApiKeysResponse() { - } + public GetApiKeysResponse() {} public GetApiKeysResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetApiKeysResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetApiKeysResponse addApiKeysItem(ApiKey apiKeysItem) { /** * List of ApiKeys + * * @return apiKeys */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetApiKeysResponse getApiKeysResponse = (GetApiKeysResponse) o; - return Objects.equals(this.next, getApiKeysResponse.next) && - Objects.equals(this.apiKeys, getApiKeysResponse.apiKeys); + return Objects.equals(this.next, getApiKeysResponse.next) + && Objects.equals(this.apiKeys, getApiKeysResponse.apiKeys); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetApiKeysResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetApiKeysResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetApiKeysResponse is not found in the empty JSON string", GetApiKeysResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetApiKeysResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetApiKeysResponse is not found in the empty JSON string", + GetApiKeysResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetApiKeysResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetApiKeysResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetApiKeysResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetApiKeysResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("apiKeys") != null && !jsonObj.get("apiKeys").isJsonNull()) { - JsonArray jsonArrayapiKeys = jsonObj.getAsJsonArray("apiKeys"); - if (jsonArrayapiKeys != null) { - // ensure the json data is an array - if (!jsonObj.get("apiKeys").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `apiKeys` to be an array in the JSON string but got `%s`", jsonObj.get("apiKeys").toString())); - } - - // validate the optional field `apiKeys` (array) - for (int i = 0; i < jsonArrayapiKeys.size(); i++) { - ApiKey.validateJsonElement(jsonArrayapiKeys.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("apiKeys") != null && !jsonObj.get("apiKeys").isJsonNull()) { + JsonArray jsonArrayapiKeys = jsonObj.getAsJsonArray("apiKeys"); + if (jsonArrayapiKeys != null) { + // ensure the json data is an array + if (!jsonObj.get("apiKeys").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `apiKeys` to be an array in the JSON string but got `%s`", + jsonObj.get("apiKeys").toString())); } + + // validate the optional field `apiKeys` (array) + for (int i = 0; i < jsonArrayapiKeys.size(); i++) { + ApiKey.validateJsonElement(jsonArrayapiKeys.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetApiKeysResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetApiKeysResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetApiKeysResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetApiKeysResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetApiKeysResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetApiKeysResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetApiKeysResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetApiKeysResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetApiKeysResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetApiKeysResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java b/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java index 027ec8176..413f17762 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * GetAttributeAllowedValuesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetAttributeAllowedValuesResponse { public static final String SERIALIZED_NAME_ALLOWED_VALUES = "allowedValues"; @SerializedName(SERIALIZED_NAME_ALLOWED_VALUES) @@ -66,10 +75,10 @@ public class GetAttributeAllowedValuesResponse { @javax.annotation.Nullable private Map localizedAllowedValues = new HashMap<>(); - public GetAttributeAllowedValuesResponse() { - } + public GetAttributeAllowedValuesResponse() {} - public GetAttributeAllowedValuesResponse allowedValues(@javax.annotation.Nullable List allowedValues) { + public GetAttributeAllowedValuesResponse allowedValues( + @javax.annotation.Nullable List allowedValues) { this.allowedValues = allowedValues; return this; } @@ -84,6 +93,7 @@ public GetAttributeAllowedValuesResponse addAllowedValuesItem(String allowedValu /** * Attribute's allowed values + * * @return allowedValues */ @javax.annotation.Nullable @@ -96,12 +106,14 @@ public void setAllowedValues(@javax.annotation.Nullable List allowedValu } - public GetAttributeAllowedValuesResponse localizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { + public GetAttributeAllowedValuesResponse localizedAllowedValues( + @javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; return this; } - public GetAttributeAllowedValuesResponse putLocalizedAllowedValuesItem(String key, String localizedAllowedValuesItem) { + public GetAttributeAllowedValuesResponse putLocalizedAllowedValuesItem(String key, + String localizedAllowedValuesItem) { if (this.localizedAllowedValues == null) { this.localizedAllowedValues = new HashMap<>(); } @@ -111,6 +123,7 @@ public GetAttributeAllowedValuesResponse putLocalizedAllowedValuesItem(String ke /** * Get localizedAllowedValues + * * @return localizedAllowedValues */ @javax.annotation.Nullable @@ -118,7 +131,8 @@ public Map getLocalizedAllowedValues() { return localizedAllowedValues; } - public void setLocalizedAllowedValues(@javax.annotation.Nullable Map localizedAllowedValues) { + public void setLocalizedAllowedValues( + @javax.annotation.Nullable Map localizedAllowedValues) { this.localizedAllowedValues = localizedAllowedValues; } @@ -132,9 +146,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetAttributeAllowedValuesResponse getAttributeAllowedValuesResponse = (GetAttributeAllowedValuesResponse) o; - return Objects.equals(this.allowedValues, getAttributeAllowedValuesResponse.allowedValues) && - Objects.equals(this.localizedAllowedValues, getAttributeAllowedValuesResponse.localizedAllowedValues); + GetAttributeAllowedValuesResponse getAttributeAllowedValuesResponse = + (GetAttributeAllowedValuesResponse) o; + return Objects.equals(this.allowedValues, getAttributeAllowedValuesResponse.allowedValues) + && Objects.equals(this.localizedAllowedValues, + getAttributeAllowedValuesResponse.localizedAllowedValues); } @Override @@ -147,14 +163,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetAttributeAllowedValuesResponse {\n"); sb.append(" allowedValues: ").append(toIndentedString(allowedValues)).append("\n"); - sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)).append("\n"); + sb.append(" localizedAllowedValues: ").append(toIndentedString(localizedAllowedValues)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -179,55 +195,67 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetAttributeAllowedValuesResponse + * @throws IOException if the JSON Element is invalid with respect to + * GetAttributeAllowedValuesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetAttributeAllowedValuesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAttributeAllowedValuesResponse is not found in the empty JSON string", GetAttributeAllowedValuesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetAttributeAllowedValuesResponse.openapiRequiredFields.isEmpty()) { // has required + // fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetAttributeAllowedValuesResponse is not found in the empty JSON string", + GetAttributeAllowedValuesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetAttributeAllowedValuesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetAttributeAllowedValuesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() && !jsonObj.get("allowedValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", jsonObj.get("allowedValues").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetAttributeAllowedValuesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetAttributeAllowedValuesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("allowedValues") != null && !jsonObj.get("allowedValues").isJsonNull() + && !jsonObj.get("allowedValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `allowedValues` to be an array in the JSON string but got `%s`", + jsonObj.get("allowedValues").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetAttributeAllowedValuesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetAttributeAllowedValuesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetAttributeAllowedValuesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetAttributeAllowedValuesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetAttributeAllowedValuesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetAttributeAllowedValuesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetAttributeAllowedValuesResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetAttributeAllowedValuesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetAttributeAllowedValuesResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetAttributeAllowedValuesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -236,7 +264,8 @@ public GetAttributeAllowedValuesResponse read(JsonReader in) throws IOException * * @param jsonString JSON string * @return An instance of GetAttributeAllowedValuesResponse - * @throws IOException if the JSON string is invalid with respect to GetAttributeAllowedValuesResponse + * @throws IOException if the JSON string is invalid with respect to + * GetAttributeAllowedValuesResponse */ public static GetAttributeAllowedValuesResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetAttributeAllowedValuesResponse.class); diff --git a/src/main/java/com/formkiq/client/model/GetAttributeResponse.java b/src/main/java/com/formkiq/client/model/GetAttributeResponse.java index a3afe5d90..41214a38f 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributeResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetAttributeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetAttributeResponse { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @javax.annotation.Nullable private Attribute attribute; - public GetAttributeResponse() { - } + public GetAttributeResponse() {} public GetAttributeResponse attribute(@javax.annotation.Nullable Attribute attribute) { this.attribute = attribute; @@ -68,6 +76,7 @@ public GetAttributeResponse attribute(@javax.annotation.Nullable Attribute attri /** * Get attribute + * * @return attribute */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetAttributeResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetAttributeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAttributeResponse is not found in the empty JSON string", GetAttributeResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetAttributeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetAttributeResponse is not found in the empty JSON string", + GetAttributeResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetAttributeResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetAttributeResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `attribute` - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { - Attribute.validateJsonElement(jsonObj.get("attribute")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetAttributeResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetAttributeResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `attribute` + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { + Attribute.validateJsonElement(jsonObj.get("attribute")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetAttributeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetAttributeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetAttributeResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetAttributeResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetAttributeResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetAttributeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetAttributeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetAttributeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetAttributeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetAttributeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetAttributesResponse.java b/src/main/java/com/formkiq/client/model/GetAttributesResponse.java index f49010584..87ba4e46f 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetAttributesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetAttributesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetAttributesResponse { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public GetAttributesResponse() { - } + public GetAttributesResponse() {} public GetAttributesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetAttributesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetAttributesResponse addAttributesItem(Attribute attributesItem) { /** * List of attributes + * * @return attributes */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetAttributesResponse getAttributesResponse = (GetAttributesResponse) o; - return Objects.equals(this.next, getAttributesResponse.next) && - Objects.equals(this.attributes, getAttributesResponse.attributes); + return Objects.equals(this.next, getAttributesResponse.next) + && Objects.equals(this.attributes, getAttributesResponse.attributes); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetAttributesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetAttributesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetAttributesResponse is not found in the empty JSON string", GetAttributesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetAttributesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetAttributesResponse is not found in the empty JSON string", + GetAttributesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetAttributesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetAttributesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetAttributesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetAttributesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - Attribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + Attribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetAttributesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetAttributesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetAttributesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetAttributesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetAttributesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetAttributesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetAttributesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetAttributesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetAttributesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetAttributesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java index 5112f1d94..b86d58845 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetCaseDocumentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetCaseDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetCaseDocumentsResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetCaseDocumentsResponse() { - } + public GetCaseDocumentsResponse() {} public GetCaseDocumentsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetCaseDocumentsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetCaseDocumentsResponse addDocumentsItem(Document documentsItem) { /** * List of documents + * * @return documents */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetCaseDocumentsResponse getCaseDocumentsResponse = (GetCaseDocumentsResponse) o; - return Objects.equals(this.next, getCaseDocumentsResponse.next) && - Objects.equals(this.documents, getCaseDocumentsResponse.documents); + return Objects.equals(this.next, getCaseDocumentsResponse.next) + && Objects.equals(this.documents, getCaseDocumentsResponse.documents); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseDocumentsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseDocumentsResponse is not found in the empty JSON string", GetCaseDocumentsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetCaseDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetCaseDocumentsResponse is not found in the empty JSON string", + GetCaseDocumentsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseDocumentsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseDocumentsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseDocumentsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetCaseDocumentsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - Document.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + Document.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseDocumentsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseDocumentsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetCaseDocumentsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseDocumentsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseDocumentsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseDocumentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseDocumentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetCaseDocumentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseDocumentsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseDocumentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java b/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java index 398017ae5..d09409ab1 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetCaseNigoResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetCaseNigoResponse { public static final String SERIALIZED_NAME_NIGO = "nigo"; @SerializedName(SERIALIZED_NAME_NIGO) @javax.annotation.Nullable private Nigo nigo; - public GetCaseNigoResponse() { - } + public GetCaseNigoResponse() {} public GetCaseNigoResponse nigo(@javax.annotation.Nullable Nigo nigo) { this.nigo = nigo; @@ -68,6 +76,7 @@ public GetCaseNigoResponse nigo(@javax.annotation.Nullable Nigo nigo) { /** * Get nigo + * * @return nigo */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseNigoResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseNigoResponse is not found in the empty JSON string", GetCaseNigoResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetCaseNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetCaseNigoResponse is not found in the empty JSON string", + GetCaseNigoResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseNigoResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseNigoResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `nigo` - if (jsonObj.get("nigo") != null && !jsonObj.get("nigo").isJsonNull()) { - Nigo.validateJsonElement(jsonObj.get("nigo")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseNigoResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetCaseNigoResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `nigo` + if (jsonObj.get("nigo") != null && !jsonObj.get("nigo").isJsonNull()) { + Nigo.validateJsonElement(jsonObj.get("nigo")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseNigoResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseNigoResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetCaseNigoResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseNigoResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseNigoResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseNigoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseNigoResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetCaseNigoResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseNigoResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseNigoResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java b/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java index cc75568ee..5f84c6183 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetCaseNigosResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetCaseNigosResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetCaseNigosResponse { @javax.annotation.Nullable private List nigos = new ArrayList<>(); - public GetCaseNigosResponse() { - } + public GetCaseNigosResponse() {} public GetCaseNigosResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetCaseNigosResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetCaseNigosResponse addNigosItem(Nigo nigosItem) { /** * List of Nigos + * * @return nigos */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetCaseNigosResponse getCaseNigosResponse = (GetCaseNigosResponse) o; - return Objects.equals(this.next, getCaseNigosResponse.next) && - Objects.equals(this.nigos, getCaseNigosResponse.nigos); + return Objects.equals(this.next, getCaseNigosResponse.next) + && Objects.equals(this.nigos, getCaseNigosResponse.nigos); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseNigosResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseNigosResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseNigosResponse is not found in the empty JSON string", GetCaseNigosResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetCaseNigosResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetCaseNigosResponse is not found in the empty JSON string", + GetCaseNigosResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseNigosResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseNigosResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseNigosResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetCaseNigosResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("nigos") != null && !jsonObj.get("nigos").isJsonNull()) { - JsonArray jsonArraynigos = jsonObj.getAsJsonArray("nigos"); - if (jsonArraynigos != null) { - // ensure the json data is an array - if (!jsonObj.get("nigos").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nigos` to be an array in the JSON string but got `%s`", jsonObj.get("nigos").toString())); - } - - // validate the optional field `nigos` (array) - for (int i = 0; i < jsonArraynigos.size(); i++) { - Nigo.validateJsonElement(jsonArraynigos.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("nigos") != null && !jsonObj.get("nigos").isJsonNull()) { + JsonArray jsonArraynigos = jsonObj.getAsJsonArray("nigos"); + if (jsonArraynigos != null) { + // ensure the json data is an array + if (!jsonObj.get("nigos").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `nigos` to be an array in the JSON string but got `%s`", + jsonObj.get("nigos").toString())); } + + // validate the optional field `nigos` (array) + for (int i = 0; i < jsonArraynigos.size(); i++) { + Nigo.validateJsonElement(jsonArraynigos.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseNigosResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseNigosResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetCaseNigosResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseNigosResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseNigosResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseNigosResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseNigosResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetCaseNigosResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseNigosResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseNigosResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseResponse.java b/src/main/java/com/formkiq/client/model/GetCaseResponse.java index f9d0e52d9..ad04c103f 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetCaseResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetCaseResponse { public static final String SERIALIZED_NAME_CASE = "case"; @SerializedName(SERIALIZED_NAME_CASE) @javax.annotation.Nullable private ModelCase _case; - public GetCaseResponse() { - } + public GetCaseResponse() {} public GetCaseResponse _case(@javax.annotation.Nullable ModelCase _case) { this._case = _case; @@ -68,6 +76,7 @@ public GetCaseResponse _case(@javax.annotation.Nullable ModelCase _case) { /** * Get _case + * * @return _case */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseResponse is not found in the empty JSON string", GetCaseResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetCaseResponse is not found in the empty JSON string", + GetCaseResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `case` - if (jsonObj.get("case") != null && !jsonObj.get("case").isJsonNull()) { - ModelCase.validateJsonElement(jsonObj.get("case")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetCaseResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `case` + if (jsonObj.get("case") != null && !jsonObj.get("case").isJsonNull()) { + ModelCase.validateJsonElement(jsonObj.get("case")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetCaseResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetCaseResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java b/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java index e648bd802..1fc58247a 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetCaseTaskResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetCaseTaskResponse { public static final String SERIALIZED_NAME_TASK = "task"; @SerializedName(SERIALIZED_NAME_TASK) @javax.annotation.Nullable private Task task; - public GetCaseTaskResponse() { - } + public GetCaseTaskResponse() {} public GetCaseTaskResponse task(@javax.annotation.Nullable Task task) { this.task = task; @@ -68,6 +76,7 @@ public GetCaseTaskResponse task(@javax.annotation.Nullable Task task) { /** * Get task + * * @return task */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseTaskResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseTaskResponse is not found in the empty JSON string", GetCaseTaskResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetCaseTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetCaseTaskResponse is not found in the empty JSON string", + GetCaseTaskResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseTaskResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseTaskResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `task` - if (jsonObj.get("task") != null && !jsonObj.get("task").isJsonNull()) { - Task.validateJsonElement(jsonObj.get("task")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseTaskResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetCaseTaskResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `task` + if (jsonObj.get("task") != null && !jsonObj.get("task").isJsonNull()) { + Task.validateJsonElement(jsonObj.get("task")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseTaskResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseTaskResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetCaseTaskResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseTaskResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseTaskResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseTaskResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseTaskResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetCaseTaskResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseTaskResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseTaskResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java b/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java index 7c0acb5b2..00f535b49 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetCaseTasksResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetCaseTasksResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetCaseTasksResponse { @javax.annotation.Nullable private List tasks = new ArrayList<>(); - public GetCaseTasksResponse() { - } + public GetCaseTasksResponse() {} public GetCaseTasksResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetCaseTasksResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetCaseTasksResponse addTasksItem(Task tasksItem) { /** * List of tasks + * * @return tasks */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetCaseTasksResponse getCaseTasksResponse = (GetCaseTasksResponse) o; - return Objects.equals(this.next, getCaseTasksResponse.next) && - Objects.equals(this.tasks, getCaseTasksResponse.tasks); + return Objects.equals(this.next, getCaseTasksResponse.next) + && Objects.equals(this.tasks, getCaseTasksResponse.tasks); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCaseTasksResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCaseTasksResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCaseTasksResponse is not found in the empty JSON string", GetCaseTasksResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetCaseTasksResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetCaseTasksResponse is not found in the empty JSON string", + GetCaseTasksResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCaseTasksResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCaseTasksResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCaseTasksResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetCaseTasksResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("tasks") != null && !jsonObj.get("tasks").isJsonNull()) { - JsonArray jsonArraytasks = jsonObj.getAsJsonArray("tasks"); - if (jsonArraytasks != null) { - // ensure the json data is an array - if (!jsonObj.get("tasks").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tasks` to be an array in the JSON string but got `%s`", jsonObj.get("tasks").toString())); - } - - // validate the optional field `tasks` (array) - for (int i = 0; i < jsonArraytasks.size(); i++) { - Task.validateJsonElement(jsonArraytasks.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("tasks") != null && !jsonObj.get("tasks").isJsonNull()) { + JsonArray jsonArraytasks = jsonObj.getAsJsonArray("tasks"); + if (jsonArraytasks != null) { + // ensure the json data is an array + if (!jsonObj.get("tasks").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tasks` to be an array in the JSON string but got `%s`", + jsonObj.get("tasks").toString())); } + + // validate the optional field `tasks` (array) + for (int i = 0; i < jsonArraytasks.size(); i++) { + Task.validateJsonElement(jsonArraytasks.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCaseTasksResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCaseTasksResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetCaseTasksResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCaseTasksResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCaseTasksResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCaseTasksResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCaseTasksResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetCaseTasksResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCaseTasksResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCaseTasksResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetCasesResponse.java b/src/main/java/com/formkiq/client/model/GetCasesResponse.java index ff5af7b4c..178fea94b 100644 --- a/src/main/java/com/formkiq/client/model/GetCasesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCasesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetCasesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetCasesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetCasesResponse { @javax.annotation.Nullable private List cases = new ArrayList<>(); - public GetCasesResponse() { - } + public GetCasesResponse() {} public GetCasesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetCasesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetCasesResponse addCasesItem(ModelCase casesItem) { /** * List of cases + * * @return cases */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetCasesResponse getCasesResponse = (GetCasesResponse) o; - return Objects.equals(this.next, getCasesResponse.next) && - Objects.equals(this.cases, getCasesResponse.cases); + return Objects.equals(this.next, getCasesResponse.next) + && Objects.equals(this.cases, getCasesResponse.cases); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetCasesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetCasesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetCasesResponse is not found in the empty JSON string", GetCasesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetCasesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetCasesResponse is not found in the empty JSON string", + GetCasesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetCasesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetCasesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetCasesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetCasesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("cases") != null && !jsonObj.get("cases").isJsonNull()) { - JsonArray jsonArraycases = jsonObj.getAsJsonArray("cases"); - if (jsonArraycases != null) { - // ensure the json data is an array - if (!jsonObj.get("cases").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cases` to be an array in the JSON string but got `%s`", jsonObj.get("cases").toString())); - } - - // validate the optional field `cases` (array) - for (int i = 0; i < jsonArraycases.size(); i++) { - ModelCase.validateJsonElement(jsonArraycases.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("cases") != null && !jsonObj.get("cases").isJsonNull()) { + JsonArray jsonArraycases = jsonObj.getAsJsonArray("cases"); + if (jsonArraycases != null) { + // ensure the json data is an array + if (!jsonObj.get("cases").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `cases` to be an array in the JSON string but got `%s`", + jsonObj.get("cases").toString())); } + + // validate the optional field `cases` (array) + for (int i = 0; i < jsonArraycases.size(); i++) { + ModelCase.validateJsonElement(jsonArraycases.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetCasesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetCasesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetCasesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetCasesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetCasesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetCasesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetCasesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetCasesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetCasesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetCasesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetClassificationResponse.java b/src/main/java/com/formkiq/client/model/GetClassificationResponse.java index 2e9e1c14a..61c714744 100644 --- a/src/main/java/com/formkiq/client/model/GetClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetClassificationResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * GetClassificationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetClassificationResponse { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION) @javax.annotation.Nullable private Classification classification; - public GetClassificationResponse() { - } + public GetClassificationResponse() {} - public GetClassificationResponse classification(@javax.annotation.Nullable Classification classification) { + public GetClassificationResponse classification( + @javax.annotation.Nullable Classification classification) { this.classification = classification; return this; } /** * Get classification + * * @return classification */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +146,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetClassificationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetClassificationResponse is not found in the empty JSON string", GetClassificationResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetClassificationResponse is not found in the empty JSON string", + GetClassificationResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetClassificationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetClassificationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `classification` - if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { - Classification.validateJsonElement(jsonObj.get("classification")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetClassificationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetClassificationResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `classification` + if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { + Classification.validateJsonElement(jsonObj.get("classification")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetClassificationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetClassificationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetClassificationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetClassificationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetClassificationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetClassificationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetClassificationResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetClassificationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetClassificationResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetClassificationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java b/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java index 324a51e07..96d8f59e6 100644 --- a/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetClassificationsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetClassificationsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetClassificationsResponse { @javax.annotation.Nullable private List classifications = new ArrayList<>(); - public GetClassificationsResponse() { - } + public GetClassificationsResponse() {} public GetClassificationsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetClassificationsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,12 +96,14 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetClassificationsResponse classifications(@javax.annotation.Nullable List classifications) { + public GetClassificationsResponse classifications( + @javax.annotation.Nullable List classifications) { this.classifications = classifications; return this; } - public GetClassificationsResponse addClassificationsItem(ClassificationSummary classificationsItem) { + public GetClassificationsResponse addClassificationsItem( + ClassificationSummary classificationsItem) { if (this.classifications == null) { this.classifications = new ArrayList<>(); } @@ -102,6 +113,7 @@ public GetClassificationsResponse addClassificationsItem(ClassificationSummary c /** * List of classifications + * * @return classifications */ @javax.annotation.Nullable @@ -109,7 +121,8 @@ public List getClassifications() { return classifications; } - public void setClassifications(@javax.annotation.Nullable List classifications) { + public void setClassifications( + @javax.annotation.Nullable List classifications) { this.classifications = classifications; } @@ -124,8 +137,8 @@ public boolean equals(Object o) { return false; } GetClassificationsResponse getClassificationsResponse = (GetClassificationsResponse) o; - return Objects.equals(this.next, getClassificationsResponse.next) && - Objects.equals(this.classifications, getClassificationsResponse.classifications); + return Objects.equals(this.next, getClassificationsResponse.next) + && Objects.equals(this.classifications, getClassificationsResponse.classifications); } @Override @@ -144,8 +157,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +185,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetClassificationsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetClassificationsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetClassificationsResponse is not found in the empty JSON string", GetClassificationsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetClassificationsResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetClassificationsResponse is not found in the empty JSON string", + GetClassificationsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetClassificationsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetClassificationsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetClassificationsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetClassificationsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("classifications") != null && !jsonObj.get("classifications").isJsonNull()) { - JsonArray jsonArrayclassifications = jsonObj.getAsJsonArray("classifications"); - if (jsonArrayclassifications != null) { - // ensure the json data is an array - if (!jsonObj.get("classifications").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classifications` to be an array in the JSON string but got `%s`", jsonObj.get("classifications").toString())); - } - - // validate the optional field `classifications` (array) - for (int i = 0; i < jsonArrayclassifications.size(); i++) { - ClassificationSummary.validateJsonElement(jsonArrayclassifications.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("classifications") != null && !jsonObj.get("classifications").isJsonNull()) { + JsonArray jsonArrayclassifications = jsonObj.getAsJsonArray("classifications"); + if (jsonArrayclassifications != null) { + // ensure the json data is an array + if (!jsonObj.get("classifications").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `classifications` to be an array in the JSON string but got `%s`", + jsonObj.get("classifications").toString())); } + + // validate the optional field `classifications` (array) + for (int i = 0; i < jsonArrayclassifications.size(); i++) { + ClassificationSummary.validateJsonElement(jsonArrayclassifications.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetClassificationsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetClassificationsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetClassificationsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetClassificationsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetClassificationsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetClassificationsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetClassificationsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetClassificationsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetClassificationsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetClassificationsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java b/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java index d1634959e..36efce1a5 100644 --- a/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -15,6 +22,7 @@ import java.util.Objects; import java.util.Locale; +import com.formkiq.client.model.DocumentConfig; import com.formkiq.client.model.DocusignConfig; import com.formkiq.client.model.GoogleConfig; import com.formkiq.client.model.OcrConfig; @@ -53,7 +61,9 @@ /** * GetConfigurationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetConfigurationResponse { public static final String SERIALIZED_NAME_CHAT_GPT_API_KEY = "chatGptApiKey"; @SerializedName(SERIALIZED_NAME_CHAT_GPT_API_KEY) @@ -80,6 +90,11 @@ public class GetConfigurationResponse { @javax.annotation.Nullable private String notificationEmail; + public static final String SERIALIZED_NAME_DOCUMENT = "document"; + @SerializedName(SERIALIZED_NAME_DOCUMENT) + @javax.annotation.Nullable + private DocumentConfig document; + public static final String SERIALIZED_NAME_OCR = "ocr"; @SerializedName(SERIALIZED_NAME_OCR) @javax.annotation.Nullable @@ -95,8 +110,7 @@ public class GetConfigurationResponse { @javax.annotation.Nullable private DocusignConfig docusign; - public GetConfigurationResponse() { - } + public GetConfigurationResponse() {} public GetConfigurationResponse chatGptApiKey(@javax.annotation.Nullable String chatGptApiKey) { this.chatGptApiKey = chatGptApiKey; @@ -105,6 +119,7 @@ public GetConfigurationResponse chatGptApiKey(@javax.annotation.Nullable String /** * ChatGPT API Key + * * @return chatGptApiKey */ @javax.annotation.Nullable @@ -117,13 +132,15 @@ public void setChatGptApiKey(@javax.annotation.Nullable String chatGptApiKey) { } - public GetConfigurationResponse maxContentLengthBytes(@javax.annotation.Nullable String maxContentLengthBytes) { + public GetConfigurationResponse maxContentLengthBytes( + @javax.annotation.Nullable String maxContentLengthBytes) { this.maxContentLengthBytes = maxContentLengthBytes; return this; } /** * Set Maximum Document Content Length in Bytes + * * @return maxContentLengthBytes */ @javax.annotation.Nullable @@ -143,6 +160,7 @@ public GetConfigurationResponse maxDocuments(@javax.annotation.Nullable String m /** * Set Maximum number of Documents allowed + * * @return maxDocuments */ @javax.annotation.Nullable @@ -162,6 +180,7 @@ public GetConfigurationResponse maxWebhooks(@javax.annotation.Nullable String ma /** * Set Maximum number of Webhooks allowed + * * @return maxWebhooks */ @javax.annotation.Nullable @@ -174,13 +193,15 @@ public void setMaxWebhooks(@javax.annotation.Nullable String maxWebhooks) { } - public GetConfigurationResponse notificationEmail(@javax.annotation.Nullable String notificationEmail) { + public GetConfigurationResponse notificationEmail( + @javax.annotation.Nullable String notificationEmail) { this.notificationEmail = notificationEmail; return this; } /** * Email address to use for notifications (Must be verified identity created in AWS SES) + * * @return notificationEmail */ @javax.annotation.Nullable @@ -193,6 +214,26 @@ public void setNotificationEmail(@javax.annotation.Nullable String notificationE } + public GetConfigurationResponse document(@javax.annotation.Nullable DocumentConfig document) { + this.document = document; + return this; + } + + /** + * Get document + * + * @return document + */ + @javax.annotation.Nullable + public DocumentConfig getDocument() { + return document; + } + + public void setDocument(@javax.annotation.Nullable DocumentConfig document) { + this.document = document; + } + + public GetConfigurationResponse ocr(@javax.annotation.Nullable OcrConfig ocr) { this.ocr = ocr; return this; @@ -200,6 +241,7 @@ public GetConfigurationResponse ocr(@javax.annotation.Nullable OcrConfig ocr) { /** * Get ocr + * * @return ocr */ @javax.annotation.Nullable @@ -219,6 +261,7 @@ public GetConfigurationResponse google(@javax.annotation.Nullable GoogleConfig g /** * Get google + * * @return google */ @javax.annotation.Nullable @@ -238,6 +281,7 @@ public GetConfigurationResponse docusign(@javax.annotation.Nullable DocusignConf /** * Get docusign + * * @return docusign */ @javax.annotation.Nullable @@ -260,19 +304,22 @@ public boolean equals(Object o) { return false; } GetConfigurationResponse getConfigurationResponse = (GetConfigurationResponse) o; - return Objects.equals(this.chatGptApiKey, getConfigurationResponse.chatGptApiKey) && - Objects.equals(this.maxContentLengthBytes, getConfigurationResponse.maxContentLengthBytes) && - Objects.equals(this.maxDocuments, getConfigurationResponse.maxDocuments) && - Objects.equals(this.maxWebhooks, getConfigurationResponse.maxWebhooks) && - Objects.equals(this.notificationEmail, getConfigurationResponse.notificationEmail) && - Objects.equals(this.ocr, getConfigurationResponse.ocr) && - Objects.equals(this.google, getConfigurationResponse.google) && - Objects.equals(this.docusign, getConfigurationResponse.docusign); + return Objects.equals(this.chatGptApiKey, getConfigurationResponse.chatGptApiKey) + && Objects.equals(this.maxContentLengthBytes, + getConfigurationResponse.maxContentLengthBytes) + && Objects.equals(this.maxDocuments, getConfigurationResponse.maxDocuments) + && Objects.equals(this.maxWebhooks, getConfigurationResponse.maxWebhooks) + && Objects.equals(this.notificationEmail, getConfigurationResponse.notificationEmail) + && Objects.equals(this.document, getConfigurationResponse.document) + && Objects.equals(this.ocr, getConfigurationResponse.ocr) + && Objects.equals(this.google, getConfigurationResponse.google) + && Objects.equals(this.docusign, getConfigurationResponse.docusign); } @Override public int hashCode() { - return Objects.hash(chatGptApiKey, maxContentLengthBytes, maxDocuments, maxWebhooks, notificationEmail, ocr, google, docusign); + return Objects.hash(chatGptApiKey, maxContentLengthBytes, maxDocuments, maxWebhooks, + notificationEmail, document, ocr, google, docusign); } @Override @@ -280,10 +327,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetConfigurationResponse {\n"); sb.append(" chatGptApiKey: ").append(toIndentedString(chatGptApiKey)).append("\n"); - sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)).append("\n"); + sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)) + .append("\n"); sb.append(" maxDocuments: ").append(toIndentedString(maxDocuments)).append("\n"); sb.append(" maxWebhooks: ").append(toIndentedString(maxWebhooks)).append("\n"); sb.append(" notificationEmail: ").append(toIndentedString(notificationEmail)).append("\n"); + sb.append(" document: ").append(toIndentedString(document)).append("\n"); sb.append(" ocr: ").append(toIndentedString(ocr)).append("\n"); sb.append(" google: ").append(toIndentedString(google)).append("\n"); sb.append(" docusign: ").append(toIndentedString(docusign)).append("\n"); @@ -292,8 +341,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -308,7 +356,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("chatGptApiKey", "maxContentLengthBytes", "maxDocuments", "maxWebhooks", "notificationEmail", "ocr", "google", "docusign")); + openapiFields = + new HashSet(Arrays.asList("chatGptApiKey", "maxContentLengthBytes", "maxDocuments", + "maxWebhooks", "notificationEmail", "document", "ocr", "google", "docusign")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -321,75 +371,100 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetConfigurationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetConfigurationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetConfigurationResponse is not found in the empty JSON string", GetConfigurationResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetConfigurationResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetConfigurationResponse is not found in the empty JSON string", + GetConfigurationResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetConfigurationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetConfigurationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("chatGptApiKey") != null && !jsonObj.get("chatGptApiKey").isJsonNull()) && !jsonObj.get("chatGptApiKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `chatGptApiKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("chatGptApiKey").toString())); - } - if ((jsonObj.get("maxContentLengthBytes") != null && !jsonObj.get("maxContentLengthBytes").isJsonNull()) && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxContentLengthBytes").toString())); - } - if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) && !jsonObj.get("maxDocuments").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxDocuments").toString())); - } - if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxWebhooks").toString())); - } - if ((jsonObj.get("notificationEmail") != null && !jsonObj.get("notificationEmail").isJsonNull()) && !jsonObj.get("notificationEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationEmail").toString())); - } - // validate the optional field `ocr` - if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { - OcrConfig.validateJsonElement(jsonObj.get("ocr")); - } - // validate the optional field `google` - if (jsonObj.get("google") != null && !jsonObj.get("google").isJsonNull()) { - GoogleConfig.validateJsonElement(jsonObj.get("google")); - } - // validate the optional field `docusign` - if (jsonObj.get("docusign") != null && !jsonObj.get("docusign").isJsonNull()) { - DocusignConfig.validateJsonElement(jsonObj.get("docusign")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetConfigurationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetConfigurationResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("chatGptApiKey") != null && !jsonObj.get("chatGptApiKey").isJsonNull()) + && !jsonObj.get("chatGptApiKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `chatGptApiKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("chatGptApiKey").toString())); + } + if ((jsonObj.get("maxContentLengthBytes") != null + && !jsonObj.get("maxContentLengthBytes").isJsonNull()) + && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("maxContentLengthBytes").toString())); + } + if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) + && !jsonObj.get("maxDocuments").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("maxDocuments").toString())); + } + if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) + && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("maxWebhooks").toString())); + } + if ((jsonObj.get("notificationEmail") != null && !jsonObj.get("notificationEmail").isJsonNull()) + && !jsonObj.get("notificationEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `notificationEmail` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("notificationEmail").toString())); + } + // validate the optional field `document` + if (jsonObj.get("document") != null && !jsonObj.get("document").isJsonNull()) { + DocumentConfig.validateJsonElement(jsonObj.get("document")); + } + // validate the optional field `ocr` + if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { + OcrConfig.validateJsonElement(jsonObj.get("ocr")); + } + // validate the optional field `google` + if (jsonObj.get("google") != null && !jsonObj.get("google").isJsonNull()) { + GoogleConfig.validateJsonElement(jsonObj.get("google")); + } + // validate the optional field `docusign` + if (jsonObj.get("docusign") != null && !jsonObj.get("docusign").isJsonNull()) { + DocusignConfig.validateJsonElement(jsonObj.get("docusign")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetConfigurationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetConfigurationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetConfigurationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetConfigurationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetConfigurationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetConfigurationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetConfigurationResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetConfigurationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetConfigurationResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetConfigurationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java index 973413a57..86548af05 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetDocumentActionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentActionsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetDocumentActionsResponse { @javax.annotation.Nullable private List actions = new ArrayList<>(); - public GetDocumentActionsResponse() { - } + public GetDocumentActionsResponse() {} public GetDocumentActionsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetDocumentActionsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetDocumentActionsResponse actions(@javax.annotation.Nullable List actions) { + public GetDocumentActionsResponse actions( + @javax.annotation.Nullable List actions) { this.actions = actions; return this; } @@ -102,6 +112,7 @@ public GetDocumentActionsResponse addActionsItem(DocumentAction actionsItem) { /** * List of document actions + * * @return actions */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } GetDocumentActionsResponse getDocumentActionsResponse = (GetDocumentActionsResponse) o; - return Objects.equals(this.next, getDocumentActionsResponse.next) && - Objects.equals(this.actions, getDocumentActionsResponse.actions); + return Objects.equals(this.next, getDocumentActionsResponse.next) + && Objects.equals(this.actions, getDocumentActionsResponse.actions); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +183,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentActionsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentActionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentActionsResponse is not found in the empty JSON string", GetDocumentActionsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentActionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentActionsResponse is not found in the empty JSON string", + GetDocumentActionsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentActionsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentActionsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentActionsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentActionsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - if (jsonArrayactions != null) { - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - - // validate the optional field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - DocumentAction.validateJsonElement(jsonArrayactions.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { + JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); + if (jsonArrayactions != null) { + // ensure the json data is an array + if (!jsonObj.get("actions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `actions` to be an array in the JSON string but got `%s`", + jsonObj.get("actions").toString())); } + + // validate the optional field `actions` (array) + for (int i = 0; i < jsonArrayactions.size(); i++) { + DocumentAction.validateJsonElement(jsonArrayactions.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentActionsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentActionsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentActionsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentActionsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentActionsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentActionsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentActionsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentActionsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentActionsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentActionsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java index bb7e4fbe2..c877f8539 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * GetDocumentAttributeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentAttributeResponse { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @javax.annotation.Nullable private DocumentAttribute attribute; - public GetDocumentAttributeResponse() { - } + public GetDocumentAttributeResponse() {} - public GetDocumentAttributeResponse attribute(@javax.annotation.Nullable DocumentAttribute attribute) { + public GetDocumentAttributeResponse attribute( + @javax.annotation.Nullable DocumentAttribute attribute) { this.attribute = attribute; return this; } /** * Get attribute + * * @return attribute */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +146,58 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentAttributeResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentAttributeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentAttributeResponse is not found in the empty JSON string", GetDocumentAttributeResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentAttributeResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentAttributeResponse is not found in the empty JSON string", + GetDocumentAttributeResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentAttributeResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentAttributeResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `attribute` - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { - DocumentAttribute.validateJsonElement(jsonObj.get("attribute")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentAttributeResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentAttributeResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `attribute` + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { + DocumentAttribute.validateJsonElement(jsonObj.get("attribute")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentAttributeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentAttributeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentAttributeResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentAttributeResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentAttributeResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentAttributeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentAttributeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentAttributeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentAttributeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentAttributeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java index bc8ed1090..0df94b3ec 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetDocumentAttributesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentAttributesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetDocumentAttributesResponse { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public GetDocumentAttributesResponse() { - } + public GetDocumentAttributesResponse() {} public GetDocumentAttributesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetDocumentAttributesResponse next(@javax.annotation.Nullable String next /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetDocumentAttributesResponse attributes(@javax.annotation.Nullable List attributes) { + public GetDocumentAttributesResponse attributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -102,6 +112,7 @@ public GetDocumentAttributesResponse addAttributesItem(DocumentAttribute attribu /** * List of attributes + * * @return attributes */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } GetDocumentAttributesResponse getDocumentAttributesResponse = (GetDocumentAttributesResponse) o; - return Objects.equals(this.next, getDocumentAttributesResponse.next) && - Objects.equals(this.attributes, getDocumentAttributesResponse.attributes); + return Objects.equals(this.next, getDocumentAttributesResponse.next) + && Objects.equals(this.attributes, getDocumentAttributesResponse.attributes); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -170,68 +180,80 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetDocumentAttributesResponse + * @throws IOException if the JSON Element is invalid with respect to + * GetDocumentAttributesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentAttributesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentAttributesResponse is not found in the empty JSON string", GetDocumentAttributesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentAttributesResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentAttributesResponse is not found in the empty JSON string", + GetDocumentAttributesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentAttributesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentAttributesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentAttributesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentAttributesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - DocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + DocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentAttributesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentAttributesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentAttributesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentAttributesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentAttributesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentAttributesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentAttributesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentAttributesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentAttributesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentAttributesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java index df9e48d45..d2c729f9c 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * GetDocumentContentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentContentResponse { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) @@ -72,8 +81,7 @@ public class GetDocumentContentResponse { @javax.annotation.Nullable private Boolean isBase64; - public GetDocumentContentResponse() { - } + public GetDocumentContentResponse() {} public GetDocumentContentResponse content(@javax.annotation.Nullable String content) { this.content = content; @@ -82,6 +90,7 @@ public GetDocumentContentResponse content(@javax.annotation.Nullable String cont /** * Document content + * * @return content */ @javax.annotation.Nullable @@ -101,6 +110,7 @@ public GetDocumentContentResponse contentUrl(@javax.annotation.Nullable String c /** * URL to retrieve document content + * * @return contentUrl */ @javax.annotation.Nullable @@ -120,6 +130,7 @@ public GetDocumentContentResponse contentType(@javax.annotation.Nullable String /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -139,6 +150,7 @@ public GetDocumentContentResponse isBase64(@javax.annotation.Nullable Boolean is /** * Is the content Base64-encoded? + * * @return isBase64 */ @javax.annotation.Nullable @@ -161,10 +173,10 @@ public boolean equals(Object o) { return false; } GetDocumentContentResponse getDocumentContentResponse = (GetDocumentContentResponse) o; - return Objects.equals(this.content, getDocumentContentResponse.content) && - Objects.equals(this.contentUrl, getDocumentContentResponse.contentUrl) && - Objects.equals(this.contentType, getDocumentContentResponse.contentType) && - Objects.equals(this.isBase64, getDocumentContentResponse.isBase64); + return Objects.equals(this.content, getDocumentContentResponse.content) + && Objects.equals(this.contentUrl, getDocumentContentResponse.contentUrl) + && Objects.equals(this.contentType, getDocumentContentResponse.contentType) + && Objects.equals(this.isBase64, getDocumentContentResponse.isBase64); } @Override @@ -185,8 +197,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -201,7 +212,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("content", "contentUrl", "contentType", "isBase64")); + openapiFields = + new HashSet(Arrays.asList("content", "contentUrl", "contentType", "isBase64")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -214,57 +226,71 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentContentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentContentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentContentResponse is not found in the empty JSON string", GetDocumentContentResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentContentResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentContentResponse is not found in the empty JSON string", + GetDocumentContentResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentContentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentContentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - if ((jsonObj.get("contentUrl") != null && !jsonObj.get("contentUrl").isJsonNull()) && !jsonObj.get("contentUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentUrl").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentContentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentContentResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) + && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } + if ((jsonObj.get("contentUrl") != null && !jsonObj.get("contentUrl").isJsonNull()) + && !jsonObj.get("contentUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentUrl` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentUrl").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentContentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentContentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentContentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentContentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentContentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentContentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentContentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentContentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentContentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentContentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java index 8c763a670..7778c954c 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetDocumentDataClassificationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentDataClassificationResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetDocumentDataClassificationResponse { @javax.annotation.Nullable private List dataClassifications = new ArrayList<>(); - public GetDocumentDataClassificationResponse() { - } + public GetDocumentDataClassificationResponse() {} public GetDocumentDataClassificationResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetDocumentDataClassificationResponse next(@javax.annotation.Nullable Str /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,12 +96,14 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetDocumentDataClassificationResponse dataClassifications(@javax.annotation.Nullable List dataClassifications) { + public GetDocumentDataClassificationResponse dataClassifications( + @javax.annotation.Nullable List dataClassifications) { this.dataClassifications = dataClassifications; return this; } - public GetDocumentDataClassificationResponse addDataClassificationsItem(DataClassification dataClassificationsItem) { + public GetDocumentDataClassificationResponse addDataClassificationsItem( + DataClassification dataClassificationsItem) { if (this.dataClassifications == null) { this.dataClassifications = new ArrayList<>(); } @@ -102,6 +113,7 @@ public GetDocumentDataClassificationResponse addDataClassificationsItem(DataClas /** * List of Data Classifications + * * @return dataClassifications */ @javax.annotation.Nullable @@ -109,7 +121,8 @@ public List getDataClassifications() { return dataClassifications; } - public void setDataClassifications(@javax.annotation.Nullable List dataClassifications) { + public void setDataClassifications( + @javax.annotation.Nullable List dataClassifications) { this.dataClassifications = dataClassifications; } @@ -123,9 +136,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetDocumentDataClassificationResponse getDocumentDataClassificationResponse = (GetDocumentDataClassificationResponse) o; - return Objects.equals(this.next, getDocumentDataClassificationResponse.next) && - Objects.equals(this.dataClassifications, getDocumentDataClassificationResponse.dataClassifications); + GetDocumentDataClassificationResponse getDocumentDataClassificationResponse = + (GetDocumentDataClassificationResponse) o; + return Objects.equals(this.next, getDocumentDataClassificationResponse.next) && Objects.equals( + this.dataClassifications, getDocumentDataClassificationResponse.dataClassifications); } @Override @@ -138,14 +152,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetDocumentDataClassificationResponse {\n"); sb.append(" next: ").append(toIndentedString(next)).append("\n"); - sb.append(" dataClassifications: ").append(toIndentedString(dataClassifications)).append("\n"); + sb.append(" dataClassifications: ").append(toIndentedString(dataClassifications)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -170,68 +184,84 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetDocumentDataClassificationResponse + * @throws IOException if the JSON Element is invalid with respect to + * GetDocumentDataClassificationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentDataClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentDataClassificationResponse is not found in the empty JSON string", GetDocumentDataClassificationResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentDataClassificationResponse.openapiRequiredFields.isEmpty()) { // has required + // fields but + // JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentDataClassificationResponse is not found in the empty JSON string", + GetDocumentDataClassificationResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentDataClassificationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentDataClassificationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentDataClassificationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentDataClassificationResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("dataClassifications") != null && !jsonObj.get("dataClassifications").isJsonNull()) { - JsonArray jsonArraydataClassifications = jsonObj.getAsJsonArray("dataClassifications"); - if (jsonArraydataClassifications != null) { - // ensure the json data is an array - if (!jsonObj.get("dataClassifications").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dataClassifications` to be an array in the JSON string but got `%s`", jsonObj.get("dataClassifications").toString())); - } - - // validate the optional field `dataClassifications` (array) - for (int i = 0; i < jsonArraydataClassifications.size(); i++) { - DataClassification.validateJsonElement(jsonArraydataClassifications.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("dataClassifications") != null + && !jsonObj.get("dataClassifications").isJsonNull()) { + JsonArray jsonArraydataClassifications = jsonObj.getAsJsonArray("dataClassifications"); + if (jsonArraydataClassifications != null) { + // ensure the json data is an array + if (!jsonObj.get("dataClassifications").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dataClassifications` to be an array in the JSON string but got `%s`", + jsonObj.get("dataClassifications").toString())); } + + // validate the optional field `dataClassifications` (array) + for (int i = 0; i < jsonArraydataClassifications.size(); i++) { + DataClassification.validateJsonElement(jsonArraydataClassifications.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentDataClassificationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentDataClassificationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentDataClassificationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentDataClassificationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentDataClassificationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentDataClassificationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentDataClassificationResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentDataClassificationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentDataClassificationResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentDataClassificationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -240,9 +270,11 @@ public GetDocumentDataClassificationResponse read(JsonReader in) throws IOExcept * * @param jsonString JSON string * @return An instance of GetDocumentDataClassificationResponse - * @throws IOException if the JSON string is invalid with respect to GetDocumentDataClassificationResponse + * @throws IOException if the JSON string is invalid with respect to + * GetDocumentDataClassificationResponse */ - public static GetDocumentDataClassificationResponse fromJson(String jsonString) throws IOException { + public static GetDocumentDataClassificationResponse fromJson(String jsonString) + throws IOException { return JSON.getGson().fromJson(jsonString, GetDocumentDataClassificationResponse.class); } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java index f02cdef69..8bb9c381c 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * GetDocumentFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentFulltextResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -141,8 +150,7 @@ public class GetDocumentFulltextResponse { @javax.annotation.Nullable private Map attributes = new HashMap<>(); - public GetDocumentFulltextResponse() { - } + public GetDocumentFulltextResponse() {} public GetDocumentFulltextResponse siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -151,6 +159,7 @@ public GetDocumentFulltextResponse siteId(@javax.annotation.Nullable String site /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -170,6 +179,7 @@ public GetDocumentFulltextResponse content(@javax.annotation.Nullable String con /** * Content of document + * * @return content */ @javax.annotation.Nullable @@ -189,6 +199,7 @@ public GetDocumentFulltextResponse contentType(@javax.annotation.Nullable String /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -208,6 +219,7 @@ public GetDocumentFulltextResponse path(@javax.annotation.Nullable String path) /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -227,6 +239,7 @@ public GetDocumentFulltextResponse width(@javax.annotation.Nullable String width /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -246,6 +259,7 @@ public GetDocumentFulltextResponse height(@javax.annotation.Nullable String heig /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -265,6 +279,7 @@ public GetDocumentFulltextResponse deepLinkPath(@javax.annotation.Nullable Strin /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -284,6 +299,7 @@ public GetDocumentFulltextResponse insertedDate(@javax.annotation.Nullable Strin /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -296,13 +312,15 @@ public void setInsertedDate(@javax.annotation.Nullable String insertedDate) { } - public GetDocumentFulltextResponse lastModifiedDate(@javax.annotation.Nullable String lastModifiedDate) { + public GetDocumentFulltextResponse lastModifiedDate( + @javax.annotation.Nullable String lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; return this; } /** * Last Modified Timestamp + * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -322,6 +340,7 @@ public GetDocumentFulltextResponse documentId(@javax.annotation.Nullable String /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -341,6 +360,7 @@ public GetDocumentFulltextResponse createdBy(@javax.annotation.Nullable String c /** * User who added document + * * @return createdBy */ @javax.annotation.Nullable @@ -353,13 +373,15 @@ public void setCreatedBy(@javax.annotation.Nullable String createdBy) { } - public GetDocumentFulltextResponse contentLength(@javax.annotation.Nullable Integer contentLength) { + public GetDocumentFulltextResponse contentLength( + @javax.annotation.Nullable Integer contentLength) { this.contentLength = contentLength; return this; } /** * Document size + * * @return contentLength */ @javax.annotation.Nullable @@ -379,6 +401,7 @@ public GetDocumentFulltextResponse checksum(@javax.annotation.Nullable String ch /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -391,13 +414,15 @@ public void setChecksum(@javax.annotation.Nullable String checksum) { } - public GetDocumentFulltextResponse checksumType(@javax.annotation.Nullable ChecksumType checksumType) { + public GetDocumentFulltextResponse checksumType( + @javax.annotation.Nullable ChecksumType checksumType) { this.checksumType = checksumType; return this; } /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -425,6 +450,7 @@ public GetDocumentFulltextResponse putTagsItem(String key, Object tagsItem) { /** * Get tags + * * @return tags */ @javax.annotation.Nullable @@ -437,7 +463,8 @@ public void setTags(@javax.annotation.Nullable Map tags) { } - public GetDocumentFulltextResponse metadata(@javax.annotation.Nullable Map metadata) { + public GetDocumentFulltextResponse metadata( + @javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -452,6 +479,7 @@ public GetDocumentFulltextResponse putMetadataItem(String key, Object metadataIt /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -464,12 +492,14 @@ public void setMetadata(@javax.annotation.Nullable Map metadata) } - public GetDocumentFulltextResponse attributes(@javax.annotation.Nullable Map attributes) { + public GetDocumentFulltextResponse attributes( + @javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } - public GetDocumentFulltextResponse putAttributesItem(String key, FulltextAttribute attributesItem) { + public GetDocumentFulltextResponse putAttributesItem(String key, + FulltextAttribute attributesItem) { if (this.attributes == null) { this.attributes = new HashMap<>(); } @@ -479,6 +509,7 @@ public GetDocumentFulltextResponse putAttributesItem(String key, FulltextAttribu /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -501,28 +532,30 @@ public boolean equals(Object o) { return false; } GetDocumentFulltextResponse getDocumentFulltextResponse = (GetDocumentFulltextResponse) o; - return Objects.equals(this.siteId, getDocumentFulltextResponse.siteId) && - Objects.equals(this.content, getDocumentFulltextResponse.content) && - Objects.equals(this.contentType, getDocumentFulltextResponse.contentType) && - Objects.equals(this.path, getDocumentFulltextResponse.path) && - Objects.equals(this.width, getDocumentFulltextResponse.width) && - Objects.equals(this.height, getDocumentFulltextResponse.height) && - Objects.equals(this.deepLinkPath, getDocumentFulltextResponse.deepLinkPath) && - Objects.equals(this.insertedDate, getDocumentFulltextResponse.insertedDate) && - Objects.equals(this.lastModifiedDate, getDocumentFulltextResponse.lastModifiedDate) && - Objects.equals(this.documentId, getDocumentFulltextResponse.documentId) && - Objects.equals(this.createdBy, getDocumentFulltextResponse.createdBy) && - Objects.equals(this.contentLength, getDocumentFulltextResponse.contentLength) && - Objects.equals(this.checksum, getDocumentFulltextResponse.checksum) && - Objects.equals(this.checksumType, getDocumentFulltextResponse.checksumType) && - Objects.equals(this.tags, getDocumentFulltextResponse.tags) && - Objects.equals(this.metadata, getDocumentFulltextResponse.metadata) && - Objects.equals(this.attributes, getDocumentFulltextResponse.attributes); + return Objects.equals(this.siteId, getDocumentFulltextResponse.siteId) + && Objects.equals(this.content, getDocumentFulltextResponse.content) + && Objects.equals(this.contentType, getDocumentFulltextResponse.contentType) + && Objects.equals(this.path, getDocumentFulltextResponse.path) + && Objects.equals(this.width, getDocumentFulltextResponse.width) + && Objects.equals(this.height, getDocumentFulltextResponse.height) + && Objects.equals(this.deepLinkPath, getDocumentFulltextResponse.deepLinkPath) + && Objects.equals(this.insertedDate, getDocumentFulltextResponse.insertedDate) + && Objects.equals(this.lastModifiedDate, getDocumentFulltextResponse.lastModifiedDate) + && Objects.equals(this.documentId, getDocumentFulltextResponse.documentId) + && Objects.equals(this.createdBy, getDocumentFulltextResponse.createdBy) + && Objects.equals(this.contentLength, getDocumentFulltextResponse.contentLength) + && Objects.equals(this.checksum, getDocumentFulltextResponse.checksum) + && Objects.equals(this.checksumType, getDocumentFulltextResponse.checksumType) + && Objects.equals(this.tags, getDocumentFulltextResponse.tags) + && Objects.equals(this.metadata, getDocumentFulltextResponse.metadata) + && Objects.equals(this.attributes, getDocumentFulltextResponse.attributes); } @Override public int hashCode() { - return Objects.hash(siteId, content, contentType, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, documentId, createdBy, contentLength, checksum, checksumType, tags, metadata, attributes); + return Objects.hash(siteId, content, contentType, path, width, height, deepLinkPath, + insertedDate, lastModifiedDate, documentId, createdBy, contentLength, checksum, + checksumType, tags, metadata, attributes); } @Override @@ -551,8 +584,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -567,7 +599,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "content", "contentType", "path", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "documentId", "createdBy", "contentLength", "checksum", "checksumType", "tags", "metadata", "attributes")); + openapiFields = + new HashSet(Arrays.asList("siteId", "content", "contentType", "path", "width", + "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "documentId", "createdBy", + "contentLength", "checksum", "checksumType", "tags", "metadata", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -580,88 +615,129 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentFulltextResponse is not found in the empty JSON string", GetDocumentFulltextResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentFulltextResponse is not found in the empty JSON string", + GetDocumentFulltextResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) && !jsonObj.get("createdBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("createdBy").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentFulltextResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) + && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) + && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("createdBy") != null && !jsonObj.get("createdBy").isJsonNull()) + && !jsonObj.get("createdBy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `createdBy` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("createdBy").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java index df6aa31f1..6862223d2 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * GetDocumentOcrResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentOcrResponse { public static final String SERIALIZED_NAME_CONTENT_URLS = "contentUrls"; @SerializedName(SERIALIZED_NAME_CONTENT_URLS) @@ -111,8 +120,7 @@ public class GetDocumentOcrResponse { @javax.annotation.Nullable private String insertedDate; - public GetDocumentOcrResponse() { - } + public GetDocumentOcrResponse() {} public GetDocumentOcrResponse contentUrls(@javax.annotation.Nullable List contentUrls) { this.contentUrls = contentUrls; @@ -129,6 +137,7 @@ public GetDocumentOcrResponse addContentUrlsItem(String contentUrlsItem) { /** * Presigned S3 Urls for the OCR content + * * @return contentUrls */ @javax.annotation.Nullable @@ -156,6 +165,7 @@ public GetDocumentOcrResponse addKeyValuesItem(OcrKeyValues keyValuesItem) { /** * List of ocr key / values + * * @return keyValues */ @javax.annotation.Nullable @@ -183,6 +193,7 @@ public GetDocumentOcrResponse addTablesItem(OcrTable tablesItem) { /** * Get tables + * * @return tables */ @javax.annotation.Nullable @@ -202,6 +213,7 @@ public GetDocumentOcrResponse data(@javax.annotation.Nullable String data) { /** * OCR text result + * * @return data */ @javax.annotation.Nullable @@ -221,6 +233,7 @@ public GetDocumentOcrResponse ocrEngine(@javax.annotation.Nullable String ocrEng /** * The OCR technique used + * * @return ocrEngine */ @javax.annotation.Nullable @@ -240,6 +253,7 @@ public GetDocumentOcrResponse ocrStatus(@javax.annotation.Nullable String ocrSta /** * The status of the OCR request + * * @return ocrStatus */ @javax.annotation.Nullable @@ -259,6 +273,7 @@ public GetDocumentOcrResponse contentType(@javax.annotation.Nullable String cont /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -278,6 +293,7 @@ public GetDocumentOcrResponse isBase64(@javax.annotation.Nullable Boolean isBase /** * Is the content Base64-encoded? + * * @return isBase64 */ @javax.annotation.Nullable @@ -297,6 +313,7 @@ public GetDocumentOcrResponse userId(@javax.annotation.Nullable String userId) { /** * User who requested the OCR + * * @return userId */ @javax.annotation.Nullable @@ -316,6 +333,7 @@ public GetDocumentOcrResponse documentId(@javax.annotation.Nullable String docum /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -335,6 +353,7 @@ public GetDocumentOcrResponse insertedDate(@javax.annotation.Nullable String ins /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -357,22 +376,23 @@ public boolean equals(Object o) { return false; } GetDocumentOcrResponse getDocumentOcrResponse = (GetDocumentOcrResponse) o; - return Objects.equals(this.contentUrls, getDocumentOcrResponse.contentUrls) && - Objects.equals(this.keyValues, getDocumentOcrResponse.keyValues) && - Objects.equals(this.tables, getDocumentOcrResponse.tables) && - Objects.equals(this.data, getDocumentOcrResponse.data) && - Objects.equals(this.ocrEngine, getDocumentOcrResponse.ocrEngine) && - Objects.equals(this.ocrStatus, getDocumentOcrResponse.ocrStatus) && - Objects.equals(this.contentType, getDocumentOcrResponse.contentType) && - Objects.equals(this.isBase64, getDocumentOcrResponse.isBase64) && - Objects.equals(this.userId, getDocumentOcrResponse.userId) && - Objects.equals(this.documentId, getDocumentOcrResponse.documentId) && - Objects.equals(this.insertedDate, getDocumentOcrResponse.insertedDate); + return Objects.equals(this.contentUrls, getDocumentOcrResponse.contentUrls) + && Objects.equals(this.keyValues, getDocumentOcrResponse.keyValues) + && Objects.equals(this.tables, getDocumentOcrResponse.tables) + && Objects.equals(this.data, getDocumentOcrResponse.data) + && Objects.equals(this.ocrEngine, getDocumentOcrResponse.ocrEngine) + && Objects.equals(this.ocrStatus, getDocumentOcrResponse.ocrStatus) + && Objects.equals(this.contentType, getDocumentOcrResponse.contentType) + && Objects.equals(this.isBase64, getDocumentOcrResponse.isBase64) + && Objects.equals(this.userId, getDocumentOcrResponse.userId) + && Objects.equals(this.documentId, getDocumentOcrResponse.documentId) + && Objects.equals(this.insertedDate, getDocumentOcrResponse.insertedDate); } @Override public int hashCode() { - return Objects.hash(contentUrls, keyValues, tables, data, ocrEngine, ocrStatus, contentType, isBase64, userId, documentId, insertedDate); + return Objects.hash(contentUrls, keyValues, tables, data, ocrEngine, ocrStatus, contentType, + isBase64, userId, documentId, insertedDate); } @Override @@ -395,8 +415,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -411,7 +430,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("contentUrls", "keyValues", "tables", "data", "ocrEngine", "ocrStatus", "contentType", "isBase64", "userId", "documentId", "insertedDate")); + openapiFields = + new HashSet(Arrays.asList("contentUrls", "keyValues", "tables", "data", "ocrEngine", + "ocrStatus", "contentType", "isBase64", "userId", "documentId", "insertedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -424,101 +445,134 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentOcrResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentOcrResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentOcrResponse is not found in the empty JSON string", GetDocumentOcrResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentOcrResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentOcrResponse is not found in the empty JSON string", + GetDocumentOcrResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentOcrResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentOcrResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentOcrResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentOcrResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() && !jsonObj.get("contentUrls").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", jsonObj.get("contentUrls").toString())); - } - if (jsonObj.get("keyValues") != null && !jsonObj.get("keyValues").isJsonNull()) { - JsonArray jsonArraykeyValues = jsonObj.getAsJsonArray("keyValues"); - if (jsonArraykeyValues != null) { - // ensure the json data is an array - if (!jsonObj.get("keyValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `keyValues` to be an array in the JSON string but got `%s`", jsonObj.get("keyValues").toString())); - } - - // validate the optional field `keyValues` (array) - for (int i = 0; i < jsonArraykeyValues.size(); i++) { - OcrKeyValues.validateJsonElement(jsonArraykeyValues.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() + && !jsonObj.get("contentUrls").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", + jsonObj.get("contentUrls").toString())); + } + if (jsonObj.get("keyValues") != null && !jsonObj.get("keyValues").isJsonNull()) { + JsonArray jsonArraykeyValues = jsonObj.getAsJsonArray("keyValues"); + if (jsonArraykeyValues != null) { + // ensure the json data is an array + if (!jsonObj.get("keyValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `keyValues` to be an array in the JSON string but got `%s`", + jsonObj.get("keyValues").toString())); } + + // validate the optional field `keyValues` (array) + for (int i = 0; i < jsonArraykeyValues.size(); i++) { + OcrKeyValues.validateJsonElement(jsonArraykeyValues.get(i)); + } ; } - if (jsonObj.get("tables") != null && !jsonObj.get("tables").isJsonNull()) { - JsonArray jsonArraytables = jsonObj.getAsJsonArray("tables"); - if (jsonArraytables != null) { - // ensure the json data is an array - if (!jsonObj.get("tables").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tables` to be an array in the JSON string but got `%s`", jsonObj.get("tables").toString())); - } - - // validate the optional field `tables` (array) - for (int i = 0; i < jsonArraytables.size(); i++) { - OcrTable.validateJsonElement(jsonArraytables.get(i)); - }; + } + if (jsonObj.get("tables") != null && !jsonObj.get("tables").isJsonNull()) { + JsonArray jsonArraytables = jsonObj.getAsJsonArray("tables"); + if (jsonArraytables != null) { + // ensure the json data is an array + if (!jsonObj.get("tables").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tables` to be an array in the JSON string but got `%s`", + jsonObj.get("tables").toString())); } + + // validate the optional field `tables` (array) + for (int i = 0; i < jsonArraytables.size(); i++) { + OcrTable.validateJsonElement(jsonArraytables.get(i)); + } ; } - if ((jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) && !jsonObj.get("data").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be a primitive type in the JSON string but got `%s`", jsonObj.get("data").toString())); - } - if ((jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) && !jsonObj.get("ocrEngine").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrEngine` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ocrEngine").toString())); - } - if ((jsonObj.get("ocrStatus") != null && !jsonObj.get("ocrStatus").isJsonNull()) && !jsonObj.get("ocrStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ocrStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ocrStatus").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } + } + if ((jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) + && !jsonObj.get("data").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `data` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("data").toString())); + } + if ((jsonObj.get("ocrEngine") != null && !jsonObj.get("ocrEngine").isJsonNull()) + && !jsonObj.get("ocrEngine").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `ocrEngine` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("ocrEngine").toString())); + } + if ((jsonObj.get("ocrStatus") != null && !jsonObj.get("ocrStatus").isJsonNull()) + && !jsonObj.get("ocrStatus").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `ocrStatus` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("ocrStatus").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentOcrResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentOcrResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentOcrResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentOcrResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentOcrResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentOcrResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentOcrResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentOcrResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentOcrResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentOcrResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentResponse.java index f6c57c75b..c8d8e10bb 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * GetDocumentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -142,8 +151,7 @@ public class GetDocumentResponse { @javax.annotation.Nullable private List metadata = new ArrayList<>(); - public GetDocumentResponse() { - } + public GetDocumentResponse() {} public GetDocumentResponse siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -152,6 +160,7 @@ public GetDocumentResponse siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -171,6 +180,7 @@ public GetDocumentResponse path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -190,6 +200,7 @@ public GetDocumentResponse width(@javax.annotation.Nullable String width) { /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -209,6 +220,7 @@ public GetDocumentResponse height(@javax.annotation.Nullable String height) { /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -228,6 +240,7 @@ public GetDocumentResponse deepLinkPath(@javax.annotation.Nullable String deepLi /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -247,6 +260,7 @@ public GetDocumentResponse insertedDate(@javax.annotation.Nullable String insert /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -266,6 +280,7 @@ public GetDocumentResponse lastModifiedDate(@javax.annotation.Nullable String la /** * Last Modified Timestamp + * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -285,6 +300,7 @@ public GetDocumentResponse checksum(@javax.annotation.Nullable String checksum) /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -304,6 +320,7 @@ public GetDocumentResponse checksumType(@javax.annotation.Nullable ChecksumType /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -323,6 +340,7 @@ public GetDocumentResponse documentId(@javax.annotation.Nonnull String documentI /** * Document Identifier + * * @return documentId */ @javax.annotation.Nonnull @@ -342,6 +360,7 @@ public GetDocumentResponse contentType(@javax.annotation.Nullable String content /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -361,6 +380,7 @@ public GetDocumentResponse userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -380,6 +400,7 @@ public GetDocumentResponse contentLength(@javax.annotation.Nullable Integer cont /** * Document size + * * @return contentLength */ @javax.annotation.Nullable @@ -399,6 +420,7 @@ public GetDocumentResponse versionId(@javax.annotation.Nullable String versionId /** * Document version + * * @return versionId */ @javax.annotation.Nullable @@ -426,6 +448,7 @@ public GetDocumentResponse addDocumentsItem(ChildDocument documentsItem) { /** * List of child documents + * * @return documents */ @javax.annotation.Nullable @@ -438,13 +461,15 @@ public void setDocuments(@javax.annotation.Nullable List document } - public GetDocumentResponse belongsToDocumentId(@javax.annotation.Nullable String belongsToDocumentId) { + public GetDocumentResponse belongsToDocumentId( + @javax.annotation.Nullable String belongsToDocumentId) { this.belongsToDocumentId = belongsToDocumentId; return this; } /** * Parent Document Identifier + * * @return belongsToDocumentId */ @javax.annotation.Nullable @@ -472,6 +497,7 @@ public GetDocumentResponse addMetadataItem(DocumentMetadata metadataItem) { /** * List of document Metadata + * * @return metadata */ @javax.annotation.Nullable @@ -494,28 +520,30 @@ public boolean equals(Object o) { return false; } GetDocumentResponse getDocumentResponse = (GetDocumentResponse) o; - return Objects.equals(this.siteId, getDocumentResponse.siteId) && - Objects.equals(this.path, getDocumentResponse.path) && - Objects.equals(this.width, getDocumentResponse.width) && - Objects.equals(this.height, getDocumentResponse.height) && - Objects.equals(this.deepLinkPath, getDocumentResponse.deepLinkPath) && - Objects.equals(this.insertedDate, getDocumentResponse.insertedDate) && - Objects.equals(this.lastModifiedDate, getDocumentResponse.lastModifiedDate) && - Objects.equals(this.checksum, getDocumentResponse.checksum) && - Objects.equals(this.checksumType, getDocumentResponse.checksumType) && - Objects.equals(this.documentId, getDocumentResponse.documentId) && - Objects.equals(this.contentType, getDocumentResponse.contentType) && - Objects.equals(this.userId, getDocumentResponse.userId) && - Objects.equals(this.contentLength, getDocumentResponse.contentLength) && - Objects.equals(this.versionId, getDocumentResponse.versionId) && - Objects.equals(this.documents, getDocumentResponse.documents) && - Objects.equals(this.belongsToDocumentId, getDocumentResponse.belongsToDocumentId) && - Objects.equals(this.metadata, getDocumentResponse.metadata); + return Objects.equals(this.siteId, getDocumentResponse.siteId) + && Objects.equals(this.path, getDocumentResponse.path) + && Objects.equals(this.width, getDocumentResponse.width) + && Objects.equals(this.height, getDocumentResponse.height) + && Objects.equals(this.deepLinkPath, getDocumentResponse.deepLinkPath) + && Objects.equals(this.insertedDate, getDocumentResponse.insertedDate) + && Objects.equals(this.lastModifiedDate, getDocumentResponse.lastModifiedDate) + && Objects.equals(this.checksum, getDocumentResponse.checksum) + && Objects.equals(this.checksumType, getDocumentResponse.checksumType) + && Objects.equals(this.documentId, getDocumentResponse.documentId) + && Objects.equals(this.contentType, getDocumentResponse.contentType) + && Objects.equals(this.userId, getDocumentResponse.userId) + && Objects.equals(this.contentLength, getDocumentResponse.contentLength) + && Objects.equals(this.versionId, getDocumentResponse.versionId) + && Objects.equals(this.documents, getDocumentResponse.documents) + && Objects.equals(this.belongsToDocumentId, getDocumentResponse.belongsToDocumentId) + && Objects.equals(this.metadata, getDocumentResponse.metadata); } @Override public int hashCode() { - return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, checksum, checksumType, documentId, contentType, userId, contentLength, versionId, documents, belongsToDocumentId, metadata); + return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, + checksum, checksumType, documentId, contentType, userId, contentLength, versionId, + documents, belongsToDocumentId, metadata); } @Override @@ -537,15 +565,15 @@ public String toString() { sb.append(" contentLength: ").append(toIndentedString(contentLength)).append("\n"); sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); sb.append(" documents: ").append(toIndentedString(documents)).append("\n"); - sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)).append("\n"); + sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)) + .append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -560,7 +588,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "path", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "checksum", "checksumType", "documentId", "contentType", "userId", "contentLength", "versionId", "documents", "belongsToDocumentId", "metadata")); + openapiFields = new HashSet( + Arrays.asList("siteId", "path", "width", "height", "deepLinkPath", "insertedDate", + "lastModifiedDate", "checksum", "checksumType", "documentId", "contentType", "userId", + "contentLength", "versionId", "documents", "belongsToDocumentId", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("documentId")); @@ -573,126 +604,176 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentResponse is not found in the empty JSON string", GetDocumentResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentResponse is not found in the empty JSON string", + GetDocumentResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : GetDocumentResponse.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : GetDocumentResponse.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if (!jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) && !jsonObj.get("versionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionId").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - ChildDocument.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) + && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if (!jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) + && !jsonObj.get("versionId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("versionId").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + ChildDocument.validateJsonElement(jsonArraydocuments.get(i)); + } ; } - if ((jsonObj.get("belongsToDocumentId") != null && !jsonObj.get("belongsToDocumentId").isJsonNull()) && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("belongsToDocumentId").toString())); - } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - }; + } + if ((jsonObj.get("belongsToDocumentId") != null + && !jsonObj.get("belongsToDocumentId").isJsonNull()) + && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("belongsToDocumentId").toString())); + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `metadata` to be an array in the JSON string but got `%s`", + jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java index 23162182c..39c6e8096 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetDocumentSyncResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentSyncResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetDocumentSyncResponse { @javax.annotation.Nullable private List syncs = new ArrayList<>(); - public GetDocumentSyncResponse() { - } + public GetDocumentSyncResponse() {} public GetDocumentSyncResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetDocumentSyncResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetDocumentSyncResponse addSyncsItem(DocumentSync syncsItem) { /** * List of document syncs + * * @return syncs */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetDocumentSyncResponse getDocumentSyncResponse = (GetDocumentSyncResponse) o; - return Objects.equals(this.next, getDocumentSyncResponse.next) && - Objects.equals(this.syncs, getDocumentSyncResponse.syncs); + return Objects.equals(this.next, getDocumentSyncResponse.next) + && Objects.equals(this.syncs, getDocumentSyncResponse.syncs); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentSyncResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentSyncResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentSyncResponse is not found in the empty JSON string", GetDocumentSyncResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentSyncResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentSyncResponse is not found in the empty JSON string", + GetDocumentSyncResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentSyncResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentSyncResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentSyncResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentSyncResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("syncs") != null && !jsonObj.get("syncs").isJsonNull()) { - JsonArray jsonArraysyncs = jsonObj.getAsJsonArray("syncs"); - if (jsonArraysyncs != null) { - // ensure the json data is an array - if (!jsonObj.get("syncs").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `syncs` to be an array in the JSON string but got `%s`", jsonObj.get("syncs").toString())); - } - - // validate the optional field `syncs` (array) - for (int i = 0; i < jsonArraysyncs.size(); i++) { - DocumentSync.validateJsonElement(jsonArraysyncs.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("syncs") != null && !jsonObj.get("syncs").isJsonNull()) { + JsonArray jsonArraysyncs = jsonObj.getAsJsonArray("syncs"); + if (jsonArraysyncs != null) { + // ensure the json data is an array + if (!jsonObj.get("syncs").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `syncs` to be an array in the JSON string but got `%s`", + jsonObj.get("syncs").toString())); } + + // validate the optional field `syncs` (array) + for (int i = 0; i < jsonArraysyncs.size(); i++) { + DocumentSync.validateJsonElement(jsonArraysyncs.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentSyncResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentSyncResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentSyncResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentSyncResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentSyncResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentSyncResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentSyncResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentSyncResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentSyncResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentSyncResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java index aa7ad728c..ebce5d8cb 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * GetDocumentTagResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentTagResponse { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; @SerializedName(SERIALIZED_NAME_INSERTED_DATE) @@ -89,8 +98,7 @@ public class GetDocumentTagResponse { @javax.annotation.Nullable private String key; - public GetDocumentTagResponse() { - } + public GetDocumentTagResponse() {} public GetDocumentTagResponse insertedDate(@javax.annotation.Nullable String insertedDate) { this.insertedDate = insertedDate; @@ -99,6 +107,7 @@ public GetDocumentTagResponse insertedDate(@javax.annotation.Nullable String ins /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -118,6 +127,7 @@ public GetDocumentTagResponse documentId(@javax.annotation.Nullable String docum /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -137,6 +147,7 @@ public GetDocumentTagResponse type(@javax.annotation.Nullable String type) { /** * Tag type + * * @return type */ @javax.annotation.Nullable @@ -156,6 +167,7 @@ public GetDocumentTagResponse userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -175,6 +187,7 @@ public GetDocumentTagResponse value(@javax.annotation.Nullable String value) { /** * Tag value + * * @return value */ @javax.annotation.Nullable @@ -202,6 +215,7 @@ public GetDocumentTagResponse addValuesItem(String valuesItem) { /** * Tag values + * * @return values */ @javax.annotation.Nullable @@ -221,6 +235,7 @@ public GetDocumentTagResponse key(@javax.annotation.Nullable String key) { /** * Tag key + * * @return key */ @javax.annotation.Nullable @@ -243,13 +258,13 @@ public boolean equals(Object o) { return false; } GetDocumentTagResponse getDocumentTagResponse = (GetDocumentTagResponse) o; - return Objects.equals(this.insertedDate, getDocumentTagResponse.insertedDate) && - Objects.equals(this.documentId, getDocumentTagResponse.documentId) && - Objects.equals(this.type, getDocumentTagResponse.type) && - Objects.equals(this.userId, getDocumentTagResponse.userId) && - Objects.equals(this.value, getDocumentTagResponse.value) && - Objects.equals(this.values, getDocumentTagResponse.values) && - Objects.equals(this.key, getDocumentTagResponse.key); + return Objects.equals(this.insertedDate, getDocumentTagResponse.insertedDate) + && Objects.equals(this.documentId, getDocumentTagResponse.documentId) + && Objects.equals(this.type, getDocumentTagResponse.type) + && Objects.equals(this.userId, getDocumentTagResponse.userId) + && Objects.equals(this.value, getDocumentTagResponse.value) + && Objects.equals(this.values, getDocumentTagResponse.values) + && Objects.equals(this.key, getDocumentTagResponse.key); } @Override @@ -273,8 +288,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -289,7 +303,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("insertedDate", "documentId", "type", "userId", "value", "values", "key")); + openapiFields = new HashSet( + Arrays.asList("insertedDate", "documentId", "type", "userId", "value", "values", "key")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -302,70 +317,96 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentTagResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentTagResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentTagResponse is not found in the empty JSON string", GetDocumentTagResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentTagResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentTagResponse is not found in the empty JSON string", + GetDocumentTagResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentTagResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentTagResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); - } - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentTagResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentTagResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) + && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `type` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("type").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() + && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `values` to be an array in the JSON string but got `%s`", + jsonObj.get("values").toString())); + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentTagResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentTagResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentTagResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentTagResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentTagResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentTagResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentTagResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentTagResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentTagResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentTagResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java index 9771de7b1..ab51a8375 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetDocumentTagsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentTagsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -70,8 +79,7 @@ public class GetDocumentTagsResponse { @javax.annotation.Nullable private List tags = new ArrayList<>(); - public GetDocumentTagsResponse() { - } + public GetDocumentTagsResponse() {} public GetDocumentTagsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -80,6 +88,7 @@ public GetDocumentTagsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -99,6 +108,7 @@ public GetDocumentTagsResponse previous(@javax.annotation.Nullable String previo /** * Previous page of results token + * * @return previous */ @javax.annotation.Nullable @@ -126,6 +136,7 @@ public GetDocumentTagsResponse addTagsItem(DocumentTag tagsItem) { /** * List of tags + * * @return tags */ @javax.annotation.Nullable @@ -148,9 +159,9 @@ public boolean equals(Object o) { return false; } GetDocumentTagsResponse getDocumentTagsResponse = (GetDocumentTagsResponse) o; - return Objects.equals(this.next, getDocumentTagsResponse.next) && - Objects.equals(this.previous, getDocumentTagsResponse.previous) && - Objects.equals(this.tags, getDocumentTagsResponse.tags); + return Objects.equals(this.next, getDocumentTagsResponse.next) + && Objects.equals(this.previous, getDocumentTagsResponse.previous) + && Objects.equals(this.tags, getDocumentTagsResponse.tags); } @Override @@ -170,8 +181,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,68 +209,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentTagsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentTagsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentTagsResponse is not found in the empty JSON string", GetDocumentTagsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentTagsResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentTagsResponse is not found in the empty JSON string", + GetDocumentTagsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentTagsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentTagsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentTagsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentTagsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - DocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) + && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("previous").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + DocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentTagsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentTagsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentTagsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentTagsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentTagsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentTagsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentTagsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentTagsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentTagsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentTagsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java index 02e8147a1..58e8015d6 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * GetDocumentUrlResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentUrlResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; @SerializedName(SERIALIZED_NAME_DOCUMENT_ID) @@ -69,8 +78,7 @@ public class GetDocumentUrlResponse { @javax.annotation.Nullable private Map headers = new HashMap<>(); - public GetDocumentUrlResponse() { - } + public GetDocumentUrlResponse() {} public GetDocumentUrlResponse documentId(@javax.annotation.Nullable String documentId) { this.documentId = documentId; @@ -79,6 +87,7 @@ public GetDocumentUrlResponse documentId(@javax.annotation.Nullable String docum /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -98,6 +107,7 @@ public GetDocumentUrlResponse url(@javax.annotation.Nullable String url) { /** * Document content url + * * @return url */ @javax.annotation.Nullable @@ -125,6 +135,7 @@ public GetDocumentUrlResponse putHeadersItem(String key, Object headersItem) { /** * Get headers + * * @return headers */ @javax.annotation.Nullable @@ -147,9 +158,9 @@ public boolean equals(Object o) { return false; } GetDocumentUrlResponse getDocumentUrlResponse = (GetDocumentUrlResponse) o; - return Objects.equals(this.documentId, getDocumentUrlResponse.documentId) && - Objects.equals(this.url, getDocumentUrlResponse.url) && - Objects.equals(this.headers, getDocumentUrlResponse.headers); + return Objects.equals(this.documentId, getDocumentUrlResponse.documentId) + && Objects.equals(this.url, getDocumentUrlResponse.url) + && Objects.equals(this.headers, getDocumentUrlResponse.headers); } @Override @@ -169,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,54 +208,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentUrlResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentUrlResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentUrlResponse is not found in the empty JSON string", GetDocumentUrlResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentUrlResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentUrlResponse is not found in the empty JSON string", + GetDocumentUrlResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentUrlResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentUrlResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentUrlResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentUrlResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) + && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `url` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("url").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentUrlResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentUrlResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentUrlResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentUrlResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentUrlResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentUrlResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentUrlResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentUrlResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentUrlResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentUrlResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java index e4a0e31e8..253086f45 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetDocumentVersionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentVersionsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetDocumentVersionsResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetDocumentVersionsResponse() { - } + public GetDocumentVersionsResponse() {} public GetDocumentVersionsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetDocumentVersionsResponse next(@javax.annotation.Nullable String next) /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetDocumentVersionsResponse documents(@javax.annotation.Nullable List documents) { + public GetDocumentVersionsResponse documents( + @javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -102,6 +112,7 @@ public GetDocumentVersionsResponse addDocumentsItem(DocumentVersion documentsIte /** * List of document versions + * * @return documents */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } GetDocumentVersionsResponse getDocumentVersionsResponse = (GetDocumentVersionsResponse) o; - return Objects.equals(this.next, getDocumentVersionsResponse.next) && - Objects.equals(this.documents, getDocumentVersionsResponse.documents); + return Objects.equals(this.next, getDocumentVersionsResponse.next) + && Objects.equals(this.documents, getDocumentVersionsResponse.documents); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +183,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentVersionsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentVersionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentVersionsResponse is not found in the empty JSON string", GetDocumentVersionsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentVersionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentVersionsResponse is not found in the empty JSON string", + GetDocumentVersionsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentVersionsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentVersionsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentVersionsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentVersionsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - DocumentVersion.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + DocumentVersion.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentVersionsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentVersionsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentVersionsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentVersionsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentVersionsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentVersionsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentVersionsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentVersionsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentVersionsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentVersionsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java index aebe6691e..d8990ea54 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * GetDocumentWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentWorkflowResponse { public static final String SERIALIZED_NAME_WORKFLOW = "workflow"; @SerializedName(SERIALIZED_NAME_WORKFLOW) @javax.annotation.Nullable private DocumentWorkflow workflow; - public GetDocumentWorkflowResponse() { - } + public GetDocumentWorkflowResponse() {} - public GetDocumentWorkflowResponse workflow(@javax.annotation.Nullable DocumentWorkflow workflow) { + public GetDocumentWorkflowResponse workflow( + @javax.annotation.Nullable DocumentWorkflow workflow) { this.workflow = workflow; return this; } /** * Get workflow + * * @return workflow */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +146,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentWorkflowResponse is not found in the empty JSON string", GetDocumentWorkflowResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentWorkflowResponse is not found in the empty JSON string", + GetDocumentWorkflowResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `workflow` - if (jsonObj.get("workflow") != null && !jsonObj.get("workflow").isJsonNull()) { - DocumentWorkflow.validateJsonElement(jsonObj.get("workflow")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentWorkflowResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `workflow` + if (jsonObj.get("workflow") != null && !jsonObj.get("workflow").isJsonNull()) { + DocumentWorkflow.validateJsonElement(jsonObj.get("workflow")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java index 19ca36900..a2a097495 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetDocumentWorkflowsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentWorkflowsResponse { public static final String SERIALIZED_NAME_WORKFLOWS = "workflows"; @SerializedName(SERIALIZED_NAME_WORKFLOWS) @@ -65,10 +74,10 @@ public class GetDocumentWorkflowsResponse { @javax.annotation.Nullable private String next; - public GetDocumentWorkflowsResponse() { - } + public GetDocumentWorkflowsResponse() {} - public GetDocumentWorkflowsResponse workflows(@javax.annotation.Nullable List workflows) { + public GetDocumentWorkflowsResponse workflows( + @javax.annotation.Nullable List workflows) { this.workflows = workflows; return this; } @@ -83,6 +92,7 @@ public GetDocumentWorkflowsResponse addWorkflowsItem(DocumentWorkflow workflowsI /** * List of Document Workflows + * * @return workflows */ @javax.annotation.Nullable @@ -102,6 +112,7 @@ public GetDocumentWorkflowsResponse next(@javax.annotation.Nullable String next) /** * Get next + * * @return next */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } GetDocumentWorkflowsResponse getDocumentWorkflowsResponse = (GetDocumentWorkflowsResponse) o; - return Objects.equals(this.workflows, getDocumentWorkflowsResponse.workflows) && - Objects.equals(this.next, getDocumentWorkflowsResponse.next); + return Objects.equals(this.workflows, getDocumentWorkflowsResponse.workflows) + && Objects.equals(this.next, getDocumentWorkflowsResponse.next); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +183,76 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentWorkflowsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentWorkflowsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentWorkflowsResponse is not found in the empty JSON string", GetDocumentWorkflowsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentWorkflowsResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentWorkflowsResponse is not found in the empty JSON string", + GetDocumentWorkflowsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentWorkflowsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentWorkflowsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentWorkflowsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentWorkflowsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("workflows") != null && !jsonObj.get("workflows").isJsonNull()) { - JsonArray jsonArrayworkflows = jsonObj.getAsJsonArray("workflows"); - if (jsonArrayworkflows != null) { - // ensure the json data is an array - if (!jsonObj.get("workflows").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflows` to be an array in the JSON string but got `%s`", jsonObj.get("workflows").toString())); - } - - // validate the optional field `workflows` (array) - for (int i = 0; i < jsonArrayworkflows.size(); i++) { - DocumentWorkflow.validateJsonElement(jsonArrayworkflows.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("workflows") != null && !jsonObj.get("workflows").isJsonNull()) { + JsonArray jsonArrayworkflows = jsonObj.getAsJsonArray("workflows"); + if (jsonArrayworkflows != null) { + // ensure the json data is an array + if (!jsonObj.get("workflows").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflows` to be an array in the JSON string but got `%s`", + jsonObj.get("workflows").toString())); } + + // validate the optional field `workflows` (array) + for (int i = 0; i < jsonArrayworkflows.size(); i++) { + DocumentWorkflow.validateJsonElement(jsonArrayworkflows.get(i)); + } ; } - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } + } + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentWorkflowsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentWorkflowsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentWorkflowsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentWorkflowsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentWorkflowsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentWorkflowsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentWorkflowsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentWorkflowsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentWorkflowsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentWorkflowsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java index f9e10fba6..b90a29ae1 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetDocumentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -70,8 +79,7 @@ public class GetDocumentsResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetDocumentsResponse() { - } + public GetDocumentsResponse() {} public GetDocumentsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -80,6 +88,7 @@ public GetDocumentsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -99,6 +108,7 @@ public GetDocumentsResponse previous(@javax.annotation.Nullable String previous) /** * Previous page of results token + * * @return previous */ @javax.annotation.Nullable @@ -126,6 +136,7 @@ public GetDocumentsResponse addDocumentsItem(Document documentsItem) { /** * List of documents + * * @return documents */ @javax.annotation.Nullable @@ -148,9 +159,9 @@ public boolean equals(Object o) { return false; } GetDocumentsResponse getDocumentsResponse = (GetDocumentsResponse) o; - return Objects.equals(this.next, getDocumentsResponse.next) && - Objects.equals(this.previous, getDocumentsResponse.previous) && - Objects.equals(this.documents, getDocumentsResponse.documents); + return Objects.equals(this.next, getDocumentsResponse.next) + && Objects.equals(this.previous, getDocumentsResponse.previous) + && Objects.equals(this.documents, getDocumentsResponse.documents); } @Override @@ -170,8 +181,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,68 +209,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetDocumentsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetDocumentsResponse is not found in the empty JSON string", GetDocumentsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetDocumentsResponse is not found in the empty JSON string", + GetDocumentsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetDocumentsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetDocumentsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetDocumentsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetDocumentsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - Document.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) + && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("previous").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + Document.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetDocumentsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetDocumentsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetDocumentsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetDocumentsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetDocumentsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetDocumentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetDocumentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetDocumentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetDocumentsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetDocumentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java b/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java index 242ed2734..d336c2ad5 100644 --- a/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetEntitiesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetEntitiesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetEntitiesResponse { @javax.annotation.Nullable private List entities = new ArrayList<>(); - public GetEntitiesResponse() { - } + public GetEntitiesResponse() {} public GetEntitiesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetEntitiesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetEntitiesResponse addEntitiesItem(Entity entitiesItem) { /** * List of Entities + * * @return entities */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetEntitiesResponse getEntitiesResponse = (GetEntitiesResponse) o; - return Objects.equals(this.next, getEntitiesResponse.next) && - Objects.equals(this.entities, getEntitiesResponse.entities); + return Objects.equals(this.next, getEntitiesResponse.next) + && Objects.equals(this.entities, getEntitiesResponse.entities); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetEntitiesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetEntitiesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetEntitiesResponse is not found in the empty JSON string", GetEntitiesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetEntitiesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetEntitiesResponse is not found in the empty JSON string", + GetEntitiesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetEntitiesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetEntitiesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetEntitiesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetEntitiesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("entities") != null && !jsonObj.get("entities").isJsonNull()) { - JsonArray jsonArrayentities = jsonObj.getAsJsonArray("entities"); - if (jsonArrayentities != null) { - // ensure the json data is an array - if (!jsonObj.get("entities").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entities` to be an array in the JSON string but got `%s`", jsonObj.get("entities").toString())); - } - - // validate the optional field `entities` (array) - for (int i = 0; i < jsonArrayentities.size(); i++) { - Entity.validateJsonElement(jsonArrayentities.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("entities") != null && !jsonObj.get("entities").isJsonNull()) { + JsonArray jsonArrayentities = jsonObj.getAsJsonArray("entities"); + if (jsonArrayentities != null) { + // ensure the json data is an array + if (!jsonObj.get("entities").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entities` to be an array in the JSON string but got `%s`", + jsonObj.get("entities").toString())); } + + // validate the optional field `entities` (array) + for (int i = 0; i < jsonArrayentities.size(); i++) { + Entity.validateJsonElement(jsonArrayentities.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEntitiesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEntitiesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetEntitiesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEntitiesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetEntitiesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetEntitiesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEntitiesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetEntitiesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetEntitiesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetEntitiesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetEntityResponse.java b/src/main/java/com/formkiq/client/model/GetEntityResponse.java index 641bf1eb8..330327c0a 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetEntityResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetEntityResponse { public static final String SERIALIZED_NAME_ENTITY = "entity"; @SerializedName(SERIALIZED_NAME_ENTITY) @javax.annotation.Nullable private Entity entity; - public GetEntityResponse() { - } + public GetEntityResponse() {} public GetEntityResponse entity(@javax.annotation.Nullable Entity entity) { this.entity = entity; @@ -68,6 +76,7 @@ public GetEntityResponse entity(@javax.annotation.Nullable Entity entity) { /** * Get entity + * * @return entity */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetEntityResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetEntityResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetEntityResponse is not found in the empty JSON string", GetEntityResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetEntityResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetEntityResponse is not found in the empty JSON string", + GetEntityResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetEntityResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetEntityResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `entity` - if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { - Entity.validateJsonElement(jsonObj.get("entity")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetEntityResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetEntityResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `entity` + if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { + Entity.validateJsonElement(jsonObj.get("entity")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEntityResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEntityResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetEntityResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEntityResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetEntityResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetEntityResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEntityResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetEntityResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetEntityResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetEntityResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java b/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java index 9cbbb6535..9e1670c55 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetEntityTypeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetEntityTypeResponse { public static final String SERIALIZED_NAME_ENTITY_TYPE = "entityType"; @SerializedName(SERIALIZED_NAME_ENTITY_TYPE) @javax.annotation.Nullable private EntityType entityType; - public GetEntityTypeResponse() { - } + public GetEntityTypeResponse() {} public GetEntityTypeResponse entityType(@javax.annotation.Nullable EntityType entityType) { this.entityType = entityType; @@ -68,6 +76,7 @@ public GetEntityTypeResponse entityType(@javax.annotation.Nullable EntityType en /** * Get entityType + * * @return entityType */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetEntityTypeResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetEntityTypeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetEntityTypeResponse is not found in the empty JSON string", GetEntityTypeResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetEntityTypeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetEntityTypeResponse is not found in the empty JSON string", + GetEntityTypeResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetEntityTypeResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetEntityTypeResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `entityType` - if (jsonObj.get("entityType") != null && !jsonObj.get("entityType").isJsonNull()) { - EntityType.validateJsonElement(jsonObj.get("entityType")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetEntityTypeResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetEntityTypeResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `entityType` + if (jsonObj.get("entityType") != null && !jsonObj.get("entityType").isJsonNull()) { + EntityType.validateJsonElement(jsonObj.get("entityType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEntityTypeResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEntityTypeResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetEntityTypeResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEntityTypeResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetEntityTypeResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetEntityTypeResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEntityTypeResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetEntityTypeResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetEntityTypeResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetEntityTypeResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java b/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java index a954d1c64..1cd2faf18 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetEntityTypesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetEntityTypesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetEntityTypesResponse { @javax.annotation.Nullable private List entityTypes = new ArrayList<>(); - public GetEntityTypesResponse() { - } + public GetEntityTypesResponse() {} public GetEntityTypesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetEntityTypesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetEntityTypesResponse entityTypes(@javax.annotation.Nullable List entityTypes) { + public GetEntityTypesResponse entityTypes( + @javax.annotation.Nullable List entityTypes) { this.entityTypes = entityTypes; return this; } @@ -102,6 +112,7 @@ public GetEntityTypesResponse addEntityTypesItem(EntityType entityTypesItem) { /** * List of Entity Types + * * @return entityTypes */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } GetEntityTypesResponse getEntityTypesResponse = (GetEntityTypesResponse) o; - return Objects.equals(this.next, getEntityTypesResponse.next) && - Objects.equals(this.entityTypes, getEntityTypesResponse.entityTypes); + return Objects.equals(this.next, getEntityTypesResponse.next) + && Objects.equals(this.entityTypes, getEntityTypesResponse.entityTypes); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +183,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetEntityTypesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetEntityTypesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetEntityTypesResponse is not found in the empty JSON string", GetEntityTypesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetEntityTypesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetEntityTypesResponse is not found in the empty JSON string", + GetEntityTypesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetEntityTypesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetEntityTypesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetEntityTypesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetEntityTypesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("entityTypes") != null && !jsonObj.get("entityTypes").isJsonNull()) { - JsonArray jsonArrayentityTypes = jsonObj.getAsJsonArray("entityTypes"); - if (jsonArrayentityTypes != null) { - // ensure the json data is an array - if (!jsonObj.get("entityTypes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `entityTypes` to be an array in the JSON string but got `%s`", jsonObj.get("entityTypes").toString())); - } - - // validate the optional field `entityTypes` (array) - for (int i = 0; i < jsonArrayentityTypes.size(); i++) { - EntityType.validateJsonElement(jsonArrayentityTypes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("entityTypes") != null && !jsonObj.get("entityTypes").isJsonNull()) { + JsonArray jsonArrayentityTypes = jsonObj.getAsJsonArray("entityTypes"); + if (jsonArrayentityTypes != null) { + // ensure the json data is an array + if (!jsonObj.get("entityTypes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `entityTypes` to be an array in the JSON string but got `%s`", + jsonObj.get("entityTypes").toString())); } + + // validate the optional field `entityTypes` (array) + for (int i = 0; i < jsonArrayentityTypes.size(); i++) { + EntityType.validateJsonElement(jsonArrayentityTypes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetEntityTypesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetEntityTypesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetEntityTypesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetEntityTypesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetEntityTypesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetEntityTypesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetEntityTypesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetEntityTypesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetEntityTypesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetEntityTypesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java b/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java index 1f87ef90a..6a029d4e4 100644 --- a/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java +++ b/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetExaminePdfResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetExaminePdfResponse { public static final String SERIALIZED_NAME_FILEINFO = "fileinfo"; @SerializedName(SERIALIZED_NAME_FILEINFO) @javax.annotation.Nullable private PdfDocument fileinfo; - public GetExaminePdfResponse() { - } + public GetExaminePdfResponse() {} public GetExaminePdfResponse fileinfo(@javax.annotation.Nullable PdfDocument fileinfo) { this.fileinfo = fileinfo; @@ -68,6 +76,7 @@ public GetExaminePdfResponse fileinfo(@javax.annotation.Nullable PdfDocument fil /** * Get fileinfo + * * @return fileinfo */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetExaminePdfResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetExaminePdfResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetExaminePdfResponse is not found in the empty JSON string", GetExaminePdfResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetExaminePdfResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetExaminePdfResponse is not found in the empty JSON string", + GetExaminePdfResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetExaminePdfResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetExaminePdfResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `fileinfo` - if (jsonObj.get("fileinfo") != null && !jsonObj.get("fileinfo").isJsonNull()) { - PdfDocument.validateJsonElement(jsonObj.get("fileinfo")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetExaminePdfResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetExaminePdfResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `fileinfo` + if (jsonObj.get("fileinfo") != null && !jsonObj.get("fileinfo").isJsonNull()) { + PdfDocument.validateJsonElement(jsonObj.get("fileinfo")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetExaminePdfResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetExaminePdfResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetExaminePdfResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetExaminePdfResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetExaminePdfResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetExaminePdfResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetExaminePdfResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetExaminePdfResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetExaminePdfResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetExaminePdfResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java b/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java index 56c9c28db..2378ed855 100644 --- a/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java +++ b/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * GetExaminePdfUrlResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetExaminePdfUrlResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -62,8 +71,7 @@ public class GetExaminePdfUrlResponse { @javax.annotation.Nullable private String uploadUrl; - public GetExaminePdfUrlResponse() { - } + public GetExaminePdfUrlResponse() {} public GetExaminePdfUrlResponse id(@javax.annotation.Nullable String id) { this.id = id; @@ -72,6 +80,7 @@ public GetExaminePdfUrlResponse id(@javax.annotation.Nullable String id) { /** * Uploaded document identifier + * * @return id */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public GetExaminePdfUrlResponse uploadUrl(@javax.annotation.Nullable String uplo /** * Url to upload document to + * * @return uploadUrl */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } GetExaminePdfUrlResponse getExaminePdfUrlResponse = (GetExaminePdfUrlResponse) o; - return Objects.equals(this.id, getExaminePdfUrlResponse.id) && - Objects.equals(this.uploadUrl, getExaminePdfUrlResponse.uploadUrl); + return Objects.equals(this.id, getExaminePdfUrlResponse.id) + && Objects.equals(this.uploadUrl, getExaminePdfUrlResponse.uploadUrl); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetExaminePdfUrlResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetExaminePdfUrlResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetExaminePdfUrlResponse is not found in the empty JSON string", GetExaminePdfUrlResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetExaminePdfUrlResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetExaminePdfUrlResponse is not found in the empty JSON string", + GetExaminePdfUrlResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetExaminePdfUrlResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetExaminePdfUrlResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); - } - if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) && !jsonObj.get("uploadUrl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uploadUrl").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetExaminePdfUrlResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetExaminePdfUrlResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) + && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `id` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("id").toString())); + } + if ((jsonObj.get("uploadUrl") != null && !jsonObj.get("uploadUrl").isJsonNull()) + && !jsonObj.get("uploadUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `uploadUrl` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("uploadUrl").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetExaminePdfUrlResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetExaminePdfUrlResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetExaminePdfUrlResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetExaminePdfUrlResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetExaminePdfUrlResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetExaminePdfUrlResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetExaminePdfUrlResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetExaminePdfUrlResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetExaminePdfUrlResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetExaminePdfUrlResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java b/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java index 48eb5df6f..4e4d6c6c8 100644 --- a/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * GetFolderPermissionsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetFolderPermissionsResponse { public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) @javax.annotation.Nullable private List roles = new ArrayList<>(); - public GetFolderPermissionsResponse() { - } + public GetFolderPermissionsResponse() {} - public GetFolderPermissionsResponse roles(@javax.annotation.Nullable List roles) { + public GetFolderPermissionsResponse roles( + @javax.annotation.Nullable List roles) { this.roles = roles; return this; } @@ -78,6 +87,7 @@ public GetFolderPermissionsResponse addRolesItem(FolderPermission rolesItem) { /** * Get roles + * * @return roles */ @javax.annotation.Nullable @@ -118,8 +128,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +156,70 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetFolderPermissionsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetFolderPermissionsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetFolderPermissionsResponse is not found in the empty JSON string", GetFolderPermissionsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetFolderPermissionsResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetFolderPermissionsResponse is not found in the empty JSON string", + GetFolderPermissionsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetFolderPermissionsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetFolderPermissionsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetFolderPermissionsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetFolderPermissionsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull()) { - JsonArray jsonArrayroles = jsonObj.getAsJsonArray("roles"); - if (jsonArrayroles != null) { - // ensure the json data is an array - if (!jsonObj.get("roles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `roles` to be an array in the JSON string but got `%s`", jsonObj.get("roles").toString())); - } - - // validate the optional field `roles` (array) - for (int i = 0; i < jsonArrayroles.size(); i++) { - FolderPermission.validateJsonElement(jsonArrayroles.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull()) { + JsonArray jsonArrayroles = jsonObj.getAsJsonArray("roles"); + if (jsonArrayroles != null) { + // ensure the json data is an array + if (!jsonObj.get("roles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `roles` to be an array in the JSON string but got `%s`", + jsonObj.get("roles").toString())); } + + // validate the optional field `roles` (array) + for (int i = 0; i < jsonArrayroles.size(); i++) { + FolderPermission.validateJsonElement(jsonArrayroles.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetFolderPermissionsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetFolderPermissionsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetFolderPermissionsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetFolderPermissionsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetFolderPermissionsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetFolderPermissionsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetFolderPermissionsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetFolderPermissionsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetFolderPermissionsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetFolderPermissionsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetFoldersResponse.java b/src/main/java/com/formkiq/client/model/GetFoldersResponse.java index 9bbf499d6..40c7db9ca 100644 --- a/src/main/java/com/formkiq/client/model/GetFoldersResponse.java +++ b/src/main/java/com/formkiq/client/model/GetFoldersResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetFoldersResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetFoldersResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -70,8 +79,7 @@ public class GetFoldersResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetFoldersResponse() { - } + public GetFoldersResponse() {} public GetFoldersResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -80,6 +88,7 @@ public GetFoldersResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -99,6 +108,7 @@ public GetFoldersResponse previous(@javax.annotation.Nullable String previous) { /** * Previous page of results token + * * @return previous */ @javax.annotation.Nullable @@ -111,7 +121,8 @@ public void setPrevious(@javax.annotation.Nullable String previous) { } - public GetFoldersResponse documents(@javax.annotation.Nullable List documents) { + public GetFoldersResponse documents( + @javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -126,6 +137,7 @@ public GetFoldersResponse addDocumentsItem(SearchResultDocument documentsItem) { /** * List of search result documents + * * @return documents */ @javax.annotation.Nullable @@ -148,9 +160,9 @@ public boolean equals(Object o) { return false; } GetFoldersResponse getFoldersResponse = (GetFoldersResponse) o; - return Objects.equals(this.next, getFoldersResponse.next) && - Objects.equals(this.previous, getFoldersResponse.previous) && - Objects.equals(this.documents, getFoldersResponse.documents); + return Objects.equals(this.next, getFoldersResponse.next) + && Objects.equals(this.previous, getFoldersResponse.previous) + && Objects.equals(this.documents, getFoldersResponse.documents); } @Override @@ -170,8 +182,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,68 +210,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetFoldersResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetFoldersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetFoldersResponse is not found in the empty JSON string", GetFoldersResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetFoldersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetFoldersResponse is not found in the empty JSON string", + GetFoldersResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetFoldersResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetFoldersResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetFoldersResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetFoldersResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - SearchResultDocument.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) + && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("previous").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + SearchResultDocument.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetFoldersResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetFoldersResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetFoldersResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetFoldersResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetFoldersResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetFoldersResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetFoldersResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetFoldersResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetFoldersResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetFoldersResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetGroupResponse.java b/src/main/java/com/formkiq/client/model/GetGroupResponse.java index de21fef74..76fcc37be 100644 --- a/src/main/java/com/formkiq/client/model/GetGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetGroupResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetGroupResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetGroupResponse { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @javax.annotation.Nullable private Group group; - public GetGroupResponse() { - } + public GetGroupResponse() {} public GetGroupResponse group(@javax.annotation.Nullable Group group) { this.group = group; @@ -68,6 +76,7 @@ public GetGroupResponse group(@javax.annotation.Nullable Group group) { /** * Get group + * * @return group */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetGroupResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetGroupResponse is not found in the empty JSON string", GetGroupResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetGroupResponse is not found in the empty JSON string", + GetGroupResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetGroupResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetGroupResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `group` - if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { - Group.validateJsonElement(jsonObj.get("group")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetGroupResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetGroupResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `group` + if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { + Group.validateJsonElement(jsonObj.get("group")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetGroupResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetGroupResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetGroupResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetGroupResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetGroupResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetGroupResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetGroupResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetGroupResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetGroupResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetGroupResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetGroupsResponse.java index faad207b1..e06c5e21a 100644 --- a/src/main/java/com/formkiq/client/model/GetGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetGroupsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetGroupsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetGroupsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetGroupsResponse { @javax.annotation.Nullable private List groups = new ArrayList<>(); - public GetGroupsResponse() { - } + public GetGroupsResponse() {} public GetGroupsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetGroupsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetGroupsResponse addGroupsItem(Group groupsItem) { /** * List of groups + * * @return groups */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetGroupsResponse getGroupsResponse = (GetGroupsResponse) o; - return Objects.equals(this.next, getGroupsResponse.next) && - Objects.equals(this.groups, getGroupsResponse.groups); + return Objects.equals(this.next, getGroupsResponse.next) + && Objects.equals(this.groups, getGroupsResponse.groups); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetGroupsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetGroupsResponse is not found in the empty JSON string", GetGroupsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetGroupsResponse is not found in the empty JSON string", + GetGroupsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetGroupsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetGroupsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetGroupsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetGroupsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { - JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); - if (jsonArraygroups != null) { - // ensure the json data is an array - if (!jsonObj.get("groups").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); - } - - // validate the optional field `groups` (array) - for (int i = 0; i < jsonArraygroups.size(); i++) { - Group.validateJsonElement(jsonArraygroups.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { + JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); + if (jsonArraygroups != null) { + // ensure the json data is an array + if (!jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `groups` to be an array in the JSON string but got `%s`", + jsonObj.get("groups").toString())); } + + // validate the optional field `groups` (array) + for (int i = 0; i < jsonArraygroups.size(); i++) { + Group.validateJsonElement(jsonArraygroups.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetGroupsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetGroupsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetGroupsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetGroupsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetGroupsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetGroupsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetGroupsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetGroupsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetGroupsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetGroupsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java index 4cf2c8fde..6e73ea0a2 100644 --- a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * GetLocaleResourceItemResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetLocaleResourceItemResponse { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; @SerializedName(SERIALIZED_NAME_RESOURCE_ITEM) @javax.annotation.Nullable private ResourceItem resourceItem; - public GetLocaleResourceItemResponse() { - } + public GetLocaleResourceItemResponse() {} - public GetLocaleResourceItemResponse resourceItem(@javax.annotation.Nullable ResourceItem resourceItem) { + public GetLocaleResourceItemResponse resourceItem( + @javax.annotation.Nullable ResourceItem resourceItem) { this.resourceItem = resourceItem; return this; } /** * Get resourceItem + * * @return resourceItem */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -134,55 +143,62 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetLocaleResourceItemResponse + * @throws IOException if the JSON Element is invalid with respect to + * GetLocaleResourceItemResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetLocaleResourceItemResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetLocaleResourceItemResponse is not found in the empty JSON string", GetLocaleResourceItemResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetLocaleResourceItemResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetLocaleResourceItemResponse is not found in the empty JSON string", + GetLocaleResourceItemResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetLocaleResourceItemResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetLocaleResourceItemResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `resourceItem` - if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { - ResourceItem.validateJsonElement(jsonObj.get("resourceItem")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetLocaleResourceItemResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetLocaleResourceItemResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `resourceItem` + if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { + ResourceItem.validateJsonElement(jsonObj.get("resourceItem")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetLocaleResourceItemResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetLocaleResourceItemResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetLocaleResourceItemResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetLocaleResourceItemResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetLocaleResourceItemResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetLocaleResourceItemResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetLocaleResourceItemResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetLocaleResourceItemResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetLocaleResourceItemResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetLocaleResourceItemResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java index 16038b13e..eb397221c 100644 --- a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetLocaleResourceItemsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetLocaleResourceItemsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetLocaleResourceItemsResponse { @javax.annotation.Nullable private List resourceItems = new ArrayList<>(); - public GetLocaleResourceItemsResponse() { - } + public GetLocaleResourceItemsResponse() {} public GetLocaleResourceItemsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetLocaleResourceItemsResponse next(@javax.annotation.Nullable String nex /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetLocaleResourceItemsResponse resourceItems(@javax.annotation.Nullable List resourceItems) { + public GetLocaleResourceItemsResponse resourceItems( + @javax.annotation.Nullable List resourceItems) { this.resourceItems = resourceItems; return this; } @@ -102,6 +112,7 @@ public GetLocaleResourceItemsResponse addResourceItemsItem(ResourceItem resource /** * List of permissions + * * @return resourceItems */ @javax.annotation.Nullable @@ -123,9 +134,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetLocaleResourceItemsResponse getLocaleResourceItemsResponse = (GetLocaleResourceItemsResponse) o; - return Objects.equals(this.next, getLocaleResourceItemsResponse.next) && - Objects.equals(this.resourceItems, getLocaleResourceItemsResponse.resourceItems); + GetLocaleResourceItemsResponse getLocaleResourceItemsResponse = + (GetLocaleResourceItemsResponse) o; + return Objects.equals(this.next, getLocaleResourceItemsResponse.next) + && Objects.equals(this.resourceItems, getLocaleResourceItemsResponse.resourceItems); } @Override @@ -144,8 +156,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -170,68 +181,80 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetLocaleResourceItemsResponse + * @throws IOException if the JSON Element is invalid with respect to + * GetLocaleResourceItemsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetLocaleResourceItemsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetLocaleResourceItemsResponse is not found in the empty JSON string", GetLocaleResourceItemsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetLocaleResourceItemsResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetLocaleResourceItemsResponse is not found in the empty JSON string", + GetLocaleResourceItemsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetLocaleResourceItemsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetLocaleResourceItemsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetLocaleResourceItemsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetLocaleResourceItemsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("resourceItems") != null && !jsonObj.get("resourceItems").isJsonNull()) { - JsonArray jsonArrayresourceItems = jsonObj.getAsJsonArray("resourceItems"); - if (jsonArrayresourceItems != null) { - // ensure the json data is an array - if (!jsonObj.get("resourceItems").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resourceItems` to be an array in the JSON string but got `%s`", jsonObj.get("resourceItems").toString())); - } - - // validate the optional field `resourceItems` (array) - for (int i = 0; i < jsonArrayresourceItems.size(); i++) { - ResourceItem.validateJsonElement(jsonArrayresourceItems.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("resourceItems") != null && !jsonObj.get("resourceItems").isJsonNull()) { + JsonArray jsonArrayresourceItems = jsonObj.getAsJsonArray("resourceItems"); + if (jsonArrayresourceItems != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceItems").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `resourceItems` to be an array in the JSON string but got `%s`", + jsonObj.get("resourceItems").toString())); } + + // validate the optional field `resourceItems` (array) + for (int i = 0; i < jsonArrayresourceItems.size(); i++) { + ResourceItem.validateJsonElement(jsonArrayresourceItems.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetLocaleResourceItemsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetLocaleResourceItemsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetLocaleResourceItemsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetLocaleResourceItemsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetLocaleResourceItemsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetLocaleResourceItemsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetLocaleResourceItemsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetLocaleResourceItemsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetLocaleResourceItemsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetLocaleResourceItemsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -240,7 +263,8 @@ public GetLocaleResourceItemsResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of GetLocaleResourceItemsResponse - * @throws IOException if the JSON string is invalid with respect to GetLocaleResourceItemsResponse + * @throws IOException if the JSON string is invalid with respect to + * GetLocaleResourceItemsResponse */ public static GetLocaleResourceItemsResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetLocaleResourceItemsResponse.class); diff --git a/src/main/java/com/formkiq/client/model/GetLocalesResponse.java b/src/main/java/com/formkiq/client/model/GetLocalesResponse.java index 84ed56544..13f1768b3 100644 --- a/src/main/java/com/formkiq/client/model/GetLocalesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocalesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetLocalesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetLocalesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetLocalesResponse { @javax.annotation.Nullable private List locales = new ArrayList<>(); - public GetLocalesResponse() { - } + public GetLocalesResponse() {} public GetLocalesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetLocalesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetLocalesResponse addLocalesItem(LocaleInfo localesItem) { /** * List of Locale + * * @return locales */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetLocalesResponse getLocalesResponse = (GetLocalesResponse) o; - return Objects.equals(this.next, getLocalesResponse.next) && - Objects.equals(this.locales, getLocalesResponse.locales); + return Objects.equals(this.next, getLocalesResponse.next) + && Objects.equals(this.locales, getLocalesResponse.locales); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetLocalesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetLocalesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetLocalesResponse is not found in the empty JSON string", GetLocalesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetLocalesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetLocalesResponse is not found in the empty JSON string", + GetLocalesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetLocalesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetLocalesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetLocalesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetLocalesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("locales") != null && !jsonObj.get("locales").isJsonNull()) { - JsonArray jsonArraylocales = jsonObj.getAsJsonArray("locales"); - if (jsonArraylocales != null) { - // ensure the json data is an array - if (!jsonObj.get("locales").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `locales` to be an array in the JSON string but got `%s`", jsonObj.get("locales").toString())); - } - - // validate the optional field `locales` (array) - for (int i = 0; i < jsonArraylocales.size(); i++) { - LocaleInfo.validateJsonElement(jsonArraylocales.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("locales") != null && !jsonObj.get("locales").isJsonNull()) { + JsonArray jsonArraylocales = jsonObj.getAsJsonArray("locales"); + if (jsonArraylocales != null) { + // ensure the json data is an array + if (!jsonObj.get("locales").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `locales` to be an array in the JSON string but got `%s`", + jsonObj.get("locales").toString())); } + + // validate the optional field `locales` (array) + for (int i = 0; i < jsonArraylocales.size(); i++) { + LocaleInfo.validateJsonElement(jsonArraylocales.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetLocalesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetLocalesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetLocalesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetLocalesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetLocalesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetLocalesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetLocalesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetLocalesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetLocalesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetLocalesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java b/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java index b1c68c10f..5cbae14ec 100644 --- a/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetMalwareScanResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetMalwareScanResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetMalwareScanResponse { @javax.annotation.Nullable private List malwareScanResults = new ArrayList<>(); - public GetMalwareScanResponse() { - } + public GetMalwareScanResponse() {} public GetMalwareScanResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetMalwareScanResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,12 +96,14 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetMalwareScanResponse malwareScanResults(@javax.annotation.Nullable List malwareScanResults) { + public GetMalwareScanResponse malwareScanResults( + @javax.annotation.Nullable List malwareScanResults) { this.malwareScanResults = malwareScanResults; return this; } - public GetMalwareScanResponse addMalwareScanResultsItem(MalwareScanResult malwareScanResultsItem) { + public GetMalwareScanResponse addMalwareScanResultsItem( + MalwareScanResult malwareScanResultsItem) { if (this.malwareScanResults == null) { this.malwareScanResults = new ArrayList<>(); } @@ -102,6 +113,7 @@ public GetMalwareScanResponse addMalwareScanResultsItem(MalwareScanResult malwar /** * List of Malware Scan Results + * * @return malwareScanResults */ @javax.annotation.Nullable @@ -109,7 +121,8 @@ public List getMalwareScanResults() { return malwareScanResults; } - public void setMalwareScanResults(@javax.annotation.Nullable List malwareScanResults) { + public void setMalwareScanResults( + @javax.annotation.Nullable List malwareScanResults) { this.malwareScanResults = malwareScanResults; } @@ -124,8 +137,8 @@ public boolean equals(Object o) { return false; } GetMalwareScanResponse getMalwareScanResponse = (GetMalwareScanResponse) o; - return Objects.equals(this.next, getMalwareScanResponse.next) && - Objects.equals(this.malwareScanResults, getMalwareScanResponse.malwareScanResults); + return Objects.equals(this.next, getMalwareScanResponse.next) + && Objects.equals(this.malwareScanResults, getMalwareScanResponse.malwareScanResults); } @Override @@ -144,8 +157,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +185,76 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetMalwareScanResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetMalwareScanResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetMalwareScanResponse is not found in the empty JSON string", GetMalwareScanResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetMalwareScanResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetMalwareScanResponse is not found in the empty JSON string", + GetMalwareScanResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetMalwareScanResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetMalwareScanResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetMalwareScanResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetMalwareScanResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("malwareScanResults") != null && !jsonObj.get("malwareScanResults").isJsonNull()) { - JsonArray jsonArraymalwareScanResults = jsonObj.getAsJsonArray("malwareScanResults"); - if (jsonArraymalwareScanResults != null) { - // ensure the json data is an array - if (!jsonObj.get("malwareScanResults").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `malwareScanResults` to be an array in the JSON string but got `%s`", jsonObj.get("malwareScanResults").toString())); - } - - // validate the optional field `malwareScanResults` (array) - for (int i = 0; i < jsonArraymalwareScanResults.size(); i++) { - MalwareScanResult.validateJsonElement(jsonArraymalwareScanResults.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("malwareScanResults") != null + && !jsonObj.get("malwareScanResults").isJsonNull()) { + JsonArray jsonArraymalwareScanResults = jsonObj.getAsJsonArray("malwareScanResults"); + if (jsonArraymalwareScanResults != null) { + // ensure the json data is an array + if (!jsonObj.get("malwareScanResults").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `malwareScanResults` to be an array in the JSON string but got `%s`", + jsonObj.get("malwareScanResults").toString())); } + + // validate the optional field `malwareScanResults` (array) + for (int i = 0; i < jsonArraymalwareScanResults.size(); i++) { + MalwareScanResult.validateJsonElement(jsonArraymalwareScanResults.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetMalwareScanResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetMalwareScanResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetMalwareScanResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetMalwareScanResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetMalwareScanResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetMalwareScanResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetMalwareScanResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetMalwareScanResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetMalwareScanResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetMalwareScanResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetMappingResponse.java b/src/main/java/com/formkiq/client/model/GetMappingResponse.java index 67304b44f..2c75985ff 100644 --- a/src/main/java/com/formkiq/client/model/GetMappingResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMappingResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetMappingResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetMappingResponse { public static final String SERIALIZED_NAME_MAPPING = "mapping"; @SerializedName(SERIALIZED_NAME_MAPPING) @javax.annotation.Nullable private Mapping mapping; - public GetMappingResponse() { - } + public GetMappingResponse() {} public GetMappingResponse mapping(@javax.annotation.Nullable Mapping mapping) { this.mapping = mapping; @@ -68,6 +76,7 @@ public GetMappingResponse mapping(@javax.annotation.Nullable Mapping mapping) { /** * Get mapping + * * @return mapping */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetMappingResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetMappingResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetMappingResponse is not found in the empty JSON string", GetMappingResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetMappingResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetMappingResponse is not found in the empty JSON string", + GetMappingResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetMappingResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetMappingResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `mapping` - if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { - Mapping.validateJsonElement(jsonObj.get("mapping")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetMappingResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetMappingResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `mapping` + if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { + Mapping.validateJsonElement(jsonObj.get("mapping")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetMappingResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetMappingResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetMappingResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetMappingResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetMappingResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetMappingResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetMappingResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetMappingResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetMappingResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetMappingResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetMappingsResponse.java b/src/main/java/com/formkiq/client/model/GetMappingsResponse.java index 740cc099e..1d5978f93 100644 --- a/src/main/java/com/formkiq/client/model/GetMappingsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMappingsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetMappingsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetMappingsResponse { public static final String SERIALIZED_NAME_MAPPINGS = "mappings"; @SerializedName(SERIALIZED_NAME_MAPPINGS) @@ -65,8 +74,7 @@ public class GetMappingsResponse { @javax.annotation.Nullable private String next; - public GetMappingsResponse() { - } + public GetMappingsResponse() {} public GetMappingsResponse mappings(@javax.annotation.Nullable List mappings) { this.mappings = mappings; @@ -83,6 +91,7 @@ public GetMappingsResponse addMappingsItem(Mapping mappingsItem) { /** * Get mappings + * * @return mappings */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetMappingsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetMappingsResponse getMappingsResponse = (GetMappingsResponse) o; - return Objects.equals(this.mappings, getMappingsResponse.mappings) && - Objects.equals(this.next, getMappingsResponse.next); + return Objects.equals(this.mappings, getMappingsResponse.mappings) + && Objects.equals(this.next, getMappingsResponse.next); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetMappingsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetMappingsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetMappingsResponse is not found in the empty JSON string", GetMappingsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetMappingsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetMappingsResponse is not found in the empty JSON string", + GetMappingsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetMappingsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetMappingsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetMappingsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetMappingsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("mappings") != null && !jsonObj.get("mappings").isJsonNull()) { - JsonArray jsonArraymappings = jsonObj.getAsJsonArray("mappings"); - if (jsonArraymappings != null) { - // ensure the json data is an array - if (!jsonObj.get("mappings").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mappings` to be an array in the JSON string but got `%s`", jsonObj.get("mappings").toString())); - } - - // validate the optional field `mappings` (array) - for (int i = 0; i < jsonArraymappings.size(); i++) { - Mapping.validateJsonElement(jsonArraymappings.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("mappings") != null && !jsonObj.get("mappings").isJsonNull()) { + JsonArray jsonArraymappings = jsonObj.getAsJsonArray("mappings"); + if (jsonArraymappings != null) { + // ensure the json data is an array + if (!jsonObj.get("mappings").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `mappings` to be an array in the JSON string but got `%s`", + jsonObj.get("mappings").toString())); } + + // validate the optional field `mappings` (array) + for (int i = 0; i < jsonArraymappings.size(); i++) { + Mapping.validateJsonElement(jsonArraymappings.get(i)); + } ; } - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } + } + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetMappingsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetMappingsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetMappingsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetMappingsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetMappingsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetMappingsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetMappingsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetMappingsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetMappingsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetMappingsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java index 511cd9393..84b9a5e59 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetOpaAccessPoliciesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetOpaAccessPoliciesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetOpaAccessPoliciesResponse { @javax.annotation.Nullable private List opaPolicies = new ArrayList<>(); - public GetOpaAccessPoliciesResponse() { - } + public GetOpaAccessPoliciesResponse() {} public GetOpaAccessPoliciesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetOpaAccessPoliciesResponse next(@javax.annotation.Nullable String next) /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetOpaAccessPoliciesResponse opaPolicies(@javax.annotation.Nullable List opaPolicies) { + public GetOpaAccessPoliciesResponse opaPolicies( + @javax.annotation.Nullable List opaPolicies) { this.opaPolicies = opaPolicies; return this; } @@ -102,6 +112,7 @@ public GetOpaAccessPoliciesResponse addOpaPoliciesItem(OpaPolicy opaPoliciesItem /** * List of OPA policies + * * @return opaPolicies */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } GetOpaAccessPoliciesResponse getOpaAccessPoliciesResponse = (GetOpaAccessPoliciesResponse) o; - return Objects.equals(this.next, getOpaAccessPoliciesResponse.next) && - Objects.equals(this.opaPolicies, getOpaAccessPoliciesResponse.opaPolicies); + return Objects.equals(this.next, getOpaAccessPoliciesResponse.next) + && Objects.equals(this.opaPolicies, getOpaAccessPoliciesResponse.opaPolicies); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +183,76 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetOpaAccessPoliciesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpaAccessPoliciesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpaAccessPoliciesResponse is not found in the empty JSON string", GetOpaAccessPoliciesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetOpaAccessPoliciesResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetOpaAccessPoliciesResponse is not found in the empty JSON string", + GetOpaAccessPoliciesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpaAccessPoliciesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpaAccessPoliciesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpaAccessPoliciesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetOpaAccessPoliciesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("opaPolicies") != null && !jsonObj.get("opaPolicies").isJsonNull()) { - JsonArray jsonArrayopaPolicies = jsonObj.getAsJsonArray("opaPolicies"); - if (jsonArrayopaPolicies != null) { - // ensure the json data is an array - if (!jsonObj.get("opaPolicies").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `opaPolicies` to be an array in the JSON string but got `%s`", jsonObj.get("opaPolicies").toString())); - } - - // validate the optional field `opaPolicies` (array) - for (int i = 0; i < jsonArrayopaPolicies.size(); i++) { - OpaPolicy.validateJsonElement(jsonArrayopaPolicies.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("opaPolicies") != null && !jsonObj.get("opaPolicies").isJsonNull()) { + JsonArray jsonArrayopaPolicies = jsonObj.getAsJsonArray("opaPolicies"); + if (jsonArrayopaPolicies != null) { + // ensure the json data is an array + if (!jsonObj.get("opaPolicies").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `opaPolicies` to be an array in the JSON string but got `%s`", + jsonObj.get("opaPolicies").toString())); } + + // validate the optional field `opaPolicies` (array) + for (int i = 0; i < jsonArrayopaPolicies.size(); i++) { + OpaPolicy.validateJsonElement(jsonArrayopaPolicies.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpaAccessPoliciesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpaAccessPoliciesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPoliciesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpaAccessPoliciesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpaAccessPoliciesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpaAccessPoliciesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpaAccessPoliciesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPoliciesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpaAccessPoliciesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpaAccessPoliciesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java index 74c5f3a88..a2119b076 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * GetOpaAccessPolicyItemsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetOpaAccessPolicyItemsResponse { public static final String SERIALIZED_NAME_POLICY_ITEMS = "policyItems"; @SerializedName(SERIALIZED_NAME_POLICY_ITEMS) @javax.annotation.Nullable private List policyItems = new ArrayList<>(); - public GetOpaAccessPolicyItemsResponse() { - } + public GetOpaAccessPolicyItemsResponse() {} - public GetOpaAccessPolicyItemsResponse policyItems(@javax.annotation.Nullable List policyItems) { + public GetOpaAccessPolicyItemsResponse policyItems( + @javax.annotation.Nullable List policyItems) { this.policyItems = policyItems; return this; } @@ -78,6 +87,7 @@ public GetOpaAccessPolicyItemsResponse addPolicyItemsItem(OpaPolicyItem policyIt /** * Get policyItems + * * @return policyItems */ @javax.annotation.Nullable @@ -99,7 +109,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetOpaAccessPolicyItemsResponse getOpaAccessPolicyItemsResponse = (GetOpaAccessPolicyItemsResponse) o; + GetOpaAccessPolicyItemsResponse getOpaAccessPolicyItemsResponse = + (GetOpaAccessPolicyItemsResponse) o; return Objects.equals(this.policyItems, getOpaAccessPolicyItemsResponse.policyItems); } @@ -118,8 +129,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,65 +154,76 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetOpaAccessPolicyItemsResponse + * @throws IOException if the JSON Element is invalid with respect to + * GetOpaAccessPolicyItemsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpaAccessPolicyItemsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpaAccessPolicyItemsResponse is not found in the empty JSON string", GetOpaAccessPolicyItemsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetOpaAccessPolicyItemsResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetOpaAccessPolicyItemsResponse is not found in the empty JSON string", + GetOpaAccessPolicyItemsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpaAccessPolicyItemsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpaAccessPolicyItemsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpaAccessPolicyItemsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetOpaAccessPolicyItemsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("policyItems") != null && !jsonObj.get("policyItems").isJsonNull()) { - JsonArray jsonArraypolicyItems = jsonObj.getAsJsonArray("policyItems"); - if (jsonArraypolicyItems != null) { - // ensure the json data is an array - if (!jsonObj.get("policyItems").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policyItems` to be an array in the JSON string but got `%s`", jsonObj.get("policyItems").toString())); - } - - // validate the optional field `policyItems` (array) - for (int i = 0; i < jsonArraypolicyItems.size(); i++) { - OpaPolicyItem.validateJsonElement(jsonArraypolicyItems.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("policyItems") != null && !jsonObj.get("policyItems").isJsonNull()) { + JsonArray jsonArraypolicyItems = jsonObj.getAsJsonArray("policyItems"); + if (jsonArraypolicyItems != null) { + // ensure the json data is an array + if (!jsonObj.get("policyItems").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `policyItems` to be an array in the JSON string but got `%s`", + jsonObj.get("policyItems").toString())); } + + // validate the optional field `policyItems` (array) + for (int i = 0; i < jsonArraypolicyItems.size(); i++) { + OpaPolicyItem.validateJsonElement(jsonArraypolicyItems.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpaAccessPolicyItemsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpaAccessPolicyItemsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPolicyItemsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpaAccessPolicyItemsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpaAccessPolicyItemsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpaAccessPolicyItemsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpaAccessPolicyItemsResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPolicyItemsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpaAccessPolicyItemsResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpaAccessPolicyItemsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -211,7 +232,8 @@ public GetOpaAccessPolicyItemsResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of GetOpaAccessPolicyItemsResponse - * @throws IOException if the JSON string is invalid with respect to GetOpaAccessPolicyItemsResponse + * @throws IOException if the JSON string is invalid with respect to + * GetOpaAccessPolicyItemsResponse */ public static GetOpaAccessPolicyItemsResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetOpaAccessPolicyItemsResponse.class); diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java index f291979b5..1e1cb2b10 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * GetOpaAccessPolicyResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetOpaAccessPolicyResponse { public static final String SERIALIZED_NAME_OPA_POLICY = "opaPolicy"; @SerializedName(SERIALIZED_NAME_OPA_POLICY) @javax.annotation.Nullable private String opaPolicy; - public GetOpaAccessPolicyResponse() { - } + public GetOpaAccessPolicyResponse() {} public GetOpaAccessPolicyResponse opaPolicy(@javax.annotation.Nullable String opaPolicy) { this.opaPolicy = opaPolicy; @@ -67,6 +75,7 @@ public GetOpaAccessPolicyResponse opaPolicy(@javax.annotation.Nullable String op /** * OPA Policy in REGO format + * * @return opaPolicy */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetOpaAccessPolicyResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpaAccessPolicyResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpaAccessPolicyResponse is not found in the empty JSON string", GetOpaAccessPolicyResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetOpaAccessPolicyResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetOpaAccessPolicyResponse is not found in the empty JSON string", + GetOpaAccessPolicyResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpaAccessPolicyResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpaAccessPolicyResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("opaPolicy") != null && !jsonObj.get("opaPolicy").isJsonNull()) && !jsonObj.get("opaPolicy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `opaPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("opaPolicy").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpaAccessPolicyResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetOpaAccessPolicyResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("opaPolicy") != null && !jsonObj.get("opaPolicy").isJsonNull()) + && !jsonObj.get("opaPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `opaPolicy` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("opaPolicy").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpaAccessPolicyResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpaAccessPolicyResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPolicyResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpaAccessPolicyResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpaAccessPolicyResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpaAccessPolicyResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpaAccessPolicyResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetOpaAccessPolicyResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpaAccessPolicyResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpaAccessPolicyResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java index c760a3bdd..a04c5a96d 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * GetOpenSearchIndexResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetOpenSearchIndexResponse { public static final String SERIALIZED_NAME_INDEX_SETTINGS = "indexSettings"; @SerializedName(SERIALIZED_NAME_INDEX_SETTINGS) @javax.annotation.Nullable private OpenSearchIndexSetting indexSettings; - public GetOpenSearchIndexResponse() { - } + public GetOpenSearchIndexResponse() {} - public GetOpenSearchIndexResponse indexSettings(@javax.annotation.Nullable OpenSearchIndexSetting indexSettings) { + public GetOpenSearchIndexResponse indexSettings( + @javax.annotation.Nullable OpenSearchIndexSetting indexSettings) { this.indexSettings = indexSettings; return this; } /** * Get indexSettings + * * @return indexSettings */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +146,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetOpenSearchIndexResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpenSearchIndexResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpenSearchIndexResponse is not found in the empty JSON string", GetOpenSearchIndexResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetOpenSearchIndexResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetOpenSearchIndexResponse is not found in the empty JSON string", + GetOpenSearchIndexResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpenSearchIndexResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpenSearchIndexResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `indexSettings` - if (jsonObj.get("indexSettings") != null && !jsonObj.get("indexSettings").isJsonNull()) { - OpenSearchIndexSetting.validateJsonElement(jsonObj.get("indexSettings")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpenSearchIndexResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetOpenSearchIndexResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `indexSettings` + if (jsonObj.get("indexSettings") != null && !jsonObj.get("indexSettings").isJsonNull()) { + OpenSearchIndexSetting.validateJsonElement(jsonObj.get("indexSettings")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpenSearchIndexResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpenSearchIndexResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchIndexResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpenSearchIndexResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpenSearchIndexResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpenSearchIndexResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpenSearchIndexResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchIndexResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpenSearchIndexResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpenSearchIndexResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java index b7629f02f..24578cf08 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * GetOpenSearchIndiceResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetOpenSearchIndiceResponse { public static final String SERIALIZED_NAME_INDICES = "indices"; @SerializedName(SERIALIZED_NAME_INDICES) @javax.annotation.Nullable private List indices = new ArrayList<>(); - public GetOpenSearchIndiceResponse() { - } + public GetOpenSearchIndiceResponse() {} - public GetOpenSearchIndiceResponse indices(@javax.annotation.Nullable List indices) { + public GetOpenSearchIndiceResponse indices( + @javax.annotation.Nullable List indices) { this.indices = indices; return this; } @@ -78,6 +87,7 @@ public GetOpenSearchIndiceResponse addIndicesItem(OpenSearchIndex indicesItem) { /** * OpenSearch Indices + * * @return indices */ @javax.annotation.Nullable @@ -118,8 +128,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +156,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetOpenSearchIndiceResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpenSearchIndiceResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpenSearchIndiceResponse is not found in the empty JSON string", GetOpenSearchIndiceResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetOpenSearchIndiceResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetOpenSearchIndiceResponse is not found in the empty JSON string", + GetOpenSearchIndiceResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpenSearchIndiceResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpenSearchIndiceResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpenSearchIndiceResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetOpenSearchIndiceResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("indices") != null && !jsonObj.get("indices").isJsonNull()) { - JsonArray jsonArrayindices = jsonObj.getAsJsonArray("indices"); - if (jsonArrayindices != null) { - // ensure the json data is an array - if (!jsonObj.get("indices").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indices` to be an array in the JSON string but got `%s`", jsonObj.get("indices").toString())); - } - - // validate the optional field `indices` (array) - for (int i = 0; i < jsonArrayindices.size(); i++) { - OpenSearchIndex.validateJsonElement(jsonArrayindices.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("indices") != null && !jsonObj.get("indices").isJsonNull()) { + JsonArray jsonArrayindices = jsonObj.getAsJsonArray("indices"); + if (jsonArrayindices != null) { + // ensure the json data is an array + if (!jsonObj.get("indices").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `indices` to be an array in the JSON string but got `%s`", + jsonObj.get("indices").toString())); } + + // validate the optional field `indices` (array) + for (int i = 0; i < jsonArrayindices.size(); i++) { + OpenSearchIndex.validateJsonElement(jsonArrayindices.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpenSearchIndiceResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpenSearchIndiceResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchIndiceResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpenSearchIndiceResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpenSearchIndiceResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpenSearchIndiceResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpenSearchIndiceResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchIndiceResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpenSearchIndiceResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpenSearchIndiceResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java index 4bbb49389..eae467771 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,22 +60,25 @@ /** * GetOpenSearchSnapshotRepositoryResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetOpenSearchSnapshotRepositoryResponse { public static final String SERIALIZED_NAME_S3_REPOSITORIES = "s3Repositories"; @SerializedName(SERIALIZED_NAME_S3_REPOSITORIES) @javax.annotation.Nullable private List s3Repositories = new ArrayList<>(); - public GetOpenSearchSnapshotRepositoryResponse() { - } + public GetOpenSearchSnapshotRepositoryResponse() {} - public GetOpenSearchSnapshotRepositoryResponse s3Repositories(@javax.annotation.Nullable List s3Repositories) { + public GetOpenSearchSnapshotRepositoryResponse s3Repositories( + @javax.annotation.Nullable List s3Repositories) { this.s3Repositories = s3Repositories; return this; } - public GetOpenSearchSnapshotRepositoryResponse addS3RepositoriesItem(OpenSearchS3Repository s3RepositoriesItem) { + public GetOpenSearchSnapshotRepositoryResponse addS3RepositoriesItem( + OpenSearchS3Repository s3RepositoriesItem) { if (this.s3Repositories == null) { this.s3Repositories = new ArrayList<>(); } @@ -78,6 +88,7 @@ public GetOpenSearchSnapshotRepositoryResponse addS3RepositoriesItem(OpenSearchS /** * Get s3Repositories + * * @return s3Repositories */ @javax.annotation.Nullable @@ -85,7 +96,8 @@ public List getS3Repositories() { return s3Repositories; } - public void setS3Repositories(@javax.annotation.Nullable List s3Repositories) { + public void setS3Repositories( + @javax.annotation.Nullable List s3Repositories) { this.s3Repositories = s3Repositories; } @@ -99,8 +111,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepositoryResponse = (GetOpenSearchSnapshotRepositoryResponse) o; - return Objects.equals(this.s3Repositories, getOpenSearchSnapshotRepositoryResponse.s3Repositories); + GetOpenSearchSnapshotRepositoryResponse getOpenSearchSnapshotRepositoryResponse = + (GetOpenSearchSnapshotRepositoryResponse) o; + return Objects.equals(this.s3Repositories, + getOpenSearchSnapshotRepositoryResponse.s3Repositories); } @Override @@ -118,8 +132,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,65 +157,79 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetOpenSearchSnapshotRepositoryResponse + * @throws IOException if the JSON Element is invalid with respect to + * GetOpenSearchSnapshotRepositoryResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpenSearchSnapshotRepositoryResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpenSearchSnapshotRepositoryResponse is not found in the empty JSON string", GetOpenSearchSnapshotRepositoryResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetOpenSearchSnapshotRepositoryResponse.openapiRequiredFields.isEmpty()) { // has + // required + // fields but + // JSON + // element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetOpenSearchSnapshotRepositoryResponse is not found in the empty JSON string", + GetOpenSearchSnapshotRepositoryResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpenSearchSnapshotRepositoryResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpenSearchSnapshotRepositoryResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpenSearchSnapshotRepositoryResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetOpenSearchSnapshotRepositoryResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("s3Repositories") != null && !jsonObj.get("s3Repositories").isJsonNull()) { - JsonArray jsonArrays3Repositories = jsonObj.getAsJsonArray("s3Repositories"); - if (jsonArrays3Repositories != null) { - // ensure the json data is an array - if (!jsonObj.get("s3Repositories").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `s3Repositories` to be an array in the JSON string but got `%s`", jsonObj.get("s3Repositories").toString())); - } - - // validate the optional field `s3Repositories` (array) - for (int i = 0; i < jsonArrays3Repositories.size(); i++) { - OpenSearchS3Repository.validateJsonElement(jsonArrays3Repositories.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("s3Repositories") != null && !jsonObj.get("s3Repositories").isJsonNull()) { + JsonArray jsonArrays3Repositories = jsonObj.getAsJsonArray("s3Repositories"); + if (jsonArrays3Repositories != null) { + // ensure the json data is an array + if (!jsonObj.get("s3Repositories").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `s3Repositories` to be an array in the JSON string but got `%s`", + jsonObj.get("s3Repositories").toString())); } + + // validate the optional field `s3Repositories` (array) + for (int i = 0; i < jsonArrays3Repositories.size(); i++) { + OpenSearchS3Repository.validateJsonElement(jsonArrays3Repositories.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpenSearchSnapshotRepositoryResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpenSearchSnapshotRepositoryResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchSnapshotRepositoryResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpenSearchSnapshotRepositoryResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpenSearchSnapshotRepositoryResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpenSearchSnapshotRepositoryResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpenSearchSnapshotRepositoryResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = gson + .getDelegateAdapter(this, TypeToken.get(GetOpenSearchSnapshotRepositoryResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpenSearchSnapshotRepositoryResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpenSearchSnapshotRepositoryResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -211,9 +238,11 @@ public GetOpenSearchSnapshotRepositoryResponse read(JsonReader in) throws IOExce * * @param jsonString JSON string * @return An instance of GetOpenSearchSnapshotRepositoryResponse - * @throws IOException if the JSON string is invalid with respect to GetOpenSearchSnapshotRepositoryResponse + * @throws IOException if the JSON string is invalid with respect to + * GetOpenSearchSnapshotRepositoryResponse */ - public static GetOpenSearchSnapshotRepositoryResponse fromJson(String jsonString) throws IOException { + public static GetOpenSearchSnapshotRepositoryResponse fromJson(String jsonString) + throws IOException { return JSON.getGson().fromJson(jsonString, GetOpenSearchSnapshotRepositoryResponse.class); } diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java index 5d6ceb9b1..8e8db0a75 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * GetOpenSearchSnapshotResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetOpenSearchSnapshotResponse { public static final String SERIALIZED_NAME_SNAPSHOTS = "snapshots"; @SerializedName(SERIALIZED_NAME_SNAPSHOTS) @javax.annotation.Nullable private List snapshots = new ArrayList<>(); - public GetOpenSearchSnapshotResponse() { - } + public GetOpenSearchSnapshotResponse() {} - public GetOpenSearchSnapshotResponse snapshots(@javax.annotation.Nullable List snapshots) { + public GetOpenSearchSnapshotResponse snapshots( + @javax.annotation.Nullable List snapshots) { this.snapshots = snapshots; return this; } @@ -78,6 +87,7 @@ public GetOpenSearchSnapshotResponse addSnapshotsItem(OpenSearchSnapshot snapsho /** * Get snapshots + * * @return snapshots */ @javax.annotation.Nullable @@ -118,8 +128,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,65 +153,74 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetOpenSearchSnapshotResponse + * @throws IOException if the JSON Element is invalid with respect to + * GetOpenSearchSnapshotResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetOpenSearchSnapshotResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetOpenSearchSnapshotResponse is not found in the empty JSON string", GetOpenSearchSnapshotResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetOpenSearchSnapshotResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetOpenSearchSnapshotResponse is not found in the empty JSON string", + GetOpenSearchSnapshotResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetOpenSearchSnapshotResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetOpenSearchSnapshotResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetOpenSearchSnapshotResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetOpenSearchSnapshotResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("snapshots") != null && !jsonObj.get("snapshots").isJsonNull()) { - JsonArray jsonArraysnapshots = jsonObj.getAsJsonArray("snapshots"); - if (jsonArraysnapshots != null) { - // ensure the json data is an array - if (!jsonObj.get("snapshots").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `snapshots` to be an array in the JSON string but got `%s`", jsonObj.get("snapshots").toString())); - } - - // validate the optional field `snapshots` (array) - for (int i = 0; i < jsonArraysnapshots.size(); i++) { - OpenSearchSnapshot.validateJsonElement(jsonArraysnapshots.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("snapshots") != null && !jsonObj.get("snapshots").isJsonNull()) { + JsonArray jsonArraysnapshots = jsonObj.getAsJsonArray("snapshots"); + if (jsonArraysnapshots != null) { + // ensure the json data is an array + if (!jsonObj.get("snapshots").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `snapshots` to be an array in the JSON string but got `%s`", + jsonObj.get("snapshots").toString())); } + + // validate the optional field `snapshots` (array) + for (int i = 0; i < jsonArraysnapshots.size(); i++) { + OpenSearchSnapshot.validateJsonElement(jsonArraysnapshots.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetOpenSearchSnapshotResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetOpenSearchSnapshotResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchSnapshotResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetOpenSearchSnapshotResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetOpenSearchSnapshotResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetOpenSearchSnapshotResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetOpenSearchSnapshotResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetOpenSearchSnapshotResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetOpenSearchSnapshotResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetOpenSearchSnapshotResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetQueueResponse.java b/src/main/java/com/formkiq/client/model/GetQueueResponse.java index b7b486551..94874acb5 100644 --- a/src/main/java/com/formkiq/client/model/GetQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/GetQueueResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * GetQueueResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetQueueResponse { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nullable private String name; - public GetQueueResponse() { - } + public GetQueueResponse() {} public GetQueueResponse name(@javax.annotation.Nullable String name) { this.name = name; @@ -67,6 +75,7 @@ public GetQueueResponse name(@javax.annotation.Nullable String name) { /** * Queue name + * * @return name */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetQueueResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetQueueResponse is not found in the empty JSON string", GetQueueResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetQueueResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetQueueResponse is not found in the empty JSON string", + GetQueueResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetQueueResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetQueueResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetQueueResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetQueueResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQueueResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQueueResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetQueueResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetQueueResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetQueueResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetQueueResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetQueueResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetQueueResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetQueueResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetQueueResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetQueuesResponse.java b/src/main/java/com/formkiq/client/model/GetQueuesResponse.java index 20e40083d..8b381027a 100644 --- a/src/main/java/com/formkiq/client/model/GetQueuesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetQueuesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetQueuesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetQueuesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetQueuesResponse { @javax.annotation.Nullable private List queues = new ArrayList<>(); - public GetQueuesResponse() { - } + public GetQueuesResponse() {} public GetQueuesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetQueuesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetQueuesResponse addQueuesItem(Queue queuesItem) { /** * List of queues + * * @return queues */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetQueuesResponse getQueuesResponse = (GetQueuesResponse) o; - return Objects.equals(this.next, getQueuesResponse.next) && - Objects.equals(this.queues, getQueuesResponse.queues); + return Objects.equals(this.next, getQueuesResponse.next) + && Objects.equals(this.queues, getQueuesResponse.queues); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetQueuesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetQueuesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetQueuesResponse is not found in the empty JSON string", GetQueuesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetQueuesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetQueuesResponse is not found in the empty JSON string", + GetQueuesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetQueuesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetQueuesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetQueuesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetQueuesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("queues") != null && !jsonObj.get("queues").isJsonNull()) { - JsonArray jsonArrayqueues = jsonObj.getAsJsonArray("queues"); - if (jsonArrayqueues != null) { - // ensure the json data is an array - if (!jsonObj.get("queues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queues` to be an array in the JSON string but got `%s`", jsonObj.get("queues").toString())); - } - - // validate the optional field `queues` (array) - for (int i = 0; i < jsonArrayqueues.size(); i++) { - Queue.validateJsonElement(jsonArrayqueues.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("queues") != null && !jsonObj.get("queues").isJsonNull()) { + JsonArray jsonArrayqueues = jsonObj.getAsJsonArray("queues"); + if (jsonArrayqueues != null) { + // ensure the json data is an array + if (!jsonObj.get("queues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `queues` to be an array in the JSON string but got `%s`", + jsonObj.get("queues").toString())); } + + // validate the optional field `queues` (array) + for (int i = 0; i < jsonArrayqueues.size(); i++) { + Queue.validateJsonElement(jsonArrayqueues.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetQueuesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetQueuesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetQueuesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetQueuesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetQueuesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetQueuesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetQueuesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetQueuesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetQueuesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetQueuesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetRuleResponse.java b/src/main/java/com/formkiq/client/model/GetRuleResponse.java index 6dad88529..772d1fdd0 100644 --- a/src/main/java/com/formkiq/client/model/GetRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRuleResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetRuleResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetRuleResponse { public static final String SERIALIZED_NAME_RULE = "rule"; @SerializedName(SERIALIZED_NAME_RULE) @javax.annotation.Nullable private Rule rule; - public GetRuleResponse() { - } + public GetRuleResponse() {} public GetRuleResponse rule(@javax.annotation.Nullable Rule rule) { this.rule = rule; @@ -68,6 +76,7 @@ public GetRuleResponse rule(@javax.annotation.Nullable Rule rule) { /** * Get rule + * * @return rule */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetRuleResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRuleResponse is not found in the empty JSON string", GetRuleResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetRuleResponse is not found in the empty JSON string", + GetRuleResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetRuleResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetRuleResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `rule` - if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { - Rule.validateJsonElement(jsonObj.get("rule")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetRuleResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetRuleResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `rule` + if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { + Rule.validateJsonElement(jsonObj.get("rule")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetRuleResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetRuleResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetRuleResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetRuleResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetRuleResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetRuleResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetRuleResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetRuleResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetRuleResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetRuleResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetRulesResponse.java b/src/main/java/com/formkiq/client/model/GetRulesResponse.java index a5f17e7cb..e1d9b8666 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetRulesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetRulesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetRulesResponse { @javax.annotation.Nullable private List rules = new ArrayList<>(); - public GetRulesResponse() { - } + public GetRulesResponse() {} public GetRulesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetRulesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetRulesResponse addRulesItem(Rule rulesItem) { /** * List of rules + * * @return rules */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetRulesResponse getRulesResponse = (GetRulesResponse) o; - return Objects.equals(this.next, getRulesResponse.next) && - Objects.equals(this.rules, getRulesResponse.rules); + return Objects.equals(this.next, getRulesResponse.next) + && Objects.equals(this.rules, getRulesResponse.rules); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetRulesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetRulesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRulesResponse is not found in the empty JSON string", GetRulesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetRulesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetRulesResponse is not found in the empty JSON string", + GetRulesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetRulesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetRulesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetRulesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetRulesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { - JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); - if (jsonArrayrules != null) { - // ensure the json data is an array - if (!jsonObj.get("rules").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); - } - - // validate the optional field `rules` (array) - for (int i = 0; i < jsonArrayrules.size(); i++) { - Rule.validateJsonElement(jsonArrayrules.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("rules") != null && !jsonObj.get("rules").isJsonNull()) { + JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); + if (jsonArrayrules != null) { + // ensure the json data is an array + if (!jsonObj.get("rules").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `rules` to be an array in the JSON string but got `%s`", + jsonObj.get("rules").toString())); } + + // validate the optional field `rules` (array) + for (int i = 0; i < jsonArrayrules.size(); i++) { + Rule.validateJsonElement(jsonArrayrules.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetRulesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetRulesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetRulesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetRulesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetRulesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetRulesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetRulesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetRulesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetRulesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetRulesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetRulesetResponse.java b/src/main/java/com/formkiq/client/model/GetRulesetResponse.java index 1a2f4e619..ed159e59f 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesetResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetRulesetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetRulesetResponse { public static final String SERIALIZED_NAME_RULESET = "ruleset"; @SerializedName(SERIALIZED_NAME_RULESET) @javax.annotation.Nullable private Ruleset ruleset; - public GetRulesetResponse() { - } + public GetRulesetResponse() {} public GetRulesetResponse ruleset(@javax.annotation.Nullable Ruleset ruleset) { this.ruleset = ruleset; @@ -68,6 +76,7 @@ public GetRulesetResponse ruleset(@javax.annotation.Nullable Ruleset ruleset) { /** * Get ruleset + * * @return ruleset */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetRulesetResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRulesetResponse is not found in the empty JSON string", GetRulesetResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetRulesetResponse is not found in the empty JSON string", + GetRulesetResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetRulesetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetRulesetResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `ruleset` - if (jsonObj.get("ruleset") != null && !jsonObj.get("ruleset").isJsonNull()) { - Ruleset.validateJsonElement(jsonObj.get("ruleset")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetRulesetResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetRulesetResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `ruleset` + if (jsonObj.get("ruleset") != null && !jsonObj.get("ruleset").isJsonNull()) { + Ruleset.validateJsonElement(jsonObj.get("ruleset")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetRulesetResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetRulesetResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetRulesetResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetRulesetResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetRulesetResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetRulesetResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetRulesetResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetRulesetResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetRulesetResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetRulesetResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java b/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java index aa1f575c0..ce761d259 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetRulesetsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetRulesetsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetRulesetsResponse { @javax.annotation.Nullable private List rulesets = new ArrayList<>(); - public GetRulesetsResponse() { - } + public GetRulesetsResponse() {} public GetRulesetsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetRulesetsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetRulesetsResponse addRulesetsItem(Ruleset rulesetsItem) { /** * List of rulesets + * * @return rulesets */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetRulesetsResponse getRulesetsResponse = (GetRulesetsResponse) o; - return Objects.equals(this.next, getRulesetsResponse.next) && - Objects.equals(this.rulesets, getRulesetsResponse.rulesets); + return Objects.equals(this.next, getRulesetsResponse.next) + && Objects.equals(this.rulesets, getRulesetsResponse.rulesets); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetRulesetsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetRulesetsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetRulesetsResponse is not found in the empty JSON string", GetRulesetsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetRulesetsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetRulesetsResponse is not found in the empty JSON string", + GetRulesetsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetRulesetsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetRulesetsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetRulesetsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetRulesetsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("rulesets") != null && !jsonObj.get("rulesets").isJsonNull()) { - JsonArray jsonArrayrulesets = jsonObj.getAsJsonArray("rulesets"); - if (jsonArrayrulesets != null) { - // ensure the json data is an array - if (!jsonObj.get("rulesets").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rulesets` to be an array in the JSON string but got `%s`", jsonObj.get("rulesets").toString())); - } - - // validate the optional field `rulesets` (array) - for (int i = 0; i < jsonArrayrulesets.size(); i++) { - Ruleset.validateJsonElement(jsonArrayrulesets.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("rulesets") != null && !jsonObj.get("rulesets").isJsonNull()) { + JsonArray jsonArrayrulesets = jsonObj.getAsJsonArray("rulesets"); + if (jsonArrayrulesets != null) { + // ensure the json data is an array + if (!jsonObj.get("rulesets").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `rulesets` to be an array in the JSON string but got `%s`", + jsonObj.get("rulesets").toString())); } + + // validate the optional field `rulesets` (array) + for (int i = 0; i < jsonArrayrulesets.size(); i++) { + Ruleset.validateJsonElement(jsonArrayrulesets.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetRulesetsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetRulesetsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetRulesetsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetRulesetsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetRulesetsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetRulesetsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetRulesetsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetRulesetsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetRulesetsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetRulesetsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java b/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java index c476ce68f..3627525ef 100644 --- a/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetSiteGroupResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetSiteGroupResponse { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @javax.annotation.Nullable private SiteGroup group; - public GetSiteGroupResponse() { - } + public GetSiteGroupResponse() {} public GetSiteGroupResponse group(@javax.annotation.Nullable SiteGroup group) { this.group = group; @@ -68,6 +76,7 @@ public GetSiteGroupResponse group(@javax.annotation.Nullable SiteGroup group) { /** * Get group + * * @return group */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetSiteGroupResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetSiteGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetSiteGroupResponse is not found in the empty JSON string", GetSiteGroupResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetSiteGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetSiteGroupResponse is not found in the empty JSON string", + GetSiteGroupResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetSiteGroupResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetSiteGroupResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `group` - if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { - SiteGroup.validateJsonElement(jsonObj.get("group")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetSiteGroupResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetSiteGroupResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `group` + if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { + SiteGroup.validateJsonElement(jsonObj.get("group")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSiteGroupResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSiteGroupResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetSiteGroupResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSiteGroupResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetSiteGroupResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetSiteGroupResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSiteGroupResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetSiteGroupResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSiteGroupResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetSiteGroupResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java index 0fd3a10b0..893d90fc0 100644 --- a/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,15 +59,16 @@ /** * GetSiteGroupsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetSiteGroupsResponse { public static final String SERIALIZED_NAME_GROUP_NAMES = "groupNames"; @SerializedName(SERIALIZED_NAME_GROUP_NAMES) @javax.annotation.Nullable private List groupNames = new ArrayList<>(); - public GetSiteGroupsResponse() { - } + public GetSiteGroupsResponse() {} public GetSiteGroupsResponse groupNames(@javax.annotation.Nullable List groupNames) { this.groupNames = groupNames; @@ -77,6 +85,7 @@ public GetSiteGroupsResponse addGroupNamesItem(String groupNamesItem) { /** * Get groupNames + * * @return groupNames */ @javax.annotation.Nullable @@ -117,8 +126,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,52 +154,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetSiteGroupsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetSiteGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetSiteGroupsResponse is not found in the empty JSON string", GetSiteGroupsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetSiteGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetSiteGroupsResponse is not found in the empty JSON string", + GetSiteGroupsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetSiteGroupsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetSiteGroupsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("groupNames") != null && !jsonObj.get("groupNames").isJsonNull() && !jsonObj.get("groupNames").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `groupNames` to be an array in the JSON string but got `%s`", jsonObj.get("groupNames").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetSiteGroupsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetSiteGroupsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("groupNames") != null && !jsonObj.get("groupNames").isJsonNull() + && !jsonObj.get("groupNames").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `groupNames` to be an array in the JSON string but got `%s`", + jsonObj.get("groupNames").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSiteGroupsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSiteGroupsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetSiteGroupsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSiteGroupsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetSiteGroupsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetSiteGroupsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSiteGroupsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetSiteGroupsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSiteGroupsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetSiteGroupsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetSitesResponse.java b/src/main/java/com/formkiq/client/model/GetSitesResponse.java index e71a68cf0..4b994700c 100644 --- a/src/main/java/com/formkiq/client/model/GetSitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSitesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetSitesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetSitesResponse { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) @@ -70,8 +79,7 @@ public class GetSitesResponse { @javax.annotation.Nullable private List sites = new ArrayList<>(); - public GetSitesResponse() { - } + public GetSitesResponse() {} public GetSitesResponse username(@javax.annotation.Nullable String username) { this.username = username; @@ -80,6 +88,7 @@ public GetSitesResponse username(@javax.annotation.Nullable String username) { /** * Username of request caller + * * @return username */ @javax.annotation.Nullable @@ -107,6 +116,7 @@ public GetSitesResponse addRolesItem(String rolesItem) { /** * Get roles + * * @return roles */ @javax.annotation.Nullable @@ -134,6 +144,7 @@ public GetSitesResponse addSitesItem(Site sitesItem) { /** * List of sites + * * @return sites */ @javax.annotation.Nullable @@ -156,9 +167,9 @@ public boolean equals(Object o) { return false; } GetSitesResponse getSitesResponse = (GetSitesResponse) o; - return Objects.equals(this.username, getSitesResponse.username) && - Objects.equals(this.roles, getSitesResponse.roles) && - Objects.equals(this.sites, getSitesResponse.sites); + return Objects.equals(this.username, getSitesResponse.username) + && Objects.equals(this.roles, getSitesResponse.roles) + && Objects.equals(this.sites, getSitesResponse.sites); } @Override @@ -178,8 +189,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -207,69 +217,82 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetSitesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetSitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetSitesResponse is not found in the empty JSON string", GetSitesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetSitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetSitesResponse is not found in the empty JSON string", + GetSitesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetSitesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetSitesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetSitesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetSitesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull() && !jsonObj.get("roles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `roles` to be an array in the JSON string but got `%s`", jsonObj.get("roles").toString())); - } - if (jsonObj.get("sites") != null && !jsonObj.get("sites").isJsonNull()) { - JsonArray jsonArraysites = jsonObj.getAsJsonArray("sites"); - if (jsonArraysites != null) { - // ensure the json data is an array - if (!jsonObj.get("sites").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sites` to be an array in the JSON string but got `%s`", jsonObj.get("sites").toString())); - } - - // validate the optional field `sites` (array) - for (int i = 0; i < jsonArraysites.size(); i++) { - Site.validateJsonElement(jsonArraysites.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) + && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `username` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("username").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull() + && !jsonObj.get("roles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `roles` to be an array in the JSON string but got `%s`", + jsonObj.get("roles").toString())); + } + if (jsonObj.get("sites") != null && !jsonObj.get("sites").isJsonNull()) { + JsonArray jsonArraysites = jsonObj.getAsJsonArray("sites"); + if (jsonArraysites != null) { + // ensure the json data is an array + if (!jsonObj.get("sites").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `sites` to be an array in the JSON string but got `%s`", + jsonObj.get("sites").toString())); } + + // validate the optional field `sites` (array) + for (int i = 0; i < jsonArraysites.size(); i++) { + Site.validateJsonElement(jsonArraysites.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSitesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSitesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetSitesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSitesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetSitesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetSitesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSitesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetSitesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSitesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetSitesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java b/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java index a743dfa61..55772235a 100644 --- a/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * GetSitesSchemaResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetSitesSchemaResponse { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -63,8 +72,7 @@ public class GetSitesSchemaResponse { @javax.annotation.Nullable private SchemaAttributes attributes; - public GetSitesSchemaResponse() { - } + public GetSitesSchemaResponse() {} public GetSitesSchemaResponse name(@javax.annotation.Nullable String name) { this.name = name; @@ -73,6 +81,7 @@ public GetSitesSchemaResponse name(@javax.annotation.Nullable String name) { /** * Name of schema + * * @return name */ @javax.annotation.Nullable @@ -92,6 +101,7 @@ public GetSitesSchemaResponse attributes(@javax.annotation.Nullable SchemaAttrib /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -114,8 +124,8 @@ public boolean equals(Object o) { return false; } GetSitesSchemaResponse getSitesSchemaResponse = (GetSitesSchemaResponse) o; - return Objects.equals(this.name, getSitesSchemaResponse.name) && - Objects.equals(this.attributes, getSitesSchemaResponse.attributes); + return Objects.equals(this.name, getSitesSchemaResponse.name) + && Objects.equals(this.attributes, getSitesSchemaResponse.attributes); } @Override @@ -134,8 +144,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,55 +172,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetSitesSchemaResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetSitesSchemaResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetSitesSchemaResponse is not found in the empty JSON string", GetSitesSchemaResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetSitesSchemaResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetSitesSchemaResponse is not found in the empty JSON string", + GetSitesSchemaResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetSitesSchemaResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetSitesSchemaResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - SchemaAttributes.validateJsonElement(jsonObj.get("attributes")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetSitesSchemaResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetSitesSchemaResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + SchemaAttributes.validateJsonElement(jsonObj.get("attributes")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetSitesSchemaResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetSitesSchemaResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetSitesSchemaResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetSitesSchemaResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetSitesSchemaResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetSitesSchemaResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetSitesSchemaResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetSitesSchemaResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetSitesSchemaResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetSitesSchemaResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java b/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java index 9572bea69..8de96875e 100644 --- a/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetUserActivitesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetUserActivitesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetUserActivitesResponse { @javax.annotation.Nullable private List userActivities = new ArrayList<>(); - public GetUserActivitesResponse() { - } + public GetUserActivitesResponse() {} public GetUserActivitesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetUserActivitesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetUserActivitesResponse userActivities(@javax.annotation.Nullable List userActivities) { + public GetUserActivitesResponse userActivities( + @javax.annotation.Nullable List userActivities) { this.userActivities = userActivities; return this; } @@ -102,6 +112,7 @@ public GetUserActivitesResponse addUserActivitiesItem(UserActivity userActivitie /** * List of user activities + * * @return userActivities */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } GetUserActivitesResponse getUserActivitesResponse = (GetUserActivitesResponse) o; - return Objects.equals(this.next, getUserActivitesResponse.next) && - Objects.equals(this.userActivities, getUserActivitesResponse.userActivities); + return Objects.equals(this.next, getUserActivitesResponse.next) + && Objects.equals(this.userActivities, getUserActivitesResponse.userActivities); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +183,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUserActivitesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUserActivitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUserActivitesResponse is not found in the empty JSON string", GetUserActivitesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetUserActivitesResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetUserActivitesResponse is not found in the empty JSON string", + GetUserActivitesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUserActivitesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUserActivitesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUserActivitesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetUserActivitesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("userActivities") != null && !jsonObj.get("userActivities").isJsonNull()) { - JsonArray jsonArrayuserActivities = jsonObj.getAsJsonArray("userActivities"); - if (jsonArrayuserActivities != null) { - // ensure the json data is an array - if (!jsonObj.get("userActivities").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userActivities` to be an array in the JSON string but got `%s`", jsonObj.get("userActivities").toString())); - } - - // validate the optional field `userActivities` (array) - for (int i = 0; i < jsonArrayuserActivities.size(); i++) { - UserActivity.validateJsonElement(jsonArrayuserActivities.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("userActivities") != null && !jsonObj.get("userActivities").isJsonNull()) { + JsonArray jsonArrayuserActivities = jsonObj.getAsJsonArray("userActivities"); + if (jsonArrayuserActivities != null) { + // ensure the json data is an array + if (!jsonObj.get("userActivities").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userActivities` to be an array in the JSON string but got `%s`", + jsonObj.get("userActivities").toString())); } + + // validate the optional field `userActivities` (array) + for (int i = 0; i < jsonArrayuserActivities.size(); i++) { + UserActivity.validateJsonElement(jsonArrayuserActivities.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserActivitesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserActivitesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetUserActivitesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserActivitesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUserActivitesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUserActivitesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserActivitesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetUserActivitesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserActivitesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUserActivitesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java index 5874d1e0b..c3431ce1d 100644 --- a/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetUserGroupsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetUserGroupsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetUserGroupsResponse { @javax.annotation.Nullable private List groups = new ArrayList<>(); - public GetUserGroupsResponse() { - } + public GetUserGroupsResponse() {} public GetUserGroupsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetUserGroupsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetUserGroupsResponse addGroupsItem(Group groupsItem) { /** * List of groups + * * @return groups */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetUserGroupsResponse getUserGroupsResponse = (GetUserGroupsResponse) o; - return Objects.equals(this.next, getUserGroupsResponse.next) && - Objects.equals(this.groups, getUserGroupsResponse.groups); + return Objects.equals(this.next, getUserGroupsResponse.next) + && Objects.equals(this.groups, getUserGroupsResponse.groups); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUserGroupsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUserGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUserGroupsResponse is not found in the empty JSON string", GetUserGroupsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetUserGroupsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetUserGroupsResponse is not found in the empty JSON string", + GetUserGroupsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUserGroupsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUserGroupsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUserGroupsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetUserGroupsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { - JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); - if (jsonArraygroups != null) { - // ensure the json data is an array - if (!jsonObj.get("groups").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); - } - - // validate the optional field `groups` (array) - for (int i = 0; i < jsonArraygroups.size(); i++) { - Group.validateJsonElement(jsonArraygroups.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { + JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); + if (jsonArraygroups != null) { + // ensure the json data is an array + if (!jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `groups` to be an array in the JSON string but got `%s`", + jsonObj.get("groups").toString())); } + + // validate the optional field `groups` (array) + for (int i = 0; i < jsonArraygroups.size(); i++) { + Group.validateJsonElement(jsonArraygroups.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserGroupsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserGroupsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetUserGroupsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserGroupsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUserGroupsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUserGroupsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserGroupsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetUserGroupsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserGroupsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUserGroupsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUserResponse.java b/src/main/java/com/formkiq/client/model/GetUserResponse.java index 1c15497c9..bc1453dfd 100644 --- a/src/main/java/com/formkiq/client/model/GetUserResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * GetUserResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetUserResponse { public static final String SERIALIZED_NAME_USER = "user"; @SerializedName(SERIALIZED_NAME_USER) @javax.annotation.Nullable private User user; - public GetUserResponse() { - } + public GetUserResponse() {} public GetUserResponse user(@javax.annotation.Nullable User user) { this.user = user; @@ -68,6 +76,7 @@ public GetUserResponse user(@javax.annotation.Nullable User user) { /** * Get user + * * @return user */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUserResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUserResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUserResponse is not found in the empty JSON string", GetUserResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetUserResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetUserResponse is not found in the empty JSON string", + GetUserResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUserResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUserResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `user` - if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { - User.validateJsonElement(jsonObj.get("user")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUserResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetUserResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `user` + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { + User.validateJsonElement(jsonObj.get("user")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetUserResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUserResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUserResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetUserResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUserResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java b/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java index b82bcc39c..79f73bcaf 100644 --- a/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetUserSharesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetUserSharesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetUserSharesResponse { @javax.annotation.Nullable private List shares = new ArrayList<>(); - public GetUserSharesResponse() { - } + public GetUserSharesResponse() {} public GetUserSharesResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetUserSharesResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetUserSharesResponse addSharesItem(UserShare sharesItem) { /** * List of user's shares + * * @return shares */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetUserSharesResponse getUserSharesResponse = (GetUserSharesResponse) o; - return Objects.equals(this.next, getUserSharesResponse.next) && - Objects.equals(this.shares, getUserSharesResponse.shares); + return Objects.equals(this.next, getUserSharesResponse.next) + && Objects.equals(this.shares, getUserSharesResponse.shares); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUserSharesResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUserSharesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUserSharesResponse is not found in the empty JSON string", GetUserSharesResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetUserSharesResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetUserSharesResponse is not found in the empty JSON string", + GetUserSharesResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUserSharesResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUserSharesResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUserSharesResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetUserSharesResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("shares") != null && !jsonObj.get("shares").isJsonNull()) { - JsonArray jsonArrayshares = jsonObj.getAsJsonArray("shares"); - if (jsonArrayshares != null) { - // ensure the json data is an array - if (!jsonObj.get("shares").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shares` to be an array in the JSON string but got `%s`", jsonObj.get("shares").toString())); - } - - // validate the optional field `shares` (array) - for (int i = 0; i < jsonArrayshares.size(); i++) { - UserShare.validateJsonElement(jsonArrayshares.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("shares") != null && !jsonObj.get("shares").isJsonNull()) { + JsonArray jsonArrayshares = jsonObj.getAsJsonArray("shares"); + if (jsonArrayshares != null) { + // ensure the json data is an array + if (!jsonObj.get("shares").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `shares` to be an array in the JSON string but got `%s`", + jsonObj.get("shares").toString())); } + + // validate the optional field `shares` (array) + for (int i = 0; i < jsonArrayshares.size(); i++) { + UserShare.validateJsonElement(jsonArrayshares.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUserSharesResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUserSharesResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetUserSharesResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUserSharesResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUserSharesResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUserSharesResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUserSharesResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetUserSharesResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUserSharesResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUserSharesResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java b/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java index c9b99beb0..47dcb096d 100644 --- a/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetUsersInGroupResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetUsersInGroupResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetUsersInGroupResponse { @javax.annotation.Nullable private List users = new ArrayList<>(); - public GetUsersInGroupResponse() { - } + public GetUsersInGroupResponse() {} public GetUsersInGroupResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetUsersInGroupResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetUsersInGroupResponse addUsersItem(User usersItem) { /** * List of users + * * @return users */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetUsersInGroupResponse getUsersInGroupResponse = (GetUsersInGroupResponse) o; - return Objects.equals(this.next, getUsersInGroupResponse.next) && - Objects.equals(this.users, getUsersInGroupResponse.users); + return Objects.equals(this.next, getUsersInGroupResponse.next) + && Objects.equals(this.users, getUsersInGroupResponse.users); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUsersInGroupResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUsersInGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUsersInGroupResponse is not found in the empty JSON string", GetUsersInGroupResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetUsersInGroupResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetUsersInGroupResponse is not found in the empty JSON string", + GetUsersInGroupResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUsersInGroupResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUsersInGroupResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUsersInGroupResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetUsersInGroupResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { - JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); - if (jsonArrayusers != null) { - // ensure the json data is an array - if (!jsonObj.get("users").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); - } - - // validate the optional field `users` (array) - for (int i = 0; i < jsonArrayusers.size(); i++) { - User.validateJsonElement(jsonArrayusers.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + if (jsonArrayusers != null) { + // ensure the json data is an array + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `users` to be an array in the JSON string but got `%s`", + jsonObj.get("users").toString())); } + + // validate the optional field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + User.validateJsonElement(jsonArrayusers.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUsersInGroupResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUsersInGroupResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetUsersInGroupResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUsersInGroupResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUsersInGroupResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUsersInGroupResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUsersInGroupResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetUsersInGroupResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUsersInGroupResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUsersInGroupResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetUsersResponse.java b/src/main/java/com/formkiq/client/model/GetUsersResponse.java index 2cb9e9e79..a6930794e 100644 --- a/src/main/java/com/formkiq/client/model/GetUsersResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUsersResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetUsersResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetUsersResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetUsersResponse { @javax.annotation.Nullable private List users = new ArrayList<>(); - public GetUsersResponse() { - } + public GetUsersResponse() {} public GetUsersResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetUsersResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public GetUsersResponse addUsersItem(User usersItem) { /** * List of users + * * @return users */ @javax.annotation.Nullable @@ -124,8 +134,8 @@ public boolean equals(Object o) { return false; } GetUsersResponse getUsersResponse = (GetUsersResponse) o; - return Objects.equals(this.next, getUsersResponse.next) && - Objects.equals(this.users, getUsersResponse.users); + return Objects.equals(this.next, getUsersResponse.next) + && Objects.equals(this.users, getUsersResponse.users); } @Override @@ -144,8 +154,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +182,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetUsersResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetUsersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetUsersResponse is not found in the empty JSON string", GetUsersResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetUsersResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetUsersResponse is not found in the empty JSON string", + GetUsersResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetUsersResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetUsersResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetUsersResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetUsersResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { - JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); - if (jsonArrayusers != null) { - // ensure the json data is an array - if (!jsonObj.get("users").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); - } - - // validate the optional field `users` (array) - for (int i = 0; i < jsonArrayusers.size(); i++) { - User.validateJsonElement(jsonArrayusers.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + if (jsonArrayusers != null) { + // ensure the json data is an array + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `users` to be an array in the JSON string but got `%s`", + jsonObj.get("users").toString())); } + + // validate the optional field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + User.validateJsonElement(jsonArrayusers.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetUsersResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetUsersResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetUsersResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetUsersResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetUsersResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetUsersResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetUsersResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetUsersResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetUsersResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetUsersResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetVersionResponse.java b/src/main/java/com/formkiq/client/model/GetVersionResponse.java index 4a40346d4..0c927474f 100644 --- a/src/main/java/com/formkiq/client/model/GetVersionResponse.java +++ b/src/main/java/com/formkiq/client/model/GetVersionResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * GetVersionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetVersionResponse { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) @@ -74,8 +83,7 @@ public class GetVersionResponse { @javax.annotation.Nullable private List modules = new ArrayList<>(); - public GetVersionResponse() { - } + public GetVersionResponse() {} public GetVersionResponse version(@javax.annotation.Nullable String version) { this.version = version; @@ -84,6 +92,7 @@ public GetVersionResponse version(@javax.annotation.Nullable String version) { /** * FormKiQ version + * * @return version */ @javax.annotation.Nullable @@ -103,6 +112,7 @@ public GetVersionResponse type(@javax.annotation.Nullable String type) { /** * FormKiQ type + * * @return type */ @javax.annotation.Nullable @@ -122,6 +132,7 @@ public GetVersionResponse appEnvironment(@javax.annotation.Nullable String appEn /** * FormKiQ App Environment + * * @return appEnvironment */ @javax.annotation.Nullable @@ -149,6 +160,7 @@ public GetVersionResponse addModulesItem(String modulesItem) { /** * List of installed modules + * * @return modules */ @javax.annotation.Nullable @@ -171,10 +183,10 @@ public boolean equals(Object o) { return false; } GetVersionResponse getVersionResponse = (GetVersionResponse) o; - return Objects.equals(this.version, getVersionResponse.version) && - Objects.equals(this.type, getVersionResponse.type) && - Objects.equals(this.appEnvironment, getVersionResponse.appEnvironment) && - Objects.equals(this.modules, getVersionResponse.modules); + return Objects.equals(this.version, getVersionResponse.version) + && Objects.equals(this.type, getVersionResponse.type) + && Objects.equals(this.appEnvironment, getVersionResponse.appEnvironment) + && Objects.equals(this.modules, getVersionResponse.modules); } @Override @@ -195,8 +207,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -211,7 +222,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("version", "type", "appEnvironment", "modules")); + openapiFields = + new HashSet(Arrays.asList("version", "type", "appEnvironment", "modules")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -224,61 +236,78 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetVersionResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetVersionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetVersionResponse is not found in the empty JSON string", GetVersionResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetVersionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetVersionResponse is not found in the empty JSON string", + GetVersionResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetVersionResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetVersionResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - if ((jsonObj.get("appEnvironment") != null && !jsonObj.get("appEnvironment").isJsonNull()) && !jsonObj.get("appEnvironment").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `appEnvironment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("appEnvironment").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("modules") != null && !jsonObj.get("modules").isJsonNull() && !jsonObj.get("modules").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `modules` to be an array in the JSON string but got `%s`", jsonObj.get("modules").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetVersionResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetVersionResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) + && !jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `version` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("version").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) + && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `type` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("type").toString())); + } + if ((jsonObj.get("appEnvironment") != null && !jsonObj.get("appEnvironment").isJsonNull()) + && !jsonObj.get("appEnvironment").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `appEnvironment` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("appEnvironment").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("modules") != null && !jsonObj.get("modules").isJsonNull() + && !jsonObj.get("modules").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `modules` to be an array in the JSON string but got `%s`", + jsonObj.get("modules").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetVersionResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetVersionResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetVersionResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetVersionResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetVersionResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetVersionResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetVersionResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetVersionResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetVersionResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetVersionResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWebhookResponse.java b/src/main/java/com/formkiq/client/model/GetWebhookResponse.java index 85cd96226..ef8f9487b 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhookResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhookResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * GetWebhookResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetWebhookResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -92,8 +101,7 @@ public class GetWebhookResponse { @javax.annotation.Nullable private String ttl; - public GetWebhookResponse() { - } + public GetWebhookResponse() {} public GetWebhookResponse siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -102,6 +110,7 @@ public GetWebhookResponse siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -121,6 +130,7 @@ public GetWebhookResponse name(@javax.annotation.Nullable String name) { /** * Webhook name + * * @return name */ @javax.annotation.Nullable @@ -140,6 +150,7 @@ public GetWebhookResponse url(@javax.annotation.Nullable String url) { /** * Webhook url + * * @return url */ @javax.annotation.Nullable @@ -159,6 +170,7 @@ public GetWebhookResponse insertedDate(@javax.annotation.Nullable String inserte /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -178,6 +190,7 @@ public GetWebhookResponse webhookId(@javax.annotation.Nullable String webhookId) /** * Webhook Identifier + * * @return webhookId */ @javax.annotation.Nullable @@ -197,6 +210,7 @@ public GetWebhookResponse userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -216,6 +230,7 @@ public GetWebhookResponse enabled(@javax.annotation.Nullable String enabled) { /** * Is webhook enabled + * * @return enabled */ @javax.annotation.Nullable @@ -235,6 +250,7 @@ public GetWebhookResponse ttl(@javax.annotation.Nullable String ttl) { /** * Webhook time to live (expiry in seconds) + * * @return ttl */ @javax.annotation.Nullable @@ -257,14 +273,14 @@ public boolean equals(Object o) { return false; } GetWebhookResponse getWebhookResponse = (GetWebhookResponse) o; - return Objects.equals(this.siteId, getWebhookResponse.siteId) && - Objects.equals(this.name, getWebhookResponse.name) && - Objects.equals(this.url, getWebhookResponse.url) && - Objects.equals(this.insertedDate, getWebhookResponse.insertedDate) && - Objects.equals(this.webhookId, getWebhookResponse.webhookId) && - Objects.equals(this.userId, getWebhookResponse.userId) && - Objects.equals(this.enabled, getWebhookResponse.enabled) && - Objects.equals(this.ttl, getWebhookResponse.ttl); + return Objects.equals(this.siteId, getWebhookResponse.siteId) + && Objects.equals(this.name, getWebhookResponse.name) + && Objects.equals(this.url, getWebhookResponse.url) + && Objects.equals(this.insertedDate, getWebhookResponse.insertedDate) + && Objects.equals(this.webhookId, getWebhookResponse.webhookId) + && Objects.equals(this.userId, getWebhookResponse.userId) + && Objects.equals(this.enabled, getWebhookResponse.enabled) + && Objects.equals(this.ttl, getWebhookResponse.ttl); } @Override @@ -289,8 +305,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -305,7 +320,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "name", "url", "insertedDate", "webhookId", "userId", "enabled", "ttl")); + openapiFields = new HashSet(Arrays.asList("siteId", "name", "url", "insertedDate", + "webhookId", "userId", "enabled", "ttl")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -318,72 +334,101 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWebhookResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWebhookResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWebhookResponse is not found in the empty JSON string", GetWebhookResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetWebhookResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetWebhookResponse is not found in the empty JSON string", + GetWebhookResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWebhookResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWebhookResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) && !jsonObj.get("url").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) && !jsonObj.get("webhookId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("webhookId").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("enabled") != null && !jsonObj.get("enabled").isJsonNull()) && !jsonObj.get("enabled").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `enabled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("enabled").toString())); - } - if ((jsonObj.get("ttl") != null && !jsonObj.get("ttl").isJsonNull()) && !jsonObj.get("ttl").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ttl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ttl").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWebhookResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetWebhookResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("url") != null && !jsonObj.get("url").isJsonNull()) + && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `url` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("url").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) + && !jsonObj.get("webhookId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("webhookId").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("enabled") != null && !jsonObj.get("enabled").isJsonNull()) + && !jsonObj.get("enabled").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `enabled` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("enabled").toString())); + } + if ((jsonObj.get("ttl") != null && !jsonObj.get("ttl").isJsonNull()) + && !jsonObj.get("ttl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `ttl` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("ttl").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWebhookResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWebhookResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetWebhookResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWebhookResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWebhookResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWebhookResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWebhookResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetWebhookResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWebhookResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWebhookResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java b/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java index 68b2ec03b..167703c58 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetWebhookTagsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetWebhookTagsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -70,8 +79,7 @@ public class GetWebhookTagsResponse { @javax.annotation.Nullable private List tags = new ArrayList<>(); - public GetWebhookTagsResponse() { - } + public GetWebhookTagsResponse() {} public GetWebhookTagsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -80,6 +88,7 @@ public GetWebhookTagsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -99,6 +108,7 @@ public GetWebhookTagsResponse previous(@javax.annotation.Nullable String previou /** * Previous page of results token + * * @return previous */ @javax.annotation.Nullable @@ -126,6 +136,7 @@ public GetWebhookTagsResponse addTagsItem(WebhookTag tagsItem) { /** * List of webhook tags + * * @return tags */ @javax.annotation.Nullable @@ -148,9 +159,9 @@ public boolean equals(Object o) { return false; } GetWebhookTagsResponse getWebhookTagsResponse = (GetWebhookTagsResponse) o; - return Objects.equals(this.next, getWebhookTagsResponse.next) && - Objects.equals(this.previous, getWebhookTagsResponse.previous) && - Objects.equals(this.tags, getWebhookTagsResponse.tags); + return Objects.equals(this.next, getWebhookTagsResponse.next) + && Objects.equals(this.previous, getWebhookTagsResponse.previous) + && Objects.equals(this.tags, getWebhookTagsResponse.tags); } @Override @@ -170,8 +181,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,68 +209,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWebhookTagsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWebhookTagsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWebhookTagsResponse is not found in the empty JSON string", GetWebhookTagsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetWebhookTagsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetWebhookTagsResponse is not found in the empty JSON string", + GetWebhookTagsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWebhookTagsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWebhookTagsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWebhookTagsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetWebhookTagsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - WebhookTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) + && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("previous").toString())); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + WebhookTag.validateJsonElement(jsonArraytags.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWebhookTagsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWebhookTagsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetWebhookTagsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWebhookTagsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWebhookTagsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWebhookTagsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWebhookTagsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetWebhookTagsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWebhookTagsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWebhookTagsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java b/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java index 1cb71b22e..d7064f35c 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetWebhooksResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetWebhooksResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetWebhooksResponse { @javax.annotation.Nullable private List webhooks = new ArrayList<>(); - public GetWebhooksResponse() { - } + public GetWebhooksResponse() {} public GetWebhooksResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetWebhooksResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetWebhooksResponse webhooks(@javax.annotation.Nullable List webhooks) { + public GetWebhooksResponse webhooks( + @javax.annotation.Nullable List webhooks) { this.webhooks = webhooks; return this; } @@ -102,6 +112,7 @@ public GetWebhooksResponse addWebhooksItem(GetWebhookResponse webhooksItem) { /** * List of webhooks + * * @return webhooks */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } GetWebhooksResponse getWebhooksResponse = (GetWebhooksResponse) o; - return Objects.equals(this.next, getWebhooksResponse.next) && - Objects.equals(this.webhooks, getWebhooksResponse.webhooks); + return Objects.equals(this.next, getWebhooksResponse.next) + && Objects.equals(this.webhooks, getWebhooksResponse.webhooks); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +183,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWebhooksResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWebhooksResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWebhooksResponse is not found in the empty JSON string", GetWebhooksResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetWebhooksResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetWebhooksResponse is not found in the empty JSON string", + GetWebhooksResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWebhooksResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWebhooksResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWebhooksResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetWebhooksResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("webhooks") != null && !jsonObj.get("webhooks").isJsonNull()) { - JsonArray jsonArraywebhooks = jsonObj.getAsJsonArray("webhooks"); - if (jsonArraywebhooks != null) { - // ensure the json data is an array - if (!jsonObj.get("webhooks").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webhooks` to be an array in the JSON string but got `%s`", jsonObj.get("webhooks").toString())); - } - - // validate the optional field `webhooks` (array) - for (int i = 0; i < jsonArraywebhooks.size(); i++) { - GetWebhookResponse.validateJsonElement(jsonArraywebhooks.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("webhooks") != null && !jsonObj.get("webhooks").isJsonNull()) { + JsonArray jsonArraywebhooks = jsonObj.getAsJsonArray("webhooks"); + if (jsonArraywebhooks != null) { + // ensure the json data is an array + if (!jsonObj.get("webhooks").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `webhooks` to be an array in the JSON string but got `%s`", + jsonObj.get("webhooks").toString())); } + + // validate the optional field `webhooks` (array) + for (int i = 0; i < jsonArraywebhooks.size(); i++) { + GetWebhookResponse.validateJsonElement(jsonArraywebhooks.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWebhooksResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWebhooksResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetWebhooksResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWebhooksResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWebhooksResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWebhooksResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWebhooksResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetWebhooksResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWebhooksResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWebhooksResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java index a1ff968f9..137ac6d22 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetWorkflowDocumentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetWorkflowDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetWorkflowDocumentsResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetWorkflowDocumentsResponse() { - } + public GetWorkflowDocumentsResponse() {} public GetWorkflowDocumentsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetWorkflowDocumentsResponse next(@javax.annotation.Nullable String next) /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetWorkflowDocumentsResponse documents(@javax.annotation.Nullable List documents) { + public GetWorkflowDocumentsResponse documents( + @javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -102,6 +112,7 @@ public GetWorkflowDocumentsResponse addDocumentsItem(Document documentsItem) { /** * List of workflow documents + * * @return documents */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } GetWorkflowDocumentsResponse getWorkflowDocumentsResponse = (GetWorkflowDocumentsResponse) o; - return Objects.equals(this.next, getWorkflowDocumentsResponse.next) && - Objects.equals(this.documents, getWorkflowDocumentsResponse.documents); + return Objects.equals(this.next, getWorkflowDocumentsResponse.next) + && Objects.equals(this.documents, getWorkflowDocumentsResponse.documents); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +183,76 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWorkflowDocumentsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWorkflowDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWorkflowDocumentsResponse is not found in the empty JSON string", GetWorkflowDocumentsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetWorkflowDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetWorkflowDocumentsResponse is not found in the empty JSON string", + GetWorkflowDocumentsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWorkflowDocumentsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWorkflowDocumentsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWorkflowDocumentsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetWorkflowDocumentsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - Document.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + Document.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWorkflowDocumentsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWorkflowDocumentsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowDocumentsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWorkflowDocumentsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWorkflowDocumentsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWorkflowDocumentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWorkflowDocumentsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowDocumentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWorkflowDocumentsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWorkflowDocumentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java index 75c910f4e..54a0d1f87 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetWorkflowQueueDocumentsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetWorkflowQueueDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetWorkflowQueueDocumentsResponse { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public GetWorkflowQueueDocumentsResponse() { - } + public GetWorkflowQueueDocumentsResponse() {} public GetWorkflowQueueDocumentsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetWorkflowQueueDocumentsResponse next(@javax.annotation.Nullable String /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetWorkflowQueueDocumentsResponse documents(@javax.annotation.Nullable List documents) { + public GetWorkflowQueueDocumentsResponse documents( + @javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -102,6 +112,7 @@ public GetWorkflowQueueDocumentsResponse addDocumentsItem(WorkflowDocument docum /** * List of search result documents + * * @return documents */ @javax.annotation.Nullable @@ -123,9 +134,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetWorkflowQueueDocumentsResponse getWorkflowQueueDocumentsResponse = (GetWorkflowQueueDocumentsResponse) o; - return Objects.equals(this.next, getWorkflowQueueDocumentsResponse.next) && - Objects.equals(this.documents, getWorkflowQueueDocumentsResponse.documents); + GetWorkflowQueueDocumentsResponse getWorkflowQueueDocumentsResponse = + (GetWorkflowQueueDocumentsResponse) o; + return Objects.equals(this.next, getWorkflowQueueDocumentsResponse.next) + && Objects.equals(this.documents, getWorkflowQueueDocumentsResponse.documents); } @Override @@ -144,8 +156,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -170,68 +181,82 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GetWorkflowQueueDocumentsResponse + * @throws IOException if the JSON Element is invalid with respect to + * GetWorkflowQueueDocumentsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWorkflowQueueDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWorkflowQueueDocumentsResponse is not found in the empty JSON string", GetWorkflowQueueDocumentsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetWorkflowQueueDocumentsResponse.openapiRequiredFields.isEmpty()) { // has required + // fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetWorkflowQueueDocumentsResponse is not found in the empty JSON string", + GetWorkflowQueueDocumentsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWorkflowQueueDocumentsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWorkflowQueueDocumentsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWorkflowQueueDocumentsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetWorkflowQueueDocumentsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - WorkflowDocument.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + WorkflowDocument.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWorkflowQueueDocumentsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWorkflowQueueDocumentsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowQueueDocumentsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWorkflowQueueDocumentsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWorkflowQueueDocumentsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWorkflowQueueDocumentsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWorkflowQueueDocumentsResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowQueueDocumentsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWorkflowQueueDocumentsResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWorkflowQueueDocumentsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -240,7 +265,8 @@ public GetWorkflowQueueDocumentsResponse read(JsonReader in) throws IOException * * @param jsonString JSON string * @return An instance of GetWorkflowQueueDocumentsResponse - * @throws IOException if the JSON string is invalid with respect to GetWorkflowQueueDocumentsResponse + * @throws IOException if the JSON string is invalid with respect to + * GetWorkflowQueueDocumentsResponse */ public static GetWorkflowQueueDocumentsResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetWorkflowQueueDocumentsResponse.class); diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java index 0ad26cb42..22c8a005a 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * GetWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetWorkflowResponse { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -81,8 +90,7 @@ public class GetWorkflowResponse { @javax.annotation.Nullable private List steps = new ArrayList<>(); - public GetWorkflowResponse() { - } + public GetWorkflowResponse() {} public GetWorkflowResponse name(@javax.annotation.Nullable String name) { this.name = name; @@ -91,6 +99,7 @@ public GetWorkflowResponse name(@javax.annotation.Nullable String name) { /** * Workflow name + * * @return name */ @javax.annotation.Nullable @@ -110,6 +119,7 @@ public GetWorkflowResponse description(@javax.annotation.Nullable String descrip /** * Workflow description + * * @return description */ @javax.annotation.Nullable @@ -129,6 +139,7 @@ public GetWorkflowResponse inUse(@javax.annotation.Nullable Boolean inUse) { /** * Whether the Workflow is in use + * * @return inUse */ @javax.annotation.Nullable @@ -148,6 +159,7 @@ public GetWorkflowResponse status(@javax.annotation.Nullable WorkflowStatus stat /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -175,6 +187,7 @@ public GetWorkflowResponse addStepsItem(WorkflowStep stepsItem) { /** * Workflow steps + * * @return steps */ @javax.annotation.Nullable @@ -197,11 +210,11 @@ public boolean equals(Object o) { return false; } GetWorkflowResponse getWorkflowResponse = (GetWorkflowResponse) o; - return Objects.equals(this.name, getWorkflowResponse.name) && - Objects.equals(this.description, getWorkflowResponse.description) && - Objects.equals(this.inUse, getWorkflowResponse.inUse) && - Objects.equals(this.status, getWorkflowResponse.status) && - Objects.equals(this.steps, getWorkflowResponse.steps); + return Objects.equals(this.name, getWorkflowResponse.name) + && Objects.equals(this.description, getWorkflowResponse.description) + && Objects.equals(this.inUse, getWorkflowResponse.inUse) + && Objects.equals(this.status, getWorkflowResponse.status) + && Objects.equals(this.steps, getWorkflowResponse.steps); } @Override @@ -223,8 +236,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -239,7 +251,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "description", "inUse", "status", "steps")); + openapiFields = + new HashSet(Arrays.asList("name", "description", "inUse", "status", "steps")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -252,72 +265,85 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWorkflowResponse is not found in the empty JSON string", GetWorkflowResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetWorkflowResponse is not found in the empty JSON string", + GetWorkflowResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetWorkflowResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - WorkflowStatus.validateJsonElement(jsonObj.get("status")); - } - if (jsonObj.get("steps") != null && !jsonObj.get("steps").isJsonNull()) { - JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); - if (jsonArraysteps != null) { - // ensure the json data is an array - if (!jsonObj.get("steps").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `steps` to be an array in the JSON string but got `%s`", jsonObj.get("steps").toString())); - } - - // validate the optional field `steps` (array) - for (int i = 0; i < jsonArraysteps.size(); i++) { - WorkflowStep.validateJsonElement(jsonArraysteps.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + WorkflowStatus.validateJsonElement(jsonObj.get("status")); + } + if (jsonObj.get("steps") != null && !jsonObj.get("steps").isJsonNull()) { + JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); + if (jsonArraysteps != null) { + // ensure the json data is an array + if (!jsonObj.get("steps").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `steps` to be an array in the JSON string but got `%s`", + jsonObj.get("steps").toString())); } + + // validate the optional field `steps` (array) + for (int i = 0; i < jsonArraysteps.size(); i++) { + WorkflowStep.validateJsonElement(jsonArraysteps.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java index 7ed14636c..63d862958 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * GetWorkflowsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GetWorkflowsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -65,8 +74,7 @@ public class GetWorkflowsResponse { @javax.annotation.Nullable private List workflows = new ArrayList<>(); - public GetWorkflowsResponse() { - } + public GetWorkflowsResponse() {} public GetWorkflowsResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -75,6 +83,7 @@ public GetWorkflowsResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setNext(@javax.annotation.Nullable String next) { } - public GetWorkflowsResponse workflows(@javax.annotation.Nullable List workflows) { + public GetWorkflowsResponse workflows( + @javax.annotation.Nullable List workflows) { this.workflows = workflows; return this; } @@ -102,6 +112,7 @@ public GetWorkflowsResponse addWorkflowsItem(WorkflowSummary workflowsItem) { /** * List of workflows + * * @return workflows */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } GetWorkflowsResponse getWorkflowsResponse = (GetWorkflowsResponse) o; - return Objects.equals(this.next, getWorkflowsResponse.next) && - Objects.equals(this.workflows, getWorkflowsResponse.workflows); + return Objects.equals(this.next, getWorkflowsResponse.next) + && Objects.equals(this.workflows, getWorkflowsResponse.workflows); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +183,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GetWorkflowsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GetWorkflowsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GetWorkflowsResponse is not found in the empty JSON string", GetWorkflowsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GetWorkflowsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GetWorkflowsResponse is not found in the empty JSON string", + GetWorkflowsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GetWorkflowsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetWorkflowsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GetWorkflowsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GetWorkflowsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if (jsonObj.get("workflows") != null && !jsonObj.get("workflows").isJsonNull()) { - JsonArray jsonArrayworkflows = jsonObj.getAsJsonArray("workflows"); - if (jsonArrayworkflows != null) { - // ensure the json data is an array - if (!jsonObj.get("workflows").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflows` to be an array in the JSON string but got `%s`", jsonObj.get("workflows").toString())); - } - - // validate the optional field `workflows` (array) - for (int i = 0; i < jsonArrayworkflows.size(); i++) { - WorkflowSummary.validateJsonElement(jsonArrayworkflows.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if (jsonObj.get("workflows") != null && !jsonObj.get("workflows").isJsonNull()) { + JsonArray jsonArrayworkflows = jsonObj.getAsJsonArray("workflows"); + if (jsonArrayworkflows != null) { + // ensure the json data is an array + if (!jsonObj.get("workflows").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflows` to be an array in the JSON string but got `%s`", + jsonObj.get("workflows").toString())); } + + // validate the optional field `workflows` (array) + for (int i = 0; i < jsonArrayworkflows.size(); i++) { + WorkflowSummary.validateJsonElement(jsonArrayworkflows.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GetWorkflowsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GetWorkflowsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GetWorkflowsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GetWorkflowsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GetWorkflowsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetWorkflowsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GetWorkflowsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetWorkflowsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetWorkflowsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GoogleConfig.java b/src/main/java/com/formkiq/client/model/GoogleConfig.java index 3368f2919..c06c488fe 100644 --- a/src/main/java/com/formkiq/client/model/GoogleConfig.java +++ b/src/main/java/com/formkiq/client/model/GoogleConfig.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,28 +57,33 @@ /** * GoogleConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class GoogleConfig { - public static final String SERIALIZED_NAME_WORKLOAD_IDENTITY_AUDIENCE = "workloadIdentityAudience"; + public static final String SERIALIZED_NAME_WORKLOAD_IDENTITY_AUDIENCE = + "workloadIdentityAudience"; @SerializedName(SERIALIZED_NAME_WORKLOAD_IDENTITY_AUDIENCE) @javax.annotation.Nullable private String workloadIdentityAudience; - public static final String SERIALIZED_NAME_WORKLOAD_IDENTITY_SERVICE_ACCOUNT = "workloadIdentityServiceAccount"; + public static final String SERIALIZED_NAME_WORKLOAD_IDENTITY_SERVICE_ACCOUNT = + "workloadIdentityServiceAccount"; @SerializedName(SERIALIZED_NAME_WORKLOAD_IDENTITY_SERVICE_ACCOUNT) @javax.annotation.Nullable private String workloadIdentityServiceAccount; - public GoogleConfig() { - } + public GoogleConfig() {} - public GoogleConfig workloadIdentityAudience(@javax.annotation.Nullable String workloadIdentityAudience) { + public GoogleConfig workloadIdentityAudience( + @javax.annotation.Nullable String workloadIdentityAudience) { this.workloadIdentityAudience = workloadIdentityAudience; return this; } /** * Workload Identity Audience + * * @return workloadIdentityAudience */ @javax.annotation.Nullable @@ -79,18 +91,21 @@ public String getWorkloadIdentityAudience() { return workloadIdentityAudience; } - public void setWorkloadIdentityAudience(@javax.annotation.Nullable String workloadIdentityAudience) { + public void setWorkloadIdentityAudience( + @javax.annotation.Nullable String workloadIdentityAudience) { this.workloadIdentityAudience = workloadIdentityAudience; } - public GoogleConfig workloadIdentityServiceAccount(@javax.annotation.Nullable String workloadIdentityServiceAccount) { + public GoogleConfig workloadIdentityServiceAccount( + @javax.annotation.Nullable String workloadIdentityServiceAccount) { this.workloadIdentityServiceAccount = workloadIdentityServiceAccount; return this; } /** * Workload Service Account + * * @return workloadIdentityServiceAccount */ @javax.annotation.Nullable @@ -98,7 +113,8 @@ public String getWorkloadIdentityServiceAccount() { return workloadIdentityServiceAccount; } - public void setWorkloadIdentityServiceAccount(@javax.annotation.Nullable String workloadIdentityServiceAccount) { + public void setWorkloadIdentityServiceAccount( + @javax.annotation.Nullable String workloadIdentityServiceAccount) { this.workloadIdentityServiceAccount = workloadIdentityServiceAccount; } @@ -113,8 +129,9 @@ public boolean equals(Object o) { return false; } GoogleConfig googleConfig = (GoogleConfig) o; - return Objects.equals(this.workloadIdentityAudience, googleConfig.workloadIdentityAudience) && - Objects.equals(this.workloadIdentityServiceAccount, googleConfig.workloadIdentityServiceAccount); + return Objects.equals(this.workloadIdentityAudience, googleConfig.workloadIdentityAudience) + && Objects.equals(this.workloadIdentityServiceAccount, + googleConfig.workloadIdentityServiceAccount); } @Override @@ -126,15 +143,16 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GoogleConfig {\n"); - sb.append(" workloadIdentityAudience: ").append(toIndentedString(workloadIdentityAudience)).append("\n"); - sb.append(" workloadIdentityServiceAccount: ").append(toIndentedString(workloadIdentityServiceAccount)).append("\n"); + sb.append(" workloadIdentityAudience: ").append(toIndentedString(workloadIdentityAudience)) + .append("\n"); + sb.append(" workloadIdentityServiceAccount: ") + .append(toIndentedString(workloadIdentityServiceAccount)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -149,7 +167,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("workloadIdentityAudience", "workloadIdentityServiceAccount")); + openapiFields = new HashSet( + Arrays.asList("workloadIdentityAudience", "workloadIdentityServiceAccount")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -162,54 +181,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to GoogleConfig */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!GoogleConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in GoogleConfig is not found in the empty JSON string", GoogleConfig.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!GoogleConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in GoogleConfig is not found in the empty JSON string", + GoogleConfig.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!GoogleConfig.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GoogleConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("workloadIdentityAudience") != null && !jsonObj.get("workloadIdentityAudience").isJsonNull()) && !jsonObj.get("workloadIdentityAudience").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workloadIdentityAudience` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workloadIdentityAudience").toString())); - } - if ((jsonObj.get("workloadIdentityServiceAccount") != null && !jsonObj.get("workloadIdentityServiceAccount").isJsonNull()) && !jsonObj.get("workloadIdentityServiceAccount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workloadIdentityServiceAccount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workloadIdentityServiceAccount").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!GoogleConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `GoogleConfig` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("workloadIdentityAudience") != null + && !jsonObj.get("workloadIdentityAudience").isJsonNull()) + && !jsonObj.get("workloadIdentityAudience").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workloadIdentityAudience` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workloadIdentityAudience").toString())); + } + if ((jsonObj.get("workloadIdentityServiceAccount") != null + && !jsonObj.get("workloadIdentityServiceAccount").isJsonNull()) + && !jsonObj.get("workloadIdentityServiceAccount").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workloadIdentityServiceAccount` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workloadIdentityServiceAccount").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!GoogleConfig.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'GoogleConfig' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(GoogleConfig.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, GoogleConfig value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public GoogleConfig read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!GoogleConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GoogleConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(GoogleConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GoogleConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GoogleConfig read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/GoogleExportOutputType.java b/src/main/java/com/formkiq/client/model/GoogleExportOutputType.java index 38f653627..2e8b70aac 100644 --- a/src/main/java/com/formkiq/client/model/GoogleExportOutputType.java +++ b/src/main/java/com/formkiq/client/model/GoogleExportOutputType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,7 +37,7 @@ */ @JsonAdapter(GoogleExportOutputType.Adapter.class) public enum GoogleExportOutputType { - + PDF("PDF"); private String value; @@ -59,7 +66,8 @@ public static GoogleExportOutputType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final GoogleExportOutputType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final GoogleExportOutputType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/Group.java b/src/main/java/com/formkiq/client/model/Group.java index f462c49d2..63da5394d 100644 --- a/src/main/java/com/formkiq/client/model/Group.java +++ b/src/main/java/com/formkiq/client/model/Group.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * Group */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Group { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -72,8 +81,7 @@ public class Group { @javax.annotation.Nullable private String lastModifiedDate; - public Group() { - } + public Group() {} public Group name(@javax.annotation.Nullable String name) { this.name = name; @@ -82,6 +90,7 @@ public Group name(@javax.annotation.Nullable String name) { /** * Name of group + * * @return name */ @javax.annotation.Nullable @@ -101,6 +110,7 @@ public Group description(@javax.annotation.Nullable String description) { /** * Description of group + * * @return description */ @javax.annotation.Nullable @@ -120,6 +130,7 @@ public Group insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted timestamp of group + * * @return insertedDate */ @javax.annotation.Nullable @@ -139,6 +150,7 @@ public Group lastModifiedDate(@javax.annotation.Nullable String lastModifiedDate /** * Last nodified timestamp of group + * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -161,10 +173,10 @@ public boolean equals(Object o) { return false; } Group group = (Group) o; - return Objects.equals(this.name, group.name) && - Objects.equals(this.description, group.description) && - Objects.equals(this.insertedDate, group.insertedDate) && - Objects.equals(this.lastModifiedDate, group.lastModifiedDate); + return Objects.equals(this.name, group.name) + && Objects.equals(this.description, group.description) + && Objects.equals(this.insertedDate, group.insertedDate) + && Objects.equals(this.lastModifiedDate, group.lastModifiedDate); } @Override @@ -185,8 +197,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -201,7 +212,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "description", "insertedDate", "lastModifiedDate")); + openapiFields = new HashSet( + Arrays.asList("name", "description", "insertedDate", "lastModifiedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -214,60 +226,76 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Group */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Group.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Group is not found in the empty JSON string", Group.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Group.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Group is not found in the empty JSON string", + Group.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Group.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Group` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Group.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Group` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) + && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("lastModifiedDate").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Group.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Group' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Group.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Group value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Group read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Group.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Group' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Group.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Group value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Group read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java b/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java index d79693069..180038160 100644 --- a/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java +++ b/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * IndexFolderMoveRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class IndexFolderMoveRequest { public static final String SERIALIZED_NAME_SOURCE = "source"; @SerializedName(SERIALIZED_NAME_SOURCE) @@ -62,8 +71,7 @@ public class IndexFolderMoveRequest { @javax.annotation.Nullable private String target; - public IndexFolderMoveRequest() { - } + public IndexFolderMoveRequest() {} public IndexFolderMoveRequest source(@javax.annotation.Nullable String source) { this.source = source; @@ -72,6 +80,7 @@ public IndexFolderMoveRequest source(@javax.annotation.Nullable String source) { /** * Source path + * * @return source */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public IndexFolderMoveRequest target(@javax.annotation.Nullable String target) { /** * Target path + * * @return target */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } IndexFolderMoveRequest indexFolderMoveRequest = (IndexFolderMoveRequest) o; - return Objects.equals(this.source, indexFolderMoveRequest.source) && - Objects.equals(this.target, indexFolderMoveRequest.target); + return Objects.equals(this.source, indexFolderMoveRequest.source) + && Objects.equals(this.target, indexFolderMoveRequest.target); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to IndexFolderMoveRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IndexFolderMoveRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IndexFolderMoveRequest is not found in the empty JSON string", IndexFolderMoveRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!IndexFolderMoveRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in IndexFolderMoveRequest is not found in the empty JSON string", + IndexFolderMoveRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IndexFolderMoveRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IndexFolderMoveRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) && !jsonObj.get("source").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); - } - if ((jsonObj.get("target") != null && !jsonObj.get("target").isJsonNull()) && !jsonObj.get("target").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `target` to be a primitive type in the JSON string but got `%s`", jsonObj.get("target").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!IndexFolderMoveRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `IndexFolderMoveRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("source") != null && !jsonObj.get("source").isJsonNull()) + && !jsonObj.get("source").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `source` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("source").toString())); + } + if ((jsonObj.get("target") != null && !jsonObj.get("target").isJsonNull()) + && !jsonObj.get("target").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `target` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("target").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!IndexFolderMoveRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IndexFolderMoveRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(IndexFolderMoveRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IndexFolderMoveRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IndexFolderMoveRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!IndexFolderMoveRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'IndexFolderMoveRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(IndexFolderMoveRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, IndexFolderMoveRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public IndexFolderMoveRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java b/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java index 05bfe856c..edd274f68 100644 --- a/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java +++ b/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * IndexFolderMoveResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class IndexFolderMoveResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public IndexFolderMoveResponse() { - } + public IndexFolderMoveResponse() {} public IndexFolderMoveResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public IndexFolderMoveResponse message(@javax.annotation.Nullable String message /** * Folder move message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to IndexFolderMoveResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IndexFolderMoveResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IndexFolderMoveResponse is not found in the empty JSON string", IndexFolderMoveResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!IndexFolderMoveResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in IndexFolderMoveResponse is not found in the empty JSON string", + IndexFolderMoveResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IndexFolderMoveResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IndexFolderMoveResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!IndexFolderMoveResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `IndexFolderMoveResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!IndexFolderMoveResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IndexFolderMoveResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(IndexFolderMoveResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IndexFolderMoveResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IndexFolderMoveResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!IndexFolderMoveResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'IndexFolderMoveResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(IndexFolderMoveResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, IndexFolderMoveResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public IndexFolderMoveResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/IndexSearch.java b/src/main/java/com/formkiq/client/model/IndexSearch.java index 8629e0d4e..2de4d1322 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearch.java +++ b/src/main/java/com/formkiq/client/model/IndexSearch.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * IndexSearch */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class IndexSearch { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @javax.annotation.Nullable private String value; - public IndexSearch() { - } + public IndexSearch() {} public IndexSearch value(@javax.annotation.Nullable String value) { this.value = value; @@ -67,6 +75,7 @@ public IndexSearch value(@javax.annotation.Nullable String value) { /** * value of index + * * @return value */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to IndexSearch */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IndexSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IndexSearch is not found in the empty JSON string", IndexSearch.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!IndexSearch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in IndexSearch is not found in the empty JSON string", + IndexSearch.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IndexSearch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IndexSearch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!IndexSearch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `IndexSearch` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!IndexSearch.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IndexSearch' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(IndexSearch.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IndexSearch value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IndexSearch read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!IndexSearch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'IndexSearch' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(IndexSearch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, IndexSearch value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public IndexSearch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/IndexSearchRequest.java b/src/main/java/com/formkiq/client/model/IndexSearchRequest.java index 18993781f..894ed1bfa 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearchRequest.java +++ b/src/main/java/com/formkiq/client/model/IndexSearchRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * IndexSearchRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class IndexSearchRequest { public static final String SERIALIZED_NAME_INDEX_TYPE = "indexType"; @SerializedName(SERIALIZED_NAME_INDEX_TYPE) @javax.annotation.Nullable private String indexType; - public IndexSearchRequest() { - } + public IndexSearchRequest() {} public IndexSearchRequest indexType(@javax.annotation.Nullable String indexType) { this.indexType = indexType; @@ -67,6 +75,7 @@ public IndexSearchRequest indexType(@javax.annotation.Nullable String indexType) /** * The name of the index to search + * * @return indexType */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to IndexSearchRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IndexSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IndexSearchRequest is not found in the empty JSON string", IndexSearchRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!IndexSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in IndexSearchRequest is not found in the empty JSON string", + IndexSearchRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IndexSearchRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IndexSearchRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) && !jsonObj.get("indexType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexType").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!IndexSearchRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `IndexSearchRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("indexType") != null && !jsonObj.get("indexType").isJsonNull()) + && !jsonObj.get("indexType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `indexType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("indexType").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!IndexSearchRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IndexSearchRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(IndexSearchRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IndexSearchRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IndexSearchRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!IndexSearchRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'IndexSearchRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(IndexSearchRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, IndexSearchRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public IndexSearchRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/IndexSearchResponse.java b/src/main/java/com/formkiq/client/model/IndexSearchResponse.java index b008a99a4..12a2e983e 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearchResponse.java +++ b/src/main/java/com/formkiq/client/model/IndexSearchResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * IndexSearchResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class IndexSearchResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) @@ -70,8 +79,7 @@ public class IndexSearchResponse { @javax.annotation.Nullable private List values = new ArrayList<>(); - public IndexSearchResponse() { - } + public IndexSearchResponse() {} public IndexSearchResponse next(@javax.annotation.Nullable String next) { this.next = next; @@ -80,6 +88,7 @@ public IndexSearchResponse next(@javax.annotation.Nullable String next) { /** * Next page of results token + * * @return next */ @javax.annotation.Nullable @@ -99,6 +108,7 @@ public IndexSearchResponse previous(@javax.annotation.Nullable String previous) /** * Previous page of results token + * * @return previous */ @javax.annotation.Nullable @@ -126,6 +136,7 @@ public IndexSearchResponse addValuesItem(IndexSearch valuesItem) { /** * List of search results + * * @return values */ @javax.annotation.Nullable @@ -148,9 +159,9 @@ public boolean equals(Object o) { return false; } IndexSearchResponse indexSearchResponse = (IndexSearchResponse) o; - return Objects.equals(this.next, indexSearchResponse.next) && - Objects.equals(this.previous, indexSearchResponse.previous) && - Objects.equals(this.values, indexSearchResponse.values); + return Objects.equals(this.next, indexSearchResponse.next) + && Objects.equals(this.previous, indexSearchResponse.previous) + && Objects.equals(this.values, indexSearchResponse.values); } @Override @@ -170,8 +181,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -199,68 +209,81 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to IndexSearchResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!IndexSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in IndexSearchResponse is not found in the empty JSON string", IndexSearchResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!IndexSearchResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in IndexSearchResponse is not found in the empty JSON string", + IndexSearchResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!IndexSearchResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `IndexSearchResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!IndexSearchResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `IndexSearchResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) && !jsonObj.get("next").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `next` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next").toString())); - } - if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) && !jsonObj.get("previous").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", jsonObj.get("previous").toString())); - } - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull()) { - JsonArray jsonArrayvalues = jsonObj.getAsJsonArray("values"); - if (jsonArrayvalues != null) { - // ensure the json data is an array - if (!jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); - } - - // validate the optional field `values` (array) - for (int i = 0; i < jsonArrayvalues.size(); i++) { - IndexSearch.validateJsonElement(jsonArrayvalues.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("next") != null && !jsonObj.get("next").isJsonNull()) + && !jsonObj.get("next").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `next` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("next").toString())); + } + if ((jsonObj.get("previous") != null && !jsonObj.get("previous").isJsonNull()) + && !jsonObj.get("previous").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `previous` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("previous").toString())); + } + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull()) { + JsonArray jsonArrayvalues = jsonObj.getAsJsonArray("values"); + if (jsonArrayvalues != null) { + // ensure the json data is an array + if (!jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `values` to be an array in the JSON string but got `%s`", + jsonObj.get("values").toString())); } + + // validate the optional field `values` (array) + for (int i = 0; i < jsonArrayvalues.size(); i++) { + IndexSearch.validateJsonElement(jsonArrayvalues.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!IndexSearchResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'IndexSearchResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(IndexSearchResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, IndexSearchResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public IndexSearchResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!IndexSearchResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'IndexSearchResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(IndexSearchResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, IndexSearchResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public IndexSearchResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/LocaleInfo.java b/src/main/java/com/formkiq/client/model/LocaleInfo.java index 2191dc9b8..66e6db99a 100644 --- a/src/main/java/com/formkiq/client/model/LocaleInfo.java +++ b/src/main/java/com/formkiq/client/model/LocaleInfo.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * LocaleInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class LocaleInfo { public static final String SERIALIZED_NAME_LOCALE = "locale"; @SerializedName(SERIALIZED_NAME_LOCALE) @javax.annotation.Nullable private String locale; - public LocaleInfo() { - } + public LocaleInfo() {} public LocaleInfo locale(@javax.annotation.Nullable String locale) { this.locale = locale; @@ -67,6 +75,7 @@ public LocaleInfo locale(@javax.annotation.Nullable String locale) { /** * Name of Locale + * * @return locale */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to LocaleInfo */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!LocaleInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in LocaleInfo is not found in the empty JSON string", LocaleInfo.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!LocaleInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in LocaleInfo is not found in the empty JSON string", + LocaleInfo.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!LocaleInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `LocaleInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) && !jsonObj.get("locale").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locale").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!LocaleInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `LocaleInfo` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) + && !jsonObj.get("locale").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("locale").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!LocaleInfo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LocaleInfo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(LocaleInfo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, LocaleInfo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public LocaleInfo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!LocaleInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LocaleInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(LocaleInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LocaleInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public LocaleInfo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/LocaleResourceType.java b/src/main/java/com/formkiq/client/model/LocaleResourceType.java index 4ecb6712a..ab4909612 100644 --- a/src/main/java/com/formkiq/client/model/LocaleResourceType.java +++ b/src/main/java/com/formkiq/client/model/LocaleResourceType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(LocaleResourceType.Adapter.class) public enum LocaleResourceType { - + INTERFACE("INTERFACE"), - + SCHEMA("SCHEMA"), - + CLASSIFICATION("CLASSIFICATION"); private String value; @@ -63,7 +70,8 @@ public static LocaleResourceType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final LocaleResourceType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final LocaleResourceType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/MalwareEngine.java b/src/main/java/com/formkiq/client/model/MalwareEngine.java index 8c473aca5..337073bc2 100644 --- a/src/main/java/com/formkiq/client/model/MalwareEngine.java +++ b/src/main/java/com/formkiq/client/model/MalwareEngine.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,7 +37,7 @@ */ @JsonAdapter(MalwareEngine.Adapter.class) public enum MalwareEngine { - + CLAM_AV("CLAM_AV"); private String value; @@ -59,7 +66,8 @@ public static MalwareEngine fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final MalwareEngine enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final MalwareEngine enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/MalwareScanResult.java b/src/main/java/com/formkiq/client/model/MalwareScanResult.java index 9eb7f5595..dec1100a9 100644 --- a/src/main/java/com/formkiq/client/model/MalwareScanResult.java +++ b/src/main/java/com/formkiq/client/model/MalwareScanResult.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * MalwareScanResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class MalwareScanResult { public static final String SERIALIZED_NAME_SCAN_STATUS = "scanStatus"; @SerializedName(SERIALIZED_NAME_SCAN_STATUS) @@ -79,8 +88,7 @@ public class MalwareScanResult { @javax.annotation.Nullable private String scannedDate; - public MalwareScanResult() { - } + public MalwareScanResult() {} public MalwareScanResult scanStatus(@javax.annotation.Nullable MalwareScanStatus scanStatus) { this.scanStatus = scanStatus; @@ -89,6 +97,7 @@ public MalwareScanResult scanStatus(@javax.annotation.Nullable MalwareScanStatus /** * Get scanStatus + * * @return scanStatus */ @javax.annotation.Nullable @@ -108,6 +117,7 @@ public MalwareScanResult scanEngine(@javax.annotation.Nullable MalwareEngine sca /** * Get scanEngine + * * @return scanEngine */ @javax.annotation.Nullable @@ -127,6 +137,7 @@ public MalwareScanResult s3version(@javax.annotation.Nullable String s3version) /** * Document storage version + * * @return s3version */ @javax.annotation.Nullable @@ -146,6 +157,7 @@ public MalwareScanResult scanMessage(@javax.annotation.Nullable String scanMessa /** * Document Malware scan message + * * @return scanMessage */ @javax.annotation.Nullable @@ -165,6 +177,7 @@ public MalwareScanResult scannedDate(@javax.annotation.Nullable String scannedDa /** * Scanned Timestamp + * * @return scannedDate */ @javax.annotation.Nullable @@ -187,11 +200,11 @@ public boolean equals(Object o) { return false; } MalwareScanResult malwareScanResult = (MalwareScanResult) o; - return Objects.equals(this.scanStatus, malwareScanResult.scanStatus) && - Objects.equals(this.scanEngine, malwareScanResult.scanEngine) && - Objects.equals(this.s3version, malwareScanResult.s3version) && - Objects.equals(this.scanMessage, malwareScanResult.scanMessage) && - Objects.equals(this.scannedDate, malwareScanResult.scannedDate); + return Objects.equals(this.scanStatus, malwareScanResult.scanStatus) + && Objects.equals(this.scanEngine, malwareScanResult.scanEngine) + && Objects.equals(this.s3version, malwareScanResult.s3version) + && Objects.equals(this.scanMessage, malwareScanResult.scanMessage) + && Objects.equals(this.scannedDate, malwareScanResult.scannedDate); } @Override @@ -213,8 +226,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -229,7 +241,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("scanStatus", "scanEngine", "s3version", "scanMessage", "scannedDate")); + openapiFields = new HashSet( + Arrays.asList("scanStatus", "scanEngine", "s3version", "scanMessage", "scannedDate")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -242,65 +255,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to MalwareScanResult */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MalwareScanResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MalwareScanResult is not found in the empty JSON string", MalwareScanResult.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!MalwareScanResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in MalwareScanResult is not found in the empty JSON string", + MalwareScanResult.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MalwareScanResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `MalwareScanResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `scanStatus` - if (jsonObj.get("scanStatus") != null && !jsonObj.get("scanStatus").isJsonNull()) { - MalwareScanStatus.validateJsonElement(jsonObj.get("scanStatus")); - } - // validate the optional field `scanEngine` - if (jsonObj.get("scanEngine") != null && !jsonObj.get("scanEngine").isJsonNull()) { - MalwareEngine.validateJsonElement(jsonObj.get("scanEngine")); - } - if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) && !jsonObj.get("s3version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("s3version").toString())); - } - if ((jsonObj.get("scanMessage") != null && !jsonObj.get("scanMessage").isJsonNull()) && !jsonObj.get("scanMessage").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scanMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scanMessage").toString())); - } - if ((jsonObj.get("scannedDate") != null && !jsonObj.get("scannedDate").isJsonNull()) && !jsonObj.get("scannedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scannedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scannedDate").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MalwareScanResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `MalwareScanResult` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `scanStatus` + if (jsonObj.get("scanStatus") != null && !jsonObj.get("scanStatus").isJsonNull()) { + MalwareScanStatus.validateJsonElement(jsonObj.get("scanStatus")); + } + // validate the optional field `scanEngine` + if (jsonObj.get("scanEngine") != null && !jsonObj.get("scanEngine").isJsonNull()) { + MalwareEngine.validateJsonElement(jsonObj.get("scanEngine")); + } + if ((jsonObj.get("s3version") != null && !jsonObj.get("s3version").isJsonNull()) + && !jsonObj.get("s3version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `s3version` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("s3version").toString())); + } + if ((jsonObj.get("scanMessage") != null && !jsonObj.get("scanMessage").isJsonNull()) + && !jsonObj.get("scanMessage").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `scanMessage` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("scanMessage").toString())); + } + if ((jsonObj.get("scannedDate") != null && !jsonObj.get("scannedDate").isJsonNull()) + && !jsonObj.get("scannedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `scannedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("scannedDate").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!MalwareScanResult.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MalwareScanResult' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MalwareScanResult.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MalwareScanResult value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public MalwareScanResult read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!MalwareScanResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MalwareScanResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(MalwareScanResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MalwareScanResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public MalwareScanResult read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/MalwareScanStatus.java b/src/main/java/com/formkiq/client/model/MalwareScanStatus.java index b883bb211..4d87fbcfb 100644 --- a/src/main/java/com/formkiq/client/model/MalwareScanStatus.java +++ b/src/main/java/com/formkiq/client/model/MalwareScanStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(MalwareScanStatus.Adapter.class) public enum MalwareScanStatus { - + MALICIOUS("MALICIOUS"), - + ERROR("ERROR"), - + CLEAN("CLEAN"); private String value; @@ -63,7 +70,8 @@ public static MalwareScanStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final MalwareScanStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final MalwareScanStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/Mapping.java b/src/main/java/com/formkiq/client/model/Mapping.java index 46036de1d..2469ca45d 100644 --- a/src/main/java/com/formkiq/client/model/Mapping.java +++ b/src/main/java/com/formkiq/client/model/Mapping.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * Mapping */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Mapping { public static final String SERIALIZED_NAME_MAPPING_ID = "mappingId"; @SerializedName(SERIALIZED_NAME_MAPPING_ID) @@ -75,8 +84,7 @@ public class Mapping { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public Mapping() { - } + public Mapping() {} public Mapping mappingId(@javax.annotation.Nullable String mappingId) { this.mappingId = mappingId; @@ -85,6 +93,7 @@ public Mapping mappingId(@javax.annotation.Nullable String mappingId) { /** * Mapping Identifier + * * @return mappingId */ @javax.annotation.Nullable @@ -104,6 +113,7 @@ public Mapping name(@javax.annotation.Nullable String name) { /** * Name of Mapping + * * @return name */ @javax.annotation.Nullable @@ -123,6 +133,7 @@ public Mapping description(@javax.annotation.Nullable String description) { /** * Description of Mapping + * * @return description */ @javax.annotation.Nullable @@ -150,6 +161,7 @@ public Mapping addAttributesItem(MappingAttribute attributesItem) { /** * List of attributes + * * @return attributes */ @javax.annotation.Nullable @@ -172,10 +184,10 @@ public boolean equals(Object o) { return false; } Mapping mapping = (Mapping) o; - return Objects.equals(this.mappingId, mapping.mappingId) && - Objects.equals(this.name, mapping.name) && - Objects.equals(this.description, mapping.description) && - Objects.equals(this.attributes, mapping.attributes); + return Objects.equals(this.mappingId, mapping.mappingId) + && Objects.equals(this.name, mapping.name) + && Objects.equals(this.description, mapping.description) + && Objects.equals(this.attributes, mapping.attributes); } @Override @@ -196,8 +208,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -212,7 +223,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("mappingId", "name", "description", "attributes")); + openapiFields = + new HashSet(Arrays.asList("mappingId", "name", "description", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -225,71 +237,87 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Mapping */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Mapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Mapping is not found in the empty JSON string", Mapping.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Mapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Mapping is not found in the empty JSON string", + Mapping.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Mapping.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Mapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) && !jsonObj.get("mappingId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mappingId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Mapping.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Mapping` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - MappingAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("mappingId") != null && !jsonObj.get("mappingId").isJsonNull()) + && !jsonObj.get("mappingId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `mappingId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("mappingId").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + MappingAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Mapping.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Mapping' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Mapping.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Mapping value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Mapping read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Mapping.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Mapping' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Mapping.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Mapping value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Mapping read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/MappingAttribute.java b/src/main/java/com/formkiq/client/model/MappingAttribute.java index 9621df78b..b79d6db8f 100644 --- a/src/main/java/com/formkiq/client/model/MappingAttribute.java +++ b/src/main/java/com/formkiq/client/model/MappingAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * MappingAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class MappingAttribute { public static final String SERIALIZED_NAME_ATTRIBUTE_KEY = "attributeKey"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_KEY) @@ -97,8 +106,7 @@ public class MappingAttribute { @javax.annotation.Nullable private String validationRegex; - public MappingAttribute() { - } + public MappingAttribute() {} public MappingAttribute attributeKey(@javax.annotation.Nullable String attributeKey) { this.attributeKey = attributeKey; @@ -107,6 +115,7 @@ public MappingAttribute attributeKey(@javax.annotation.Nullable String attribute /** * Attribute Key + * * @return attributeKey */ @javax.annotation.Nullable @@ -119,13 +128,15 @@ public void setAttributeKey(@javax.annotation.Nullable String attributeKey) { } - public MappingAttribute sourceType(@javax.annotation.Nullable MappingAttributeSourceType sourceType) { + public MappingAttribute sourceType( + @javax.annotation.Nullable MappingAttributeSourceType sourceType) { this.sourceType = sourceType; return this; } /** * Get sourceType + * * @return sourceType */ @javax.annotation.Nullable @@ -145,6 +156,7 @@ public MappingAttribute defaultValue(@javax.annotation.Nullable String defaultVa /** * Default value + * * @return defaultValue */ @javax.annotation.Nullable @@ -172,6 +184,7 @@ public MappingAttribute addDefaultValuesItem(String defaultValuesItem) { /** * Default values + * * @return defaultValues */ @javax.annotation.Nullable @@ -199,6 +212,7 @@ public MappingAttribute addLabelTextsItem(String labelTextsItem) { /** * Get labelTexts + * * @return labelTexts */ @javax.annotation.Nullable @@ -211,13 +225,15 @@ public void setLabelTexts(@javax.annotation.Nullable List labelTexts) { } - public MappingAttribute labelMatchingType(@javax.annotation.Nullable MappingAttributeLabelMatchingType labelMatchingType) { + public MappingAttribute labelMatchingType( + @javax.annotation.Nullable MappingAttributeLabelMatchingType labelMatchingType) { this.labelMatchingType = labelMatchingType; return this; } /** * Get labelMatchingType + * * @return labelMatchingType */ @javax.annotation.Nullable @@ -225,18 +241,21 @@ public MappingAttributeLabelMatchingType getLabelMatchingType() { return labelMatchingType; } - public void setLabelMatchingType(@javax.annotation.Nullable MappingAttributeLabelMatchingType labelMatchingType) { + public void setLabelMatchingType( + @javax.annotation.Nullable MappingAttributeLabelMatchingType labelMatchingType) { this.labelMatchingType = labelMatchingType; } - public MappingAttribute metadataField(@javax.annotation.Nullable MappingAttributeMetadataField metadataField) { + public MappingAttribute metadataField( + @javax.annotation.Nullable MappingAttributeMetadataField metadataField) { this.metadataField = metadataField; return this; } /** * Get metadataField + * * @return metadataField */ @javax.annotation.Nullable @@ -244,7 +263,8 @@ public MappingAttributeMetadataField getMetadataField() { return metadataField; } - public void setMetadataField(@javax.annotation.Nullable MappingAttributeMetadataField metadataField) { + public void setMetadataField( + @javax.annotation.Nullable MappingAttributeMetadataField metadataField) { this.metadataField = metadataField; } @@ -256,6 +276,7 @@ public MappingAttribute validationRegex(@javax.annotation.Nullable String valida /** * Attribute Value Regex Validation + * * @return validationRegex */ @javax.annotation.Nullable @@ -278,19 +299,20 @@ public boolean equals(Object o) { return false; } MappingAttribute mappingAttribute = (MappingAttribute) o; - return Objects.equals(this.attributeKey, mappingAttribute.attributeKey) && - Objects.equals(this.sourceType, mappingAttribute.sourceType) && - Objects.equals(this.defaultValue, mappingAttribute.defaultValue) && - Objects.equals(this.defaultValues, mappingAttribute.defaultValues) && - Objects.equals(this.labelTexts, mappingAttribute.labelTexts) && - Objects.equals(this.labelMatchingType, mappingAttribute.labelMatchingType) && - Objects.equals(this.metadataField, mappingAttribute.metadataField) && - Objects.equals(this.validationRegex, mappingAttribute.validationRegex); + return Objects.equals(this.attributeKey, mappingAttribute.attributeKey) + && Objects.equals(this.sourceType, mappingAttribute.sourceType) + && Objects.equals(this.defaultValue, mappingAttribute.defaultValue) + && Objects.equals(this.defaultValues, mappingAttribute.defaultValues) + && Objects.equals(this.labelTexts, mappingAttribute.labelTexts) + && Objects.equals(this.labelMatchingType, mappingAttribute.labelMatchingType) + && Objects.equals(this.metadataField, mappingAttribute.metadataField) + && Objects.equals(this.validationRegex, mappingAttribute.validationRegex); } @Override public int hashCode() { - return Objects.hash(attributeKey, sourceType, defaultValue, defaultValues, labelTexts, labelMatchingType, metadataField, validationRegex); + return Objects.hash(attributeKey, sourceType, defaultValue, defaultValues, labelTexts, + labelMatchingType, metadataField, validationRegex); } @Override @@ -310,8 +332,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -326,7 +347,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("attributeKey", "sourceType", "defaultValue", "defaultValues", "labelTexts", "labelMatchingType", "metadataField", "validationRegex")); + openapiFields = new HashSet(Arrays.asList("attributeKey", "sourceType", "defaultValue", + "defaultValues", "labelTexts", "labelMatchingType", "metadataField", "validationRegex")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -339,77 +361,98 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to MappingAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MappingAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MappingAttribute is not found in the empty JSON string", MappingAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!MappingAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in MappingAttribute is not found in the empty JSON string", + MappingAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MappingAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `MappingAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); - } - // validate the optional field `sourceType` - if (jsonObj.get("sourceType") != null && !jsonObj.get("sourceType").isJsonNull()) { - MappingAttributeSourceType.validateJsonElement(jsonObj.get("sourceType")); - } - if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) && !jsonObj.get("defaultValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("defaultValue").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() && !jsonObj.get("defaultValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", jsonObj.get("defaultValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("labelTexts") != null && !jsonObj.get("labelTexts").isJsonNull() && !jsonObj.get("labelTexts").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `labelTexts` to be an array in the JSON string but got `%s`", jsonObj.get("labelTexts").toString())); - } - // validate the optional field `labelMatchingType` - if (jsonObj.get("labelMatchingType") != null && !jsonObj.get("labelMatchingType").isJsonNull()) { - MappingAttributeLabelMatchingType.validateJsonElement(jsonObj.get("labelMatchingType")); - } - // validate the optional field `metadataField` - if (jsonObj.get("metadataField") != null && !jsonObj.get("metadataField").isJsonNull()) { - MappingAttributeMetadataField.validateJsonElement(jsonObj.get("metadataField")); - } - if ((jsonObj.get("validationRegex") != null && !jsonObj.get("validationRegex").isJsonNull()) && !jsonObj.get("validationRegex").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `validationRegex` to be a primitive type in the JSON string but got `%s`", jsonObj.get("validationRegex").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MappingAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `MappingAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) + && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("attributeKey").toString())); + } + // validate the optional field `sourceType` + if (jsonObj.get("sourceType") != null && !jsonObj.get("sourceType").isJsonNull()) { + MappingAttributeSourceType.validateJsonElement(jsonObj.get("sourceType")); + } + if ((jsonObj.get("defaultValue") != null && !jsonObj.get("defaultValue").isJsonNull()) + && !jsonObj.get("defaultValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `defaultValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("defaultValue").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("defaultValues") != null && !jsonObj.get("defaultValues").isJsonNull() + && !jsonObj.get("defaultValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `defaultValues` to be an array in the JSON string but got `%s`", + jsonObj.get("defaultValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("labelTexts") != null && !jsonObj.get("labelTexts").isJsonNull() + && !jsonObj.get("labelTexts").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `labelTexts` to be an array in the JSON string but got `%s`", + jsonObj.get("labelTexts").toString())); + } + // validate the optional field `labelMatchingType` + if (jsonObj.get("labelMatchingType") != null + && !jsonObj.get("labelMatchingType").isJsonNull()) { + MappingAttributeLabelMatchingType.validateJsonElement(jsonObj.get("labelMatchingType")); + } + // validate the optional field `metadataField` + if (jsonObj.get("metadataField") != null && !jsonObj.get("metadataField").isJsonNull()) { + MappingAttributeMetadataField.validateJsonElement(jsonObj.get("metadataField")); + } + if ((jsonObj.get("validationRegex") != null && !jsonObj.get("validationRegex").isJsonNull()) + && !jsonObj.get("validationRegex").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `validationRegex` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("validationRegex").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!MappingAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MappingAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MappingAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MappingAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public MappingAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!MappingAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MappingAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(MappingAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MappingAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public MappingAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/MappingAttributeLabelMatchingType.java b/src/main/java/com/formkiq/client/model/MappingAttributeLabelMatchingType.java index 1294bf192..0fc694894 100644 --- a/src/main/java/com/formkiq/client/model/MappingAttributeLabelMatchingType.java +++ b/src/main/java/com/formkiq/client/model/MappingAttributeLabelMatchingType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,13 +37,13 @@ */ @JsonAdapter(MappingAttributeLabelMatchingType.Adapter.class) public enum MappingAttributeLabelMatchingType { - + FUZZY("FUZZY"), - + EXACT("EXACT"), - + BEGINS_WITH("BEGINS_WITH"), - + CONTAINS("CONTAINS"); private String value; @@ -65,7 +72,8 @@ public static MappingAttributeLabelMatchingType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final MappingAttributeLabelMatchingType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, + final MappingAttributeLabelMatchingType enumeration) throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/MappingAttributeMetadataField.java b/src/main/java/com/formkiq/client/model/MappingAttributeMetadataField.java index 9d52fb4a9..a05ad0796 100644 --- a/src/main/java/com/formkiq/client/model/MappingAttributeMetadataField.java +++ b/src/main/java/com/formkiq/client/model/MappingAttributeMetadataField.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(MappingAttributeMetadataField.Adapter.class) public enum MappingAttributeMetadataField { - + USERNAME("USERNAME"), - + PATH("PATH"), - + CONTENT_TYPE("CONTENT_TYPE"); private String value; @@ -63,7 +70,8 @@ public static MappingAttributeMetadataField fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final MappingAttributeMetadataField enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final MappingAttributeMetadataField enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/MappingAttributeSourceType.java b/src/main/java/com/formkiq/client/model/MappingAttributeSourceType.java index cd0db09f9..70a11123d 100644 --- a/src/main/java/com/formkiq/client/model/MappingAttributeSourceType.java +++ b/src/main/java/com/formkiq/client/model/MappingAttributeSourceType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,17 +37,17 @@ */ @JsonAdapter(MappingAttributeSourceType.Adapter.class) public enum MappingAttributeSourceType { - + CONTENT("CONTENT"), - + CONTENT_KEY_VALUE("CONTENT_KEY_VALUE"), - + METADATA("METADATA"), - + MANUAL("MANUAL"), - + DATA_CLASSIFICATION("DATA_CLASSIFICATION"), - + MALWARE_SCAN("MALWARE_SCAN"); private String value; @@ -69,7 +76,8 @@ public static MappingAttributeSourceType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final MappingAttributeSourceType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final MappingAttributeSourceType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/MatchDocumentTag.java b/src/main/java/com/formkiq/client/model/MatchDocumentTag.java index 3019c7716..9e1cb9c2a 100644 --- a/src/main/java/com/formkiq/client/model/MatchDocumentTag.java +++ b/src/main/java/com/formkiq/client/model/MatchDocumentTag.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * Match Document Tag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class MatchDocumentTag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -67,8 +76,7 @@ public class MatchDocumentTag { @javax.annotation.Nullable private String eq; - public MatchDocumentTag() { - } + public MatchDocumentTag() {} public MatchDocumentTag key(@javax.annotation.Nonnull String key) { this.key = key; @@ -77,6 +85,7 @@ public MatchDocumentTag key(@javax.annotation.Nonnull String key) { /** * Tag key + * * @return key */ @javax.annotation.Nonnull @@ -96,6 +105,7 @@ public MatchDocumentTag beginsWith(@javax.annotation.Nullable String beginsWith) /** * Searches for strings that begin with + * * @return beginsWith */ @javax.annotation.Nullable @@ -115,6 +125,7 @@ public MatchDocumentTag eq(@javax.annotation.Nullable String eq) { /** * Searches for strings that eq + * * @return eq */ @javax.annotation.Nullable @@ -137,9 +148,9 @@ public boolean equals(Object o) { return false; } MatchDocumentTag matchDocumentTag = (MatchDocumentTag) o; - return Objects.equals(this.key, matchDocumentTag.key) && - Objects.equals(this.beginsWith, matchDocumentTag.beginsWith) && - Objects.equals(this.eq, matchDocumentTag.eq); + return Objects.equals(this.key, matchDocumentTag.key) + && Objects.equals(this.beginsWith, matchDocumentTag.beginsWith) + && Objects.equals(this.eq, matchDocumentTag.eq); } @Override @@ -159,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,64 +198,79 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to MatchDocumentTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!MatchDocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in MatchDocumentTag is not found in the empty JSON string", MatchDocumentTag.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!MatchDocumentTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in MatchDocumentTag is not found in the empty JSON string", + MatchDocumentTag.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!MatchDocumentTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `MatchDocumentTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!MatchDocumentTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `MatchDocumentTag` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : MatchDocumentTag.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) && !jsonObj.get("beginsWith").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", jsonObj.get("beginsWith").toString())); - } - if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) && !jsonObj.get("eq").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eq").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : MatchDocumentTag.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("beginsWith") != null && !jsonObj.get("beginsWith").isJsonNull()) + && !jsonObj.get("beginsWith").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `beginsWith` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("beginsWith").toString())); + } + if ((jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) + && !jsonObj.get("eq").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `eq` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("eq").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!MatchDocumentTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'MatchDocumentTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(MatchDocumentTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, MatchDocumentTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public MatchDocumentTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!MatchDocumentTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MatchDocumentTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(MatchDocumentTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MatchDocumentTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public MatchDocumentTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ModelCase.java b/src/main/java/com/formkiq/client/model/ModelCase.java index 025e42d52..40a1d38a1 100644 --- a/src/main/java/com/formkiq/client/model/ModelCase.java +++ b/src/main/java/com/formkiq/client/model/ModelCase.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * ModelCase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ModelCase { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; @SerializedName(SERIALIZED_NAME_CASE_ID) @@ -120,8 +129,7 @@ public class ModelCase { @javax.annotation.Nullable private String userId; - public ModelCase() { - } + public ModelCase() {} public ModelCase caseId(@javax.annotation.Nullable String caseId) { this.caseId = caseId; @@ -130,6 +138,7 @@ public ModelCase caseId(@javax.annotation.Nullable String caseId) { /** * Case Identifier + * * @return caseId */ @javax.annotation.Nullable @@ -149,6 +158,7 @@ public ModelCase caseNumber(@javax.annotation.Nullable String caseNumber) { /** * Case Number + * * @return caseNumber */ @javax.annotation.Nullable @@ -168,6 +178,7 @@ public ModelCase documentNumber(@javax.annotation.Nullable String documentNumber /** * Document Number + * * @return documentNumber */ @javax.annotation.Nullable @@ -187,6 +198,7 @@ public ModelCase plannedStartDate(@javax.annotation.Nullable String plannedStart /** * Planned Start Date + * * @return plannedStartDate */ @javax.annotation.Nullable @@ -206,6 +218,7 @@ public ModelCase startDate(@javax.annotation.Nullable String startDate) { /** * Start Date + * * @return startDate */ @javax.annotation.Nullable @@ -225,6 +238,7 @@ public ModelCase endDate(@javax.annotation.Nullable String endDate) { /** * End Date + * * @return endDate */ @javax.annotation.Nullable @@ -244,6 +258,7 @@ public ModelCase dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date + * * @return dueDate */ @javax.annotation.Nullable @@ -263,6 +278,7 @@ public ModelCase insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -282,6 +298,7 @@ public ModelCase name(@javax.annotation.Nullable String name) { /** * Case Name + * * @return name */ @javax.annotation.Nullable @@ -301,6 +318,7 @@ public ModelCase description(@javax.annotation.Nullable String description) { /** * Case Description + * * @return description */ @javax.annotation.Nullable @@ -328,6 +346,7 @@ public ModelCase putMetadataItem(String key, Object metadataItem) { /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -347,6 +366,7 @@ public ModelCase status(@javax.annotation.Nullable CaseStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -366,6 +386,7 @@ public ModelCase userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -388,24 +409,24 @@ public boolean equals(Object o) { return false; } ModelCase _case = (ModelCase) o; - return Objects.equals(this.caseId, _case.caseId) && - Objects.equals(this.caseNumber, _case.caseNumber) && - Objects.equals(this.documentNumber, _case.documentNumber) && - Objects.equals(this.plannedStartDate, _case.plannedStartDate) && - Objects.equals(this.startDate, _case.startDate) && - Objects.equals(this.endDate, _case.endDate) && - Objects.equals(this.dueDate, _case.dueDate) && - Objects.equals(this.insertedDate, _case.insertedDate) && - Objects.equals(this.name, _case.name) && - Objects.equals(this.description, _case.description) && - Objects.equals(this.metadata, _case.metadata) && - Objects.equals(this.status, _case.status) && - Objects.equals(this.userId, _case.userId); + return Objects.equals(this.caseId, _case.caseId) + && Objects.equals(this.caseNumber, _case.caseNumber) + && Objects.equals(this.documentNumber, _case.documentNumber) + && Objects.equals(this.plannedStartDate, _case.plannedStartDate) + && Objects.equals(this.startDate, _case.startDate) + && Objects.equals(this.endDate, _case.endDate) + && Objects.equals(this.dueDate, _case.dueDate) + && Objects.equals(this.insertedDate, _case.insertedDate) + && Objects.equals(this.name, _case.name) + && Objects.equals(this.description, _case.description) + && Objects.equals(this.metadata, _case.metadata) + && Objects.equals(this.status, _case.status) && Objects.equals(this.userId, _case.userId); } @Override public int hashCode() { - return Objects.hash(caseId, caseNumber, documentNumber, plannedStartDate, startDate, endDate, dueDate, insertedDate, name, description, metadata, status, userId); + return Objects.hash(caseId, caseNumber, documentNumber, plannedStartDate, startDate, endDate, + dueDate, insertedDate, name, description, metadata, status, userId); } @Override @@ -430,8 +451,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -446,7 +466,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("caseId", "caseNumber", "documentNumber", "plannedStartDate", "startDate", "endDate", "dueDate", "insertedDate", "name", "description", "metadata", "status", "userId")); + openapiFields = new HashSet(Arrays.asList("caseId", "caseNumber", "documentNumber", + "plannedStartDate", "startDate", "endDate", "dueDate", "insertedDate", "name", + "description", "metadata", "status", "userId")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -459,85 +481,123 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ModelCase */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ModelCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ModelCase is not found in the empty JSON string", ModelCase.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!ModelCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in ModelCase is not found in the empty JSON string", + ModelCase.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ModelCase.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ModelCase` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) && !jsonObj.get("caseId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("caseId").toString())); - } - if ((jsonObj.get("caseNumber") != null && !jsonObj.get("caseNumber").isJsonNull()) && !jsonObj.get("caseNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caseNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("caseNumber").toString())); - } - if ((jsonObj.get("documentNumber") != null && !jsonObj.get("documentNumber").isJsonNull()) && !jsonObj.get("documentNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentNumber").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - CaseStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ModelCase.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `ModelCase` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) + && !jsonObj.get("caseId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("caseId").toString())); + } + if ((jsonObj.get("caseNumber") != null && !jsonObj.get("caseNumber").isJsonNull()) + && !jsonObj.get("caseNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `caseNumber` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("caseNumber").toString())); + } + if ((jsonObj.get("documentNumber") != null && !jsonObj.get("documentNumber").isJsonNull()) + && !jsonObj.get("documentNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentNumber` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentNumber").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) + && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) + && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) + && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) + && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("dueDate").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + CaseStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ModelCase.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ModelCase' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ModelCase.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ModelCase value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ModelCase read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ModelCase.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ModelCase' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(ModelCase.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ModelCase value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ModelCase read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Nigo.java b/src/main/java/com/formkiq/client/model/Nigo.java index eb976019a..dcb9feec2 100644 --- a/src/main/java/com/formkiq/client/model/Nigo.java +++ b/src/main/java/com/formkiq/client/model/Nigo.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * Nigo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Nigo { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; @SerializedName(SERIALIZED_NAME_NIGO_ID) @@ -110,8 +119,7 @@ public class Nigo { @javax.annotation.Nullable private Map metadata = new HashMap<>(); - public Nigo() { - } + public Nigo() {} public Nigo nigoId(@javax.annotation.Nullable String nigoId) { this.nigoId = nigoId; @@ -120,6 +128,7 @@ public Nigo nigoId(@javax.annotation.Nullable String nigoId) { /** * Nigo Identifier + * * @return nigoId */ @javax.annotation.Nullable @@ -139,6 +148,7 @@ public Nigo insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -158,6 +168,7 @@ public Nigo name(@javax.annotation.Nullable String name) { /** * Name of Nigo + * * @return name */ @javax.annotation.Nullable @@ -177,6 +188,7 @@ public Nigo description(@javax.annotation.Nullable String description) { /** * Description of Nigo + * * @return description */ @javax.annotation.Nullable @@ -196,6 +208,7 @@ public Nigo plannedStartDate(@javax.annotation.Nullable String plannedStartDate) /** * Planned Start Date + * * @return plannedStartDate */ @javax.annotation.Nullable @@ -215,6 +228,7 @@ public Nigo startDate(@javax.annotation.Nullable String startDate) { /** * Start Date + * * @return startDate */ @javax.annotation.Nullable @@ -234,6 +248,7 @@ public Nigo endDate(@javax.annotation.Nullable String endDate) { /** * End Date + * * @return endDate */ @javax.annotation.Nullable @@ -253,6 +268,7 @@ public Nigo dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date + * * @return dueDate */ @javax.annotation.Nullable @@ -272,6 +288,7 @@ public Nigo userId(@javax.annotation.Nullable String userId) { /** * User who added Nigo + * * @return userId */ @javax.annotation.Nullable @@ -291,6 +308,7 @@ public Nigo status(@javax.annotation.Nullable NigoStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -318,6 +336,7 @@ public Nigo putMetadataItem(String key, Object metadataItem) { /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -340,22 +359,21 @@ public boolean equals(Object o) { return false; } Nigo nigo = (Nigo) o; - return Objects.equals(this.nigoId, nigo.nigoId) && - Objects.equals(this.insertedDate, nigo.insertedDate) && - Objects.equals(this.name, nigo.name) && - Objects.equals(this.description, nigo.description) && - Objects.equals(this.plannedStartDate, nigo.plannedStartDate) && - Objects.equals(this.startDate, nigo.startDate) && - Objects.equals(this.endDate, nigo.endDate) && - Objects.equals(this.dueDate, nigo.dueDate) && - Objects.equals(this.userId, nigo.userId) && - Objects.equals(this.status, nigo.status) && - Objects.equals(this.metadata, nigo.metadata); + return Objects.equals(this.nigoId, nigo.nigoId) + && Objects.equals(this.insertedDate, nigo.insertedDate) + && Objects.equals(this.name, nigo.name) + && Objects.equals(this.description, nigo.description) + && Objects.equals(this.plannedStartDate, nigo.plannedStartDate) + && Objects.equals(this.startDate, nigo.startDate) + && Objects.equals(this.endDate, nigo.endDate) && Objects.equals(this.dueDate, nigo.dueDate) + && Objects.equals(this.userId, nigo.userId) && Objects.equals(this.status, nigo.status) + && Objects.equals(this.metadata, nigo.metadata); } @Override public int hashCode() { - return Objects.hash(nigoId, insertedDate, name, description, plannedStartDate, startDate, endDate, dueDate, userId, status, metadata); + return Objects.hash(nigoId, insertedDate, name, description, plannedStartDate, startDate, + endDate, dueDate, userId, status, metadata); } @Override @@ -378,8 +396,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -394,7 +411,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("nigoId", "insertedDate", "name", "description", "plannedStartDate", "startDate", "endDate", "dueDate", "userId", "status", "metadata")); + openapiFields = + new HashSet(Arrays.asList("nigoId", "insertedDate", "name", "description", + "plannedStartDate", "startDate", "endDate", "dueDate", "userId", "status", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -407,79 +426,110 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Nigo */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Nigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Nigo is not found in the empty JSON string", Nigo.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Nigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Nigo is not found in the empty JSON string", + Nigo.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Nigo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Nigo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) && !jsonObj.get("nigoId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nigoId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - NigoStatus.validateJsonElement(jsonObj.get("status")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Nigo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Nigo` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) + && !jsonObj.get("nigoId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("nigoId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) + && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) + && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) + && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) + && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("dueDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + NigoStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Nigo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Nigo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Nigo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Nigo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Nigo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Nigo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Nigo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Nigo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Nigo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Nigo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/NigoStatus.java b/src/main/java/com/formkiq/client/model/NigoStatus.java index b10ba23d8..9e444880c 100644 --- a/src/main/java/com/formkiq/client/model/NigoStatus.java +++ b/src/main/java/com/formkiq/client/model/NigoStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,23 +37,23 @@ */ @JsonAdapter(NigoStatus.Adapter.class) public enum NigoStatus { - + NEW("NEW"), - + ASSIGNED("ASSIGNED"), - + IN_PROGRESS("IN_PROGRESS"), - + ON_HOLD("ON_HOLD"), - + ESCALATED("ESCALATED"), - + RESOLVED("RESOLVED"), - + CLOSED("CLOSED"), - + UNDER_REVIEW("UNDER_REVIEW"), - + AWAITING_CLIENT_RESPONSE("AWAITING_CLIENT_RESPONSE"); private String value; @@ -75,7 +82,8 @@ public static NigoStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final NigoStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final NigoStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/OcrConfig.java b/src/main/java/com/formkiq/client/model/OcrConfig.java index 0bd596b60..9ae2fb771 100644 --- a/src/main/java/com/formkiq/client/model/OcrConfig.java +++ b/src/main/java/com/formkiq/client/model/OcrConfig.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * OcrConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OcrConfig { public static final String SERIALIZED_NAME_MAX_PAGES_PER_TRANSACTION = "maxPagesPerTransaction"; @SerializedName(SERIALIZED_NAME_MAX_PAGES_PER_TRANSACTION) @@ -63,16 +72,17 @@ public class OcrConfig { @javax.annotation.Nullable private BigDecimal maxTransactions; - public OcrConfig() { - } + public OcrConfig() {} - public OcrConfig maxPagesPerTransaction(@javax.annotation.Nullable BigDecimal maxPagesPerTransaction) { + public OcrConfig maxPagesPerTransaction( + @javax.annotation.Nullable BigDecimal maxPagesPerTransaction) { this.maxPagesPerTransaction = maxPagesPerTransaction; return this; } /** * Max number of OCR pages (-1 for unlimited) + * * @return maxPagesPerTransaction */ @javax.annotation.Nullable @@ -80,7 +90,8 @@ public BigDecimal getMaxPagesPerTransaction() { return maxPagesPerTransaction; } - public void setMaxPagesPerTransaction(@javax.annotation.Nullable BigDecimal maxPagesPerTransaction) { + public void setMaxPagesPerTransaction( + @javax.annotation.Nullable BigDecimal maxPagesPerTransaction) { this.maxPagesPerTransaction = maxPagesPerTransaction; } @@ -92,6 +103,7 @@ public OcrConfig maxTransactions(@javax.annotation.Nullable BigDecimal maxTransa /** * Max number of OCR actions that can be created (-1 for unlimited) + * * @return maxTransactions */ @javax.annotation.Nullable @@ -114,8 +126,8 @@ public boolean equals(Object o) { return false; } OcrConfig ocrConfig = (OcrConfig) o; - return Objects.equals(this.maxPagesPerTransaction, ocrConfig.maxPagesPerTransaction) && - Objects.equals(this.maxTransactions, ocrConfig.maxTransactions); + return Objects.equals(this.maxPagesPerTransaction, ocrConfig.maxPagesPerTransaction) + && Objects.equals(this.maxTransactions, ocrConfig.maxTransactions); } @Override @@ -127,15 +139,15 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OcrConfig {\n"); - sb.append(" maxPagesPerTransaction: ").append(toIndentedString(maxPagesPerTransaction)).append("\n"); + sb.append(" maxPagesPerTransaction: ").append(toIndentedString(maxPagesPerTransaction)) + .append("\n"); sb.append(" maxTransactions: ").append(toIndentedString(maxTransactions)).append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,48 +175,53 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OcrConfig */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OcrConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OcrConfig is not found in the empty JSON string", OcrConfig.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OcrConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OcrConfig is not found in the empty JSON string", + OcrConfig.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OcrConfig.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OcrConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OcrConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OcrConfig` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OcrConfig.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OcrConfig' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OcrConfig.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OcrConfig value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OcrConfig read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OcrConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OcrConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OcrConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OcrConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OcrConfig read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OcrEngine.java b/src/main/java/com/formkiq/client/model/OcrEngine.java index d12223e5c..525cf7644 100644 --- a/src/main/java/com/formkiq/client/model/OcrEngine.java +++ b/src/main/java/com/formkiq/client/model/OcrEngine.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(OcrEngine.Adapter.class) public enum OcrEngine { - + TESSERACT("TESSERACT"), - + TEXTRACT("TEXTRACT"); private String value; diff --git a/src/main/java/com/formkiq/client/model/OcrKeyValues.java b/src/main/java/com/formkiq/client/model/OcrKeyValues.java index 50e32f246..79024cb44 100644 --- a/src/main/java/com/formkiq/client/model/OcrKeyValues.java +++ b/src/main/java/com/formkiq/client/model/OcrKeyValues.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * OcrKeyValues */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OcrKeyValues { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -64,8 +73,7 @@ public class OcrKeyValues { @javax.annotation.Nullable private List values = new ArrayList<>(); - public OcrKeyValues() { - } + public OcrKeyValues() {} public OcrKeyValues key(@javax.annotation.Nullable String key) { this.key = key; @@ -74,6 +82,7 @@ public OcrKeyValues key(@javax.annotation.Nullable String key) { /** * Ocr Key + * * @return key */ @javax.annotation.Nullable @@ -101,6 +110,7 @@ public OcrKeyValues addValuesItem(String valuesItem) { /** * Get values + * * @return values */ @javax.annotation.Nullable @@ -123,8 +133,8 @@ public boolean equals(Object o) { return false; } OcrKeyValues ocrKeyValues = (OcrKeyValues) o; - return Objects.equals(this.key, ocrKeyValues.key) && - Objects.equals(this.values, ocrKeyValues.values); + return Objects.equals(this.key, ocrKeyValues.key) + && Objects.equals(this.values, ocrKeyValues.values); } @Override @@ -143,8 +153,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,55 +181,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OcrKeyValues */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OcrKeyValues.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OcrKeyValues is not found in the empty JSON string", OcrKeyValues.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OcrKeyValues.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OcrKeyValues is not found in the empty JSON string", + OcrKeyValues.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OcrKeyValues.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OcrKeyValues` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OcrKeyValues.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OcrKeyValues` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() + && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `values` to be an array in the JSON string but got `%s`", + jsonObj.get("values").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OcrKeyValues.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OcrKeyValues' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OcrKeyValues.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OcrKeyValues value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OcrKeyValues read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OcrKeyValues.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OcrKeyValues' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OcrKeyValues.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OcrKeyValues value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OcrKeyValues read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OcrOutputType.java b/src/main/java/com/formkiq/client/model/OcrOutputType.java index dbe7de766..542ec5388 100644 --- a/src/main/java/com/formkiq/client/model/OcrOutputType.java +++ b/src/main/java/com/formkiq/client/model/OcrOutputType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,7 +37,7 @@ */ @JsonAdapter(OcrOutputType.Adapter.class) public enum OcrOutputType { - + CSV("CSV"); private String value; @@ -59,7 +66,8 @@ public static OcrOutputType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final OcrOutputType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final OcrOutputType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/OcrTable.java b/src/main/java/com/formkiq/client/model/OcrTable.java index f109b9a98..b60ee6ae2 100644 --- a/src/main/java/com/formkiq/client/model/OcrTable.java +++ b/src/main/java/com/formkiq/client/model/OcrTable.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * OcrTable */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OcrTable { public static final String SERIALIZED_NAME_HEADERS = "headers"; @SerializedName(SERIALIZED_NAME_HEADERS) @@ -65,8 +74,7 @@ public class OcrTable { @javax.annotation.Nullable private List> data = new ArrayList<>(); - public OcrTable() { - } + public OcrTable() {} public OcrTable headers(@javax.annotation.Nullable List headers) { this.headers = headers; @@ -83,6 +91,7 @@ public OcrTable addHeadersItem(String headersItem) { /** * Get headers + * * @return headers */ @javax.annotation.Nullable @@ -110,6 +119,7 @@ public OcrTable addDataItem(List dataItem) { /** * Get data + * * @return data */ @javax.annotation.Nullable @@ -132,8 +142,8 @@ public boolean equals(Object o) { return false; } OcrTable ocrTable = (OcrTable) o; - return Objects.equals(this.headers, ocrTable.headers) && - Objects.equals(this.data, ocrTable.data); + return Objects.equals(this.headers, ocrTable.headers) + && Objects.equals(this.data, ocrTable.data); } @Override @@ -152,8 +162,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -181,56 +190,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OcrTable */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OcrTable.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OcrTable is not found in the empty JSON string", OcrTable.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OcrTable.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OcrTable is not found in the empty JSON string", + OcrTable.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OcrTable.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OcrTable` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("headers") != null && !jsonObj.get("headers").isJsonNull() && !jsonObj.get("headers").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `headers` to be an array in the JSON string but got `%s`", jsonObj.get("headers").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull() && !jsonObj.get("data").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OcrTable.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OcrTable` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("headers") != null && !jsonObj.get("headers").isJsonNull() + && !jsonObj.get("headers").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `headers` to be an array in the JSON string but got `%s`", + jsonObj.get("headers").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull() + && !jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `data` to be an array in the JSON string but got `%s`", + jsonObj.get("data").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OcrTable.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OcrTable' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OcrTable.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OcrTable value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OcrTable read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OcrTable.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OcrTable' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OcrTable.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OcrTable value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OcrTable read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OcrTableData.java b/src/main/java/com/formkiq/client/model/OcrTableData.java index 3361039ad..e2e221928 100644 --- a/src/main/java/com/formkiq/client/model/OcrTableData.java +++ b/src/main/java/com/formkiq/client/model/OcrTableData.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * OcrTableData */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OcrTableData { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @javax.annotation.Nullable private String value; - public OcrTableData() { - } + public OcrTableData() {} public OcrTableData value(@javax.annotation.Nullable String value) { this.value = value; @@ -67,6 +75,7 @@ public OcrTableData value(@javax.annotation.Nullable String value) { /** * Table Value + * * @return value */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OcrTableData */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OcrTableData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OcrTableData is not found in the empty JSON string", OcrTableData.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OcrTableData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OcrTableData is not found in the empty JSON string", + OcrTableData.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OcrTableData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OcrTableData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OcrTableData.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OcrTableData` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OcrTableData.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OcrTableData' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OcrTableData.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OcrTableData value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OcrTableData read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OcrTableData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OcrTableData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OcrTableData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OcrTableData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OcrTableData read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicy.java b/src/main/java/com/formkiq/client/model/OpaPolicy.java index c5201b204..f21f2a54b 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicy.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicy.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * OpaPolicy */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicy { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -62,8 +71,7 @@ public class OpaPolicy { @javax.annotation.Nullable private String policy; - public OpaPolicy() { - } + public OpaPolicy() {} public OpaPolicy siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -72,6 +80,7 @@ public OpaPolicy siteId(@javax.annotation.Nullable String siteId) { /** * SiteId to apply OPA Policy to + * * @return siteId */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public OpaPolicy policy(@javax.annotation.Nullable String policy) { /** * OPA Policy in REGO format + * * @return policy */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } OpaPolicy opaPolicy = (OpaPolicy) o; - return Objects.equals(this.siteId, opaPolicy.siteId) && - Objects.equals(this.policy, opaPolicy.policy); + return Objects.equals(this.siteId, opaPolicy.siteId) + && Objects.equals(this.policy, opaPolicy.policy); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicy */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicy is not found in the empty JSON string", OpaPolicy.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicy is not found in the empty JSON string", + OpaPolicy.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("policy") != null && !jsonObj.get("policy").isJsonNull()) && !jsonObj.get("policy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policy").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicy` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("policy") != null && !jsonObj.get("policy").isJsonNull()) + && !jsonObj.get("policy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `policy` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("policy").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicy.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicy' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicy.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicy value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicy read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java index dc94d4fe4..0d280794b 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -58,7 +65,9 @@ /** * OpaPolicyAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyAttribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -105,8 +114,7 @@ public class OpaPolicyAttribute { @javax.annotation.Nullable private OpaPolicyAttributeNotIn notIn; - public OpaPolicyAttribute() { - } + public OpaPolicyAttribute() {} public OpaPolicyAttribute key(@javax.annotation.Nullable String key) { this.key = key; @@ -115,6 +123,7 @@ public OpaPolicyAttribute key(@javax.annotation.Nullable String key) { /** * Attribute Key + * * @return key */ @javax.annotation.Nullable @@ -134,6 +143,7 @@ public OpaPolicyAttribute eq(@javax.annotation.Nullable OpaPolicyAttributeEq eq) /** * Get eq + * * @return eq */ @javax.annotation.Nullable @@ -153,6 +163,7 @@ public OpaPolicyAttribute gt(@javax.annotation.Nullable OpaPolicyAttributeGt gt) /** * Get gt + * * @return gt */ @javax.annotation.Nullable @@ -172,6 +183,7 @@ public OpaPolicyAttribute gte(@javax.annotation.Nullable OpaPolicyAttributeGte g /** * Get gte + * * @return gte */ @javax.annotation.Nullable @@ -191,6 +203,7 @@ public OpaPolicyAttribute lt(@javax.annotation.Nullable OpaPolicyAttributeLt lt) /** * Get lt + * * @return lt */ @javax.annotation.Nullable @@ -210,6 +223,7 @@ public OpaPolicyAttribute lte(@javax.annotation.Nullable OpaPolicyAttributeLte l /** * Get lte + * * @return lte */ @javax.annotation.Nullable @@ -229,6 +243,7 @@ public OpaPolicyAttribute neq(@javax.annotation.Nullable OpaPolicyAttributeNeq n /** * Get neq + * * @return neq */ @javax.annotation.Nullable @@ -248,6 +263,7 @@ public OpaPolicyAttribute in(@javax.annotation.Nullable OpaPolicyAttributeIn in) /** * Get in + * * @return in */ @javax.annotation.Nullable @@ -267,6 +283,7 @@ public OpaPolicyAttribute notIn(@javax.annotation.Nullable OpaPolicyAttributeNot /** * Get notIn + * * @return notIn */ @javax.annotation.Nullable @@ -289,15 +306,15 @@ public boolean equals(Object o) { return false; } OpaPolicyAttribute opaPolicyAttribute = (OpaPolicyAttribute) o; - return Objects.equals(this.key, opaPolicyAttribute.key) && - Objects.equals(this.eq, opaPolicyAttribute.eq) && - Objects.equals(this.gt, opaPolicyAttribute.gt) && - Objects.equals(this.gte, opaPolicyAttribute.gte) && - Objects.equals(this.lt, opaPolicyAttribute.lt) && - Objects.equals(this.lte, opaPolicyAttribute.lte) && - Objects.equals(this.neq, opaPolicyAttribute.neq) && - Objects.equals(this.in, opaPolicyAttribute.in) && - Objects.equals(this.notIn, opaPolicyAttribute.notIn); + return Objects.equals(this.key, opaPolicyAttribute.key) + && Objects.equals(this.eq, opaPolicyAttribute.eq) + && Objects.equals(this.gt, opaPolicyAttribute.gt) + && Objects.equals(this.gte, opaPolicyAttribute.gte) + && Objects.equals(this.lt, opaPolicyAttribute.lt) + && Objects.equals(this.lte, opaPolicyAttribute.lte) + && Objects.equals(this.neq, opaPolicyAttribute.neq) + && Objects.equals(this.in, opaPolicyAttribute.in) + && Objects.equals(this.notIn, opaPolicyAttribute.notIn); } @Override @@ -323,8 +340,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -339,7 +355,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("key", "eq", "gt", "gte", "lt", "lte", "neq", "in", "notIn")); + openapiFields = new HashSet( + Arrays.asList("key", "eq", "gt", "gte", "lt", "lte", "neq", "in", "notIn")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -352,83 +369,91 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttribute is not found in the empty JSON string", OpaPolicyAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyAttribute is not found in the empty JSON string", + OpaPolicyAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - // validate the optional field `eq` - if (jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) { - OpaPolicyAttributeEq.validateJsonElement(jsonObj.get("eq")); - } - // validate the optional field `gt` - if (jsonObj.get("gt") != null && !jsonObj.get("gt").isJsonNull()) { - OpaPolicyAttributeGt.validateJsonElement(jsonObj.get("gt")); - } - // validate the optional field `gte` - if (jsonObj.get("gte") != null && !jsonObj.get("gte").isJsonNull()) { - OpaPolicyAttributeGte.validateJsonElement(jsonObj.get("gte")); - } - // validate the optional field `lt` - if (jsonObj.get("lt") != null && !jsonObj.get("lt").isJsonNull()) { - OpaPolicyAttributeLt.validateJsonElement(jsonObj.get("lt")); - } - // validate the optional field `lte` - if (jsonObj.get("lte") != null && !jsonObj.get("lte").isJsonNull()) { - OpaPolicyAttributeLte.validateJsonElement(jsonObj.get("lte")); - } - // validate the optional field `neq` - if (jsonObj.get("neq") != null && !jsonObj.get("neq").isJsonNull()) { - OpaPolicyAttributeNeq.validateJsonElement(jsonObj.get("neq")); - } - // validate the optional field `in` - if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull()) { - OpaPolicyAttributeIn.validateJsonElement(jsonObj.get("in")); - } - // validate the optional field `notIn` - if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull()) { - OpaPolicyAttributeNotIn.validateJsonElement(jsonObj.get("notIn")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + // validate the optional field `eq` + if (jsonObj.get("eq") != null && !jsonObj.get("eq").isJsonNull()) { + OpaPolicyAttributeEq.validateJsonElement(jsonObj.get("eq")); + } + // validate the optional field `gt` + if (jsonObj.get("gt") != null && !jsonObj.get("gt").isJsonNull()) { + OpaPolicyAttributeGt.validateJsonElement(jsonObj.get("gt")); + } + // validate the optional field `gte` + if (jsonObj.get("gte") != null && !jsonObj.get("gte").isJsonNull()) { + OpaPolicyAttributeGte.validateJsonElement(jsonObj.get("gte")); + } + // validate the optional field `lt` + if (jsonObj.get("lt") != null && !jsonObj.get("lt").isJsonNull()) { + OpaPolicyAttributeLt.validateJsonElement(jsonObj.get("lt")); + } + // validate the optional field `lte` + if (jsonObj.get("lte") != null && !jsonObj.get("lte").isJsonNull()) { + OpaPolicyAttributeLte.validateJsonElement(jsonObj.get("lte")); + } + // validate the optional field `neq` + if (jsonObj.get("neq") != null && !jsonObj.get("neq").isJsonNull()) { + OpaPolicyAttributeNeq.validateJsonElement(jsonObj.get("neq")); + } + // validate the optional field `in` + if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull()) { + OpaPolicyAttributeIn.validateJsonElement(jsonObj.get("in")); + } + // validate the optional field `notIn` + if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull()) { + OpaPolicyAttributeNotIn.validateJsonElement(jsonObj.get("notIn")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java index 22ae64a1d..6286a4884 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * Attribute EQ criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyAttributeEq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; @SerializedName(SERIALIZED_NAME_STRING_VALUE) @@ -74,8 +83,7 @@ public class OpaPolicyAttributeEq { @javax.annotation.Nullable private OpaPolicyAttributeInput input; - public OpaPolicyAttributeEq() { - } + public OpaPolicyAttributeEq() {} public OpaPolicyAttributeEq stringValue(@javax.annotation.Nullable String stringValue) { this.stringValue = stringValue; @@ -84,6 +92,7 @@ public OpaPolicyAttributeEq stringValue(@javax.annotation.Nullable String string /** * The value to compare the Attribute Key value to + * * @return stringValue */ @javax.annotation.Nullable @@ -103,6 +112,7 @@ public OpaPolicyAttributeEq numberValue(@javax.annotation.Nullable BigDecimal nu /** * The value to compare the Attribute Key value to + * * @return numberValue */ @javax.annotation.Nullable @@ -122,6 +132,7 @@ public OpaPolicyAttributeEq booleanValue(@javax.annotation.Nullable Boolean bool /** * The value to compare the Attribute Key value to + * * @return booleanValue */ @javax.annotation.Nullable @@ -141,6 +152,7 @@ public OpaPolicyAttributeEq input(@javax.annotation.Nullable OpaPolicyAttributeI /** * Get input + * * @return input */ @javax.annotation.Nullable @@ -163,10 +175,10 @@ public boolean equals(Object o) { return false; } OpaPolicyAttributeEq opaPolicyAttributeEq = (OpaPolicyAttributeEq) o; - return Objects.equals(this.stringValue, opaPolicyAttributeEq.stringValue) && - Objects.equals(this.numberValue, opaPolicyAttributeEq.numberValue) && - Objects.equals(this.booleanValue, opaPolicyAttributeEq.booleanValue) && - Objects.equals(this.input, opaPolicyAttributeEq.input); + return Objects.equals(this.stringValue, opaPolicyAttributeEq.stringValue) + && Objects.equals(this.numberValue, opaPolicyAttributeEq.numberValue) + && Objects.equals(this.booleanValue, opaPolicyAttributeEq.booleanValue) + && Objects.equals(this.input, opaPolicyAttributeEq.input); } @Override @@ -187,8 +199,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -203,7 +214,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("stringValue", "numberValue", "booleanValue", "input")); + openapiFields = + new HashSet(Arrays.asList("stringValue", "numberValue", "booleanValue", "input")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -216,55 +228,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeEq */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeEq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeEq is not found in the empty JSON string", OpaPolicyAttributeEq.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyAttributeEq.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyAttributeEq is not found in the empty JSON string", + OpaPolicyAttributeEq.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeEq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeEq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); - } - // validate the optional field `input` - if (jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) { - OpaPolicyAttributeInput.validateJsonElement(jsonObj.get("input")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeEq.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeEq` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) + && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stringValue").toString())); + } + // validate the optional field `input` + if (jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) { + OpaPolicyAttributeInput.validateJsonElement(jsonObj.get("input")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeEq.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeEq' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeEq.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeEq value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeEq read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeEq.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeEq' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeEq.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeEq value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeEq read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java index 1acebc034..6e26dd967 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * Attribute greater than criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyAttributeGt { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; @SerializedName(SERIALIZED_NAME_NUMBER_VALUE) @javax.annotation.Nullable private BigDecimal numberValue; - public OpaPolicyAttributeGt() { - } + public OpaPolicyAttributeGt() {} public OpaPolicyAttributeGt numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; @@ -68,6 +76,7 @@ public OpaPolicyAttributeGt numberValue(@javax.annotation.Nullable BigDecimal nu /** * The value to compare the Attribute Key value to + * * @return numberValue */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,48 +145,53 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeGt */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeGt.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeGt is not found in the empty JSON string", OpaPolicyAttributeGt.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyAttributeGt.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyAttributeGt is not found in the empty JSON string", + OpaPolicyAttributeGt.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeGt.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeGt` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeGt.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeGt` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeGt.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeGt' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeGt.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeGt value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeGt read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeGt.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeGt' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeGt.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeGt value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeGt read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java index 6a6d87b57..b4caa1acc 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * Attribute greater than and equals to criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyAttributeGte { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; @SerializedName(SERIALIZED_NAME_NUMBER_VALUE) @javax.annotation.Nullable private BigDecimal numberValue; - public OpaPolicyAttributeGte() { - } + public OpaPolicyAttributeGte() {} public OpaPolicyAttributeGte numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; @@ -68,6 +76,7 @@ public OpaPolicyAttributeGte numberValue(@javax.annotation.Nullable BigDecimal n /** * The value to compare the Attribute Key value to + * * @return numberValue */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,48 +145,53 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeGte */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeGte.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeGte is not found in the empty JSON string", OpaPolicyAttributeGte.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyAttributeGte.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyAttributeGte is not found in the empty JSON string", + OpaPolicyAttributeGte.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeGte.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeGte` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeGte.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeGte` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeGte.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeGte' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeGte.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeGte value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeGte read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeGte.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeGte' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeGte.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeGte value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeGte read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java index eade387d5..3c26f7612 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,15 +59,16 @@ /** * Attribute In to criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyAttributeIn { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; @SerializedName(SERIALIZED_NAME_STRING_VALUES) @javax.annotation.Nullable private List stringValues = new ArrayList<>(); - public OpaPolicyAttributeIn() { - } + public OpaPolicyAttributeIn() {} public OpaPolicyAttributeIn stringValues(@javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; @@ -77,6 +85,7 @@ public OpaPolicyAttributeIn addStringValuesItem(String stringValuesItem) { /** * The value to compare the Attribute Key value to + * * @return stringValues */ @javax.annotation.Nullable @@ -117,8 +126,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,52 +154,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeIn */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeIn.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeIn is not found in the empty JSON string", OpaPolicyAttributeIn.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyAttributeIn.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyAttributeIn is not found in the empty JSON string", + OpaPolicyAttributeIn.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeIn.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeIn` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeIn.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeIn` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() + && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValues` to be an array in the JSON string but got `%s`", + jsonObj.get("stringValues").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeIn.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeIn' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeIn.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeIn value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeIn read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeIn.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeIn' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeIn.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeIn value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeIn read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java index 39691f02a..4482ff843 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * OpaPolicyAttributeInput */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyAttributeInput { public static final String SERIALIZED_NAME_MATCH_USERNAME = "matchUsername"; @SerializedName(SERIALIZED_NAME_MATCH_USERNAME) @javax.annotation.Nullable private Boolean matchUsername; - public OpaPolicyAttributeInput() { - } + public OpaPolicyAttributeInput() {} public OpaPolicyAttributeInput matchUsername(@javax.annotation.Nullable Boolean matchUsername) { this.matchUsername = matchUsername; @@ -67,6 +75,7 @@ public OpaPolicyAttributeInput matchUsername(@javax.annotation.Nullable Boolean /** * Match Input Username + * * @return matchUsername */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,48 +144,53 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeInput */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeInput.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeInput is not found in the empty JSON string", OpaPolicyAttributeInput.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyAttributeInput.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyAttributeInput is not found in the empty JSON string", + OpaPolicyAttributeInput.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeInput.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeInput` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeInput.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeInput` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeInput.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeInput' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeInput.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeInput value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeInput read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeInput.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeInput' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeInput.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeInput value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeInput read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java index bbcea7a4c..d6c3ef3c4 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * Attribute less than criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyAttributeLt { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; @SerializedName(SERIALIZED_NAME_NUMBER_VALUE) @javax.annotation.Nullable private BigDecimal numberValue; - public OpaPolicyAttributeLt() { - } + public OpaPolicyAttributeLt() {} public OpaPolicyAttributeLt numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; @@ -68,6 +76,7 @@ public OpaPolicyAttributeLt numberValue(@javax.annotation.Nullable BigDecimal nu /** * The value to compare the Attribute Key value to + * * @return numberValue */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,48 +145,53 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeLt */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeLt.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeLt is not found in the empty JSON string", OpaPolicyAttributeLt.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyAttributeLt.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyAttributeLt is not found in the empty JSON string", + OpaPolicyAttributeLt.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeLt.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeLt` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeLt.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeLt` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeLt.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeLt' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeLt.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeLt value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeLt read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeLt.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeLt' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeLt.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeLt value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeLt read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java index ec71bc04c..352cdd319 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * Attribute less than and equals to criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyAttributeLte { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; @SerializedName(SERIALIZED_NAME_NUMBER_VALUE) @javax.annotation.Nullable private BigDecimal numberValue; - public OpaPolicyAttributeLte() { - } + public OpaPolicyAttributeLte() {} public OpaPolicyAttributeLte numberValue(@javax.annotation.Nullable BigDecimal numberValue) { this.numberValue = numberValue; @@ -68,6 +76,7 @@ public OpaPolicyAttributeLte numberValue(@javax.annotation.Nullable BigDecimal n /** * The value to compare the Attribute Key value to + * * @return numberValue */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,48 +145,53 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeLte */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeLte.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeLte is not found in the empty JSON string", OpaPolicyAttributeLte.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyAttributeLte.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyAttributeLte is not found in the empty JSON string", + OpaPolicyAttributeLte.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeLte.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeLte` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeLte.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeLte` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeLte.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeLte' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeLte.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeLte value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeLte read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeLte.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeLte' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeLte.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeLte value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeLte read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java index 8ab49c178..dcdd145d0 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * Attribute not equal to criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyAttributeNeq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; @SerializedName(SERIALIZED_NAME_STRING_VALUE) @javax.annotation.Nullable private String stringValue; - public OpaPolicyAttributeNeq() { - } + public OpaPolicyAttributeNeq() {} public OpaPolicyAttributeNeq stringValue(@javax.annotation.Nullable String stringValue) { this.stringValue = stringValue; @@ -67,6 +75,7 @@ public OpaPolicyAttributeNeq stringValue(@javax.annotation.Nullable String strin /** * The value to compare the Attribute Key value to + * * @return stringValue */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeNeq */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeNeq.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeNeq is not found in the empty JSON string", OpaPolicyAttributeNeq.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyAttributeNeq.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyAttributeNeq is not found in the empty JSON string", + OpaPolicyAttributeNeq.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeNeq.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeNeq` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) && !jsonObj.get("stringValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stringValue").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeNeq.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeNeq` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stringValue") != null && !jsonObj.get("stringValue").isJsonNull()) + && !jsonObj.get("stringValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stringValue").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeNeq.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeNeq' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeNeq.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeNeq value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeNeq read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeNeq.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeNeq' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeNeq.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeNeq value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeNeq read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java index 6713346fa..2a675124a 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,17 +59,19 @@ /** * Attribute Not In to criteria */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyAttributeNotIn { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; @SerializedName(SERIALIZED_NAME_STRING_VALUES) @javax.annotation.Nullable private List stringValues = new ArrayList<>(); - public OpaPolicyAttributeNotIn() { - } + public OpaPolicyAttributeNotIn() {} - public OpaPolicyAttributeNotIn stringValues(@javax.annotation.Nullable List stringValues) { + public OpaPolicyAttributeNotIn stringValues( + @javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; return this; } @@ -77,6 +86,7 @@ public OpaPolicyAttributeNotIn addStringValuesItem(String stringValuesItem) { /** * The value to compare the Attribute Key value to + * * @return stringValues */ @javax.annotation.Nullable @@ -117,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -146,52 +155,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyAttributeNotIn */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyAttributeNotIn.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyAttributeNotIn is not found in the empty JSON string", OpaPolicyAttributeNotIn.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyAttributeNotIn.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyAttributeNotIn is not found in the empty JSON string", + OpaPolicyAttributeNotIn.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyAttributeNotIn.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeNotIn` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyAttributeNotIn.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyAttributeNotIn` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() + && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValues` to be an array in the JSON string but got `%s`", + jsonObj.get("stringValues").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyAttributeNotIn.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyAttributeNotIn' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeNotIn.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyAttributeNotIn value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyAttributeNotIn read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyAttributeNotIn.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyAttributeNotIn' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyAttributeNotIn.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyAttributeNotIn value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyAttributeNotIn read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInput.java b/src/main/java/com/formkiq/client/model/OpaPolicyInput.java index 6d706c610..0374e95cd 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInput.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInput.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * OpaPolicyInput */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyInput { public static final String SERIALIZED_NAME_HTTP_METHOD = "httpMethod"; @SerializedName(SERIALIZED_NAME_HTTP_METHOD) @@ -64,8 +73,7 @@ public class OpaPolicyInput { @javax.annotation.Nullable private OpaPolicyInputResource resource; - public OpaPolicyInput() { - } + public OpaPolicyInput() {} public OpaPolicyInput httpMethod(@javax.annotation.Nullable OpaPolicyInputMethod httpMethod) { this.httpMethod = httpMethod; @@ -74,6 +82,7 @@ public OpaPolicyInput httpMethod(@javax.annotation.Nullable OpaPolicyInputMethod /** * Get httpMethod + * * @return httpMethod */ @javax.annotation.Nullable @@ -93,6 +102,7 @@ public OpaPolicyInput resource(@javax.annotation.Nullable OpaPolicyInputResource /** * Get resource + * * @return resource */ @javax.annotation.Nullable @@ -115,8 +125,8 @@ public boolean equals(Object o) { return false; } OpaPolicyInput opaPolicyInput = (OpaPolicyInput) o; - return Objects.equals(this.httpMethod, opaPolicyInput.httpMethod) && - Objects.equals(this.resource, opaPolicyInput.resource); + return Objects.equals(this.httpMethod, opaPolicyInput.httpMethod) + && Objects.equals(this.resource, opaPolicyInput.resource); } @Override @@ -135,8 +145,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -164,56 +173,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyInput */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyInput.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyInput is not found in the empty JSON string", OpaPolicyInput.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyInput.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyInput is not found in the empty JSON string", + OpaPolicyInput.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyInput.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyInput` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `httpMethod` - if (jsonObj.get("httpMethod") != null && !jsonObj.get("httpMethod").isJsonNull()) { - OpaPolicyInputMethod.validateJsonElement(jsonObj.get("httpMethod")); - } - // validate the optional field `resource` - if (jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) { - OpaPolicyInputResource.validateJsonElement(jsonObj.get("resource")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyInput.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyInput` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `httpMethod` + if (jsonObj.get("httpMethod") != null && !jsonObj.get("httpMethod").isJsonNull()) { + OpaPolicyInputMethod.validateJsonElement(jsonObj.get("httpMethod")); + } + // validate the optional field `resource` + if (jsonObj.get("resource") != null && !jsonObj.get("resource").isJsonNull()) { + OpaPolicyInputResource.validateJsonElement(jsonObj.get("resource")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyInput.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyInput' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInput.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyInput value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyInput read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyInput.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyInput' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInput.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyInput value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyInput read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java b/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java index 7968b5658..7156ea6d1 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * OpaPolicyInputMethod */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyInputMethod { public static final String SERIALIZED_NAME_IN = "in"; @SerializedName(SERIALIZED_NAME_IN) @@ -64,8 +73,7 @@ public class OpaPolicyInputMethod { @javax.annotation.Nullable private List notIn = new ArrayList<>(); - public OpaPolicyInputMethod() { - } + public OpaPolicyInputMethod() {} public OpaPolicyInputMethod in(@javax.annotation.Nullable List in) { this.in = in; @@ -82,6 +90,7 @@ public OpaPolicyInputMethod addInItem(String inItem) { /** * List of HTTP Methods + * * @return in */ @javax.annotation.Nullable @@ -109,6 +118,7 @@ public OpaPolicyInputMethod addNotInItem(String notInItem) { /** * List of HTTP Methods + * * @return notIn */ @javax.annotation.Nullable @@ -131,8 +141,8 @@ public boolean equals(Object o) { return false; } OpaPolicyInputMethod opaPolicyInputMethod = (OpaPolicyInputMethod) o; - return Objects.equals(this.in, opaPolicyInputMethod.in) && - Objects.equals(this.notIn, opaPolicyInputMethod.notIn); + return Objects.equals(this.in, opaPolicyInputMethod.in) + && Objects.equals(this.notIn, opaPolicyInputMethod.notIn); } @Override @@ -151,8 +161,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -180,56 +189,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyInputMethod */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyInputMethod.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyInputMethod is not found in the empty JSON string", OpaPolicyInputMethod.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyInputMethod.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyInputMethod is not found in the empty JSON string", + OpaPolicyInputMethod.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyInputMethod.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyInputMethod` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull() && !jsonObj.get("in").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `in` to be an array in the JSON string but got `%s`", jsonObj.get("in").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull() && !jsonObj.get("notIn").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notIn` to be an array in the JSON string but got `%s`", jsonObj.get("notIn").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyInputMethod.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyInputMethod` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull() + && !jsonObj.get("in").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `in` to be an array in the JSON string but got `%s`", + jsonObj.get("in").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull() + && !jsonObj.get("notIn").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `notIn` to be an array in the JSON string but got `%s`", + jsonObj.get("notIn").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyInputMethod.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyInputMethod' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInputMethod.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyInputMethod value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyInputMethod read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyInputMethod.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyInputMethod' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInputMethod.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyInputMethod value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyInputMethod read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java b/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java index a8761d7a8..a619adf83 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * OpaPolicyInputResource */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyInputResource { public static final String SERIALIZED_NAME_IN = "in"; @SerializedName(SERIALIZED_NAME_IN) @@ -64,8 +73,7 @@ public class OpaPolicyInputResource { @javax.annotation.Nullable private List notIn = new ArrayList<>(); - public OpaPolicyInputResource() { - } + public OpaPolicyInputResource() {} public OpaPolicyInputResource in(@javax.annotation.Nullable List in) { this.in = in; @@ -82,6 +90,7 @@ public OpaPolicyInputResource addInItem(String inItem) { /** * List of Resources + * * @return in */ @javax.annotation.Nullable @@ -109,6 +118,7 @@ public OpaPolicyInputResource addNotInItem(String notInItem) { /** * List of Resources + * * @return notIn */ @javax.annotation.Nullable @@ -131,8 +141,8 @@ public boolean equals(Object o) { return false; } OpaPolicyInputResource opaPolicyInputResource = (OpaPolicyInputResource) o; - return Objects.equals(this.in, opaPolicyInputResource.in) && - Objects.equals(this.notIn, opaPolicyInputResource.notIn); + return Objects.equals(this.in, opaPolicyInputResource.in) + && Objects.equals(this.notIn, opaPolicyInputResource.notIn); } @Override @@ -151,8 +161,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -180,56 +189,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyInputResource */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyInputResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyInputResource is not found in the empty JSON string", OpaPolicyInputResource.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyInputResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyInputResource is not found in the empty JSON string", + OpaPolicyInputResource.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyInputResource.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyInputResource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull() && !jsonObj.get("in").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `in` to be an array in the JSON string but got `%s`", jsonObj.get("in").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull() && !jsonObj.get("notIn").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notIn` to be an array in the JSON string but got `%s`", jsonObj.get("notIn").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyInputResource.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyInputResource` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("in") != null && !jsonObj.get("in").isJsonNull() + && !jsonObj.get("in").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `in` to be an array in the JSON string but got `%s`", + jsonObj.get("in").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("notIn") != null && !jsonObj.get("notIn").isJsonNull() + && !jsonObj.get("notIn").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `notIn` to be an array in the JSON string but got `%s`", + jsonObj.get("notIn").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyInputResource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyInputResource' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInputResource.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyInputResource value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyInputResource read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyInputResource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyInputResource' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyInputResource.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyInputResource value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyInputResource read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyItem.java b/src/main/java/com/formkiq/client/model/OpaPolicyItem.java index 397fa45a9..f377327c7 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyItem.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyItem.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * OpaPolicyItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpaPolicyItem { public static final String SERIALIZED_NAME_POLICY = "policy"; @SerializedName(SERIALIZED_NAME_POLICY) @@ -86,8 +95,7 @@ public class OpaPolicyItem { @javax.annotation.Nullable private OpaPolicyInput input; - public OpaPolicyItem() { - } + public OpaPolicyItem() {} public OpaPolicyItem policy(@javax.annotation.Nullable String policy) { this.policy = policy; @@ -96,6 +104,7 @@ public OpaPolicyItem policy(@javax.annotation.Nullable String policy) { /** * OPA Policy in REGO format + * * @return policy */ @javax.annotation.Nullable @@ -123,6 +132,7 @@ public OpaPolicyItem addAllRolesItem(String allRolesItem) { /** * User must match all roles + * * @return allRoles */ @javax.annotation.Nullable @@ -150,6 +160,7 @@ public OpaPolicyItem addAnyRolesItem(String anyRolesItem) { /** * User must match any role + * * @return anyRoles */ @javax.annotation.Nullable @@ -177,6 +188,7 @@ public OpaPolicyItem addExcludedRolesItem(String excludedRolesItem) { /** * User must NOT have these roles + * * @return excludedRoles */ @javax.annotation.Nullable @@ -204,6 +216,7 @@ public OpaPolicyItem addAttributesItem(OpaPolicyAttribute attributesItem) { /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -223,6 +236,7 @@ public OpaPolicyItem input(@javax.annotation.Nullable OpaPolicyInput input) { /** * Get input + * * @return input */ @javax.annotation.Nullable @@ -245,12 +259,12 @@ public boolean equals(Object o) { return false; } OpaPolicyItem opaPolicyItem = (OpaPolicyItem) o; - return Objects.equals(this.policy, opaPolicyItem.policy) && - Objects.equals(this.allRoles, opaPolicyItem.allRoles) && - Objects.equals(this.anyRoles, opaPolicyItem.anyRoles) && - Objects.equals(this.excludedRoles, opaPolicyItem.excludedRoles) && - Objects.equals(this.attributes, opaPolicyItem.attributes) && - Objects.equals(this.input, opaPolicyItem.input); + return Objects.equals(this.policy, opaPolicyItem.policy) + && Objects.equals(this.allRoles, opaPolicyItem.allRoles) + && Objects.equals(this.anyRoles, opaPolicyItem.anyRoles) + && Objects.equals(this.excludedRoles, opaPolicyItem.excludedRoles) + && Objects.equals(this.attributes, opaPolicyItem.attributes) + && Objects.equals(this.input, opaPolicyItem.input); } @Override @@ -273,8 +287,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -289,7 +302,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("policy", "allRoles", "anyRoles", "excludedRoles", "attributes", "input")); + openapiFields = new HashSet( + Arrays.asList("policy", "allRoles", "anyRoles", "excludedRoles", "attributes", "input")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -302,81 +316,100 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpaPolicyItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpaPolicyItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpaPolicyItem is not found in the empty JSON string", OpaPolicyItem.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpaPolicyItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpaPolicyItem is not found in the empty JSON string", + OpaPolicyItem.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpaPolicyItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpaPolicyItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("policy") != null && !jsonObj.get("policy").isJsonNull()) && !jsonObj.get("policy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policy").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("allRoles") != null && !jsonObj.get("allRoles").isJsonNull() && !jsonObj.get("allRoles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allRoles` to be an array in the JSON string but got `%s`", jsonObj.get("allRoles").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpaPolicyItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpaPolicyItem` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("anyRoles") != null && !jsonObj.get("anyRoles").isJsonNull() && !jsonObj.get("anyRoles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `anyRoles` to be an array in the JSON string but got `%s`", jsonObj.get("anyRoles").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("excludedRoles") != null && !jsonObj.get("excludedRoles").isJsonNull() && !jsonObj.get("excludedRoles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `excludedRoles` to be an array in the JSON string but got `%s`", jsonObj.get("excludedRoles").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - OpaPolicyAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("policy") != null && !jsonObj.get("policy").isJsonNull()) + && !jsonObj.get("policy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `policy` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("policy").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allRoles") != null && !jsonObj.get("allRoles").isJsonNull() + && !jsonObj.get("allRoles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `allRoles` to be an array in the JSON string but got `%s`", + jsonObj.get("allRoles").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("anyRoles") != null && !jsonObj.get("anyRoles").isJsonNull() + && !jsonObj.get("anyRoles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `anyRoles` to be an array in the JSON string but got `%s`", + jsonObj.get("anyRoles").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("excludedRoles") != null && !jsonObj.get("excludedRoles").isJsonNull() + && !jsonObj.get("excludedRoles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `excludedRoles` to be an array in the JSON string but got `%s`", + jsonObj.get("excludedRoles").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + OpaPolicyAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } - // validate the optional field `input` - if (jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) { - OpaPolicyInput.validateJsonElement(jsonObj.get("input")); - } + } + // validate the optional field `input` + if (jsonObj.get("input") != null && !jsonObj.get("input").isJsonNull()) { + OpaPolicyInput.validateJsonElement(jsonObj.get("input")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpaPolicyItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpaPolicyItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpaPolicyItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpaPolicyItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpaPolicyItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpaPolicyItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpaPolicyItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpaPolicyItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpaPolicyItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchAlias.java b/src/main/java/com/formkiq/client/model/OpenSearchAlias.java index ca38077bb..5ff4b701e 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchAlias.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchAlias.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * OpenSearchAlias */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpenSearchAlias { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @javax.annotation.Nullable private String name; - public OpenSearchAlias() { - } + public OpenSearchAlias() {} public OpenSearchAlias name(@javax.annotation.Nullable String name) { this.name = name; @@ -67,6 +75,7 @@ public OpenSearchAlias name(@javax.annotation.Nullable String name) { /** * Name of Alias + * * @return name */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchAlias */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchAlias.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchAlias is not found in the empty JSON string", OpenSearchAlias.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpenSearchAlias.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpenSearchAlias is not found in the empty JSON string", + OpenSearchAlias.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchAlias.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchAlias` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchAlias.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpenSearchAlias` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchAlias.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchAlias' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchAlias.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchAlias value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchAlias read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchAlias.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchAlias' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpenSearchAlias.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchAlias value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchAlias read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchIndex.java b/src/main/java/com/formkiq/client/model/OpenSearchIndex.java index 4539bee35..faee3b496 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchIndex.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchIndex.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * OpenSearchIndex */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpenSearchIndex { public static final String SERIALIZED_NAME_NUMBER_OF_REPLICAS = "numberOfReplicas"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_REPLICAS) @@ -85,8 +94,7 @@ public class OpenSearchIndex { @javax.annotation.Nullable private List aliases = new ArrayList<>(); - public OpenSearchIndex() { - } + public OpenSearchIndex() {} public OpenSearchIndex numberOfReplicas(@javax.annotation.Nullable String numberOfReplicas) { this.numberOfReplicas = numberOfReplicas; @@ -95,6 +103,7 @@ public OpenSearchIndex numberOfReplicas(@javax.annotation.Nullable String number /** * The number of replicas per shard + * * @return numberOfReplicas */ @javax.annotation.Nullable @@ -114,6 +123,7 @@ public OpenSearchIndex numberOfShards(@javax.annotation.Nullable String numberOf /** * The number of shards in index + * * @return numberOfShards */ @javax.annotation.Nullable @@ -133,6 +143,7 @@ public OpenSearchIndex documentCount(@javax.annotation.Nullable String documentC /** * The number of documents in index + * * @return documentCount */ @javax.annotation.Nullable @@ -152,6 +163,7 @@ public OpenSearchIndex storeSize(@javax.annotation.Nullable String storeSize) { /** * The store size of the index + * * @return storeSize */ @javax.annotation.Nullable @@ -171,6 +183,7 @@ public OpenSearchIndex name(@javax.annotation.Nullable String name) { /** * Name of Index + * * @return name */ @javax.annotation.Nullable @@ -198,6 +211,7 @@ public OpenSearchIndex addAliasesItem(OpenSearchAlias aliasesItem) { /** * Get aliases + * * @return aliases */ @javax.annotation.Nullable @@ -220,12 +234,12 @@ public boolean equals(Object o) { return false; } OpenSearchIndex openSearchIndex = (OpenSearchIndex) o; - return Objects.equals(this.numberOfReplicas, openSearchIndex.numberOfReplicas) && - Objects.equals(this.numberOfShards, openSearchIndex.numberOfShards) && - Objects.equals(this.documentCount, openSearchIndex.documentCount) && - Objects.equals(this.storeSize, openSearchIndex.storeSize) && - Objects.equals(this.name, openSearchIndex.name) && - Objects.equals(this.aliases, openSearchIndex.aliases); + return Objects.equals(this.numberOfReplicas, openSearchIndex.numberOfReplicas) + && Objects.equals(this.numberOfShards, openSearchIndex.numberOfShards) + && Objects.equals(this.documentCount, openSearchIndex.documentCount) + && Objects.equals(this.storeSize, openSearchIndex.storeSize) + && Objects.equals(this.name, openSearchIndex.name) + && Objects.equals(this.aliases, openSearchIndex.aliases); } @Override @@ -248,8 +262,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -264,7 +277,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("numberOfReplicas", "numberOfShards", "documentCount", "storeSize", "name", "aliases")); + openapiFields = new HashSet(Arrays.asList("numberOfReplicas", "numberOfShards", + "documentCount", "storeSize", "name", "aliases")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -277,77 +291,99 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchIndex */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchIndex.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchIndex is not found in the empty JSON string", OpenSearchIndex.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpenSearchIndex.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpenSearchIndex is not found in the empty JSON string", + OpenSearchIndex.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchIndex.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchIndex` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("numberOfReplicas") != null && !jsonObj.get("numberOfReplicas").isJsonNull()) && !jsonObj.get("numberOfReplicas").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberOfReplicas` to be a primitive type in the JSON string but got `%s`", jsonObj.get("numberOfReplicas").toString())); - } - if ((jsonObj.get("numberOfShards") != null && !jsonObj.get("numberOfShards").isJsonNull()) && !jsonObj.get("numberOfShards").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberOfShards` to be a primitive type in the JSON string but got `%s`", jsonObj.get("numberOfShards").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchIndex.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpenSearchIndex` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("documentCount") != null && !jsonObj.get("documentCount").isJsonNull()) && !jsonObj.get("documentCount").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentCount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentCount").toString())); - } - if ((jsonObj.get("storeSize") != null && !jsonObj.get("storeSize").isJsonNull()) && !jsonObj.get("storeSize").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `storeSize` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storeSize").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (jsonObj.get("aliases") != null && !jsonObj.get("aliases").isJsonNull()) { - JsonArray jsonArrayaliases = jsonObj.getAsJsonArray("aliases"); - if (jsonArrayaliases != null) { - // ensure the json data is an array - if (!jsonObj.get("aliases").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `aliases` to be an array in the JSON string but got `%s`", jsonObj.get("aliases").toString())); - } - - // validate the optional field `aliases` (array) - for (int i = 0; i < jsonArrayaliases.size(); i++) { - OpenSearchAlias.validateJsonElement(jsonArrayaliases.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("numberOfReplicas") != null && !jsonObj.get("numberOfReplicas").isJsonNull()) + && !jsonObj.get("numberOfReplicas").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberOfReplicas` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("numberOfReplicas").toString())); + } + if ((jsonObj.get("numberOfShards") != null && !jsonObj.get("numberOfShards").isJsonNull()) + && !jsonObj.get("numberOfShards").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberOfShards` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("numberOfShards").toString())); + } + if ((jsonObj.get("documentCount") != null && !jsonObj.get("documentCount").isJsonNull()) + && !jsonObj.get("documentCount").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentCount` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentCount").toString())); + } + if ((jsonObj.get("storeSize") != null && !jsonObj.get("storeSize").isJsonNull()) + && !jsonObj.get("storeSize").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `storeSize` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("storeSize").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if (jsonObj.get("aliases") != null && !jsonObj.get("aliases").isJsonNull()) { + JsonArray jsonArrayaliases = jsonObj.getAsJsonArray("aliases"); + if (jsonArrayaliases != null) { + // ensure the json data is an array + if (!jsonObj.get("aliases").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `aliases` to be an array in the JSON string but got `%s`", + jsonObj.get("aliases").toString())); } + + // validate the optional field `aliases` (array) + for (int i = 0; i < jsonArrayaliases.size(); i++) { + OpenSearchAlias.validateJsonElement(jsonArrayaliases.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchIndex.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchIndex' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchIndex.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchIndex value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchIndex read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchIndex.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchIndex' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpenSearchIndex.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchIndex value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchIndex read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java b/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java index 78781a8ee..96bd7f8d8 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * OpenSearchIndexSetting */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpenSearchIndexSetting { public static final String SERIALIZED_NAME_NUMBER_OF_REPLICAS = "numberOfReplicas"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_REPLICAS) @@ -62,16 +71,17 @@ public class OpenSearchIndexSetting { @javax.annotation.Nullable private String numberOfShards; - public OpenSearchIndexSetting() { - } + public OpenSearchIndexSetting() {} - public OpenSearchIndexSetting numberOfReplicas(@javax.annotation.Nullable String numberOfReplicas) { + public OpenSearchIndexSetting numberOfReplicas( + @javax.annotation.Nullable String numberOfReplicas) { this.numberOfReplicas = numberOfReplicas; return this; } /** * The number of replicas per shard + * * @return numberOfReplicas */ @javax.annotation.Nullable @@ -91,6 +101,7 @@ public OpenSearchIndexSetting numberOfShards(@javax.annotation.Nullable String n /** * The number of shards in index + * * @return numberOfShards */ @javax.annotation.Nullable @@ -113,8 +124,8 @@ public boolean equals(Object o) { return false; } OpenSearchIndexSetting openSearchIndexSetting = (OpenSearchIndexSetting) o; - return Objects.equals(this.numberOfReplicas, openSearchIndexSetting.numberOfReplicas) && - Objects.equals(this.numberOfShards, openSearchIndexSetting.numberOfShards); + return Objects.equals(this.numberOfReplicas, openSearchIndexSetting.numberOfReplicas) + && Objects.equals(this.numberOfShards, openSearchIndexSetting.numberOfShards); } @Override @@ -133,8 +144,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +172,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchIndexSetting */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchIndexSetting.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchIndexSetting is not found in the empty JSON string", OpenSearchIndexSetting.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpenSearchIndexSetting.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpenSearchIndexSetting is not found in the empty JSON string", + OpenSearchIndexSetting.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchIndexSetting.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchIndexSetting` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("numberOfReplicas") != null && !jsonObj.get("numberOfReplicas").isJsonNull()) && !jsonObj.get("numberOfReplicas").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberOfReplicas` to be a primitive type in the JSON string but got `%s`", jsonObj.get("numberOfReplicas").toString())); - } - if ((jsonObj.get("numberOfShards") != null && !jsonObj.get("numberOfShards").isJsonNull()) && !jsonObj.get("numberOfShards").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberOfShards` to be a primitive type in the JSON string but got `%s`", jsonObj.get("numberOfShards").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchIndexSetting.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpenSearchIndexSetting` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("numberOfReplicas") != null && !jsonObj.get("numberOfReplicas").isJsonNull()) + && !jsonObj.get("numberOfReplicas").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberOfReplicas` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("numberOfReplicas").toString())); + } + if ((jsonObj.get("numberOfShards") != null && !jsonObj.get("numberOfShards").isJsonNull()) + && !jsonObj.get("numberOfShards").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberOfShards` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("numberOfShards").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchIndexSetting.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchIndexSetting' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchIndexSetting.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchIndexSetting value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchIndexSetting read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchIndexSetting.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchIndexSetting' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpenSearchIndexSetting.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchIndexSetting value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchIndexSetting read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java b/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java index 89af44e51..6675a00d7 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * OpenSearchS3Repository */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpenSearchS3Repository { public static final String SERIALIZED_NAME_REPOSITORY = "repository"; @SerializedName(SERIALIZED_NAME_REPOSITORY) @@ -62,8 +71,7 @@ public class OpenSearchS3Repository { @javax.annotation.Nullable private String bucket; - public OpenSearchS3Repository() { - } + public OpenSearchS3Repository() {} public OpenSearchS3Repository repository(@javax.annotation.Nullable String repository) { this.repository = repository; @@ -72,6 +80,7 @@ public OpenSearchS3Repository repository(@javax.annotation.Nullable String repos /** * Name of the Repository + * * @return repository */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public OpenSearchS3Repository bucket(@javax.annotation.Nullable String bucket) { /** * Name of the S3 bucket + * * @return bucket */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } OpenSearchS3Repository openSearchS3Repository = (OpenSearchS3Repository) o; - return Objects.equals(this.repository, openSearchS3Repository.repository) && - Objects.equals(this.bucket, openSearchS3Repository.bucket); + return Objects.equals(this.repository, openSearchS3Repository.repository) + && Objects.equals(this.bucket, openSearchS3Repository.bucket); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchS3Repository */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchS3Repository.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchS3Repository is not found in the empty JSON string", OpenSearchS3Repository.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpenSearchS3Repository.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpenSearchS3Repository is not found in the empty JSON string", + OpenSearchS3Repository.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchS3Repository.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchS3Repository` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("repository") != null && !jsonObj.get("repository").isJsonNull()) && !jsonObj.get("repository").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `repository` to be a primitive type in the JSON string but got `%s`", jsonObj.get("repository").toString())); - } - if ((jsonObj.get("bucket") != null && !jsonObj.get("bucket").isJsonNull()) && !jsonObj.get("bucket").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bucket` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bucket").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchS3Repository.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpenSearchS3Repository` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("repository") != null && !jsonObj.get("repository").isJsonNull()) + && !jsonObj.get("repository").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `repository` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("repository").toString())); + } + if ((jsonObj.get("bucket") != null && !jsonObj.get("bucket").isJsonNull()) + && !jsonObj.get("bucket").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `bucket` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("bucket").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchS3Repository.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchS3Repository' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchS3Repository.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchS3Repository value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchS3Repository read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchS3Repository.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchS3Repository' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpenSearchS3Repository.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchS3Repository value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchS3Repository read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java index 65b206f6d..72fae40f8 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * OpenSearchSnapshot */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpenSearchSnapshot { public static final String SERIALIZED_NAME_SNAPSHOT = "snapshot"; @SerializedName(SERIALIZED_NAME_SNAPSHOT) @@ -117,8 +126,7 @@ public class OpenSearchSnapshot { @javax.annotation.Nullable private BigDecimal durationInMillis; - public OpenSearchSnapshot() { - } + public OpenSearchSnapshot() {} public OpenSearchSnapshot snapshot(@javax.annotation.Nullable String snapshot) { this.snapshot = snapshot; @@ -127,6 +135,7 @@ public OpenSearchSnapshot snapshot(@javax.annotation.Nullable String snapshot) { /** * Snapshot name + * * @return snapshot */ @javax.annotation.Nullable @@ -146,6 +155,7 @@ public OpenSearchSnapshot uuid(@javax.annotation.Nullable String uuid) { /** * Snapshot’s universally unique identifier (UUID) + * * @return uuid */ @javax.annotation.Nullable @@ -165,6 +175,7 @@ public OpenSearchSnapshot version(@javax.annotation.Nullable String version) { /** * Open Search version that created the snapshot + * * @return version */ @javax.annotation.Nullable @@ -192,6 +203,7 @@ public OpenSearchSnapshot addIndicesItem(String indicesItem) { /** * Indices in the snapshot + * * @return indices */ @javax.annotation.Nullable @@ -211,6 +223,7 @@ public OpenSearchSnapshot shards(@javax.annotation.Nullable OpenSearchSnapshotSh /** * Get shards + * * @return shards */ @javax.annotation.Nullable @@ -223,7 +236,8 @@ public void setShards(@javax.annotation.Nullable OpenSearchSnapshotShard shards) } - public OpenSearchSnapshot failures(@javax.annotation.Nullable List failures) { + public OpenSearchSnapshot failures( + @javax.annotation.Nullable List failures) { this.failures = failures; return this; } @@ -238,6 +252,7 @@ public OpenSearchSnapshot addFailuresItem(OpenSearchSnapshotFailure failuresItem /** * Get failures + * * @return failures */ @javax.annotation.Nullable @@ -257,6 +272,7 @@ public OpenSearchSnapshot state(@javax.annotation.Nullable String state) { /** * Snapshot status. Possible values: IN_PROGRESS, SUCCESS, FAILED, PARTIAL + * * @return state */ @javax.annotation.Nullable @@ -276,6 +292,7 @@ public OpenSearchSnapshot startTime(@javax.annotation.Nullable String startTime) /** * Date/time when the snapshot creation process began + * * @return startTime */ @javax.annotation.Nullable @@ -288,13 +305,15 @@ public void setStartTime(@javax.annotation.Nullable String startTime) { } - public OpenSearchSnapshot startTimeInMillis(@javax.annotation.Nullable BigDecimal startTimeInMillis) { + public OpenSearchSnapshot startTimeInMillis( + @javax.annotation.Nullable BigDecimal startTimeInMillis) { this.startTimeInMillis = startTimeInMillis; return this; } /** * Time (in milliseconds) when the snapshot creation process began + * * @return startTimeInMillis */ @javax.annotation.Nullable @@ -314,6 +333,7 @@ public OpenSearchSnapshot endTime(@javax.annotation.Nullable String endTime) { /** * Date/time when the snapshot creation process ended + * * @return endTime */ @javax.annotation.Nullable @@ -333,6 +353,7 @@ public OpenSearchSnapshot endTimeInMillis(@javax.annotation.Nullable BigDecimal /** * Time (in milliseconds) when the snapshot creation process ended + * * @return endTimeInMillis */ @javax.annotation.Nullable @@ -345,13 +366,15 @@ public void setEndTimeInMillis(@javax.annotation.Nullable BigDecimal endTimeInMi } - public OpenSearchSnapshot durationInMillis(@javax.annotation.Nullable BigDecimal durationInMillis) { + public OpenSearchSnapshot durationInMillis( + @javax.annotation.Nullable BigDecimal durationInMillis) { this.durationInMillis = durationInMillis; return this; } /** * Total time (in milliseconds) that the snapshot creation process lasted + * * @return durationInMillis */ @javax.annotation.Nullable @@ -374,23 +397,24 @@ public boolean equals(Object o) { return false; } OpenSearchSnapshot openSearchSnapshot = (OpenSearchSnapshot) o; - return Objects.equals(this.snapshot, openSearchSnapshot.snapshot) && - Objects.equals(this.uuid, openSearchSnapshot.uuid) && - Objects.equals(this.version, openSearchSnapshot.version) && - Objects.equals(this.indices, openSearchSnapshot.indices) && - Objects.equals(this.shards, openSearchSnapshot.shards) && - Objects.equals(this.failures, openSearchSnapshot.failures) && - Objects.equals(this.state, openSearchSnapshot.state) && - Objects.equals(this.startTime, openSearchSnapshot.startTime) && - Objects.equals(this.startTimeInMillis, openSearchSnapshot.startTimeInMillis) && - Objects.equals(this.endTime, openSearchSnapshot.endTime) && - Objects.equals(this.endTimeInMillis, openSearchSnapshot.endTimeInMillis) && - Objects.equals(this.durationInMillis, openSearchSnapshot.durationInMillis); + return Objects.equals(this.snapshot, openSearchSnapshot.snapshot) + && Objects.equals(this.uuid, openSearchSnapshot.uuid) + && Objects.equals(this.version, openSearchSnapshot.version) + && Objects.equals(this.indices, openSearchSnapshot.indices) + && Objects.equals(this.shards, openSearchSnapshot.shards) + && Objects.equals(this.failures, openSearchSnapshot.failures) + && Objects.equals(this.state, openSearchSnapshot.state) + && Objects.equals(this.startTime, openSearchSnapshot.startTime) + && Objects.equals(this.startTimeInMillis, openSearchSnapshot.startTimeInMillis) + && Objects.equals(this.endTime, openSearchSnapshot.endTime) + && Objects.equals(this.endTimeInMillis, openSearchSnapshot.endTimeInMillis) + && Objects.equals(this.durationInMillis, openSearchSnapshot.durationInMillis); } @Override public int hashCode() { - return Objects.hash(snapshot, uuid, version, indices, shards, failures, state, startTime, startTimeInMillis, endTime, endTimeInMillis, durationInMillis); + return Objects.hash(snapshot, uuid, version, indices, shards, failures, state, startTime, + startTimeInMillis, endTime, endTimeInMillis, durationInMillis); } @Override @@ -414,8 +438,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -430,7 +453,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("snapshot", "uuid", "version", "indices", "shards", "failures", "state", "start_time", "start_time_in_millis", "end_time", "end_time_in_millis", "duration_in_millis")); + openapiFields = new HashSet(Arrays.asList("snapshot", "uuid", "version", "indices", + "shards", "failures", "state", "start_time", "start_time_in_millis", "end_time", + "end_time_in_millis", "duration_in_millis")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -443,88 +468,116 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchSnapshot */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchSnapshot.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchSnapshot is not found in the empty JSON string", OpenSearchSnapshot.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpenSearchSnapshot.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpenSearchSnapshot is not found in the empty JSON string", + OpenSearchSnapshot.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchSnapshot.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshot` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("snapshot") != null && !jsonObj.get("snapshot").isJsonNull()) && !jsonObj.get("snapshot").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `snapshot` to be a primitive type in the JSON string but got `%s`", jsonObj.get("snapshot").toString())); - } - if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); - } - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchSnapshot.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshot` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("indices") != null && !jsonObj.get("indices").isJsonNull() && !jsonObj.get("indices").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indices` to be an array in the JSON string but got `%s`", jsonObj.get("indices").toString())); - } - // validate the optional field `shards` - if (jsonObj.get("shards") != null && !jsonObj.get("shards").isJsonNull()) { - OpenSearchSnapshotShard.validateJsonElement(jsonObj.get("shards")); - } - if (jsonObj.get("failures") != null && !jsonObj.get("failures").isJsonNull()) { - JsonArray jsonArrayfailures = jsonObj.getAsJsonArray("failures"); - if (jsonArrayfailures != null) { - // ensure the json data is an array - if (!jsonObj.get("failures").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `failures` to be an array in the JSON string but got `%s`", jsonObj.get("failures").toString())); - } - - // validate the optional field `failures` (array) - for (int i = 0; i < jsonArrayfailures.size(); i++) { - OpenSearchSnapshotFailure.validateJsonElement(jsonArrayfailures.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("snapshot") != null && !jsonObj.get("snapshot").isJsonNull()) + && !jsonObj.get("snapshot").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `snapshot` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("snapshot").toString())); + } + if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) + && !jsonObj.get("uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("uuid").toString())); + } + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) + && !jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `version` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("version").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("indices") != null && !jsonObj.get("indices").isJsonNull() + && !jsonObj.get("indices").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `indices` to be an array in the JSON string but got `%s`", + jsonObj.get("indices").toString())); + } + // validate the optional field `shards` + if (jsonObj.get("shards") != null && !jsonObj.get("shards").isJsonNull()) { + OpenSearchSnapshotShard.validateJsonElement(jsonObj.get("shards")); + } + if (jsonObj.get("failures") != null && !jsonObj.get("failures").isJsonNull()) { + JsonArray jsonArrayfailures = jsonObj.getAsJsonArray("failures"); + if (jsonArrayfailures != null) { + // ensure the json data is an array + if (!jsonObj.get("failures").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `failures` to be an array in the JSON string but got `%s`", + jsonObj.get("failures").toString())); } + + // validate the optional field `failures` (array) + for (int i = 0; i < jsonArrayfailures.size(); i++) { + OpenSearchSnapshotFailure.validateJsonElement(jsonArrayfailures.get(i)); + } ; } - if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); - } - if ((jsonObj.get("start_time") != null && !jsonObj.get("start_time").isJsonNull()) && !jsonObj.get("start_time").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `start_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("start_time").toString())); - } - if ((jsonObj.get("end_time") != null && !jsonObj.get("end_time").isJsonNull()) && !jsonObj.get("end_time").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `end_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("end_time").toString())); - } + } + if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) + && !jsonObj.get("state").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `state` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("state").toString())); + } + if ((jsonObj.get("start_time") != null && !jsonObj.get("start_time").isJsonNull()) + && !jsonObj.get("start_time").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `start_time` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("start_time").toString())); + } + if ((jsonObj.get("end_time") != null && !jsonObj.get("end_time").isJsonNull()) + && !jsonObj.get("end_time").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `end_time` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("end_time").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchSnapshot.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchSnapshot' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshot.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchSnapshot value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchSnapshot read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchSnapshot.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchSnapshot' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshot.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchSnapshot value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchSnapshot read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java index 279a2280a..fec4a41c5 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * Details about a failure for a specific shard in a snapshot. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpenSearchSnapshotFailure { public static final String SERIALIZED_NAME_INDEX = "index"; @SerializedName(SERIALIZED_NAME_INDEX) @@ -82,8 +91,7 @@ public class OpenSearchSnapshotFailure { @javax.annotation.Nullable private String status; - public OpenSearchSnapshotFailure() { - } + public OpenSearchSnapshotFailure() {} public OpenSearchSnapshotFailure index(@javax.annotation.Nullable String index) { this.index = index; @@ -92,6 +100,7 @@ public OpenSearchSnapshotFailure index(@javax.annotation.Nullable String index) /** * The index name. + * * @return index */ @javax.annotation.Nullable @@ -111,6 +120,7 @@ public OpenSearchSnapshotFailure indexUuid(@javax.annotation.Nullable String ind /** * UUID of the index. + * * @return indexUuid */ @javax.annotation.Nullable @@ -130,6 +140,7 @@ public OpenSearchSnapshotFailure shardId(@javax.annotation.Nullable Integer shar /** * Shard identifier. + * * @return shardId */ @javax.annotation.Nullable @@ -149,6 +160,7 @@ public OpenSearchSnapshotFailure reason(@javax.annotation.Nullable String reason /** * Full exception/message explaining why the failure occurred. + * * @return reason */ @javax.annotation.Nullable @@ -168,6 +180,7 @@ public OpenSearchSnapshotFailure nodeId(@javax.annotation.Nullable String nodeId /** * ID of the node handling that shard. + * * @return nodeId */ @javax.annotation.Nullable @@ -187,6 +200,7 @@ public OpenSearchSnapshotFailure status(@javax.annotation.Nullable String status /** * Status of the failure (e.g., INTERNAL_SERVER_ERROR). + * * @return status */ @javax.annotation.Nullable @@ -209,12 +223,12 @@ public boolean equals(Object o) { return false; } OpenSearchSnapshotFailure openSearchSnapshotFailure = (OpenSearchSnapshotFailure) o; - return Objects.equals(this.index, openSearchSnapshotFailure.index) && - Objects.equals(this.indexUuid, openSearchSnapshotFailure.indexUuid) && - Objects.equals(this.shardId, openSearchSnapshotFailure.shardId) && - Objects.equals(this.reason, openSearchSnapshotFailure.reason) && - Objects.equals(this.nodeId, openSearchSnapshotFailure.nodeId) && - Objects.equals(this.status, openSearchSnapshotFailure.status); + return Objects.equals(this.index, openSearchSnapshotFailure.index) + && Objects.equals(this.indexUuid, openSearchSnapshotFailure.indexUuid) + && Objects.equals(this.shardId, openSearchSnapshotFailure.shardId) + && Objects.equals(this.reason, openSearchSnapshotFailure.reason) + && Objects.equals(this.nodeId, openSearchSnapshotFailure.nodeId) + && Objects.equals(this.status, openSearchSnapshotFailure.status); } @Override @@ -237,8 +251,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +266,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("index", "index_uuid", "shard_id", "reason", "node_id", "status")); + openapiFields = new HashSet( + Arrays.asList("index", "index_uuid", "shard_id", "reason", "node_id", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -266,63 +280,83 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchSnapshotFailure */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchSnapshotFailure.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchSnapshotFailure is not found in the empty JSON string", OpenSearchSnapshotFailure.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpenSearchSnapshotFailure.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpenSearchSnapshotFailure is not found in the empty JSON string", + OpenSearchSnapshotFailure.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchSnapshotFailure.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshotFailure` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("index") != null && !jsonObj.get("index").isJsonNull()) && !jsonObj.get("index").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `index` to be a primitive type in the JSON string but got `%s`", jsonObj.get("index").toString())); - } - if ((jsonObj.get("index_uuid") != null && !jsonObj.get("index_uuid").isJsonNull()) && !jsonObj.get("index_uuid").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `index_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("index_uuid").toString())); - } - if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) && !jsonObj.get("reason").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); - } - if ((jsonObj.get("node_id") != null && !jsonObj.get("node_id").isJsonNull()) && !jsonObj.get("node_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `node_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("node_id").toString())); - } - if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchSnapshotFailure.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshotFailure` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("index") != null && !jsonObj.get("index").isJsonNull()) + && !jsonObj.get("index").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `index` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("index").toString())); + } + if ((jsonObj.get("index_uuid") != null && !jsonObj.get("index_uuid").isJsonNull()) + && !jsonObj.get("index_uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `index_uuid` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("index_uuid").toString())); + } + if ((jsonObj.get("reason") != null && !jsonObj.get("reason").isJsonNull()) + && !jsonObj.get("reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("reason").toString())); + } + if ((jsonObj.get("node_id") != null && !jsonObj.get("node_id").isJsonNull()) + && !jsonObj.get("node_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `node_id` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("node_id").toString())); + } + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) + && !jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `status` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("status").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchSnapshotFailure.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchSnapshotFailure' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshotFailure.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchSnapshotFailure value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchSnapshotFailure read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchSnapshotFailure.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchSnapshotFailure' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshotFailure.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchSnapshotFailure value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchSnapshotFailure read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java index 2b81f5170..6177322c2 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * OpenSearchSnapshotShard */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class OpenSearchSnapshotShard { public static final String SERIALIZED_NAME_TOTAL = "total"; @SerializedName(SERIALIZED_NAME_TOTAL) @@ -68,8 +77,7 @@ public class OpenSearchSnapshotShard { @javax.annotation.Nullable private BigDecimal successful; - public OpenSearchSnapshotShard() { - } + public OpenSearchSnapshotShard() {} public OpenSearchSnapshotShard total(@javax.annotation.Nullable BigDecimal total) { this.total = total; @@ -78,6 +86,7 @@ public OpenSearchSnapshotShard total(@javax.annotation.Nullable BigDecimal total /** * Total number of shards + * * @return total */ @javax.annotation.Nullable @@ -97,6 +106,7 @@ public OpenSearchSnapshotShard failed(@javax.annotation.Nullable BigDecimal fail /** * Failed number of shards + * * @return failed */ @javax.annotation.Nullable @@ -116,6 +126,7 @@ public OpenSearchSnapshotShard successful(@javax.annotation.Nullable BigDecimal /** * Successful number of shards + * * @return successful */ @javax.annotation.Nullable @@ -138,9 +149,9 @@ public boolean equals(Object o) { return false; } OpenSearchSnapshotShard openSearchSnapshotShard = (OpenSearchSnapshotShard) o; - return Objects.equals(this.total, openSearchSnapshotShard.total) && - Objects.equals(this.failed, openSearchSnapshotShard.failed) && - Objects.equals(this.successful, openSearchSnapshotShard.successful); + return Objects.equals(this.total, openSearchSnapshotShard.total) + && Objects.equals(this.failed, openSearchSnapshotShard.failed) + && Objects.equals(this.successful, openSearchSnapshotShard.successful); } @Override @@ -160,8 +171,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,48 +199,53 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to OpenSearchSnapshotShard */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!OpenSearchSnapshotShard.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in OpenSearchSnapshotShard is not found in the empty JSON string", OpenSearchSnapshotShard.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!OpenSearchSnapshotShard.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in OpenSearchSnapshotShard is not found in the empty JSON string", + OpenSearchSnapshotShard.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!OpenSearchSnapshotShard.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshotShard` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!OpenSearchSnapshotShard.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `OpenSearchSnapshotShard` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!OpenSearchSnapshotShard.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'OpenSearchSnapshotShard' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshotShard.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, OpenSearchSnapshotShard value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public OpenSearchSnapshotShard read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!OpenSearchSnapshotShard.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OpenSearchSnapshotShard' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(OpenSearchSnapshotShard.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OpenSearchSnapshotShard value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OpenSearchSnapshotShard read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/PdfDocument.java b/src/main/java/com/formkiq/client/model/PdfDocument.java index 930956002..fad9d6089 100644 --- a/src/main/java/com/formkiq/client/model/PdfDocument.java +++ b/src/main/java/com/formkiq/client/model/PdfDocument.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,15 +60,16 @@ /** * PdfDocument */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class PdfDocument { public static final String SERIALIZED_NAME_FIELDS = "fields"; @SerializedName(SERIALIZED_NAME_FIELDS) @javax.annotation.Nullable private List fields = new ArrayList<>(); - public PdfDocument() { - } + public PdfDocument() {} public PdfDocument fields(@javax.annotation.Nullable List fields) { this.fields = fields; @@ -78,6 +86,7 @@ public PdfDocument addFieldsItem(PdfDocumentField fieldsItem) { /** * List of document fields + * * @return fields */ @javax.annotation.Nullable @@ -118,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +155,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to PdfDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!PdfDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PdfDocument is not found in the empty JSON string", PdfDocument.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!PdfDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in PdfDocument is not found in the empty JSON string", + PdfDocument.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PdfDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PdfDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!PdfDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `PdfDocument` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonNull()) { - JsonArray jsonArrayfields = jsonObj.getAsJsonArray("fields"); - if (jsonArrayfields != null) { - // ensure the json data is an array - if (!jsonObj.get("fields").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fields` to be an array in the JSON string but got `%s`", jsonObj.get("fields").toString())); - } - - // validate the optional field `fields` (array) - for (int i = 0; i < jsonArrayfields.size(); i++) { - PdfDocumentField.validateJsonElement(jsonArrayfields.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonNull()) { + JsonArray jsonArrayfields = jsonObj.getAsJsonArray("fields"); + if (jsonArrayfields != null) { + // ensure the json data is an array + if (!jsonObj.get("fields").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `fields` to be an array in the JSON string but got `%s`", + jsonObj.get("fields").toString())); } + + // validate the optional field `fields` (array) + for (int i = 0; i < jsonArrayfields.size(); i++) { + PdfDocumentField.validateJsonElement(jsonArrayfields.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PdfDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PdfDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PdfDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PdfDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public PdfDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!PdfDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PdfDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(PdfDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PdfDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PdfDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/PdfDocumentField.java b/src/main/java/com/formkiq/client/model/PdfDocumentField.java index 7f52e34eb..663a348c7 100644 --- a/src/main/java/com/formkiq/client/model/PdfDocumentField.java +++ b/src/main/java/com/formkiq/client/model/PdfDocumentField.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * PdfDocumentField */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class PdfDocumentField { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) @@ -62,8 +71,7 @@ public class PdfDocumentField { @javax.annotation.Nullable private String value; - public PdfDocumentField() { - } + public PdfDocumentField() {} public PdfDocumentField field(@javax.annotation.Nullable String field) { this.field = field; @@ -72,6 +80,7 @@ public PdfDocumentField field(@javax.annotation.Nullable String field) { /** * Name of Field + * * @return field */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public PdfDocumentField value(@javax.annotation.Nullable String value) { /** * Value of Field + * * @return value */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } PdfDocumentField pdfDocumentField = (PdfDocumentField) o; - return Objects.equals(this.field, pdfDocumentField.field) && - Objects.equals(this.value, pdfDocumentField.value); + return Objects.equals(this.field, pdfDocumentField.field) + && Objects.equals(this.value, pdfDocumentField.value); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to PdfDocumentField */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!PdfDocumentField.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in PdfDocumentField is not found in the empty JSON string", PdfDocumentField.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!PdfDocumentField.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in PdfDocumentField is not found in the empty JSON string", + PdfDocumentField.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!PdfDocumentField.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PdfDocumentField` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("field") != null && !jsonObj.get("field").isJsonNull()) && !jsonObj.get("field").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `field` to be a primitive type in the JSON string but got `%s`", jsonObj.get("field").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!PdfDocumentField.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `PdfDocumentField` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("field") != null && !jsonObj.get("field").isJsonNull()) + && !jsonObj.get("field").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `field` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("field").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!PdfDocumentField.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'PdfDocumentField' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(PdfDocumentField.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, PdfDocumentField value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public PdfDocumentField read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!PdfDocumentField.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PdfDocumentField' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(PdfDocumentField.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PdfDocumentField value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PdfDocumentField read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java b/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java index 375851d8a..9ede86094 100644 --- a/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * QueryFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class QueryFulltextResponse { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) @javax.annotation.Nullable private Object result; - public QueryFulltextResponse() { - } + public QueryFulltextResponse() {} public QueryFulltextResponse result(@javax.annotation.Nullable Object result) { this.result = result; @@ -67,6 +75,7 @@ public QueryFulltextResponse result(@javax.annotation.Nullable Object result) { /** * Get result + * * @return result */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,48 +144,53 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to QueryFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!QueryFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in QueryFulltextResponse is not found in the empty JSON string", QueryFulltextResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!QueryFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in QueryFulltextResponse is not found in the empty JSON string", + QueryFulltextResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!QueryFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `QueryFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!QueryFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `QueryFulltextResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!QueryFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'QueryFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(QueryFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, QueryFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public QueryFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!QueryFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'QueryFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(QueryFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, QueryFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public QueryFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Queue.java b/src/main/java/com/formkiq/client/model/Queue.java index 994694db8..edacc3e0d 100644 --- a/src/main/java/com/formkiq/client/model/Queue.java +++ b/src/main/java/com/formkiq/client/model/Queue.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * Queue */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Queue { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,8 +71,7 @@ public class Queue { @javax.annotation.Nullable private String queueId; - public Queue() { - } + public Queue() {} public Queue name(@javax.annotation.Nullable String name) { this.name = name; @@ -72,6 +80,7 @@ public Queue name(@javax.annotation.Nullable String name) { /** * Name of Queue + * * @return name */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public Queue queueId(@javax.annotation.Nullable String queueId) { /** * Queue identifier + * * @return queueId */ @javax.annotation.Nullable @@ -113,8 +123,7 @@ public boolean equals(Object o) { return false; } Queue queue = (Queue) o; - return Objects.equals(this.name, queue.name) && - Objects.equals(this.queueId, queue.queueId); + return Objects.equals(this.name, queue.name) && Objects.equals(this.queueId, queue.queueId); } @Override @@ -133,8 +142,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +170,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Queue */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Queue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Queue is not found in the empty JSON string", Queue.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Queue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Queue is not found in the empty JSON string", + Queue.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Queue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Queue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) && !jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Queue.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Queue` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) + && !jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("queueId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Queue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Queue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Queue.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Queue value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Queue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Queue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Queue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Queue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Queue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Queue read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ReindexTarget.java b/src/main/java/com/formkiq/client/model/ReindexTarget.java index 7b7f35483..df2b71f2b 100644 --- a/src/main/java/com/formkiq/client/model/ReindexTarget.java +++ b/src/main/java/com/formkiq/client/model/ReindexTarget.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,7 +37,7 @@ */ @JsonAdapter(ReindexTarget.Adapter.class) public enum ReindexTarget { - + ATTRIBUTES("ATTRIBUTES"); private String value; @@ -59,7 +66,8 @@ public static ReindexTarget fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final ReindexTarget enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final ReindexTarget enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/ResourceItem.java b/src/main/java/com/formkiq/client/model/ResourceItem.java index 7db0d7e0b..786fb4706 100644 --- a/src/main/java/com/formkiq/client/model/ResourceItem.java +++ b/src/main/java/com/formkiq/client/model/ResourceItem.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * ResourceItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ResourceItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; @SerializedName(SERIALIZED_NAME_ITEM_TYPE) @@ -88,8 +97,7 @@ public class ResourceItem { @javax.annotation.Nullable private String classificationId; - public ResourceItem() { - } + public ResourceItem() {} public ResourceItem itemType(@javax.annotation.Nullable LocaleResourceType itemType) { this.itemType = itemType; @@ -98,6 +106,7 @@ public ResourceItem itemType(@javax.annotation.Nullable LocaleResourceType itemT /** * Get itemType + * * @return itemType */ @javax.annotation.Nullable @@ -117,6 +126,7 @@ public ResourceItem localizedValue(@javax.annotation.Nullable String localizedVa /** * Localized Value + * * @return localizedValue */ @javax.annotation.Nullable @@ -136,6 +146,7 @@ public ResourceItem interfaceKey(@javax.annotation.Nullable String interfaceKey) /** * Interface Key + * * @return interfaceKey */ @javax.annotation.Nullable @@ -155,6 +166,7 @@ public ResourceItem itemKey(@javax.annotation.Nullable String itemKey) { /** * Item Key + * * @return itemKey */ @javax.annotation.Nullable @@ -174,6 +186,7 @@ public ResourceItem attributeKey(@javax.annotation.Nullable String attributeKey) /** * Attribute Key + * * @return attributeKey */ @javax.annotation.Nullable @@ -193,6 +206,7 @@ public ResourceItem allowedValue(@javax.annotation.Nullable String allowedValue) /** * Resource value + * * @return allowedValue */ @javax.annotation.Nullable @@ -212,6 +226,7 @@ public ResourceItem classificationId(@javax.annotation.Nullable String classific /** * Classification Id + * * @return classificationId */ @javax.annotation.Nullable @@ -234,18 +249,19 @@ public boolean equals(Object o) { return false; } ResourceItem resourceItem = (ResourceItem) o; - return Objects.equals(this.itemType, resourceItem.itemType) && - Objects.equals(this.localizedValue, resourceItem.localizedValue) && - Objects.equals(this.interfaceKey, resourceItem.interfaceKey) && - Objects.equals(this.itemKey, resourceItem.itemKey) && - Objects.equals(this.attributeKey, resourceItem.attributeKey) && - Objects.equals(this.allowedValue, resourceItem.allowedValue) && - Objects.equals(this.classificationId, resourceItem.classificationId); + return Objects.equals(this.itemType, resourceItem.itemType) + && Objects.equals(this.localizedValue, resourceItem.localizedValue) + && Objects.equals(this.interfaceKey, resourceItem.interfaceKey) + && Objects.equals(this.itemKey, resourceItem.itemKey) + && Objects.equals(this.attributeKey, resourceItem.attributeKey) + && Objects.equals(this.allowedValue, resourceItem.allowedValue) + && Objects.equals(this.classificationId, resourceItem.classificationId); } @Override public int hashCode() { - return Objects.hash(itemType, localizedValue, interfaceKey, itemKey, attributeKey, allowedValue, classificationId); + return Objects.hash(itemType, localizedValue, interfaceKey, itemKey, attributeKey, allowedValue, + classificationId); } @Override @@ -264,8 +280,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -280,7 +295,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey", "itemKey", "attributeKey", "allowedValue", "classificationId")); + openapiFields = new HashSet(Arrays.asList("itemType", "localizedValue", "interfaceKey", + "itemKey", "attributeKey", "allowedValue", "classificationId")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -293,70 +309,93 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ResourceItem */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ResourceItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ResourceItem is not found in the empty JSON string", ResourceItem.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!ResourceItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in ResourceItem is not found in the empty JSON string", + ResourceItem.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ResourceItem.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ResourceItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `itemType` - if (jsonObj.get("itemType") != null && !jsonObj.get("itemType").isJsonNull()) { - LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); - } - if ((jsonObj.get("localizedValue") != null && !jsonObj.get("localizedValue").isJsonNull()) && !jsonObj.get("localizedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localizedValue").toString())); - } - if ((jsonObj.get("interfaceKey") != null && !jsonObj.get("interfaceKey").isJsonNull()) && !jsonObj.get("interfaceKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interfaceKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceKey").toString())); - } - if ((jsonObj.get("itemKey") != null && !jsonObj.get("itemKey").isJsonNull()) && !jsonObj.get("itemKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `itemKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("itemKey").toString())); - } - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); - } - if ((jsonObj.get("allowedValue") != null && !jsonObj.get("allowedValue").isJsonNull()) && !jsonObj.get("allowedValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allowedValue").toString())); - } - if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) && !jsonObj.get("classificationId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("classificationId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ResourceItem.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `ResourceItem` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `itemType` + if (jsonObj.get("itemType") != null && !jsonObj.get("itemType").isJsonNull()) { + LocaleResourceType.validateJsonElement(jsonObj.get("itemType")); + } + if ((jsonObj.get("localizedValue") != null && !jsonObj.get("localizedValue").isJsonNull()) + && !jsonObj.get("localizedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `localizedValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("localizedValue").toString())); + } + if ((jsonObj.get("interfaceKey") != null && !jsonObj.get("interfaceKey").isJsonNull()) + && !jsonObj.get("interfaceKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `interfaceKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("interfaceKey").toString())); + } + if ((jsonObj.get("itemKey") != null && !jsonObj.get("itemKey").isJsonNull()) + && !jsonObj.get("itemKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `itemKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("itemKey").toString())); + } + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) + && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("attributeKey").toString())); + } + if ((jsonObj.get("allowedValue") != null && !jsonObj.get("allowedValue").isJsonNull()) + && !jsonObj.get("allowedValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `allowedValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("allowedValue").toString())); + } + if ((jsonObj.get("classificationId") != null && !jsonObj.get("classificationId").isJsonNull()) + && !jsonObj.get("classificationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `classificationId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("classificationId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ResourceItem.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ResourceItem' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ResourceItem.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ResourceItem value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ResourceItem read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ResourceItem.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceItem' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(ResourceItem.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResourceItem value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ResourceItem read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Rule.java b/src/main/java/com/formkiq/client/model/Rule.java index 6c7692311..81eedd2d2 100644 --- a/src/main/java/com/formkiq/client/model/Rule.java +++ b/src/main/java/com/formkiq/client/model/Rule.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * Rule */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Rule { public static final String SERIALIZED_NAME_RULE_ID = "ruleId"; @SerializedName(SERIALIZED_NAME_RULE_ID) @@ -85,8 +94,7 @@ public class Rule { @javax.annotation.Nullable private RuleCondition conditions; - public Rule() { - } + public Rule() {} public Rule ruleId(@javax.annotation.Nullable String ruleId) { this.ruleId = ruleId; @@ -95,6 +103,7 @@ public Rule ruleId(@javax.annotation.Nullable String ruleId) { /** * Workflow to start on matching of conditions + * * @return ruleId */ @javax.annotation.Nullable @@ -114,6 +123,7 @@ public Rule priority(@javax.annotation.Nullable BigDecimal priority) { /** * Rule priority + * * @return priority */ @javax.annotation.Nullable @@ -133,6 +143,7 @@ public Rule description(@javax.annotation.Nullable String description) { /** * Ruleset description + * * @return description */ @javax.annotation.Nullable @@ -152,6 +163,7 @@ public Rule workflowId(@javax.annotation.Nullable String workflowId) { /** * Workflow to start on matching of conditions + * * @return workflowId */ @javax.annotation.Nullable @@ -171,6 +183,7 @@ public Rule status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -190,6 +203,7 @@ public Rule conditions(@javax.annotation.Nullable RuleCondition conditions) { /** * Get conditions + * * @return conditions */ @javax.annotation.Nullable @@ -212,12 +226,11 @@ public boolean equals(Object o) { return false; } Rule rule = (Rule) o; - return Objects.equals(this.ruleId, rule.ruleId) && - Objects.equals(this.priority, rule.priority) && - Objects.equals(this.description, rule.description) && - Objects.equals(this.workflowId, rule.workflowId) && - Objects.equals(this.status, rule.status) && - Objects.equals(this.conditions, rule.conditions); + return Objects.equals(this.ruleId, rule.ruleId) && Objects.equals(this.priority, rule.priority) + && Objects.equals(this.description, rule.description) + && Objects.equals(this.workflowId, rule.workflowId) + && Objects.equals(this.status, rule.status) + && Objects.equals(this.conditions, rule.conditions); } @Override @@ -240,8 +253,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -256,7 +268,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("ruleId", "priority", "description", "workflowId", "status", "conditions")); + openapiFields = new HashSet( + Arrays.asList("ruleId", "priority", "description", "workflowId", "status", "conditions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -269,65 +282,78 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Rule */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Rule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Rule is not found in the empty JSON string", Rule.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Rule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Rule is not found in the empty JSON string", + Rule.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Rule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Rule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("ruleId") != null && !jsonObj.get("ruleId").isJsonNull()) && !jsonObj.get("ruleId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ruleId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ruleId").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); - } - // validate the optional field `conditions` - if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { - RuleCondition.validateJsonElement(jsonObj.get("conditions")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Rule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Rule` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("ruleId") != null && !jsonObj.get("ruleId").isJsonNull()) + && !jsonObj.get("ruleId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `ruleId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("ruleId").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) + && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workflowId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); + } + // validate the optional field `conditions` + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + RuleCondition.validateJsonElement(jsonObj.get("conditions")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Rule.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Rule' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Rule.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Rule value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Rule read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Rule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Rule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Rule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Rule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Rule read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/RuleCondition.java b/src/main/java/com/formkiq/client/model/RuleCondition.java index e92c58991..ec6dee410 100644 --- a/src/main/java/com/formkiq/client/model/RuleCondition.java +++ b/src/main/java/com/formkiq/client/model/RuleCondition.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,15 +60,16 @@ /** * RuleCondition */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class RuleCondition { public static final String SERIALIZED_NAME_MUST = "must"; @SerializedName(SERIALIZED_NAME_MUST) @javax.annotation.Nullable private List must = new ArrayList<>(); - public RuleCondition() { - } + public RuleCondition() {} public RuleCondition must(@javax.annotation.Nullable List must) { this.must = must; @@ -78,6 +86,7 @@ public RuleCondition addMustItem(RuleConditionMust mustItem) { /** * List of rule conditions + * * @return must */ @javax.annotation.Nullable @@ -118,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +155,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to RuleCondition */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RuleCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RuleCondition is not found in the empty JSON string", RuleCondition.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!RuleCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in RuleCondition is not found in the empty JSON string", + RuleCondition.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RuleCondition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `RuleCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!RuleCondition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `RuleCondition` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("must") != null && !jsonObj.get("must").isJsonNull()) { - JsonArray jsonArraymust = jsonObj.getAsJsonArray("must"); - if (jsonArraymust != null) { - // ensure the json data is an array - if (!jsonObj.get("must").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `must` to be an array in the JSON string but got `%s`", jsonObj.get("must").toString())); - } - - // validate the optional field `must` (array) - for (int i = 0; i < jsonArraymust.size(); i++) { - RuleConditionMust.validateJsonElement(jsonArraymust.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("must") != null && !jsonObj.get("must").isJsonNull()) { + JsonArray jsonArraymust = jsonObj.getAsJsonArray("must"); + if (jsonArraymust != null) { + // ensure the json data is an array + if (!jsonObj.get("must").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `must` to be an array in the JSON string but got `%s`", + jsonObj.get("must").toString())); } + + // validate the optional field `must` (array) + for (int i = 0; i < jsonArraymust.size(); i++) { + RuleConditionMust.validateJsonElement(jsonArraymust.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RuleCondition.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RuleCondition' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RuleCondition.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RuleCondition value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public RuleCondition read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!RuleCondition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RuleCondition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(RuleCondition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RuleCondition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RuleCondition read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/RuleConditionAttribute.java b/src/main/java/com/formkiq/client/model/RuleConditionAttribute.java index 0228a49ba..749412fa3 100644 --- a/src/main/java/com/formkiq/client/model/RuleConditionAttribute.java +++ b/src/main/java/com/formkiq/client/model/RuleConditionAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,15 +37,15 @@ */ @JsonAdapter(RuleConditionAttribute.Adapter.class) public enum RuleConditionAttribute { - + TEXT("TEXT"), - + CONTENT_TYPE("CONTENT_TYPE"), - + BARCODE("BARCODE"), - + FIELD("FIELD"), - + ATTRIBUTE("ATTRIBUTE"); private String value; @@ -67,7 +74,8 @@ public static RuleConditionAttribute fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final RuleConditionAttribute enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final RuleConditionAttribute enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/RuleConditionCriterion.java b/src/main/java/com/formkiq/client/model/RuleConditionCriterion.java index 8341563f9..3fb1bc306 100644 --- a/src/main/java/com/formkiq/client/model/RuleConditionCriterion.java +++ b/src/main/java/com/formkiq/client/model/RuleConditionCriterion.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,15 +37,15 @@ */ @JsonAdapter(RuleConditionCriterion.Adapter.class) public enum RuleConditionCriterion { - + TEXT("TEXT"), - + CONTENT_TYPE("CONTENT_TYPE"), - + BARCODE("BARCODE"), - + FIELD("FIELD"), - + ATTRIBUTE("ATTRIBUTE"); private String value; @@ -67,7 +74,8 @@ public static RuleConditionCriterion fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final RuleConditionCriterion enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final RuleConditionCriterion enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/RuleConditionMust.java b/src/main/java/com/formkiq/client/model/RuleConditionMust.java index c28b6a3e7..7511eff1a 100644 --- a/src/main/java/com/formkiq/client/model/RuleConditionMust.java +++ b/src/main/java/com/formkiq/client/model/RuleConditionMust.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * RuleConditionMust */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class RuleConditionMust { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @@ -85,8 +94,7 @@ public class RuleConditionMust { @javax.annotation.Nullable private RuleConditionOperation operation; - public RuleConditionMust() { - } + public RuleConditionMust() {} public RuleConditionMust attribute(@javax.annotation.Nullable RuleConditionAttribute attribute) { this.attribute = attribute; @@ -95,6 +103,7 @@ public RuleConditionMust attribute(@javax.annotation.Nullable RuleConditionAttri /** * Get attribute + * * @return attribute */ @javax.annotation.Nullable @@ -114,6 +123,7 @@ public RuleConditionMust criterion(@javax.annotation.Nullable RuleConditionCrite /** * Get criterion + * * @return criterion */ @javax.annotation.Nullable @@ -133,6 +143,7 @@ public RuleConditionMust attributeKey(@javax.annotation.Nullable String attribut /** * Rule attribute key (only required for ATTRIBUTE criterion) + * * @return attributeKey */ @javax.annotation.Nullable @@ -152,6 +163,7 @@ public RuleConditionMust fieldName(@javax.annotation.Nullable String fieldName) /** * Rule field name (only required for FIELD criterion) + * * @return fieldName */ @javax.annotation.Nullable @@ -171,6 +183,7 @@ public RuleConditionMust value(@javax.annotation.Nullable String value) { /** * Rule condition value + * * @return value */ @javax.annotation.Nullable @@ -190,6 +203,7 @@ public RuleConditionMust operation(@javax.annotation.Nullable RuleConditionOpera /** * Get operation + * * @return operation */ @javax.annotation.Nullable @@ -212,12 +226,12 @@ public boolean equals(Object o) { return false; } RuleConditionMust ruleConditionMust = (RuleConditionMust) o; - return Objects.equals(this.attribute, ruleConditionMust.attribute) && - Objects.equals(this.criterion, ruleConditionMust.criterion) && - Objects.equals(this.attributeKey, ruleConditionMust.attributeKey) && - Objects.equals(this.fieldName, ruleConditionMust.fieldName) && - Objects.equals(this.value, ruleConditionMust.value) && - Objects.equals(this.operation, ruleConditionMust.operation); + return Objects.equals(this.attribute, ruleConditionMust.attribute) + && Objects.equals(this.criterion, ruleConditionMust.criterion) + && Objects.equals(this.attributeKey, ruleConditionMust.attributeKey) + && Objects.equals(this.fieldName, ruleConditionMust.fieldName) + && Objects.equals(this.value, ruleConditionMust.value) + && Objects.equals(this.operation, ruleConditionMust.operation); } @Override @@ -240,8 +254,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -256,7 +269,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("attribute", "criterion", "attributeKey", "fieldName", "value", "operation")); + openapiFields = new HashSet( + Arrays.asList("attribute", "criterion", "attributeKey", "fieldName", "value", "operation")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -269,69 +283,83 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to RuleConditionMust */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!RuleConditionMust.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RuleConditionMust is not found in the empty JSON string", RuleConditionMust.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!RuleConditionMust.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in RuleConditionMust is not found in the empty JSON string", + RuleConditionMust.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!RuleConditionMust.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `RuleConditionMust` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `attribute` - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { - RuleConditionAttribute.validateJsonElement(jsonObj.get("attribute")); - } - // validate the optional field `criterion` - if (jsonObj.get("criterion") != null && !jsonObj.get("criterion").isJsonNull()) { - RuleConditionCriterion.validateJsonElement(jsonObj.get("criterion")); - } - if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) && !jsonObj.get("attributeKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attributeKey").toString())); - } - if ((jsonObj.get("fieldName") != null && !jsonObj.get("fieldName").isJsonNull()) && !jsonObj.get("fieldName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fieldName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldName").toString())); - } - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - // validate the optional field `operation` - if (jsonObj.get("operation") != null && !jsonObj.get("operation").isJsonNull()) { - RuleConditionOperation.validateJsonElement(jsonObj.get("operation")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!RuleConditionMust.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `RuleConditionMust` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `attribute` + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { + RuleConditionAttribute.validateJsonElement(jsonObj.get("attribute")); + } + // validate the optional field `criterion` + if (jsonObj.get("criterion") != null && !jsonObj.get("criterion").isJsonNull()) { + RuleConditionCriterion.validateJsonElement(jsonObj.get("criterion")); + } + if ((jsonObj.get("attributeKey") != null && !jsonObj.get("attributeKey").isJsonNull()) + && !jsonObj.get("attributeKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributeKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("attributeKey").toString())); + } + if ((jsonObj.get("fieldName") != null && !jsonObj.get("fieldName").isJsonNull()) + && !jsonObj.get("fieldName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `fieldName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("fieldName").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } + // validate the optional field `operation` + if (jsonObj.get("operation") != null && !jsonObj.get("operation").isJsonNull()) { + RuleConditionOperation.validateJsonElement(jsonObj.get("operation")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!RuleConditionMust.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RuleConditionMust' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RuleConditionMust.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RuleConditionMust value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public RuleConditionMust read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!RuleConditionMust.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RuleConditionMust' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(RuleConditionMust.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RuleConditionMust value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RuleConditionMust read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/RuleConditionOperation.java b/src/main/java/com/formkiq/client/model/RuleConditionOperation.java index 954b1b98d..c70ab28d4 100644 --- a/src/main/java/com/formkiq/client/model/RuleConditionOperation.java +++ b/src/main/java/com/formkiq/client/model/RuleConditionOperation.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(RuleConditionOperation.Adapter.class) public enum RuleConditionOperation { - + EQ("EQ"), - + CONTAINS("CONTAINS"); private String value; @@ -61,7 +68,8 @@ public static RuleConditionOperation fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final RuleConditionOperation enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final RuleConditionOperation enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/Ruleset.java b/src/main/java/com/formkiq/client/model/Ruleset.java index 0a199f642..9d9bb4426 100644 --- a/src/main/java/com/formkiq/client/model/Ruleset.java +++ b/src/main/java/com/formkiq/client/model/Ruleset.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * Ruleset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Ruleset { public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) @@ -84,8 +93,7 @@ public class Ruleset { @javax.annotation.Nullable private RulesetStatus status; - public Ruleset() { - } + public Ruleset() {} public Ruleset rulesetId(@javax.annotation.Nullable String rulesetId) { this.rulesetId = rulesetId; @@ -94,6 +102,7 @@ public Ruleset rulesetId(@javax.annotation.Nullable String rulesetId) { /** * Ruleset identifier + * * @return rulesetId */ @javax.annotation.Nullable @@ -113,6 +122,7 @@ public Ruleset description(@javax.annotation.Nullable String description) { /** * Ruleset description + * * @return description */ @javax.annotation.Nullable @@ -132,6 +142,7 @@ public Ruleset priority(@javax.annotation.Nullable BigDecimal priority) { /** * Ruleset priority + * * @return priority */ @javax.annotation.Nullable @@ -151,6 +162,7 @@ public Ruleset version(@javax.annotation.Nullable BigDecimal version) { /** * Ruleset version + * * @return version */ @javax.annotation.Nullable @@ -170,6 +182,7 @@ public Ruleset insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -189,6 +202,7 @@ public Ruleset status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -211,12 +225,12 @@ public boolean equals(Object o) { return false; } Ruleset ruleset = (Ruleset) o; - return Objects.equals(this.rulesetId, ruleset.rulesetId) && - Objects.equals(this.description, ruleset.description) && - Objects.equals(this.priority, ruleset.priority) && - Objects.equals(this.version, ruleset.version) && - Objects.equals(this.insertedDate, ruleset.insertedDate) && - Objects.equals(this.status, ruleset.status); + return Objects.equals(this.rulesetId, ruleset.rulesetId) + && Objects.equals(this.description, ruleset.description) + && Objects.equals(this.priority, ruleset.priority) + && Objects.equals(this.version, ruleset.version) + && Objects.equals(this.insertedDate, ruleset.insertedDate) + && Objects.equals(this.status, ruleset.status); } @Override @@ -239,8 +253,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -255,7 +268,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("rulesetId", "description", "priority", "version", "insertedDate", "status")); + openapiFields = new HashSet( + Arrays.asList("rulesetId", "description", "priority", "version", "insertedDate", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -268,61 +282,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Ruleset */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Ruleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Ruleset is not found in the empty JSON string", Ruleset.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Ruleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Ruleset is not found in the empty JSON string", + Ruleset.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Ruleset.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Ruleset` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("rulesetId") != null && !jsonObj.get("rulesetId").isJsonNull()) && !jsonObj.get("rulesetId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rulesetId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rulesetId").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Ruleset.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Ruleset` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("rulesetId") != null && !jsonObj.get("rulesetId").isJsonNull()) + && !jsonObj.get("rulesetId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `rulesetId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("rulesetId").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Ruleset.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Ruleset' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Ruleset.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Ruleset value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Ruleset read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Ruleset.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Ruleset' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Ruleset.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Ruleset value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Ruleset read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/RulesetStatus.java b/src/main/java/com/formkiq/client/model/RulesetStatus.java index ef3251bc6..0f576b22f 100644 --- a/src/main/java/com/formkiq/client/model/RulesetStatus.java +++ b/src/main/java/com/formkiq/client/model/RulesetStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(RulesetStatus.Adapter.class) public enum RulesetStatus { - + ACTIVE("ACTIVE"), - + INACTIVE("INACTIVE"); private String value; @@ -61,7 +68,8 @@ public static RulesetStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final RulesetStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final RulesetStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/SchemaAttributes.java b/src/main/java/com/formkiq/client/model/SchemaAttributes.java index 1bf216796..dc1101a34 100644 --- a/src/main/java/com/formkiq/client/model/SchemaAttributes.java +++ b/src/main/java/com/formkiq/client/model/SchemaAttributes.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * SchemaAttributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SchemaAttributes { public static final String SERIALIZED_NAME_COMPOSITE_KEYS = "compositeKeys"; @SerializedName(SERIALIZED_NAME_COMPOSITE_KEYS) @@ -72,15 +81,16 @@ public class SchemaAttributes { @javax.annotation.Nullable private List optional = new ArrayList<>(); - public static final String SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES = "allowAdditionalAttributes"; + public static final String SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES = + "allowAdditionalAttributes"; @SerializedName(SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES) @javax.annotation.Nullable private Boolean allowAdditionalAttributes = true; - public SchemaAttributes() { - } + public SchemaAttributes() {} - public SchemaAttributes compositeKeys(@javax.annotation.Nullable List compositeKeys) { + public SchemaAttributes compositeKeys( + @javax.annotation.Nullable List compositeKeys) { this.compositeKeys = compositeKeys; return this; } @@ -95,6 +105,7 @@ public SchemaAttributes addCompositeKeysItem(AttributeSchemaCompositeKey composi /** * List of Composite Keys + * * @return compositeKeys */ @javax.annotation.Nullable @@ -102,12 +113,14 @@ public List getCompositeKeys() { return compositeKeys; } - public void setCompositeKeys(@javax.annotation.Nullable List compositeKeys) { + public void setCompositeKeys( + @javax.annotation.Nullable List compositeKeys) { this.compositeKeys = compositeKeys; } - public SchemaAttributes required(@javax.annotation.Nullable List required) { + public SchemaAttributes required( + @javax.annotation.Nullable List required) { this.required = required; return this; } @@ -122,6 +135,7 @@ public SchemaAttributes addRequiredItem(AttributeSchemaRequired requiredItem) { /** * List of Required Attributes + * * @return required */ @javax.annotation.Nullable @@ -134,7 +148,8 @@ public void setRequired(@javax.annotation.Nullable List } - public SchemaAttributes optional(@javax.annotation.Nullable List optional) { + public SchemaAttributes optional( + @javax.annotation.Nullable List optional) { this.optional = optional; return this; } @@ -149,6 +164,7 @@ public SchemaAttributes addOptionalItem(AttributeSchemaOptional optionalItem) { /** * List of Optional Attribute + * * @return optional */ @javax.annotation.Nullable @@ -161,13 +177,15 @@ public void setOptional(@javax.annotation.Nullable List } - public SchemaAttributes allowAdditionalAttributes(@javax.annotation.Nullable Boolean allowAdditionalAttributes) { + public SchemaAttributes allowAdditionalAttributes( + @javax.annotation.Nullable Boolean allowAdditionalAttributes) { this.allowAdditionalAttributes = allowAdditionalAttributes; return this; } /** * Get allowAdditionalAttributes + * * @return allowAdditionalAttributes */ @javax.annotation.Nullable @@ -175,7 +193,8 @@ public Boolean getAllowAdditionalAttributes() { return allowAdditionalAttributes; } - public void setAllowAdditionalAttributes(@javax.annotation.Nullable Boolean allowAdditionalAttributes) { + public void setAllowAdditionalAttributes( + @javax.annotation.Nullable Boolean allowAdditionalAttributes) { this.allowAdditionalAttributes = allowAdditionalAttributes; } @@ -190,10 +209,10 @@ public boolean equals(Object o) { return false; } SchemaAttributes schemaAttributes = (SchemaAttributes) o; - return Objects.equals(this.compositeKeys, schemaAttributes.compositeKeys) && - Objects.equals(this.required, schemaAttributes.required) && - Objects.equals(this.optional, schemaAttributes.optional) && - Objects.equals(this.allowAdditionalAttributes, schemaAttributes.allowAdditionalAttributes); + return Objects.equals(this.compositeKeys, schemaAttributes.compositeKeys) + && Objects.equals(this.required, schemaAttributes.required) + && Objects.equals(this.optional, schemaAttributes.optional) && Objects + .equals(this.allowAdditionalAttributes, schemaAttributes.allowAdditionalAttributes); } @Override @@ -208,14 +227,14 @@ public String toString() { sb.append(" compositeKeys: ").append(toIndentedString(compositeKeys)).append("\n"); sb.append(" required: ").append(toIndentedString(required)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); - sb.append(" allowAdditionalAttributes: ").append(toIndentedString(allowAdditionalAttributes)).append("\n"); + sb.append(" allowAdditionalAttributes: ").append(toIndentedString(allowAdditionalAttributes)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -230,7 +249,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("compositeKeys", "required", "optional", "allowAdditionalAttributes")); + openapiFields = new HashSet( + Arrays.asList("compositeKeys", "required", "optional", "allowAdditionalAttributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -243,90 +263,101 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SchemaAttributes */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SchemaAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SchemaAttributes is not found in the empty JSON string", SchemaAttributes.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SchemaAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SchemaAttributes is not found in the empty JSON string", + SchemaAttributes.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SchemaAttributes.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SchemaAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SchemaAttributes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SchemaAttributes` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("compositeKeys") != null && !jsonObj.get("compositeKeys").isJsonNull()) { - JsonArray jsonArraycompositeKeys = jsonObj.getAsJsonArray("compositeKeys"); - if (jsonArraycompositeKeys != null) { - // ensure the json data is an array - if (!jsonObj.get("compositeKeys").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `compositeKeys` to be an array in the JSON string but got `%s`", jsonObj.get("compositeKeys").toString())); - } - - // validate the optional field `compositeKeys` (array) - for (int i = 0; i < jsonArraycompositeKeys.size(); i++) { - AttributeSchemaCompositeKey.validateJsonElement(jsonArraycompositeKeys.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("compositeKeys") != null && !jsonObj.get("compositeKeys").isJsonNull()) { + JsonArray jsonArraycompositeKeys = jsonObj.getAsJsonArray("compositeKeys"); + if (jsonArraycompositeKeys != null) { + // ensure the json data is an array + if (!jsonObj.get("compositeKeys").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `compositeKeys` to be an array in the JSON string but got `%s`", + jsonObj.get("compositeKeys").toString())); } + + // validate the optional field `compositeKeys` (array) + for (int i = 0; i < jsonArraycompositeKeys.size(); i++) { + AttributeSchemaCompositeKey.validateJsonElement(jsonArraycompositeKeys.get(i)); + } ; } - if (jsonObj.get("required") != null && !jsonObj.get("required").isJsonNull()) { - JsonArray jsonArrayrequired = jsonObj.getAsJsonArray("required"); - if (jsonArrayrequired != null) { - // ensure the json data is an array - if (!jsonObj.get("required").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `required` to be an array in the JSON string but got `%s`", jsonObj.get("required").toString())); - } - - // validate the optional field `required` (array) - for (int i = 0; i < jsonArrayrequired.size(); i++) { - AttributeSchemaRequired.validateJsonElement(jsonArrayrequired.get(i)); - }; + } + if (jsonObj.get("required") != null && !jsonObj.get("required").isJsonNull()) { + JsonArray jsonArrayrequired = jsonObj.getAsJsonArray("required"); + if (jsonArrayrequired != null) { + // ensure the json data is an array + if (!jsonObj.get("required").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `required` to be an array in the JSON string but got `%s`", + jsonObj.get("required").toString())); } + + // validate the optional field `required` (array) + for (int i = 0; i < jsonArrayrequired.size(); i++) { + AttributeSchemaRequired.validateJsonElement(jsonArrayrequired.get(i)); + } ; } - if (jsonObj.get("optional") != null && !jsonObj.get("optional").isJsonNull()) { - JsonArray jsonArrayoptional = jsonObj.getAsJsonArray("optional"); - if (jsonArrayoptional != null) { - // ensure the json data is an array - if (!jsonObj.get("optional").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `optional` to be an array in the JSON string but got `%s`", jsonObj.get("optional").toString())); - } - - // validate the optional field `optional` (array) - for (int i = 0; i < jsonArrayoptional.size(); i++) { - AttributeSchemaOptional.validateJsonElement(jsonArrayoptional.get(i)); - }; + } + if (jsonObj.get("optional") != null && !jsonObj.get("optional").isJsonNull()) { + JsonArray jsonArrayoptional = jsonObj.getAsJsonArray("optional"); + if (jsonArrayoptional != null) { + // ensure the json data is an array + if (!jsonObj.get("optional").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `optional` to be an array in the JSON string but got `%s`", + jsonObj.get("optional").toString())); } + + // validate the optional field `optional` (array) + for (int i = 0; i < jsonArrayoptional.size(); i++) { + AttributeSchemaOptional.validateJsonElement(jsonArrayoptional.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SchemaAttributes.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SchemaAttributes' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SchemaAttributes.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SchemaAttributes value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SchemaAttributes read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SchemaAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SchemaAttributes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SchemaAttributes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SchemaAttributes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SchemaAttributes read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SearchRangeDataType.java b/src/main/java/com/formkiq/client/model/SearchRangeDataType.java index 580bf2092..22c523c28 100644 --- a/src/main/java/com/formkiq/client/model/SearchRangeDataType.java +++ b/src/main/java/com/formkiq/client/model/SearchRangeDataType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(SearchRangeDataType.Adapter.class) public enum SearchRangeDataType { - + STRING("STRING"), - + NUMBER("NUMBER"); private String value; @@ -61,7 +68,8 @@ public static SearchRangeDataType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final SearchRangeDataType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final SearchRangeDataType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/SearchResponseFields.java b/src/main/java/com/formkiq/client/model/SearchResponseFields.java index fa09a5e73..e69dba6ec 100644 --- a/src/main/java/com/formkiq/client/model/SearchResponseFields.java +++ b/src/main/java/com/formkiq/client/model/SearchResponseFields.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * SearchResponseFields */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SearchResponseFields { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @@ -64,8 +73,7 @@ public class SearchResponseFields { @javax.annotation.Nullable private List tags = new ArrayList<>(); - public SearchResponseFields() { - } + public SearchResponseFields() {} public SearchResponseFields attributes(@javax.annotation.Nullable List attributes) { this.attributes = attributes; @@ -82,6 +90,7 @@ public SearchResponseFields addAttributesItem(String attributesItem) { /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -109,6 +118,7 @@ public SearchResponseFields addTagsItem(String tagsItem) { /** * Get tags + * * @return tags */ @javax.annotation.Nullable @@ -131,8 +141,8 @@ public boolean equals(Object o) { return false; } SearchResponseFields searchResponseFields = (SearchResponseFields) o; - return Objects.equals(this.attributes, searchResponseFields.attributes) && - Objects.equals(this.tags, searchResponseFields.tags); + return Objects.equals(this.attributes, searchResponseFields.attributes) + && Objects.equals(this.tags, searchResponseFields.tags); } @Override @@ -151,8 +161,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -180,56 +189,67 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SearchResponseFields */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SearchResponseFields.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SearchResponseFields is not found in the empty JSON string", SearchResponseFields.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SearchResponseFields.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SearchResponseFields is not found in the empty JSON string", + SearchResponseFields.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SearchResponseFields.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SearchResponseFields` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull() && !jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SearchResponseFields.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SearchResponseFields` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull() + && !jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() + && !jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SearchResponseFields.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SearchResponseFields' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SearchResponseFields.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SearchResponseFields value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SearchResponseFields read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SearchResponseFields.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SearchResponseFields' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SearchResponseFields.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SearchResponseFields value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SearchResponseFields read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SearchResultDocument.java b/src/main/java/com/formkiq/client/model/SearchResultDocument.java index 54d3531dc..f9509e476 100644 --- a/src/main/java/com/formkiq/client/model/SearchResultDocument.java +++ b/src/main/java/com/formkiq/client/model/SearchResultDocument.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -59,7 +66,9 @@ /** * SearchResultDocument */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SearchResultDocument { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -176,8 +185,7 @@ public class SearchResultDocument { @javax.annotation.Nullable private List metadata = new ArrayList<>(); - public SearchResultDocument() { - } + public SearchResultDocument() {} public SearchResultDocument siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -186,6 +194,7 @@ public SearchResultDocument siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -205,6 +214,7 @@ public SearchResultDocument path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -224,6 +234,7 @@ public SearchResultDocument width(@javax.annotation.Nullable String width) { /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -243,6 +254,7 @@ public SearchResultDocument height(@javax.annotation.Nullable String height) { /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -262,6 +274,7 @@ public SearchResultDocument deepLinkPath(@javax.annotation.Nullable String deepL /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -281,6 +294,7 @@ public SearchResultDocument insertedDate(@javax.annotation.Nullable String inser /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -300,6 +314,7 @@ public SearchResultDocument lastModifiedDate(@javax.annotation.Nullable String l /** * Last Modified Timestamp + * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -319,6 +334,7 @@ public SearchResultDocument folder(@javax.annotation.Nullable Boolean folder) { /** * Is Result a Document Folder + * * @return folder */ @javax.annotation.Nullable @@ -338,6 +354,7 @@ public SearchResultDocument indexKey(@javax.annotation.Nullable String indexKey) /** * populated if search result are from an index + * * @return indexKey */ @javax.annotation.Nullable @@ -357,6 +374,7 @@ public SearchResultDocument checksum(@javax.annotation.Nullable String checksum) /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -376,6 +394,7 @@ public SearchResultDocument checksumType(@javax.annotation.Nullable ChecksumType /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -395,6 +414,7 @@ public SearchResultDocument documentId(@javax.annotation.Nullable String documen /** * Document Identifier + * * @return documentId */ @javax.annotation.Nullable @@ -414,6 +434,7 @@ public SearchResultDocument contentType(@javax.annotation.Nullable String conten /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -433,6 +454,7 @@ public SearchResultDocument userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -452,6 +474,7 @@ public SearchResultDocument contentLength(@javax.annotation.Nullable Integer con /** * Document size + * * @return contentLength */ @javax.annotation.Nullable @@ -471,6 +494,7 @@ public SearchResultDocument versionId(@javax.annotation.Nullable String versionI /** * Document version + * * @return versionId */ @javax.annotation.Nullable @@ -483,13 +507,15 @@ public void setVersionId(@javax.annotation.Nullable String versionId) { } - public SearchResultDocument belongsToDocumentId(@javax.annotation.Nullable String belongsToDocumentId) { + public SearchResultDocument belongsToDocumentId( + @javax.annotation.Nullable String belongsToDocumentId) { this.belongsToDocumentId = belongsToDocumentId; return this; } /** * Parent Document Identifier + * * @return belongsToDocumentId */ @javax.annotation.Nullable @@ -502,13 +528,15 @@ public void setBelongsToDocumentId(@javax.annotation.Nullable String belongsToDo } - public SearchResultDocument matchedAttribute(@javax.annotation.Nullable DocumentSearchMatchAttribute matchedAttribute) { + public SearchResultDocument matchedAttribute( + @javax.annotation.Nullable DocumentSearchMatchAttribute matchedAttribute) { this.matchedAttribute = matchedAttribute; return this; } /** * Get matchedAttribute + * * @return matchedAttribute */ @javax.annotation.Nullable @@ -516,18 +544,21 @@ public DocumentSearchMatchAttribute getMatchedAttribute() { return matchedAttribute; } - public void setMatchedAttribute(@javax.annotation.Nullable DocumentSearchMatchAttribute matchedAttribute) { + public void setMatchedAttribute( + @javax.annotation.Nullable DocumentSearchMatchAttribute matchedAttribute) { this.matchedAttribute = matchedAttribute; } - public SearchResultDocument matchedTag(@javax.annotation.Nullable DocumentSearchMatchTag matchedTag) { + public SearchResultDocument matchedTag( + @javax.annotation.Nullable DocumentSearchMatchTag matchedTag) { this.matchedTag = matchedTag; return this; } /** * Get matchedTag + * * @return matchedTag */ @javax.annotation.Nullable @@ -540,7 +571,8 @@ public void setMatchedTag(@javax.annotation.Nullable DocumentSearchMatchTag matc } - public SearchResultDocument matchedTags(@javax.annotation.Nullable List matchedTags) { + public SearchResultDocument matchedTags( + @javax.annotation.Nullable List matchedTags) { this.matchedTags = matchedTags; return this; } @@ -555,6 +587,7 @@ public SearchResultDocument addMatchedTagsItem(DocumentSearchMatchTag matchedTag /** * Get matchedTags + * * @return matchedTags */ @javax.annotation.Nullable @@ -582,6 +615,7 @@ public SearchResultDocument putTagsItem(String key, Object tagsItem) { /** * Get tags + * * @return tags */ @javax.annotation.Nullable @@ -594,12 +628,14 @@ public void setTags(@javax.annotation.Nullable Map tags) { } - public SearchResultDocument attributes(@javax.annotation.Nullable Map attributes) { + public SearchResultDocument attributes( + @javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } - public SearchResultDocument putAttributesItem(String key, SearchResultDocumentAttribute attributesItem) { + public SearchResultDocument putAttributesItem(String key, + SearchResultDocumentAttribute attributesItem) { if (this.attributes == null) { this.attributes = new HashMap<>(); } @@ -609,6 +645,7 @@ public SearchResultDocument putAttributesItem(String key, SearchResultDocumentAt /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -616,7 +653,8 @@ public Map getAttributes() { return attributes; } - public void setAttributes(@javax.annotation.Nullable Map attributes) { + public void setAttributes( + @javax.annotation.Nullable Map attributes) { this.attributes = attributes; } @@ -636,6 +674,7 @@ public SearchResultDocument addMetadataItem(DocumentMetadata metadataItem) { /** * List of document Metadata + * * @return metadata */ @javax.annotation.Nullable @@ -658,34 +697,37 @@ public boolean equals(Object o) { return false; } SearchResultDocument searchResultDocument = (SearchResultDocument) o; - return Objects.equals(this.siteId, searchResultDocument.siteId) && - Objects.equals(this.path, searchResultDocument.path) && - Objects.equals(this.width, searchResultDocument.width) && - Objects.equals(this.height, searchResultDocument.height) && - Objects.equals(this.deepLinkPath, searchResultDocument.deepLinkPath) && - Objects.equals(this.insertedDate, searchResultDocument.insertedDate) && - Objects.equals(this.lastModifiedDate, searchResultDocument.lastModifiedDate) && - Objects.equals(this.folder, searchResultDocument.folder) && - Objects.equals(this.indexKey, searchResultDocument.indexKey) && - Objects.equals(this.checksum, searchResultDocument.checksum) && - Objects.equals(this.checksumType, searchResultDocument.checksumType) && - Objects.equals(this.documentId, searchResultDocument.documentId) && - Objects.equals(this.contentType, searchResultDocument.contentType) && - Objects.equals(this.userId, searchResultDocument.userId) && - Objects.equals(this.contentLength, searchResultDocument.contentLength) && - Objects.equals(this.versionId, searchResultDocument.versionId) && - Objects.equals(this.belongsToDocumentId, searchResultDocument.belongsToDocumentId) && - Objects.equals(this.matchedAttribute, searchResultDocument.matchedAttribute) && - Objects.equals(this.matchedTag, searchResultDocument.matchedTag) && - Objects.equals(this.matchedTags, searchResultDocument.matchedTags) && - Objects.equals(this.tags, searchResultDocument.tags) && - Objects.equals(this.attributes, searchResultDocument.attributes) && - Objects.equals(this.metadata, searchResultDocument.metadata); + return Objects.equals(this.siteId, searchResultDocument.siteId) + && Objects.equals(this.path, searchResultDocument.path) + && Objects.equals(this.width, searchResultDocument.width) + && Objects.equals(this.height, searchResultDocument.height) + && Objects.equals(this.deepLinkPath, searchResultDocument.deepLinkPath) + && Objects.equals(this.insertedDate, searchResultDocument.insertedDate) + && Objects.equals(this.lastModifiedDate, searchResultDocument.lastModifiedDate) + && Objects.equals(this.folder, searchResultDocument.folder) + && Objects.equals(this.indexKey, searchResultDocument.indexKey) + && Objects.equals(this.checksum, searchResultDocument.checksum) + && Objects.equals(this.checksumType, searchResultDocument.checksumType) + && Objects.equals(this.documentId, searchResultDocument.documentId) + && Objects.equals(this.contentType, searchResultDocument.contentType) + && Objects.equals(this.userId, searchResultDocument.userId) + && Objects.equals(this.contentLength, searchResultDocument.contentLength) + && Objects.equals(this.versionId, searchResultDocument.versionId) + && Objects.equals(this.belongsToDocumentId, searchResultDocument.belongsToDocumentId) + && Objects.equals(this.matchedAttribute, searchResultDocument.matchedAttribute) + && Objects.equals(this.matchedTag, searchResultDocument.matchedTag) + && Objects.equals(this.matchedTags, searchResultDocument.matchedTags) + && Objects.equals(this.tags, searchResultDocument.tags) + && Objects.equals(this.attributes, searchResultDocument.attributes) + && Objects.equals(this.metadata, searchResultDocument.metadata); } @Override public int hashCode() { - return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, folder, indexKey, checksum, checksumType, documentId, contentType, userId, contentLength, versionId, belongsToDocumentId, matchedAttribute, matchedTag, matchedTags, tags, attributes, metadata); + return Objects.hash(siteId, path, width, height, deepLinkPath, insertedDate, lastModifiedDate, + folder, indexKey, checksum, checksumType, documentId, contentType, userId, contentLength, + versionId, belongsToDocumentId, matchedAttribute, matchedTag, matchedTags, tags, attributes, + metadata); } @Override @@ -708,7 +750,8 @@ public String toString() { sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" contentLength: ").append(toIndentedString(contentLength)).append("\n"); sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); - sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)).append("\n"); + sb.append(" belongsToDocumentId: ").append(toIndentedString(belongsToDocumentId)) + .append("\n"); sb.append(" matchedAttribute: ").append(toIndentedString(matchedAttribute)).append("\n"); sb.append(" matchedTag: ").append(toIndentedString(matchedTag)).append("\n"); sb.append(" matchedTags: ").append(toIndentedString(matchedTags)).append("\n"); @@ -720,8 +763,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -736,7 +778,11 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "path", "width", "height", "deepLinkPath", "insertedDate", "lastModifiedDate", "folder", "indexKey", "checksum", "checksumType", "documentId", "contentType", "userId", "contentLength", "versionId", "belongsToDocumentId", "matchedAttribute", "matchedTag", "matchedTags", "tags", "attributes", "metadata")); + openapiFields = new HashSet( + Arrays.asList("siteId", "path", "width", "height", "deepLinkPath", "insertedDate", + "lastModifiedDate", "folder", "indexKey", "checksum", "checksumType", "documentId", + "contentType", "userId", "contentLength", "versionId", "belongsToDocumentId", + "matchedAttribute", "matchedTag", "matchedTags", "tags", "attributes", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -749,130 +795,182 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SearchResultDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SearchResultDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SearchResultDocument is not found in the empty JSON string", SearchResultDocument.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SearchResultDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SearchResultDocument is not found in the empty JSON string", + SearchResultDocument.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SearchResultDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SearchResultDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); - } - if ((jsonObj.get("indexKey") != null && !jsonObj.get("indexKey").isJsonNull()) && !jsonObj.get("indexKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexKey").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SearchResultDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SearchResultDocument` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) && !jsonObj.get("documentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("documentId").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) && !jsonObj.get("versionId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionId").toString())); - } - if ((jsonObj.get("belongsToDocumentId") != null && !jsonObj.get("belongsToDocumentId").isJsonNull()) && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("belongsToDocumentId").toString())); - } - // validate the optional field `matchedAttribute` - if (jsonObj.get("matchedAttribute") != null && !jsonObj.get("matchedAttribute").isJsonNull()) { - DocumentSearchMatchAttribute.validateJsonElement(jsonObj.get("matchedAttribute")); - } - // validate the optional field `matchedTag` - if (jsonObj.get("matchedTag") != null && !jsonObj.get("matchedTag").isJsonNull()) { - DocumentSearchMatchTag.validateJsonElement(jsonObj.get("matchedTag")); - } - if (jsonObj.get("matchedTags") != null && !jsonObj.get("matchedTags").isJsonNull()) { - JsonArray jsonArraymatchedTags = jsonObj.getAsJsonArray("matchedTags"); - if (jsonArraymatchedTags != null) { - // ensure the json data is an array - if (!jsonObj.get("matchedTags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `matchedTags` to be an array in the JSON string but got `%s`", jsonObj.get("matchedTags").toString())); - } - - // validate the optional field `matchedTags` (array) - for (int i = 0; i < jsonArraymatchedTags.size(); i++) { - DocumentSearchMatchTag.validateJsonElement(jsonArraymatchedTags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) + && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("lastModifiedDate").toString())); + } + if ((jsonObj.get("indexKey") != null && !jsonObj.get("indexKey").isJsonNull()) + && !jsonObj.get("indexKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `indexKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("indexKey").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if ((jsonObj.get("documentId") != null && !jsonObj.get("documentId").isJsonNull()) + && !jsonObj.get("documentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("documentId").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if ((jsonObj.get("versionId") != null && !jsonObj.get("versionId").isJsonNull()) + && !jsonObj.get("versionId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `versionId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("versionId").toString())); + } + if ((jsonObj.get("belongsToDocumentId") != null + && !jsonObj.get("belongsToDocumentId").isJsonNull()) + && !jsonObj.get("belongsToDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `belongsToDocumentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("belongsToDocumentId").toString())); + } + // validate the optional field `matchedAttribute` + if (jsonObj.get("matchedAttribute") != null && !jsonObj.get("matchedAttribute").isJsonNull()) { + DocumentSearchMatchAttribute.validateJsonElement(jsonObj.get("matchedAttribute")); + } + // validate the optional field `matchedTag` + if (jsonObj.get("matchedTag") != null && !jsonObj.get("matchedTag").isJsonNull()) { + DocumentSearchMatchTag.validateJsonElement(jsonObj.get("matchedTag")); + } + if (jsonObj.get("matchedTags") != null && !jsonObj.get("matchedTags").isJsonNull()) { + JsonArray jsonArraymatchedTags = jsonObj.getAsJsonArray("matchedTags"); + if (jsonArraymatchedTags != null) { + // ensure the json data is an array + if (!jsonObj.get("matchedTags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `matchedTags` to be an array in the JSON string but got `%s`", + jsonObj.get("matchedTags").toString())); } + + // validate the optional field `matchedTags` (array) + for (int i = 0; i < jsonArraymatchedTags.size(); i++) { + DocumentSearchMatchTag.validateJsonElement(jsonArraymatchedTags.get(i)); + } ; } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - }; + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `metadata` to be an array in the JSON string but got `%s`", + jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + DocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SearchResultDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SearchResultDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SearchResultDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SearchResultDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SearchResultDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SearchResultDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SearchResultDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SearchResultDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SearchResultDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SearchResultDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java b/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java index 3d17e6883..6962d6c51 100644 --- a/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * SearchResultDocumentAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SearchResultDocumentAttribute { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; @SerializedName(SERIALIZED_NAME_STRING_VALUES) @@ -76,10 +85,10 @@ public class SearchResultDocumentAttribute { @javax.annotation.Nullable private AttributeValueType valueType; - public SearchResultDocumentAttribute() { - } + public SearchResultDocumentAttribute() {} - public SearchResultDocumentAttribute stringValues(@javax.annotation.Nullable List stringValues) { + public SearchResultDocumentAttribute stringValues( + @javax.annotation.Nullable List stringValues) { this.stringValues = stringValues; return this; } @@ -94,6 +103,7 @@ public SearchResultDocumentAttribute addStringValuesItem(String stringValuesItem /** * Attribute with string values + * * @return stringValues */ @javax.annotation.Nullable @@ -106,7 +116,8 @@ public void setStringValues(@javax.annotation.Nullable List stringValues } - public SearchResultDocumentAttribute numberValues(@javax.annotation.Nullable List numberValues) { + public SearchResultDocumentAttribute numberValues( + @javax.annotation.Nullable List numberValues) { this.numberValues = numberValues; return this; } @@ -121,6 +132,7 @@ public SearchResultDocumentAttribute addNumberValuesItem(BigDecimal numberValues /** * Attribute with number values + * * @return numberValues */ @javax.annotation.Nullable @@ -133,13 +145,15 @@ public void setNumberValues(@javax.annotation.Nullable List numberVa } - public SearchResultDocumentAttribute booleanValue(@javax.annotation.Nullable Boolean booleanValue) { + public SearchResultDocumentAttribute booleanValue( + @javax.annotation.Nullable Boolean booleanValue) { this.booleanValue = booleanValue; return this; } /** * Attribute with boolean value + * * @return booleanValue */ @javax.annotation.Nullable @@ -152,13 +166,15 @@ public void setBooleanValue(@javax.annotation.Nullable Boolean booleanValue) { } - public SearchResultDocumentAttribute valueType(@javax.annotation.Nullable AttributeValueType valueType) { + public SearchResultDocumentAttribute valueType( + @javax.annotation.Nullable AttributeValueType valueType) { this.valueType = valueType; return this; } /** * Get valueType + * * @return valueType */ @javax.annotation.Nullable @@ -181,10 +197,10 @@ public boolean equals(Object o) { return false; } SearchResultDocumentAttribute searchResultDocumentAttribute = (SearchResultDocumentAttribute) o; - return Objects.equals(this.stringValues, searchResultDocumentAttribute.stringValues) && - Objects.equals(this.numberValues, searchResultDocumentAttribute.numberValues) && - Objects.equals(this.booleanValue, searchResultDocumentAttribute.booleanValue) && - Objects.equals(this.valueType, searchResultDocumentAttribute.valueType); + return Objects.equals(this.stringValues, searchResultDocumentAttribute.stringValues) + && Objects.equals(this.numberValues, searchResultDocumentAttribute.numberValues) + && Objects.equals(this.booleanValue, searchResultDocumentAttribute.booleanValue) + && Objects.equals(this.valueType, searchResultDocumentAttribute.valueType); } @Override @@ -205,8 +221,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -221,7 +236,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("stringValues", "numberValues", "booleanValue", "valueType")); + openapiFields = new HashSet( + Arrays.asList("stringValues", "numberValues", "booleanValue", "valueType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -231,63 +247,76 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SearchResultDocumentAttribute + * @throws IOException if the JSON Element is invalid with respect to + * SearchResultDocumentAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SearchResultDocumentAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SearchResultDocumentAttribute is not found in the empty JSON string", SearchResultDocumentAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SearchResultDocumentAttribute.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SearchResultDocumentAttribute is not found in the empty JSON string", + SearchResultDocumentAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SearchResultDocumentAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SearchResultDocumentAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() && !jsonObj.get("stringValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stringValues` to be an array in the JSON string but got `%s`", jsonObj.get("stringValues").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() && !jsonObj.get("numberValues").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `numberValues` to be an array in the JSON string but got `%s`", jsonObj.get("numberValues").toString())); - } - // validate the optional field `valueType` - if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { - AttributeValueType.validateJsonElement(jsonObj.get("valueType")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SearchResultDocumentAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SearchResultDocumentAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("stringValues") != null && !jsonObj.get("stringValues").isJsonNull() + && !jsonObj.get("stringValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stringValues` to be an array in the JSON string but got `%s`", + jsonObj.get("stringValues").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("numberValues") != null && !jsonObj.get("numberValues").isJsonNull() + && !jsonObj.get("numberValues").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `numberValues` to be an array in the JSON string but got `%s`", + jsonObj.get("numberValues").toString())); + } + // validate the optional field `valueType` + if (jsonObj.get("valueType") != null && !jsonObj.get("valueType").isJsonNull()) { + AttributeValueType.validateJsonElement(jsonObj.get("valueType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SearchResultDocumentAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SearchResultDocumentAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SearchResultDocumentAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SearchResultDocumentAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SearchResultDocumentAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SearchResultDocumentAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SearchResultDocumentAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SearchResultDocumentAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SearchResultDocumentAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SearchResultDocumentAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetClassificationRequest.java b/src/main/java/com/formkiq/client/model/SetClassificationRequest.java index df77e55cb..9611cc3d2 100644 --- a/src/main/java/com/formkiq/client/model/SetClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/SetClassificationRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * SetClassificationRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetClassificationRequest { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; @SerializedName(SERIALIZED_NAME_CLASSIFICATION) @javax.annotation.Nullable private AddClassification classification; - public SetClassificationRequest() { - } + public SetClassificationRequest() {} - public SetClassificationRequest classification(@javax.annotation.Nullable AddClassification classification) { + public SetClassificationRequest classification( + @javax.annotation.Nullable AddClassification classification) { this.classification = classification; return this; } /** * Get classification + * * @return classification */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +146,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetClassificationRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetClassificationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetClassificationRequest is not found in the empty JSON string", SetClassificationRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetClassificationRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetClassificationRequest is not found in the empty JSON string", + SetClassificationRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetClassificationRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetClassificationRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `classification` - if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { - AddClassification.validateJsonElement(jsonObj.get("classification")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetClassificationRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetClassificationRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `classification` + if (jsonObj.get("classification") != null && !jsonObj.get("classification").isJsonNull()) { + AddClassification.validateJsonElement(jsonObj.get("classification")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetClassificationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetClassificationRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetClassificationRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetClassificationRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetClassificationRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetClassificationRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetClassificationRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetClassificationRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetClassificationRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetClassificationRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java index 77e66c930..abc642354 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * Set List of document attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @javax.annotation.Nullable private AddDocumentAttributeValue attribute; - public SetDocumentAttributeRequest() { - } + public SetDocumentAttributeRequest() {} - public SetDocumentAttributeRequest attribute(@javax.annotation.Nullable AddDocumentAttributeValue attribute) { + public SetDocumentAttributeRequest attribute( + @javax.annotation.Nullable AddDocumentAttributeValue attribute) { this.attribute = attribute; return this; } /** * Get attribute + * * @return attribute */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +146,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentAttributeRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentAttributeRequest is not found in the empty JSON string", SetDocumentAttributeRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentAttributeRequest is not found in the empty JSON string", + SetDocumentAttributeRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentAttributeRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentAttributeRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `attribute` - if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { - AddDocumentAttributeValue.validateJsonElement(jsonObj.get("attribute")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentAttributeRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentAttributeRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `attribute` + if (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) { + AddDocumentAttributeValue.validateJsonElement(jsonObj.get("attribute")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentAttributeRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentAttributeRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentAttributeRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentAttributeRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentAttributeRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentAttributeRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentAttributeRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentAttributeRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentAttributeRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentAttributeRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java index 34cb24adc..780de9be8 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * Set List of document attributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentAttributesRequest { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public SetDocumentAttributesRequest() { - } + public SetDocumentAttributesRequest() {} - public SetDocumentAttributesRequest attributes(@javax.annotation.Nullable List attributes) { + public SetDocumentAttributesRequest attributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -78,6 +87,7 @@ public SetDocumentAttributesRequest addAttributesItem(AddDocumentAttribute attri /** * List of document attributes + * * @return attributes */ @javax.annotation.Nullable @@ -118,8 +128,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +156,70 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentAttributesRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentAttributesRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentAttributesRequest is not found in the empty JSON string", SetDocumentAttributesRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentAttributesRequest.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentAttributesRequest is not found in the empty JSON string", + SetDocumentAttributesRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentAttributesRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentAttributesRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentAttributesRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentAttributesRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentAttributesRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentAttributesRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentAttributesRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentAttributesRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentAttributesRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentAttributesRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentAttributesRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentAttributesRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentAttributesRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentAttributesRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java index 59efacda3..f791c1ad6 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,23 +57,26 @@ /** * SetDocumentDataClassificationRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentDataClassificationRequest { public static final String SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME = "llmPromptEntityName"; @SerializedName(SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME) @javax.annotation.Nonnull private String llmPromptEntityName; - public SetDocumentDataClassificationRequest() { - } + public SetDocumentDataClassificationRequest() {} - public SetDocumentDataClassificationRequest llmPromptEntityName(@javax.annotation.Nonnull String llmPromptEntityName) { + public SetDocumentDataClassificationRequest llmPromptEntityName( + @javax.annotation.Nonnull String llmPromptEntityName) { this.llmPromptEntityName = llmPromptEntityName; return this; } /** * Name of the LLM Prompt Entity + * * @return llmPromptEntityName */ @javax.annotation.Nonnull @@ -88,8 +98,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SetDocumentDataClassificationRequest setDocumentDataClassificationRequest = (SetDocumentDataClassificationRequest) o; - return Objects.equals(this.llmPromptEntityName, setDocumentDataClassificationRequest.llmPromptEntityName); + SetDocumentDataClassificationRequest setDocumentDataClassificationRequest = + (SetDocumentDataClassificationRequest) o; + return Objects.equals(this.llmPromptEntityName, + setDocumentDataClassificationRequest.llmPromptEntityName); } @Override @@ -101,14 +113,14 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SetDocumentDataClassificationRequest {\n"); - sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)).append("\n"); + sb.append(" llmPromptEntityName: ").append(toIndentedString(llmPromptEntityName)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,61 +145,75 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SetDocumentDataClassificationRequest + * @throws IOException if the JSON Element is invalid with respect to + * SetDocumentDataClassificationRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentDataClassificationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentDataClassificationRequest is not found in the empty JSON string", SetDocumentDataClassificationRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentDataClassificationRequest.openapiRequiredFields.isEmpty()) { // has required + // fields but + // JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentDataClassificationRequest is not found in the empty JSON string", + SetDocumentDataClassificationRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentDataClassificationRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentDataClassificationRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentDataClassificationRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentDataClassificationRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SetDocumentDataClassificationRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("llmPromptEntityName").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetDocumentDataClassificationRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("llmPromptEntityName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `llmPromptEntityName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("llmPromptEntityName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentDataClassificationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentDataClassificationRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentDataClassificationRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentDataClassificationRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentDataClassificationRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentDataClassificationRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentDataClassificationRequest' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentDataClassificationRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentDataClassificationRequest value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentDataClassificationRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -196,9 +222,11 @@ public SetDocumentDataClassificationRequest read(JsonReader in) throws IOExcepti * * @param jsonString JSON string * @return An instance of SetDocumentDataClassificationRequest - * @throws IOException if the JSON string is invalid with respect to SetDocumentDataClassificationRequest + * @throws IOException if the JSON string is invalid with respect to + * SetDocumentDataClassificationRequest */ - public static SetDocumentDataClassificationRequest fromJson(String jsonString) throws IOException { + public static SetDocumentDataClassificationRequest fromJson(String jsonString) + throws IOException { return JSON.getGson().fromJson(jsonString, SetDocumentDataClassificationRequest.class); } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java index dcd567084..b299d2a6c 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * SetDocumentDataClassificationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentDataClassificationResponse { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) @@ -65,8 +74,7 @@ public class SetDocumentDataClassificationResponse { @javax.annotation.Nullable private List attributes = new ArrayList<>(); - public SetDocumentDataClassificationResponse() { - } + public SetDocumentDataClassificationResponse() {} public SetDocumentDataClassificationResponse content(@javax.annotation.Nullable String content) { this.content = content; @@ -75,6 +83,7 @@ public SetDocumentDataClassificationResponse content(@javax.annotation.Nullable /** * Result content + * * @return content */ @javax.annotation.Nullable @@ -87,12 +96,14 @@ public void setContent(@javax.annotation.Nullable String content) { } - public SetDocumentDataClassificationResponse attributes(@javax.annotation.Nullable List attributes) { + public SetDocumentDataClassificationResponse attributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } - public SetDocumentDataClassificationResponse addAttributesItem(DataClassificationAttribute attributesItem) { + public SetDocumentDataClassificationResponse addAttributesItem( + DataClassificationAttribute attributesItem) { if (this.attributes == null) { this.attributes = new ArrayList<>(); } @@ -102,6 +113,7 @@ public SetDocumentDataClassificationResponse addAttributesItem(DataClassificatio /** * Attributes extracted from result content + * * @return attributes */ @javax.annotation.Nullable @@ -109,7 +121,8 @@ public List getAttributes() { return attributes; } - public void setAttributes(@javax.annotation.Nullable List attributes) { + public void setAttributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; } @@ -123,9 +136,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SetDocumentDataClassificationResponse setDocumentDataClassificationResponse = (SetDocumentDataClassificationResponse) o; - return Objects.equals(this.content, setDocumentDataClassificationResponse.content) && - Objects.equals(this.attributes, setDocumentDataClassificationResponse.attributes); + SetDocumentDataClassificationResponse setDocumentDataClassificationResponse = + (SetDocumentDataClassificationResponse) o; + return Objects.equals(this.content, setDocumentDataClassificationResponse.content) + && Objects.equals(this.attributes, setDocumentDataClassificationResponse.attributes); } @Override @@ -144,8 +158,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -170,68 +183,83 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SetDocumentDataClassificationResponse + * @throws IOException if the JSON Element is invalid with respect to + * SetDocumentDataClassificationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentDataClassificationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentDataClassificationResponse is not found in the empty JSON string", SetDocumentDataClassificationResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentDataClassificationResponse.openapiRequiredFields.isEmpty()) { // has required + // fields but + // JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentDataClassificationResponse is not found in the empty JSON string", + SetDocumentDataClassificationResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentDataClassificationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentDataClassificationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentDataClassificationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentDataClassificationResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - DataClassificationAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) + && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + DataClassificationAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentDataClassificationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentDataClassificationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentDataClassificationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentDataClassificationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentDataClassificationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentDataClassificationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentDataClassificationResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentDataClassificationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentDataClassificationResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentDataClassificationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -240,9 +268,11 @@ public SetDocumentDataClassificationResponse read(JsonReader in) throws IOExcept * * @param jsonString JSON string * @return An instance of SetDocumentDataClassificationResponse - * @throws IOException if the JSON string is invalid with respect to SetDocumentDataClassificationResponse + * @throws IOException if the JSON string is invalid with respect to + * SetDocumentDataClassificationResponse */ - public static SetDocumentDataClassificationResponse fromJson(String jsonString) throws IOException { + public static SetDocumentDataClassificationResponse fromJson(String jsonString) + throws IOException { return JSON.getGson().fromJson(jsonString, SetDocumentDataClassificationResponse.class); } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java index a3f6e04df..5628bb8ed 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -58,7 +65,9 @@ /** * SetDocumentFulltextRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) @@ -120,8 +129,7 @@ public class SetDocumentFulltextRequest { @javax.annotation.Nullable private Map attributes = new HashMap<>(); - public SetDocumentFulltextRequest() { - } + public SetDocumentFulltextRequest() {} public SetDocumentFulltextRequest contentType(@javax.annotation.Nullable String contentType) { this.contentType = contentType; @@ -130,6 +138,7 @@ public SetDocumentFulltextRequest contentType(@javax.annotation.Nullable String /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -149,6 +158,7 @@ public SetDocumentFulltextRequest content(@javax.annotation.Nullable String cont /** * Document content + * * @return content */ @javax.annotation.Nullable @@ -161,7 +171,8 @@ public void setContent(@javax.annotation.Nullable String content) { } - public SetDocumentFulltextRequest contentUrls(@javax.annotation.Nullable List contentUrls) { + public SetDocumentFulltextRequest contentUrls( + @javax.annotation.Nullable List contentUrls) { this.contentUrls = contentUrls; return this; } @@ -176,6 +187,7 @@ public SetDocumentFulltextRequest addContentUrlsItem(String contentUrlsItem) { /** * URL(s) which contain document content + * * @return contentUrls */ @javax.annotation.Nullable @@ -195,6 +207,7 @@ public SetDocumentFulltextRequest path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -214,6 +227,7 @@ public SetDocumentFulltextRequest width(@javax.annotation.Nullable String width) /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -233,6 +247,7 @@ public SetDocumentFulltextRequest height(@javax.annotation.Nullable String heigh /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -252,6 +267,7 @@ public SetDocumentFulltextRequest deepLinkPath(@javax.annotation.Nullable String /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -271,6 +287,7 @@ public SetDocumentFulltextRequest checksum(@javax.annotation.Nullable String che /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -283,13 +300,15 @@ public void setChecksum(@javax.annotation.Nullable String checksum) { } - public SetDocumentFulltextRequest checksumType(@javax.annotation.Nullable ChecksumType checksumType) { + public SetDocumentFulltextRequest checksumType( + @javax.annotation.Nullable ChecksumType checksumType) { this.checksumType = checksumType; return this; } /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -317,6 +336,7 @@ public SetDocumentFulltextRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags + * * @return tags */ @javax.annotation.Nullable @@ -329,7 +349,8 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public SetDocumentFulltextRequest metadata(@javax.annotation.Nullable List metadata) { + public SetDocumentFulltextRequest metadata( + @javax.annotation.Nullable List metadata) { this.metadata = metadata; return this; } @@ -344,6 +365,7 @@ public SetDocumentFulltextRequest addMetadataItem(AddDocumentMetadata metadataIt /** * List of document Metadata + * * @return metadata */ @javax.annotation.Nullable @@ -356,12 +378,14 @@ public void setMetadata(@javax.annotation.Nullable List met } - public SetDocumentFulltextRequest attributes(@javax.annotation.Nullable Map attributes) { + public SetDocumentFulltextRequest attributes( + @javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } - public SetDocumentFulltextRequest putAttributesItem(String key, FulltextAttribute attributesItem) { + public SetDocumentFulltextRequest putAttributesItem(String key, + FulltextAttribute attributesItem) { if (this.attributes == null) { this.attributes = new HashMap<>(); } @@ -371,6 +395,7 @@ public SetDocumentFulltextRequest putAttributesItem(String key, FulltextAttribut /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -393,23 +418,24 @@ public boolean equals(Object o) { return false; } SetDocumentFulltextRequest setDocumentFulltextRequest = (SetDocumentFulltextRequest) o; - return Objects.equals(this.contentType, setDocumentFulltextRequest.contentType) && - Objects.equals(this.content, setDocumentFulltextRequest.content) && - Objects.equals(this.contentUrls, setDocumentFulltextRequest.contentUrls) && - Objects.equals(this.path, setDocumentFulltextRequest.path) && - Objects.equals(this.width, setDocumentFulltextRequest.width) && - Objects.equals(this.height, setDocumentFulltextRequest.height) && - Objects.equals(this.deepLinkPath, setDocumentFulltextRequest.deepLinkPath) && - Objects.equals(this.checksum, setDocumentFulltextRequest.checksum) && - Objects.equals(this.checksumType, setDocumentFulltextRequest.checksumType) && - Objects.equals(this.tags, setDocumentFulltextRequest.tags) && - Objects.equals(this.metadata, setDocumentFulltextRequest.metadata) && - Objects.equals(this.attributes, setDocumentFulltextRequest.attributes); + return Objects.equals(this.contentType, setDocumentFulltextRequest.contentType) + && Objects.equals(this.content, setDocumentFulltextRequest.content) + && Objects.equals(this.contentUrls, setDocumentFulltextRequest.contentUrls) + && Objects.equals(this.path, setDocumentFulltextRequest.path) + && Objects.equals(this.width, setDocumentFulltextRequest.width) + && Objects.equals(this.height, setDocumentFulltextRequest.height) + && Objects.equals(this.deepLinkPath, setDocumentFulltextRequest.deepLinkPath) + && Objects.equals(this.checksum, setDocumentFulltextRequest.checksum) + && Objects.equals(this.checksumType, setDocumentFulltextRequest.checksumType) + && Objects.equals(this.tags, setDocumentFulltextRequest.tags) + && Objects.equals(this.metadata, setDocumentFulltextRequest.metadata) + && Objects.equals(this.attributes, setDocumentFulltextRequest.attributes); } @Override public int hashCode() { - return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, checksum, checksumType, tags, metadata, attributes); + return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, + checksum, checksumType, tags, metadata, attributes); } @Override @@ -433,8 +459,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -449,7 +474,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); + openapiFields = new HashSet( + Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", + "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -462,105 +489,138 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentFulltextRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentFulltextRequest is not found in the empty JSON string", SetDocumentFulltextRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentFulltextRequest is not found in the empty JSON string", + SetDocumentFulltextRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentFulltextRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() && !jsonObj.get("contentUrls").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", jsonObj.get("contentUrls").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentFulltextRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) + && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() + && !jsonObj.get("contentUrls").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", + jsonObj.get("contentUrls").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - }; + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `metadata` to be an array in the JSON string but got `%s`", + jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentFulltextRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentFulltextRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentFulltextRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentFulltextRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentFulltextRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentFulltextRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentFulltextRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentFulltextRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java index a0465a93f..8d0991003 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * SetDocumentFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetDocumentFulltextResponse() { - } + public SetDocumentFulltextResponse() {} public SetDocumentFulltextResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public SetDocumentFulltextResponse message(@javax.annotation.Nullable String mes /** * Full text processing message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentFulltextResponse is not found in the empty JSON string", SetDocumentFulltextResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentFulltextResponse is not found in the empty JSON string", + SetDocumentFulltextResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentFulltextResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java index cb7068f10..14490be34 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * SetDocumentOcrRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentOcrRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) @@ -67,8 +76,7 @@ public class SetDocumentOcrRequest { @javax.annotation.Nonnull private String content; - public SetDocumentOcrRequest() { - } + public SetDocumentOcrRequest() {} public SetDocumentOcrRequest contentType(@javax.annotation.Nullable String contentType) { this.contentType = contentType; @@ -77,6 +85,7 @@ public SetDocumentOcrRequest contentType(@javax.annotation.Nullable String conte /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -96,6 +105,7 @@ public SetDocumentOcrRequest isBase64(@javax.annotation.Nullable Boolean isBase6 /** * Is the content Base64-encoded? + * * @return isBase64 */ @javax.annotation.Nullable @@ -115,6 +125,7 @@ public SetDocumentOcrRequest content(@javax.annotation.Nonnull String content) { /** * Document content + * * @return content */ @javax.annotation.Nonnull @@ -137,9 +148,9 @@ public boolean equals(Object o) { return false; } SetDocumentOcrRequest setDocumentOcrRequest = (SetDocumentOcrRequest) o; - return Objects.equals(this.contentType, setDocumentOcrRequest.contentType) && - Objects.equals(this.isBase64, setDocumentOcrRequest.isBase64) && - Objects.equals(this.content, setDocumentOcrRequest.content); + return Objects.equals(this.contentType, setDocumentOcrRequest.contentType) + && Objects.equals(this.isBase64, setDocumentOcrRequest.isBase64) + && Objects.equals(this.content, setDocumentOcrRequest.content); } @Override @@ -159,8 +170,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -188,61 +198,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentOcrRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentOcrRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentOcrRequest is not found in the empty JSON string", SetDocumentOcrRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentOcrRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentOcrRequest is not found in the empty JSON string", + SetDocumentOcrRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentOcrRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentOcrRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentOcrRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentOcrRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SetDocumentOcrRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if (!jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetDocumentOcrRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if (!jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentOcrRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentOcrRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentOcrRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentOcrRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentOcrRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentOcrRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentOcrRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentOcrRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentOcrRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentOcrRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java index 65974d253..cdaf14b1f 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * SetDocumentRestoreResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentRestoreResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetDocumentRestoreResponse() { - } + public SetDocumentRestoreResponse() {} public SetDocumentRestoreResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public SetDocumentRestoreResponse message(@javax.annotation.Nullable String mess /** * Document Document restore message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentRestoreResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentRestoreResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentRestoreResponse is not found in the empty JSON string", SetDocumentRestoreResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentRestoreResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentRestoreResponse is not found in the empty JSON string", + SetDocumentRestoreResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentRestoreResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentRestoreResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentRestoreResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentRestoreResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentRestoreResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentRestoreResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentRestoreResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentRestoreResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentRestoreResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentRestoreResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentRestoreResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentRestoreResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentRestoreResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentRestoreResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java index cbef07187..b6ba814ac 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * SetDocumentTagKeyRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentTagKeyRequest { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -64,8 +73,7 @@ public class SetDocumentTagKeyRequest { @javax.annotation.Nullable private List values = new ArrayList<>(); - public SetDocumentTagKeyRequest() { - } + public SetDocumentTagKeyRequest() {} public SetDocumentTagKeyRequest value(@javax.annotation.Nullable String value) { this.value = value; @@ -74,6 +82,7 @@ public SetDocumentTagKeyRequest value(@javax.annotation.Nullable String value) { /** * Tag value + * * @return value */ @javax.annotation.Nullable @@ -101,6 +110,7 @@ public SetDocumentTagKeyRequest addValuesItem(String valuesItem) { /** * Tag values + * * @return values */ @javax.annotation.Nullable @@ -123,8 +133,8 @@ public boolean equals(Object o) { return false; } SetDocumentTagKeyRequest setDocumentTagKeyRequest = (SetDocumentTagKeyRequest) o; - return Objects.equals(this.value, setDocumentTagKeyRequest.value) && - Objects.equals(this.values, setDocumentTagKeyRequest.values); + return Objects.equals(this.value, setDocumentTagKeyRequest.value) + && Objects.equals(this.values, setDocumentTagKeyRequest.values); } @Override @@ -143,8 +153,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,55 +181,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentTagKeyRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentTagKeyRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentTagKeyRequest is not found in the empty JSON string", SetDocumentTagKeyRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentTagKeyRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentTagKeyRequest is not found in the empty JSON string", + SetDocumentTagKeyRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentTagKeyRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentTagKeyRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() && !jsonObj.get("values").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentTagKeyRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentTagKeyRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) + && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("values") != null && !jsonObj.get("values").isJsonNull() + && !jsonObj.get("values").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `values` to be an array in the JSON string but got `%s`", + jsonObj.get("values").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentTagKeyRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentTagKeyRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentTagKeyRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentTagKeyRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentTagKeyRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentTagKeyRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentTagKeyRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentTagKeyRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentTagKeyRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentTagKeyRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java index da3e40206..d26bae538 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * SetDocumentVersionRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentVersionRequest { public static final String SERIALIZED_NAME_VERSION_KEY = "versionKey"; @SerializedName(SERIALIZED_NAME_VERSION_KEY) @javax.annotation.Nullable private String versionKey; - public SetDocumentVersionRequest() { - } + public SetDocumentVersionRequest() {} public SetDocumentVersionRequest versionKey(@javax.annotation.Nullable String versionKey) { this.versionKey = versionKey; @@ -67,6 +75,7 @@ public SetDocumentVersionRequest versionKey(@javax.annotation.Nullable String ve /** * VersionKey returned by the GET /documents/{documentId}/versions to revert to + * * @return versionKey */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentVersionRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentVersionRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentVersionRequest is not found in the empty JSON string", SetDocumentVersionRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentVersionRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentVersionRequest is not found in the empty JSON string", + SetDocumentVersionRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentVersionRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentVersionRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) && !jsonObj.get("versionKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("versionKey").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentVersionRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentVersionRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("versionKey") != null && !jsonObj.get("versionKey").isJsonNull()) + && !jsonObj.get("versionKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `versionKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("versionKey").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentVersionRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentVersionRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentVersionRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentVersionRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentVersionRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentVersionRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentVersionRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentVersionRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentVersionRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentVersionRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java index 5d45affb9..71e4da5c3 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * SetDocumentVersionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetDocumentVersionResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetDocumentVersionResponse() { - } + public SetDocumentVersionResponse() {} public SetDocumentVersionResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public SetDocumentVersionResponse message(@javax.annotation.Nullable String mess /** * Response Message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetDocumentVersionResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetDocumentVersionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetDocumentVersionResponse is not found in the empty JSON string", SetDocumentVersionResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetDocumentVersionResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetDocumentVersionResponse is not found in the empty JSON string", + SetDocumentVersionResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetDocumentVersionResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetDocumentVersionResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetDocumentVersionResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetDocumentVersionResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetDocumentVersionResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetDocumentVersionResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetDocumentVersionResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetDocumentVersionResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetDocumentVersionResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetDocumentVersionResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetDocumentVersionResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetDocumentVersionResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetDocumentVersionResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetDocumentVersionResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java b/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java index 92f210d3a..c158d8d62 100644 --- a/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * SetFolderPermissionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetFolderPermissionsRequest { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -65,8 +74,7 @@ public class SetFolderPermissionsRequest { @javax.annotation.Nullable private List roles = new ArrayList<>(); - public SetFolderPermissionsRequest() { - } + public SetFolderPermissionsRequest() {} public SetFolderPermissionsRequest path(@javax.annotation.Nullable String path) { this.path = path; @@ -75,6 +83,7 @@ public SetFolderPermissionsRequest path(@javax.annotation.Nullable String path) /** * Path of Folder + * * @return path */ @javax.annotation.Nullable @@ -87,7 +96,8 @@ public void setPath(@javax.annotation.Nullable String path) { } - public SetFolderPermissionsRequest roles(@javax.annotation.Nullable List roles) { + public SetFolderPermissionsRequest roles( + @javax.annotation.Nullable List roles) { this.roles = roles; return this; } @@ -102,6 +112,7 @@ public SetFolderPermissionsRequest addRolesItem(AddFolderPermission rolesItem) { /** * Get roles + * * @return roles */ @javax.annotation.Nullable @@ -124,8 +135,8 @@ public boolean equals(Object o) { return false; } SetFolderPermissionsRequest setFolderPermissionsRequest = (SetFolderPermissionsRequest) o; - return Objects.equals(this.path, setFolderPermissionsRequest.path) && - Objects.equals(this.roles, setFolderPermissionsRequest.roles); + return Objects.equals(this.path, setFolderPermissionsRequest.path) + && Objects.equals(this.roles, setFolderPermissionsRequest.roles); } @Override @@ -144,8 +155,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -173,65 +183,75 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetFolderPermissionsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetFolderPermissionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetFolderPermissionsRequest is not found in the empty JSON string", SetFolderPermissionsRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetFolderPermissionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetFolderPermissionsRequest is not found in the empty JSON string", + SetFolderPermissionsRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetFolderPermissionsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetFolderPermissionsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetFolderPermissionsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetFolderPermissionsRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull()) { - JsonArray jsonArrayroles = jsonObj.getAsJsonArray("roles"); - if (jsonArrayroles != null) { - // ensure the json data is an array - if (!jsonObj.get("roles").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `roles` to be an array in the JSON string but got `%s`", jsonObj.get("roles").toString())); - } - - // validate the optional field `roles` (array) - for (int i = 0; i < jsonArrayroles.size(); i++) { - AddFolderPermission.validateJsonElement(jsonArrayroles.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if (jsonObj.get("roles") != null && !jsonObj.get("roles").isJsonNull()) { + JsonArray jsonArrayroles = jsonObj.getAsJsonArray("roles"); + if (jsonArrayroles != null) { + // ensure the json data is an array + if (!jsonObj.get("roles").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `roles` to be an array in the JSON string but got `%s`", + jsonObj.get("roles").toString())); } + + // validate the optional field `roles` (array) + for (int i = 0; i < jsonArrayroles.size(); i++) { + AddFolderPermission.validateJsonElement(jsonArrayroles.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetFolderPermissionsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetFolderPermissionsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetFolderPermissionsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetFolderPermissionsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetFolderPermissionsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetFolderPermissionsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetFolderPermissionsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetFolderPermissionsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetFolderPermissionsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetFolderPermissionsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java b/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java index 7f540282d..65c36fbbb 100644 --- a/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * SetGroupPermissionsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetGroupPermissionsRequest { public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; @SerializedName(SERIALIZED_NAME_PERMISSIONS) @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public SetGroupPermissionsRequest() { - } + public SetGroupPermissionsRequest() {} - public SetGroupPermissionsRequest permissions(@javax.annotation.Nullable List permissions) { + public SetGroupPermissionsRequest permissions( + @javax.annotation.Nullable List permissions) { this.permissions = permissions; return this; } @@ -78,6 +87,7 @@ public SetGroupPermissionsRequest addPermissionsItem(SiteGroupPermissions permis /** * Get permissions + * * @return permissions */ @javax.annotation.Nullable @@ -118,8 +128,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,52 +156,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetGroupPermissionsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetGroupPermissionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetGroupPermissionsRequest is not found in the empty JSON string", SetGroupPermissionsRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetGroupPermissionsRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetGroupPermissionsRequest is not found in the empty JSON string", + SetGroupPermissionsRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetGroupPermissionsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetGroupPermissionsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetGroupPermissionsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetGroupPermissionsRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() + && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `permissions` to be an array in the JSON string but got `%s`", + jsonObj.get("permissions").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetGroupPermissionsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetGroupPermissionsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetGroupPermissionsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetGroupPermissionsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetGroupPermissionsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetGroupPermissionsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetGroupPermissionsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetGroupPermissionsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetGroupPermissionsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetGroupPermissionsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java b/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java index 564611fce..0c0b1e49d 100644 --- a/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java +++ b/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * SetLocaleResourceItemRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetLocaleResourceItemRequest { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; @SerializedName(SERIALIZED_NAME_RESOURCE_ITEM) @javax.annotation.Nullable private AddResourceItem resourceItem; - public SetLocaleResourceItemRequest() { - } + public SetLocaleResourceItemRequest() {} - public SetLocaleResourceItemRequest resourceItem(@javax.annotation.Nullable AddResourceItem resourceItem) { + public SetLocaleResourceItemRequest resourceItem( + @javax.annotation.Nullable AddResourceItem resourceItem) { this.resourceItem = resourceItem; return this; } /** * Get resourceItem + * * @return resourceItem */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +146,58 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetLocaleResourceItemRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetLocaleResourceItemRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetLocaleResourceItemRequest is not found in the empty JSON string", SetLocaleResourceItemRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetLocaleResourceItemRequest.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetLocaleResourceItemRequest is not found in the empty JSON string", + SetLocaleResourceItemRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetLocaleResourceItemRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetLocaleResourceItemRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `resourceItem` - if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { - AddResourceItem.validateJsonElement(jsonObj.get("resourceItem")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetLocaleResourceItemRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetLocaleResourceItemRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `resourceItem` + if (jsonObj.get("resourceItem") != null && !jsonObj.get("resourceItem").isJsonNull()) { + AddResourceItem.validateJsonElement(jsonObj.get("resourceItem")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetLocaleResourceItemRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetLocaleResourceItemRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetLocaleResourceItemRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetLocaleResourceItemRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetLocaleResourceItemRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetLocaleResourceItemRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetLocaleResourceItemRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetLocaleResourceItemRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetLocaleResourceItemRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetLocaleResourceItemRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetMappingRequest.java b/src/main/java/com/formkiq/client/model/SetMappingRequest.java index 6a1703a91..b1fe86f8d 100644 --- a/src/main/java/com/formkiq/client/model/SetMappingRequest.java +++ b/src/main/java/com/formkiq/client/model/SetMappingRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * SetMappingRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetMappingRequest { public static final String SERIALIZED_NAME_MAPPING = "mapping"; @SerializedName(SERIALIZED_NAME_MAPPING) @javax.annotation.Nullable private AddMapping mapping; - public SetMappingRequest() { - } + public SetMappingRequest() {} public SetMappingRequest mapping(@javax.annotation.Nullable AddMapping mapping) { this.mapping = mapping; @@ -68,6 +76,7 @@ public SetMappingRequest mapping(@javax.annotation.Nullable AddMapping mapping) /** * Get mapping + * * @return mapping */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetMappingRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetMappingRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetMappingRequest is not found in the empty JSON string", SetMappingRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetMappingRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetMappingRequest is not found in the empty JSON string", + SetMappingRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetMappingRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetMappingRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `mapping` - if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { - AddMapping.validateJsonElement(jsonObj.get("mapping")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetMappingRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetMappingRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `mapping` + if (jsonObj.get("mapping") != null && !jsonObj.get("mapping").isJsonNull()) { + AddMapping.validateJsonElement(jsonObj.get("mapping")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetMappingRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetMappingRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetMappingRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetMappingRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetMappingRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetMappingRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetMappingRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetMappingRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetMappingRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetMappingRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java b/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java index a84c6f90c..407ca8e8c 100644 --- a/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * SetOpaAccessPolicyItemsRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetOpaAccessPolicyItemsRequest { public static final String SERIALIZED_NAME_POLICY_ITEMS = "policyItems"; @SerializedName(SERIALIZED_NAME_POLICY_ITEMS) @javax.annotation.Nonnull private List policyItems = new ArrayList<>(); - public SetOpaAccessPolicyItemsRequest() { - } + public SetOpaAccessPolicyItemsRequest() {} - public SetOpaAccessPolicyItemsRequest policyItems(@javax.annotation.Nonnull List policyItems) { + public SetOpaAccessPolicyItemsRequest policyItems( + @javax.annotation.Nonnull List policyItems) { this.policyItems = policyItems; return this; } @@ -78,6 +87,7 @@ public SetOpaAccessPolicyItemsRequest addPolicyItemsItem(OpaPolicyItem policyIte /** * List of OPA policy items + * * @return policyItems */ @javax.annotation.Nonnull @@ -99,7 +109,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest = (SetOpaAccessPolicyItemsRequest) o; + SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest = + (SetOpaAccessPolicyItemsRequest) o; return Objects.equals(this.policyItems, setOpaAccessPolicyItemsRequest.policyItems); } @@ -118,8 +129,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,68 +154,79 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to SetOpaAccessPolicyItemsRequest + * @throws IOException if the JSON Element is invalid with respect to + * SetOpaAccessPolicyItemsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetOpaAccessPolicyItemsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetOpaAccessPolicyItemsRequest is not found in the empty JSON string", SetOpaAccessPolicyItemsRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetOpaAccessPolicyItemsRequest.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetOpaAccessPolicyItemsRequest is not found in the empty JSON string", + SetOpaAccessPolicyItemsRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetOpaAccessPolicyItemsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetOpaAccessPolicyItemsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetOpaAccessPolicyItemsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetOpaAccessPolicyItemsRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SetOpaAccessPolicyItemsRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the json data is an array - if (!jsonObj.get("policyItems").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policyItems` to be an array in the JSON string but got `%s`", jsonObj.get("policyItems").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetOpaAccessPolicyItemsRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the json data is an array + if (!jsonObj.get("policyItems").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `policyItems` to be an array in the JSON string but got `%s`", + jsonObj.get("policyItems").toString())); + } - JsonArray jsonArraypolicyItems = jsonObj.getAsJsonArray("policyItems"); - // validate the required field `policyItems` (array) - for (int i = 0; i < jsonArraypolicyItems.size(); i++) { - OpaPolicyItem.validateJsonElement(jsonArraypolicyItems.get(i)); - }; + JsonArray jsonArraypolicyItems = jsonObj.getAsJsonArray("policyItems"); + // validate the required field `policyItems` (array) + for (int i = 0; i < jsonArraypolicyItems.size(); i++) { + OpaPolicyItem.validateJsonElement(jsonArraypolicyItems.get(i)); + } ; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetOpaAccessPolicyItemsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetOpaAccessPolicyItemsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetOpaAccessPolicyItemsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetOpaAccessPolicyItemsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetOpaAccessPolicyItemsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetOpaAccessPolicyItemsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetOpaAccessPolicyItemsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetOpaAccessPolicyItemsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetOpaAccessPolicyItemsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetOpaAccessPolicyItemsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -214,7 +235,8 @@ public SetOpaAccessPolicyItemsRequest read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of SetOpaAccessPolicyItemsRequest - * @throws IOException if the JSON string is invalid with respect to SetOpaAccessPolicyItemsRequest + * @throws IOException if the JSON string is invalid with respect to + * SetOpaAccessPolicyItemsRequest */ public static SetOpaAccessPolicyItemsRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SetOpaAccessPolicyItemsRequest.class); diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java index 6af074076..4d7d45205 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * SetOpenSearchIndexRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetOpenSearchIndexRequest { public static final String SERIALIZED_NAME_INDEX_SETTINGS = "indexSettings"; @SerializedName(SERIALIZED_NAME_INDEX_SETTINGS) @javax.annotation.Nullable private OpenSearchIndexSetting indexSettings; - public SetOpenSearchIndexRequest() { - } + public SetOpenSearchIndexRequest() {} - public SetOpenSearchIndexRequest indexSettings(@javax.annotation.Nullable OpenSearchIndexSetting indexSettings) { + public SetOpenSearchIndexRequest indexSettings( + @javax.annotation.Nullable OpenSearchIndexSetting indexSettings) { this.indexSettings = indexSettings; return this; } /** * Get indexSettings + * * @return indexSettings */ @javax.annotation.Nullable @@ -108,8 +118,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +146,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetOpenSearchIndexRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetOpenSearchIndexRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetOpenSearchIndexRequest is not found in the empty JSON string", SetOpenSearchIndexRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetOpenSearchIndexRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetOpenSearchIndexRequest is not found in the empty JSON string", + SetOpenSearchIndexRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetOpenSearchIndexRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndexRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `indexSettings` - if (jsonObj.get("indexSettings") != null && !jsonObj.get("indexSettings").isJsonNull()) { - OpenSearchIndexSetting.validateJsonElement(jsonObj.get("indexSettings")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetOpenSearchIndexRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndexRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `indexSettings` + if (jsonObj.get("indexSettings") != null && !jsonObj.get("indexSettings").isJsonNull()) { + OpenSearchIndexSetting.validateJsonElement(jsonObj.get("indexSettings")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetOpenSearchIndexRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetOpenSearchIndexRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndexRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetOpenSearchIndexRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetOpenSearchIndexRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetOpenSearchIndexRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetOpenSearchIndexRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndexRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetOpenSearchIndexRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetOpenSearchIndexRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java index d6cefe77e..7ec3c95ec 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * SetOpenSearchIndexResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetOpenSearchIndexResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetOpenSearchIndexResponse() { - } + public SetOpenSearchIndexResponse() {} public SetOpenSearchIndexResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public SetOpenSearchIndexResponse message(@javax.annotation.Nullable String mess /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetOpenSearchIndexResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetOpenSearchIndexResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetOpenSearchIndexResponse is not found in the empty JSON string", SetOpenSearchIndexResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetOpenSearchIndexResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetOpenSearchIndexResponse is not found in the empty JSON string", + SetOpenSearchIndexResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetOpenSearchIndexResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndexResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetOpenSearchIndexResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndexResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetOpenSearchIndexResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetOpenSearchIndexResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndexResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetOpenSearchIndexResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetOpenSearchIndexResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetOpenSearchIndexResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetOpenSearchIndexResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndexResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetOpenSearchIndexResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetOpenSearchIndexResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java index 3692f0d7d..371b2ad31 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * SetOpenSearchIndiceRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetOpenSearchIndiceRequest { public static final String SERIALIZED_NAME_INDEX_NAME = "indexName"; @SerializedName(SERIALIZED_NAME_INDEX_NAME) @javax.annotation.Nullable private String indexName; - public SetOpenSearchIndiceRequest() { - } + public SetOpenSearchIndiceRequest() {} public SetOpenSearchIndiceRequest indexName(@javax.annotation.Nullable String indexName) { this.indexName = indexName; @@ -67,6 +75,7 @@ public SetOpenSearchIndiceRequest indexName(@javax.annotation.Nullable String in /** * The name of the index to set for SiteId + * * @return indexName */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetOpenSearchIndiceRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetOpenSearchIndiceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetOpenSearchIndiceRequest is not found in the empty JSON string", SetOpenSearchIndiceRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetOpenSearchIndiceRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetOpenSearchIndiceRequest is not found in the empty JSON string", + SetOpenSearchIndiceRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetOpenSearchIndiceRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndiceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("indexName") != null && !jsonObj.get("indexName").isJsonNull()) && !jsonObj.get("indexName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `indexName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("indexName").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetOpenSearchIndiceRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetOpenSearchIndiceRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("indexName") != null && !jsonObj.get("indexName").isJsonNull()) + && !jsonObj.get("indexName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `indexName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("indexName").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetOpenSearchIndiceRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetOpenSearchIndiceRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndiceRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetOpenSearchIndiceRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetOpenSearchIndiceRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetOpenSearchIndiceRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetOpenSearchIndiceRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetOpenSearchIndiceRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetOpenSearchIndiceRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetOpenSearchIndiceRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetResponse.java b/src/main/java/com/formkiq/client/model/SetResponse.java index d8f223b84..5d218c9c8 100644 --- a/src/main/java/com/formkiq/client/model/SetResponse.java +++ b/src/main/java/com/formkiq/client/model/SetResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * SetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetResponse() { - } + public SetResponse() {} public SetResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public SetResponse message(@javax.annotation.Nullable String message) { /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetResponse is not found in the empty JSON string", SetResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetResponse is not found in the empty JSON string", + SetResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java b/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java index dba356db1..999e61320 100644 --- a/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java +++ b/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * SetSchemaAttributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetSchemaAttributes { public static final String SERIALIZED_NAME_COMPOSITE_KEYS = "compositeKeys"; @SerializedName(SERIALIZED_NAME_COMPOSITE_KEYS) @@ -72,15 +81,16 @@ public class SetSchemaAttributes { @javax.annotation.Nullable private List optional = new ArrayList<>(); - public static final String SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES = "allowAdditionalAttributes"; + public static final String SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES = + "allowAdditionalAttributes"; @SerializedName(SERIALIZED_NAME_ALLOW_ADDITIONAL_ATTRIBUTES) @javax.annotation.Nullable private Boolean allowAdditionalAttributes = true; - public SetSchemaAttributes() { - } + public SetSchemaAttributes() {} - public SetSchemaAttributes compositeKeys(@javax.annotation.Nullable List compositeKeys) { + public SetSchemaAttributes compositeKeys( + @javax.annotation.Nullable List compositeKeys) { this.compositeKeys = compositeKeys; return this; } @@ -95,6 +105,7 @@ public SetSchemaAttributes addCompositeKeysItem(AttributeSchemaCompositeKey comp /** * List of Composite Keys + * * @return compositeKeys */ @javax.annotation.Nullable @@ -102,12 +113,14 @@ public List getCompositeKeys() { return compositeKeys; } - public void setCompositeKeys(@javax.annotation.Nullable List compositeKeys) { + public void setCompositeKeys( + @javax.annotation.Nullable List compositeKeys) { this.compositeKeys = compositeKeys; } - public SetSchemaAttributes required(@javax.annotation.Nullable List required) { + public SetSchemaAttributes required( + @javax.annotation.Nullable List required) { this.required = required; return this; } @@ -122,6 +135,7 @@ public SetSchemaAttributes addRequiredItem(AddAttributeSchemaRequired requiredIt /** * List of Required Attributes + * * @return required */ @javax.annotation.Nullable @@ -134,7 +148,8 @@ public void setRequired(@javax.annotation.Nullable List optional) { + public SetSchemaAttributes optional( + @javax.annotation.Nullable List optional) { this.optional = optional; return this; } @@ -149,6 +164,7 @@ public SetSchemaAttributes addOptionalItem(AddAttributeSchemaOptional optionalIt /** * List of Optional Attribute + * * @return optional */ @javax.annotation.Nullable @@ -161,13 +177,15 @@ public void setOptional(@javax.annotation.Nullable List(Arrays.asList("compositeKeys", "required", "optional", "allowAdditionalAttributes")); + openapiFields = new HashSet( + Arrays.asList("compositeKeys", "required", "optional", "allowAdditionalAttributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -243,90 +263,101 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetSchemaAttributes */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetSchemaAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetSchemaAttributes is not found in the empty JSON string", SetSchemaAttributes.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetSchemaAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetSchemaAttributes is not found in the empty JSON string", + SetSchemaAttributes.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetSchemaAttributes.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetSchemaAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetSchemaAttributes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetSchemaAttributes` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("compositeKeys") != null && !jsonObj.get("compositeKeys").isJsonNull()) { - JsonArray jsonArraycompositeKeys = jsonObj.getAsJsonArray("compositeKeys"); - if (jsonArraycompositeKeys != null) { - // ensure the json data is an array - if (!jsonObj.get("compositeKeys").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `compositeKeys` to be an array in the JSON string but got `%s`", jsonObj.get("compositeKeys").toString())); - } - - // validate the optional field `compositeKeys` (array) - for (int i = 0; i < jsonArraycompositeKeys.size(); i++) { - AttributeSchemaCompositeKey.validateJsonElement(jsonArraycompositeKeys.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("compositeKeys") != null && !jsonObj.get("compositeKeys").isJsonNull()) { + JsonArray jsonArraycompositeKeys = jsonObj.getAsJsonArray("compositeKeys"); + if (jsonArraycompositeKeys != null) { + // ensure the json data is an array + if (!jsonObj.get("compositeKeys").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `compositeKeys` to be an array in the JSON string but got `%s`", + jsonObj.get("compositeKeys").toString())); } + + // validate the optional field `compositeKeys` (array) + for (int i = 0; i < jsonArraycompositeKeys.size(); i++) { + AttributeSchemaCompositeKey.validateJsonElement(jsonArraycompositeKeys.get(i)); + } ; } - if (jsonObj.get("required") != null && !jsonObj.get("required").isJsonNull()) { - JsonArray jsonArrayrequired = jsonObj.getAsJsonArray("required"); - if (jsonArrayrequired != null) { - // ensure the json data is an array - if (!jsonObj.get("required").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `required` to be an array in the JSON string but got `%s`", jsonObj.get("required").toString())); - } - - // validate the optional field `required` (array) - for (int i = 0; i < jsonArrayrequired.size(); i++) { - AddAttributeSchemaRequired.validateJsonElement(jsonArrayrequired.get(i)); - }; + } + if (jsonObj.get("required") != null && !jsonObj.get("required").isJsonNull()) { + JsonArray jsonArrayrequired = jsonObj.getAsJsonArray("required"); + if (jsonArrayrequired != null) { + // ensure the json data is an array + if (!jsonObj.get("required").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `required` to be an array in the JSON string but got `%s`", + jsonObj.get("required").toString())); } + + // validate the optional field `required` (array) + for (int i = 0; i < jsonArrayrequired.size(); i++) { + AddAttributeSchemaRequired.validateJsonElement(jsonArrayrequired.get(i)); + } ; } - if (jsonObj.get("optional") != null && !jsonObj.get("optional").isJsonNull()) { - JsonArray jsonArrayoptional = jsonObj.getAsJsonArray("optional"); - if (jsonArrayoptional != null) { - // ensure the json data is an array - if (!jsonObj.get("optional").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `optional` to be an array in the JSON string but got `%s`", jsonObj.get("optional").toString())); - } - - // validate the optional field `optional` (array) - for (int i = 0; i < jsonArrayoptional.size(); i++) { - AddAttributeSchemaOptional.validateJsonElement(jsonArrayoptional.get(i)); - }; + } + if (jsonObj.get("optional") != null && !jsonObj.get("optional").isJsonNull()) { + JsonArray jsonArrayoptional = jsonObj.getAsJsonArray("optional"); + if (jsonArrayoptional != null) { + // ensure the json data is an array + if (!jsonObj.get("optional").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `optional` to be an array in the JSON string but got `%s`", + jsonObj.get("optional").toString())); } + + // validate the optional field `optional` (array) + for (int i = 0; i < jsonArrayoptional.size(); i++) { + AddAttributeSchemaOptional.validateJsonElement(jsonArrayoptional.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetSchemaAttributes.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetSchemaAttributes' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetSchemaAttributes.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetSchemaAttributes value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetSchemaAttributes read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetSchemaAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetSchemaAttributes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetSchemaAttributes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetSchemaAttributes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetSchemaAttributes read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java b/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java index a00d159e8..037852593 100644 --- a/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java +++ b/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * SetSitesSchemaRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetSitesSchemaRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -63,8 +72,7 @@ public class SetSitesSchemaRequest { @javax.annotation.Nullable private SetSchemaAttributes attributes; - public SetSitesSchemaRequest() { - } + public SetSitesSchemaRequest() {} public SetSitesSchemaRequest name(@javax.annotation.Nullable String name) { this.name = name; @@ -73,6 +81,7 @@ public SetSitesSchemaRequest name(@javax.annotation.Nullable String name) { /** * Name of schema + * * @return name */ @javax.annotation.Nullable @@ -85,13 +94,15 @@ public void setName(@javax.annotation.Nullable String name) { } - public SetSitesSchemaRequest attributes(@javax.annotation.Nullable SetSchemaAttributes attributes) { + public SetSitesSchemaRequest attributes( + @javax.annotation.Nullable SetSchemaAttributes attributes) { this.attributes = attributes; return this; } /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -114,8 +125,8 @@ public boolean equals(Object o) { return false; } SetSitesSchemaRequest setSitesSchemaRequest = (SetSitesSchemaRequest) o; - return Objects.equals(this.name, setSitesSchemaRequest.name) && - Objects.equals(this.attributes, setSitesSchemaRequest.attributes); + return Objects.equals(this.name, setSitesSchemaRequest.name) + && Objects.equals(this.attributes, setSitesSchemaRequest.attributes); } @Override @@ -134,8 +145,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,55 +173,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetSitesSchemaRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetSitesSchemaRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetSitesSchemaRequest is not found in the empty JSON string", SetSitesSchemaRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetSitesSchemaRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetSitesSchemaRequest is not found in the empty JSON string", + SetSitesSchemaRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetSitesSchemaRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetSitesSchemaRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - SetSchemaAttributes.validateJsonElement(jsonObj.get("attributes")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetSitesSchemaRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetSitesSchemaRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + SetSchemaAttributes.validateJsonElement(jsonObj.get("attributes")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetSitesSchemaRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetSitesSchemaRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetSitesSchemaRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetSitesSchemaRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetSitesSchemaRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetSitesSchemaRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetSitesSchemaRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetSitesSchemaRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetSitesSchemaRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetSitesSchemaRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java b/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java index c1f76c0d5..217c9825c 100644 --- a/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * SetWorkflowRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -76,8 +85,7 @@ public class SetWorkflowRequest { @javax.annotation.Nonnull private List steps = new ArrayList<>(); - public SetWorkflowRequest() { - } + public SetWorkflowRequest() {} public SetWorkflowRequest name(@javax.annotation.Nonnull String name) { this.name = name; @@ -86,6 +94,7 @@ public SetWorkflowRequest name(@javax.annotation.Nonnull String name) { /** * Workflow name + * * @return name */ @javax.annotation.Nonnull @@ -105,6 +114,7 @@ public SetWorkflowRequest description(@javax.annotation.Nullable String descript /** * Workflow description + * * @return description */ @javax.annotation.Nullable @@ -124,6 +134,7 @@ public SetWorkflowRequest status(@javax.annotation.Nonnull WorkflowStatus status /** * Get status + * * @return status */ @javax.annotation.Nonnull @@ -151,6 +162,7 @@ public SetWorkflowRequest addStepsItem(AddWorkflowStep stepsItem) { /** * Workflow Steps + * * @return steps */ @javax.annotation.Nonnull @@ -173,10 +185,10 @@ public boolean equals(Object o) { return false; } SetWorkflowRequest setWorkflowRequest = (SetWorkflowRequest) o; - return Objects.equals(this.name, setWorkflowRequest.name) && - Objects.equals(this.description, setWorkflowRequest.description) && - Objects.equals(this.status, setWorkflowRequest.status) && - Objects.equals(this.steps, setWorkflowRequest.steps); + return Objects.equals(this.name, setWorkflowRequest.name) + && Objects.equals(this.description, setWorkflowRequest.description) + && Objects.equals(this.status, setWorkflowRequest.status) + && Objects.equals(this.steps, setWorkflowRequest.steps); } @Override @@ -197,8 +209,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -226,73 +237,87 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetWorkflowRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetWorkflowRequest is not found in the empty JSON string", SetWorkflowRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetWorkflowRequest is not found in the empty JSON string", + SetWorkflowRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetWorkflowRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetWorkflowRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetWorkflowRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetWorkflowRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : SetWorkflowRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the required field `status` - WorkflowStatus.validateJsonElement(jsonObj.get("status")); - // ensure the json data is an array - if (!jsonObj.get("steps").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `steps` to be an array in the JSON string but got `%s`", jsonObj.get("steps").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SetWorkflowRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + // validate the required field `status` + WorkflowStatus.validateJsonElement(jsonObj.get("status")); + // ensure the json data is an array + if (!jsonObj.get("steps").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `steps` to be an array in the JSON string but got `%s`", + jsonObj.get("steps").toString())); + } - JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); - // validate the required field `steps` (array) - for (int i = 0; i < jsonArraysteps.size(); i++) { - AddWorkflowStep.validateJsonElement(jsonArraysteps.get(i)); - }; + JsonArray jsonArraysteps = jsonObj.getAsJsonArray("steps"); + // validate the required field `steps` (array) + for (int i = 0; i < jsonArraysteps.size(); i++) { + AddWorkflowStep.validateJsonElement(jsonArraysteps.get(i)); + } ; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetWorkflowRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetWorkflowRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetWorkflowRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetWorkflowRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetWorkflowRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetWorkflowRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetWorkflowRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetWorkflowRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetWorkflowRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetWorkflowRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java b/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java index a78df0254..e9b59a7c0 100644 --- a/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * SetWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SetWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public SetWorkflowResponse() { - } + public SetWorkflowResponse() {} public SetWorkflowResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public SetWorkflowResponse message(@javax.annotation.Nullable String message) { /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SetWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SetWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SetWorkflowResponse is not found in the empty JSON string", SetWorkflowResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SetWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SetWorkflowResponse is not found in the empty JSON string", + SetWorkflowResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SetWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SetWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SetWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SetWorkflowResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SetWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SetWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SetWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SetWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SetWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SetWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SetWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SetWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SetWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SetWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Site.java b/src/main/java/com/formkiq/client/model/Site.java index cdb9f4b11..983860056 100644 --- a/src/main/java/com/formkiq/client/model/Site.java +++ b/src/main/java/com/formkiq/client/model/Site.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -56,7 +63,9 @@ /** * Site */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Site { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; @SerializedName(SERIALIZED_NAME_SITE_ID) @@ -79,7 +88,7 @@ public class Site { @JsonAdapter(PermissionEnum.Adapter.class) public enum PermissionEnum { READ_WRITE("READ_WRITE"), - + READ_ONLY("READ_ONLY"); private String value; @@ -108,13 +117,14 @@ public static PermissionEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final PermissionEnum enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final PermissionEnum enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } @Override public PermissionEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); + String value = jsonReader.nextString(); return PermissionEnum.fromValue(value); } } @@ -150,8 +160,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private SiteUsage usage; - public Site() { - } + public Site() {} public Site siteId(@javax.annotation.Nullable String siteId) { this.siteId = siteId; @@ -160,6 +169,7 @@ public Site siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -179,6 +189,7 @@ public Site title(@javax.annotation.Nullable String title) { /** * Site Title + * * @return title */ @javax.annotation.Nullable @@ -198,6 +209,7 @@ public Site status(@javax.annotation.Nullable SiteStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -217,6 +229,7 @@ public Site permission(@javax.annotation.Nullable PermissionEnum permission) { /** * SiteId permission level + * * @return permission */ @javax.annotation.Nullable @@ -244,6 +257,7 @@ public Site addPermissionsItem(SiteGroupPermissions permissionsItem) { /** * Get permissions + * * @return permissions */ @javax.annotation.Nullable @@ -263,6 +277,7 @@ public Site uploadEmail(@javax.annotation.Nullable String uploadEmail) { /** * SiteId document upload email address + * * @return uploadEmail */ @javax.annotation.Nullable @@ -282,6 +297,7 @@ public Site config(@javax.annotation.Nullable SiteConfig config) { /** * Get config + * * @return config */ @javax.annotation.Nullable @@ -301,6 +317,7 @@ public Site usage(@javax.annotation.Nullable SiteUsage usage) { /** * Get usage + * * @return usage */ @javax.annotation.Nullable @@ -323,14 +340,12 @@ public boolean equals(Object o) { return false; } Site site = (Site) o; - return Objects.equals(this.siteId, site.siteId) && - Objects.equals(this.title, site.title) && - Objects.equals(this.status, site.status) && - Objects.equals(this.permission, site.permission) && - Objects.equals(this.permissions, site.permissions) && - Objects.equals(this.uploadEmail, site.uploadEmail) && - Objects.equals(this.config, site.config) && - Objects.equals(this.usage, site.usage); + return Objects.equals(this.siteId, site.siteId) && Objects.equals(this.title, site.title) + && Objects.equals(this.status, site.status) + && Objects.equals(this.permission, site.permission) + && Objects.equals(this.permissions, site.permissions) + && Objects.equals(this.uploadEmail, site.uploadEmail) + && Objects.equals(this.config, site.config) && Objects.equals(this.usage, site.usage); } @Override @@ -355,8 +370,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -371,7 +385,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("siteId", "title", "status", "permission", "permissions", "uploadEmail", "config", "usage")); + openapiFields = new HashSet(Arrays.asList("siteId", "title", "status", "permission", + "permissions", "uploadEmail", "config", "usage")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -384,80 +399,99 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Site */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Site.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Site is not found in the empty JSON string", Site.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Site.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Site is not found in the empty JSON string", + Site.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Site.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Site` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - SiteStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("permission") != null && !jsonObj.get("permission").isJsonNull()) && !jsonObj.get("permission").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permission` to be a primitive type in the JSON string but got `%s`", jsonObj.get("permission").toString())); - } - // validate the optional field `permission` - if (jsonObj.get("permission") != null && !jsonObj.get("permission").isJsonNull()) { - PermissionEnum.validateJsonElement(jsonObj.get("permission")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); - } - if ((jsonObj.get("uploadEmail") != null && !jsonObj.get("uploadEmail").isJsonNull()) && !jsonObj.get("uploadEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uploadEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uploadEmail").toString())); - } - // validate the optional field `config` - if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - SiteConfig.validateJsonElement(jsonObj.get("config")); - } - // validate the optional field `usage` - if (jsonObj.get("usage") != null && !jsonObj.get("usage").isJsonNull()) { - SiteUsage.validateJsonElement(jsonObj.get("usage")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Site.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Site` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) + && !jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `title` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("title").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + SiteStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("permission") != null && !jsonObj.get("permission").isJsonNull()) + && !jsonObj.get("permission").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `permission` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("permission").toString())); + } + // validate the optional field `permission` + if (jsonObj.get("permission") != null && !jsonObj.get("permission").isJsonNull()) { + PermissionEnum.validateJsonElement(jsonObj.get("permission")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() + && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `permissions` to be an array in the JSON string but got `%s`", + jsonObj.get("permissions").toString())); + } + if ((jsonObj.get("uploadEmail") != null && !jsonObj.get("uploadEmail").isJsonNull()) + && !jsonObj.get("uploadEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `uploadEmail` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("uploadEmail").toString())); + } + // validate the optional field `config` + if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { + SiteConfig.validateJsonElement(jsonObj.get("config")); + } + // validate the optional field `usage` + if (jsonObj.get("usage") != null && !jsonObj.get("usage").isJsonNull()) { + SiteUsage.validateJsonElement(jsonObj.get("usage")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Site.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Site' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Site.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Site value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Site read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Site.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Site' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Site.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Site value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Site read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SiteConfig.java b/src/main/java/com/formkiq/client/model/SiteConfig.java index 5283eb73b..007c6b7aa 100644 --- a/src/main/java/com/formkiq/client/model/SiteConfig.java +++ b/src/main/java/com/formkiq/client/model/SiteConfig.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * SiteConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SiteConfig { public static final String SERIALIZED_NAME_MAX_CONTENT_LENGTH_BYTES = "maxContentLengthBytes"; @SerializedName(SERIALIZED_NAME_MAX_CONTENT_LENGTH_BYTES) @@ -73,8 +82,7 @@ public class SiteConfig { @javax.annotation.Nullable private OcrConfig ocr; - public SiteConfig() { - } + public SiteConfig() {} public SiteConfig maxContentLengthBytes(@javax.annotation.Nullable String maxContentLengthBytes) { this.maxContentLengthBytes = maxContentLengthBytes; @@ -83,6 +91,7 @@ public SiteConfig maxContentLengthBytes(@javax.annotation.Nullable String maxCon /** * Set Maximum Document Content Length in Bytes + * * @return maxContentLengthBytes */ @javax.annotation.Nullable @@ -102,6 +111,7 @@ public SiteConfig maxDocuments(@javax.annotation.Nullable String maxDocuments) { /** * Set Maximum number of Documents allowed + * * @return maxDocuments */ @javax.annotation.Nullable @@ -121,6 +131,7 @@ public SiteConfig maxWebhooks(@javax.annotation.Nullable String maxWebhooks) { /** * Set Maximum number of Webhooks allowed + * * @return maxWebhooks */ @javax.annotation.Nullable @@ -140,6 +151,7 @@ public SiteConfig ocr(@javax.annotation.Nullable OcrConfig ocr) { /** * Get ocr + * * @return ocr */ @javax.annotation.Nullable @@ -162,10 +174,10 @@ public boolean equals(Object o) { return false; } SiteConfig siteConfig = (SiteConfig) o; - return Objects.equals(this.maxContentLengthBytes, siteConfig.maxContentLengthBytes) && - Objects.equals(this.maxDocuments, siteConfig.maxDocuments) && - Objects.equals(this.maxWebhooks, siteConfig.maxWebhooks) && - Objects.equals(this.ocr, siteConfig.ocr); + return Objects.equals(this.maxContentLengthBytes, siteConfig.maxContentLengthBytes) + && Objects.equals(this.maxDocuments, siteConfig.maxDocuments) + && Objects.equals(this.maxWebhooks, siteConfig.maxWebhooks) + && Objects.equals(this.ocr, siteConfig.ocr); } @Override @@ -177,7 +189,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SiteConfig {\n"); - sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)).append("\n"); + sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)) + .append("\n"); sb.append(" maxDocuments: ").append(toIndentedString(maxDocuments)).append("\n"); sb.append(" maxWebhooks: ").append(toIndentedString(maxWebhooks)).append("\n"); sb.append(" ocr: ").append(toIndentedString(ocr)).append("\n"); @@ -186,8 +199,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -202,7 +214,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("maxContentLengthBytes", "maxDocuments", "maxWebhooks", "ocr")); + openapiFields = new HashSet( + Arrays.asList("maxContentLengthBytes", "maxDocuments", "maxWebhooks", "ocr")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -215,61 +228,76 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SiteConfig */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SiteConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SiteConfig is not found in the empty JSON string", SiteConfig.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SiteConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SiteConfig is not found in the empty JSON string", + SiteConfig.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SiteConfig.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SiteConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("maxContentLengthBytes") != null && !jsonObj.get("maxContentLengthBytes").isJsonNull()) && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxContentLengthBytes").toString())); - } - if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) && !jsonObj.get("maxDocuments").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxDocuments").toString())); - } - if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxWebhooks").toString())); - } - // validate the optional field `ocr` - if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { - OcrConfig.validateJsonElement(jsonObj.get("ocr")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SiteConfig.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SiteConfig` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("maxContentLengthBytes") != null + && !jsonObj.get("maxContentLengthBytes").isJsonNull()) + && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("maxContentLengthBytes").toString())); + } + if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) + && !jsonObj.get("maxDocuments").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("maxDocuments").toString())); + } + if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) + && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("maxWebhooks").toString())); + } + // validate the optional field `ocr` + if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { + OcrConfig.validateJsonElement(jsonObj.get("ocr")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SiteConfig.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SiteConfig' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SiteConfig.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SiteConfig value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SiteConfig read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SiteConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SiteConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SiteConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SiteConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SiteConfig read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SiteGroup.java b/src/main/java/com/formkiq/client/model/SiteGroup.java index 68ae3dc55..27bb579e4 100644 --- a/src/main/java/com/formkiq/client/model/SiteGroup.java +++ b/src/main/java/com/formkiq/client/model/SiteGroup.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,15 +60,16 @@ /** * SiteGroup */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SiteGroup { public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; @SerializedName(SERIALIZED_NAME_PERMISSIONS) @javax.annotation.Nullable private List permissions = new ArrayList<>(); - public SiteGroup() { - } + public SiteGroup() {} public SiteGroup permissions(@javax.annotation.Nullable List permissions) { this.permissions = permissions; @@ -78,6 +86,7 @@ public SiteGroup addPermissionsItem(SiteGroupPermissions permissionsItem) { /** * Get permissions + * * @return permissions */ @javax.annotation.Nullable @@ -118,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,52 +155,60 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SiteGroup */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SiteGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SiteGroup is not found in the empty JSON string", SiteGroup.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SiteGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SiteGroup is not found in the empty JSON string", + SiteGroup.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SiteGroup.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SiteGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SiteGroup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SiteGroup` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() + && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `permissions` to be an array in the JSON string but got `%s`", + jsonObj.get("permissions").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SiteGroup.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SiteGroup' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SiteGroup.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SiteGroup value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SiteGroup read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SiteGroup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SiteGroup' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SiteGroup.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SiteGroup value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SiteGroup read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/SiteGroupPermissions.java b/src/main/java/com/formkiq/client/model/SiteGroupPermissions.java index 896e4bad5..2cc1cb478 100644 --- a/src/main/java/com/formkiq/client/model/SiteGroupPermissions.java +++ b/src/main/java/com/formkiq/client/model/SiteGroupPermissions.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,15 +37,15 @@ */ @JsonAdapter(SiteGroupPermissions.Adapter.class) public enum SiteGroupPermissions { - + ADMIN("ADMIN"), - + DELETE("DELETE"), - + READ("READ"), - + WRITE("WRITE"), - + GOVERN("GOVERN"); private String value; @@ -67,7 +74,8 @@ public static SiteGroupPermissions fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final SiteGroupPermissions enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final SiteGroupPermissions enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/SiteStatus.java b/src/main/java/com/formkiq/client/model/SiteStatus.java index 571a73401..cb48b0a7d 100644 --- a/src/main/java/com/formkiq/client/model/SiteStatus.java +++ b/src/main/java/com/formkiq/client/model/SiteStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(SiteStatus.Adapter.class) public enum SiteStatus { - + ACTIVE("ACTIVE"), - + INACTIVE("INACTIVE"); private String value; @@ -61,7 +68,8 @@ public static SiteStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final SiteStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final SiteStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/SiteUsage.java b/src/main/java/com/formkiq/client/model/SiteUsage.java index 761d4b183..1174c308d 100644 --- a/src/main/java/com/formkiq/client/model/SiteUsage.java +++ b/src/main/java/com/formkiq/client/model/SiteUsage.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * SiteUsage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class SiteUsage { public static final String SERIALIZED_NAME_DOCUMENT_COUNT = "documentCount"; @SerializedName(SERIALIZED_NAME_DOCUMENT_COUNT) @@ -63,8 +72,7 @@ public class SiteUsage { @javax.annotation.Nullable private BigDecimal ocrTransactionCount; - public SiteUsage() { - } + public SiteUsage() {} public SiteUsage documentCount(@javax.annotation.Nullable BigDecimal documentCount) { this.documentCount = documentCount; @@ -73,6 +81,7 @@ public SiteUsage documentCount(@javax.annotation.Nullable BigDecimal documentCou /** * The number of documents in the site (only tracked when using MaxDocuments) + * * @return documentCount */ @javax.annotation.Nullable @@ -92,6 +101,7 @@ public SiteUsage ocrTransactionCount(@javax.annotation.Nullable BigDecimal ocrTr /** * The number of ocr tx requests in the site (only tracked when using OCR MaxTransactions) + * * @return ocrTransactionCount */ @javax.annotation.Nullable @@ -114,8 +124,8 @@ public boolean equals(Object o) { return false; } SiteUsage siteUsage = (SiteUsage) o; - return Objects.equals(this.documentCount, siteUsage.documentCount) && - Objects.equals(this.ocrTransactionCount, siteUsage.ocrTransactionCount); + return Objects.equals(this.documentCount, siteUsage.documentCount) + && Objects.equals(this.ocrTransactionCount, siteUsage.ocrTransactionCount); } @Override @@ -128,14 +138,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SiteUsage {\n"); sb.append(" documentCount: ").append(toIndentedString(documentCount)).append("\n"); - sb.append(" ocrTransactionCount: ").append(toIndentedString(ocrTransactionCount)).append("\n"); + sb.append(" ocrTransactionCount: ").append(toIndentedString(ocrTransactionCount)) + .append("\n"); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,48 +173,53 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to SiteUsage */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!SiteUsage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in SiteUsage is not found in the empty JSON string", SiteUsage.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!SiteUsage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in SiteUsage is not found in the empty JSON string", + SiteUsage.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!SiteUsage.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `SiteUsage` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!SiteUsage.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `SiteUsage` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!SiteUsage.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'SiteUsage' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(SiteUsage.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, SiteUsage value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public SiteUsage read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!SiteUsage.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SiteUsage' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(SiteUsage.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SiteUsage value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SiteUsage read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/StringFormat.java b/src/main/java/com/formkiq/client/model/StringFormat.java index 617a4dd3e..64fa4ec7b 100644 --- a/src/main/java/com/formkiq/client/model/StringFormat.java +++ b/src/main/java/com/formkiq/client/model/StringFormat.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * StringFormat */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class StringFormat { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -68,8 +77,7 @@ public class StringFormat { @javax.annotation.Nullable private Integer padding; - public StringFormat() { - } + public StringFormat() {} public StringFormat type(@javax.annotation.Nullable StringGeneratorType type) { this.type = type; @@ -78,6 +86,7 @@ public StringFormat type(@javax.annotation.Nullable StringGeneratorType type) { /** * Get type + * * @return type */ @javax.annotation.Nullable @@ -97,6 +106,7 @@ public StringFormat staticValue(@javax.annotation.Nullable String staticValue) { /** * Static Value + * * @return staticValue */ @javax.annotation.Nullable @@ -116,6 +126,7 @@ public StringFormat padding(@javax.annotation.Nullable Integer padding) { /** * Optional padding for AUTO_INCREMENT number + * * @return padding */ @javax.annotation.Nullable @@ -138,9 +149,9 @@ public boolean equals(Object o) { return false; } StringFormat stringFormat = (StringFormat) o; - return Objects.equals(this.type, stringFormat.type) && - Objects.equals(this.staticValue, stringFormat.staticValue) && - Objects.equals(this.padding, stringFormat.padding); + return Objects.equals(this.type, stringFormat.type) + && Objects.equals(this.staticValue, stringFormat.staticValue) + && Objects.equals(this.padding, stringFormat.padding); } @Override @@ -160,8 +171,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,55 +199,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to StringFormat */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!StringFormat.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StringFormat is not found in the empty JSON string", StringFormat.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!StringFormat.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in StringFormat is not found in the empty JSON string", + StringFormat.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!StringFormat.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `StringFormat` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - StringGeneratorType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("staticValue") != null && !jsonObj.get("staticValue").isJsonNull()) && !jsonObj.get("staticValue").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `staticValue` to be a primitive type in the JSON string but got `%s`", jsonObj.get("staticValue").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!StringFormat.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `StringFormat` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + StringGeneratorType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("staticValue") != null && !jsonObj.get("staticValue").isJsonNull()) + && !jsonObj.get("staticValue").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `staticValue` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("staticValue").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!StringFormat.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'StringFormat' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(StringFormat.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, StringFormat value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public StringFormat read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!StringFormat.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'StringFormat' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(StringFormat.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, StringFormat value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public StringFormat read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/StringGeneratorType.java b/src/main/java/com/formkiq/client/model/StringGeneratorType.java index a946495f8..0786b2f0b 100644 --- a/src/main/java/com/formkiq/client/model/StringGeneratorType.java +++ b/src/main/java/com/formkiq/client/model/StringGeneratorType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(StringGeneratorType.Adapter.class) public enum StringGeneratorType { - + AUTO_INCREMENT("AUTO_INCREMENT"), - + STATIC("STATIC"), - + DATE_YYYYMMDD("DATE_YYYYMMDD"); private String value; @@ -63,7 +70,8 @@ public static StringGeneratorType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final StringGeneratorType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final StringGeneratorType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/Task.java b/src/main/java/com/formkiq/client/model/Task.java index e79097bc5..d91a181a5 100644 --- a/src/main/java/com/formkiq/client/model/Task.java +++ b/src/main/java/com/formkiq/client/model/Task.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * Task */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Task { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; @SerializedName(SERIALIZED_NAME_TASK_ID) @@ -110,8 +119,7 @@ public class Task { @javax.annotation.Nullable private Map metadata = new HashMap<>(); - public Task() { - } + public Task() {} public Task taskId(@javax.annotation.Nullable String taskId) { this.taskId = taskId; @@ -120,6 +128,7 @@ public Task taskId(@javax.annotation.Nullable String taskId) { /** * Task Identifier + * * @return taskId */ @javax.annotation.Nullable @@ -139,6 +148,7 @@ public Task insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -158,6 +168,7 @@ public Task name(@javax.annotation.Nullable String name) { /** * Name of Task + * * @return name */ @javax.annotation.Nullable @@ -177,6 +188,7 @@ public Task description(@javax.annotation.Nullable String description) { /** * Description of Task + * * @return description */ @javax.annotation.Nullable @@ -196,6 +208,7 @@ public Task plannedStartDate(@javax.annotation.Nullable String plannedStartDate) /** * Planned Start Date of Task + * * @return plannedStartDate */ @javax.annotation.Nullable @@ -215,6 +228,7 @@ public Task startDate(@javax.annotation.Nullable String startDate) { /** * Start Date of Task + * * @return startDate */ @javax.annotation.Nullable @@ -234,6 +248,7 @@ public Task endDate(@javax.annotation.Nullable String endDate) { /** * End Date of Task + * * @return endDate */ @javax.annotation.Nullable @@ -253,6 +268,7 @@ public Task dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date of Task + * * @return dueDate */ @javax.annotation.Nullable @@ -272,6 +288,7 @@ public Task userId(@javax.annotation.Nullable String userId) { /** * User who added Task + * * @return userId */ @javax.annotation.Nullable @@ -291,6 +308,7 @@ public Task status(@javax.annotation.Nullable TaskStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -318,6 +336,7 @@ public Task putMetadataItem(String key, Object metadataItem) { /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -340,22 +359,21 @@ public boolean equals(Object o) { return false; } Task task = (Task) o; - return Objects.equals(this.taskId, task.taskId) && - Objects.equals(this.insertedDate, task.insertedDate) && - Objects.equals(this.name, task.name) && - Objects.equals(this.description, task.description) && - Objects.equals(this.plannedStartDate, task.plannedStartDate) && - Objects.equals(this.startDate, task.startDate) && - Objects.equals(this.endDate, task.endDate) && - Objects.equals(this.dueDate, task.dueDate) && - Objects.equals(this.userId, task.userId) && - Objects.equals(this.status, task.status) && - Objects.equals(this.metadata, task.metadata); + return Objects.equals(this.taskId, task.taskId) + && Objects.equals(this.insertedDate, task.insertedDate) + && Objects.equals(this.name, task.name) + && Objects.equals(this.description, task.description) + && Objects.equals(this.plannedStartDate, task.plannedStartDate) + && Objects.equals(this.startDate, task.startDate) + && Objects.equals(this.endDate, task.endDate) && Objects.equals(this.dueDate, task.dueDate) + && Objects.equals(this.userId, task.userId) && Objects.equals(this.status, task.status) + && Objects.equals(this.metadata, task.metadata); } @Override public int hashCode() { - return Objects.hash(taskId, insertedDate, name, description, plannedStartDate, startDate, endDate, dueDate, userId, status, metadata); + return Objects.hash(taskId, insertedDate, name, description, plannedStartDate, startDate, + endDate, dueDate, userId, status, metadata); } @Override @@ -378,8 +396,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -394,7 +411,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("taskId", "insertedDate", "name", "description", "plannedStartDate", "startDate", "endDate", "dueDate", "userId", "status", "metadata")); + openapiFields = + new HashSet(Arrays.asList("taskId", "insertedDate", "name", "description", + "plannedStartDate", "startDate", "endDate", "dueDate", "userId", "status", "metadata")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -407,79 +426,110 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Task */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Task.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Task is not found in the empty JSON string", Task.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Task.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Task is not found in the empty JSON string", + Task.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Task.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Task` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) && !jsonObj.get("taskId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("taskId").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - TaskStatus.validateJsonElement(jsonObj.get("status")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Task.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Task` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) + && !jsonObj.get("taskId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("taskId").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) + && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) + && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) + && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) + && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("dueDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + TaskStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Task.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Task' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Task.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Task value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Task read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Task.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Task' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Task.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Task value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Task read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/TaskStatus.java b/src/main/java/com/formkiq/client/model/TaskStatus.java index 62ff8a713..1c82d85e3 100644 --- a/src/main/java/com/formkiq/client/model/TaskStatus.java +++ b/src/main/java/com/formkiq/client/model/TaskStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,23 +37,23 @@ */ @JsonAdapter(TaskStatus.Adapter.class) public enum TaskStatus { - + NEW("NEW"), - + ASSIGNED("ASSIGNED"), - + IN_PROGRESS("IN_PROGRESS"), - + ON_HOLD("ON_HOLD"), - + ESCALATED("ESCALATED"), - + RESOLVED("RESOLVED"), - + CLOSED("CLOSED"), - + UNDER_REVIEW("UNDER_REVIEW"), - + AWAITING_CLIENT_RESPONSE("AWAITING_CLIENT_RESPONSE"); private String value; @@ -75,7 +82,8 @@ public static TaskStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final TaskStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final TaskStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/TextractQuery.java b/src/main/java/com/formkiq/client/model/TextractQuery.java index 7e947eb9c..5866bfe5f 100644 --- a/src/main/java/com/formkiq/client/model/TextractQuery.java +++ b/src/main/java/com/formkiq/client/model/TextractQuery.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * A question to ask Textract */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class TextractQuery { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -69,8 +78,7 @@ public class TextractQuery { @javax.annotation.Nullable private List pages = new ArrayList<>(); - public TextractQuery() { - } + public TextractQuery() {} public TextractQuery text(@javax.annotation.Nullable String text) { this.text = text; @@ -79,6 +87,7 @@ public TextractQuery text(@javax.annotation.Nullable String text) { /** * Natural-language question + * * @return text */ @javax.annotation.Nullable @@ -98,6 +107,7 @@ public TextractQuery alias(@javax.annotation.Nullable String alias) { /** * Label to identify this query in the result + * * @return alias */ @javax.annotation.Nullable @@ -125,6 +135,7 @@ public TextractQuery addPagesItem(String pagesItem) { /** * Page selection + * * @return pages */ @javax.annotation.Nullable @@ -147,9 +158,9 @@ public boolean equals(Object o) { return false; } TextractQuery textractQuery = (TextractQuery) o; - return Objects.equals(this.text, textractQuery.text) && - Objects.equals(this.alias, textractQuery.alias) && - Objects.equals(this.pages, textractQuery.pages); + return Objects.equals(this.text, textractQuery.text) + && Objects.equals(this.alias, textractQuery.alias) + && Objects.equals(this.pages, textractQuery.pages); } @Override @@ -169,8 +180,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -198,58 +208,72 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to TextractQuery */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!TextractQuery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in TextractQuery is not found in the empty JSON string", TextractQuery.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!TextractQuery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in TextractQuery is not found in the empty JSON string", + TextractQuery.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!TextractQuery.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `TextractQuery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) && !jsonObj.get("text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); - } - if ((jsonObj.get("alias") != null && !jsonObj.get("alias").isJsonNull()) && !jsonObj.get("alias").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `alias` to be a primitive type in the JSON string but got `%s`", jsonObj.get("alias").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("pages") != null && !jsonObj.get("pages").isJsonNull() && !jsonObj.get("pages").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pages` to be an array in the JSON string but got `%s`", jsonObj.get("pages").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!TextractQuery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `TextractQuery` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) + && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `text` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("text").toString())); + } + if ((jsonObj.get("alias") != null && !jsonObj.get("alias").isJsonNull()) + && !jsonObj.get("alias").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `alias` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("alias").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("pages") != null && !jsonObj.get("pages").isJsonNull() + && !jsonObj.get("pages").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `pages` to be an array in the JSON string but got `%s`", + jsonObj.get("pages").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!TextractQuery.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'TextractQuery' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(TextractQuery.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, TextractQuery value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public TextractQuery read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!TextractQuery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TextractQuery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(TextractQuery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TextractQuery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TextractQuery read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateAttribute.java b/src/main/java/com/formkiq/client/model/UpdateAttribute.java index 0a8561d6f..3b2512508 100644 --- a/src/main/java/com/formkiq/client/model/UpdateAttribute.java +++ b/src/main/java/com/formkiq/client/model/UpdateAttribute.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * UpdateAttribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateAttribute { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -64,8 +73,7 @@ public class UpdateAttribute { @javax.annotation.Nullable private Watermark watermark; - public UpdateAttribute() { - } + public UpdateAttribute() {} public UpdateAttribute type(@javax.annotation.Nullable AttributeType type) { this.type = type; @@ -74,6 +82,7 @@ public UpdateAttribute type(@javax.annotation.Nullable AttributeType type) { /** * Get type + * * @return type */ @javax.annotation.Nullable @@ -93,6 +102,7 @@ public UpdateAttribute watermark(@javax.annotation.Nullable Watermark watermark) /** * Get watermark + * * @return watermark */ @javax.annotation.Nullable @@ -115,8 +125,8 @@ public boolean equals(Object o) { return false; } UpdateAttribute updateAttribute = (UpdateAttribute) o; - return Objects.equals(this.type, updateAttribute.type) && - Objects.equals(this.watermark, updateAttribute.watermark); + return Objects.equals(this.type, updateAttribute.type) + && Objects.equals(this.watermark, updateAttribute.watermark); } @Override @@ -135,8 +145,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -164,56 +173,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateAttribute */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateAttribute is not found in the empty JSON string", UpdateAttribute.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateAttribute is not found in the empty JSON string", + UpdateAttribute.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - AttributeType.validateJsonElement(jsonObj.get("type")); - } - // validate the optional field `watermark` - if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { - Watermark.validateJsonElement(jsonObj.get("watermark")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateAttribute.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateAttribute` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + AttributeType.validateJsonElement(jsonObj.get("type")); + } + // validate the optional field `watermark` + if (jsonObj.get("watermark") != null && !jsonObj.get("watermark").isJsonNull()) { + Watermark.validateJsonElement(jsonObj.get("watermark")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateAttribute.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateAttribute' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateAttribute.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateAttribute value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateAttribute read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateAttribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateAttribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateAttribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateAttribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateAttribute read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java b/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java index 0d9709860..fa298443d 100644 --- a/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * UpdateAttributeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @javax.annotation.Nonnull private UpdateAttribute attribute; - public UpdateAttributeRequest() { - } + public UpdateAttributeRequest() {} public UpdateAttributeRequest attribute(@javax.annotation.Nonnull UpdateAttribute attribute) { this.attribute = attribute; @@ -68,6 +76,7 @@ public UpdateAttributeRequest attribute(@javax.annotation.Nonnull UpdateAttribut /** * Get attribute + * * @return attribute */ @javax.annotation.Nonnull @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,57 +145,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateAttributeRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateAttributeRequest is not found in the empty JSON string", UpdateAttributeRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateAttributeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateAttributeRequest is not found in the empty JSON string", + UpdateAttributeRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateAttributeRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateAttributeRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateAttributeRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateAttributeRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UpdateAttributeRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : UpdateAttributeRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `attribute` - UpdateAttribute.validateJsonElement(jsonObj.get("attribute")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `attribute` + UpdateAttribute.validateJsonElement(jsonObj.get("attribute")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateAttributeRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateAttributeRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateAttributeRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateAttributeRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateAttributeRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateAttributeRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateAttributeRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateAttributeRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateAttributeRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateAttributeRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateCase.java b/src/main/java/com/formkiq/client/model/UpdateCase.java index 8f2313f26..c9d06e1e2 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCase.java +++ b/src/main/java/com/formkiq/client/model/UpdateCase.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * UpdateCase */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateCase { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -102,8 +111,7 @@ public class UpdateCase { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public UpdateCase() { - } + public UpdateCase() {} public UpdateCase name(@javax.annotation.Nullable String name) { this.name = name; @@ -112,6 +120,7 @@ public UpdateCase name(@javax.annotation.Nullable String name) { /** * Case Name + * * @return name */ @javax.annotation.Nullable @@ -131,6 +140,7 @@ public UpdateCase status(@javax.annotation.Nullable CaseStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -150,6 +160,7 @@ public UpdateCase description(@javax.annotation.Nullable String description) { /** * Case Description + * * @return description */ @javax.annotation.Nullable @@ -177,6 +188,7 @@ public UpdateCase putMetadataItem(String key, Object metadataItem) { /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -196,6 +208,7 @@ public UpdateCase plannedStartDate(@javax.annotation.Nullable String plannedStar /** * Planned Start Date + * * @return plannedStartDate */ @javax.annotation.Nullable @@ -215,6 +228,7 @@ public UpdateCase startDate(@javax.annotation.Nullable String startDate) { /** * Start Date + * * @return startDate */ @javax.annotation.Nullable @@ -234,6 +248,7 @@ public UpdateCase endDate(@javax.annotation.Nullable String endDate) { /** * End Date + * * @return endDate */ @javax.annotation.Nullable @@ -253,6 +268,7 @@ public UpdateCase dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date + * * @return dueDate */ @javax.annotation.Nullable @@ -280,6 +296,7 @@ public UpdateCase addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds + * * @return documentIds */ @javax.annotation.Nullable @@ -302,20 +319,21 @@ public boolean equals(Object o) { return false; } UpdateCase updateCase = (UpdateCase) o; - return Objects.equals(this.name, updateCase.name) && - Objects.equals(this.status, updateCase.status) && - Objects.equals(this.description, updateCase.description) && - Objects.equals(this.metadata, updateCase.metadata) && - Objects.equals(this.plannedStartDate, updateCase.plannedStartDate) && - Objects.equals(this.startDate, updateCase.startDate) && - Objects.equals(this.endDate, updateCase.endDate) && - Objects.equals(this.dueDate, updateCase.dueDate) && - Objects.equals(this.documentIds, updateCase.documentIds); + return Objects.equals(this.name, updateCase.name) + && Objects.equals(this.status, updateCase.status) + && Objects.equals(this.description, updateCase.description) + && Objects.equals(this.metadata, updateCase.metadata) + && Objects.equals(this.plannedStartDate, updateCase.plannedStartDate) + && Objects.equals(this.startDate, updateCase.startDate) + && Objects.equals(this.endDate, updateCase.endDate) + && Objects.equals(this.dueDate, updateCase.dueDate) + && Objects.equals(this.documentIds, updateCase.documentIds); } @Override public int hashCode() { - return Objects.hash(name, status, description, metadata, plannedStartDate, startDate, endDate, dueDate, documentIds); + return Objects.hash(name, status, description, metadata, plannedStartDate, startDate, endDate, + dueDate, documentIds); } @Override @@ -336,8 +354,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -352,7 +369,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "status", "description", "metadata", "plannedStartDate", "startDate", "endDate", "dueDate", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "status", "description", "metadata", + "plannedStartDate", "startDate", "endDate", "dueDate", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -365,74 +383,100 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateCase */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateCase is not found in the empty JSON string", UpdateCase.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateCase.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateCase is not found in the empty JSON string", + UpdateCase.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateCase.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateCase` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - CaseStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateCase.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateCase` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + CaseStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) + && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) + && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) + && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) + && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("dueDate").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() + && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentIds` to be an array in the JSON string but got `%s`", + jsonObj.get("documentIds").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateCase.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateCase' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateCase.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateCase value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateCase read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateCase.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateCase' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateCase.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateCase value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateCase read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java b/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java index cdc852a09..a41e1d5bf 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * UpdateCaseRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateCaseRequest { public static final String SERIALIZED_NAME_CASE = "case"; @SerializedName(SERIALIZED_NAME_CASE) @javax.annotation.Nullable private UpdateCase _case; - public UpdateCaseRequest() { - } + public UpdateCaseRequest() {} public UpdateCaseRequest _case(@javax.annotation.Nullable UpdateCase _case) { this._case = _case; @@ -68,6 +76,7 @@ public UpdateCaseRequest _case(@javax.annotation.Nullable UpdateCase _case) { /** * Get _case + * * @return _case */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateCaseRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateCaseRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateCaseRequest is not found in the empty JSON string", UpdateCaseRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateCaseRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateCaseRequest is not found in the empty JSON string", + UpdateCaseRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateCaseRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateCaseRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `case` - if (jsonObj.get("case") != null && !jsonObj.get("case").isJsonNull()) { - UpdateCase.validateJsonElement(jsonObj.get("case")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateCaseRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateCaseRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `case` + if (jsonObj.get("case") != null && !jsonObj.get("case").isJsonNull()) { + UpdateCase.validateJsonElement(jsonObj.get("case")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateCaseRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateCaseRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateCaseRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateCaseRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateCaseRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateCaseRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateCaseRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateCaseRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateCaseRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateCaseRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java b/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java index 3d4d89b14..f20e1c30b 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * UpdateCaseResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateCaseResponse { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; @SerializedName(SERIALIZED_NAME_CASE_ID) @javax.annotation.Nullable private String caseId; - public UpdateCaseResponse() { - } + public UpdateCaseResponse() {} public UpdateCaseResponse caseId(@javax.annotation.Nullable String caseId) { this.caseId = caseId; @@ -67,6 +75,7 @@ public UpdateCaseResponse caseId(@javax.annotation.Nullable String caseId) { /** * Case Identifier + * * @return caseId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateCaseResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateCaseResponse is not found in the empty JSON string", UpdateCaseResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateCaseResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateCaseResponse is not found in the empty JSON string", + UpdateCaseResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateCaseResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateCaseResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) && !jsonObj.get("caseId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("caseId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateCaseResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateCaseResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("caseId") != null && !jsonObj.get("caseId").isJsonNull()) + && !jsonObj.get("caseId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `caseId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("caseId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateCaseResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateCaseResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateCaseResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateCaseResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateCaseResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateCaseResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateCaseResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateCaseResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateCaseResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateCaseResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java b/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java index 34902533f..00c51796e 100644 --- a/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -15,6 +22,7 @@ import java.util.Objects; import java.util.Locale; +import com.formkiq.client.model.DocumentConfig; import com.formkiq.client.model.DocusignConfig; import com.formkiq.client.model.GoogleConfig; import com.formkiq.client.model.OcrConfig; @@ -53,7 +61,9 @@ /** * UpdateConfigurationRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateConfigurationRequest { public static final String SERIALIZED_NAME_CHAT_GPT_API_KEY = "chatGptApiKey"; @SerializedName(SERIALIZED_NAME_CHAT_GPT_API_KEY) @@ -80,6 +90,11 @@ public class UpdateConfigurationRequest { @javax.annotation.Nullable private String notificationEmail; + public static final String SERIALIZED_NAME_DOCUMENT = "document"; + @SerializedName(SERIALIZED_NAME_DOCUMENT) + @javax.annotation.Nullable + private DocumentConfig document; + public static final String SERIALIZED_NAME_OCR = "ocr"; @SerializedName(SERIALIZED_NAME_OCR) @javax.annotation.Nullable @@ -95,8 +110,7 @@ public class UpdateConfigurationRequest { @javax.annotation.Nullable private DocusignConfig docusign; - public UpdateConfigurationRequest() { - } + public UpdateConfigurationRequest() {} public UpdateConfigurationRequest chatGptApiKey(@javax.annotation.Nullable String chatGptApiKey) { this.chatGptApiKey = chatGptApiKey; @@ -105,6 +119,7 @@ public UpdateConfigurationRequest chatGptApiKey(@javax.annotation.Nullable Strin /** * ChatGPT Api Key + * * @return chatGptApiKey */ @javax.annotation.Nullable @@ -117,13 +132,15 @@ public void setChatGptApiKey(@javax.annotation.Nullable String chatGptApiKey) { } - public UpdateConfigurationRequest maxContentLengthBytes(@javax.annotation.Nullable String maxContentLengthBytes) { + public UpdateConfigurationRequest maxContentLengthBytes( + @javax.annotation.Nullable String maxContentLengthBytes) { this.maxContentLengthBytes = maxContentLengthBytes; return this; } /** * Set Maximum Document Content Length in Bytes + * * @return maxContentLengthBytes */ @javax.annotation.Nullable @@ -143,6 +160,7 @@ public UpdateConfigurationRequest maxDocuments(@javax.annotation.Nullable String /** * Set Maximum number of Documents allowed + * * @return maxDocuments */ @javax.annotation.Nullable @@ -162,6 +180,7 @@ public UpdateConfigurationRequest maxWebhooks(@javax.annotation.Nullable String /** * Set Maximum number of Webhooks allowed + * * @return maxWebhooks */ @javax.annotation.Nullable @@ -174,13 +193,15 @@ public void setMaxWebhooks(@javax.annotation.Nullable String maxWebhooks) { } - public UpdateConfigurationRequest notificationEmail(@javax.annotation.Nullable String notificationEmail) { + public UpdateConfigurationRequest notificationEmail( + @javax.annotation.Nullable String notificationEmail) { this.notificationEmail = notificationEmail; return this; } /** * Email address to use for notifications + * * @return notificationEmail */ @javax.annotation.Nullable @@ -193,6 +214,26 @@ public void setNotificationEmail(@javax.annotation.Nullable String notificationE } + public UpdateConfigurationRequest document(@javax.annotation.Nullable DocumentConfig document) { + this.document = document; + return this; + } + + /** + * Get document + * + * @return document + */ + @javax.annotation.Nullable + public DocumentConfig getDocument() { + return document; + } + + public void setDocument(@javax.annotation.Nullable DocumentConfig document) { + this.document = document; + } + + public UpdateConfigurationRequest ocr(@javax.annotation.Nullable OcrConfig ocr) { this.ocr = ocr; return this; @@ -200,6 +241,7 @@ public UpdateConfigurationRequest ocr(@javax.annotation.Nullable OcrConfig ocr) /** * Get ocr + * * @return ocr */ @javax.annotation.Nullable @@ -219,6 +261,7 @@ public UpdateConfigurationRequest google(@javax.annotation.Nullable GoogleConfig /** * Get google + * * @return google */ @javax.annotation.Nullable @@ -238,6 +281,7 @@ public UpdateConfigurationRequest docusign(@javax.annotation.Nullable DocusignCo /** * Get docusign + * * @return docusign */ @javax.annotation.Nullable @@ -260,19 +304,22 @@ public boolean equals(Object o) { return false; } UpdateConfigurationRequest updateConfigurationRequest = (UpdateConfigurationRequest) o; - return Objects.equals(this.chatGptApiKey, updateConfigurationRequest.chatGptApiKey) && - Objects.equals(this.maxContentLengthBytes, updateConfigurationRequest.maxContentLengthBytes) && - Objects.equals(this.maxDocuments, updateConfigurationRequest.maxDocuments) && - Objects.equals(this.maxWebhooks, updateConfigurationRequest.maxWebhooks) && - Objects.equals(this.notificationEmail, updateConfigurationRequest.notificationEmail) && - Objects.equals(this.ocr, updateConfigurationRequest.ocr) && - Objects.equals(this.google, updateConfigurationRequest.google) && - Objects.equals(this.docusign, updateConfigurationRequest.docusign); + return Objects.equals(this.chatGptApiKey, updateConfigurationRequest.chatGptApiKey) + && Objects.equals(this.maxContentLengthBytes, + updateConfigurationRequest.maxContentLengthBytes) + && Objects.equals(this.maxDocuments, updateConfigurationRequest.maxDocuments) + && Objects.equals(this.maxWebhooks, updateConfigurationRequest.maxWebhooks) + && Objects.equals(this.notificationEmail, updateConfigurationRequest.notificationEmail) + && Objects.equals(this.document, updateConfigurationRequest.document) + && Objects.equals(this.ocr, updateConfigurationRequest.ocr) + && Objects.equals(this.google, updateConfigurationRequest.google) + && Objects.equals(this.docusign, updateConfigurationRequest.docusign); } @Override public int hashCode() { - return Objects.hash(chatGptApiKey, maxContentLengthBytes, maxDocuments, maxWebhooks, notificationEmail, ocr, google, docusign); + return Objects.hash(chatGptApiKey, maxContentLengthBytes, maxDocuments, maxWebhooks, + notificationEmail, document, ocr, google, docusign); } @Override @@ -280,10 +327,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateConfigurationRequest {\n"); sb.append(" chatGptApiKey: ").append(toIndentedString(chatGptApiKey)).append("\n"); - sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)).append("\n"); + sb.append(" maxContentLengthBytes: ").append(toIndentedString(maxContentLengthBytes)) + .append("\n"); sb.append(" maxDocuments: ").append(toIndentedString(maxDocuments)).append("\n"); sb.append(" maxWebhooks: ").append(toIndentedString(maxWebhooks)).append("\n"); sb.append(" notificationEmail: ").append(toIndentedString(notificationEmail)).append("\n"); + sb.append(" document: ").append(toIndentedString(document)).append("\n"); sb.append(" ocr: ").append(toIndentedString(ocr)).append("\n"); sb.append(" google: ").append(toIndentedString(google)).append("\n"); sb.append(" docusign: ").append(toIndentedString(docusign)).append("\n"); @@ -292,8 +341,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -308,7 +356,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("chatGptApiKey", "maxContentLengthBytes", "maxDocuments", "maxWebhooks", "notificationEmail", "ocr", "google", "docusign")); + openapiFields = + new HashSet(Arrays.asList("chatGptApiKey", "maxContentLengthBytes", "maxDocuments", + "maxWebhooks", "notificationEmail", "document", "ocr", "google", "docusign")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -321,75 +371,100 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateConfigurationRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateConfigurationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateConfigurationRequest is not found in the empty JSON string", UpdateConfigurationRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateConfigurationRequest.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateConfigurationRequest is not found in the empty JSON string", + UpdateConfigurationRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateConfigurationRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateConfigurationRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("chatGptApiKey") != null && !jsonObj.get("chatGptApiKey").isJsonNull()) && !jsonObj.get("chatGptApiKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `chatGptApiKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("chatGptApiKey").toString())); - } - if ((jsonObj.get("maxContentLengthBytes") != null && !jsonObj.get("maxContentLengthBytes").isJsonNull()) && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxContentLengthBytes").toString())); - } - if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) && !jsonObj.get("maxDocuments").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxDocuments").toString())); - } - if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxWebhooks").toString())); - } - if ((jsonObj.get("notificationEmail") != null && !jsonObj.get("notificationEmail").isJsonNull()) && !jsonObj.get("notificationEmail").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `notificationEmail` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notificationEmail").toString())); - } - // validate the optional field `ocr` - if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { - OcrConfig.validateJsonElement(jsonObj.get("ocr")); - } - // validate the optional field `google` - if (jsonObj.get("google") != null && !jsonObj.get("google").isJsonNull()) { - GoogleConfig.validateJsonElement(jsonObj.get("google")); - } - // validate the optional field `docusign` - if (jsonObj.get("docusign") != null && !jsonObj.get("docusign").isJsonNull()) { - DocusignConfig.validateJsonElement(jsonObj.get("docusign")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateConfigurationRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateConfigurationRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("chatGptApiKey") != null && !jsonObj.get("chatGptApiKey").isJsonNull()) + && !jsonObj.get("chatGptApiKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `chatGptApiKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("chatGptApiKey").toString())); + } + if ((jsonObj.get("maxContentLengthBytes") != null + && !jsonObj.get("maxContentLengthBytes").isJsonNull()) + && !jsonObj.get("maxContentLengthBytes").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `maxContentLengthBytes` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("maxContentLengthBytes").toString())); + } + if ((jsonObj.get("maxDocuments") != null && !jsonObj.get("maxDocuments").isJsonNull()) + && !jsonObj.get("maxDocuments").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `maxDocuments` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("maxDocuments").toString())); + } + if ((jsonObj.get("maxWebhooks") != null && !jsonObj.get("maxWebhooks").isJsonNull()) + && !jsonObj.get("maxWebhooks").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `maxWebhooks` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("maxWebhooks").toString())); + } + if ((jsonObj.get("notificationEmail") != null && !jsonObj.get("notificationEmail").isJsonNull()) + && !jsonObj.get("notificationEmail").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `notificationEmail` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("notificationEmail").toString())); + } + // validate the optional field `document` + if (jsonObj.get("document") != null && !jsonObj.get("document").isJsonNull()) { + DocumentConfig.validateJsonElement(jsonObj.get("document")); + } + // validate the optional field `ocr` + if (jsonObj.get("ocr") != null && !jsonObj.get("ocr").isJsonNull()) { + OcrConfig.validateJsonElement(jsonObj.get("ocr")); + } + // validate the optional field `google` + if (jsonObj.get("google") != null && !jsonObj.get("google").isJsonNull()) { + GoogleConfig.validateJsonElement(jsonObj.get("google")); + } + // validate the optional field `docusign` + if (jsonObj.get("docusign") != null && !jsonObj.get("docusign").isJsonNull()) { + DocusignConfig.validateJsonElement(jsonObj.get("docusign")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateConfigurationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateConfigurationRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateConfigurationRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateConfigurationRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateConfigurationRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateConfigurationRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateConfigurationRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateConfigurationRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateConfigurationRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateConfigurationRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java b/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java index 1715cb3ad..3818ef0a9 100644 --- a/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * UpdateConfigurationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateConfigurationResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateConfigurationResponse() { - } + public UpdateConfigurationResponse() {} public UpdateConfigurationResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public UpdateConfigurationResponse message(@javax.annotation.Nullable String mes /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateConfigurationResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateConfigurationResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateConfigurationResponse is not found in the empty JSON string", UpdateConfigurationResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateConfigurationResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateConfigurationResponse is not found in the empty JSON string", + UpdateConfigurationResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateConfigurationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateConfigurationResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateConfigurationResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateConfigurationResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateConfigurationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateConfigurationResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateConfigurationResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateConfigurationResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateConfigurationResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateConfigurationResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateConfigurationResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateConfigurationResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateConfigurationResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateConfigurationResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java index 87b37bd37..47c0702b8 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -58,7 +65,9 @@ /** * UpdateDocumentFulltextRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; @SerializedName(SERIALIZED_NAME_CONTENT_TYPE) @@ -120,8 +129,7 @@ public class UpdateDocumentFulltextRequest { @javax.annotation.Nullable private Map attributes = new HashMap<>(); - public UpdateDocumentFulltextRequest() { - } + public UpdateDocumentFulltextRequest() {} public UpdateDocumentFulltextRequest contentType(@javax.annotation.Nullable String contentType) { this.contentType = contentType; @@ -130,6 +138,7 @@ public UpdateDocumentFulltextRequest contentType(@javax.annotation.Nullable Stri /** * Document Content-Type + * * @return contentType */ @javax.annotation.Nullable @@ -149,6 +158,7 @@ public UpdateDocumentFulltextRequest content(@javax.annotation.Nullable String c /** * Document content + * * @return content */ @javax.annotation.Nullable @@ -161,7 +171,8 @@ public void setContent(@javax.annotation.Nullable String content) { } - public UpdateDocumentFulltextRequest contentUrls(@javax.annotation.Nullable List contentUrls) { + public UpdateDocumentFulltextRequest contentUrls( + @javax.annotation.Nullable List contentUrls) { this.contentUrls = contentUrls; return this; } @@ -176,6 +187,7 @@ public UpdateDocumentFulltextRequest addContentUrlsItem(String contentUrlsItem) /** * URL(s) which contain document content + * * @return contentUrls */ @javax.annotation.Nullable @@ -195,6 +207,7 @@ public UpdateDocumentFulltextRequest path(@javax.annotation.Nullable String path /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -214,6 +227,7 @@ public UpdateDocumentFulltextRequest width(@javax.annotation.Nullable String wid /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -233,6 +247,7 @@ public UpdateDocumentFulltextRequest height(@javax.annotation.Nullable String he /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -245,13 +260,15 @@ public void setHeight(@javax.annotation.Nullable String height) { } - public UpdateDocumentFulltextRequest deepLinkPath(@javax.annotation.Nullable String deepLinkPath) { + public UpdateDocumentFulltextRequest deepLinkPath( + @javax.annotation.Nullable String deepLinkPath) { this.deepLinkPath = deepLinkPath; return this; } /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -271,6 +288,7 @@ public UpdateDocumentFulltextRequest checksum(@javax.annotation.Nullable String /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -283,13 +301,15 @@ public void setChecksum(@javax.annotation.Nullable String checksum) { } - public UpdateDocumentFulltextRequest checksumType(@javax.annotation.Nullable ChecksumType checksumType) { + public UpdateDocumentFulltextRequest checksumType( + @javax.annotation.Nullable ChecksumType checksumType) { this.checksumType = checksumType; return this; } /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -317,6 +337,7 @@ public UpdateDocumentFulltextRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags + * * @return tags */ @javax.annotation.Nullable @@ -329,7 +350,8 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public UpdateDocumentFulltextRequest metadata(@javax.annotation.Nullable List metadata) { + public UpdateDocumentFulltextRequest metadata( + @javax.annotation.Nullable List metadata) { this.metadata = metadata; return this; } @@ -344,6 +366,7 @@ public UpdateDocumentFulltextRequest addMetadataItem(AddDocumentMetadata metadat /** * List of document Metadata + * * @return metadata */ @javax.annotation.Nullable @@ -356,12 +379,14 @@ public void setMetadata(@javax.annotation.Nullable List met } - public UpdateDocumentFulltextRequest attributes(@javax.annotation.Nullable Map attributes) { + public UpdateDocumentFulltextRequest attributes( + @javax.annotation.Nullable Map attributes) { this.attributes = attributes; return this; } - public UpdateDocumentFulltextRequest putAttributesItem(String key, FulltextAttribute attributesItem) { + public UpdateDocumentFulltextRequest putAttributesItem(String key, + FulltextAttribute attributesItem) { if (this.attributes == null) { this.attributes = new HashMap<>(); } @@ -371,6 +396,7 @@ public UpdateDocumentFulltextRequest putAttributesItem(String key, FulltextAttri /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -393,23 +419,24 @@ public boolean equals(Object o) { return false; } UpdateDocumentFulltextRequest updateDocumentFulltextRequest = (UpdateDocumentFulltextRequest) o; - return Objects.equals(this.contentType, updateDocumentFulltextRequest.contentType) && - Objects.equals(this.content, updateDocumentFulltextRequest.content) && - Objects.equals(this.contentUrls, updateDocumentFulltextRequest.contentUrls) && - Objects.equals(this.path, updateDocumentFulltextRequest.path) && - Objects.equals(this.width, updateDocumentFulltextRequest.width) && - Objects.equals(this.height, updateDocumentFulltextRequest.height) && - Objects.equals(this.deepLinkPath, updateDocumentFulltextRequest.deepLinkPath) && - Objects.equals(this.checksum, updateDocumentFulltextRequest.checksum) && - Objects.equals(this.checksumType, updateDocumentFulltextRequest.checksumType) && - Objects.equals(this.tags, updateDocumentFulltextRequest.tags) && - Objects.equals(this.metadata, updateDocumentFulltextRequest.metadata) && - Objects.equals(this.attributes, updateDocumentFulltextRequest.attributes); + return Objects.equals(this.contentType, updateDocumentFulltextRequest.contentType) + && Objects.equals(this.content, updateDocumentFulltextRequest.content) + && Objects.equals(this.contentUrls, updateDocumentFulltextRequest.contentUrls) + && Objects.equals(this.path, updateDocumentFulltextRequest.path) + && Objects.equals(this.width, updateDocumentFulltextRequest.width) + && Objects.equals(this.height, updateDocumentFulltextRequest.height) + && Objects.equals(this.deepLinkPath, updateDocumentFulltextRequest.deepLinkPath) + && Objects.equals(this.checksum, updateDocumentFulltextRequest.checksum) + && Objects.equals(this.checksumType, updateDocumentFulltextRequest.checksumType) + && Objects.equals(this.tags, updateDocumentFulltextRequest.tags) + && Objects.equals(this.metadata, updateDocumentFulltextRequest.metadata) + && Objects.equals(this.attributes, updateDocumentFulltextRequest.attributes); } @Override public int hashCode() { - return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, checksum, checksumType, tags, metadata, attributes); + return Objects.hash(contentType, content, contentUrls, path, width, height, deepLinkPath, + checksum, checksumType, tags, metadata, attributes); } @Override @@ -433,8 +460,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -449,7 +475,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); + openapiFields = new HashSet( + Arrays.asList("contentType", "content", "contentUrls", "path", "width", "height", + "deepLinkPath", "checksum", "checksumType", "tags", "metadata", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -459,108 +487,143 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateDocumentFulltextRequest + * @throws IOException if the JSON Element is invalid with respect to + * UpdateDocumentFulltextRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateDocumentFulltextRequest is not found in the empty JSON string", UpdateDocumentFulltextRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateDocumentFulltextRequest.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateDocumentFulltextRequest is not found in the empty JSON string", + UpdateDocumentFulltextRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateDocumentFulltextRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); - } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() && !jsonObj.get("contentUrls").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", jsonObj.get("contentUrls").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateDocumentFulltextRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateDocumentFulltextRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) + && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("contentUrls") != null && !jsonObj.get("contentUrls").isJsonNull() + && !jsonObj.get("contentUrls").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentUrls` to be an array in the JSON string but got `%s`", + jsonObj.get("contentUrls").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - }; + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `metadata` to be an array in the JSON string but got `%s`", + jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateDocumentFulltextRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentFulltextRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateDocumentFulltextRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateDocumentFulltextRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateDocumentFulltextRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateDocumentFulltextRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentFulltextRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateDocumentFulltextRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateDocumentFulltextRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java index 02c87350a..a6b4420b0 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * UpdateDocumentFulltextResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateDocumentFulltextResponse() { - } + public UpdateDocumentFulltextResponse() {} public UpdateDocumentFulltextResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public UpdateDocumentFulltextResponse message(@javax.annotation.Nullable String /** * Full text processing message + * * @return message */ @javax.annotation.Nullable @@ -88,7 +97,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateDocumentFulltextResponse updateDocumentFulltextResponse = (UpdateDocumentFulltextResponse) o; + UpdateDocumentFulltextResponse updateDocumentFulltextResponse = + (UpdateDocumentFulltextResponse) o; return Objects.equals(this.message, updateDocumentFulltextResponse.message); } @@ -107,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,54 +142,64 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateDocumentFulltextResponse + * @throws IOException if the JSON Element is invalid with respect to + * UpdateDocumentFulltextResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateDocumentFulltextResponse is not found in the empty JSON string", UpdateDocumentFulltextResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateDocumentFulltextResponse.openapiRequiredFields.isEmpty()) { // has required fields + // but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateDocumentFulltextResponse is not found in the empty JSON string", + UpdateDocumentFulltextResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateDocumentFulltextResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateDocumentFulltextResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateDocumentFulltextResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateDocumentFulltextResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentFulltextResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateDocumentFulltextResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateDocumentFulltextResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateDocumentFulltextResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateDocumentFulltextResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentFulltextResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateDocumentFulltextResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateDocumentFulltextResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -189,7 +208,8 @@ public UpdateDocumentFulltextResponse read(JsonReader in) throws IOException { * * @param jsonString JSON string * @return An instance of UpdateDocumentFulltextResponse - * @throws IOException if the JSON string is invalid with respect to UpdateDocumentFulltextResponse + * @throws IOException if the JSON string is invalid with respect to + * UpdateDocumentFulltextResponse */ public static UpdateDocumentFulltextResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateDocumentFulltextResponse.class); diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java b/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java index 1960adda3..7cccc01ab 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -58,7 +65,9 @@ /** * UpdateDocumentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateDocumentRequest { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -130,8 +139,7 @@ public class UpdateDocumentRequest { @javax.annotation.Nullable private List documents = new ArrayList<>(); - public UpdateDocumentRequest() { - } + public UpdateDocumentRequest() {} public UpdateDocumentRequest path(@javax.annotation.Nullable String path) { this.path = path; @@ -140,6 +148,7 @@ public UpdateDocumentRequest path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -159,6 +168,7 @@ public UpdateDocumentRequest width(@javax.annotation.Nullable String width) { /** * Document Content Width property + * * @return width */ @javax.annotation.Nullable @@ -178,6 +188,7 @@ public UpdateDocumentRequest height(@javax.annotation.Nullable String height) { /** * Document Content Height property + * * @return height */ @javax.annotation.Nullable @@ -197,6 +208,7 @@ public UpdateDocumentRequest deepLinkPath(@javax.annotation.Nullable String deep /** * Path or Name of deep link + * * @return deepLinkPath */ @javax.annotation.Nullable @@ -216,6 +228,7 @@ public UpdateDocumentRequest contentType(@javax.annotation.Nullable String conte /** * Document media type + * * @return contentType */ @javax.annotation.Nullable @@ -235,6 +248,7 @@ public UpdateDocumentRequest isBase64(@javax.annotation.Nullable Boolean isBase6 /** * Is the content Base64-encoded? + * * @return isBase64 */ @javax.annotation.Nullable @@ -254,6 +268,7 @@ public UpdateDocumentRequest content(@javax.annotation.Nullable String content) /** * Document content + * * @return content */ @javax.annotation.Nullable @@ -273,6 +288,7 @@ public UpdateDocumentRequest checksum(@javax.annotation.Nullable String checksum /** * Document checksum, changes when document file changes + * * @return checksum */ @javax.annotation.Nullable @@ -292,6 +308,7 @@ public UpdateDocumentRequest checksumType(@javax.annotation.Nullable ChecksumTyp /** * Get checksumType + * * @return checksumType */ @javax.annotation.Nullable @@ -319,6 +336,7 @@ public UpdateDocumentRequest addTagsItem(AddDocumentTag tagsItem) { /** * List of document tags + * * @return tags */ @javax.annotation.Nullable @@ -331,7 +349,8 @@ public void setTags(@javax.annotation.Nullable List tags) { } - public UpdateDocumentRequest metadata(@javax.annotation.Nullable List metadata) { + public UpdateDocumentRequest metadata( + @javax.annotation.Nullable List metadata) { this.metadata = metadata; return this; } @@ -346,6 +365,7 @@ public UpdateDocumentRequest addMetadataItem(AddDocumentMetadata metadataItem) { /** * List of document Metadata + * * @return metadata */ @javax.annotation.Nullable @@ -358,7 +378,8 @@ public void setMetadata(@javax.annotation.Nullable List met } - public UpdateDocumentRequest attributes(@javax.annotation.Nullable List attributes) { + public UpdateDocumentRequest attributes( + @javax.annotation.Nullable List attributes) { this.attributes = attributes; return this; } @@ -373,6 +394,7 @@ public UpdateDocumentRequest addAttributesItem(AddDocumentAttribute attributesIt /** * List of document attributes + * * @return attributes */ @javax.annotation.Nullable @@ -400,6 +422,7 @@ public UpdateDocumentRequest addActionsItem(AddAction actionsItem) { /** * List of Actions + * * @return actions */ @javax.annotation.Nullable @@ -412,7 +435,8 @@ public void setActions(@javax.annotation.Nullable List actions) { } - public UpdateDocumentRequest documents(@javax.annotation.Nullable List documents) { + public UpdateDocumentRequest documents( + @javax.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -427,6 +451,7 @@ public UpdateDocumentRequest addDocumentsItem(AddChildDocument documentsItem) { /** * List of child documents + * * @return documents */ @javax.annotation.Nullable @@ -449,25 +474,26 @@ public boolean equals(Object o) { return false; } UpdateDocumentRequest updateDocumentRequest = (UpdateDocumentRequest) o; - return Objects.equals(this.path, updateDocumentRequest.path) && - Objects.equals(this.width, updateDocumentRequest.width) && - Objects.equals(this.height, updateDocumentRequest.height) && - Objects.equals(this.deepLinkPath, updateDocumentRequest.deepLinkPath) && - Objects.equals(this.contentType, updateDocumentRequest.contentType) && - Objects.equals(this.isBase64, updateDocumentRequest.isBase64) && - Objects.equals(this.content, updateDocumentRequest.content) && - Objects.equals(this.checksum, updateDocumentRequest.checksum) && - Objects.equals(this.checksumType, updateDocumentRequest.checksumType) && - Objects.equals(this.tags, updateDocumentRequest.tags) && - Objects.equals(this.metadata, updateDocumentRequest.metadata) && - Objects.equals(this.attributes, updateDocumentRequest.attributes) && - Objects.equals(this.actions, updateDocumentRequest.actions) && - Objects.equals(this.documents, updateDocumentRequest.documents); + return Objects.equals(this.path, updateDocumentRequest.path) + && Objects.equals(this.width, updateDocumentRequest.width) + && Objects.equals(this.height, updateDocumentRequest.height) + && Objects.equals(this.deepLinkPath, updateDocumentRequest.deepLinkPath) + && Objects.equals(this.contentType, updateDocumentRequest.contentType) + && Objects.equals(this.isBase64, updateDocumentRequest.isBase64) + && Objects.equals(this.content, updateDocumentRequest.content) + && Objects.equals(this.checksum, updateDocumentRequest.checksum) + && Objects.equals(this.checksumType, updateDocumentRequest.checksumType) + && Objects.equals(this.tags, updateDocumentRequest.tags) + && Objects.equals(this.metadata, updateDocumentRequest.metadata) + && Objects.equals(this.attributes, updateDocumentRequest.attributes) + && Objects.equals(this.actions, updateDocumentRequest.actions) + && Objects.equals(this.documents, updateDocumentRequest.documents); } @Override public int hashCode() { - return Objects.hash(path, width, height, deepLinkPath, contentType, isBase64, content, checksum, checksumType, tags, metadata, attributes, actions, documents); + return Objects.hash(path, width, height, deepLinkPath, contentType, isBase64, content, checksum, + checksumType, tags, metadata, attributes, actions, documents); } @Override @@ -493,8 +519,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -509,7 +534,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", "contentType", "isBase64", "content", "checksum", "checksumType", "tags", "metadata", "attributes", "actions", "documents")); + openapiFields = new HashSet(Arrays.asList("path", "width", "height", "deepLinkPath", + "contentType", "isBase64", "content", "checksum", "checksumType", "tags", "metadata", + "attributes", "actions", "documents")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -522,143 +549,179 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateDocumentRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateDocumentRequest is not found in the empty JSON string", UpdateDocumentRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateDocumentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateDocumentRequest is not found in the empty JSON string", + UpdateDocumentRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateDocumentRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateDocumentRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) && !jsonObj.get("width").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `width` to be a primitive type in the JSON string but got `%s`", jsonObj.get("width").toString())); - } - if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) && !jsonObj.get("height").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `height` to be a primitive type in the JSON string but got `%s`", jsonObj.get("height").toString())); - } - if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deepLinkPath").toString())); - } - if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) && !jsonObj.get("contentType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("contentType").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateDocumentRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateDocumentRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) && !jsonObj.get("content").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `content` to be a primitive type in the JSON string but got `%s`", jsonObj.get("content").toString())); - } - if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) && !jsonObj.get("checksum").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", jsonObj.get("checksum").toString())); - } - // validate the optional field `checksumType` - if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { - ChecksumType.validateJsonElement(jsonObj.get("checksumType")); - } - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("width") != null && !jsonObj.get("width").isJsonNull()) + && !jsonObj.get("width").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `width` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("width").toString())); + } + if ((jsonObj.get("height") != null && !jsonObj.get("height").isJsonNull()) + && !jsonObj.get("height").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `height` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("height").toString())); + } + if ((jsonObj.get("deepLinkPath") != null && !jsonObj.get("deepLinkPath").isJsonNull()) + && !jsonObj.get("deepLinkPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `deepLinkPath` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("deepLinkPath").toString())); + } + if ((jsonObj.get("contentType") != null && !jsonObj.get("contentType").isJsonNull()) + && !jsonObj.get("contentType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `contentType` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("contentType").toString())); + } + if ((jsonObj.get("content") != null && !jsonObj.get("content").isJsonNull()) + && !jsonObj.get("content").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `content` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("content").toString())); + } + if ((jsonObj.get("checksum") != null && !jsonObj.get("checksum").isJsonNull()) + && !jsonObj.get("checksum").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `checksum` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("checksum").toString())); + } + // validate the optional field `checksumType` + if (jsonObj.get("checksumType") != null && !jsonObj.get("checksumType").isJsonNull()) { + ChecksumType.validateJsonElement(jsonObj.get("checksumType")); + } + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); - if (jsonArraymetadata != null) { - // ensure the json data is an array - if (!jsonObj.get("metadata").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); - } - - // validate the optional field `metadata` (array) - for (int i = 0; i < jsonArraymetadata.size(); i++) { - AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); - }; + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `metadata` to be an array in the JSON string but got `%s`", + jsonObj.get("metadata").toString())); } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + AddDocumentMetadata.validateJsonElement(jsonArraymetadata.get(i)); + } ; } - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); - }; + } + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `attributes` to be an array in the JSON string but got `%s`", + jsonObj.get("attributes").toString())); } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + AddDocumentAttribute.validateJsonElement(jsonArrayattributes.get(i)); + } ; } - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { - JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); - if (jsonArrayactions != null) { - // ensure the json data is an array - if (!jsonObj.get("actions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); - } - - // validate the optional field `actions` (array) - for (int i = 0; i < jsonArrayactions.size(); i++) { - AddAction.validateJsonElement(jsonArrayactions.get(i)); - }; + } + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) { + JsonArray jsonArrayactions = jsonObj.getAsJsonArray("actions"); + if (jsonArrayactions != null) { + // ensure the json data is an array + if (!jsonObj.get("actions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `actions` to be an array in the JSON string but got `%s`", + jsonObj.get("actions").toString())); } + + // validate the optional field `actions` (array) + for (int i = 0; i < jsonArrayactions.size(); i++) { + AddAction.validateJsonElement(jsonArrayactions.get(i)); + } ; } - if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { - JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); - if (jsonArraydocuments != null) { - // ensure the json data is an array - if (!jsonObj.get("documents").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documents` to be an array in the JSON string but got `%s`", jsonObj.get("documents").toString())); - } - - // validate the optional field `documents` (array) - for (int i = 0; i < jsonArraydocuments.size(); i++) { - AddChildDocument.validateJsonElement(jsonArraydocuments.get(i)); - }; + } + if (jsonObj.get("documents") != null && !jsonObj.get("documents").isJsonNull()) { + JsonArray jsonArraydocuments = jsonObj.getAsJsonArray("documents"); + if (jsonArraydocuments != null) { + // ensure the json data is an array + if (!jsonObj.get("documents").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documents` to be an array in the JSON string but got `%s`", + jsonObj.get("documents").toString())); } + + // validate the optional field `documents` (array) + for (int i = 0; i < jsonArraydocuments.size(); i++) { + AddChildDocument.validateJsonElement(jsonArraydocuments.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateDocumentRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateDocumentRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateDocumentRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateDocumentRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateDocumentRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateDocumentRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateDocumentRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateDocumentRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateDocumentRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java b/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java index b9a57061d..bb1796993 100644 --- a/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * UpdateEntityRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateEntityRequest { public static final String SERIALIZED_NAME_ENTITY = "entity"; @SerializedName(SERIALIZED_NAME_ENTITY) @javax.annotation.Nullable private AddEntity entity; - public UpdateEntityRequest() { - } + public UpdateEntityRequest() {} public UpdateEntityRequest entity(@javax.annotation.Nullable AddEntity entity) { this.entity = entity; @@ -68,6 +76,7 @@ public UpdateEntityRequest entity(@javax.annotation.Nullable AddEntity entity) { /** * Get entity + * * @return entity */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateEntityRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateEntityRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateEntityRequest is not found in the empty JSON string", UpdateEntityRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateEntityRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateEntityRequest is not found in the empty JSON string", + UpdateEntityRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateEntityRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateEntityRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `entity` - if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { - AddEntity.validateJsonElement(jsonObj.get("entity")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateEntityRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateEntityRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `entity` + if (jsonObj.get("entity") != null && !jsonObj.get("entity").isJsonNull()) { + AddEntity.validateJsonElement(jsonObj.get("entity")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateEntityRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateEntityRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateEntityRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateEntityRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateEntityRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateEntityRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateEntityRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateEntityRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateEntityRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateEntityRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java index 40352a51b..5fbcf3c57 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * Add/Update of multiple document tag(s) based on document(s) that have the matching tag. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequest { public static final String SERIALIZED_NAME_MATCH = "match"; @SerializedName(SERIALIZED_NAME_MATCH) @@ -64,16 +73,17 @@ public class UpdateMatchingDocumentTagsRequest { @javax.annotation.Nonnull private UpdateMatchingDocumentTagsRequestUpdate update; - public UpdateMatchingDocumentTagsRequest() { - } + public UpdateMatchingDocumentTagsRequest() {} - public UpdateMatchingDocumentTagsRequest match(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequestMatch match) { + public UpdateMatchingDocumentTagsRequest match( + @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequestMatch match) { this.match = match; return this; } /** * Get match + * * @return match */ @javax.annotation.Nonnull @@ -86,13 +96,15 @@ public void setMatch(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequest } - public UpdateMatchingDocumentTagsRequest update(@javax.annotation.Nonnull UpdateMatchingDocumentTagsRequestUpdate update) { + public UpdateMatchingDocumentTagsRequest update( + @javax.annotation.Nonnull UpdateMatchingDocumentTagsRequestUpdate update) { this.update = update; return this; } /** * Get update + * * @return update */ @javax.annotation.Nonnull @@ -114,9 +126,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest = (UpdateMatchingDocumentTagsRequest) o; - return Objects.equals(this.match, updateMatchingDocumentTagsRequest.match) && - Objects.equals(this.update, updateMatchingDocumentTagsRequest.update); + UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest = + (UpdateMatchingDocumentTagsRequest) o; + return Objects.equals(this.match, updateMatchingDocumentTagsRequest.match) + && Objects.equals(this.update, updateMatchingDocumentTagsRequest.update); } @Override @@ -135,8 +148,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -161,62 +173,73 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateMatchingDocumentTagsRequest + * @throws IOException if the JSON Element is invalid with respect to + * UpdateMatchingDocumentTagsRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateMatchingDocumentTagsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateMatchingDocumentTagsRequest is not found in the empty JSON string", UpdateMatchingDocumentTagsRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateMatchingDocumentTagsRequest.openapiRequiredFields.isEmpty()) { // has required + // fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateMatchingDocumentTagsRequest is not found in the empty JSON string", + UpdateMatchingDocumentTagsRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateMatchingDocumentTagsRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateMatchingDocumentTagsRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UpdateMatchingDocumentTagsRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : UpdateMatchingDocumentTagsRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `match` - UpdateMatchingDocumentTagsRequestMatch.validateJsonElement(jsonObj.get("match")); - // validate the required field `update` - UpdateMatchingDocumentTagsRequestUpdate.validateJsonElement(jsonObj.get("update")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `match` + UpdateMatchingDocumentTagsRequestMatch.validateJsonElement(jsonObj.get("match")); + // validate the required field `update` + UpdateMatchingDocumentTagsRequestUpdate.validateJsonElement(jsonObj.get("update")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateMatchingDocumentTagsRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateMatchingDocumentTagsRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateMatchingDocumentTagsRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateMatchingDocumentTagsRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateMatchingDocumentTagsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateMatchingDocumentTagsRequest' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateMatchingDocumentTagsRequest value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateMatchingDocumentTagsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -225,7 +248,8 @@ public UpdateMatchingDocumentTagsRequest read(JsonReader in) throws IOException * * @param jsonString JSON string * @return An instance of UpdateMatchingDocumentTagsRequest - * @throws IOException if the JSON string is invalid with respect to UpdateMatchingDocumentTagsRequest + * @throws IOException if the JSON string is invalid with respect to + * UpdateMatchingDocumentTagsRequest */ public static UpdateMatchingDocumentTagsRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateMatchingDocumentTagsRequest.class); diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java index 37d55c462..f649bb58d 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,23 +58,26 @@ /** * UpdateMatchingDocumentTagsRequestMatch */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequestMatch { public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) @javax.annotation.Nullable private MatchDocumentTag tag; - public UpdateMatchingDocumentTagsRequestMatch() { - } + public UpdateMatchingDocumentTagsRequestMatch() {} - public UpdateMatchingDocumentTagsRequestMatch tag(@javax.annotation.Nullable MatchDocumentTag tag) { + public UpdateMatchingDocumentTagsRequestMatch tag( + @javax.annotation.Nullable MatchDocumentTag tag) { this.tag = tag; return this; } /** * Get tag + * * @return tag */ @javax.annotation.Nullable @@ -89,7 +99,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateMatchingDocumentTagsRequestMatch updateMatchingDocumentTagsRequestMatch = (UpdateMatchingDocumentTagsRequestMatch) o; + UpdateMatchingDocumentTagsRequestMatch updateMatchingDocumentTagsRequestMatch = + (UpdateMatchingDocumentTagsRequestMatch) o; return Objects.equals(this.tag, updateMatchingDocumentTagsRequestMatch.tag); } @@ -108,8 +119,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -134,55 +144,65 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateMatchingDocumentTagsRequestMatch + * @throws IOException if the JSON Element is invalid with respect to + * UpdateMatchingDocumentTagsRequestMatch */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateMatchingDocumentTagsRequestMatch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateMatchingDocumentTagsRequestMatch is not found in the empty JSON string", UpdateMatchingDocumentTagsRequestMatch.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateMatchingDocumentTagsRequestMatch.openapiRequiredFields.isEmpty()) { // has required + // fields but + // JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateMatchingDocumentTagsRequestMatch is not found in the empty JSON string", + UpdateMatchingDocumentTagsRequestMatch.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateMatchingDocumentTagsRequestMatch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequestMatch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `tag` - if (jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) { - MatchDocumentTag.validateJsonElement(jsonObj.get("tag")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateMatchingDocumentTagsRequestMatch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequestMatch` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `tag` + if (jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) { + MatchDocumentTag.validateJsonElement(jsonObj.get("tag")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateMatchingDocumentTagsRequestMatch.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateMatchingDocumentTagsRequestMatch' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequestMatch.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateMatchingDocumentTagsRequestMatch value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateMatchingDocumentTagsRequestMatch read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateMatchingDocumentTagsRequestMatch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateMatchingDocumentTagsRequestMatch' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = gson + .getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequestMatch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateMatchingDocumentTagsRequestMatch value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateMatchingDocumentTagsRequestMatch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -191,9 +211,11 @@ public UpdateMatchingDocumentTagsRequestMatch read(JsonReader in) throws IOExcep * * @param jsonString JSON string * @return An instance of UpdateMatchingDocumentTagsRequestMatch - * @throws IOException if the JSON string is invalid with respect to UpdateMatchingDocumentTagsRequestMatch + * @throws IOException if the JSON string is invalid with respect to + * UpdateMatchingDocumentTagsRequestMatch */ - public static UpdateMatchingDocumentTagsRequestMatch fromJson(String jsonString) throws IOException { + public static UpdateMatchingDocumentTagsRequestMatch fromJson(String jsonString) + throws IOException { return JSON.getGson().fromJson(jsonString, UpdateMatchingDocumentTagsRequestMatch.class); } diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java index adb860ee9..08c2cb3a1 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,17 +60,19 @@ /** * Data to update */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequestUpdate { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @javax.annotation.Nullable private List tags = new ArrayList<>(); - public UpdateMatchingDocumentTagsRequestUpdate() { - } + public UpdateMatchingDocumentTagsRequestUpdate() {} - public UpdateMatchingDocumentTagsRequestUpdate tags(@javax.annotation.Nullable List tags) { + public UpdateMatchingDocumentTagsRequestUpdate tags( + @javax.annotation.Nullable List tags) { this.tags = tags; return this; } @@ -78,6 +87,7 @@ public UpdateMatchingDocumentTagsRequestUpdate addTagsItem(AddDocumentTag tagsIt /** * List of document tags + * * @return tags */ @javax.annotation.Nullable @@ -99,7 +109,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateMatchingDocumentTagsRequestUpdate updateMatchingDocumentTagsRequestUpdate = (UpdateMatchingDocumentTagsRequestUpdate) o; + UpdateMatchingDocumentTagsRequestUpdate updateMatchingDocumentTagsRequestUpdate = + (UpdateMatchingDocumentTagsRequestUpdate) o; return Objects.equals(this.tags, updateMatchingDocumentTagsRequestUpdate.tags); } @@ -118,8 +129,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -144,65 +154,79 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateMatchingDocumentTagsRequestUpdate + * @throws IOException if the JSON Element is invalid with respect to + * UpdateMatchingDocumentTagsRequestUpdate */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateMatchingDocumentTagsRequestUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateMatchingDocumentTagsRequestUpdate is not found in the empty JSON string", UpdateMatchingDocumentTagsRequestUpdate.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateMatchingDocumentTagsRequestUpdate.openapiRequiredFields.isEmpty()) { // has + // required + // fields but + // JSON + // element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateMatchingDocumentTagsRequestUpdate is not found in the empty JSON string", + UpdateMatchingDocumentTagsRequestUpdate.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateMatchingDocumentTagsRequestUpdate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequestUpdate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateMatchingDocumentTagsRequestUpdate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsRequestUpdate` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { - JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); - if (jsonArraytags != null) { - // ensure the json data is an array - if (!jsonObj.get("tags").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); - } - - // validate the optional field `tags` (array) - for (int i = 0; i < jsonArraytags.size(); i++) { - AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) { + JsonArray jsonArraytags = jsonObj.getAsJsonArray("tags"); + if (jsonArraytags != null) { + // ensure the json data is an array + if (!jsonObj.get("tags").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `tags` to be an array in the JSON string but got `%s`", + jsonObj.get("tags").toString())); } + + // validate the optional field `tags` (array) + for (int i = 0; i < jsonArraytags.size(); i++) { + AddDocumentTag.validateJsonElement(jsonArraytags.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateMatchingDocumentTagsRequestUpdate.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateMatchingDocumentTagsRequestUpdate' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequestUpdate.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateMatchingDocumentTagsRequestUpdate value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateMatchingDocumentTagsRequestUpdate read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateMatchingDocumentTagsRequestUpdate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateMatchingDocumentTagsRequestUpdate' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = gson + .getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsRequestUpdate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateMatchingDocumentTagsRequestUpdate value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateMatchingDocumentTagsRequestUpdate read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -211,9 +235,11 @@ public UpdateMatchingDocumentTagsRequestUpdate read(JsonReader in) throws IOExce * * @param jsonString JSON string * @return An instance of UpdateMatchingDocumentTagsRequestUpdate - * @throws IOException if the JSON string is invalid with respect to UpdateMatchingDocumentTagsRequestUpdate + * @throws IOException if the JSON string is invalid with respect to + * UpdateMatchingDocumentTagsRequestUpdate */ - public static UpdateMatchingDocumentTagsRequestUpdate fromJson(String jsonString) throws IOException { + public static UpdateMatchingDocumentTagsRequestUpdate fromJson(String jsonString) + throws IOException { return JSON.getGson().fromJson(jsonString, UpdateMatchingDocumentTagsRequestUpdate.class); } diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java index 0f9c61d5b..4a91f6986 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * UpdateMatchingDocumentTagsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateMatchingDocumentTagsResponse() { - } + public UpdateMatchingDocumentTagsResponse() {} public UpdateMatchingDocumentTagsResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public UpdateMatchingDocumentTagsResponse message(@javax.annotation.Nullable Str /** * response message + * * @return message */ @javax.annotation.Nullable @@ -88,7 +97,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UpdateMatchingDocumentTagsResponse updateMatchingDocumentTagsResponse = (UpdateMatchingDocumentTagsResponse) o; + UpdateMatchingDocumentTagsResponse updateMatchingDocumentTagsResponse = + (UpdateMatchingDocumentTagsResponse) o; return Objects.equals(this.message, updateMatchingDocumentTagsResponse.message); } @@ -107,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -133,54 +142,66 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateMatchingDocumentTagsResponse + * @throws IOException if the JSON Element is invalid with respect to + * UpdateMatchingDocumentTagsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateMatchingDocumentTagsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateMatchingDocumentTagsResponse is not found in the empty JSON string", UpdateMatchingDocumentTagsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateMatchingDocumentTagsResponse.openapiRequiredFields.isEmpty()) { // has required + // fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateMatchingDocumentTagsResponse is not found in the empty JSON string", + UpdateMatchingDocumentTagsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateMatchingDocumentTagsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateMatchingDocumentTagsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateMatchingDocumentTagsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateMatchingDocumentTagsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateMatchingDocumentTagsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateMatchingDocumentTagsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateMatchingDocumentTagsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateMatchingDocumentTagsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateMatchingDocumentTagsResponse' and its + // subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateMatchingDocumentTagsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateMatchingDocumentTagsResponse value) + throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateMatchingDocumentTagsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } @@ -189,7 +210,8 @@ public UpdateMatchingDocumentTagsResponse read(JsonReader in) throws IOException * * @param jsonString JSON string * @return An instance of UpdateMatchingDocumentTagsResponse - * @throws IOException if the JSON string is invalid with respect to UpdateMatchingDocumentTagsResponse + * @throws IOException if the JSON string is invalid with respect to + * UpdateMatchingDocumentTagsResponse */ public static UpdateMatchingDocumentTagsResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateMatchingDocumentTagsResponse.class); diff --git a/src/main/java/com/formkiq/client/model/UpdateNigo.java b/src/main/java/com/formkiq/client/model/UpdateNigo.java index 405f2b99b..5892861aa 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigo.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigo.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * UpdateNigo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateNigo { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -102,8 +111,7 @@ public class UpdateNigo { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public UpdateNigo() { - } + public UpdateNigo() {} public UpdateNigo name(@javax.annotation.Nullable String name) { this.name = name; @@ -112,6 +120,7 @@ public UpdateNigo name(@javax.annotation.Nullable String name) { /** * Name of Nigo + * * @return name */ @javax.annotation.Nullable @@ -131,6 +140,7 @@ public UpdateNigo description(@javax.annotation.Nullable String description) { /** * Description of Nigo + * * @return description */ @javax.annotation.Nullable @@ -150,6 +160,7 @@ public UpdateNigo plannedStartDate(@javax.annotation.Nullable String plannedStar /** * Planned Start Date + * * @return plannedStartDate */ @javax.annotation.Nullable @@ -169,6 +180,7 @@ public UpdateNigo startDate(@javax.annotation.Nullable String startDate) { /** * Start Date + * * @return startDate */ @javax.annotation.Nullable @@ -188,6 +200,7 @@ public UpdateNigo endDate(@javax.annotation.Nullable String endDate) { /** * End Date + * * @return endDate */ @javax.annotation.Nullable @@ -207,6 +220,7 @@ public UpdateNigo dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date + * * @return dueDate */ @javax.annotation.Nullable @@ -226,6 +240,7 @@ public UpdateNigo status(@javax.annotation.Nullable NigoStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -253,6 +268,7 @@ public UpdateNigo putMetadataItem(String key, Object metadataItem) { /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -280,6 +296,7 @@ public UpdateNigo addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds + * * @return documentIds */ @javax.annotation.Nullable @@ -302,20 +319,21 @@ public boolean equals(Object o) { return false; } UpdateNigo updateNigo = (UpdateNigo) o; - return Objects.equals(this.name, updateNigo.name) && - Objects.equals(this.description, updateNigo.description) && - Objects.equals(this.plannedStartDate, updateNigo.plannedStartDate) && - Objects.equals(this.startDate, updateNigo.startDate) && - Objects.equals(this.endDate, updateNigo.endDate) && - Objects.equals(this.dueDate, updateNigo.dueDate) && - Objects.equals(this.status, updateNigo.status) && - Objects.equals(this.metadata, updateNigo.metadata) && - Objects.equals(this.documentIds, updateNigo.documentIds); + return Objects.equals(this.name, updateNigo.name) + && Objects.equals(this.description, updateNigo.description) + && Objects.equals(this.plannedStartDate, updateNigo.plannedStartDate) + && Objects.equals(this.startDate, updateNigo.startDate) + && Objects.equals(this.endDate, updateNigo.endDate) + && Objects.equals(this.dueDate, updateNigo.dueDate) + && Objects.equals(this.status, updateNigo.status) + && Objects.equals(this.metadata, updateNigo.metadata) + && Objects.equals(this.documentIds, updateNigo.documentIds); } @Override public int hashCode() { - return Objects.hash(name, description, plannedStartDate, startDate, endDate, dueDate, status, metadata, documentIds); + return Objects.hash(name, description, plannedStartDate, startDate, endDate, dueDate, status, + metadata, documentIds); } @Override @@ -336,8 +354,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -352,7 +369,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "description", "plannedStartDate", "startDate", "endDate", "dueDate", "status", "metadata", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "description", "plannedStartDate", + "startDate", "endDate", "dueDate", "status", "metadata", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -365,74 +383,100 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateNigo */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateNigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateNigo is not found in the empty JSON string", UpdateNigo.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateNigo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateNigo is not found in the empty JSON string", + UpdateNigo.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateNigo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateNigo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - NigoStatus.validateJsonElement(jsonObj.get("status")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateNigo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateNigo` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) + && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) + && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) + && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) + && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("dueDate").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + NigoStatus.validateJsonElement(jsonObj.get("status")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() + && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentIds` to be an array in the JSON string but got `%s`", + jsonObj.get("documentIds").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateNigo.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateNigo' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateNigo.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateNigo value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateNigo read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateNigo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateNigo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateNigo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateNigo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateNigo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java b/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java index 1bbea6120..147a2cd97 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * UpdateNigoRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateNigoRequest { public static final String SERIALIZED_NAME_NIGO = "nigo"; @SerializedName(SERIALIZED_NAME_NIGO) @javax.annotation.Nullable private UpdateNigo nigo; - public UpdateNigoRequest() { - } + public UpdateNigoRequest() {} public UpdateNigoRequest nigo(@javax.annotation.Nullable UpdateNigo nigo) { this.nigo = nigo; @@ -68,6 +76,7 @@ public UpdateNigoRequest nigo(@javax.annotation.Nullable UpdateNigo nigo) { /** * Get nigo + * * @return nigo */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateNigoRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateNigoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateNigoRequest is not found in the empty JSON string", UpdateNigoRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateNigoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateNigoRequest is not found in the empty JSON string", + UpdateNigoRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateNigoRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateNigoRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `nigo` - if (jsonObj.get("nigo") != null && !jsonObj.get("nigo").isJsonNull()) { - UpdateNigo.validateJsonElement(jsonObj.get("nigo")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateNigoRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateNigoRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `nigo` + if (jsonObj.get("nigo") != null && !jsonObj.get("nigo").isJsonNull()) { + UpdateNigo.validateJsonElement(jsonObj.get("nigo")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateNigoRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateNigoRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateNigoRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateNigoRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateNigoRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateNigoRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateNigoRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateNigoRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateNigoRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateNigoRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java b/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java index c6baf3e94..5abd73db1 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * UpdateNigoResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateNigoResponse { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; @SerializedName(SERIALIZED_NAME_NIGO_ID) @javax.annotation.Nullable private String nigoId; - public UpdateNigoResponse() { - } + public UpdateNigoResponse() {} public UpdateNigoResponse nigoId(@javax.annotation.Nullable String nigoId) { this.nigoId = nigoId; @@ -67,6 +75,7 @@ public UpdateNigoResponse nigoId(@javax.annotation.Nullable String nigoId) { /** * Nigo Identifier + * * @return nigoId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateNigoResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateNigoResponse is not found in the empty JSON string", UpdateNigoResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateNigoResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateNigoResponse is not found in the empty JSON string", + UpdateNigoResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateNigoResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateNigoResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) && !jsonObj.get("nigoId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nigoId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateNigoResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateNigoResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("nigoId") != null && !jsonObj.get("nigoId").isJsonNull()) + && !jsonObj.get("nigoId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `nigoId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("nigoId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateNigoResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateNigoResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateNigoResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateNigoResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateNigoResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateNigoResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateNigoResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateNigoResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateNigoResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateNigoResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateResponse.java b/src/main/java/com/formkiq/client/model/UpdateResponse.java index 18bad7b39..691a6d871 100644 --- a/src/main/java/com/formkiq/client/model/UpdateResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * UpdateResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateResponse() { - } + public UpdateResponse() {} public UpdateResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public UpdateResponse message(@javax.annotation.Nullable String message) { /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateResponse is not found in the empty JSON string", UpdateResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateResponse is not found in the empty JSON string", + UpdateResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRule.java b/src/main/java/com/formkiq/client/model/UpdateRule.java index 8a7362353..4838eb8c3 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRule.java +++ b/src/main/java/com/formkiq/client/model/UpdateRule.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * UpdateRule */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateRule { public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) @@ -80,8 +89,7 @@ public class UpdateRule { @javax.annotation.Nullable private RuleCondition conditions; - public UpdateRule() { - } + public UpdateRule() {} public UpdateRule priority(@javax.annotation.Nullable BigDecimal priority) { this.priority = priority; @@ -90,6 +98,7 @@ public UpdateRule priority(@javax.annotation.Nullable BigDecimal priority) { /** * Rule priority + * * @return priority */ @javax.annotation.Nullable @@ -109,6 +118,7 @@ public UpdateRule description(@javax.annotation.Nullable String description) { /** * Rule description + * * @return description */ @javax.annotation.Nullable @@ -128,6 +138,7 @@ public UpdateRule status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -147,6 +158,7 @@ public UpdateRule workflowId(@javax.annotation.Nullable String workflowId) { /** * Workflow to start on matching of conditions + * * @return workflowId */ @javax.annotation.Nullable @@ -166,6 +178,7 @@ public UpdateRule conditions(@javax.annotation.Nullable RuleCondition conditions /** * Get conditions + * * @return conditions */ @javax.annotation.Nullable @@ -188,11 +201,11 @@ public boolean equals(Object o) { return false; } UpdateRule updateRule = (UpdateRule) o; - return Objects.equals(this.priority, updateRule.priority) && - Objects.equals(this.description, updateRule.description) && - Objects.equals(this.status, updateRule.status) && - Objects.equals(this.workflowId, updateRule.workflowId) && - Objects.equals(this.conditions, updateRule.conditions); + return Objects.equals(this.priority, updateRule.priority) + && Objects.equals(this.description, updateRule.description) + && Objects.equals(this.status, updateRule.status) + && Objects.equals(this.workflowId, updateRule.workflowId) + && Objects.equals(this.conditions, updateRule.conditions); } @Override @@ -214,8 +227,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -230,7 +242,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("priority", "description", "status", "workflowId", "conditions")); + openapiFields = new HashSet( + Arrays.asList("priority", "description", "status", "workflowId", "conditions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -243,62 +256,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRule */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRule is not found in the empty JSON string", UpdateRule.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateRule is not found in the empty JSON string", + UpdateRule.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); - } - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); - } - // validate the optional field `conditions` - if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { - RuleCondition.validateJsonElement(jsonObj.get("conditions")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateRule` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); + } + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) + && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workflowId").toString())); + } + // validate the optional field `conditions` + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + RuleCondition.validateJsonElement(jsonObj.get("conditions")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRule.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRule' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateRule.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRule value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRule read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRule read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java b/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java index 0c0a1b068..ddd9ea9b7 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * UpdateRuleRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateRuleRequest { public static final String SERIALIZED_NAME_RULE = "rule"; @SerializedName(SERIALIZED_NAME_RULE) @javax.annotation.Nullable private UpdateRule rule; - public UpdateRuleRequest() { - } + public UpdateRuleRequest() {} public UpdateRuleRequest rule(@javax.annotation.Nullable UpdateRule rule) { this.rule = rule; @@ -68,6 +76,7 @@ public UpdateRuleRequest rule(@javax.annotation.Nullable UpdateRule rule) { /** * Get rule + * * @return rule */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRuleRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRuleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRuleRequest is not found in the empty JSON string", UpdateRuleRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateRuleRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateRuleRequest is not found in the empty JSON string", + UpdateRuleRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRuleRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRuleRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `rule` - if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { - UpdateRule.validateJsonElement(jsonObj.get("rule")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRuleRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateRuleRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `rule` + if (jsonObj.get("rule") != null && !jsonObj.get("rule").isJsonNull()) { + UpdateRule.validateJsonElement(jsonObj.get("rule")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRuleRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRuleRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRuleRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRuleRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRuleRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRuleRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRuleRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRuleRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java b/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java index fac525432..9be44ccc4 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * UpdateRuleResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateRuleResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateRuleResponse() { - } + public UpdateRuleResponse() {} public UpdateRuleResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public UpdateRuleResponse message(@javax.annotation.Nullable String message) { /** * Rule update message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRuleResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRuleResponse is not found in the empty JSON string", UpdateRuleResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateRuleResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateRuleResponse is not found in the empty JSON string", + UpdateRuleResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRuleResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRuleResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRuleResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateRuleResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRuleResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRuleResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRuleResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRuleResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRuleResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRuleResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRuleResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRuleResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleset.java b/src/main/java/com/formkiq/client/model/UpdateRuleset.java index 05aba5439..4e76fa25f 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleset.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleset.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * UpdateRuleset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateRuleset { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -74,8 +83,7 @@ public class UpdateRuleset { @javax.annotation.Nullable private RulesetStatus status; - public UpdateRuleset() { - } + public UpdateRuleset() {} public UpdateRuleset description(@javax.annotation.Nullable String description) { this.description = description; @@ -84,6 +92,7 @@ public UpdateRuleset description(@javax.annotation.Nullable String description) /** * Ruleset description + * * @return description */ @javax.annotation.Nullable @@ -103,6 +112,7 @@ public UpdateRuleset priority(@javax.annotation.Nullable BigDecimal priority) { /** * Ruleset priority + * * @return priority */ @javax.annotation.Nullable @@ -122,6 +132,7 @@ public UpdateRuleset version(@javax.annotation.Nullable BigDecimal version) { /** * Ruleset version + * * @return version */ @javax.annotation.Nullable @@ -141,6 +152,7 @@ public UpdateRuleset status(@javax.annotation.Nullable RulesetStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -163,10 +175,10 @@ public boolean equals(Object o) { return false; } UpdateRuleset updateRuleset = (UpdateRuleset) o; - return Objects.equals(this.description, updateRuleset.description) && - Objects.equals(this.priority, updateRuleset.priority) && - Objects.equals(this.version, updateRuleset.version) && - Objects.equals(this.status, updateRuleset.status); + return Objects.equals(this.description, updateRuleset.description) + && Objects.equals(this.priority, updateRuleset.priority) + && Objects.equals(this.version, updateRuleset.version) + && Objects.equals(this.status, updateRuleset.status); } @Override @@ -187,8 +199,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -203,7 +214,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("description", "priority", "version", "status")); + openapiFields = + new HashSet(Arrays.asList("description", "priority", "version", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -216,55 +228,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRuleset */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRuleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRuleset is not found in the empty JSON string", UpdateRuleset.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateRuleset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateRuleset is not found in the empty JSON string", + UpdateRuleset.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRuleset.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRuleset` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - RulesetStatus.validateJsonElement(jsonObj.get("status")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRuleset.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateRuleset` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + RulesetStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRuleset.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRuleset' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleset.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRuleset value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRuleset read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRuleset.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRuleset' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateRuleset.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRuleset value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRuleset read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java b/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java index 9670f94d4..46d5ffa95 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * UpdateRulesetRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateRulesetRequest { public static final String SERIALIZED_NAME_RULESET = "ruleset"; @SerializedName(SERIALIZED_NAME_RULESET) @javax.annotation.Nonnull private UpdateRuleset ruleset; - public UpdateRulesetRequest() { - } + public UpdateRulesetRequest() {} public UpdateRulesetRequest ruleset(@javax.annotation.Nonnull UpdateRuleset ruleset) { this.ruleset = ruleset; @@ -68,6 +76,7 @@ public UpdateRulesetRequest ruleset(@javax.annotation.Nonnull UpdateRuleset rule /** * Get ruleset + * * @return ruleset */ @javax.annotation.Nonnull @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,57 +145,64 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRulesetRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRulesetRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRulesetRequest is not found in the empty JSON string", UpdateRulesetRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateRulesetRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateRulesetRequest is not found in the empty JSON string", + UpdateRulesetRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRulesetRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRulesetRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRulesetRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateRulesetRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UpdateRulesetRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : UpdateRulesetRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `ruleset` - UpdateRuleset.validateJsonElement(jsonObj.get("ruleset")); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `ruleset` + UpdateRuleset.validateJsonElement(jsonObj.get("ruleset")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRulesetRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRulesetRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateRulesetRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRulesetRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRulesetRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRulesetRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRulesetRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateRulesetRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRulesetRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRulesetRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java b/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java index 8430bc16b..e54dc19a7 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * UpdateRulesetResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateRulesetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateRulesetResponse() { - } + public UpdateRulesetResponse() {} public UpdateRulesetResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public UpdateRulesetResponse message(@javax.annotation.Nullable String message) /** * Ruleset update message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateRulesetResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateRulesetResponse is not found in the empty JSON string", UpdateRulesetResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateRulesetResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateRulesetResponse is not found in the empty JSON string", + UpdateRulesetResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateRulesetResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateRulesetResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateRulesetResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateRulesetResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateRulesetResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateRulesetResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateRulesetResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateRulesetResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateRulesetResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateRulesetResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateRulesetResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateRulesetResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateRulesetResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateRulesetResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateSite.java b/src/main/java/com/formkiq/client/model/UpdateSite.java index a93f716e1..2bd377e78 100644 --- a/src/main/java/com/formkiq/client/model/UpdateSite.java +++ b/src/main/java/com/formkiq/client/model/UpdateSite.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * UpdateSite */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateSite { public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -63,8 +72,7 @@ public class UpdateSite { @javax.annotation.Nullable private SiteStatus status; - public UpdateSite() { - } + public UpdateSite() {} public UpdateSite title(@javax.annotation.Nullable String title) { this.title = title; @@ -73,6 +81,7 @@ public UpdateSite title(@javax.annotation.Nullable String title) { /** * Title of Site + * * @return title */ @javax.annotation.Nullable @@ -92,6 +101,7 @@ public UpdateSite status(@javax.annotation.Nullable SiteStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -114,8 +124,8 @@ public boolean equals(Object o) { return false; } UpdateSite updateSite = (UpdateSite) o; - return Objects.equals(this.title, updateSite.title) && - Objects.equals(this.status, updateSite.status); + return Objects.equals(this.title, updateSite.title) + && Objects.equals(this.status, updateSite.status); } @Override @@ -134,8 +144,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,55 +172,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateSite */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateSite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateSite is not found in the empty JSON string", UpdateSite.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateSite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateSite is not found in the empty JSON string", + UpdateSite.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateSite.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateSite` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - SiteStatus.validateJsonElement(jsonObj.get("status")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateSite.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateSite` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) + && !jsonObj.get("title").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `title` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("title").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + SiteStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateSite.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateSite' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateSite.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateSite value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateSite read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateSite.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateSite' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateSite.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateSite value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateSite read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java b/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java index 42fb7534c..c6a252483 100644 --- a/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * UpdateSiteRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateSiteRequest { public static final String SERIALIZED_NAME_SITE = "site"; @SerializedName(SERIALIZED_NAME_SITE) @javax.annotation.Nullable private UpdateSite site; - public UpdateSiteRequest() { - } + public UpdateSiteRequest() {} public UpdateSiteRequest site(@javax.annotation.Nullable UpdateSite site) { this.site = site; @@ -68,6 +76,7 @@ public UpdateSiteRequest site(@javax.annotation.Nullable UpdateSite site) { /** * Get site + * * @return site */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateSiteRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateSiteRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateSiteRequest is not found in the empty JSON string", UpdateSiteRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateSiteRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateSiteRequest is not found in the empty JSON string", + UpdateSiteRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateSiteRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateSiteRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `site` - if (jsonObj.get("site") != null && !jsonObj.get("site").isJsonNull()) { - UpdateSite.validateJsonElement(jsonObj.get("site")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateSiteRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateSiteRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `site` + if (jsonObj.get("site") != null && !jsonObj.get("site").isJsonNull()) { + UpdateSite.validateJsonElement(jsonObj.get("site")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateSiteRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateSiteRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateSiteRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateSiteRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateSiteRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateSiteRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateSiteRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateSiteRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateSiteRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateSiteRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateTask.java b/src/main/java/com/formkiq/client/model/UpdateTask.java index b7fb8e503..a3bdaa292 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTask.java +++ b/src/main/java/com/formkiq/client/model/UpdateTask.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * UpdateTask */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateTask { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -102,8 +111,7 @@ public class UpdateTask { @javax.annotation.Nullable private List documentIds = new ArrayList<>(); - public UpdateTask() { - } + public UpdateTask() {} public UpdateTask name(@javax.annotation.Nullable String name) { this.name = name; @@ -112,6 +120,7 @@ public UpdateTask name(@javax.annotation.Nullable String name) { /** * Name of Task + * * @return name */ @javax.annotation.Nullable @@ -131,6 +140,7 @@ public UpdateTask description(@javax.annotation.Nullable String description) { /** * Description of Task + * * @return description */ @javax.annotation.Nullable @@ -150,6 +160,7 @@ public UpdateTask plannedStartDate(@javax.annotation.Nullable String plannedStar /** * Planned Start Date + * * @return plannedStartDate */ @javax.annotation.Nullable @@ -169,6 +180,7 @@ public UpdateTask startDate(@javax.annotation.Nullable String startDate) { /** * Start Date + * * @return startDate */ @javax.annotation.Nullable @@ -188,6 +200,7 @@ public UpdateTask endDate(@javax.annotation.Nullable String endDate) { /** * End Date + * * @return endDate */ @javax.annotation.Nullable @@ -207,6 +220,7 @@ public UpdateTask dueDate(@javax.annotation.Nullable String dueDate) { /** * Due Date + * * @return dueDate */ @javax.annotation.Nullable @@ -226,6 +240,7 @@ public UpdateTask status(@javax.annotation.Nullable TaskStatus status) { /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -253,6 +268,7 @@ public UpdateTask putMetadataItem(String key, Object metadataItem) { /** * Get metadata + * * @return metadata */ @javax.annotation.Nullable @@ -280,6 +296,7 @@ public UpdateTask addDocumentIdsItem(String documentIdsItem) { /** * Get documentIds + * * @return documentIds */ @javax.annotation.Nullable @@ -302,20 +319,21 @@ public boolean equals(Object o) { return false; } UpdateTask updateTask = (UpdateTask) o; - return Objects.equals(this.name, updateTask.name) && - Objects.equals(this.description, updateTask.description) && - Objects.equals(this.plannedStartDate, updateTask.plannedStartDate) && - Objects.equals(this.startDate, updateTask.startDate) && - Objects.equals(this.endDate, updateTask.endDate) && - Objects.equals(this.dueDate, updateTask.dueDate) && - Objects.equals(this.status, updateTask.status) && - Objects.equals(this.metadata, updateTask.metadata) && - Objects.equals(this.documentIds, updateTask.documentIds); + return Objects.equals(this.name, updateTask.name) + && Objects.equals(this.description, updateTask.description) + && Objects.equals(this.plannedStartDate, updateTask.plannedStartDate) + && Objects.equals(this.startDate, updateTask.startDate) + && Objects.equals(this.endDate, updateTask.endDate) + && Objects.equals(this.dueDate, updateTask.dueDate) + && Objects.equals(this.status, updateTask.status) + && Objects.equals(this.metadata, updateTask.metadata) + && Objects.equals(this.documentIds, updateTask.documentIds); } @Override public int hashCode() { - return Objects.hash(name, description, plannedStartDate, startDate, endDate, dueDate, status, metadata, documentIds); + return Objects.hash(name, description, plannedStartDate, startDate, endDate, dueDate, status, + metadata, documentIds); } @Override @@ -336,8 +354,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -352,7 +369,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "description", "plannedStartDate", "startDate", "endDate", "dueDate", "status", "metadata", "documentIds")); + openapiFields = new HashSet(Arrays.asList("name", "description", "plannedStartDate", + "startDate", "endDate", "dueDate", "status", "metadata", "documentIds")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -365,74 +383,100 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateTask */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateTask.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateTask is not found in the empty JSON string", UpdateTask.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateTask.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateTask is not found in the empty JSON string", + UpdateTask.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateTask.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateTask` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plannedStartDate").toString())); - } - if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) && !jsonObj.get("startDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); - } - if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); - } - if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) && !jsonObj.get("dueDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("dueDate").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - TaskStatus.validateJsonElement(jsonObj.get("status")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() && !jsonObj.get("documentIds").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `documentIds` to be an array in the JSON string but got `%s`", jsonObj.get("documentIds").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateTask.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateTask` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("plannedStartDate") != null && !jsonObj.get("plannedStartDate").isJsonNull()) + && !jsonObj.get("plannedStartDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `plannedStartDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("plannedStartDate").toString())); + } + if ((jsonObj.get("startDate") != null && !jsonObj.get("startDate").isJsonNull()) + && !jsonObj.get("startDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("startDate").toString())); + } + if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) + && !jsonObj.get("endDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("endDate").toString())); + } + if ((jsonObj.get("dueDate") != null && !jsonObj.get("dueDate").isJsonNull()) + && !jsonObj.get("dueDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `dueDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("dueDate").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + TaskStatus.validateJsonElement(jsonObj.get("status")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("documentIds") != null && !jsonObj.get("documentIds").isJsonNull() + && !jsonObj.get("documentIds").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `documentIds` to be an array in the JSON string but got `%s`", + jsonObj.get("documentIds").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateTask.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateTask' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateTask.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateTask value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateTask read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateTask.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateTask' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateTask.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateTask value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateTask read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java b/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java index ceaf5d5a0..498ea9d72 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,15 +58,16 @@ /** * UpdateTaskRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateTaskRequest { public static final String SERIALIZED_NAME_TASK = "task"; @SerializedName(SERIALIZED_NAME_TASK) @javax.annotation.Nullable private UpdateTask task; - public UpdateTaskRequest() { - } + public UpdateTaskRequest() {} public UpdateTaskRequest task(@javax.annotation.Nullable UpdateTask task) { this.task = task; @@ -68,6 +76,7 @@ public UpdateTaskRequest task(@javax.annotation.Nullable UpdateTask task) { /** * Get task + * * @return task */ @javax.annotation.Nullable @@ -108,8 +117,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -137,52 +145,57 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateTaskRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateTaskRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateTaskRequest is not found in the empty JSON string", UpdateTaskRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateTaskRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateTaskRequest is not found in the empty JSON string", + UpdateTaskRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateTaskRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateTaskRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `task` - if (jsonObj.get("task") != null && !jsonObj.get("task").isJsonNull()) { - UpdateTask.validateJsonElement(jsonObj.get("task")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateTaskRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateTaskRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `task` + if (jsonObj.get("task") != null && !jsonObj.get("task").isJsonNull()) { + UpdateTask.validateJsonElement(jsonObj.get("task")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateTaskRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateTaskRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateTaskRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateTaskRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateTaskRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateTaskRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateTaskRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateTaskRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateTaskRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateTaskRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java b/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java index 9f01c330d..b13765235 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * UpdateTaskResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateTaskResponse { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; @SerializedName(SERIALIZED_NAME_TASK_ID) @javax.annotation.Nullable private String taskId; - public UpdateTaskResponse() { - } + public UpdateTaskResponse() {} public UpdateTaskResponse taskId(@javax.annotation.Nullable String taskId) { this.taskId = taskId; @@ -67,6 +75,7 @@ public UpdateTaskResponse taskId(@javax.annotation.Nullable String taskId) { /** * Task Identifier + * * @return taskId */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateTaskResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateTaskResponse is not found in the empty JSON string", UpdateTaskResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateTaskResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateTaskResponse is not found in the empty JSON string", + UpdateTaskResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateTaskResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateTaskResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) && !jsonObj.get("taskId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("taskId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateTaskResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateTaskResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("taskId") != null && !jsonObj.get("taskId").isJsonNull()) + && !jsonObj.get("taskId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `taskId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("taskId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateTaskResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateTaskResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateTaskResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateTaskResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateTaskResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateTaskResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateTaskResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateTaskResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateTaskResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateTaskResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java b/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java index f9b93db74..178dab181 100644 --- a/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * UpdateWorkflowRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -68,8 +77,7 @@ public class UpdateWorkflowRequest { @javax.annotation.Nullable private WorkflowStatus status; - public UpdateWorkflowRequest() { - } + public UpdateWorkflowRequest() {} public UpdateWorkflowRequest name(@javax.annotation.Nullable String name) { this.name = name; @@ -78,6 +86,7 @@ public UpdateWorkflowRequest name(@javax.annotation.Nullable String name) { /** * Workflow name + * * @return name */ @javax.annotation.Nullable @@ -97,6 +106,7 @@ public UpdateWorkflowRequest description(@javax.annotation.Nullable String descr /** * Workflow description + * * @return description */ @javax.annotation.Nullable @@ -116,6 +126,7 @@ public UpdateWorkflowRequest status(@javax.annotation.Nullable WorkflowStatus st /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -138,9 +149,9 @@ public boolean equals(Object o) { return false; } UpdateWorkflowRequest updateWorkflowRequest = (UpdateWorkflowRequest) o; - return Objects.equals(this.name, updateWorkflowRequest.name) && - Objects.equals(this.description, updateWorkflowRequest.description) && - Objects.equals(this.status, updateWorkflowRequest.status); + return Objects.equals(this.name, updateWorkflowRequest.name) + && Objects.equals(this.description, updateWorkflowRequest.description) + && Objects.equals(this.status, updateWorkflowRequest.status); } @Override @@ -160,8 +171,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -189,58 +199,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateWorkflowRequest */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateWorkflowRequest is not found in the empty JSON string", UpdateWorkflowRequest.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateWorkflowRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateWorkflowRequest is not found in the empty JSON string", + UpdateWorkflowRequest.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateWorkflowRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateWorkflowRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - WorkflowStatus.validateJsonElement(jsonObj.get("status")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateWorkflowRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateWorkflowRequest` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + WorkflowStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateWorkflowRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateWorkflowRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateWorkflowRequest.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateWorkflowRequest value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateWorkflowRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateWorkflowRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateWorkflowRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateWorkflowRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateWorkflowRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateWorkflowRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java b/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java index 56f79834a..24ce1af81 100644 --- a/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,15 +57,16 @@ /** * UpdateWorkflowResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UpdateWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @javax.annotation.Nullable private String message; - public UpdateWorkflowResponse() { - } + public UpdateWorkflowResponse() {} public UpdateWorkflowResponse message(@javax.annotation.Nullable String message) { this.message = message; @@ -67,6 +75,7 @@ public UpdateWorkflowResponse message(@javax.annotation.Nullable String message) /** * Result message + * * @return message */ @javax.annotation.Nullable @@ -107,8 +116,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -136,51 +144,59 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UpdateWorkflowResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UpdateWorkflowResponse is not found in the empty JSON string", UpdateWorkflowResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UpdateWorkflowResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UpdateWorkflowResponse is not found in the empty JSON string", + UpdateWorkflowResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateWorkflowResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UpdateWorkflowResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UpdateWorkflowResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UpdateWorkflowResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) + && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `message` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("message").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateWorkflowResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateWorkflowResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UpdateWorkflowResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateWorkflowResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateWorkflowResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UpdateWorkflowResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateWorkflowResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UpdateWorkflowResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateWorkflowResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UpdateWorkflowResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/User.java b/src/main/java/com/formkiq/client/model/User.java index a2f4d08cb..12611b147 100644 --- a/src/main/java/com/formkiq/client/model/User.java +++ b/src/main/java/com/formkiq/client/model/User.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * User */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class User { public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) @@ -88,8 +97,7 @@ public class User { @javax.annotation.Nullable private UserAttributes attributes; - public User() { - } + public User() {} public User username(@javax.annotation.Nullable String username) { this.username = username; @@ -98,6 +106,7 @@ public User username(@javax.annotation.Nullable String username) { /** * Username of user + * * @return username */ @javax.annotation.Nullable @@ -117,6 +126,7 @@ public User email(@javax.annotation.Nullable String email) { /** * Email of user + * * @return email */ @javax.annotation.Nullable @@ -136,6 +146,7 @@ public User enabled(@javax.annotation.Nullable Boolean enabled) { /** * whether the user is enabled + * * @return enabled */ @javax.annotation.Nullable @@ -155,6 +166,7 @@ public User userStatus(@javax.annotation.Nullable String userStatus) { /** * Status of user + * * @return userStatus */ @javax.annotation.Nullable @@ -174,6 +186,7 @@ public User insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted timestamp of user + * * @return insertedDate */ @javax.annotation.Nullable @@ -193,6 +206,7 @@ public User lastModifiedDate(@javax.annotation.Nullable String lastModifiedDate) /** * Last nodified timestamp of user + * * @return lastModifiedDate */ @javax.annotation.Nullable @@ -212,6 +226,7 @@ public User attributes(@javax.annotation.Nullable UserAttributes attributes) { /** * Get attributes + * * @return attributes */ @javax.annotation.Nullable @@ -234,18 +249,18 @@ public boolean equals(Object o) { return false; } User user = (User) o; - return Objects.equals(this.username, user.username) && - Objects.equals(this.email, user.email) && - Objects.equals(this.enabled, user.enabled) && - Objects.equals(this.userStatus, user.userStatus) && - Objects.equals(this.insertedDate, user.insertedDate) && - Objects.equals(this.lastModifiedDate, user.lastModifiedDate) && - Objects.equals(this.attributes, user.attributes); + return Objects.equals(this.username, user.username) && Objects.equals(this.email, user.email) + && Objects.equals(this.enabled, user.enabled) + && Objects.equals(this.userStatus, user.userStatus) + && Objects.equals(this.insertedDate, user.insertedDate) + && Objects.equals(this.lastModifiedDate, user.lastModifiedDate) + && Objects.equals(this.attributes, user.attributes); } @Override public int hashCode() { - return Objects.hash(username, email, enabled, userStatus, insertedDate, lastModifiedDate, attributes); + return Objects.hash(username, email, enabled, userStatus, insertedDate, lastModifiedDate, + attributes); } @Override @@ -264,8 +279,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -280,7 +294,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("username", "email", "enabled", "userStatus", "insertedDate", "lastModifiedDate", "attributes")); + openapiFields = new HashSet(Arrays.asList("username", "email", "enabled", "userStatus", + "insertedDate", "lastModifiedDate", "attributes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -293,67 +308,86 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to User */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!User.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in User is not found in the empty JSON string", User.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!User.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in User is not found in the empty JSON string", + User.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!User.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `User` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); - } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); - } - if ((jsonObj.get("userStatus") != null && !jsonObj.get("userStatus").isJsonNull()) && !jsonObj.get("userStatus").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userStatus` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userStatus").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastModifiedDate").toString())); - } - // validate the optional field `attributes` - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - UserAttributes.validateJsonElement(jsonObj.get("attributes")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!User.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `User` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) + && !jsonObj.get("username").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `username` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("username").toString())); + } + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) + && !jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `email` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("email").toString())); + } + if ((jsonObj.get("userStatus") != null && !jsonObj.get("userStatus").isJsonNull()) + && !jsonObj.get("userStatus").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userStatus` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userStatus").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("lastModifiedDate") != null && !jsonObj.get("lastModifiedDate").isJsonNull()) + && !jsonObj.get("lastModifiedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `lastModifiedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("lastModifiedDate").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + UserAttributes.validateJsonElement(jsonObj.get("attributes")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!User.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'User' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(User.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, User value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public User read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!User.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'User' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(User.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, User value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public User read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UserActivity.java b/src/main/java/com/formkiq/client/model/UserActivity.java index 1821c9138..05aa5d68c 100644 --- a/src/main/java/com/formkiq/client/model/UserActivity.java +++ b/src/main/java/com/formkiq/client/model/UserActivity.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * UserActivity */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UserActivity { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -82,8 +91,7 @@ public class UserActivity { @javax.annotation.Nullable private Map changes = new HashMap<>(); - public UserActivity() { - } + public UserActivity() {} public UserActivity type(@javax.annotation.Nullable UserActivityType type) { this.type = type; @@ -92,6 +100,7 @@ public UserActivity type(@javax.annotation.Nullable UserActivityType type) { /** * Get type + * * @return type */ @javax.annotation.Nullable @@ -111,6 +120,7 @@ public UserActivity insertedDate(@javax.annotation.Nullable String insertedDate) /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -130,6 +140,7 @@ public UserActivity userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -149,6 +160,7 @@ public UserActivity document(@javax.annotation.Nullable Document document) { /** * Get document + * * @return document */ @javax.annotation.Nullable @@ -176,6 +188,7 @@ public UserActivity putChangesItem(String key, UserActivityChanges changesItem) /** * Get changes + * * @return changes */ @javax.annotation.Nullable @@ -198,11 +211,11 @@ public boolean equals(Object o) { return false; } UserActivity userActivity = (UserActivity) o; - return Objects.equals(this.type, userActivity.type) && - Objects.equals(this.insertedDate, userActivity.insertedDate) && - Objects.equals(this.userId, userActivity.userId) && - Objects.equals(this.document, userActivity.document) && - Objects.equals(this.changes, userActivity.changes); + return Objects.equals(this.type, userActivity.type) + && Objects.equals(this.insertedDate, userActivity.insertedDate) + && Objects.equals(this.userId, userActivity.userId) + && Objects.equals(this.document, userActivity.document) + && Objects.equals(this.changes, userActivity.changes); } @Override @@ -224,8 +237,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -240,7 +252,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("type", "insertedDate", "userId", "document", "changes")); + openapiFields = + new HashSet(Arrays.asList("type", "insertedDate", "userId", "document", "changes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -253,62 +266,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UserActivity */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UserActivity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserActivity is not found in the empty JSON string", UserActivity.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UserActivity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UserActivity is not found in the empty JSON string", + UserActivity.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UserActivity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserActivity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - UserActivityType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - // validate the optional field `document` - if (jsonObj.get("document") != null && !jsonObj.get("document").isJsonNull()) { - Document.validateJsonElement(jsonObj.get("document")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UserActivity.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UserActivity` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + UserActivityType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + // validate the optional field `document` + if (jsonObj.get("document") != null && !jsonObj.get("document").isJsonNull()) { + Document.validateJsonElement(jsonObj.get("document")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserActivity.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserActivity' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserActivity.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UserActivity value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UserActivity read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UserActivity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserActivity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UserActivity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UserActivity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UserActivity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UserActivityChanges.java b/src/main/java/com/formkiq/client/model/UserActivityChanges.java index e24d952ee..19fba47ba 100644 --- a/src/main/java/com/formkiq/client/model/UserActivityChanges.java +++ b/src/main/java/com/formkiq/client/model/UserActivityChanges.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * UserActivityChanges */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UserActivityChanges { public static final String SERIALIZED_NAME_OLD_VALUE = "oldValue"; @SerializedName(SERIALIZED_NAME_OLD_VALUE) @@ -62,8 +71,7 @@ public class UserActivityChanges { @javax.annotation.Nullable private Object newValue; - public UserActivityChanges() { - } + public UserActivityChanges() {} public UserActivityChanges oldValue(@javax.annotation.Nullable Object oldValue) { this.oldValue = oldValue; @@ -72,6 +80,7 @@ public UserActivityChanges oldValue(@javax.annotation.Nullable Object oldValue) /** * Previous key value + * * @return oldValue */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public UserActivityChanges newValue(@javax.annotation.Nullable Object newValue) /** * New key value + * * @return newValue */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } UserActivityChanges userActivityChanges = (UserActivityChanges) o; - return Objects.equals(this.oldValue, userActivityChanges.oldValue) && - Objects.equals(this.newValue, userActivityChanges.newValue); + return Objects.equals(this.oldValue, userActivityChanges.oldValue) + && Objects.equals(this.newValue, userActivityChanges.newValue); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,48 +171,53 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UserActivityChanges */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UserActivityChanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserActivityChanges is not found in the empty JSON string", UserActivityChanges.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UserActivityChanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UserActivityChanges is not found in the empty JSON string", + UserActivityChanges.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UserActivityChanges.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserActivityChanges` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UserActivityChanges.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UserActivityChanges` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserActivityChanges.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserActivityChanges' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserActivityChanges.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UserActivityChanges value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UserActivityChanges read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UserActivityChanges.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserActivityChanges' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UserActivityChanges.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UserActivityChanges value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UserActivityChanges read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UserActivityType.java b/src/main/java/com/formkiq/client/model/UserActivityType.java index 7b4092773..0c12b1c94 100644 --- a/src/main/java/com/formkiq/client/model/UserActivityType.java +++ b/src/main/java/com/formkiq/client/model/UserActivityType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,19 +37,19 @@ */ @JsonAdapter(UserActivityType.Adapter.class) public enum UserActivityType { - + VIEW("VIEW"), - + CREATE("CREATE"), - + UPDATE("UPDATE"), - + DELETE("DELETE"), - + SOFT_DELETE("SOFT_DELETE"), - + RESTORE("RESTORE"), - + NEW_VERSION("NEW_VERSION"); private String value; @@ -71,7 +78,8 @@ public static UserActivityType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final UserActivityType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final UserActivityType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/UserAttributes.java b/src/main/java/com/formkiq/client/model/UserAttributes.java index 49ba0a64b..41e076b0d 100644 --- a/src/main/java/com/formkiq/client/model/UserAttributes.java +++ b/src/main/java/com/formkiq/client/model/UserAttributes.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * UserAttributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UserAttributes { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) @@ -132,8 +141,7 @@ public class UserAttributes { @javax.annotation.Nullable private String website; - public UserAttributes() { - } + public UserAttributes() {} public UserAttributes address(@javax.annotation.Nullable String address) { this.address = address; @@ -142,6 +150,7 @@ public UserAttributes address(@javax.annotation.Nullable String address) { /** * Address of user + * * @return address */ @javax.annotation.Nullable @@ -161,6 +170,7 @@ public UserAttributes birthdate(@javax.annotation.Nullable String birthdate) { /** * Birthdate of user + * * @return birthdate */ @javax.annotation.Nullable @@ -180,6 +190,7 @@ public UserAttributes familyName(@javax.annotation.Nullable String familyName) { /** * Family name of user + * * @return familyName */ @javax.annotation.Nullable @@ -199,6 +210,7 @@ public UserAttributes gender(@javax.annotation.Nullable String gender) { /** * Gender of user + * * @return gender */ @javax.annotation.Nullable @@ -218,6 +230,7 @@ public UserAttributes givenName(@javax.annotation.Nullable String givenName) { /** * Given name of user + * * @return givenName */ @javax.annotation.Nullable @@ -237,6 +250,7 @@ public UserAttributes locale(@javax.annotation.Nullable String locale) { /** * Locale of user + * * @return locale */ @javax.annotation.Nullable @@ -256,6 +270,7 @@ public UserAttributes middleName(@javax.annotation.Nullable String middleName) { /** * Middle name of user + * * @return middleName */ @javax.annotation.Nullable @@ -275,6 +290,7 @@ public UserAttributes name(@javax.annotation.Nullable String name) { /** * Name of user + * * @return name */ @javax.annotation.Nullable @@ -294,6 +310,7 @@ public UserAttributes nickname(@javax.annotation.Nullable String nickname) { /** * Nickname of user + * * @return nickname */ @javax.annotation.Nullable @@ -313,6 +330,7 @@ public UserAttributes phoneNumber(@javax.annotation.Nullable String phoneNumber) /** * Phone number of user + * * @return phoneNumber */ @javax.annotation.Nullable @@ -332,6 +350,7 @@ public UserAttributes picture(@javax.annotation.Nullable String picture) { /** * Picture of user + * * @return picture */ @javax.annotation.Nullable @@ -351,6 +370,7 @@ public UserAttributes preferredUsername(@javax.annotation.Nullable String prefer /** * Preferred username of user + * * @return preferredUsername */ @javax.annotation.Nullable @@ -370,6 +390,7 @@ public UserAttributes profile(@javax.annotation.Nullable String profile) { /** * Profile of user + * * @return profile */ @javax.annotation.Nullable @@ -389,6 +410,7 @@ public UserAttributes zoneinfo(@javax.annotation.Nullable String zoneinfo) { /** * Zoneinfo of user + * * @return zoneinfo */ @javax.annotation.Nullable @@ -408,6 +430,7 @@ public UserAttributes updatedAt(@javax.annotation.Nullable String updatedAt) { /** * Updated at date of user + * * @return updatedAt */ @javax.annotation.Nullable @@ -427,6 +450,7 @@ public UserAttributes website(@javax.annotation.Nullable String website) { /** * Website of user + * * @return website */ @javax.annotation.Nullable @@ -449,27 +473,28 @@ public boolean equals(Object o) { return false; } UserAttributes userAttributes = (UserAttributes) o; - return Objects.equals(this.address, userAttributes.address) && - Objects.equals(this.birthdate, userAttributes.birthdate) && - Objects.equals(this.familyName, userAttributes.familyName) && - Objects.equals(this.gender, userAttributes.gender) && - Objects.equals(this.givenName, userAttributes.givenName) && - Objects.equals(this.locale, userAttributes.locale) && - Objects.equals(this.middleName, userAttributes.middleName) && - Objects.equals(this.name, userAttributes.name) && - Objects.equals(this.nickname, userAttributes.nickname) && - Objects.equals(this.phoneNumber, userAttributes.phoneNumber) && - Objects.equals(this.picture, userAttributes.picture) && - Objects.equals(this.preferredUsername, userAttributes.preferredUsername) && - Objects.equals(this.profile, userAttributes.profile) && - Objects.equals(this.zoneinfo, userAttributes.zoneinfo) && - Objects.equals(this.updatedAt, userAttributes.updatedAt) && - Objects.equals(this.website, userAttributes.website); + return Objects.equals(this.address, userAttributes.address) + && Objects.equals(this.birthdate, userAttributes.birthdate) + && Objects.equals(this.familyName, userAttributes.familyName) + && Objects.equals(this.gender, userAttributes.gender) + && Objects.equals(this.givenName, userAttributes.givenName) + && Objects.equals(this.locale, userAttributes.locale) + && Objects.equals(this.middleName, userAttributes.middleName) + && Objects.equals(this.name, userAttributes.name) + && Objects.equals(this.nickname, userAttributes.nickname) + && Objects.equals(this.phoneNumber, userAttributes.phoneNumber) + && Objects.equals(this.picture, userAttributes.picture) + && Objects.equals(this.preferredUsername, userAttributes.preferredUsername) + && Objects.equals(this.profile, userAttributes.profile) + && Objects.equals(this.zoneinfo, userAttributes.zoneinfo) + && Objects.equals(this.updatedAt, userAttributes.updatedAt) + && Objects.equals(this.website, userAttributes.website); } @Override public int hashCode() { - return Objects.hash(address, birthdate, familyName, gender, givenName, locale, middleName, name, nickname, phoneNumber, picture, preferredUsername, profile, zoneinfo, updatedAt, website); + return Objects.hash(address, birthdate, familyName, gender, givenName, locale, middleName, name, + nickname, phoneNumber, picture, preferredUsername, profile, zoneinfo, updatedAt, website); } @Override @@ -497,8 +522,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -513,7 +537,9 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("address", "birthdate", "familyName", "gender", "givenName", "locale", "middleName", "name", "nickname", "phoneNumber", "picture", "preferredUsername", "profile", "zoneinfo", "updatedAt", "website")); + openapiFields = new HashSet(Arrays.asList("address", "birthdate", "familyName", + "gender", "givenName", "locale", "middleName", "name", "nickname", "phoneNumber", "picture", + "preferredUsername", "profile", "zoneinfo", "updatedAt", "website")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -526,96 +552,149 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UserAttributes */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UserAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserAttributes is not found in the empty JSON string", UserAttributes.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UserAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UserAttributes is not found in the empty JSON string", + UserAttributes.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UserAttributes.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("address") != null && !jsonObj.get("address").isJsonNull()) && !jsonObj.get("address").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address").toString())); - } - if ((jsonObj.get("birthdate") != null && !jsonObj.get("birthdate").isJsonNull()) && !jsonObj.get("birthdate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `birthdate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("birthdate").toString())); - } - if ((jsonObj.get("familyName") != null && !jsonObj.get("familyName").isJsonNull()) && !jsonObj.get("familyName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `familyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("familyName").toString())); - } - if ((jsonObj.get("gender") != null && !jsonObj.get("gender").isJsonNull()) && !jsonObj.get("gender").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `gender` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gender").toString())); - } - if ((jsonObj.get("givenName") != null && !jsonObj.get("givenName").isJsonNull()) && !jsonObj.get("givenName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `givenName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("givenName").toString())); - } - if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) && !jsonObj.get("locale").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locale").toString())); - } - if ((jsonObj.get("middleName") != null && !jsonObj.get("middleName").isJsonNull()) && !jsonObj.get("middleName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `middleName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("middleName").toString())); - } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("nickname") != null && !jsonObj.get("nickname").isJsonNull()) && !jsonObj.get("nickname").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nickname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nickname").toString())); - } - if ((jsonObj.get("phoneNumber") != null && !jsonObj.get("phoneNumber").isJsonNull()) && !jsonObj.get("phoneNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `phoneNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phoneNumber").toString())); - } - if ((jsonObj.get("picture") != null && !jsonObj.get("picture").isJsonNull()) && !jsonObj.get("picture").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `picture` to be a primitive type in the JSON string but got `%s`", jsonObj.get("picture").toString())); - } - if ((jsonObj.get("preferredUsername") != null && !jsonObj.get("preferredUsername").isJsonNull()) && !jsonObj.get("preferredUsername").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `preferredUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preferredUsername").toString())); - } - if ((jsonObj.get("profile") != null && !jsonObj.get("profile").isJsonNull()) && !jsonObj.get("profile").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `profile` to be a primitive type in the JSON string but got `%s`", jsonObj.get("profile").toString())); - } - if ((jsonObj.get("zoneinfo") != null && !jsonObj.get("zoneinfo").isJsonNull()) && !jsonObj.get("zoneinfo").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `zoneinfo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("zoneinfo").toString())); - } - if ((jsonObj.get("updatedAt") != null && !jsonObj.get("updatedAt").isJsonNull()) && !jsonObj.get("updatedAt").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updatedAt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatedAt").toString())); - } - if ((jsonObj.get("website") != null && !jsonObj.get("website").isJsonNull()) && !jsonObj.get("website").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `website` to be a primitive type in the JSON string but got `%s`", jsonObj.get("website").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UserAttributes.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UserAttributes` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("address") != null && !jsonObj.get("address").isJsonNull()) + && !jsonObj.get("address").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `address` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("address").toString())); + } + if ((jsonObj.get("birthdate") != null && !jsonObj.get("birthdate").isJsonNull()) + && !jsonObj.get("birthdate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `birthdate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("birthdate").toString())); + } + if ((jsonObj.get("familyName") != null && !jsonObj.get("familyName").isJsonNull()) + && !jsonObj.get("familyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `familyName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("familyName").toString())); + } + if ((jsonObj.get("gender") != null && !jsonObj.get("gender").isJsonNull()) + && !jsonObj.get("gender").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `gender` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("gender").toString())); + } + if ((jsonObj.get("givenName") != null && !jsonObj.get("givenName").isJsonNull()) + && !jsonObj.get("givenName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `givenName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("givenName").toString())); + } + if ((jsonObj.get("locale") != null && !jsonObj.get("locale").isJsonNull()) + && !jsonObj.get("locale").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `locale` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("locale").toString())); + } + if ((jsonObj.get("middleName") != null && !jsonObj.get("middleName").isJsonNull()) + && !jsonObj.get("middleName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `middleName` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("middleName").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("nickname") != null && !jsonObj.get("nickname").isJsonNull()) + && !jsonObj.get("nickname").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `nickname` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("nickname").toString())); + } + if ((jsonObj.get("phoneNumber") != null && !jsonObj.get("phoneNumber").isJsonNull()) + && !jsonObj.get("phoneNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `phoneNumber` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("phoneNumber").toString())); + } + if ((jsonObj.get("picture") != null && !jsonObj.get("picture").isJsonNull()) + && !jsonObj.get("picture").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `picture` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("picture").toString())); + } + if ((jsonObj.get("preferredUsername") != null && !jsonObj.get("preferredUsername").isJsonNull()) + && !jsonObj.get("preferredUsername").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `preferredUsername` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("preferredUsername").toString())); + } + if ((jsonObj.get("profile") != null && !jsonObj.get("profile").isJsonNull()) + && !jsonObj.get("profile").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `profile` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("profile").toString())); + } + if ((jsonObj.get("zoneinfo") != null && !jsonObj.get("zoneinfo").isJsonNull()) + && !jsonObj.get("zoneinfo").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `zoneinfo` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("zoneinfo").toString())); + } + if ((jsonObj.get("updatedAt") != null && !jsonObj.get("updatedAt").isJsonNull()) + && !jsonObj.get("updatedAt").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `updatedAt` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("updatedAt").toString())); + } + if ((jsonObj.get("website") != null && !jsonObj.get("website").isJsonNull()) + && !jsonObj.get("website").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `website` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("website").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserAttributes.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserAttributes' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserAttributes.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UserAttributes value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UserAttributes read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UserAttributes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserAttributes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UserAttributes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UserAttributes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UserAttributes read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UserShare.java b/src/main/java/com/formkiq/client/model/UserShare.java index cc1a753d5..b2e16b791 100644 --- a/src/main/java/com/formkiq/client/model/UserShare.java +++ b/src/main/java/com/formkiq/client/model/UserShare.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -54,7 +61,9 @@ /** * UserShare */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class UserShare { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -99,13 +108,14 @@ public static TypeEnum fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + 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(); + String value = jsonReader.nextString(); return TypeEnum.fromValue(value); } } @@ -146,8 +156,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti @javax.annotation.Nullable private UserSharePermissionType permissionType; - public UserShare() { - } + public UserShare() {} public UserShare group(@javax.annotation.Nullable String group) { this.group = group; @@ -156,6 +165,7 @@ public UserShare group(@javax.annotation.Nullable String group) { /** * Name of Share Group + * * @return group */ @javax.annotation.Nullable @@ -175,6 +185,7 @@ public UserShare shareKey(@javax.annotation.Nullable String shareKey) { /** * Share Identifier + * * @return shareKey */ @javax.annotation.Nullable @@ -194,6 +205,7 @@ public UserShare type(@javax.annotation.Nullable TypeEnum type) { /** * Type of Document + * * @return type */ @javax.annotation.Nullable @@ -221,6 +233,7 @@ public UserShare addPermissionsItem(UserSharePermission permissionsItem) { /** * List of share permissions + * * @return permissions */ @javax.annotation.Nullable @@ -240,6 +253,7 @@ public UserShare siteId(@javax.annotation.Nullable String siteId) { /** * Site Identifier + * * @return siteId */ @javax.annotation.Nullable @@ -259,6 +273,7 @@ public UserShare path(@javax.annotation.Nullable String path) { /** * Path or Name of document + * * @return path */ @javax.annotation.Nullable @@ -278,6 +293,7 @@ public UserShare userId(@javax.annotation.Nullable String userId) { /** * User who created share + * * @return userId */ @javax.annotation.Nullable @@ -290,13 +306,15 @@ public void setUserId(@javax.annotation.Nullable String userId) { } - public UserShare permissionType(@javax.annotation.Nullable UserSharePermissionType permissionType) { + public UserShare permissionType( + @javax.annotation.Nullable UserSharePermissionType permissionType) { this.permissionType = permissionType; return this; } /** * Get permissionType + * * @return permissionType */ @javax.annotation.Nullable @@ -319,14 +337,14 @@ public boolean equals(Object o) { return false; } UserShare userShare = (UserShare) o; - return Objects.equals(this.group, userShare.group) && - Objects.equals(this.shareKey, userShare.shareKey) && - Objects.equals(this.type, userShare.type) && - Objects.equals(this.permissions, userShare.permissions) && - Objects.equals(this.siteId, userShare.siteId) && - Objects.equals(this.path, userShare.path) && - Objects.equals(this.userId, userShare.userId) && - Objects.equals(this.permissionType, userShare.permissionType); + return Objects.equals(this.group, userShare.group) + && Objects.equals(this.shareKey, userShare.shareKey) + && Objects.equals(this.type, userShare.type) + && Objects.equals(this.permissions, userShare.permissions) + && Objects.equals(this.siteId, userShare.siteId) + && Objects.equals(this.path, userShare.path) + && Objects.equals(this.userId, userShare.userId) + && Objects.equals(this.permissionType, userShare.permissionType); } @Override @@ -351,8 +369,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -367,7 +384,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("group", "shareKey", "type", "permissions", "siteId", "path", "userId", "permissionType")); + openapiFields = new HashSet(Arrays.asList("group", "shareKey", "type", "permissions", + "siteId", "path", "userId", "permissionType")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -380,78 +398,104 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to UserShare */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UserShare.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in UserShare is not found in the empty JSON string", UserShare.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!UserShare.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in UserShare is not found in the empty JSON string", + UserShare.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UserShare.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `UserShare` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) && !jsonObj.get("group").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); - } - if ((jsonObj.get("shareKey") != null && !jsonObj.get("shareKey").isJsonNull()) && !jsonObj.get("shareKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareKey").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - TypeEnum.validateJsonElement(jsonObj.get("type")); - } - // ensure the optional json data is an array if present - if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() && !jsonObj.get("permissions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `permissions` to be an array in the JSON string but got `%s`", jsonObj.get("permissions").toString())); - } - if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) && !jsonObj.get("siteId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("siteId").toString())); - } - if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - // validate the optional field `permissionType` - if (jsonObj.get("permissionType") != null && !jsonObj.get("permissionType").isJsonNull()) { - UserSharePermissionType.validateJsonElement(jsonObj.get("permissionType")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!UserShare.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `UserShare` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) + && !jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `group` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("group").toString())); + } + if ((jsonObj.get("shareKey") != null && !jsonObj.get("shareKey").isJsonNull()) + && !jsonObj.get("shareKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `shareKey` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("shareKey").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) + && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `type` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("type").toString())); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + TypeEnum.validateJsonElement(jsonObj.get("type")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("permissions") != null && !jsonObj.get("permissions").isJsonNull() + && !jsonObj.get("permissions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `permissions` to be an array in the JSON string but got `%s`", + jsonObj.get("permissions").toString())); + } + if ((jsonObj.get("siteId") != null && !jsonObj.get("siteId").isJsonNull()) + && !jsonObj.get("siteId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `siteId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("siteId").toString())); + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) + && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `path` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("path").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + // validate the optional field `permissionType` + if (jsonObj.get("permissionType") != null && !jsonObj.get("permissionType").isJsonNull()) { + UserSharePermissionType.validateJsonElement(jsonObj.get("permissionType")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!UserShare.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UserShare' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(UserShare.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, UserShare value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UserShare read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!UserShare.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UserShare' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(UserShare.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UserShare value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UserShare read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/UserSharePermission.java b/src/main/java/com/formkiq/client/model/UserSharePermission.java index dc9c810ef..da8395d83 100644 --- a/src/main/java/com/formkiq/client/model/UserSharePermission.java +++ b/src/main/java/com/formkiq/client/model/UserSharePermission.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(UserSharePermission.Adapter.class) public enum UserSharePermission { - + READ("READ"), - + WRITE("WRITE"), - + DELETE("DELETE"); private String value; @@ -63,7 +70,8 @@ public static UserSharePermission fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final UserSharePermission enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final UserSharePermission enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/UserSharePermissionType.java b/src/main/java/com/formkiq/client/model/UserSharePermissionType.java index 16e4ec77f..f39c55f12 100644 --- a/src/main/java/com/formkiq/client/model/UserSharePermissionType.java +++ b/src/main/java/com/formkiq/client/model/UserSharePermissionType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,7 +37,7 @@ */ @JsonAdapter(UserSharePermissionType.Adapter.class) public enum UserSharePermissionType { - + GROUP("GROUP"); private String value; @@ -59,7 +66,8 @@ public static UserSharePermissionType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final UserSharePermissionType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final UserSharePermissionType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/ValidationError.java b/src/main/java/com/formkiq/client/model/ValidationError.java index 871f1e9cc..8bdba682f 100644 --- a/src/main/java/com/formkiq/client/model/ValidationError.java +++ b/src/main/java/com/formkiq/client/model/ValidationError.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * ValidationError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ValidationError { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -62,8 +71,7 @@ public class ValidationError { @javax.annotation.Nullable private String error; - public ValidationError() { - } + public ValidationError() {} public ValidationError key(@javax.annotation.Nullable String key) { this.key = key; @@ -72,6 +80,7 @@ public ValidationError key(@javax.annotation.Nullable String key) { /** * Error Key + * * @return key */ @javax.annotation.Nullable @@ -91,6 +100,7 @@ public ValidationError error(@javax.annotation.Nullable String error) { /** * Error Message + * * @return error */ @javax.annotation.Nullable @@ -113,8 +123,8 @@ public boolean equals(Object o) { return false; } ValidationError validationError = (ValidationError) o; - return Objects.equals(this.key, validationError.key) && - Objects.equals(this.error, validationError.error); + return Objects.equals(this.key, validationError.key) + && Objects.equals(this.error, validationError.error); } @Override @@ -133,8 +143,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -162,54 +171,65 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ValidationError */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ValidationError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ValidationError is not found in the empty JSON string", ValidationError.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!ValidationError.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in ValidationError is not found in the empty JSON string", + ValidationError.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ValidationError.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ValidationError` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); - } - if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) && !jsonObj.get("error").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ValidationError.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `ValidationError` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) + && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } + if ((jsonObj.get("error") != null && !jsonObj.get("error").isJsonNull()) + && !jsonObj.get("error").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `error` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("error").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ValidationError.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ValidationError' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ValidationError.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ValidationError value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ValidationError read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ValidationError.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValidationError' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(ValidationError.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValidationError value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValidationError read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java b/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java index b09397ead..dd7b2a8f9 100644 --- a/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java +++ b/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,15 +60,16 @@ /** * ValidationErrorsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class ValidationErrorsResponse { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @javax.annotation.Nullable private List errors = new ArrayList<>(); - public ValidationErrorsResponse() { - } + public ValidationErrorsResponse() {} public ValidationErrorsResponse errors(@javax.annotation.Nullable List errors) { this.errors = errors; @@ -78,6 +86,7 @@ public ValidationErrorsResponse addErrorsItem(ValidationError errorsItem) { /** * List of errors + * * @return errors */ @javax.annotation.Nullable @@ -118,8 +127,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -147,62 +155,69 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to ValidationErrorsResponse */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!ValidationErrorsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ValidationErrorsResponse is not found in the empty JSON string", ValidationErrorsResponse.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!ValidationErrorsResponse.openapiRequiredFields.isEmpty()) { // has required fields but + // JSON element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in ValidationErrorsResponse is not found in the empty JSON string", + ValidationErrorsResponse.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!ValidationErrorsResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ValidationErrorsResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ValidationErrorsResponse.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `ValidationErrorsResponse` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - if (jsonArrayerrors != null) { - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); - } - - // validate the optional field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - ValidationError.validateJsonElement(jsonArrayerrors.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `errors` to be an array in the JSON string but got `%s`", + jsonObj.get("errors").toString())); } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + ValidationError.validateJsonElement(jsonArrayerrors.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ValidationErrorsResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ValidationErrorsResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ValidationErrorsResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ValidationErrorsResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ValidationErrorsResponse read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!ValidationErrorsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValidationErrorsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(ValidationErrorsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValidationErrorsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValidationErrorsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/Watermark.java b/src/main/java/com/formkiq/client/model/Watermark.java index 81d3db985..71ac48958 100644 --- a/src/main/java/com/formkiq/client/model/Watermark.java +++ b/src/main/java/com/formkiq/client/model/Watermark.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * Watermark */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class Watermark { public static final String SERIALIZED_NAME_FONT_SIZE = "fontSize"; @SerializedName(SERIALIZED_NAME_FONT_SIZE) @@ -85,8 +94,7 @@ public class Watermark { @javax.annotation.Nullable private WatermarkPosition position; - public Watermark() { - } + public Watermark() {} public Watermark fontSize(@javax.annotation.Nullable BigDecimal fontSize) { this.fontSize = fontSize; @@ -95,6 +103,7 @@ public Watermark fontSize(@javax.annotation.Nullable BigDecimal fontSize) { /** * Watermark Font Size + * * @return fontSize */ @javax.annotation.Nullable @@ -114,6 +123,7 @@ public Watermark text(@javax.annotation.Nullable String text) { /** * Watermark text + * * @return text */ @javax.annotation.Nullable @@ -133,6 +143,7 @@ public Watermark rotation(@javax.annotation.Nullable BigDecimal rotation) { /** * Watermark Rotation + * * @return rotation */ @javax.annotation.Nullable @@ -152,6 +163,7 @@ public Watermark imageDocumentId(@javax.annotation.Nullable String imageDocument /** * Watermark Image Document Id + * * @return imageDocumentId */ @javax.annotation.Nullable @@ -171,6 +183,7 @@ public Watermark scale(@javax.annotation.Nullable WatermarkScale scale) { /** * Get scale + * * @return scale */ @javax.annotation.Nullable @@ -190,6 +203,7 @@ public Watermark position(@javax.annotation.Nullable WatermarkPosition position) /** * Get position + * * @return position */ @javax.annotation.Nullable @@ -212,12 +226,12 @@ public boolean equals(Object o) { return false; } Watermark watermark = (Watermark) o; - return Objects.equals(this.fontSize, watermark.fontSize) && - Objects.equals(this.text, watermark.text) && - Objects.equals(this.rotation, watermark.rotation) && - Objects.equals(this.imageDocumentId, watermark.imageDocumentId) && - Objects.equals(this.scale, watermark.scale) && - Objects.equals(this.position, watermark.position); + return Objects.equals(this.fontSize, watermark.fontSize) + && Objects.equals(this.text, watermark.text) + && Objects.equals(this.rotation, watermark.rotation) + && Objects.equals(this.imageDocumentId, watermark.imageDocumentId) + && Objects.equals(this.scale, watermark.scale) + && Objects.equals(this.position, watermark.position); } @Override @@ -240,8 +254,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -256,7 +269,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("fontSize", "text", "rotation", "imageDocumentId", "scale", "position")); + openapiFields = new HashSet( + Arrays.asList("fontSize", "text", "rotation", "imageDocumentId", "scale", "position")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -269,62 +283,73 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to Watermark */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!Watermark.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in Watermark is not found in the empty JSON string", Watermark.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!Watermark.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in Watermark is not found in the empty JSON string", + Watermark.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!Watermark.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Watermark` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) && !jsonObj.get("text").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); - } - if ((jsonObj.get("imageDocumentId") != null && !jsonObj.get("imageDocumentId").isJsonNull()) && !jsonObj.get("imageDocumentId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `imageDocumentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("imageDocumentId").toString())); - } - // validate the optional field `scale` - if (jsonObj.get("scale") != null && !jsonObj.get("scale").isJsonNull()) { - WatermarkScale.validateJsonElement(jsonObj.get("scale")); - } - // validate the optional field `position` - if (jsonObj.get("position") != null && !jsonObj.get("position").isJsonNull()) { - WatermarkPosition.validateJsonElement(jsonObj.get("position")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!Watermark.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `Watermark` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("text") != null && !jsonObj.get("text").isJsonNull()) + && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `text` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("text").toString())); + } + if ((jsonObj.get("imageDocumentId") != null && !jsonObj.get("imageDocumentId").isJsonNull()) + && !jsonObj.get("imageDocumentId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `imageDocumentId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("imageDocumentId").toString())); + } + // validate the optional field `scale` + if (jsonObj.get("scale") != null && !jsonObj.get("scale").isJsonNull()) { + WatermarkScale.validateJsonElement(jsonObj.get("scale")); + } + // validate the optional field `position` + if (jsonObj.get("position") != null && !jsonObj.get("position").isJsonNull()) { + WatermarkPosition.validateJsonElement(jsonObj.get("position")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Watermark.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Watermark' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Watermark.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, Watermark value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public Watermark read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!Watermark.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Watermark' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(Watermark.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Watermark value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Watermark read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WatermarkPosition.java b/src/main/java/com/formkiq/client/model/WatermarkPosition.java index 699c52d9d..207409d0a 100644 --- a/src/main/java/com/formkiq/client/model/WatermarkPosition.java +++ b/src/main/java/com/formkiq/client/model/WatermarkPosition.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,7 +60,9 @@ /** * WatermarkPosition */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class WatermarkPosition { public static final String SERIALIZED_NAME_X_ANCHOR = "xAnchor"; @SerializedName(SERIALIZED_NAME_X_ANCHOR) @@ -75,8 +84,7 @@ public class WatermarkPosition { @javax.annotation.Nullable private BigDecimal yOffset; - public WatermarkPosition() { - } + public WatermarkPosition() {} public WatermarkPosition xAnchor(@javax.annotation.Nullable WatermarkPositionXAnchor xAnchor) { this.xAnchor = xAnchor; @@ -85,6 +93,7 @@ public WatermarkPosition xAnchor(@javax.annotation.Nullable WatermarkPositionXAn /** * Get xAnchor + * * @return xAnchor */ @javax.annotation.Nullable @@ -104,6 +113,7 @@ public WatermarkPosition yAnchor(@javax.annotation.Nullable WatermarkPositionYAn /** * Get yAnchor + * * @return yAnchor */ @javax.annotation.Nullable @@ -123,6 +133,7 @@ public WatermarkPosition xOffset(@javax.annotation.Nullable BigDecimal xOffset) /** * X offset + * * @return xOffset */ @javax.annotation.Nullable @@ -142,6 +153,7 @@ public WatermarkPosition yOffset(@javax.annotation.Nullable BigDecimal yOffset) /** * Y offset + * * @return yOffset */ @javax.annotation.Nullable @@ -164,10 +176,10 @@ public boolean equals(Object o) { return false; } WatermarkPosition watermarkPosition = (WatermarkPosition) o; - return Objects.equals(this.xAnchor, watermarkPosition.xAnchor) && - Objects.equals(this.yAnchor, watermarkPosition.yAnchor) && - Objects.equals(this.xOffset, watermarkPosition.xOffset) && - Objects.equals(this.yOffset, watermarkPosition.yOffset); + return Objects.equals(this.xAnchor, watermarkPosition.xAnchor) + && Objects.equals(this.yAnchor, watermarkPosition.yAnchor) + && Objects.equals(this.xOffset, watermarkPosition.xOffset) + && Objects.equals(this.yOffset, watermarkPosition.yOffset); } @Override @@ -188,8 +200,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -217,56 +228,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WatermarkPosition */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WatermarkPosition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WatermarkPosition is not found in the empty JSON string", WatermarkPosition.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!WatermarkPosition.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in WatermarkPosition is not found in the empty JSON string", + WatermarkPosition.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WatermarkPosition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WatermarkPosition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `xAnchor` - if (jsonObj.get("xAnchor") != null && !jsonObj.get("xAnchor").isJsonNull()) { - WatermarkPositionXAnchor.validateJsonElement(jsonObj.get("xAnchor")); - } - // validate the optional field `yAnchor` - if (jsonObj.get("yAnchor") != null && !jsonObj.get("yAnchor").isJsonNull()) { - WatermarkPositionYAnchor.validateJsonElement(jsonObj.get("yAnchor")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WatermarkPosition.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `WatermarkPosition` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `xAnchor` + if (jsonObj.get("xAnchor") != null && !jsonObj.get("xAnchor").isJsonNull()) { + WatermarkPositionXAnchor.validateJsonElement(jsonObj.get("xAnchor")); + } + // validate the optional field `yAnchor` + if (jsonObj.get("yAnchor") != null && !jsonObj.get("yAnchor").isJsonNull()) { + WatermarkPositionYAnchor.validateJsonElement(jsonObj.get("yAnchor")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WatermarkPosition.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WatermarkPosition' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(WatermarkPosition.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WatermarkPosition value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WatermarkPosition read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WatermarkPosition.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WatermarkPosition' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(WatermarkPosition.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WatermarkPosition value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WatermarkPosition read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WatermarkPositionXAnchor.java b/src/main/java/com/formkiq/client/model/WatermarkPositionXAnchor.java index aa2d668e6..2ed194fae 100644 --- a/src/main/java/com/formkiq/client/model/WatermarkPositionXAnchor.java +++ b/src/main/java/com/formkiq/client/model/WatermarkPositionXAnchor.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(WatermarkPositionXAnchor.Adapter.class) public enum WatermarkPositionXAnchor { - + LEFT("LEFT"), - + RIGHT("RIGHT"), - + CENTER("CENTER"); private String value; @@ -63,7 +70,8 @@ public static WatermarkPositionXAnchor fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final WatermarkPositionXAnchor enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final WatermarkPositionXAnchor enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/WatermarkPositionYAnchor.java b/src/main/java/com/formkiq/client/model/WatermarkPositionYAnchor.java index daa713c73..6102f7ec1 100644 --- a/src/main/java/com/formkiq/client/model/WatermarkPositionYAnchor.java +++ b/src/main/java/com/formkiq/client/model/WatermarkPositionYAnchor.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,11 +37,11 @@ */ @JsonAdapter(WatermarkPositionYAnchor.Adapter.class) public enum WatermarkPositionYAnchor { - + TOP("TOP"), - + BOTTOM("BOTTOM"), - + CENTER("CENTER"); private String value; @@ -63,7 +70,8 @@ public static WatermarkPositionYAnchor fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final WatermarkPositionYAnchor enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final WatermarkPositionYAnchor enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/WatermarkScale.java b/src/main/java/com/formkiq/client/model/WatermarkScale.java index 5da1150a3..0e8010f25 100644 --- a/src/main/java/com/formkiq/client/model/WatermarkScale.java +++ b/src/main/java/com/formkiq/client/model/WatermarkScale.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(WatermarkScale.Adapter.class) public enum WatermarkScale { - + FIT_BEST("FIT_BEST"), - + ORIGINAL("ORIGINAL"); private String value; @@ -61,7 +68,8 @@ public static WatermarkScale fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final WatermarkScale enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final WatermarkScale enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/WebhookTag.java b/src/main/java/com/formkiq/client/model/WebhookTag.java index 161217dca..92a6e6d37 100644 --- a/src/main/java/com/formkiq/client/model/WebhookTag.java +++ b/src/main/java/com/formkiq/client/model/WebhookTag.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -50,7 +57,9 @@ /** * WebhookTag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class WebhookTag { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; @SerializedName(SERIALIZED_NAME_INSERTED_DATE) @@ -82,8 +91,7 @@ public class WebhookTag { @javax.annotation.Nonnull private String key; - public WebhookTag() { - } + public WebhookTag() {} public WebhookTag insertedDate(@javax.annotation.Nullable String insertedDate) { this.insertedDate = insertedDate; @@ -92,6 +100,7 @@ public WebhookTag insertedDate(@javax.annotation.Nullable String insertedDate) { /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -111,6 +120,7 @@ public WebhookTag webhookId(@javax.annotation.Nullable String webhookId) { /** * Webhook Identifier + * * @return webhookId */ @javax.annotation.Nullable @@ -130,6 +140,7 @@ public WebhookTag type(@javax.annotation.Nullable String type) { /** * Tag type + * * @return type */ @javax.annotation.Nullable @@ -149,6 +160,7 @@ public WebhookTag userId(@javax.annotation.Nullable String userId) { /** * User who added document + * * @return userId */ @javax.annotation.Nullable @@ -168,6 +180,7 @@ public WebhookTag value(@javax.annotation.Nonnull String value) { /** * Tag value + * * @return value */ @javax.annotation.Nonnull @@ -187,6 +200,7 @@ public WebhookTag key(@javax.annotation.Nonnull String key) { /** * Tag key + * * @return key */ @javax.annotation.Nonnull @@ -209,12 +223,11 @@ public boolean equals(Object o) { return false; } WebhookTag webhookTag = (WebhookTag) o; - return Objects.equals(this.insertedDate, webhookTag.insertedDate) && - Objects.equals(this.webhookId, webhookTag.webhookId) && - Objects.equals(this.type, webhookTag.type) && - Objects.equals(this.userId, webhookTag.userId) && - Objects.equals(this.value, webhookTag.value) && - Objects.equals(this.key, webhookTag.key); + return Objects.equals(this.insertedDate, webhookTag.insertedDate) + && Objects.equals(this.webhookId, webhookTag.webhookId) + && Objects.equals(this.type, webhookTag.type) + && Objects.equals(this.userId, webhookTag.userId) + && Objects.equals(this.value, webhookTag.value) && Objects.equals(this.key, webhookTag.key); } @Override @@ -237,8 +250,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -253,7 +265,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("insertedDate", "webhookId", "type", "userId", "value", "key")); + openapiFields = new HashSet( + Arrays.asList("insertedDate", "webhookId", "type", "userId", "value", "key")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("value", "key")); @@ -266,73 +279,96 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WebhookTag */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WebhookTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WebhookTag is not found in the empty JSON string", WebhookTag.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!WebhookTag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is + // null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in WebhookTag is not found in the empty JSON string", + WebhookTag.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WebhookTag.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WebhookTag` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WebhookTag.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `WebhookTag` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : WebhookTag.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) && !jsonObj.get("webhookId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("webhookId").toString())); - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - if (!jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); - } - if (!jsonObj.get("key").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : WebhookTag.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field `%s` is not found in the JSON string: %s", requiredField, + jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("webhookId") != null && !jsonObj.get("webhookId").isJsonNull()) + && !jsonObj.get("webhookId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `webhookId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("webhookId").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) + && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `type` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("type").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + if (!jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `value` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("value").toString())); + } + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `key` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("key").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WebhookTag.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WebhookTag' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(WebhookTag.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WebhookTag value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WebhookTag read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WebhookTag.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WebhookTag' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(WebhookTag.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WebhookTag value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WebhookTag read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WorkflowDocument.java b/src/main/java/com/formkiq/client/model/WorkflowDocument.java index 53b68203f..898a24698 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowDocument.java +++ b/src/main/java/com/formkiq/client/model/WorkflowDocument.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * WorkflowDocument */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class WorkflowDocument { public static final String SERIALIZED_NAME_WORKFLOW = "workflow"; @SerializedName(SERIALIZED_NAME_WORKFLOW) @@ -64,8 +73,7 @@ public class WorkflowDocument { @javax.annotation.Nullable private Document document; - public WorkflowDocument() { - } + public WorkflowDocument() {} public WorkflowDocument workflow(@javax.annotation.Nullable WorkflowSummary workflow) { this.workflow = workflow; @@ -74,6 +82,7 @@ public WorkflowDocument workflow(@javax.annotation.Nullable WorkflowSummary work /** * Get workflow + * * @return workflow */ @javax.annotation.Nullable @@ -93,6 +102,7 @@ public WorkflowDocument document(@javax.annotation.Nullable Document document) { /** * Get document + * * @return document */ @javax.annotation.Nullable @@ -115,8 +125,8 @@ public boolean equals(Object o) { return false; } WorkflowDocument workflowDocument = (WorkflowDocument) o; - return Objects.equals(this.workflow, workflowDocument.workflow) && - Objects.equals(this.document, workflowDocument.document); + return Objects.equals(this.workflow, workflowDocument.workflow) + && Objects.equals(this.document, workflowDocument.document); } @Override @@ -135,8 +145,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -164,56 +173,61 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WorkflowDocument */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WorkflowDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WorkflowDocument is not found in the empty JSON string", WorkflowDocument.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!WorkflowDocument.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in WorkflowDocument is not found in the empty JSON string", + WorkflowDocument.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WorkflowDocument.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WorkflowDocument` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `workflow` - if (jsonObj.get("workflow") != null && !jsonObj.get("workflow").isJsonNull()) { - WorkflowSummary.validateJsonElement(jsonObj.get("workflow")); - } - // validate the optional field `document` - if (jsonObj.get("document") != null && !jsonObj.get("document").isJsonNull()) { - Document.validateJsonElement(jsonObj.get("document")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WorkflowDocument.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `WorkflowDocument` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `workflow` + if (jsonObj.get("workflow") != null && !jsonObj.get("workflow").isJsonNull()) { + WorkflowSummary.validateJsonElement(jsonObj.get("workflow")); + } + // validate the optional field `document` + if (jsonObj.get("document") != null && !jsonObj.get("document").isJsonNull()) { + Document.validateJsonElement(jsonObj.get("document")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WorkflowDocument.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WorkflowDocument' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(WorkflowDocument.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WorkflowDocument value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WorkflowDocument read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WorkflowDocument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkflowDocument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(WorkflowDocument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkflowDocument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WorkflowDocument read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WorkflowQueue.java b/src/main/java/com/formkiq/client/model/WorkflowQueue.java index bc5009a59..f21a310ea 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowQueue.java +++ b/src/main/java/com/formkiq/client/model/WorkflowQueue.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -52,7 +59,9 @@ /** * WorkflowQueue */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class WorkflowQueue { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; @SerializedName(SERIALIZED_NAME_QUEUE_ID) @@ -64,8 +73,7 @@ public class WorkflowQueue { @javax.annotation.Nullable private List approvalGroups = new ArrayList<>(); - public WorkflowQueue() { - } + public WorkflowQueue() {} public WorkflowQueue queueId(@javax.annotation.Nullable String queueId) { this.queueId = queueId; @@ -74,6 +82,7 @@ public WorkflowQueue queueId(@javax.annotation.Nullable String queueId) { /** * Queue Id + * * @return queueId */ @javax.annotation.Nullable @@ -101,6 +110,7 @@ public WorkflowQueue addApprovalGroupsItem(String approvalGroupsItem) { /** * Get approvalGroups + * * @return approvalGroups */ @javax.annotation.Nullable @@ -123,8 +133,8 @@ public boolean equals(Object o) { return false; } WorkflowQueue workflowQueue = (WorkflowQueue) o; - return Objects.equals(this.queueId, workflowQueue.queueId) && - Objects.equals(this.approvalGroups, workflowQueue.approvalGroups); + return Objects.equals(this.queueId, workflowQueue.queueId) + && Objects.equals(this.approvalGroups, workflowQueue.approvalGroups); } @Override @@ -143,8 +153,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -172,55 +181,66 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WorkflowQueue */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WorkflowQueue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WorkflowQueue is not found in the empty JSON string", WorkflowQueue.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!WorkflowQueue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in WorkflowQueue is not found in the empty JSON string", + WorkflowQueue.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WorkflowQueue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WorkflowQueue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) && !jsonObj.get("queueId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("queueId").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("approvalGroups") != null && !jsonObj.get("approvalGroups").isJsonNull() && !jsonObj.get("approvalGroups").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `approvalGroups` to be an array in the JSON string but got `%s`", jsonObj.get("approvalGroups").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WorkflowQueue.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `WorkflowQueue` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("queueId") != null && !jsonObj.get("queueId").isJsonNull()) + && !jsonObj.get("queueId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `queueId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("queueId").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("approvalGroups") != null && !jsonObj.get("approvalGroups").isJsonNull() + && !jsonObj.get("approvalGroups").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `approvalGroups` to be an array in the JSON string but got `%s`", + jsonObj.get("approvalGroups").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WorkflowQueue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WorkflowQueue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(WorkflowQueue.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WorkflowQueue value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WorkflowQueue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WorkflowQueue.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkflowQueue' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(WorkflowQueue.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkflowQueue value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WorkflowQueue read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WorkflowStatus.java b/src/main/java/com/formkiq/client/model/WorkflowStatus.java index dfcca68f3..7f2d48b28 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStatus.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStatus.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(WorkflowStatus.Adapter.class) public enum WorkflowStatus { - + ACTIVE("ACTIVE"), - + INACTIVE("INACTIVE"); private String value; @@ -61,7 +68,8 @@ public static WorkflowStatus fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final WorkflowStatus enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final WorkflowStatus enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/WorkflowStep.java b/src/main/java/com/formkiq/client/model/WorkflowStep.java index 55dd3af8a..dffa65c58 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStep.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStep.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -55,7 +62,9 @@ /** * WorkflowStep */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class WorkflowStep { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; @SerializedName(SERIALIZED_NAME_STEP_ID) @@ -77,8 +86,7 @@ public class WorkflowStep { @javax.annotation.Nullable private List decisions = new ArrayList<>(); - public WorkflowStep() { - } + public WorkflowStep() {} public WorkflowStep stepId(@javax.annotation.Nullable String stepId) { this.stepId = stepId; @@ -87,6 +95,7 @@ public WorkflowStep stepId(@javax.annotation.Nullable String stepId) { /** * Workflow Step Identifier + * * @return stepId */ @javax.annotation.Nullable @@ -106,6 +115,7 @@ public WorkflowStep action(@javax.annotation.Nullable DocumentAction action) { /** * Get action + * * @return action */ @javax.annotation.Nullable @@ -125,6 +135,7 @@ public WorkflowStep queue(@javax.annotation.Nullable WorkflowQueue queue) { /** * Get queue + * * @return queue */ @javax.annotation.Nullable @@ -152,6 +163,7 @@ public WorkflowStep addDecisionsItem(WorkflowStepDecision decisionsItem) { /** * Workflow Decisions + * * @return decisions */ @javax.annotation.Nullable @@ -174,10 +186,10 @@ public boolean equals(Object o) { return false; } WorkflowStep workflowStep = (WorkflowStep) o; - return Objects.equals(this.stepId, workflowStep.stepId) && - Objects.equals(this.action, workflowStep.action) && - Objects.equals(this.queue, workflowStep.queue) && - Objects.equals(this.decisions, workflowStep.decisions); + return Objects.equals(this.stepId, workflowStep.stepId) + && Objects.equals(this.action, workflowStep.action) + && Objects.equals(this.queue, workflowStep.queue) + && Objects.equals(this.decisions, workflowStep.decisions); } @Override @@ -198,8 +210,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -227,73 +238,83 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WorkflowStep */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WorkflowStep.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WorkflowStep is not found in the empty JSON string", WorkflowStep.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!WorkflowStep.openapiRequiredFields.isEmpty()) { // has required fields but JSON element + // is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in WorkflowStep is not found in the empty JSON string", + WorkflowStep.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WorkflowStep.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WorkflowStep` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) && !jsonObj.get("stepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stepId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WorkflowStep.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `WorkflowStep` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } - // validate the optional field `action` - if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { - DocumentAction.validateJsonElement(jsonObj.get("action")); - } - // validate the optional field `queue` - if (jsonObj.get("queue") != null && !jsonObj.get("queue").isJsonNull()) { - WorkflowQueue.validateJsonElement(jsonObj.get("queue")); - } - if (jsonObj.get("decisions") != null && !jsonObj.get("decisions").isJsonNull()) { - JsonArray jsonArraydecisions = jsonObj.getAsJsonArray("decisions"); - if (jsonArraydecisions != null) { - // ensure the json data is an array - if (!jsonObj.get("decisions").isJsonArray()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `decisions` to be an array in the JSON string but got `%s`", jsonObj.get("decisions").toString())); - } - - // validate the optional field `decisions` (array) - for (int i = 0; i < jsonArraydecisions.size(); i++) { - WorkflowStepDecision.validateJsonElement(jsonArraydecisions.get(i)); - }; + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("stepId") != null && !jsonObj.get("stepId").isJsonNull()) + && !jsonObj.get("stepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `stepId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("stepId").toString())); + } + // validate the optional field `action` + if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { + DocumentAction.validateJsonElement(jsonObj.get("action")); + } + // validate the optional field `queue` + if (jsonObj.get("queue") != null && !jsonObj.get("queue").isJsonNull()) { + WorkflowQueue.validateJsonElement(jsonObj.get("queue")); + } + if (jsonObj.get("decisions") != null && !jsonObj.get("decisions").isJsonNull()) { + JsonArray jsonArraydecisions = jsonObj.getAsJsonArray("decisions"); + if (jsonArraydecisions != null) { + // ensure the json data is an array + if (!jsonObj.get("decisions").isJsonArray()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `decisions` to be an array in the JSON string but got `%s`", + jsonObj.get("decisions").toString())); } + + // validate the optional field `decisions` (array) + for (int i = 0; i < jsonArraydecisions.size(); i++) { + WorkflowStepDecision.validateJsonElement(jsonArraydecisions.get(i)); + } ; } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WorkflowStep.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WorkflowStep' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(WorkflowStep.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WorkflowStep value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WorkflowStep read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WorkflowStep.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkflowStep' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(WorkflowStep.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkflowStep value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WorkflowStep read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java b/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java index b992a1016..7a60ea166 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * WorkflowStepDecision */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class WorkflowStepDecision { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -63,8 +72,7 @@ public class WorkflowStepDecision { @javax.annotation.Nullable private String nextStepId; - public WorkflowStepDecision() { - } + public WorkflowStepDecision() {} public WorkflowStepDecision type(@javax.annotation.Nullable WorkflowStepDecisionType type) { this.type = type; @@ -73,6 +81,7 @@ public WorkflowStepDecision type(@javax.annotation.Nullable WorkflowStepDecision /** * Get type + * * @return type */ @javax.annotation.Nullable @@ -92,6 +101,7 @@ public WorkflowStepDecision nextStepId(@javax.annotation.Nullable String nextSte /** * Workflow Step to move to + * * @return nextStepId */ @javax.annotation.Nullable @@ -114,8 +124,8 @@ public boolean equals(Object o) { return false; } WorkflowStepDecision workflowStepDecision = (WorkflowStepDecision) o; - return Objects.equals(this.type, workflowStepDecision.type) && - Objects.equals(this.nextStepId, workflowStepDecision.nextStepId); + return Objects.equals(this.type, workflowStepDecision.type) + && Objects.equals(this.nextStepId, workflowStepDecision.nextStepId); } @Override @@ -134,8 +144,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -163,55 +172,63 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WorkflowStepDecision */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WorkflowStepDecision.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WorkflowStepDecision is not found in the empty JSON string", WorkflowStepDecision.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!WorkflowStepDecision.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in WorkflowStepDecision is not found in the empty JSON string", + WorkflowStepDecision.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WorkflowStepDecision.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WorkflowStepDecision` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `type` - if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { - WorkflowStepDecisionType.validateJsonElement(jsonObj.get("type")); - } - if ((jsonObj.get("nextStepId") != null && !jsonObj.get("nextStepId").isJsonNull()) && !jsonObj.get("nextStepId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nextStepId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextStepId").toString())); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WorkflowStepDecision.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `WorkflowStepDecision` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + WorkflowStepDecisionType.validateJsonElement(jsonObj.get("type")); + } + if ((jsonObj.get("nextStepId") != null && !jsonObj.get("nextStepId").isJsonNull()) + && !jsonObj.get("nextStepId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `nextStepId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("nextStepId").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WorkflowStepDecision.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WorkflowStepDecision' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(WorkflowStepDecision.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WorkflowStepDecision value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WorkflowStepDecision read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WorkflowStepDecision.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkflowStepDecision' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(WorkflowStepDecision.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkflowStepDecision value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WorkflowStepDecision read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/main/java/com/formkiq/client/model/WorkflowStepDecisionType.java b/src/main/java/com/formkiq/client/model/WorkflowStepDecisionType.java index ee5ca6281..00ce60701 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStepDecisionType.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStepDecisionType.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,9 +37,9 @@ */ @JsonAdapter(WorkflowStepDecisionType.Adapter.class) public enum WorkflowStepDecisionType { - + APPROVE("APPROVE"), - + REJECT("REJECT"); private String value; @@ -61,7 +68,8 @@ public static WorkflowStepDecisionType fromValue(String value) { public static class Adapter extends TypeAdapter { @Override - public void write(final JsonWriter jsonWriter, final WorkflowStepDecisionType enumeration) throws IOException { + public void write(final JsonWriter jsonWriter, final WorkflowStepDecisionType enumeration) + throws IOException { jsonWriter.value(enumeration.getValue()); } diff --git a/src/main/java/com/formkiq/client/model/WorkflowSummary.java b/src/main/java/com/formkiq/client/model/WorkflowSummary.java index 7b01e8339..72df802da 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowSummary.java +++ b/src/main/java/com/formkiq/client/model/WorkflowSummary.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,7 +58,9 @@ /** * WorkflowSummary */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-20T13:12:43.020869-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + comments = "Generator version: 7.17.0") public class WorkflowSummary { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -88,8 +97,7 @@ public class WorkflowSummary { @javax.annotation.Nullable private WorkflowStatus status; - public WorkflowSummary() { - } + public WorkflowSummary() {} public WorkflowSummary name(@javax.annotation.Nullable String name) { this.name = name; @@ -98,6 +106,7 @@ public WorkflowSummary name(@javax.annotation.Nullable String name) { /** * Name of Workflow + * * @return name */ @javax.annotation.Nullable @@ -117,6 +126,7 @@ public WorkflowSummary workflowId(@javax.annotation.Nullable String workflowId) /** * Workflow identifier + * * @return workflowId */ @javax.annotation.Nullable @@ -136,6 +146,7 @@ public WorkflowSummary description(@javax.annotation.Nullable String description /** * Description of Workflow + * * @return description */ @javax.annotation.Nullable @@ -155,6 +166,7 @@ public WorkflowSummary insertedDate(@javax.annotation.Nullable String insertedDa /** * Inserted Timestamp + * * @return insertedDate */ @javax.annotation.Nullable @@ -174,6 +186,7 @@ public WorkflowSummary userId(@javax.annotation.Nullable String userId) { /** * User who created workflow + * * @return userId */ @javax.annotation.Nullable @@ -193,6 +206,7 @@ public WorkflowSummary inUse(@javax.annotation.Nullable Boolean inUse) { /** * Whether the Workflow is in use + * * @return inUse */ @javax.annotation.Nullable @@ -212,6 +226,7 @@ public WorkflowSummary status(@javax.annotation.Nullable WorkflowStatus status) /** * Get status + * * @return status */ @javax.annotation.Nullable @@ -234,13 +249,13 @@ public boolean equals(Object o) { return false; } WorkflowSummary workflowSummary = (WorkflowSummary) o; - return Objects.equals(this.name, workflowSummary.name) && - Objects.equals(this.workflowId, workflowSummary.workflowId) && - Objects.equals(this.description, workflowSummary.description) && - Objects.equals(this.insertedDate, workflowSummary.insertedDate) && - Objects.equals(this.userId, workflowSummary.userId) && - Objects.equals(this.inUse, workflowSummary.inUse) && - Objects.equals(this.status, workflowSummary.status); + return Objects.equals(this.name, workflowSummary.name) + && Objects.equals(this.workflowId, workflowSummary.workflowId) + && Objects.equals(this.description, workflowSummary.description) + && Objects.equals(this.insertedDate, workflowSummary.insertedDate) + && Objects.equals(this.userId, workflowSummary.userId) + && Objects.equals(this.inUse, workflowSummary.inUse) + && Objects.equals(this.status, workflowSummary.status); } @Override @@ -264,8 +279,7 @@ public String toString() { } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(Object o) { if (o == null) { @@ -280,7 +294,8 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "workflowId", "description", "insertedDate", "userId", "inUse", "status")); + openapiFields = new HashSet(Arrays.asList("name", "workflowId", "description", + "insertedDate", "userId", "inUse", "status")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -293,67 +308,87 @@ private String toIndentedString(Object o) { * @throws IOException if the JSON Element is invalid with respect to WorkflowSummary */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!WorkflowSummary.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in WorkflowSummary is not found in the empty JSON string", WorkflowSummary.openapiRequiredFields.toString())); - } + if (jsonElement == null) { + if (!WorkflowSummary.openapiRequiredFields.isEmpty()) { // has required fields but JSON + // element is null + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The required field(s) %s in WorkflowSummary is not found in the empty JSON string", + WorkflowSummary.openapiRequiredFields.toString())); } + } - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!WorkflowSummary.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `WorkflowSummary` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) && !jsonObj.get("workflowId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workflowId").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) && !jsonObj.get("insertedDate").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("insertedDate").toString())); - } - if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) && !jsonObj.get("userId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("userId").toString())); - } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - WorkflowStatus.validateJsonElement(jsonObj.get("status")); + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!WorkflowSummary.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "The field `%s` in the JSON string is not defined in the `WorkflowSummary` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) + && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `name` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("name").toString())); + } + if ((jsonObj.get("workflowId") != null && !jsonObj.get("workflowId").isJsonNull()) + && !jsonObj.get("workflowId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `workflowId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("workflowId").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } + if ((jsonObj.get("insertedDate") != null && !jsonObj.get("insertedDate").isJsonNull()) + && !jsonObj.get("insertedDate").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `insertedDate` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("insertedDate").toString())); + } + if ((jsonObj.get("userId") != null && !jsonObj.get("userId").isJsonNull()) + && !jsonObj.get("userId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, + "Expected the field `userId` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("userId").toString())); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + WorkflowStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!WorkflowSummary.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'WorkflowSummary' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(WorkflowSummary.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, WorkflowSummary value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public WorkflowSummary read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); + if (!WorkflowSummary.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkflowSummary' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(WorkflowSummary.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkflowSummary value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public WorkflowSummary read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); } } diff --git a/src/test/java/com/formkiq/client/api/AccessControlApiTest.java b/src/test/java/com/formkiq/client/api/AccessControlApiTest.java index 8372dd778..cbbbd022a 100644 --- a/src/test/java/com/formkiq/client/api/AccessControlApiTest.java +++ b/src/test/java/com/formkiq/client/api/AccessControlApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -35,76 +42,76 @@ @Disabled public class AccessControlApiTest { - private final AccessControlApi api = new AccessControlApi(); + private final AccessControlApi api = new AccessControlApi(); - /** - * Delete OPA Access Policy Items - * - * Delete OPA Access Policy Items - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpaAccessPolicyItemsTest() throws ApiException { - String siteId = null; - DeleteResponse response = api.deleteOpaAccessPolicyItems(siteId); - // TODO: test validations - } + /** + * Delete OPA Access Policy Items + * + * Delete OPA Access Policy Items + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpaAccessPolicyItemsTest() throws ApiException { + String siteId = null; + DeleteResponse response = api.deleteOpaAccessPolicyItems(siteId); + // TODO: test validations + } - /** - * Get OPAs Access Policies - * - * Returns a list of OPA Access Policies, can only be requested with ADMIN privileges - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpaAccessPoliciesTest() throws ApiException { - GetOpaAccessPoliciesResponse response = api.getOpaAccessPolicies(); - // TODO: test validations - } + /** + * Get OPAs Access Policies + * + * Returns a list of OPA Access Policies, can only be requested with ADMIN privileges + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpaAccessPoliciesTest() throws ApiException { + GetOpaAccessPoliciesResponse response = api.getOpaAccessPolicies(); + // TODO: test validations + } - /** - * Get OPA Access Policy - * - * Returns OPA Access Policy, can only be requested with ADMIN privileges - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpaAccessPolicyTest() throws ApiException { - String siteId = null; - GetOpaAccessPolicyResponse response = api.getOpaAccessPolicy(siteId); - // TODO: test validations - } + /** + * Get OPA Access Policy + * + * Returns OPA Access Policy, can only be requested with ADMIN privileges + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpaAccessPolicyTest() throws ApiException { + String siteId = null; + GetOpaAccessPolicyResponse response = api.getOpaAccessPolicy(siteId); + // TODO: test validations + } - /** - * Get OPA Access Policy Items - * - * Returns OPA Access Policy Items, can only be requested with ADMIN privileges - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpaAccessPolicyItemsTest() throws ApiException { - String siteId = null; - GetOpaAccessPolicyItemsResponse response = api.getOpaAccessPolicyItems(siteId); - // TODO: test validations - } + /** + * Get OPA Access Policy Items + * + * Returns OPA Access Policy Items, can only be requested with ADMIN privileges + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpaAccessPolicyItemsTest() throws ApiException { + String siteId = null; + GetOpaAccessPolicyItemsResponse response = api.getOpaAccessPolicyItems(siteId); + // TODO: test validations + } - /** - * Set opa access policy items, can only be requested with ADMIN privileges - * - * Sets opa access policy items - * - * @throws ApiException if the Api call fails - */ - @Test - public void setOpaAccessPolicyItemsTest() throws ApiException { - String siteId = null; - SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest = null; - SetResponse response = api.setOpaAccessPolicyItems(siteId, setOpaAccessPolicyItemsRequest); - // TODO: test validations - } + /** + * Set opa access policy items, can only be requested with ADMIN privileges + * + * Sets opa access policy items + * + * @throws ApiException if the Api call fails + */ + @Test + public void setOpaAccessPolicyItemsTest() throws ApiException { + String siteId = null; + SetOpaAccessPolicyItemsRequest setOpaAccessPolicyItemsRequest = null; + SetResponse response = api.setOpaAccessPolicyItems(siteId, setOpaAccessPolicyItemsRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/AdvancedDocumentSearchApiTest.java b/src/test/java/com/formkiq/client/api/AdvancedDocumentSearchApiTest.java index a5e076cfe..64d8c1c9f 100644 --- a/src/test/java/com/formkiq/client/api/AdvancedDocumentSearchApiTest.java +++ b/src/test/java/com/formkiq/client/api/AdvancedDocumentSearchApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -40,153 +47,160 @@ @Disabled public class AdvancedDocumentSearchApiTest { - private final AdvancedDocumentSearchApi api = new AdvancedDocumentSearchApi(); - - /** - * Add document's full-text - * - * Add a document to OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentFulltextTest() throws ApiException { - String documentId = null; - String siteId = null; - AddDocumentFulltextRequest addDocumentFulltextRequest = null; - AddDocumentFulltextResponse response = api.addDocumentFulltext(documentId, siteId, addDocumentFulltextRequest); - // TODO: test validations - } - - /** - * Delete document full-text - * - * Remove full text search for a document from OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentFulltextTest() throws ApiException { - String documentId = null; - String siteId = null; - DeleteFulltextResponse response = api.deleteDocumentFulltext(documentId, siteId); - // TODO: test validations - } - - /** - * Delete document full-text tag - * - * Remove document tags from OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentFulltextTagTest() throws ApiException { - String documentId = null; - String tagKey = null; - String siteId = null; - String shareKey = null; - api.deleteDocumentFulltextTag(documentId, tagKey, siteId, shareKey); - // TODO: test validations - } - - /** - * Delete document full-text tag/value - * - * Remove document tag/value from OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentFulltextTagAndValueTest() throws ApiException { - String documentId = null; - String tagKey = null; - String tagValue = null; - String siteId = null; - String shareKey = null; - api.deleteDocumentFulltextTagAndValue(documentId, tagKey, tagValue, siteId, shareKey); - // TODO: test validations - } - - /** - * Get document's full-text - * - * Retrieve an OpenSearch document's details, i.e., metadata - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentFulltextTest() throws ApiException { - String documentId = null; - String siteId = null; - String shareKey = null; - GetDocumentFulltextResponse response = api.getDocumentFulltext(documentId, siteId, shareKey); - // TODO: test validations - } - - /** - * Direct opensearch search API - * - * Endpoint for allowing custom, complex queries using the OpenSearch search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module Example Request Body: { \"query\": { \"match_all\": {} }} - * - * @throws ApiException if the Api call fails - */ - @Test - public void queryFulltextTest() throws ApiException { - Object body = null; - String siteId = null; - String indexName = null; - QueryFulltextResponse response = api.queryFulltext(body, siteId, indexName); - // TODO: test validations - } - - /** - * Document full-text search - * - * Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void searchFulltextTest() throws ApiException { - DocumentFulltextRequest documentFulltextRequest = null; - String siteId = null; - String indexName = null; - String limit = null; - DocumentFulltextResponse response = api.searchFulltext(documentFulltextRequest, siteId, indexName, limit); - // TODO: test validations - } - - /** - * Set document's full-text - * - * Set all text/tags found within a document to OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentFulltextTest() throws ApiException { - String documentId = null; - String siteId = null; - SetDocumentFulltextRequest setDocumentFulltextRequest = null; - SetDocumentFulltextResponse response = api.setDocumentFulltext(documentId, siteId, setDocumentFulltextRequest); - // TODO: test validations - } - - /** - * Update document's full-text - * - * Update a document in OpenSearch; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateDocumentFulltextTest() throws ApiException { - String documentId = null; - String siteId = null; - UpdateDocumentFulltextRequest updateDocumentFulltextRequest = null; - UpdateDocumentFulltextResponse response = api.updateDocumentFulltext(documentId, siteId, updateDocumentFulltextRequest); - // TODO: test validations - } + private final AdvancedDocumentSearchApi api = new AdvancedDocumentSearchApi(); + + /** + * Add document's full-text + * + * Add a document to OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentFulltextTest() throws ApiException { + String documentId = null; + String siteId = null; + AddDocumentFulltextRequest addDocumentFulltextRequest = null; + AddDocumentFulltextResponse response = + api.addDocumentFulltext(documentId, siteId, addDocumentFulltextRequest); + // TODO: test validations + } + + /** + * Delete document full-text + * + * Remove full text search for a document from OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentFulltextTest() throws ApiException { + String documentId = null; + String siteId = null; + DeleteFulltextResponse response = api.deleteDocumentFulltext(documentId, siteId); + // TODO: test validations + } + + /** + * Delete document full-text tag + * + * Remove document tags from OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentFulltextTagTest() throws ApiException { + String documentId = null; + String tagKey = null; + String siteId = null; + String shareKey = null; + api.deleteDocumentFulltextTag(documentId, tagKey, siteId, shareKey); + // TODO: test validations + } + + /** + * Delete document full-text tag/value + * + * Remove document tag/value from OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentFulltextTagAndValueTest() throws ApiException { + String documentId = null; + String tagKey = null; + String tagValue = null; + String siteId = null; + String shareKey = null; + api.deleteDocumentFulltextTagAndValue(documentId, tagKey, tagValue, siteId, shareKey); + // TODO: test validations + } + + /** + * Get document's full-text + * + * Retrieve an OpenSearch document's details, i.e., metadata + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentFulltextTest() throws ApiException { + String documentId = null; + String siteId = null; + String shareKey = null; + GetDocumentFulltextResponse response = api.getDocumentFulltext(documentId, siteId, shareKey); + // TODO: test validations + } + + /** + * Direct opensearch search API + * + * Endpoint for allowing custom, complex queries using the OpenSearch search API + * (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module + * Example Request Body: { \"query\": { \"match_all\": {} }} + * + * @throws ApiException if the Api call fails + */ + @Test + public void queryFulltextTest() throws ApiException { + Object body = null; + String siteId = null; + String indexName = null; + QueryFulltextResponse response = api.queryFulltext(body, siteId, indexName); + // TODO: test validations + } + + /** + * Document full-text search + * + * Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); + * available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void searchFulltextTest() throws ApiException { + DocumentFulltextRequest documentFulltextRequest = null; + String siteId = null; + String indexName = null; + String limit = null; + DocumentFulltextResponse response = + api.searchFulltext(documentFulltextRequest, siteId, indexName, limit); + // TODO: test validations + } + + /** + * Set document's full-text + * + * Set all text/tags found within a document to OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentFulltextTest() throws ApiException { + String documentId = null; + String siteId = null; + SetDocumentFulltextRequest setDocumentFulltextRequest = null; + SetDocumentFulltextResponse response = + api.setDocumentFulltext(documentId, siteId, setDocumentFulltextRequest); + // TODO: test validations + } + + /** + * Update document's full-text + * + * Update a document in OpenSearch; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateDocumentFulltextTest() throws ApiException { + String documentId = null; + String siteId = null; + UpdateDocumentFulltextRequest updateDocumentFulltextRequest = null; + UpdateDocumentFulltextResponse response = + api.updateDocumentFulltext(documentId, siteId, updateDocumentFulltextRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/AttributesApiTest.java b/src/test/java/com/formkiq/client/api/AttributesApiTest.java index fb012d0c8..bcb3e8276 100644 --- a/src/test/java/com/formkiq/client/api/AttributesApiTest.java +++ b/src/test/java/com/formkiq/client/api/AttributesApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -37,98 +44,98 @@ @Disabled public class AttributesApiTest { - private final AttributesApi api = new AttributesApi(); + private final AttributesApi api = new AttributesApi(); - /** - * Add new attribute - * - * Creates a new attribute - * - * @throws ApiException if the Api call fails - */ - @Test - public void addAttributeTest() throws ApiException { - AddAttributeRequest addAttributeRequest = null; - String siteId = null; - AddResponse response = api.addAttribute(addAttributeRequest, siteId); - // TODO: test validations - } + /** + * Add new attribute + * + * Creates a new attribute + * + * @throws ApiException if the Api call fails + */ + @Test + public void addAttributeTest() throws ApiException { + AddAttributeRequest addAttributeRequest = null; + String siteId = null; + AddResponse response = api.addAttribute(addAttributeRequest, siteId); + // TODO: test validations + } - /** - * Delete attribute - * - * Delete a attribute - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteAttributeTest() throws ApiException { - String key = null; - String siteId = null; - DeleteResponse response = api.deleteAttribute(key, siteId); - // TODO: test validations - } + /** + * Delete attribute + * + * Delete a attribute + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteAttributeTest() throws ApiException { + String key = null; + String siteId = null; + DeleteResponse response = api.deleteAttribute(key, siteId); + // TODO: test validations + } - /** - * Get Attribute - * - * Returns a attribute - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAttributeTest() throws ApiException { - String key = null; - String siteId = null; - GetAttributeResponse response = api.getAttribute(key, siteId); - // TODO: test validations - } + /** + * Get Attribute + * + * Returns a attribute + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAttributeTest() throws ApiException { + String key = null; + String siteId = null; + GetAttributeResponse response = api.getAttribute(key, siteId); + // TODO: test validations + } - /** - * Get Attribute Allowed Values - * - * Returns an attribute's allowed values that spans across all classifications and site schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAttributeAllowedValuesTest() throws ApiException { - String key = null; - String siteId = null; - GetAttributeAllowedValuesResponse response = api.getAttributeAllowedValues(key, siteId); - // TODO: test validations - } + /** + * Get Attribute Allowed Values + * + * Returns an attribute's allowed values that spans across all classifications and site schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAttributeAllowedValuesTest() throws ApiException { + String key = null; + String siteId = null; + GetAttributeAllowedValuesResponse response = api.getAttributeAllowedValues(key, siteId); + // TODO: test validations + } - /** - * Get Attributes listing - * - * Returns a list of attributes - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAttributesTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetAttributesResponse response = api.getAttributes(siteId, next, limit); - // TODO: test validations - } + /** + * Get Attributes listing + * + * Returns a list of attributes + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAttributesTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetAttributesResponse response = api.getAttributes(siteId, next, limit); + // TODO: test validations + } - /** - * Update existing attribute - * - * Updates existing attribute - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateAttributeTest() throws ApiException { - String key = null; - UpdateAttributeRequest updateAttributeRequest = null; - String siteId = null; - UpdateResponse response = api.updateAttribute(key, updateAttributeRequest, siteId); - // TODO: test validations - } + /** + * Update existing attribute + * + * Updates existing attribute + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateAttributeTest() throws ApiException { + String key = null; + UpdateAttributeRequest updateAttributeRequest = null; + String siteId = null; + UpdateResponse response = api.updateAttribute(key, updateAttributeRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/CaseManagementApiTest.java b/src/test/java/com/formkiq/client/api/CaseManagementApiTest.java index 59a6727a8..bf28ed4a4 100644 --- a/src/test/java/com/formkiq/client/api/CaseManagementApiTest.java +++ b/src/test/java/com/formkiq/client/api/CaseManagementApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -53,350 +60,352 @@ @Disabled public class CaseManagementApiTest { - private final CaseManagementApi api = new CaseManagementApi(); + private final CaseManagementApi api = new CaseManagementApi(); - /** - * Add New Case - * - * Adds new case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addCaseTest() throws ApiException { - AddCaseRequest addCaseRequest = null; - String siteId = null; - AddCaseResponse response = api.addCase(addCaseRequest, siteId); - // TODO: test validations - } + /** + * Add New Case + * + * Adds new case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addCaseTest() throws ApiException { + AddCaseRequest addCaseRequest = null; + String siteId = null; + AddCaseResponse response = api.addCase(addCaseRequest, siteId); + // TODO: test validations + } - /** - * Add New Nigo - * - * Adds new nigo; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addNigoTest() throws ApiException { - String caseId = null; - AddNigoRequest addNigoRequest = null; - String siteId = null; - AddNigoResponse response = api.addNigo(caseId, addNigoRequest, siteId); - // TODO: test validations - } + /** + * Add New Nigo + * + * Adds new nigo; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addNigoTest() throws ApiException { + String caseId = null; + AddNigoRequest addNigoRequest = null; + String siteId = null; + AddNigoResponse response = api.addNigo(caseId, addNigoRequest, siteId); + // TODO: test validations + } - /** - * Add New Task - * - * Adds new task; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addTaskTest() throws ApiException { - String caseId = null; - AddTaskRequest addTaskRequest = null; - String siteId = null; - AddTaskResponse response = api.addTask(caseId, addTaskRequest, siteId); - // TODO: test validations - } + /** + * Add New Task + * + * Adds new task; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addTaskTest() throws ApiException { + String caseId = null; + AddTaskRequest addTaskRequest = null; + String siteId = null; + AddTaskResponse response = api.addTask(caseId, addTaskRequest, siteId); + // TODO: test validations + } - /** - * Delete Case - * - * Delete Case - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteCaseTest() throws ApiException { - String caseId = null; - String siteId = null; - DeleteCaseResponse response = api.deleteCase(caseId, siteId); - // TODO: test validations - } + /** + * Delete Case + * + * Delete Case + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteCaseTest() throws ApiException { + String caseId = null; + String siteId = null; + DeleteCaseResponse response = api.deleteCase(caseId, siteId); + // TODO: test validations + } - /** - * Delete Document from Case - * - * Delete Document from Case - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteCaseDocumentTest() throws ApiException { - String caseId = null; - String documentId = null; - String siteId = null; - DeleteCaseDocumentResponse response = api.deleteCaseDocument(caseId, documentId, siteId); - // TODO: test validations - } + /** + * Delete Document from Case + * + * Delete Document from Case + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteCaseDocumentTest() throws ApiException { + String caseId = null; + String documentId = null; + String siteId = null; + DeleteCaseDocumentResponse response = api.deleteCaseDocument(caseId, documentId, siteId); + // TODO: test validations + } - /** - * Delete Nigo - * - * Delete Nigo - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteNigoTest() throws ApiException { - String caseId = null; - String nigoId = null; - String siteId = null; - DeleteCaseNigoResponse response = api.deleteNigo(caseId, nigoId, siteId); - // TODO: test validations - } + /** + * Delete Nigo + * + * Delete Nigo + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteNigoTest() throws ApiException { + String caseId = null; + String nigoId = null; + String siteId = null; + DeleteCaseNigoResponse response = api.deleteNigo(caseId, nigoId, siteId); + // TODO: test validations + } - /** - * Delete Document from Nigo - * - * Delete Document from Nigo - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteNigoDocumentTest() throws ApiException { - String caseId = null; - String nigoId = null; - String documentId = null; - String siteId = null; - DeleteCaseNigoDocumentResponse response = api.deleteNigoDocument(caseId, nigoId, documentId, siteId); - // TODO: test validations - } + /** + * Delete Document from Nigo + * + * Delete Document from Nigo + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteNigoDocumentTest() throws ApiException { + String caseId = null; + String nigoId = null; + String documentId = null; + String siteId = null; + DeleteCaseNigoDocumentResponse response = + api.deleteNigoDocument(caseId, nigoId, documentId, siteId); + // TODO: test validations + } - /** - * Delete Task - * - * Delete Task - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteTaskTest() throws ApiException { - String caseId = null; - String taskId = null; - String siteId = null; - DeleteCaseTaskResponse response = api.deleteTask(caseId, taskId, siteId); - // TODO: test validations - } + /** + * Delete Task + * + * Delete Task + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteTaskTest() throws ApiException { + String caseId = null; + String taskId = null; + String siteId = null; + DeleteCaseTaskResponse response = api.deleteTask(caseId, taskId, siteId); + // TODO: test validations + } - /** - * Delete Document from Task - * - * Delete Document from Task - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteTaskDocumentTest() throws ApiException { - String caseId = null; - String taskId = null; - String documentId = null; - String siteId = null; - DeleteCaseTaskDocumentResponse response = api.deleteTaskDocument(caseId, taskId, documentId, siteId); - // TODO: test validations - } + /** + * Delete Document from Task + * + * Delete Document from Task + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteTaskDocumentTest() throws ApiException { + String caseId = null; + String taskId = null; + String documentId = null; + String siteId = null; + DeleteCaseTaskDocumentResponse response = + api.deleteTaskDocument(caseId, taskId, documentId, siteId); + // TODO: test validations + } - /** - * Get Case details - * - * Returns a Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseTest() throws ApiException { - String caseId = null; - String siteId = null; - GetCaseResponse response = api.getCase(caseId, siteId); - // TODO: test validations - } + /** + * Get Case details + * + * Returns a Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseTest() throws ApiException { + String caseId = null; + String siteId = null; + GetCaseResponse response = api.getCase(caseId, siteId); + // TODO: test validations + } - /** - * Get list of document in a case - * - * Returns documents in a Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseDocumentsTest() throws ApiException { - String caseId = null; - String siteId = null; - String next = null; - String limit = null; - GetCaseDocumentsResponse response = api.getCaseDocuments(caseId, siteId, next, limit); - // TODO: test validations - } + /** + * Get list of document in a case + * + * Returns documents in a Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseDocumentsTest() throws ApiException { + String caseId = null; + String siteId = null; + String next = null; + String limit = null; + GetCaseDocumentsResponse response = api.getCaseDocuments(caseId, siteId, next, limit); + // TODO: test validations + } - /** - * Get nigo in a case - * - * Returns a Nigo in Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseNigoTest() throws ApiException { - String caseId = null; - String nigoId = null; - String siteId = null; - GetCaseNigoResponse response = api.getCaseNigo(caseId, nigoId, siteId); - // TODO: test validations - } + /** + * Get nigo in a case + * + * Returns a Nigo in Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseNigoTest() throws ApiException { + String caseId = null; + String nigoId = null; + String siteId = null; + GetCaseNigoResponse response = api.getCaseNigo(caseId, nigoId, siteId); + // TODO: test validations + } - /** - * Get list of Nigos in a case - * - * Returns a Nigos of Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseNigosTest() throws ApiException { - String caseId = null; - String siteId = null; - String next = null; - String limit = null; - GetCaseNigosResponse response = api.getCaseNigos(caseId, siteId, next, limit); - // TODO: test validations - } + /** + * Get list of Nigos in a case + * + * Returns a Nigos of Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseNigosTest() throws ApiException { + String caseId = null; + String siteId = null; + String next = null; + String limit = null; + GetCaseNigosResponse response = api.getCaseNigos(caseId, siteId, next, limit); + // TODO: test validations + } - /** - * Get task in a case - * - * Returns a Task in Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseTaskTest() throws ApiException { - String caseId = null; - String taskId = null; - String siteId = null; - GetCaseTaskResponse response = api.getCaseTask(caseId, taskId, siteId); - // TODO: test validations - } + /** + * Get task in a case + * + * Returns a Task in Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseTaskTest() throws ApiException { + String caseId = null; + String taskId = null; + String siteId = null; + GetCaseTaskResponse response = api.getCaseTask(caseId, taskId, siteId); + // TODO: test validations + } - /** - * Get list of tasks in a case - * - * Returns a Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCaseTasksTest() throws ApiException { - String caseId = null; - String siteId = null; - String next = null; - String limit = null; - GetCaseTasksResponse response = api.getCaseTasks(caseId, siteId, next, limit); - // TODO: test validations - } + /** + * Get list of tasks in a case + * + * Returns a Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCaseTasksTest() throws ApiException { + String caseId = null; + String siteId = null; + String next = null; + String limit = null; + GetCaseTasksResponse response = api.getCaseTasks(caseId, siteId, next, limit); + // TODO: test validations + } - /** - * Get Case listing - * - * Returns a list of the Cases; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCasesTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetCasesResponse response = api.getCases(siteId, next, limit); - // TODO: test validations - } + /** + * Get Case listing + * + * Returns a list of the Cases; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCasesTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetCasesResponse response = api.getCases(siteId, next, limit); + // TODO: test validations + } - /** - * Get list of document in a task - * - * Returns a list documents in a Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getNigoDocumentsTest() throws ApiException { - String caseId = null; - String nigoId = null; - String siteId = null; - String next = null; - String limit = null; - GetCaseDocumentsResponse response = api.getNigoDocuments(caseId, nigoId, siteId, next, limit); - // TODO: test validations - } + /** + * Get list of document in a task + * + * Returns a list documents in a Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getNigoDocumentsTest() throws ApiException { + String caseId = null; + String nigoId = null; + String siteId = null; + String next = null; + String limit = null; + GetCaseDocumentsResponse response = api.getNigoDocuments(caseId, nigoId, siteId, next, limit); + // TODO: test validations + } - /** - * Get list of document in a task - * - * Returns a list documents in a Case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getTaskDocumentsTest() throws ApiException { - String caseId = null; - String taskId = null; - String siteId = null; - String next = null; - String limit = null; - GetCaseDocumentsResponse response = api.getTaskDocuments(caseId, taskId, siteId, next, limit); - // TODO: test validations - } + /** + * Get list of document in a task + * + * Returns a list documents in a Case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getTaskDocumentsTest() throws ApiException { + String caseId = null; + String taskId = null; + String siteId = null; + String next = null; + String limit = null; + GetCaseDocumentsResponse response = api.getTaskDocuments(caseId, taskId, siteId, next, limit); + // TODO: test validations + } - /** - * Update existing Case - * - * Updates existing case; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateCaseTest() throws ApiException { - String caseId = null; - UpdateCaseRequest updateCaseRequest = null; - String siteId = null; - UpdateCaseResponse response = api.updateCase(caseId, updateCaseRequest, siteId); - // TODO: test validations - } + /** + * Update existing Case + * + * Updates existing case; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateCaseTest() throws ApiException { + String caseId = null; + UpdateCaseRequest updateCaseRequest = null; + String siteId = null; + UpdateCaseResponse response = api.updateCase(caseId, updateCaseRequest, siteId); + // TODO: test validations + } - /** - * Update existing Nigo - * - * Updates existing nigo; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateNigoTest() throws ApiException { - String caseId = null; - String nigoId = null; - UpdateNigoRequest updateNigoRequest = null; - String siteId = null; - UpdateNigoResponse response = api.updateNigo(caseId, nigoId, updateNigoRequest, siteId); - // TODO: test validations - } + /** + * Update existing Nigo + * + * Updates existing nigo; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateNigoTest() throws ApiException { + String caseId = null; + String nigoId = null; + UpdateNigoRequest updateNigoRequest = null; + String siteId = null; + UpdateNigoResponse response = api.updateNigo(caseId, nigoId, updateNigoRequest, siteId); + // TODO: test validations + } - /** - * Update existing Task - * - * Updates existing task; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateTaskTest() throws ApiException { - String caseId = null; - String taskId = null; - UpdateTaskRequest updateTaskRequest = null; - String siteId = null; - UpdateTaskResponse response = api.updateTask(caseId, taskId, updateTaskRequest, siteId); - // TODO: test validations - } + /** + * Update existing Task + * + * Updates existing task; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateTaskTest() throws ApiException { + String caseId = null; + String taskId = null; + UpdateTaskRequest updateTaskRequest = null; + String siteId = null; + UpdateTaskResponse response = api.updateTask(caseId, taskId, updateTaskRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/CustomIndexApiTest.java b/src/test/java/com/formkiq/client/api/CustomIndexApiTest.java index 71657f485..e45bd57f3 100644 --- a/src/test/java/com/formkiq/client/api/CustomIndexApiTest.java +++ b/src/test/java/com/formkiq/client/api/CustomIndexApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -34,50 +41,53 @@ @Disabled public class CustomIndexApiTest { - private final CustomIndexApi api = new CustomIndexApi(); + private final CustomIndexApi api = new CustomIndexApi(); - /** - * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, you can set the indexKey to a URLEncoded path variable. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteIndexTest() throws ApiException { - String indexKey = null; - String indexType = null; - String siteId = null; - DeleteIndicesResponse response = api.deleteIndex(indexKey, indexType, siteId); - // TODO: test validations - } + /** + * Perform a delete on the Folder Index. When deleting a file from the \"folder\" index, + * you can set the indexKey to a URLEncoded path variable. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteIndexTest() throws ApiException { + String indexKey = null; + String indexType = null; + String siteId = null; + DeleteIndicesResponse response = api.deleteIndex(indexKey, indexType, siteId); + // TODO: test validations + } - /** - * Perform an Folder Index Move - * - * @throws ApiException if the Api call fails - */ - @Test - public void indexFolderMoveTest() throws ApiException { - String indexType = null; - IndexFolderMoveRequest indexFolderMoveRequest = null; - String siteId = null; - IndexFolderMoveResponse response = api.indexFolderMove(indexType, indexFolderMoveRequest, siteId); - // TODO: test validations - } + /** + * Perform an Folder Index Move + * + * @throws ApiException if the Api call fails + */ + @Test + public void indexFolderMoveTest() throws ApiException { + String indexType = null; + IndexFolderMoveRequest indexFolderMoveRequest = null; + String siteId = null; + IndexFolderMoveResponse response = + api.indexFolderMove(indexType, indexFolderMoveRequest, siteId); + // TODO: test validations + } - /** - * Perform a search on a index; this is currently available for both folder and tag indices - * - * @throws ApiException if the Api call fails - */ - @Test - public void indexSearchTest() throws ApiException { - IndexSearchRequest indexSearchRequest = null; - String siteId = null; - String limit = null; - String next = null; - String previous = null; - IndexSearchResponse response = api.indexSearch(indexSearchRequest, siteId, limit, next, previous); - // TODO: test validations - } + /** + * Perform a search on a index; this is currently available for both folder and tag indices + * + * @throws ApiException if the Api call fails + */ + @Test + public void indexSearchTest() throws ApiException { + IndexSearchRequest indexSearchRequest = null; + String siteId = null; + String limit = null; + String next = null; + String previous = null; + IndexSearchResponse response = + api.indexSearch(indexSearchRequest, siteId, limit, next, previous); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentActionsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentActionsApiTest.java index cb631401f..fbaef78a7 100644 --- a/src/test/java/com/formkiq/client/api/DocumentActionsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentActionsApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -33,55 +40,81 @@ @Disabled public class DocumentActionsApiTest { - private final DocumentActionsApi api = new DocumentActionsApi(); + private final DocumentActionsApi api = new DocumentActionsApi(); - /** - * Add document action - * - * Add one or more actions to a document; this appends actions and does not replace previous actions Each action type supports a different set of parameters as shown in the table below: ### Action Parameters | ActionType | Parameter | Description | Example | | -------- | ------- | ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | TEXT, FORMS, TABLES, QUERIES (requires 'ocrTextractQueries') | | OCR | ocrTextractQueries | Required for \"QUERIES\", questions to ask Textract | | OCR | ocrEngine | Ocr Engine to use | tesseract or textract | | OCR | ocrOutputType | Convert OCR result to an Output format (textract table only) | true | | OCR | ocrNumberOfPages | Number of pages to OCR (from start) | -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert images to text | true or false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt Entity Name | | FULLTEXT | characterMax | Maximum number of characters to add to Fulltext destination | -1 | | DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | DOCUMENTTAGGING | tags | Comma-deliminted list of keywords | author,title,description | | WEBHOOK | url | Webhook URL | https://yourdomain.com/webhook-endpoint | | NOTIFICATION | notificationType | Type of Notification | email | | NOTIFICATION | notificationToCc | Notification Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationToBcc | Notification Blind Carbon Copy | email@yourdomain.com | | NOTIFICATION | notificationSubject | Notification Subject | Email Subject | | NOTIFICATION | notificationText | Notification as Text | Email Text | | NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | QUEUE | queueId | Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | eventBusName | The name or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | width | The width of the image to resize (or 'auto'). | | | RESIZE | height | The height of the image to resize (or 'auto'). | | | RESIZE | outputType | The output type of the image (optional). | | | RESIZE | path | The path to use when creating resized document (optional). | | - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentActionsTest() throws ApiException { - String documentId = null; - String siteId = null; - AddDocumentActionsRequest addDocumentActionsRequest = null; - AddDocumentActionsResponse response = api.addDocumentActions(documentId, siteId, addDocumentActionsRequest); - // TODO: test validations - } + /** + * Add document action + * + * Add one or more actions to a document; this appends actions and does not replace previous + * actions Each action type supports a different set of parameters as shown in the table below: + * ### Action Parameters | ActionType | Parameter | Description | Example | | -------- | ------- | + * ------- | ------- | | OCR | ocrParseTypes | Ocr Parsing strategy to use | TEXT, FORMS, TABLES, + * QUERIES (requires 'ocrTextractQueries') | | OCR | ocrTextractQueries | Required for + * \"QUERIES\", questions to ask Textract | | OCR | ocrEngine | Ocr Engine to use | + * tesseract or textract | | OCR | ocrOutputType | Convert OCR result to an Output format + * (textract table only) | true | | OCR | ocrNumberOfPages | Number of pages to OCR (from start) | + * -1 | | OCR | addPdfDetectedCharactersAsText | PDF Documents convert images to text | true or + * false | | DATA_CLASSIFICATION | llmPromptEntityName | LLM Prompt Entity Name | | FULLTEXT | + * characterMax | Maximum number of characters to add to Fulltext destination | -1 | | + * DOCUMENTTAGGING | engine | Tagging Engine to use | chatgpt | | DOCUMENTTAGGING | tags | + * Comma-deliminted list of keywords | author,title,description | | WEBHOOK | url | Webhook URL | + * https://yourdomain.com/webhook-endpoint | | NOTIFICATION | notificationType | Type of + * Notification | email | | NOTIFICATION | notificationToCc | Notification Carbon Copy | + * email@yourdomain.com | | NOTIFICATION | notificationToBcc | Notification Blind Carbon Copy | + * email@yourdomain.com | | NOTIFICATION | notificationSubject | Notification Subject | Email + * Subject | | NOTIFICATION | notificationText | Notification as Text | Email Text | | + * NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text | | QUEUE | queueId | + * Id of Queue | | | IDP | mappingId | Id of Mapping | | | EVENTBRIDGE | eventBusName | The name + * or ARN of the Amazon EventBridge to receive the event. | | | RESIZE | width | The width of the + * image to resize (or 'auto'). | | | RESIZE | height | The height of the image to resize + * (or 'auto'). | | | RESIZE | outputType | The output type of the image (optional). | | | + * RESIZE | path | The path to use when creating resized document (optional). | | + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentActionsTest() throws ApiException { + String documentId = null; + String siteId = null; + AddDocumentActionsRequest addDocumentActionsRequest = null; + AddDocumentActionsResponse response = + api.addDocumentActions(documentId, siteId, addDocumentActionsRequest); + // TODO: test validations + } - /** - * Retries failed document action(s) - * - * Retries all failed document action(s). Failed action status changes to \"FAILED_RETRY\" and a new \"PENDING\" action is created. - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentRetryActionTest() throws ApiException { - String documentId = null; - String siteId = null; - AddDocumentActionsRetryResponse response = api.addDocumentRetryAction(documentId, siteId); - // TODO: test validations - } + /** + * Retries failed document action(s) + * + * Retries all failed document action(s). Failed action status changes to + * \"FAILED_RETRY\" and a new \"PENDING\" action is created. + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentRetryActionTest() throws ApiException { + String documentId = null; + String siteId = null; + AddDocumentActionsRetryResponse response = api.addDocumentRetryAction(documentId, siteId); + // TODO: test validations + } - /** - * Get document actions - * - * Get document actions and their status - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentActionsTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String shareKey = null; - String next = null; - GetDocumentActionsResponse response = api.getDocumentActions(documentId, siteId, limit, shareKey, next); - // TODO: test validations - } + /** + * Get document actions + * + * Get document actions and their status + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentActionsTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String shareKey = null; + String next = null; + GetDocumentActionsResponse response = + api.getDocumentActions(documentId, siteId, limit, shareKey, next); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentAttributesApiTest.java b/src/test/java/com/formkiq/client/api/DocumentAttributesApiTest.java index cc441540f..a0f357901 100644 --- a/src/test/java/com/formkiq/client/api/DocumentAttributesApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentAttributesApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -36,121 +43,131 @@ @Disabled public class DocumentAttributesApiTest { - private final DocumentAttributesApi api = new DocumentAttributesApi(); + private final DocumentAttributesApi api = new DocumentAttributesApi(); - /** - * Add attribute to document - * - * Add multiple attributes to a document; this endpoint also accepts a different body parameter for adding a single attribute - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentAttributesTest() throws ApiException { - String documentId = null; - AddDocumentAttributesRequest addDocumentAttributesRequest = null; - String siteId = null; - AddResponse response = api.addDocumentAttributes(documentId, addDocumentAttributesRequest, siteId); - // TODO: test validations - } + /** + * Add attribute to document + * + * Add multiple attributes to a document; this endpoint also accepts a different body parameter + * for adding a single attribute + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentAttributesTest() throws ApiException { + String documentId = null; + AddDocumentAttributesRequest addDocumentAttributesRequest = null; + String siteId = null; + AddResponse response = + api.addDocumentAttributes(documentId, addDocumentAttributesRequest, siteId); + // TODO: test validations + } - /** - * Delete document attribute - * - * Delete a document attribute by using its key - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentAttributeTest() throws ApiException { - String documentId = null; - String attributeKey = null; - String siteId = null; - DeleteResponse response = api.deleteDocumentAttribute(documentId, attributeKey, siteId); - // TODO: test validations - } + /** + * Delete document attribute + * + * Delete a document attribute by using its key + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentAttributeTest() throws ApiException { + String documentId = null; + String attributeKey = null; + String siteId = null; + DeleteResponse response = api.deleteDocumentAttribute(documentId, attributeKey, siteId); + // TODO: test validations + } - /** - * Delete document's attribute value - * - * Delete a specific document attribute key/value combination; the request will be ignored if there is no valid key/value combination found - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentAttributeAndValueTest() throws ApiException { - String documentId = null; - String attributeKey = null; - String attributeValue = null; - String siteId = null; - DeleteResponse response = api.deleteDocumentAttributeAndValue(documentId, attributeKey, attributeValue, siteId); - // TODO: test validations - } + /** + * Delete document's attribute value + * + * Delete a specific document attribute key/value combination; the request will be ignored if + * there is no valid key/value combination found + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentAttributeAndValueTest() throws ApiException { + String documentId = null; + String attributeKey = null; + String attributeValue = null; + String siteId = null; + DeleteResponse response = + api.deleteDocumentAttributeAndValue(documentId, attributeKey, attributeValue, siteId); + // TODO: test validations + } - /** - * Get document attribute by key - * - * Get a document attribute by using its key - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentAttributeTest() throws ApiException { - String documentId = null; - String attributeKey = null; - String siteId = null; - GetDocumentAttributeResponse response = api.getDocumentAttribute(documentId, attributeKey, siteId); - // TODO: test validations - } + /** + * Get document attribute by key + * + * Get a document attribute by using its key + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentAttributeTest() throws ApiException { + String documentId = null; + String attributeKey = null; + String siteId = null; + GetDocumentAttributeResponse response = + api.getDocumentAttribute(documentId, attributeKey, siteId); + // TODO: test validations + } - /** - * Get document's attributes - * - * Get a listing of a document's attributes - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentAttributesTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String next = null; - GetDocumentAttributesResponse response = api.getDocumentAttributes(documentId, siteId, limit, next); - // TODO: test validations - } + /** + * Get document's attributes + * + * Get a listing of a document's attributes + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentAttributesTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String next = null; + GetDocumentAttributesResponse response = + api.getDocumentAttributes(documentId, siteId, limit, next); + // TODO: test validations + } - /** - * Set document's attributes value - * - * Set attributes value to a document - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentAttributeValueTest() throws ApiException { - String documentId = null; - String attributeKey = null; - SetDocumentAttributeRequest setDocumentAttributeRequest = null; - String siteId = null; - SetResponse response = api.setDocumentAttributeValue(documentId, attributeKey, setDocumentAttributeRequest, siteId); - // TODO: test validations - } + /** + * Set document's attributes value + * + * Set attributes value to a document + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentAttributeValueTest() throws ApiException { + String documentId = null; + String attributeKey = null; + SetDocumentAttributeRequest setDocumentAttributeRequest = null; + String siteId = null; + SetResponse response = api.setDocumentAttributeValue(documentId, attributeKey, + setDocumentAttributeRequest, siteId); + // TODO: test validations + } - /** - * Set document's attributes - * - * Set multiple attributes to a document; this endpoint also accepts a different body parameter for setting a single attribute Note: - attributes in the request will overwrite existing attributes. - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentAttributesTest() throws ApiException { - String documentId = null; - SetDocumentAttributesRequest setDocumentAttributesRequest = null; - String siteId = null; - SetResponse response = api.setDocumentAttributes(documentId, setDocumentAttributesRequest, siteId); - // TODO: test validations - } + /** + * Set document's attributes + * + * Set multiple attributes to a document; this endpoint also accepts a different body parameter + * for setting a single attribute Note: - attributes in the request will overwrite existing + * attributes. + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentAttributesTest() throws ApiException { + String documentId = null; + SetDocumentAttributesRequest setDocumentAttributesRequest = null; + String siteId = null; + SetResponse response = + api.setDocumentAttributes(documentId, setDocumentAttributesRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentDataClassificationApiTest.java b/src/test/java/com/formkiq/client/api/DocumentDataClassificationApiTest.java index b87101a31..f2a25b417 100644 --- a/src/test/java/com/formkiq/client/api/DocumentDataClassificationApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentDataClassificationApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,39 +38,41 @@ @Disabled public class DocumentDataClassificationApiTest { - private final DocumentDataClassificationApi api = new DocumentDataClassificationApi(); + private final DocumentDataClassificationApi api = new DocumentDataClassificationApi(); - /** - * Get document's data classification - * - * Retrieve an document's data classification; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentDataClassificationTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String next = null; - GetDocumentDataClassificationResponse response = api.getDocumentDataClassification(documentId, siteId, limit, next); - // TODO: test validations - } + /** + * Get document's data classification + * + * Retrieve an document's data classification; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentDataClassificationTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String next = null; + GetDocumentDataClassificationResponse response = + api.getDocumentDataClassification(documentId, siteId, limit, next); + // TODO: test validations + } - /** - * Set document's data classification - * - * Generate Data Classfication attributes within a document; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentDataClassificationTest() throws ApiException { - String documentId = null; - String siteId = null; - SetDocumentDataClassificationRequest setDocumentDataClassificationRequest = null; - SetDocumentDataClassificationResponse response = api.setDocumentDataClassification(documentId, siteId, setDocumentDataClassificationRequest); - // TODO: test validations - } + /** + * Set document's data classification + * + * Generate Data Classfication attributes within a document; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentDataClassificationTest() throws ApiException { + String documentId = null; + String siteId = null; + SetDocumentDataClassificationRequest setDocumentDataClassificationRequest = null; + SetDocumentDataClassificationResponse response = + api.setDocumentDataClassification(documentId, siteId, setDocumentDataClassificationRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentFoldersApiTest.java b/src/test/java/com/formkiq/client/api/DocumentFoldersApiTest.java index 16284d6a7..951a0ad8d 100644 --- a/src/test/java/com/formkiq/client/api/DocumentFoldersApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentFoldersApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -35,87 +42,88 @@ @Disabled public class DocumentFoldersApiTest { - private final DocumentFoldersApi api = new DocumentFoldersApi(); + private final DocumentFoldersApi api = new DocumentFoldersApi(); - /** - * Add document folder - * - * Creates a new folder - * - * @throws ApiException if the Api call fails - */ - @Test - public void addFolderTest() throws ApiException { - AddFolderRequest addFolderRequest = null; - String siteId = null; - String shareKey = null; - AddFolderResponse response = api.addFolder(addFolderRequest, siteId, shareKey); - // TODO: test validations - } + /** + * Add document folder + * + * Creates a new folder + * + * @throws ApiException if the Api call fails + */ + @Test + public void addFolderTest() throws ApiException { + AddFolderRequest addFolderRequest = null; + String siteId = null; + String shareKey = null; + AddFolderResponse response = api.addFolder(addFolderRequest, siteId, shareKey); + // TODO: test validations + } - /** - * Delete document folder - * - * Delete a specific folder; folder must be empty - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteFolderTest() throws ApiException { - String indexKey = null; - String siteId = null; - String shareKey = null; - DeleteFolderResponse response = api.deleteFolder(indexKey, siteId, shareKey); - // TODO: test validations - } + /** + * Delete document folder + * + * Delete a specific folder; folder must be empty + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteFolderTest() throws ApiException { + String indexKey = null; + String siteId = null; + String shareKey = null; + DeleteFolderResponse response = api.deleteFolder(indexKey, siteId, shareKey); + // TODO: test validations + } - /** - * Get document folders - * - * Get list of documents in a folder - * - * @throws ApiException if the Api call fails - */ - @Test - public void getFolderDocumentsTest() throws ApiException { - String siteId = null; - String indexKey = null; - String path = null; - String limit = null; - String shareKey = null; - String next = null; - GetFoldersResponse response = api.getFolderDocuments(siteId, indexKey, path, limit, shareKey, next); - // TODO: test validations - } + /** + * Get document folders + * + * Get list of documents in a folder + * + * @throws ApiException if the Api call fails + */ + @Test + public void getFolderDocumentsTest() throws ApiException { + String siteId = null; + String indexKey = null; + String path = null; + String limit = null; + String shareKey = null; + String next = null; + GetFoldersResponse response = + api.getFolderDocuments(siteId, indexKey, path, limit, shareKey, next); + // TODO: test validations + } - /** - * Get folder permissions - * - * Get list of permissions for a folder - * - * @throws ApiException if the Api call fails - */ - @Test - public void getFolderPermissionsTest() throws ApiException { - String indexKey = null; - String siteId = null; - GetFolderPermissionsResponse response = api.getFolderPermissions(indexKey, siteId); - // TODO: test validations - } + /** + * Get folder permissions + * + * Get list of permissions for a folder + * + * @throws ApiException if the Api call fails + */ + @Test + public void getFolderPermissionsTest() throws ApiException { + String indexKey = null; + String siteId = null; + GetFolderPermissionsResponse response = api.getFolderPermissions(indexKey, siteId); + // TODO: test validations + } - /** - * Sets Folder Permissions - * - * Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. - * - * @throws ApiException if the Api call fails - */ - @Test - public void setFolderPermissionsTest() throws ApiException { - SetFolderPermissionsRequest setFolderPermissionsRequest = null; - String siteId = null; - SetResponse response = api.setFolderPermissions(setFolderPermissionsRequest, siteId); - // TODO: test validations - } + /** + * Sets Folder Permissions + * + * Sets a folders permissions NOTE: Can only be called be ADMIN or GOVERN. + * + * @throws ApiException if the Api call fails + */ + @Test + public void setFolderPermissionsTest() throws ApiException { + SetFolderPermissionsRequest setFolderPermissionsRequest = null; + String siteId = null; + SetResponse response = api.setFolderPermissions(setFolderPermissionsRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentGenerationApiTest.java b/src/test/java/com/formkiq/client/api/DocumentGenerationApiTest.java index 18911bba8..a92d86a75 100644 --- a/src/test/java/com/formkiq/client/api/DocumentGenerationApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentGenerationApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,22 +38,28 @@ @Disabled public class DocumentGenerationApiTest { - private final DocumentGenerationApi api = new DocumentGenerationApi(); - - /** - * Add Document Generate - * - * Generates a new document using a specified template file and data sources. This operation allows users to merge data from multiple documents into a template to create a new document in the desired output format (e.g., DOCX). By Default data source must include a `data` object, which contains key-value pairs that will be merged into the template. The value can be any valid JSON object. { \"data\":{}}. The data path can be adjusted via the \"dataRoot\" field. ; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentGenerateTest() throws ApiException { - String documentId = null; - AddDocumentGenerateRequest addDocumentGenerateRequest = null; - String siteId = null; - AddDocumentGenerateResponse response = api.addDocumentGenerate(documentId, addDocumentGenerateRequest, siteId); - // TODO: test validations - } + private final DocumentGenerationApi api = new DocumentGenerationApi(); + + /** + * Add Document Generate + * + * Generates a new document using a specified template file and data sources. This operation + * allows users to merge data from multiple documents into a template to create a new document in + * the desired output format (e.g., DOCX). By Default data source must include a `data` + * object, which contains key-value pairs that will be merged into the template. The value can be + * any valid JSON object. { \"data\":{}}. The data path can be adjusted via the + * \"dataRoot\" field. ; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentGenerateTest() throws ApiException { + String documentId = null; + AddDocumentGenerateRequest addDocumentGenerateRequest = null; + String siteId = null; + AddDocumentGenerateResponse response = + api.addDocumentGenerate(documentId, addDocumentGenerateRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentOcrApiTest.java b/src/test/java/com/formkiq/client/api/DocumentOcrApiTest.java index 52d782c2a..740677ffb 100644 --- a/src/test/java/com/formkiq/client/api/DocumentOcrApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentOcrApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -33,72 +40,81 @@ @Disabled public class DocumentOcrApiTest { - private final DocumentOcrApi api = new DocumentOcrApi(); + private final DocumentOcrApi api = new DocumentOcrApi(); - /** - * Perform document ocr - * - * Document optical character recognition (OCR) request; extract text and data from a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentOcrTest() throws ApiException { - String documentId = null; - String siteId = null; - AddDocumentOcrRequest addDocumentOcrRequest = null; - AddDocumentOcrResponse response = api.addDocumentOcr(documentId, siteId, addDocumentOcrRequest); - // TODO: test validations - } + /** + * Perform document ocr + * + * Document optical character recognition (OCR) request; extract text and data from a document; + * Tesseract available for all editions, but Textract engine and tables and forms options + * available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentOcrTest() throws ApiException { + String documentId = null; + String siteId = null; + AddDocumentOcrRequest addDocumentOcrRequest = null; + AddDocumentOcrResponse response = api.addDocumentOcr(documentId, siteId, addDocumentOcrRequest); + // TODO: test validations + } - /** - * Delete document ocr - * - * Delete a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentOcrTest() throws ApiException { - String documentId = null; - String siteId = null; - DeleteResponse response = api.deleteDocumentOcr(documentId, siteId); - // TODO: test validations - } + /** + * Delete document ocr + * + * Delete a document's optical character recognition (OCR) result, if exists; Tesseract + * available for all editions, but Textract engine and tables and forms options available as an + * Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentOcrTest() throws ApiException { + String documentId = null; + String siteId = null; + DeleteResponse response = api.deleteDocumentOcr(documentId, siteId); + // TODO: test validations + } - /** - * Get document ocr content - * - * Get a document's optical character recognition (OCR) result, if exists; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentOcrTest() throws ApiException { - String documentId = null; - String siteId = null; - String outputType = null; - String contentUrl = null; - String text = null; - String shareKey = null; - GetDocumentOcrResponse response = api.getDocumentOcr(documentId, siteId, outputType, contentUrl, text, shareKey); - // TODO: test validations - } + /** + * Get document ocr content + * + * Get a document's optical character recognition (OCR) result, if exists; Tesseract available + * for all editions, but Textract engine and tables and forms options available as an Add-On + * Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentOcrTest() throws ApiException { + String documentId = null; + String siteId = null; + String outputType = null; + String contentUrl = null; + String text = null; + String shareKey = null; + GetDocumentOcrResponse response = + api.getDocumentOcr(documentId, siteId, outputType, contentUrl, text, shareKey); + // TODO: test validations + } - /** - * Set document ocr result - * - * Set a document's optical character recognition (OCR) result for a document; Tesseract available for all editions, but Textract engine and tables and forms options available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentOcrTest() throws ApiException { - String documentId = null; - String siteId = null; - SetDocumentOcrRequest setDocumentOcrRequest = null; - AddDocumentOcrResponse response = api.setDocumentOcr(documentId, siteId, setDocumentOcrRequest); - // TODO: test validations - } + /** + * Set document ocr result + * + * Set a document's optical character recognition (OCR) result for a document; Tesseract + * available for all editions, but Textract engine and tables and forms options available as an + * Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentOcrTest() throws ApiException { + String documentId = null; + String siteId = null; + SetDocumentOcrRequest setDocumentOcrRequest = null; + AddDocumentOcrResponse response = api.setDocumentOcr(documentId, siteId, setDocumentOcrRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentSearchApiTest.java b/src/test/java/com/formkiq/client/api/DocumentSearchApiTest.java index 13bed77d0..abfa60c8d 100644 --- a/src/test/java/com/formkiq/client/api/DocumentSearchApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentSearchApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,24 +37,32 @@ @Disabled public class DocumentSearchApiTest { - private final DocumentSearchApi api = new DocumentSearchApi(); - - /** - * Document search - * - * Document search query request; Supports searching DynamoDB for document(s) by a single TAG key and/or value. Value can be \"exacted\" or \"begins_with\" matched. Search can be filtered to only check certain documentIds (up to 100 documentIds accepted). If using Enteprise Composite Keys feature then multiple tag(s) can be searched for. If Typesense is enabled, full text search is supported through the \"text\" parameter. Full text search will look for the text in the \"content\" and/or document \"metadata\". DocumentIds parameter allows you to filter your results to a specific set of documents. See requestBody examples below for commmon examples. - * - * @throws ApiException if the Api call fails - */ - @Test - public void documentSearchTest() throws ApiException { - DocumentSearchRequest documentSearchRequest = null; - String siteId = null; - String limit = null; - String next = null; - String previous = null; - DocumentSearchResponse response = api.documentSearch(documentSearchRequest, siteId, limit, next, previous); - // TODO: test validations - } + private final DocumentSearchApi api = new DocumentSearchApi(); + + /** + * Document search + * + * Document search query request; Supports searching DynamoDB for document(s) by a single TAG key + * and/or value. Value can be \"exacted\" or \"begins_with\" matched. Search + * can be filtered to only check certain documentIds (up to 100 documentIds accepted). If using + * Enteprise Composite Keys feature then multiple tag(s) can be searched for. If Typesense is + * enabled, full text search is supported through the \"text\" parameter. Full text + * search will look for the text in the \"content\" and/or document + * \"metadata\". DocumentIds parameter allows you to filter your results to a specific + * set of documents. See requestBody examples below for commmon examples. + * + * @throws ApiException if the Api call fails + */ + @Test + public void documentSearchTest() throws ApiException { + DocumentSearchRequest documentSearchRequest = null; + String siteId = null; + String limit = null; + String next = null; + String previous = null; + DocumentSearchResponse response = + api.documentSearch(documentSearchRequest, siteId, limit, next, previous); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentSharesApiTest.java b/src/test/java/com/formkiq/client/api/DocumentSharesApiTest.java index 18eecb8ca..032bd9af2 100644 --- a/src/test/java/com/formkiq/client/api/DocumentSharesApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentSharesApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -33,52 +40,52 @@ @Disabled public class DocumentSharesApiTest { - private final DocumentSharesApi api = new DocumentSharesApi(); + private final DocumentSharesApi api = new DocumentSharesApi(); - /** - * Add folder share - * - * Creates a new folder share; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addFolderShareTest() throws ApiException { - String indexKey = null; - AddFolderShareRequest addFolderShareRequest = null; - String siteId = null; - AddFolderShareResponse response = api.addFolderShare(indexKey, addFolderShareRequest, siteId); - // TODO: test validations - } + /** + * Add folder share + * + * Creates a new folder share; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addFolderShareTest() throws ApiException { + String indexKey = null; + AddFolderShareRequest addFolderShareRequest = null; + String siteId = null; + AddFolderShareResponse response = api.addFolderShare(indexKey, addFolderShareRequest, siteId); + // TODO: test validations + } - /** - * Delete folder share - * - * Delete a specific document share; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteShareTest() throws ApiException { - String shareKey = null; - DeleteShareResponse response = api.deleteShare(shareKey); - // TODO: test validations - } + /** + * Delete folder share + * + * Delete a specific document share; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteShareTest() throws ApiException { + String shareKey = null; + DeleteShareResponse response = api.deleteShare(shareKey); + // TODO: test validations + } - /** - * Get user shared folders - * - * Get a listing of user folder/document shares; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUserSharesTest() throws ApiException { - String group = null; - String limit = null; - String next = null; - GetUserSharesResponse response = api.getUserShares(group, limit, next); - // TODO: test validations - } + /** + * Get user shared folders + * + * Get a listing of user folder/document shares; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUserSharesTest() throws ApiException { + String group = null; + String limit = null; + String next = null; + GetUserSharesResponse response = api.getUserShares(group, limit, next); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentTagsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentTagsApiTest.java index 410229318..5e4a4b9f0 100644 --- a/src/test/java/com/formkiq/client/api/DocumentTagsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentTagsApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -36,156 +43,165 @@ @Disabled public class DocumentTagsApiTest { - private final DocumentTagsApi api = new DocumentTagsApi(); - - /** - * Add tag to document - * - * Add multiple tags to a document; this endpoint also accepts a different body parameter for adding a single tag - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentTagsTest() throws ApiException { - String documentId = null; - AddDocumentTagsRequest addDocumentTagsRequest = null; - String siteId = null; - AddResponse response = api.addDocumentTags(documentId, addDocumentTagsRequest, siteId); - // TODO: test validations - } - - /** - * Delete document tag - * - * Delete a document tag by using its key - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentTagTest() throws ApiException { - String documentId = null; - String tagKey = null; - String siteId = null; - DeleteResponse response = api.deleteDocumentTag(documentId, tagKey, siteId); - // TODO: test validations - } - - /** - * Delete document's tag value - * - * Delete a specific document tag's key/value combination; the request will be ignored if there is no valid key/value combination found - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentTagAndValueTest() throws ApiException { - String documentId = null; - String tagKey = null; - String tagValue = null; - String siteId = null; - String shareKey = null; - DeleteResponse response = api.deleteDocumentTagAndValue(documentId, tagKey, tagValue, siteId, shareKey); - // TODO: test validations - } - - /** - * Get document tag by key - * - * Get a document tag by using its key - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentTagTest() throws ApiException { - String documentId = null; - String tagKey = null; - String siteId = null; - String shareKey = null; - GetDocumentTagResponse response = api.getDocumentTag(documentId, tagKey, siteId, shareKey); - // TODO: test validations - } - - /** - * Get document's tags - * - * Get a listing of a document's tags - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentTagsTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String shareKey = null; - String next = null; - String previous = null; - GetDocumentTagsResponse response = api.getDocumentTags(documentId, siteId, limit, shareKey, next, previous); - // TODO: test validations - } - - /** - * Update document tag value(s) - * - * Update any and all values of a document tag, by using its key; you can supply one tag value or a list of tag values in the request body - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentTagTest() throws ApiException { - String documentId = null; - String tagKey = null; - SetDocumentTagKeyRequest setDocumentTagKeyRequest = null; - String siteId = null; - api.setDocumentTag(documentId, tagKey, setDocumentTagKeyRequest, siteId); - // TODO: test validations - } - - /** - * Set document's tags - * - * Set multiple tags to a document; this endpoint also accepts a different body parameter for setting a single tag - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentTagsTest() throws ApiException { - String documentId = null; - AddDocumentTagsRequest addDocumentTagsRequest = null; - String siteId = null; - api.setDocumentTags(documentId, addDocumentTagsRequest, siteId); - // TODO: test validations - } - - /** - * Update document tags - * - * Updates multiple tags to a document; this endpoint also accepts a different body parameter for updating a single tag - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateDocumentTagsTest() throws ApiException { - String documentId = null; - AddDocumentTagsRequest addDocumentTagsRequest = null; - String siteId = null; - api.updateDocumentTags(documentId, addDocumentTagsRequest, siteId); - // TODO: test validations - } - - /** - * Mass Update document tag(s) - * - * This API request allows the adding/updating of multiple document tag(s) based on document(s) that have the matching tag. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateMatchingDocumentTagsTest() throws ApiException { - UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest = null; - String siteId = null; - UpdateMatchingDocumentTagsResponse response = api.updateMatchingDocumentTags(updateMatchingDocumentTagsRequest, siteId); - // TODO: test validations - } + private final DocumentTagsApi api = new DocumentTagsApi(); + + /** + * Add tag to document + * + * Add multiple tags to a document; this endpoint also accepts a different body parameter for + * adding a single tag + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentTagsTest() throws ApiException { + String documentId = null; + AddDocumentTagsRequest addDocumentTagsRequest = null; + String siteId = null; + AddResponse response = api.addDocumentTags(documentId, addDocumentTagsRequest, siteId); + // TODO: test validations + } + + /** + * Delete document tag + * + * Delete a document tag by using its key + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentTagTest() throws ApiException { + String documentId = null; + String tagKey = null; + String siteId = null; + DeleteResponse response = api.deleteDocumentTag(documentId, tagKey, siteId); + // TODO: test validations + } + + /** + * Delete document's tag value + * + * Delete a specific document tag's key/value combination; the request will be ignored if + * there is no valid key/value combination found + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentTagAndValueTest() throws ApiException { + String documentId = null; + String tagKey = null; + String tagValue = null; + String siteId = null; + String shareKey = null; + DeleteResponse response = + api.deleteDocumentTagAndValue(documentId, tagKey, tagValue, siteId, shareKey); + // TODO: test validations + } + + /** + * Get document tag by key + * + * Get a document tag by using its key + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentTagTest() throws ApiException { + String documentId = null; + String tagKey = null; + String siteId = null; + String shareKey = null; + GetDocumentTagResponse response = api.getDocumentTag(documentId, tagKey, siteId, shareKey); + // TODO: test validations + } + + /** + * Get document's tags + * + * Get a listing of a document's tags + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentTagsTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String shareKey = null; + String next = null; + String previous = null; + GetDocumentTagsResponse response = + api.getDocumentTags(documentId, siteId, limit, shareKey, next, previous); + // TODO: test validations + } + + /** + * Update document tag value(s) + * + * Update any and all values of a document tag, by using its key; you can supply one tag value or + * a list of tag values in the request body + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentTagTest() throws ApiException { + String documentId = null; + String tagKey = null; + SetDocumentTagKeyRequest setDocumentTagKeyRequest = null; + String siteId = null; + api.setDocumentTag(documentId, tagKey, setDocumentTagKeyRequest, siteId); + // TODO: test validations + } + + /** + * Set document's tags + * + * Set multiple tags to a document; this endpoint also accepts a different body parameter for + * setting a single tag + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentTagsTest() throws ApiException { + String documentId = null; + AddDocumentTagsRequest addDocumentTagsRequest = null; + String siteId = null; + api.setDocumentTags(documentId, addDocumentTagsRequest, siteId); + // TODO: test validations + } + + /** + * Update document tags + * + * Updates multiple tags to a document; this endpoint also accepts a different body parameter for + * updating a single tag + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateDocumentTagsTest() throws ApiException { + String documentId = null; + AddDocumentTagsRequest addDocumentTagsRequest = null; + String siteId = null; + api.updateDocumentTags(documentId, addDocumentTagsRequest, siteId); + // TODO: test validations + } + + /** + * Mass Update document tag(s) + * + * This API request allows the adding/updating of multiple document tag(s) based on document(s) + * that have the matching tag. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateMatchingDocumentTagsTest() throws ApiException { + UpdateMatchingDocumentTagsRequest updateMatchingDocumentTagsRequest = null; + String siteId = null; + UpdateMatchingDocumentTagsResponse response = + api.updateMatchingDocumentTags(updateMatchingDocumentTagsRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentVersionsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentVersionsApiTest.java index 8531ab450..97168ac87 100644 --- a/src/test/java/com/formkiq/client/api/DocumentVersionsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentVersionsApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -33,57 +40,59 @@ @Disabled public class DocumentVersionsApiTest { - private final DocumentVersionsApi api = new DocumentVersionsApi(); + private final DocumentVersionsApi api = new DocumentVersionsApi(); - /** - * Delete document version - * - * Delete a specific previous document version; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentVersionTest() throws ApiException { - String documentId = null; - String versionKey = null; - String siteId = null; - String shareKey = null; - DeleteResponse response = api.deleteDocumentVersion(documentId, versionKey, siteId, shareKey); - // TODO: test validations - } + /** + * Delete document version + * + * Delete a specific previous document version; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentVersionTest() throws ApiException { + String documentId = null; + String versionKey = null; + String siteId = null; + String shareKey = null; + DeleteResponse response = api.deleteDocumentVersion(documentId, versionKey, siteId, shareKey); + // TODO: test validations + } - /** - * Get document's versions - * - * Get a listing of document content and metadata versions; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentVersionsTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String shareKey = null; - String next = null; - GetDocumentVersionsResponse response = api.getDocumentVersions(documentId, siteId, limit, shareKey, next); - // TODO: test validations - } + /** + * Get document's versions + * + * Get a listing of document content and metadata versions; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentVersionsTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String shareKey = null; + String next = null; + GetDocumentVersionsResponse response = + api.getDocumentVersions(documentId, siteId, limit, shareKey, next); + // TODO: test validations + } - /** - * Set version of document - * - * Set document to a previous document version; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentVersionTest() throws ApiException { - String documentId = null; - SetDocumentVersionRequest setDocumentVersionRequest = null; - String siteId = null; - SetDocumentVersionResponse response = api.setDocumentVersion(documentId, setDocumentVersionRequest, siteId); - // TODO: test validations - } + /** + * Set version of document + * + * Set document to a previous document version; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentVersionTest() throws ApiException { + String documentId = null; + SetDocumentVersionRequest setDocumentVersionRequest = null; + String siteId = null; + SetDocumentVersionResponse response = + api.setDocumentVersion(documentId, setDocumentVersionRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentWorkflowsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentWorkflowsApiTest.java index 24c8ee5a8..0f77526d0 100644 --- a/src/test/java/com/formkiq/client/api/DocumentWorkflowsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentWorkflowsApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -51,259 +58,263 @@ @Disabled public class DocumentWorkflowsApiTest { - private final DocumentWorkflowsApi api = new DocumentWorkflowsApi(); + private final DocumentWorkflowsApi api = new DocumentWorkflowsApi(); - /** - * Add document workflow - * - * Creates a document workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentWorkflowTest() throws ApiException { - String documentId = null; - AddDocumentWorkflowRequest addDocumentWorkflowRequest = null; - String siteId = null; - AddDocumentWorkflowResponse response = api.addDocumentWorkflow(documentId, addDocumentWorkflowRequest, siteId); - // TODO: test validations - } + /** + * Add document workflow + * + * Creates a document workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentWorkflowTest() throws ApiException { + String documentId = null; + AddDocumentWorkflowRequest addDocumentWorkflowRequest = null; + String siteId = null; + AddDocumentWorkflowResponse response = + api.addDocumentWorkflow(documentId, addDocumentWorkflowRequest, siteId); + // TODO: test validations + } - /** - * Approve/Reject document in approval queue - * - * Approve/Reject document in approval queue; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentWorkflowDecisionsTest() throws ApiException { - String documentId = null; - String workflowId = null; - AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest = null; - String siteId = null; - AddDocumentWorkflowDecisionsResponse response = api.addDocumentWorkflowDecisions(documentId, workflowId, addDocumentWorkflowDecisionsRequest, siteId); - // TODO: test validations - } + /** + * Approve/Reject document in approval queue + * + * Approve/Reject document in approval queue; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentWorkflowDecisionsTest() throws ApiException { + String documentId = null; + String workflowId = null; + AddDocumentWorkflowDecisionsRequest addDocumentWorkflowDecisionsRequest = null; + String siteId = null; + AddDocumentWorkflowDecisionsResponse response = api.addDocumentWorkflowDecisions(documentId, + workflowId, addDocumentWorkflowDecisionsRequest, siteId); + // TODO: test validations + } - /** - * Add queue - * - * Creates a new Queue; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addQueueTest() throws ApiException { - AddQueueRequest addQueueRequest = null; - String siteId = null; - AddQueueResponse response = api.addQueue(addQueueRequest, siteId); - // TODO: test validations - } + /** + * Add queue + * + * Creates a new Queue; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addQueueTest() throws ApiException { + AddQueueRequest addQueueRequest = null; + String siteId = null; + AddQueueResponse response = api.addQueue(addQueueRequest, siteId); + // TODO: test validations + } - /** - * Add workflow - * - * Creates a new Workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addWorkflowTest() throws ApiException { - AddWorkflowRequest addWorkflowRequest = null; - String siteId = null; - AddWorkflowResponse response = api.addWorkflow(addWorkflowRequest, siteId); - // TODO: test validations - } + /** + * Add workflow + * + * Creates a new Workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addWorkflowTest() throws ApiException { + AddWorkflowRequest addWorkflowRequest = null; + String siteId = null; + AddWorkflowResponse response = api.addWorkflow(addWorkflowRequest, siteId); + // TODO: test validations + } - /** - * Delete queue - * - * Delete a Queue; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteQueueTest() throws ApiException { - String queueId = null; - String siteId = null; - DeleteQueueResponse response = api.deleteQueue(queueId, siteId); - // TODO: test validations - } + /** + * Delete queue + * + * Delete a Queue; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteQueueTest() throws ApiException { + String queueId = null; + String siteId = null; + DeleteQueueResponse response = api.deleteQueue(queueId, siteId); + // TODO: test validations + } - /** - * Delete workflow - * - * Delete a Workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteWorkflowTest() throws ApiException { - String workflowId = null; - String siteId = null; - DeleteWorkflowResponse response = api.deleteWorkflow(workflowId, siteId); - // TODO: test validations - } + /** + * Delete workflow + * + * Delete a Workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteWorkflowTest() throws ApiException { + String workflowId = null; + String siteId = null; + DeleteWorkflowResponse response = api.deleteWorkflow(workflowId, siteId); + // TODO: test validations + } - /** - * Get document workflow - * - * Gets a document workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentWorkflowTest() throws ApiException { - String documentId = null; - String workflowId = null; - String siteId = null; - GetDocumentWorkflowResponse response = api.getDocumentWorkflow(documentId, workflowId, siteId); - // TODO: test validations - } + /** + * Get document workflow + * + * Gets a document workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentWorkflowTest() throws ApiException { + String documentId = null; + String workflowId = null; + String siteId = null; + GetDocumentWorkflowResponse response = api.getDocumentWorkflow(documentId, workflowId, siteId); + // TODO: test validations + } - /** - * Get document workflows - * - * Gets a document workflows; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentWorkflowsTest() throws ApiException { - String documentId = null; - String siteId = null; - GetDocumentWorkflowsResponse response = api.getDocumentWorkflows(documentId, siteId); - // TODO: test validations - } + /** + * Get document workflows + * + * Gets a document workflows; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentWorkflowsTest() throws ApiException { + String documentId = null; + String siteId = null; + GetDocumentWorkflowsResponse response = api.getDocumentWorkflows(documentId, siteId); + // TODO: test validations + } - /** - * Get queue - * - * Get a queue; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getQueueTest() throws ApiException { - String queueId = null; - String siteId = null; - GetQueueResponse response = api.getQueue(queueId, siteId); - // TODO: test validations - } + /** + * Get queue + * + * Get a queue; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getQueueTest() throws ApiException { + String queueId = null; + String siteId = null; + GetQueueResponse response = api.getQueue(queueId, siteId); + // TODO: test validations + } - /** - * Get queues - * - * Get a listing of queues; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getQueuesTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetQueuesResponse response = api.getQueues(siteId, next, limit); - // TODO: test validations - } + /** + * Get queues + * + * Get a listing of queues; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getQueuesTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetQueuesResponse response = api.getQueues(siteId, next, limit); + // TODO: test validations + } - /** - * Get workflow - * - * Get a workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWorkflowTest() throws ApiException { - String workflowId = null; - String siteId = null; - GetWorkflowResponse response = api.getWorkflow(workflowId, siteId); - // TODO: test validations - } + /** + * Get workflow + * + * Get a workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWorkflowTest() throws ApiException { + String workflowId = null; + String siteId = null; + GetWorkflowResponse response = api.getWorkflow(workflowId, siteId); + // TODO: test validations + } - /** - * Get list of documents in workflow - * - * List documents in Workflow; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWorkflowDocumentsTest() throws ApiException { - String workflowId = null; - String siteId = null; - String limit = null; - String next = null; - GetWorkflowDocumentsResponse response = api.getWorkflowDocuments(workflowId, siteId, limit, next); - // TODO: test validations - } + /** + * Get list of documents in workflow + * + * List documents in Workflow; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWorkflowDocumentsTest() throws ApiException { + String workflowId = null; + String siteId = null; + String limit = null; + String next = null; + GetWorkflowDocumentsResponse response = + api.getWorkflowDocuments(workflowId, siteId, limit, next); + // TODO: test validations + } - /** - * Get list of documents in queue - * - * List documents in Workflow Queue; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWorkflowQueueDocumentsTest() throws ApiException { - String queueId = null; - String siteId = null; - String limit = null; - String next = null; - GetWorkflowQueueDocumentsResponse response = api.getWorkflowQueueDocuments(queueId, siteId, limit, next); - // TODO: test validations - } + /** + * Get list of documents in queue + * + * List documents in Workflow Queue; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWorkflowQueueDocumentsTest() throws ApiException { + String queueId = null; + String siteId = null; + String limit = null; + String next = null; + GetWorkflowQueueDocumentsResponse response = + api.getWorkflowQueueDocuments(queueId, siteId, limit, next); + // TODO: test validations + } - /** - * Get workflows - * - * Get a listing of workflows; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWorkflowsTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - String status = null; - GetWorkflowsResponse response = api.getWorkflows(siteId, next, limit, status); - // TODO: test validations - } + /** + * Get workflows + * + * Get a listing of workflows; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWorkflowsTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + String status = null; + GetWorkflowsResponse response = api.getWorkflows(siteId, next, limit, status); + // TODO: test validations + } - /** - * Set workflow - * - * Set a Workflow details; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setWorkflowTest() throws ApiException { - String workflowId = null; - SetWorkflowRequest setWorkflowRequest = null; - String siteId = null; - SetWorkflowResponse response = api.setWorkflow(workflowId, setWorkflowRequest, siteId); - // TODO: test validations - } + /** + * Set workflow + * + * Set a Workflow details; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setWorkflowTest() throws ApiException { + String workflowId = null; + SetWorkflowRequest setWorkflowRequest = null; + String siteId = null; + SetWorkflowResponse response = api.setWorkflow(workflowId, setWorkflowRequest, siteId); + // TODO: test validations + } - /** - * Update workflow - * - * Update a Workflow details; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateWorkflowTest() throws ApiException { - String workflowId = null; - UpdateWorkflowRequest updateWorkflowRequest = null; - String siteId = null; - UpdateWorkflowResponse response = api.updateWorkflow(workflowId, updateWorkflowRequest, siteId); - // TODO: test validations - } + /** + * Update workflow + * + * Update a Workflow details; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateWorkflowTest() throws ApiException { + String workflowId = null; + UpdateWorkflowRequest updateWorkflowRequest = null; + String siteId = null; + UpdateWorkflowResponse response = api.updateWorkflow(workflowId, updateWorkflowRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/DocumentsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentsApiTest.java index 295019509..753f8d281 100644 --- a/src/test/java/com/formkiq/client/api/DocumentsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentsApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -45,341 +52,382 @@ @Disabled public class DocumentsApiTest { - private final DocumentsApi api = new DocumentsApi(); + private final DocumentsApi api = new DocumentsApi(); - /** - * Add new document - * - * Creates a new document; body may include document content if less than 5 MB. Returns a unique **documentId** used in subsequent operations. See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentTest() throws ApiException { - AddDocumentRequest addDocumentRequest = null; - String siteId = null; - String shareKey = null; - AddDocumentResponse response = api.addDocument(addDocumentRequest, siteId, shareKey); - // TODO: test validations - } + /** + * Add new document + * + * Creates a new document; body may include document content if less than 5 MB. Returns a unique + * **documentId** used in subsequent operations. See POST /documents/{documentId}/tags for adding + * tags to document schema See POST /documents/{documentId}/actions for adding actions to document + * schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentTest() throws ApiException { + AddDocumentRequest addDocumentRequest = null; + String siteId = null; + String shareKey = null; + AddDocumentResponse response = api.addDocument(addDocumentRequest, siteId, shareKey); + // TODO: test validations + } - /** - * Add document sync to service - * - * Add a document to a service - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentSyncTest() throws ApiException { - String documentId = null; - String siteId = null; - AddDocumentSyncRequest addDocumentSyncRequest = null; - AddResponse response = api.addDocumentSync(documentId, siteId, addDocumentSyncRequest); - // TODO: test validations - } + /** + * Add document sync to service + * + * Add a document to a service + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentSyncTest() throws ApiException { + String documentId = null; + String siteId = null; + AddDocumentSyncRequest addDocumentSyncRequest = null; + AddResponse response = api.addDocumentSync(documentId, siteId, addDocumentSyncRequest); + // TODO: test validations + } - /** - * Add large document - * - * Returns a URL that can be used to upload document content and create a new document, while allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata at the same time as the document is created. - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocumentUploadTest() throws ApiException { - AddDocumentUploadRequest addDocumentUploadRequest = null; - String siteId = null; - Integer contentLength = null; - Integer duration = null; - String shareKey = null; - GetDocumentUrlResponse response = api.addDocumentUpload(addDocumentUploadRequest, siteId, contentLength, duration, shareKey); - // TODO: test validations - } + /** + * Add large document + * + * Returns a URL that can be used to upload document content and create a new document, while + * allowing metadata to also be sent; this endpoint (whether GET or POST) is required in order to + * add content that is larger than 5 MB. The POST endpoint allow the adding of document metadata + * at the same time as the document is created. + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocumentUploadTest() throws ApiException { + AddDocumentUploadRequest addDocumentUploadRequest = null; + String siteId = null; + Integer contentLength = null; + Integer duration = null; + String shareKey = null; + GetDocumentUrlResponse response = + api.addDocumentUpload(addDocumentUploadRequest, siteId, contentLength, duration, shareKey); + // TODO: test validations + } - /** - * Compress multiple documents into a .zip file - * - * Compress documents into an .ZIP archive file, and returns a S3 presigned url for the location of the archive file. The operation is async and processing time depends on the number and size of documents included; a 404 status code is returned until the file is ready. - * - * @throws ApiException if the Api call fails - */ - @Test - public void compressDocumentsTest() throws ApiException { - DocumentsCompressRequest documentsCompressRequest = null; - String siteId = null; - DocumentsCompressResponse response = api.compressDocuments(documentsCompressRequest, siteId); - // TODO: test validations - } + /** + * Compress multiple documents into a .zip file + * + * Compress documents into an .ZIP archive file, and returns a S3 presigned url for the location + * of the archive file. The operation is async and processing time depends on the number and size + * of documents included; a 404 status code is returned until the file is ready. + * + * @throws ApiException if the Api call fails + */ + @Test + public void compressDocumentsTest() throws ApiException { + DocumentsCompressRequest documentsCompressRequest = null; + String siteId = null; + DocumentsCompressResponse response = api.compressDocuments(documentsCompressRequest, siteId); + // TODO: test validations + } - /** - * Delete document - * - * Delete a document's details, i.e., metadata, contents, etc SoftDelete: The SoftDelete parameter allows for the temporary removal of a document's metadata, attributes, etc from being retrieved from all API requests. The document can be permanently deleted by calling the DELETE /documents/{documentId} with softDelete=false or restored using the PUT /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the soft deleted documents. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentTest() throws ApiException { - String documentId = null; - String siteId = null; - Boolean softDelete = null; - DeleteResponse response = api.deleteDocument(documentId, siteId, softDelete); - // TODO: test validations - } + /** + * Delete document + * + * Delete a document's details, i.e., metadata, contents, etc SoftDelete: The SoftDelete + * parameter allows for the temporary removal of a document's metadata, attributes, etc from + * being retrieved from all API requests. The document can be permanently deleted by calling the + * DELETE /documents/{documentId} with softDelete=false or restored using the PUT + * /documents/{documentId}/restore. Only the GET /documents?deleted=true will return all the + * soft deleted documents. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentTest() throws ApiException { + String documentId = null; + String siteId = null; + Boolean softDelete = null; + DeleteResponse response = api.deleteDocument(documentId, siteId, softDelete); + // TODO: test validations + } - /** - * Delete document legal hold checkout - * - * Removes a legal hold checkout for the document; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteDocumentCheckoutLegalHoldTest() throws ApiException { - String documentId = null; - String siteId = null; - DeleteResponse response = api.deleteDocumentCheckoutLegalHold(documentId, siteId); - // TODO: test validations - } + /** + * Delete document legal hold checkout + * + * Removes a legal hold checkout for the document; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteDocumentCheckoutLegalHoldTest() throws ApiException { + String documentId = null; + String siteId = null; + DeleteResponse response = api.deleteDocumentCheckoutLegalHold(documentId, siteId); + // TODO: test validations + } - /** - * Delete published document's contents - * - * Delete a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deletePublishedDocumentContentTest() throws ApiException { - String documentId = null; - String siteId = null; - DeleteResponse response = api.deletePublishedDocumentContent(documentId, siteId); - // TODO: test validations - } + /** + * Delete published document's contents + * + * Delete a published document's contents. Certain content types, text/_*, application/json, + * and application/x-www-form-urlencoded. return the \"content\" field, while all other + * content types return a 'contentUrl' for retrieving the content. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deletePublishedDocumentContentTest() throws ApiException { + String documentId = null; + String siteId = null; + DeleteResponse response = api.deletePublishedDocumentContent(documentId, siteId); + // TODO: test validations + } - /** - * Get document - * - * Retrieves a document's details, i.e., metadata - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentTest() throws ApiException { - String documentId = null; - String siteId = null; - String shareKey = null; - GetDocumentResponse response = api.getDocument(documentId, siteId, shareKey); - // TODO: test validations - } + /** + * Get document + * + * Retrieves a document's details, i.e., metadata + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentTest() throws ApiException { + String documentId = null; + String siteId = null; + String shareKey = null; + GetDocumentResponse response = api.getDocument(documentId, siteId, shareKey); + // TODO: test validations + } - /** - * Get document's contents - * - * Retrieves the content of the document with the specified `documentId`. - If the content is plain text and under 6 MB, the content will be returned directly. - If the content is plain text but exceeds 6 MB, an error will be returned. - For documents not in plain text format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended to use the `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for downloading the content. If the document has a Content-Type of text/, application/json, application/x-www-form-urlencoded the content field will be returned. All other Content-Type, the contentUrl field will be returned, which is a S3 Presigned url. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentContentTest() throws ApiException { - String documentId = null; - String siteId = null; - String versionKey = null; - String shareKey = null; - GetDocumentContentResponse response = api.getDocumentContent(documentId, siteId, versionKey, shareKey); - // TODO: test validations - } + /** + * Get document's contents + * + * Retrieves the content of the document with the specified `documentId`. - If the + * content is plain text and under 6 MB, the content will be returned directly. - If the content + * is plain text but exceeds 6 MB, an error will be returned. - For documents not in plain text + * format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended + * to use the `/documents/{documentId}/url` endpoint to retrieve pre-signed S3 URLs for + * downloading the content. If the document has a Content-Type of text/, application/json, + * application/x-www-form-urlencoded the content field will be returned. All other Content-Type, + * the contentUrl field will be returned, which is a S3 Presigned url. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentContentTest() throws ApiException { + String documentId = null; + String siteId = null; + String versionKey = null; + String shareKey = null; + GetDocumentContentResponse response = + api.getDocumentContent(documentId, siteId, versionKey, shareKey); + // TODO: test validations + } - /** - * Get url to update large document - * - * Returns a URL that can be used to upload documents for a specific documentId; this endpoint is required in order to add content that is larger than 5 MB. If versions are enabled, this will create a new version of the document. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentIdUploadTest() throws ApiException { - String documentId = null; - String siteId = null; - String checksumType = null; - String checksum = null; - Integer contentLength = null; - Integer duration = null; - String shareKey = null; - GetDocumentUrlResponse response = api.getDocumentIdUpload(documentId, siteId, checksumType, checksum, contentLength, duration, shareKey); - // TODO: test validations - } + /** + * Get url to update large document + * + * Returns a URL that can be used to upload documents for a specific documentId; this endpoint is + * required in order to add content that is larger than 5 MB. If versions are enabled, this will + * create a new version of the document. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentIdUploadTest() throws ApiException { + String documentId = null; + String siteId = null; + String checksumType = null; + String checksum = null; + Integer contentLength = null; + Integer duration = null; + String shareKey = null; + GetDocumentUrlResponse response = api.getDocumentIdUpload(documentId, siteId, checksumType, + checksum, contentLength, duration, shareKey); + // TODO: test validations + } - /** - * Get document syncs - * - * Retrieve the document syncs with external services status - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentSyncsTest() throws ApiException { - String documentId = null; - String siteId = null; - String limit = null; - String shareKey = null; - GetDocumentSyncResponse response = api.getDocumentSyncs(documentId, siteId, limit, shareKey); - // TODO: test validations - } + /** + * Get document syncs + * + * Retrieve the document syncs with external services status + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentSyncsTest() throws ApiException { + String documentId = null; + String siteId = null; + String limit = null; + String shareKey = null; + GetDocumentSyncResponse response = api.getDocumentSyncs(documentId, siteId, limit, shareKey); + // TODO: test validations + } - /** - * Get url to add large document - * - * Returns a URL that can be used to upload document content and create a new document; this endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentUploadTest() throws ApiException { - String path = null; - String siteId = null; - String checksumType = null; - String checksum = null; - Integer contentLength = null; - Integer duration = null; - String shareKey = null; - GetDocumentUrlResponse response = api.getDocumentUpload(path, siteId, checksumType, checksum, contentLength, duration, shareKey); - // TODO: test validations - } + /** + * Get url to add large document + * + * Returns a URL that can be used to upload document content and create a new document; this + * endpoint (whether GET or POST) is required in order to add content that is larger than 5 MB + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentUploadTest() throws ApiException { + String path = null; + String siteId = null; + String checksumType = null; + String checksum = null; + Integer contentLength = null; + Integer duration = null; + String shareKey = null; + GetDocumentUrlResponse response = api.getDocumentUpload(path, siteId, checksumType, checksum, + contentLength, duration, shareKey); + // TODO: test validations + } - /** - * Get document content url - * - * Returns a URL for the document's contents; this URL will expire (the default is 48 hours) - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentUrlTest() throws ApiException { - String documentId = null; - String siteId = null; - String versionKey = null; - Integer duration = null; - String shareKey = null; - Boolean inline = null; - Boolean bypassWatermark = null; - GetDocumentUrlResponse response = api.getDocumentUrl(documentId, siteId, versionKey, duration, shareKey, inline, bypassWatermark); - // TODO: test validations - } + /** + * Get document content url + * + * Returns a URL for the document's contents; this URL will expire (the default is 48 hours) + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentUrlTest() throws ApiException { + String documentId = null; + String siteId = null; + String versionKey = null; + Integer duration = null; + String shareKey = null; + Boolean inline = null; + Boolean bypassWatermark = null; + GetDocumentUrlResponse response = api.getDocumentUrl(documentId, siteId, versionKey, duration, + shareKey, inline, bypassWatermark); + // TODO: test validations + } - /** - * Get Documents listing - * - * Returns a list of the most recent documents added, ordered by inserted, descending - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentsTest() throws ApiException { - String siteId = null; - String actionStatus = null; - String syncStatus = null; - Boolean deleted = null; - String date = null; - String tz = null; - String next = null; - String previous = null; - String limit = null; - GetDocumentsResponse response = api.getDocuments(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit); - // TODO: test validations - } + /** + * Get Documents listing + * + * Returns a list of the most recent documents added, ordered by inserted, descending + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentsTest() throws ApiException { + String siteId = null; + String actionStatus = null; + String syncStatus = null; + Boolean deleted = null; + String date = null; + String tz = null; + String next = null; + String previous = null; + String limit = null; + GetDocumentsResponse response = api.getDocuments(siteId, actionStatus, syncStatus, deleted, + date, tz, next, previous, limit); + // TODO: test validations + } - /** - * Get published document's contents - * - * Get a published document's contents. Certain content types, text/_*, application/json, and application/x-www-form-urlencoded. return the \"content\" field, while all other content types return a 'contentUrl' for retrieving the content. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getPublishedDocumentContentTest() throws ApiException { - String documentId = null; - String siteId = null; - api.getPublishedDocumentContent(documentId, siteId); - // TODO: test validations - } + /** + * Get published document's contents + * + * Get a published document's contents. Certain content types, text/_*, application/json, and + * application/x-www-form-urlencoded. return the \"content\" field, while all other + * content types return a 'contentUrl' for retrieving the content. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getPublishedDocumentContentTest() throws ApiException { + String documentId = null; + String siteId = null; + api.getPublishedDocumentContent(documentId, siteId); + // TODO: test validations + } - /** - * Purge document - * - * Remove all objects from the S3 bucket, including previous versions and current version, and should remove all metadata as well, so that no trace of the document exists outside of the audit logs and any backups. Can only be called be ADMIN or GOVERN. - * - * @throws ApiException if the Api call fails - */ - @Test - public void purgeDocumentTest() throws ApiException { - String documentId = null; - String siteId = null; - DeleteResponse response = api.purgeDocument(documentId, siteId); - // TODO: test validations - } + /** + * Purge document + * + * Remove all objects from the S3 bucket, including previous versions and current version, and + * should remove all metadata as well, so that no trace of the document exists outside of the + * audit logs and any backups. Can only be called be ADMIN or GOVERN. + * + * @throws ApiException if the Api call fails + */ + @Test + public void purgeDocumentTest() throws ApiException { + String documentId = null; + String siteId = null; + DeleteResponse response = api.purgeDocument(documentId, siteId); + // TODO: test validations + } - /** - * Perform document checkout - * - * Creates a checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentCheckoutTest() throws ApiException { - String documentId = null; - String siteId = null; - SetResponse response = api.setDocumentCheckout(documentId, siteId); - // TODO: test validations - } + /** + * Perform document checkout + * + * Creates a checkout for the document. Fails with **409 Conflict** if the document is already + * checkedout by another user; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentCheckoutTest() throws ApiException { + String documentId = null; + String siteId = null; + SetResponse response = api.setDocumentCheckout(documentId, siteId); + // TODO: test validations + } - /** - * Perform document legal hold checkout - * - * Creates a legal hold checkout for the document. Fails with **409 Conflict** if the document is already checkedout by another user; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentCheckoutLegalHoldTest() throws ApiException { - String documentId = null; - String siteId = null; - SetResponse response = api.setDocumentCheckoutLegalHold(documentId, siteId); - // TODO: test validations - } + /** + * Perform document legal hold checkout + * + * Creates a legal hold checkout for the document. Fails with **409 Conflict** if the document is + * already checkedout by another user; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentCheckoutLegalHoldTest() throws ApiException { + String documentId = null; + String siteId = null; + SetResponse response = api.setDocumentCheckoutLegalHold(documentId, siteId); + // TODO: test validations + } - /** - * Restore soft deleted document - * - * Restores a soft deleted document - * - * @throws ApiException if the Api call fails - */ - @Test - public void setDocumentRestoreTest() throws ApiException { - String documentId = null; - String siteId = null; - SetDocumentRestoreResponse response = api.setDocumentRestore(documentId, siteId); - // TODO: test validations - } + /** + * Restore soft deleted document + * + * Restores a soft deleted document + * + * @throws ApiException if the Api call fails + */ + @Test + public void setDocumentRestoreTest() throws ApiException { + String documentId = null; + String siteId = null; + SetDocumentRestoreResponse response = api.setDocumentRestore(documentId, siteId); + // TODO: test validations + } - /** - * Update document - * - * Update a document's details, i.e., metadata If no content is specified, the endpoint will return a S3 Presigned that will allow for the uploading of Large document data. NOTE: - provided attributes will overwrite existing matching attribute keys in the document. Attributes not included in the request body will remain unchanged. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateDocumentTest() throws ApiException { - String documentId = null; - UpdateDocumentRequest updateDocumentRequest = null; - String siteId = null; - String shareKey = null; - AddDocumentResponse response = api.updateDocument(documentId, updateDocumentRequest, siteId, shareKey); - // TODO: test validations - } + /** + * Update document + * + * Update a document's details, i.e., metadata If no content is specified, the endpoint will + * return a S3 Presigned that will allow for the uploading of Large document data. NOTE: - + * provided attributes will overwrite existing matching attribute keys in the document. Attributes + * not included in the request body will remain unchanged. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateDocumentTest() throws ApiException { + String documentId = null; + UpdateDocumentRequest updateDocumentRequest = null; + String siteId = null; + String shareKey = null; + AddDocumentResponse response = + api.updateDocument(documentId, updateDocumentRequest, siteId, shareKey); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/ESignatureApiTest.java b/src/test/java/com/formkiq/client/api/ESignatureApiTest.java index 869e652b7..6f5c24225 100644 --- a/src/test/java/com/formkiq/client/api/ESignatureApiTest.java +++ b/src/test/java/com/formkiq/client/api/ESignatureApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -34,52 +41,54 @@ @Disabled public class ESignatureApiTest { - private final ESignatureApi api = new ESignatureApi(); + private final ESignatureApi api = new ESignatureApi(); - /** - * Create Docusign Envelope request - * - * DocuSign create Docusign Envelope request; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocusignEnvelopesTest() throws ApiException { - String documentId = null; - AddDocusignEnvelopesRequest addDocusignEnvelopesRequest = null; - String siteId = null; - AddDocusignEnvelopesResponse response = api.addDocusignEnvelopes(documentId, addDocusignEnvelopesRequest, siteId); - // TODO: test validations - } + /** + * Create Docusign Envelope request + * + * DocuSign create Docusign Envelope request; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocusignEnvelopesTest() throws ApiException { + String documentId = null; + AddDocusignEnvelopesRequest addDocusignEnvelopesRequest = null; + String siteId = null; + AddDocusignEnvelopesResponse response = + api.addDocusignEnvelopes(documentId, addDocusignEnvelopesRequest, siteId); + // TODO: test validations + } - /** - * Create Docusign Recipient View request - * - * DocuSign create Docusign Recipient View request; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addDocusignRecipientViewTest() throws ApiException { - String documentId = null; - String envelopeId = null; - AddDocusignRecipientViewRequest addDocusignRecipientViewRequest = null; - String siteId = null; - AddDocusignRecipientViewResponse response = api.addDocusignRecipientView(documentId, envelopeId, addDocusignRecipientViewRequest, siteId); - // TODO: test validations - } + /** + * Create Docusign Recipient View request + * + * DocuSign create Docusign Recipient View request; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addDocusignRecipientViewTest() throws ApiException { + String documentId = null; + String envelopeId = null; + AddDocusignRecipientViewRequest addDocusignRecipientViewRequest = null; + String siteId = null; + AddDocusignRecipientViewResponse response = api.addDocusignRecipientView(documentId, envelopeId, + addDocusignRecipientViewRequest, siteId); + // TODO: test validations + } - /** - * Add E-signature event - * - * DocuSign callback URL handler; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addEsignatureDocusignEventsTest() throws ApiException { - AddResponse response = api.addEsignatureDocusignEvents(); - // TODO: test validations - } + /** + * Add E-signature event + * + * DocuSign callback URL handler; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addEsignatureDocusignEventsTest() throws ApiException { + AddResponse response = api.addEsignatureDocusignEvents(); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/EntityApiTest.java b/src/test/java/com/formkiq/client/api/EntityApiTest.java index 9a628d9dd..193733744 100644 --- a/src/test/java/com/formkiq/client/api/EntityApiTest.java +++ b/src/test/java/com/formkiq/client/api/EntityApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -40,155 +47,156 @@ @Disabled public class EntityApiTest { - private final EntityApi api = new EntityApi(); - - /** - * Add New Entity - * - * Creates a Entity - * - * @throws ApiException if the Api call fails - */ - @Test - public void addEntityTest() throws ApiException { - String entityTypeId = null; - AddEntityRequest addEntityRequest = null; - String siteId = null; - String namespace = null; - AddEntityResponse response = api.addEntity(entityTypeId, addEntityRequest, siteId, namespace); - // TODO: test validations - } - - /** - * Add New EntityType - * - * Creates a Entity Type - * - * @throws ApiException if the Api call fails - */ - @Test - public void addEntityTypeTest() throws ApiException { - AddEntityTypeRequest addEntityTypeRequest = null; - String siteId = null; - AddEntityTypeResponse response = api.addEntityType(addEntityTypeRequest, siteId); - // TODO: test validations - } - - /** - * Deletes Entity - * - * Deletes Entity - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteEntityTest() throws ApiException { - String entityTypeId = null; - String entityId = null; - String siteId = null; - DeleteResponse response = api.deleteEntity(entityTypeId, entityId, siteId); - // TODO: test validations - } - - /** - * Deletes Entity Type - * - * Deletes Entity Type - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteEntityTypeTest() throws ApiException { - String entityTypeId = null; - String siteId = null; - DeleteResponse response = api.deleteEntityType(entityTypeId, siteId); - // TODO: test validations - } - - /** - * Get Entities - * - * Returns a list of entities - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEntitiesTest() throws ApiException { - String entityTypeId = null; - String siteId = null; - String namespace = null; - String next = null; - String limit = null; - GetEntitiesResponse response = api.getEntities(entityTypeId, siteId, namespace, next, limit); - // TODO: test validations - } - - /** - * Get Entity - * - * Returns a entity - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEntityTest() throws ApiException { - String entityTypeId = null; - String entityId = null; - String siteId = null; - String namespace = null; - GetEntityResponse response = api.getEntity(entityTypeId, entityId, siteId, namespace); - // TODO: test validations - } - - /** - * Get EntityType - * - * Returns a entity type - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEntityTypeTest() throws ApiException { - String entityTypeId = null; - String siteId = null; - String namespace = null; - GetEntityTypeResponse response = api.getEntityType(entityTypeId, siteId, namespace); - // TODO: test validations - } - - /** - * Get EntityTypes - * - * Returns a list of entity types - * - * @throws ApiException if the Api call fails - */ - @Test - public void getEntityTypesTest() throws ApiException { - String siteId = null; - String namespace = null; - String next = null; - String limit = null; - GetEntityTypesResponse response = api.getEntityTypes(siteId, namespace, next, limit); - // TODO: test validations - } - - /** - * Update Entity - * - * Updates a Entity - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateEntityTest() throws ApiException { - String entityTypeId = null; - String entityId = null; - UpdateEntityRequest updateEntityRequest = null; - String siteId = null; - String namespace = null; - UpdateResponse response = api.updateEntity(entityTypeId, entityId, updateEntityRequest, siteId, namespace); - // TODO: test validations - } + private final EntityApi api = new EntityApi(); + + /** + * Add New Entity + * + * Creates a Entity + * + * @throws ApiException if the Api call fails + */ + @Test + public void addEntityTest() throws ApiException { + String entityTypeId = null; + AddEntityRequest addEntityRequest = null; + String siteId = null; + String namespace = null; + AddEntityResponse response = api.addEntity(entityTypeId, addEntityRequest, siteId, namespace); + // TODO: test validations + } + + /** + * Add New EntityType + * + * Creates a Entity Type + * + * @throws ApiException if the Api call fails + */ + @Test + public void addEntityTypeTest() throws ApiException { + AddEntityTypeRequest addEntityTypeRequest = null; + String siteId = null; + AddEntityTypeResponse response = api.addEntityType(addEntityTypeRequest, siteId); + // TODO: test validations + } + + /** + * Deletes Entity + * + * Deletes Entity + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteEntityTest() throws ApiException { + String entityTypeId = null; + String entityId = null; + String siteId = null; + DeleteResponse response = api.deleteEntity(entityTypeId, entityId, siteId); + // TODO: test validations + } + + /** + * Deletes Entity Type + * + * Deletes Entity Type + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteEntityTypeTest() throws ApiException { + String entityTypeId = null; + String siteId = null; + DeleteResponse response = api.deleteEntityType(entityTypeId, siteId); + // TODO: test validations + } + + /** + * Get Entities + * + * Returns a list of entities + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEntitiesTest() throws ApiException { + String entityTypeId = null; + String siteId = null; + String namespace = null; + String next = null; + String limit = null; + GetEntitiesResponse response = api.getEntities(entityTypeId, siteId, namespace, next, limit); + // TODO: test validations + } + + /** + * Get Entity + * + * Returns a entity + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEntityTest() throws ApiException { + String entityTypeId = null; + String entityId = null; + String siteId = null; + String namespace = null; + GetEntityResponse response = api.getEntity(entityTypeId, entityId, siteId, namespace); + // TODO: test validations + } + + /** + * Get EntityType + * + * Returns a entity type + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEntityTypeTest() throws ApiException { + String entityTypeId = null; + String siteId = null; + String namespace = null; + GetEntityTypeResponse response = api.getEntityType(entityTypeId, siteId, namespace); + // TODO: test validations + } + + /** + * Get EntityTypes + * + * Returns a list of entity types + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEntityTypesTest() throws ApiException { + String siteId = null; + String namespace = null; + String next = null; + String limit = null; + GetEntityTypesResponse response = api.getEntityTypes(siteId, namespace, next, limit); + // TODO: test validations + } + + /** + * Update Entity + * + * Updates a Entity + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateEntityTest() throws ApiException { + String entityTypeId = null; + String entityId = null; + UpdateEntityRequest updateEntityRequest = null; + String siteId = null; + String namespace = null; + UpdateResponse response = + api.updateEntity(entityTypeId, entityId, updateEntityRequest, siteId, namespace); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/ExamineObjectsApiTest.java b/src/test/java/com/formkiq/client/api/ExamineObjectsApiTest.java index 12541ee5b..2e063620d 100644 --- a/src/test/java/com/formkiq/client/api/ExamineObjectsApiTest.java +++ b/src/test/java/com/formkiq/client/api/ExamineObjectsApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,35 +37,36 @@ @Disabled public class ExamineObjectsApiTest { - private final ExamineObjectsApi api = new ExamineObjectsApi(); + private final ExamineObjectsApi api = new ExamineObjectsApi(); - /** - * Add Examine Pdf - * - * Get PDF details File must have been uploaded previously using the GET /objects/examine/pdf API. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getExaminePdfTest() throws ApiException { - String id = null; - String siteId = null; - GetExaminePdfResponse response = api.getExaminePdf(id, siteId); - // TODO: test validations - } + /** + * Add Examine Pdf + * + * Get PDF details File must have been uploaded previously using the GET /objects/examine/pdf API. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getExaminePdfTest() throws ApiException { + String id = null; + String siteId = null; + GetExaminePdfResponse response = api.getExaminePdf(id, siteId); + // TODO: test validations + } - /** - * Add Examine Pdf - * - * Get Signed URL for PDF Object Upload of a document to be examined by calling GET /objects/examine/{id}/pdf - * - * @throws ApiException if the Api call fails - */ - @Test - public void getExaminePdfUrlTest() throws ApiException { - String siteId = null; - GetExaminePdfUrlResponse response = api.getExaminePdfUrl(siteId); - // TODO: test validations - } + /** + * Add Examine Pdf + * + * Get Signed URL for PDF Object Upload of a document to be examined by calling GET + * /objects/examine/{id}/pdf + * + * @throws ApiException if the Api call fails + */ + @Test + public void getExaminePdfUrlTest() throws ApiException { + String siteId = null; + GetExaminePdfUrlResponse response = api.getExaminePdfUrl(siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/GoogleIntegrationApiTest.java b/src/test/java/com/formkiq/client/api/GoogleIntegrationApiTest.java index 34538b175..c2e3da6f9 100644 --- a/src/test/java/com/formkiq/client/api/GoogleIntegrationApiTest.java +++ b/src/test/java/com/formkiq/client/api/GoogleIntegrationApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,22 +38,23 @@ @Disabled public class GoogleIntegrationApiTest { - private final GoogleIntegrationApi api = new GoogleIntegrationApi(); - - /** - * Add Google Document Export - * - * Exports a Google Document; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addGoogleDocumentExportTest() throws ApiException { - String documentId = null; - AddGoogleDocumentExportRequest addGoogleDocumentExportRequest = null; - String siteId = null; - AddGoogleDocumentExportResponse response = api.addGoogleDocumentExport(documentId, addGoogleDocumentExportRequest, siteId); - // TODO: test validations - } + private final GoogleIntegrationApi api = new GoogleIntegrationApi(); + + /** + * Add Google Document Export + * + * Exports a Google Document; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addGoogleDocumentExportTest() throws ApiException { + String documentId = null; + AddGoogleDocumentExportRequest addGoogleDocumentExportRequest = null; + String siteId = null; + AddGoogleDocumentExportResponse response = + api.addGoogleDocumentExport(documentId, addGoogleDocumentExportRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/MalwareScanApiTest.java b/src/test/java/com/formkiq/client/api/MalwareScanApiTest.java index 5d8280c71..f990f65f8 100644 --- a/src/test/java/com/formkiq/client/api/MalwareScanApiTest.java +++ b/src/test/java/com/formkiq/client/api/MalwareScanApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,56 +38,58 @@ @Disabled public class MalwareScanApiTest { - private final MalwareScanApi api = new MalwareScanApi(); + private final MalwareScanApi api = new MalwareScanApi(); - /** - * Get Malware Scan results - * - * Gets a Malware Scan results; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getMalwareScanResultsTest() throws ApiException { - String documentId = null; - String siteId = null; - String next = null; - String limit = null; - GetMalwareScanResponse response = api.getMalwareScanResults(documentId, siteId, next, limit); - // TODO: test validations - } + /** + * Get Malware Scan results + * + * Gets a Malware Scan results; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getMalwareScanResultsTest() throws ApiException { + String documentId = null; + String siteId = null; + String next = null; + String limit = null; + GetMalwareScanResponse response = api.getMalwareScanResults(documentId, siteId, next, limit); + // TODO: test validations + } - /** - * Antivirus document scan - * - * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module **Deprecated**. This endpoint is no longer recommended. Please use the **`/documents/{document}/malwareScan`** endpoint instead. - * - * @throws ApiException if the Api call fails - */ - @Test - public void setAntivirusTest() throws ApiException { - String documentId = null; - String siteId = null; - String shareKey = null; - Object body = null; - SetResponse response = api.setAntivirus(documentId, siteId, shareKey, body); - // TODO: test validations - } + /** + * Antivirus document scan + * + * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module + * **Deprecated**. This endpoint is no longer recommended. Please use the + * **`/documents/{document}/malwareScan`** endpoint instead. + * + * @throws ApiException if the Api call fails + */ + @Test + public void setAntivirusTest() throws ApiException { + String documentId = null; + String siteId = null; + String shareKey = null; + Object body = null; + SetResponse response = api.setAntivirus(documentId, siteId, shareKey, body); + // TODO: test validations + } - /** - * MalwareScan document scan - * - * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setMalwareScanTest() throws ApiException { - String documentId = null; - String siteId = null; - Object body = null; - SetResponse response = api.setMalwareScan(documentId, siteId, body); - // TODO: test validations - } + /** + * MalwareScan document scan + * + * Perform an Anti-Malware / Antivirus scan on a document; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setMalwareScanTest() throws ApiException { + String documentId = null; + String siteId = null; + Object body = null; + SetResponse response = api.setMalwareScan(documentId, siteId, body); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/MappingsApiTest.java b/src/test/java/com/formkiq/client/api/MappingsApiTest.java index fbf290470..2ac9aeeec 100644 --- a/src/test/java/com/formkiq/client/api/MappingsApiTest.java +++ b/src/test/java/com/formkiq/client/api/MappingsApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -36,83 +43,83 @@ @Disabled public class MappingsApiTest { - private final MappingsApi api = new MappingsApi(); + private final MappingsApi api = new MappingsApi(); - /** - * Add New Mapping - * - * Creates a new mapping; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addMappingTest() throws ApiException { - AddMappingRequest addMappingRequest = null; - String siteId = null; - AddMappingResponse response = api.addMapping(addMappingRequest, siteId); - // TODO: test validations - } + /** + * Add New Mapping + * + * Creates a new mapping; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addMappingTest() throws ApiException { + AddMappingRequest addMappingRequest = null; + String siteId = null; + AddMappingResponse response = api.addMapping(addMappingRequest, siteId); + // TODO: test validations + } - /** - * Delete Mapping - * - * Delete Mapping; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteMappingTest() throws ApiException { - String mappingId = null; - String siteId = null; - DeleteResponse response = api.deleteMapping(mappingId, siteId); - // TODO: test validations - } + /** + * Delete Mapping + * + * Delete Mapping; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteMappingTest() throws ApiException { + String mappingId = null; + String siteId = null; + DeleteResponse response = api.deleteMapping(mappingId, siteId); + // TODO: test validations + } - /** - * Get Mapping - * - * Get a mapping; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getMappingTest() throws ApiException { - String mappingId = null; - String siteId = null; - GetMappingResponse response = api.getMapping(mappingId, siteId); - // TODO: test validations - } + /** + * Get Mapping + * + * Get a mapping; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getMappingTest() throws ApiException { + String mappingId = null; + String siteId = null; + GetMappingResponse response = api.getMapping(mappingId, siteId); + // TODO: test validations + } - /** - * Get Mappings - * - * Returns a list of mappings; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getMappingsTest() throws ApiException { - String siteId = null; - String limit = null; - String next = null; - GetMappingsResponse response = api.getMappings(siteId, limit, next); - // TODO: test validations - } + /** + * Get Mappings + * + * Returns a list of mappings; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getMappingsTest() throws ApiException { + String siteId = null; + String limit = null; + String next = null; + GetMappingsResponse response = api.getMappings(siteId, limit, next); + // TODO: test validations + } - /** - * Set Mapping - * - * Sets an mapping; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void setMappingTest() throws ApiException { - String mappingId = null; - SetMappingRequest setMappingRequest = null; - String siteId = null; - SetResponse response = api.setMapping(mappingId, setMappingRequest, siteId); - // TODO: test validations - } + /** + * Set Mapping + * + * Sets an mapping; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void setMappingTest() throws ApiException { + String mappingId = null; + SetMappingRequest setMappingRequest = null; + String siteId = null; + SetResponse response = api.setMapping(mappingId, setMappingRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/PublicApiTest.java b/src/test/java/com/formkiq/client/api/PublicApiTest.java index a06c6e88e..b7f987381 100644 --- a/src/test/java/com/formkiq/client/api/PublicApiTest.java +++ b/src/test/java/com/formkiq/client/api/PublicApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,37 +38,40 @@ @Disabled public class PublicApiTest { - private final PublicApi api = new PublicApi(); + private final PublicApi api = new PublicApi(); - /** - * Public add document - * - * Allow unauthenticated creation of new documents; must be enabled during installation (disabled by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST /documents/{documentId}/actions for adding actions to document schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void publicAddDocumentTest() throws ApiException { - AddDocumentRequest addDocumentRequest = null; - String siteId = null; - AddDocumentResponse response = api.publicAddDocument(addDocumentRequest, siteId); - // TODO: test validations - } + /** + * Public add document + * + * Allow unauthenticated creation of new documents; must be enabled during installation (disabled + * by default) See POST /documents/{documentId}/tags for adding tags to document schema See POST + * /documents/{documentId}/actions for adding actions to document schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void publicAddDocumentTest() throws ApiException { + AddDocumentRequest addDocumentRequest = null; + String siteId = null; + AddDocumentResponse response = api.publicAddDocument(addDocumentRequest, siteId); + // TODO: test validations + } - /** - * Public add webhook - * - * Receive an incoming public post to a specified webhook and creates a document based on the data sent; must be enabled during installation (disabled by default) - * - * @throws ApiException if the Api call fails - */ - @Test - public void publicAddWebhookTest() throws ApiException { - String webhooksPlus = null; - Object body = null; - String siteId = null; - DocumentId response = api.publicAddWebhook(webhooksPlus, body, siteId); - // TODO: test validations - } + /** + * Public add webhook + * + * Receive an incoming public post to a specified webhook and creates a document based on the data + * sent; must be enabled during installation (disabled by default) + * + * @throws ApiException if the Api call fails + */ + @Test + public void publicAddWebhookTest() throws ApiException { + String webhooksPlus = null; + Object body = null; + String siteId = null; + DocumentId response = api.publicAddWebhook(webhooksPlus, body, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/ReindexApiTest.java b/src/test/java/com/formkiq/client/api/ReindexApiTest.java index 7ab534e05..db7b861cd 100644 --- a/src/test/java/com/formkiq/client/api/ReindexApiTest.java +++ b/src/test/java/com/formkiq/client/api/ReindexApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,22 +38,24 @@ @Disabled public class ReindexApiTest { - private final ReindexApi api = new ReindexApi(); - - /** - * Reindex metadata on a document - * - * The API allows for the reindexing of a document's metadata determined by the target. ATTRIBUTE target will regenerate the composite keys for a document based on the Classification / SiteSchema - * - * @throws ApiException if the Api call fails - */ - @Test - public void addReindexDocumentTest() throws ApiException { - String documentId = null; - AddReindexDocumentRequest addReindexDocumentRequest = null; - String siteId = null; - AddResponse response = api.addReindexDocument(documentId, addReindexDocumentRequest, siteId); - // TODO: test validations - } + private final ReindexApi api = new ReindexApi(); + + /** + * Reindex metadata on a document + * + * The API allows for the reindexing of a document's metadata determined by the target. + * ATTRIBUTE target will regenerate the composite keys for a document based on the Classification + * / SiteSchema + * + * @throws ApiException if the Api call fails + */ + @Test + public void addReindexDocumentTest() throws ApiException { + String documentId = null; + AddReindexDocumentRequest addReindexDocumentRequest = null; + String siteId = null; + AddResponse response = api.addReindexDocument(documentId, addReindexDocumentRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/RulesetsApiTest.java b/src/test/java/com/formkiq/client/api/RulesetsApiTest.java index db0faff8f..1c3f403c9 100644 --- a/src/test/java/com/formkiq/client/api/RulesetsApiTest.java +++ b/src/test/java/com/formkiq/client/api/RulesetsApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -43,165 +50,165 @@ @Disabled public class RulesetsApiTest { - private final RulesetsApi api = new RulesetsApi(); - - /** - * Add New Rule - * - * Creates a new rule; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addRuleTest() throws ApiException { - String rulesetId = null; - AddRuleRequest addRuleRequest = null; - String siteId = null; - AddRuleResponse response = api.addRule(rulesetId, addRuleRequest, siteId); - // TODO: test validations - } - - /** - * Add New Ruleset - * - * Creates a new ruleset; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void addRulesetTest() throws ApiException { - AddRulesetRequest addRulesetRequest = null; - String siteId = null; - AddRulesetResponse response = api.addRuleset(addRulesetRequest, siteId); - // TODO: test validations - } - - /** - * Delete Rule - * - * Delete Rule; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteRuleTest() throws ApiException { - String rulesetId = null; - String ruleId = null; - String siteId = null; - DeleteRuleResponse response = api.deleteRule(rulesetId, ruleId, siteId); - // TODO: test validations - } - - /** - * Delete Ruleset - * - * Delete Ruleset; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteRulesetTest() throws ApiException { - String rulesetId = null; - String siteId = null; - DeleteRulesetResponse response = api.deleteRuleset(rulesetId, siteId); - // TODO: test validations - } - - /** - * Get Rule - * - * Returns a rule in a ruleset; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRuleTest() throws ApiException { - String rulesetId = null; - String ruleId = null; - String siteId = null; - GetRuleResponse response = api.getRule(rulesetId, ruleId, siteId); - // TODO: test validations - } - - /** - * Get Rules - * - * Returns a list of rules in a ruleset; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRulesTest() throws ApiException { - String rulesetId = null; - String siteId = null; - String next = null; - String limit = null; - GetRulesResponse response = api.getRules(rulesetId, siteId, next, limit); - // TODO: test validations - } - - /** - * Get Ruleset - * - * Get a rule sets; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRulesetTest() throws ApiException { - String rulesetId = null; - String siteId = null; - GetRulesetResponse response = api.getRuleset(rulesetId, siteId); - // TODO: test validations - } - - /** - * Get Rulesets - * - * Returns a list of rule sets; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRulesetsTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetRulesetsResponse response = api.getRulesets(siteId, next, limit); - // TODO: test validations - } - - /** - * Update Rule - * - * Update Rule; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateRuleTest() throws ApiException { - String rulesetId = null; - String ruleId = null; - UpdateRuleRequest updateRuleRequest = null; - String siteId = null; - UpdateRuleResponse response = api.updateRule(rulesetId, ruleId, updateRuleRequest, siteId); - // TODO: test validations - } - - /** - * Update Ruleset - * - * Updates an existing ruleset; available as an Add-On Module - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateRulesetTest() throws ApiException { - String rulesetId = null; - UpdateRulesetRequest updateRulesetRequest = null; - String siteId = null; - UpdateRulesetResponse response = api.updateRuleset(rulesetId, updateRulesetRequest, siteId); - // TODO: test validations - } + private final RulesetsApi api = new RulesetsApi(); + + /** + * Add New Rule + * + * Creates a new rule; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addRuleTest() throws ApiException { + String rulesetId = null; + AddRuleRequest addRuleRequest = null; + String siteId = null; + AddRuleResponse response = api.addRule(rulesetId, addRuleRequest, siteId); + // TODO: test validations + } + + /** + * Add New Ruleset + * + * Creates a new ruleset; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void addRulesetTest() throws ApiException { + AddRulesetRequest addRulesetRequest = null; + String siteId = null; + AddRulesetResponse response = api.addRuleset(addRulesetRequest, siteId); + // TODO: test validations + } + + /** + * Delete Rule + * + * Delete Rule; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteRuleTest() throws ApiException { + String rulesetId = null; + String ruleId = null; + String siteId = null; + DeleteRuleResponse response = api.deleteRule(rulesetId, ruleId, siteId); + // TODO: test validations + } + + /** + * Delete Ruleset + * + * Delete Ruleset; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteRulesetTest() throws ApiException { + String rulesetId = null; + String siteId = null; + DeleteRulesetResponse response = api.deleteRuleset(rulesetId, siteId); + // TODO: test validations + } + + /** + * Get Rule + * + * Returns a rule in a ruleset; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRuleTest() throws ApiException { + String rulesetId = null; + String ruleId = null; + String siteId = null; + GetRuleResponse response = api.getRule(rulesetId, ruleId, siteId); + // TODO: test validations + } + + /** + * Get Rules + * + * Returns a list of rules in a ruleset; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRulesTest() throws ApiException { + String rulesetId = null; + String siteId = null; + String next = null; + String limit = null; + GetRulesResponse response = api.getRules(rulesetId, siteId, next, limit); + // TODO: test validations + } + + /** + * Get Ruleset + * + * Get a rule sets; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRulesetTest() throws ApiException { + String rulesetId = null; + String siteId = null; + GetRulesetResponse response = api.getRuleset(rulesetId, siteId); + // TODO: test validations + } + + /** + * Get Rulesets + * + * Returns a list of rule sets; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRulesetsTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetRulesetsResponse response = api.getRulesets(siteId, next, limit); + // TODO: test validations + } + + /** + * Update Rule + * + * Update Rule; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateRuleTest() throws ApiException { + String rulesetId = null; + String ruleId = null; + UpdateRuleRequest updateRuleRequest = null; + String siteId = null; + UpdateRuleResponse response = api.updateRule(rulesetId, ruleId, updateRuleRequest, siteId); + // TODO: test validations + } + + /** + * Update Ruleset + * + * Updates an existing ruleset; available as an Add-On Module + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateRulesetTest() throws ApiException { + String rulesetId = null; + UpdateRulesetRequest updateRulesetRequest = null; + String siteId = null; + UpdateRulesetResponse response = api.updateRuleset(rulesetId, updateRulesetRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/SchemasApiTest.java b/src/test/java/com/formkiq/client/api/SchemasApiTest.java index 461a198d3..7e2800aea 100644 --- a/src/test/java/com/formkiq/client/api/SchemasApiTest.java +++ b/src/test/java/com/formkiq/client/api/SchemasApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -39,147 +46,151 @@ @Disabled public class SchemasApiTest { - private final SchemasApi api = new SchemasApi(); - - /** - * Add Classification - * - * Add Classification - * - * @throws ApiException if the Api call fails - */ - @Test - public void addClassificationTest() throws ApiException { - String siteId = null; - AddClassificationRequest addClassificationRequest = null; - AddClassificationResponse response = api.addClassification(siteId, addClassificationRequest); - // TODO: test validations - } - - /** - * Delete Classification - * - * Delete Classification - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteClassificationTest() throws ApiException { - String siteId = null; - String classificationId = null; - DeleteResponse response = api.deleteClassification(siteId, classificationId); - // TODO: test validations - } - - /** - * Get Classification - * - * Get Classification - * - * @throws ApiException if the Api call fails - */ - @Test - public void getClassificationTest() throws ApiException { - String siteId = null; - String classificationId = null; - String locale = null; - GetClassificationResponse response = api.getClassification(siteId, classificationId, locale); - // TODO: test validations - } - - /** - * Get Classification's Attribute Allowed Values - * - * Returns an attribute's allowed values that spans for a specific classifications and site schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void getClassificationAttributeAllowedValuesTest() throws ApiException { - String siteId = null; - String classificationId = null; - String key = null; - String locale = null; - GetAttributeAllowedValuesResponse response = api.getClassificationAttributeAllowedValues(siteId, classificationId, key, locale); - // TODO: test validations - } - - /** - * Get Sites Classifications - * - * Gets Sites Classifications - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSitesClassificationsTest() throws ApiException { - String siteId = null; - String limit = null; - String next = null; - GetClassificationsResponse response = api.getSitesClassifications(siteId, limit, next); - // TODO: test validations - } - - /** - * Get Sites Schema - * - * Gets Sites schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSitesSchemaTest() throws ApiException { - String siteId = null; - String locale = null; - GetSitesSchemaResponse response = api.getSitesSchema(siteId, locale); - // TODO: test validations - } - - /** - * Get Attribute Allowed Values - * - * Returns an attribute's allowed values from the site schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSitesSchemaAttributeAllowedValuesTest() throws ApiException { - String siteId = null; - String key = null; - String locale = null; - GetAttributeAllowedValuesResponse response = api.getSitesSchemaAttributeAllowedValues(siteId, key, locale); - // TODO: test validations - } - - /** - * Set Classification - * - * Sets Classification - * - * @throws ApiException if the Api call fails - */ - @Test - public void setClassificationTest() throws ApiException { - String siteId = null; - String classificationId = null; - SetClassificationRequest setClassificationRequest = null; - SetResponse response = api.setClassification(siteId, classificationId, setClassificationRequest); - // TODO: test validations - } - - /** - * Set Sites Schema - * - * Sets Sites schema - * - * @throws ApiException if the Api call fails - */ - @Test - public void setSitesSchemaTest() throws ApiException { - String siteId = null; - SetSitesSchemaRequest setSitesSchemaRequest = null; - SetResponse response = api.setSitesSchema(siteId, setSitesSchemaRequest); - // TODO: test validations - } + private final SchemasApi api = new SchemasApi(); + + /** + * Add Classification + * + * Add Classification + * + * @throws ApiException if the Api call fails + */ + @Test + public void addClassificationTest() throws ApiException { + String siteId = null; + AddClassificationRequest addClassificationRequest = null; + AddClassificationResponse response = api.addClassification(siteId, addClassificationRequest); + // TODO: test validations + } + + /** + * Delete Classification + * + * Delete Classification + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteClassificationTest() throws ApiException { + String siteId = null; + String classificationId = null; + DeleteResponse response = api.deleteClassification(siteId, classificationId); + // TODO: test validations + } + + /** + * Get Classification + * + * Get Classification + * + * @throws ApiException if the Api call fails + */ + @Test + public void getClassificationTest() throws ApiException { + String siteId = null; + String classificationId = null; + String locale = null; + GetClassificationResponse response = api.getClassification(siteId, classificationId, locale); + // TODO: test validations + } + + /** + * Get Classification's Attribute Allowed Values + * + * Returns an attribute's allowed values that spans for a specific classifications and site + * schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void getClassificationAttributeAllowedValuesTest() throws ApiException { + String siteId = null; + String classificationId = null; + String key = null; + String locale = null; + GetAttributeAllowedValuesResponse response = + api.getClassificationAttributeAllowedValues(siteId, classificationId, key, locale); + // TODO: test validations + } + + /** + * Get Sites Classifications + * + * Gets Sites Classifications + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSitesClassificationsTest() throws ApiException { + String siteId = null; + String limit = null; + String next = null; + GetClassificationsResponse response = api.getSitesClassifications(siteId, limit, next); + // TODO: test validations + } + + /** + * Get Sites Schema + * + * Gets Sites schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSitesSchemaTest() throws ApiException { + String siteId = null; + String locale = null; + GetSitesSchemaResponse response = api.getSitesSchema(siteId, locale); + // TODO: test validations + } + + /** + * Get Attribute Allowed Values + * + * Returns an attribute's allowed values from the site schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSitesSchemaAttributeAllowedValuesTest() throws ApiException { + String siteId = null; + String key = null; + String locale = null; + GetAttributeAllowedValuesResponse response = + api.getSitesSchemaAttributeAllowedValues(siteId, key, locale); + // TODO: test validations + } + + /** + * Set Classification + * + * Sets Classification + * + * @throws ApiException if the Api call fails + */ + @Test + public void setClassificationTest() throws ApiException { + String siteId = null; + String classificationId = null; + SetClassificationRequest setClassificationRequest = null; + SetResponse response = + api.setClassification(siteId, classificationId, setClassificationRequest); + // TODO: test validations + } + + /** + * Set Sites Schema + * + * Sets Sites schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void setSitesSchemaTest() throws ApiException { + String siteId = null; + SetSitesSchemaRequest setSitesSchemaRequest = null; + SetResponse response = api.setSitesSchema(siteId, setSitesSchemaRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/SystemManagementApiTest.java b/src/test/java/com/formkiq/client/api/SystemManagementApiTest.java index d05ac9142..b3b36deba 100644 --- a/src/test/java/com/formkiq/client/api/SystemManagementApiTest.java +++ b/src/test/java/com/formkiq/client/api/SystemManagementApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -62,554 +69,559 @@ @Disabled public class SystemManagementApiTest { - private final SystemManagementApi api = new SystemManagementApi(); - - /** - * Add API Key - * - * Adds a new API Key - * - * @throws ApiException if the Api call fails - */ - @Test - public void addApiKeyTest() throws ApiException { - String siteId = null; - AddApiKeyRequest addApiKeyRequest = null; - AddApiKeyResponse response = api.addApiKey(siteId, addApiKeyRequest); - // TODO: test validations - } - - /** - * Add Locale - * - * Adds a new locale to the specified site - * - * @throws ApiException if the Api call fails - */ - @Test - public void addLocaleTest() throws ApiException { - String siteId = null; - AddLocaleRequest addLocaleRequest = null; - AddResponse response = api.addLocale(siteId, addLocaleRequest); - // TODO: test validations - } - - /** - * Add Locale Resource Item - * - * Adds a new localized resource item for a given locale - * - * @throws ApiException if the Api call fails - */ - @Test - public void addLocaleResourceItemTest() throws ApiException { - String siteId = null; - String locale = null; - AddLocaleResourceItemRequest addLocaleResourceItemRequest = null; - AddLocaleResourceItemResponse response = api.addLocaleResourceItem(siteId, locale, addLocaleResourceItemRequest); - // TODO: test validations - } - - /** - * Add an OpenSearch Restore Snapshot - * - * Add an OpenSearch Restore Snapshot - * - * @throws ApiException if the Api call fails - */ - @Test - public void addOpenSearchRestoreSnapshotTest() throws ApiException { - String siteId = null; - String snapshotName = null; - AddResponse response = api.addOpenSearchRestoreSnapshot(siteId, snapshotName); - // TODO: test validations - } - - /** - * Add an OpenSearch Snapshot - * - * Add an OpenSearch Snapshot - * - * @throws ApiException if the Api call fails - */ - @Test - public void addOpenSearchSnapshotTest() throws ApiException { - String siteId = null; - String snapshotName = null; - AddResponse response = api.addOpenSearchSnapshot(siteId, snapshotName); - // TODO: test validations - } - - /** - * Add Site - * - * Add Site - * - * @throws ApiException if the Api call fails - */ - @Test - public void addSiteTest() throws ApiException { - AddSiteRequest addSiteRequest = null; - AddResponse response = api.addSite(addSiteRequest); - // TODO: test validations - } - - /** - * Delete API Key - * - * Adds a new API Key - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteApiKeyTest() throws ApiException { - String siteId = null; - String apiKey = null; - DeleteApiKeyResponse response = api.deleteApiKey(siteId, apiKey); - // TODO: test validations - } - - /** - * Delete Locale - * - * Delete Locale - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteLocaleTest() throws ApiException { - String siteId = null; - String locale = null; - DeleteResponse response = api.deleteLocale(siteId, locale); - // TODO: test validations - } - - /** - * Delete Local Resource Item - * - * Delete Local Resource Item - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteLocaleResourceItemTest() throws ApiException { - String siteId = null; - String locale = null; - String itemKey = null; - DeleteResponse response = api.deleteLocaleResourceItem(siteId, locale, itemKey); - // TODO: test validations - } - - /** - * Deletes site(s) OpenSearch index - * - * Deletes the OpenSearch index - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpenSearchIndexTest() throws ApiException { - String siteId = null; - DeleteResponse response = api.deleteOpenSearchIndex(siteId); - // TODO: test validations - } - - /** - * Deletes OpenSearch index by name - * - * Deletes the OpenSearch index by name - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpenSearchIndexByNameTest() throws ApiException { - String indexName = null; - DeleteResponse response = api.deleteOpenSearchIndexByName(indexName); - // TODO: test validations - } - - /** - * Deletes site(s) OpenSearch Restore Snapshot - * - * Deletes the OpenSearch Restore Snapshot - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpenSearchRestoreSnapshotTest() throws ApiException { - String siteId = null; - String snapshotName = null; - DeleteResponse response = api.deleteOpenSearchRestoreSnapshot(siteId, snapshotName); - // TODO: test validations - } - - /** - * Deletes site(s) OpenSearch Snapshot - * - * Deletes the OpenSearch Snapshot - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpenSearchSnapshotTest() throws ApiException { - String siteId = null; - String snapshotName = null; - DeleteResponse response = api.deleteOpenSearchSnapshot(siteId, snapshotName); - // TODO: test validations - } - - /** - * Deletes site(s) OpenSearch Snapshot Repository - * - * Deletes the OpenSearch Snapshot Repository - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteOpenSearchSnapshotRepositoryTest() throws ApiException { - String siteId = null; - DeleteResponse response = api.deleteOpenSearchSnapshotRepository(siteId); - // TODO: test validations - } - - /** - * Deletes Site Group and permissions - * - * Deletes Site Group and permissions - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteSiteGroupTest() throws ApiException { - String siteId = null; - String groupName = null; - DeleteResponse response = api.deleteSiteGroup(siteId, groupName); - // TODO: test validations - } - - /** - * Get all OpenSearch indices - * - * Returns all OpenSearch indices - * - * @throws ApiException if the Api call fails - */ - @Test - public void getAllOpenSearchIndicesTest() throws ApiException { - GetOpenSearchIndiceResponse response = api.getAllOpenSearchIndices(); - // TODO: test validations - } - - /** - * Get API Keys - * - * Returns the list of ApiKeys - * - * @throws ApiException if the Api call fails - */ - @Test - public void getApiKeysTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetApiKeysResponse response = api.getApiKeys(siteId, next, limit); - // TODO: test validations - } - - /** - * Get site configuration - * - * Returns the list of sites that the user has access to - * - * @throws ApiException if the Api call fails - */ - @Test - public void getConfigurationTest() throws ApiException { - String siteId = null; - GetConfigurationResponse response = api.getConfiguration(siteId); - // TODO: test validations - } - - /** - * Get Resource Item by Locale - * - * Returns the resource item - * - * @throws ApiException if the Api call fails - */ - @Test - public void getLocaleResourceItemTest() throws ApiException { - String siteId = null; - String locale = null; - String itemKey = null; - GetLocaleResourceItemResponse response = api.getLocaleResourceItem(siteId, locale, itemKey); - // TODO: test validations - } - - /** - * Get Resource Items by Locale - * - * Returns the list resource items - * - * @throws ApiException if the Api call fails - */ - @Test - public void getLocaleResourceItemsTest() throws ApiException { - String siteId = null; - String locale = null; - String next = null; - String limit = null; - GetLocaleResourceItemsResponse response = api.getLocaleResourceItems(siteId, locale, next, limit); - // TODO: test validations - } - - /** - * Get Locales - * - * Returns a list of locale(s) in a specified site - * - * @throws ApiException if the Api call fails - */ - @Test - public void getLocalesTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetLocalesResponse response = api.getLocales(siteId, next, limit); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch index settings - * - * Returns the OpenSearch index settings (Deprecated use /sites/{siteId}/opensearch/indices) - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchIndexTest() throws ApiException { - String siteId = null; - GetOpenSearchIndexResponse response = api.getOpenSearchIndex(siteId); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch indices - * - * Returns the OpenSearch indices - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchIndicesTest() throws ApiException { - String siteId = null; - GetOpenSearchIndiceResponse response = api.getOpenSearchIndices(siteId); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch snapshot - * - * Returns the OpenSearch Snapshot - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchSnapshotTest() throws ApiException { - String siteId = null; - String snapshotName = null; - GetOpenSearchSnapshotResponse response = api.getOpenSearchSnapshot(siteId, snapshotName); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch snapshot repositories - * - * Returns the OpenSearch Snapshot Repositories - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchSnapshotRepositoriesTest() throws ApiException { - GetOpenSearchSnapshotRepositoryResponse response = api.getOpenSearchSnapshotRepositories(); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch snapshot repository - * - * Returns the OpenSearch Snapshot Repository - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchSnapshotRepositoryTest() throws ApiException { - String siteId = null; - GetOpenSearchSnapshotRepositoryResponse response = api.getOpenSearchSnapshotRepository(siteId); - // TODO: test validations - } - - /** - * Get site(s) OpenSearch snapshots - * - * Returns the OpenSearch Snapshots - * - * @throws ApiException if the Api call fails - */ - @Test - public void getOpenSearchSnapshotsTest() throws ApiException { - String siteId = null; - GetOpenSearchSnapshotResponse response = api.getOpenSearchSnapshots(siteId); - // TODO: test validations - } - - /** - * Get group and permissions belonging to site - * - * Returns details of a group and permissions belonging to site - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSiteGroupTest() throws ApiException { - String siteId = null; - String groupName = null; - GetSiteGroupResponse response = api.getSiteGroup(siteId, groupName); - // TODO: test validations - } - - /** - * Get group(s) and permissions belonging to site - * - * Returns list of groups and permissions belonging to site - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSiteGroupsTest() throws ApiException { - String siteId = null; - GetSiteGroupsResponse response = api.getSiteGroups(siteId); - // TODO: test validations - } - - /** - * Get site(s) access - * - * Returns the list of sites that the user has access to - * - * @throws ApiException if the Api call fails - */ - @Test - public void getSitesTest() throws ApiException { - SiteStatus status = null; - GetSitesResponse response = api.getSites(status); - // TODO: test validations - } - - /** - * Get FormKiQ version - * - * Return the version of FormKiQ - * - * @throws ApiException if the Api call fails - */ - @Test - public void getVersionTest() throws ApiException { - GetVersionResponse response = api.getVersion(); - // TODO: test validations - } - - /** - * Set Locale Resource Item - * - * Set a new Locale Resource Item - * - * @throws ApiException if the Api call fails - */ - @Test - public void setLocaleResourceItemTest() throws ApiException { - String siteId = null; - String locale = null; - String itemKey = null; - SetLocaleResourceItemRequest setLocaleResourceItemRequest = null; - SetResponse response = api.setLocaleResourceItem(siteId, locale, itemKey, setLocaleResourceItemRequest); - // TODO: test validations - } - - /** - * Set site(s) OpenSearch index settings - * - * Sets the OpenSearch index settings - * - * @throws ApiException if the Api call fails - */ - @Test - public void setOpenSearchIndexTest() throws ApiException { - String siteId = null; - SetOpenSearchIndexRequest setOpenSearchIndexRequest = null; - SetOpenSearchIndexResponse response = api.setOpenSearchIndex(siteId, setOpenSearchIndexRequest); - // TODO: test validations - } - - /** - * Set site(s) OpenSearch index to use for a SiteId - * - * Sets the OpenSearch index to use for a SiteId - * - * @throws ApiException if the Api call fails - */ - @Test - public void setOpenSearchIndicesTest() throws ApiException { - String siteId = null; - SetOpenSearchIndiceRequest setOpenSearchIndiceRequest = null; - SetResponse response = api.setOpenSearchIndices(siteId, setOpenSearchIndiceRequest); - // TODO: test validations - } - - /** - * Set Site's Group Permissions - * - * Set Site's Group Permissions - * - * @throws ApiException if the Api call fails - */ - @Test - public void setSiteGroupPermissionsTest() throws ApiException { - String siteId = null; - String groupName = null; - SetGroupPermissionsRequest setGroupPermissionsRequest = null; - SetResponse response = api.setSiteGroupPermissions(siteId, groupName, setGroupPermissionsRequest); - // TODO: test validations - } - - /** - * Update site configuration - * - * Update the System Management configuration - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateConfigurationTest() throws ApiException { - String siteId = null; - UpdateConfigurationRequest updateConfigurationRequest = null; - UpdateConfigurationResponse response = api.updateConfiguration(siteId, updateConfigurationRequest); - // TODO: test validations - } - - /** - * Update Site - * - * Update Site - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateSiteTest() throws ApiException { - String siteId = null; - UpdateSiteRequest updateSiteRequest = null; - UpdateResponse response = api.updateSite(siteId, updateSiteRequest); - // TODO: test validations - } + private final SystemManagementApi api = new SystemManagementApi(); + + /** + * Add API Key + * + * Adds a new API Key + * + * @throws ApiException if the Api call fails + */ + @Test + public void addApiKeyTest() throws ApiException { + String siteId = null; + AddApiKeyRequest addApiKeyRequest = null; + AddApiKeyResponse response = api.addApiKey(siteId, addApiKeyRequest); + // TODO: test validations + } + + /** + * Add Locale + * + * Adds a new locale to the specified site + * + * @throws ApiException if the Api call fails + */ + @Test + public void addLocaleTest() throws ApiException { + String siteId = null; + AddLocaleRequest addLocaleRequest = null; + AddResponse response = api.addLocale(siteId, addLocaleRequest); + // TODO: test validations + } + + /** + * Add Locale Resource Item + * + * Adds a new localized resource item for a given locale + * + * @throws ApiException if the Api call fails + */ + @Test + public void addLocaleResourceItemTest() throws ApiException { + String siteId = null; + String locale = null; + AddLocaleResourceItemRequest addLocaleResourceItemRequest = null; + AddLocaleResourceItemResponse response = + api.addLocaleResourceItem(siteId, locale, addLocaleResourceItemRequest); + // TODO: test validations + } + + /** + * Add an OpenSearch Restore Snapshot + * + * Add an OpenSearch Restore Snapshot + * + * @throws ApiException if the Api call fails + */ + @Test + public void addOpenSearchRestoreSnapshotTest() throws ApiException { + String siteId = null; + String snapshotName = null; + AddResponse response = api.addOpenSearchRestoreSnapshot(siteId, snapshotName); + // TODO: test validations + } + + /** + * Add an OpenSearch Snapshot + * + * Add an OpenSearch Snapshot + * + * @throws ApiException if the Api call fails + */ + @Test + public void addOpenSearchSnapshotTest() throws ApiException { + String siteId = null; + String snapshotName = null; + AddResponse response = api.addOpenSearchSnapshot(siteId, snapshotName); + // TODO: test validations + } + + /** + * Add Site + * + * Add Site + * + * @throws ApiException if the Api call fails + */ + @Test + public void addSiteTest() throws ApiException { + AddSiteRequest addSiteRequest = null; + AddResponse response = api.addSite(addSiteRequest); + // TODO: test validations + } + + /** + * Delete API Key + * + * Adds a new API Key + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteApiKeyTest() throws ApiException { + String siteId = null; + String apiKey = null; + DeleteApiKeyResponse response = api.deleteApiKey(siteId, apiKey); + // TODO: test validations + } + + /** + * Delete Locale + * + * Delete Locale + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteLocaleTest() throws ApiException { + String siteId = null; + String locale = null; + DeleteResponse response = api.deleteLocale(siteId, locale); + // TODO: test validations + } + + /** + * Delete Local Resource Item + * + * Delete Local Resource Item + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteLocaleResourceItemTest() throws ApiException { + String siteId = null; + String locale = null; + String itemKey = null; + DeleteResponse response = api.deleteLocaleResourceItem(siteId, locale, itemKey); + // TODO: test validations + } + + /** + * Deletes site(s) OpenSearch index + * + * Deletes the OpenSearch index + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpenSearchIndexTest() throws ApiException { + String siteId = null; + DeleteResponse response = api.deleteOpenSearchIndex(siteId); + // TODO: test validations + } + + /** + * Deletes OpenSearch index by name + * + * Deletes the OpenSearch index by name + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpenSearchIndexByNameTest() throws ApiException { + String indexName = null; + DeleteResponse response = api.deleteOpenSearchIndexByName(indexName); + // TODO: test validations + } + + /** + * Deletes site(s) OpenSearch Restore Snapshot + * + * Deletes the OpenSearch Restore Snapshot + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpenSearchRestoreSnapshotTest() throws ApiException { + String siteId = null; + String snapshotName = null; + DeleteResponse response = api.deleteOpenSearchRestoreSnapshot(siteId, snapshotName); + // TODO: test validations + } + + /** + * Deletes site(s) OpenSearch Snapshot + * + * Deletes the OpenSearch Snapshot + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpenSearchSnapshotTest() throws ApiException { + String siteId = null; + String snapshotName = null; + DeleteResponse response = api.deleteOpenSearchSnapshot(siteId, snapshotName); + // TODO: test validations + } + + /** + * Deletes site(s) OpenSearch Snapshot Repository + * + * Deletes the OpenSearch Snapshot Repository + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOpenSearchSnapshotRepositoryTest() throws ApiException { + String siteId = null; + DeleteResponse response = api.deleteOpenSearchSnapshotRepository(siteId); + // TODO: test validations + } + + /** + * Deletes Site Group and permissions + * + * Deletes Site Group and permissions + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteSiteGroupTest() throws ApiException { + String siteId = null; + String groupName = null; + DeleteResponse response = api.deleteSiteGroup(siteId, groupName); + // TODO: test validations + } + + /** + * Get all OpenSearch indices + * + * Returns all OpenSearch indices + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAllOpenSearchIndicesTest() throws ApiException { + GetOpenSearchIndiceResponse response = api.getAllOpenSearchIndices(); + // TODO: test validations + } + + /** + * Get API Keys + * + * Returns the list of ApiKeys + * + * @throws ApiException if the Api call fails + */ + @Test + public void getApiKeysTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetApiKeysResponse response = api.getApiKeys(siteId, next, limit); + // TODO: test validations + } + + /** + * Get site configuration + * + * Returns the list of sites that the user has access to + * + * @throws ApiException if the Api call fails + */ + @Test + public void getConfigurationTest() throws ApiException { + String siteId = null; + GetConfigurationResponse response = api.getConfiguration(siteId); + // TODO: test validations + } + + /** + * Get Resource Item by Locale + * + * Returns the resource item + * + * @throws ApiException if the Api call fails + */ + @Test + public void getLocaleResourceItemTest() throws ApiException { + String siteId = null; + String locale = null; + String itemKey = null; + GetLocaleResourceItemResponse response = api.getLocaleResourceItem(siteId, locale, itemKey); + // TODO: test validations + } + + /** + * Get Resource Items by Locale + * + * Returns the list resource items + * + * @throws ApiException if the Api call fails + */ + @Test + public void getLocaleResourceItemsTest() throws ApiException { + String siteId = null; + String locale = null; + String next = null; + String limit = null; + GetLocaleResourceItemsResponse response = + api.getLocaleResourceItems(siteId, locale, next, limit); + // TODO: test validations + } + + /** + * Get Locales + * + * Returns a list of locale(s) in a specified site + * + * @throws ApiException if the Api call fails + */ + @Test + public void getLocalesTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetLocalesResponse response = api.getLocales(siteId, next, limit); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch index settings + * + * Returns the OpenSearch index settings (Deprecated use /sites/{siteId}/opensearch/indices) + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchIndexTest() throws ApiException { + String siteId = null; + GetOpenSearchIndexResponse response = api.getOpenSearchIndex(siteId); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch indices + * + * Returns the OpenSearch indices + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchIndicesTest() throws ApiException { + String siteId = null; + GetOpenSearchIndiceResponse response = api.getOpenSearchIndices(siteId); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch snapshot + * + * Returns the OpenSearch Snapshot + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchSnapshotTest() throws ApiException { + String siteId = null; + String snapshotName = null; + GetOpenSearchSnapshotResponse response = api.getOpenSearchSnapshot(siteId, snapshotName); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch snapshot repositories + * + * Returns the OpenSearch Snapshot Repositories + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchSnapshotRepositoriesTest() throws ApiException { + GetOpenSearchSnapshotRepositoryResponse response = api.getOpenSearchSnapshotRepositories(); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch snapshot repository + * + * Returns the OpenSearch Snapshot Repository + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchSnapshotRepositoryTest() throws ApiException { + String siteId = null; + GetOpenSearchSnapshotRepositoryResponse response = api.getOpenSearchSnapshotRepository(siteId); + // TODO: test validations + } + + /** + * Get site(s) OpenSearch snapshots + * + * Returns the OpenSearch Snapshots + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOpenSearchSnapshotsTest() throws ApiException { + String siteId = null; + GetOpenSearchSnapshotResponse response = api.getOpenSearchSnapshots(siteId); + // TODO: test validations + } + + /** + * Get group and permissions belonging to site + * + * Returns details of a group and permissions belonging to site + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSiteGroupTest() throws ApiException { + String siteId = null; + String groupName = null; + GetSiteGroupResponse response = api.getSiteGroup(siteId, groupName); + // TODO: test validations + } + + /** + * Get group(s) and permissions belonging to site + * + * Returns list of groups and permissions belonging to site + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSiteGroupsTest() throws ApiException { + String siteId = null; + GetSiteGroupsResponse response = api.getSiteGroups(siteId); + // TODO: test validations + } + + /** + * Get site(s) access + * + * Returns the list of sites that the user has access to + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSitesTest() throws ApiException { + SiteStatus status = null; + GetSitesResponse response = api.getSites(status); + // TODO: test validations + } + + /** + * Get FormKiQ version + * + * Return the version of FormKiQ + * + * @throws ApiException if the Api call fails + */ + @Test + public void getVersionTest() throws ApiException { + GetVersionResponse response = api.getVersion(); + // TODO: test validations + } + + /** + * Set Locale Resource Item + * + * Set a new Locale Resource Item + * + * @throws ApiException if the Api call fails + */ + @Test + public void setLocaleResourceItemTest() throws ApiException { + String siteId = null; + String locale = null; + String itemKey = null; + SetLocaleResourceItemRequest setLocaleResourceItemRequest = null; + SetResponse response = + api.setLocaleResourceItem(siteId, locale, itemKey, setLocaleResourceItemRequest); + // TODO: test validations + } + + /** + * Set site(s) OpenSearch index settings + * + * Sets the OpenSearch index settings + * + * @throws ApiException if the Api call fails + */ + @Test + public void setOpenSearchIndexTest() throws ApiException { + String siteId = null; + SetOpenSearchIndexRequest setOpenSearchIndexRequest = null; + SetOpenSearchIndexResponse response = api.setOpenSearchIndex(siteId, setOpenSearchIndexRequest); + // TODO: test validations + } + + /** + * Set site(s) OpenSearch index to use for a SiteId + * + * Sets the OpenSearch index to use for a SiteId + * + * @throws ApiException if the Api call fails + */ + @Test + public void setOpenSearchIndicesTest() throws ApiException { + String siteId = null; + SetOpenSearchIndiceRequest setOpenSearchIndiceRequest = null; + SetResponse response = api.setOpenSearchIndices(siteId, setOpenSearchIndiceRequest); + // TODO: test validations + } + + /** + * Set Site's Group Permissions + * + * Set Site's Group Permissions + * + * @throws ApiException if the Api call fails + */ + @Test + public void setSiteGroupPermissionsTest() throws ApiException { + String siteId = null; + String groupName = null; + SetGroupPermissionsRequest setGroupPermissionsRequest = null; + SetResponse response = + api.setSiteGroupPermissions(siteId, groupName, setGroupPermissionsRequest); + // TODO: test validations + } + + /** + * Update site configuration + * + * Update the System Management configuration + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateConfigurationTest() throws ApiException { + String siteId = null; + UpdateConfigurationRequest updateConfigurationRequest = null; + UpdateConfigurationResponse response = + api.updateConfiguration(siteId, updateConfigurationRequest); + // TODO: test validations + } + + /** + * Update Site + * + * Update Site + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateSiteTest() throws ApiException { + String siteId = null; + UpdateSiteRequest updateSiteRequest = null; + UpdateResponse response = api.updateSite(siteId, updateSiteRequest); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/TagIndexApiTest.java b/src/test/java/com/formkiq/client/api/TagIndexApiTest.java index 8c0bf7fe1..8eb9f6a11 100644 --- a/src/test/java/com/formkiq/client/api/TagIndexApiTest.java +++ b/src/test/java/com/formkiq/client/api/TagIndexApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,22 +38,23 @@ @Disabled public class TagIndexApiTest { - private final TagIndexApi api = new TagIndexApi(); - - /** - * Perform a search on a index; this is currently available for both folder and tag indices - * - * @throws ApiException if the Api call fails - */ - @Test - public void indexSearchTest() throws ApiException { - IndexSearchRequest indexSearchRequest = null; - String siteId = null; - String limit = null; - String next = null; - String previous = null; - IndexSearchResponse response = api.indexSearch(indexSearchRequest, siteId, limit, next, previous); - // TODO: test validations - } + private final TagIndexApi api = new TagIndexApi(); + + /** + * Perform a search on a index; this is currently available for both folder and tag indices + * + * @throws ApiException if the Api call fails + */ + @Test + public void indexSearchTest() throws ApiException { + IndexSearchRequest indexSearchRequest = null; + String siteId = null; + String limit = null; + String next = null; + String previous = null; + IndexSearchResponse response = + api.indexSearch(indexSearchRequest, siteId, limit, next, previous); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/UserActivitiesApiTest.java b/src/test/java/com/formkiq/client/api/UserActivitiesApiTest.java index f79f0d321..8c1519ed5 100644 --- a/src/test/java/com/formkiq/client/api/UserActivitiesApiTest.java +++ b/src/test/java/com/formkiq/client/api/UserActivitiesApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,64 +38,66 @@ @Disabled public class UserActivitiesApiTest { - private final UserActivitiesApi api = new UserActivitiesApi(); + private final UserActivitiesApi api = new UserActivitiesApi(); - /** - * Get user activities for a document - * - * Retrieve a user's activities for a document - * - * @throws ApiException if the Api call fails - */ - @Test - public void getDocumentUserActivitiesTest() throws ApiException { - String documentId = null; - String siteId = null; - String next = null; - String limit = null; - GetUserActivitesResponse response = api.getDocumentUserActivities(documentId, siteId, next, limit); - // TODO: test validations - } + /** + * Get user activities for a document + * + * Retrieve a user's activities for a document + * + * @throws ApiException if the Api call fails + */ + @Test + public void getDocumentUserActivitiesTest() throws ApiException { + String documentId = null; + String siteId = null; + String next = null; + String limit = null; + GetUserActivitesResponse response = + api.getDocumentUserActivities(documentId, siteId, next, limit); + // TODO: test validations + } - /** - * Get resource activities - * - * Retrieve an resource activities - * - * @throws ApiException if the Api call fails - */ - @Test - public void getResourceActivitiesTest() throws ApiException { - String siteId = null; - String documentId = null; - String entityTypeId = null; - String namespace = null; - String entityId = null; - OffsetDateTime start = null; - OffsetDateTime end = null; - String sort = null; - String next = null; - String limit = null; - String userId = null; - GetActivitesResponse response = api.getResourceActivities(siteId, documentId, entityTypeId, namespace, entityId, start, end, sort, next, limit, userId); - // TODO: test validations - } + /** + * Get resource activities + * + * Retrieve an resource activities + * + * @throws ApiException if the Api call fails + */ + @Test + public void getResourceActivitiesTest() throws ApiException { + String siteId = null; + String documentId = null; + String entityTypeId = null; + String namespace = null; + String entityId = null; + OffsetDateTime start = null; + OffsetDateTime end = null; + String sort = null; + String next = null; + String limit = null; + String userId = null; + GetActivitesResponse response = api.getResourceActivities(siteId, documentId, entityTypeId, + namespace, entityId, start, end, sort, next, limit, userId); + // TODO: test validations + } - /** - * Get user activities - * - * Retrieve a user's activities - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUserActivitiesTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - String userId = null; - GetUserActivitesResponse response = api.getUserActivities(siteId, next, limit, userId); - // TODO: test validations - } + /** + * Get user activities + * + * Retrieve a user's activities + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUserActivitiesTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + String userId = null; + GetUserActivitesResponse response = api.getUserActivities(siteId, next, limit, userId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/UserManagementApiTest.java b/src/test/java/com/formkiq/client/api/UserManagementApiTest.java index 188203da5..36c20a43c 100644 --- a/src/test/java/com/formkiq/client/api/UserManagementApiTest.java +++ b/src/test/java/com/formkiq/client/api/UserManagementApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -39,197 +46,197 @@ @Disabled public class UserManagementApiTest { - private final UserManagementApi api = new UserManagementApi(); - - /** - * Add a group - * - * Add a new group - * - * @throws ApiException if the Api call fails - */ - @Test - public void addGroupTest() throws ApiException { - AddGroupRequest addGroupRequest = null; - AddResponse response = api.addGroup(addGroupRequest); - // TODO: test validations - } - - /** - * Add User - * - * Adds a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void addUserTest() throws ApiException { - AddUserRequest addUserRequest = null; - AddResponse response = api.addUser(addUserRequest); - // TODO: test validations - } - - /** - * Add User to a group - * - * Adds a user to a group - * - * @throws ApiException if the Api call fails - */ - @Test - public void addUserToGroupTest() throws ApiException { - String groupName = null; - AddUserRequest addUserRequest = null; - AddResponse response = api.addUserToGroup(groupName, addUserRequest); - // TODO: test validations - } - - /** - * Delete Group - * - * Delete Group - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteGroupTest() throws ApiException { - String groupName = null; - DeleteResponse response = api.deleteGroup(groupName); - // TODO: test validations - } - - /** - * Delete Username - * - * Delete Username - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteUsernameTest() throws ApiException { - String username = null; - DeleteResponse response = api.deleteUsername(username); - // TODO: test validations - } - - /** - * Get a user group - * - * Returns a user group - * - * @throws ApiException if the Api call fails - */ - @Test - public void getGroupTest() throws ApiException { - String groupName = null; - GetGroupResponse response = api.getGroup(groupName); - // TODO: test validations - } - - /** - * Get list of user group(s) - * - * Returns the list of user groups - * - * @throws ApiException if the Api call fails - */ - @Test - public void getGroupsTest() throws ApiException { - String limit = null; - String next = null; - GetGroupsResponse response = api.getGroups(limit, next); - // TODO: test validations - } - - /** - * Returns a list of group user belongs to - * - * Returns a list of group user belongs to - * - * @throws ApiException if the Api call fails - */ - @Test - public void getListOfUserGroupsTest() throws ApiException { - String username = null; - String limit = null; - String next = null; - GetUserGroupsResponse response = api.getListOfUserGroups(username, limit, next); - // TODO: test validations - } - - /** - * Get a user - * - * Returns a user - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUserTest() throws ApiException { - String username = null; - GetUserResponse response = api.getUser(username); - // TODO: test validations - } - - /** - * Get list of user(s) - * - * Returns the list of users - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUsersTest() throws ApiException { - String limit = null; - String next = null; - GetUsersResponse response = api.getUsers(limit, next); - // TODO: test validations - } - - /** - * Get users in a group - * - * Returns the list of users in a group - * - * @throws ApiException if the Api call fails - */ - @Test - public void getUsersInGroupTest() throws ApiException { - String groupName = null; - String limit = null; - String next = null; - GetUsersInGroupResponse response = api.getUsersInGroup(groupName, limit, next); - // TODO: test validations - } - - /** - * Remove Username From Group - * - * Remove Username From Group - * - * @throws ApiException if the Api call fails - */ - @Test - public void removeUsernameFromGroupTest() throws ApiException { - String groupName = null; - String username = null; - DeleteResponse response = api.removeUsernameFromGroup(groupName, username); - // TODO: test validations - } - - /** - * Set User Operation - * - * Set User Operation (disable, enable, reset-password) - * - * @throws ApiException if the Api call fails - */ - @Test - public void setUserOperationTest() throws ApiException { - String username = null; - String userOperation = null; - SetResponse response = api.setUserOperation(username, userOperation); - // TODO: test validations - } + private final UserManagementApi api = new UserManagementApi(); + + /** + * Add a group + * + * Add a new group + * + * @throws ApiException if the Api call fails + */ + @Test + public void addGroupTest() throws ApiException { + AddGroupRequest addGroupRequest = null; + AddResponse response = api.addGroup(addGroupRequest); + // TODO: test validations + } + + /** + * Add User + * + * Adds a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void addUserTest() throws ApiException { + AddUserRequest addUserRequest = null; + AddResponse response = api.addUser(addUserRequest); + // TODO: test validations + } + + /** + * Add User to a group + * + * Adds a user to a group + * + * @throws ApiException if the Api call fails + */ + @Test + public void addUserToGroupTest() throws ApiException { + String groupName = null; + AddUserRequest addUserRequest = null; + AddResponse response = api.addUserToGroup(groupName, addUserRequest); + // TODO: test validations + } + + /** + * Delete Group + * + * Delete Group + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteGroupTest() throws ApiException { + String groupName = null; + DeleteResponse response = api.deleteGroup(groupName); + // TODO: test validations + } + + /** + * Delete Username + * + * Delete Username + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteUsernameTest() throws ApiException { + String username = null; + DeleteResponse response = api.deleteUsername(username); + // TODO: test validations + } + + /** + * Get a user group + * + * Returns a user group + * + * @throws ApiException if the Api call fails + */ + @Test + public void getGroupTest() throws ApiException { + String groupName = null; + GetGroupResponse response = api.getGroup(groupName); + // TODO: test validations + } + + /** + * Get list of user group(s) + * + * Returns the list of user groups + * + * @throws ApiException if the Api call fails + */ + @Test + public void getGroupsTest() throws ApiException { + String limit = null; + String next = null; + GetGroupsResponse response = api.getGroups(limit, next); + // TODO: test validations + } + + /** + * Returns a list of group user belongs to + * + * Returns a list of group user belongs to + * + * @throws ApiException if the Api call fails + */ + @Test + public void getListOfUserGroupsTest() throws ApiException { + String username = null; + String limit = null; + String next = null; + GetUserGroupsResponse response = api.getListOfUserGroups(username, limit, next); + // TODO: test validations + } + + /** + * Get a user + * + * Returns a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUserTest() throws ApiException { + String username = null; + GetUserResponse response = api.getUser(username); + // TODO: test validations + } + + /** + * Get list of user(s) + * + * Returns the list of users + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUsersTest() throws ApiException { + String limit = null; + String next = null; + GetUsersResponse response = api.getUsers(limit, next); + // TODO: test validations + } + + /** + * Get users in a group + * + * Returns the list of users in a group + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUsersInGroupTest() throws ApiException { + String groupName = null; + String limit = null; + String next = null; + GetUsersInGroupResponse response = api.getUsersInGroup(groupName, limit, next); + // TODO: test validations + } + + /** + * Remove Username From Group + * + * Remove Username From Group + * + * @throws ApiException if the Api call fails + */ + @Test + public void removeUsernameFromGroupTest() throws ApiException { + String groupName = null; + String username = null; + DeleteResponse response = api.removeUsernameFromGroup(groupName, username); + // TODO: test validations + } + + /** + * Set User Operation + * + * Set User Operation (disable, enable, reset-password) + * + * @throws ApiException if the Api call fails + */ + @Test + public void setUserOperationTest() throws ApiException { + String username = null; + String userOperation = null; + SetResponse response = api.setUserOperation(username, userOperation); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/api/WebhooksApiTest.java b/src/test/java/com/formkiq/client/api/WebhooksApiTest.java index ab42b6da0..a2cf1b50e 100644 --- a/src/test/java/com/formkiq/client/api/WebhooksApiTest.java +++ b/src/test/java/com/formkiq/client/api/WebhooksApiTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -37,130 +44,134 @@ @Disabled public class WebhooksApiTest { - private final WebhooksApi api = new WebhooksApi(); + private final WebhooksApi api = new WebhooksApi(); - /** - * Add webhook - * - * Create a new webhook; once created, a webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook - * - * @throws ApiException if the Api call fails - */ - @Test - public void addWebhookTest() throws ApiException { - AddWebhookRequest addWebhookRequest = null; - String siteId = null; - AddWebhookResponse response = api.addWebhook(addWebhookRequest, siteId); - // TODO: test validations - } + /** + * Add webhook + * + * Create a new webhook; once created, a webhook's id can be provided to an external service, + * allowing data to be sent, received, and processed via that webhook + * + * @throws ApiException if the Api call fails + */ + @Test + public void addWebhookTest() throws ApiException { + AddWebhookRequest addWebhookRequest = null; + String siteId = null; + AddWebhookResponse response = api.addWebhook(addWebhookRequest, siteId); + // TODO: test validations + } - /** - * Add webhook - * - * Receive an incoming private webhook and creates a document based on the webhook's body; requires authentication - * - * @throws ApiException if the Api call fails - */ - @Test - public void addWebhookDocumentTest() throws ApiException { - String webhooksPlus = null; - Object body = null; - String siteId = null; - DocumentId response = api.addWebhookDocument(webhooksPlus, body, siteId); - // TODO: test validations - } + /** + * Add webhook + * + * Receive an incoming private webhook and creates a document based on the webhook's body; + * requires authentication + * + * @throws ApiException if the Api call fails + */ + @Test + public void addWebhookDocumentTest() throws ApiException { + String webhooksPlus = null; + Object body = null; + String siteId = null; + DocumentId response = api.addWebhookDocument(webhooksPlus, body, siteId); + // TODO: test validations + } - /** - * Add webhook tag - * - * Add a tag to a webhook - * - * @throws ApiException if the Api call fails - */ - @Test - public void addWebhookTagTest() throws ApiException { - String webhookId = null; - AddWebhookTagRequest addWebhookTagRequest = null; - String siteId = null; - api.addWebhookTag(webhookId, addWebhookTagRequest, siteId); - // TODO: test validations - } + /** + * Add webhook tag + * + * Add a tag to a webhook + * + * @throws ApiException if the Api call fails + */ + @Test + public void addWebhookTagTest() throws ApiException { + String webhookId = null; + AddWebhookTagRequest addWebhookTagRequest = null; + String siteId = null; + api.addWebhookTag(webhookId, addWebhookTagRequest, siteId); + // TODO: test validations + } - /** - * Delete webhook - * - * Delete a webhook; this will disable sending, receiving, or processing of data from external services to this webhook - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteWebhookTest() throws ApiException { - String webhookId = null; - String siteId = null; - DeleteResponse response = api.deleteWebhook(webhookId, siteId); - // TODO: test validations - } + /** + * Delete webhook + * + * Delete a webhook; this will disable sending, receiving, or processing of data from external + * services to this webhook + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteWebhookTest() throws ApiException { + String webhookId = null; + String siteId = null; + DeleteResponse response = api.deleteWebhook(webhookId, siteId); + // TODO: test validations + } - /** - * Get webhook - * - * Return a webhook's details, i.e., its metadata - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWebhookTest() throws ApiException { - String webhookId = null; - String siteId = null; - GetWebhookResponse response = api.getWebhook(webhookId, siteId); - // TODO: test validations - } + /** + * Get webhook + * + * Return a webhook's details, i.e., its metadata + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWebhookTest() throws ApiException { + String webhookId = null; + String siteId = null; + GetWebhookResponse response = api.getWebhook(webhookId, siteId); + // TODO: test validations + } - /** - * Get webhook tags - * - * Get a webhook's tags - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWebhookTagsTest() throws ApiException { - String webhookId = null; - String siteId = null; - GetWebhookTagsResponse response = api.getWebhookTags(webhookId, siteId); - // TODO: test validations - } + /** + * Get webhook tags + * + * Get a webhook's tags + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWebhookTagsTest() throws ApiException { + String webhookId = null; + String siteId = null; + GetWebhookTagsResponse response = api.getWebhookTags(webhookId, siteId); + // TODO: test validations + } - /** - * Get webhooks - * - * Return a list of webhooks; each webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook - * - * @throws ApiException if the Api call fails - */ - @Test - public void getWebhooksTest() throws ApiException { - String siteId = null; - String next = null; - String limit = null; - GetWebhooksResponse response = api.getWebhooks(siteId, next, limit); - // TODO: test validations - } + /** + * Get webhooks + * + * Return a list of webhooks; each webhook's id can be provided to an external service, + * allowing data to be sent, received, and processed via that webhook + * + * @throws ApiException if the Api call fails + */ + @Test + public void getWebhooksTest() throws ApiException { + String siteId = null; + String next = null; + String limit = null; + GetWebhooksResponse response = api.getWebhooks(siteId, next, limit); + // TODO: test validations + } - /** - * Update webhook - * - * Updates a webhook's details, i.e., its metadata - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateWebhookTest() throws ApiException { - String webhookId = null; - AddWebhookRequest addWebhookRequest = null; - String siteId = null; - UpdateResponse response = api.updateWebhook(webhookId, addWebhookRequest, siteId); - // TODO: test validations - } + /** + * Update webhook + * + * Updates a webhook's details, i.e., its metadata + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateWebhookTest() throws ApiException { + String webhookId = null; + AddWebhookRequest addWebhookRequest = null; + String siteId = null; + UpdateResponse response = api.updateWebhook(webhookId, addWebhookRequest, siteId); + // TODO: test validations + } } diff --git a/src/test/java/com/formkiq/client/model/ActivityStatusTest.java b/src/test/java/com/formkiq/client/model/ActivityStatusTest.java index 7f010e165..883d67a43 100644 --- a/src/test/java/com/formkiq/client/model/ActivityStatusTest.java +++ b/src/test/java/com/formkiq/client/model/ActivityStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for ActivityStatus */ public class ActivityStatusTest { - /** - * Model tests for ActivityStatus - */ - @Test - public void testActivityStatus() { - // TODO: test ActivityStatus - } + /** + * Model tests for ActivityStatus + */ + @Test + public void testActivityStatus() { + // TODO: test ActivityStatus + } } diff --git a/src/test/java/com/formkiq/client/model/ActivityTest.java b/src/test/java/com/formkiq/client/model/ActivityTest.java index 680c841b7..0dabcdbcf 100644 --- a/src/test/java/com/formkiq/client/model/ActivityTest.java +++ b/src/test/java/com/formkiq/client/model/ActivityTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,118 +39,118 @@ * Model tests for Activity */ public class ActivityTest { - private final Activity model = new Activity(); - - /** - * Model tests for Activity - */ - @Test - public void testActivity() { - // TODO: test Activity - } - - /** - * Test the property 'resource' - */ - @Test - public void resourceTest() { - // TODO: test resource - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'source' - */ - @Test - public void sourceTest() { - // TODO: test source - } - - /** - * Test the property 'sourceIpAddress' - */ - @Test - public void sourceIpAddressTest() { - // TODO: test sourceIpAddress - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } - - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } - - /** - * Test the property 'entityId' - */ - @Test - public void entityIdTest() { - // TODO: test entityId - } - - /** - * Test the property 'changes' - */ - @Test - public void changesTest() { - // TODO: test changes - } + private final Activity model = new Activity(); + + /** + * Model tests for Activity + */ + @Test + public void testActivity() { + // TODO: test Activity + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + + /** + * Test the property 'sourceIpAddress' + */ + @Test + public void sourceIpAddressTest() { + // TODO: test sourceIpAddress + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } + + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } + + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } + + /** + * Test the property 'changes' + */ + @Test + public void changesTest() { + // TODO: test changes + } } diff --git a/src/test/java/com/formkiq/client/model/AddActionParametersTest.java b/src/test/java/com/formkiq/client/model/AddActionParametersTest.java index 3dc04fc72..fcb92d552 100644 --- a/src/test/java/com/formkiq/client/model/AddActionParametersTest.java +++ b/src/test/java/com/formkiq/client/model/AddActionParametersTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,198 +39,198 @@ * Model tests for AddActionParameters */ public class AddActionParametersTest { - private final AddActionParameters model = new AddActionParameters(); - - /** - * Model tests for AddActionParameters - */ - @Test - public void testAddActionParameters() { - // TODO: test AddActionParameters - } - - /** - * Test the property 'ocrTextractQueries' - */ - @Test - public void ocrTextractQueriesTest() { - // TODO: test ocrTextractQueries - } - - /** - * Test the property 'ocrParseTypes' - */ - @Test - public void ocrParseTypesTest() { - // TODO: test ocrParseTypes - } - - /** - * Test the property 'ocrEngine' - */ - @Test - public void ocrEngineTest() { - // TODO: test ocrEngine - } - - /** - * Test the property 'ocrOutputType' - */ - @Test - public void ocrOutputTypeTest() { - // TODO: test ocrOutputType - } - - /** - * Test the property 'ocrNumberOfPages' - */ - @Test - public void ocrNumberOfPagesTest() { - // TODO: test ocrNumberOfPages - } - - /** - * Test the property 'addPdfDetectedCharactersAsText' - */ - @Test - public void addPdfDetectedCharactersAsTextTest() { - // TODO: test addPdfDetectedCharactersAsText - } - - /** - * Test the property 'llmPromptEntityName' - */ - @Test - public void llmPromptEntityNameTest() { - // TODO: test llmPromptEntityName - } - - /** - * Test the property 'url' - */ - @Test - public void urlTest() { - // TODO: test url - } - - /** - * Test the property 'characterMax' - */ - @Test - public void characterMaxTest() { - // TODO: test characterMax - } - - /** - * Test the property 'engine' - */ - @Test - public void engineTest() { - // TODO: test engine - } - - /** - * Test the property 'notificationType' - */ - @Test - public void notificationTypeTest() { - // TODO: test notificationType - } - - /** - * Test the property 'notificationToCc' - */ - @Test - public void notificationToCcTest() { - // TODO: test notificationToCc - } - - /** - * Test the property 'notificationToBcc' - */ - @Test - public void notificationToBccTest() { - // TODO: test notificationToBcc - } - - /** - * Test the property 'notificationSubject' - */ - @Test - public void notificationSubjectTest() { - // TODO: test notificationSubject - } - - /** - * Test the property 'notificationText' - */ - @Test - public void notificationTextTest() { - // TODO: test notificationText - } - - /** - * Test the property 'notificationHtml' - */ - @Test - public void notificationHtmlTest() { - // TODO: test notificationHtml - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'mappingId' - */ - @Test - public void mappingIdTest() { - // TODO: test mappingId - } - - /** - * Test the property 'eventBusName' - */ - @Test - public void eventBusNameTest() { - // TODO: test eventBusName - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'outputType' - */ - @Test - public void outputTypeTest() { - // TODO: test outputType - } + private final AddActionParameters model = new AddActionParameters(); + + /** + * Model tests for AddActionParameters + */ + @Test + public void testAddActionParameters() { + // TODO: test AddActionParameters + } + + /** + * Test the property 'ocrTextractQueries' + */ + @Test + public void ocrTextractQueriesTest() { + // TODO: test ocrTextractQueries + } + + /** + * Test the property 'ocrParseTypes' + */ + @Test + public void ocrParseTypesTest() { + // TODO: test ocrParseTypes + } + + /** + * Test the property 'ocrEngine' + */ + @Test + public void ocrEngineTest() { + // TODO: test ocrEngine + } + + /** + * Test the property 'ocrOutputType' + */ + @Test + public void ocrOutputTypeTest() { + // TODO: test ocrOutputType + } + + /** + * Test the property 'ocrNumberOfPages' + */ + @Test + public void ocrNumberOfPagesTest() { + // TODO: test ocrNumberOfPages + } + + /** + * Test the property 'addPdfDetectedCharactersAsText' + */ + @Test + public void addPdfDetectedCharactersAsTextTest() { + // TODO: test addPdfDetectedCharactersAsText + } + + /** + * Test the property 'llmPromptEntityName' + */ + @Test + public void llmPromptEntityNameTest() { + // TODO: test llmPromptEntityName + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'characterMax' + */ + @Test + public void characterMaxTest() { + // TODO: test characterMax + } + + /** + * Test the property 'engine' + */ + @Test + public void engineTest() { + // TODO: test engine + } + + /** + * Test the property 'notificationType' + */ + @Test + public void notificationTypeTest() { + // TODO: test notificationType + } + + /** + * Test the property 'notificationToCc' + */ + @Test + public void notificationToCcTest() { + // TODO: test notificationToCc + } + + /** + * Test the property 'notificationToBcc' + */ + @Test + public void notificationToBccTest() { + // TODO: test notificationToBcc + } + + /** + * Test the property 'notificationSubject' + */ + @Test + public void notificationSubjectTest() { + // TODO: test notificationSubject + } + + /** + * Test the property 'notificationText' + */ + @Test + public void notificationTextTest() { + // TODO: test notificationText + } + + /** + * Test the property 'notificationHtml' + */ + @Test + public void notificationHtmlTest() { + // TODO: test notificationHtml + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'mappingId' + */ + @Test + public void mappingIdTest() { + // TODO: test mappingId + } + + /** + * Test the property 'eventBusName' + */ + @Test + public void eventBusNameTest() { + // TODO: test eventBusName + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'outputType' + */ + @Test + public void outputTypeTest() { + // TODO: test outputType + } } diff --git a/src/test/java/com/formkiq/client/model/AddActionTest.java b/src/test/java/com/formkiq/client/model/AddActionTest.java index 79a176d9e..0f84821f5 100644 --- a/src/test/java/com/formkiq/client/model/AddActionTest.java +++ b/src/test/java/com/formkiq/client/model/AddActionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,38 +36,38 @@ * Model tests for AddAction */ public class AddActionTest { - private final AddAction model = new AddAction(); + private final AddAction model = new AddAction(); - /** - * Model tests for AddAction - */ - @Test - public void testAddAction() { - // TODO: test AddAction - } + /** + * Model tests for AddAction + */ + @Test + public void testAddAction() { + // TODO: test AddAction + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'parameters' - */ - @Test - public void parametersTest() { - // TODO: test parameters - } + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } } diff --git a/src/test/java/com/formkiq/client/model/AddApiKeyPermissionTest.java b/src/test/java/com/formkiq/client/model/AddApiKeyPermissionTest.java deleted file mode 100644 index 4d1681cdb..000000000 --- a/src/test/java/com/formkiq/client/model/AddApiKeyPermissionTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key - * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.formkiq.client.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AddApiKeyPermission - */ -public class AddApiKeyPermissionTest { - /** - * Model tests for AddApiKeyPermission - */ - @Test - public void testAddApiKeyPermission() { - // TODO: test AddApiKeyPermission - } - -} diff --git a/src/test/java/com/formkiq/client/model/AddApiKeyRequestTest.java b/src/test/java/com/formkiq/client/model/AddApiKeyRequestTest.java index ed14f7ca6..16e8c2cd1 100644 --- a/src/test/java/com/formkiq/client/model/AddApiKeyRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddApiKeyRequestTest.java @@ -1,19 +1,26 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ package com.formkiq.client.model; -import com.formkiq.client.model.AddApiKeyPermission; +import com.formkiq.client.model.ApiKeyPermission; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,38 +37,38 @@ * Model tests for AddApiKeyRequest */ public class AddApiKeyRequestTest { - private final AddApiKeyRequest model = new AddApiKeyRequest(); + private final AddApiKeyRequest model = new AddApiKeyRequest(); - /** - * Model tests for AddApiKeyRequest - */ - @Test - public void testAddApiKeyRequest() { - // TODO: test AddApiKeyRequest - } + /** + * Model tests for AddApiKeyRequest + */ + @Test + public void testAddApiKeyRequest() { + // TODO: test AddApiKeyRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'groups' - */ - @Test - public void groupsTest() { - // TODO: test groups - } + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/AddApiKeyResponseTest.java b/src/test/java/com/formkiq/client/model/AddApiKeyResponseTest.java index 6f63405dc..837fb4897 100644 --- a/src/test/java/com/formkiq/client/model/AddApiKeyResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddApiKeyResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddApiKeyResponse */ public class AddApiKeyResponseTest { - private final AddApiKeyResponse model = new AddApiKeyResponse(); + private final AddApiKeyResponse model = new AddApiKeyResponse(); - /** - * Model tests for AddApiKeyResponse - */ - @Test - public void testAddApiKeyResponse() { - // TODO: test AddApiKeyResponse - } + /** + * Model tests for AddApiKeyResponse + */ + @Test + public void testAddApiKeyResponse() { + // TODO: test AddApiKeyResponse + } - /** - * Test the property 'apiKey' - */ - @Test - public void apiKeyTest() { - // TODO: test apiKey - } + /** + * Test the property 'apiKey' + */ + @Test + public void apiKeyTest() { + // TODO: test apiKey + } } diff --git a/src/test/java/com/formkiq/client/model/AddAttributeRequestTest.java b/src/test/java/com/formkiq/client/model/AddAttributeRequestTest.java index 064df3828..2b11d91a2 100644 --- a/src/test/java/com/formkiq/client/model/AddAttributeRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddAttributeRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddAttributeRequest */ public class AddAttributeRequestTest { - private final AddAttributeRequest model = new AddAttributeRequest(); + private final AddAttributeRequest model = new AddAttributeRequest(); - /** - * Model tests for AddAttributeRequest - */ - @Test - public void testAddAttributeRequest() { - // TODO: test AddAttributeRequest - } + /** + * Model tests for AddAttributeRequest + */ + @Test + public void testAddAttributeRequest() { + // TODO: test AddAttributeRequest + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } } diff --git a/src/test/java/com/formkiq/client/model/AddAttributeSchemaOptionalTest.java b/src/test/java/com/formkiq/client/model/AddAttributeSchemaOptionalTest.java index 73c5780b2..25379bae9 100644 --- a/src/test/java/com/formkiq/client/model/AddAttributeSchemaOptionalTest.java +++ b/src/test/java/com/formkiq/client/model/AddAttributeSchemaOptionalTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,46 +37,46 @@ * Model tests for AddAttributeSchemaOptional */ public class AddAttributeSchemaOptionalTest { - private final AddAttributeSchemaOptional model = new AddAttributeSchemaOptional(); + private final AddAttributeSchemaOptional model = new AddAttributeSchemaOptional(); - /** - * Model tests for AddAttributeSchemaOptional - */ - @Test - public void testAddAttributeSchemaOptional() { - // TODO: test AddAttributeSchemaOptional - } + /** + * Model tests for AddAttributeSchemaOptional + */ + @Test + public void testAddAttributeSchemaOptional() { + // TODO: test AddAttributeSchemaOptional + } - /** - * Test the property 'minNumberOfValues' - */ - @Test - public void minNumberOfValuesTest() { - // TODO: test minNumberOfValues - } + /** + * Test the property 'minNumberOfValues' + */ + @Test + public void minNumberOfValuesTest() { + // TODO: test minNumberOfValues + } - /** - * Test the property 'maxNumberOfValues' - */ - @Test - public void maxNumberOfValuesTest() { - // TODO: test maxNumberOfValues - } + /** + * Test the property 'maxNumberOfValues' + */ + @Test + public void maxNumberOfValuesTest() { + // TODO: test maxNumberOfValues + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValues' - */ - @Test - public void allowedValuesTest() { - // TODO: test allowedValues - } + /** + * Test the property 'allowedValues' + */ + @Test + public void allowedValuesTest() { + // TODO: test allowedValues + } } diff --git a/src/test/java/com/formkiq/client/model/AddAttributeSchemaRequiredTest.java b/src/test/java/com/formkiq/client/model/AddAttributeSchemaRequiredTest.java index 06612311f..d765fca18 100644 --- a/src/test/java/com/formkiq/client/model/AddAttributeSchemaRequiredTest.java +++ b/src/test/java/com/formkiq/client/model/AddAttributeSchemaRequiredTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,62 +37,62 @@ * Model tests for AddAttributeSchemaRequired */ public class AddAttributeSchemaRequiredTest { - private final AddAttributeSchemaRequired model = new AddAttributeSchemaRequired(); + private final AddAttributeSchemaRequired model = new AddAttributeSchemaRequired(); - /** - * Model tests for AddAttributeSchemaRequired - */ - @Test - public void testAddAttributeSchemaRequired() { - // TODO: test AddAttributeSchemaRequired - } + /** + * Model tests for AddAttributeSchemaRequired + */ + @Test + public void testAddAttributeSchemaRequired() { + // TODO: test AddAttributeSchemaRequired + } - /** - * Test the property 'minNumberOfValues' - */ - @Test - public void minNumberOfValuesTest() { - // TODO: test minNumberOfValues - } + /** + * Test the property 'minNumberOfValues' + */ + @Test + public void minNumberOfValuesTest() { + // TODO: test minNumberOfValues + } - /** - * Test the property 'maxNumberOfValues' - */ - @Test - public void maxNumberOfValuesTest() { - // TODO: test maxNumberOfValues - } + /** + * Test the property 'maxNumberOfValues' + */ + @Test + public void maxNumberOfValuesTest() { + // TODO: test maxNumberOfValues + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'defaultValue' - */ - @Test - public void defaultValueTest() { - // TODO: test defaultValue - } + /** + * Test the property 'defaultValue' + */ + @Test + public void defaultValueTest() { + // TODO: test defaultValue + } - /** - * Test the property 'defaultValues' - */ - @Test - public void defaultValuesTest() { - // TODO: test defaultValues - } + /** + * Test the property 'defaultValues' + */ + @Test + public void defaultValuesTest() { + // TODO: test defaultValues + } - /** - * Test the property 'allowedValues' - */ - @Test - public void allowedValuesTest() { - // TODO: test allowedValues - } + /** + * Test the property 'allowedValues' + */ + @Test + public void allowedValuesTest() { + // TODO: test allowedValues + } } diff --git a/src/test/java/com/formkiq/client/model/AddAttributeTest.java b/src/test/java/com/formkiq/client/model/AddAttributeTest.java index 495cc114c..95dc2451d 100644 --- a/src/test/java/com/formkiq/client/model/AddAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/AddAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,46 +37,46 @@ * Model tests for AddAttribute */ public class AddAttributeTest { - private final AddAttribute model = new AddAttribute(); + private final AddAttribute model = new AddAttribute(); - /** - * Model tests for AddAttribute - */ - @Test - public void testAddAttribute() { - // TODO: test AddAttribute - } + /** + * Model tests for AddAttribute + */ + @Test + public void testAddAttribute() { + // TODO: test AddAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'dataType' - */ - @Test - public void dataTypeTest() { - // TODO: test dataType - } + /** + * Test the property 'dataType' + */ + @Test + public void dataTypeTest() { + // TODO: test dataType + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'watermark' - */ - @Test - public void watermarkTest() { - // TODO: test watermark - } + /** + * Test the property 'watermark' + */ + @Test + public void watermarkTest() { + // TODO: test watermark + } } diff --git a/src/test/java/com/formkiq/client/model/AddCaseRequestTest.java b/src/test/java/com/formkiq/client/model/AddCaseRequestTest.java index ad5a7fbab..80474be28 100644 --- a/src/test/java/com/formkiq/client/model/AddCaseRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddCaseRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddCaseRequest */ public class AddCaseRequestTest { - private final AddCaseRequest model = new AddCaseRequest(); + private final AddCaseRequest model = new AddCaseRequest(); - /** - * Model tests for AddCaseRequest - */ - @Test - public void testAddCaseRequest() { - // TODO: test AddCaseRequest - } + /** + * Model tests for AddCaseRequest + */ + @Test + public void testAddCaseRequest() { + // TODO: test AddCaseRequest + } - /** - * Test the property '_case' - */ - @Test - public void _caseTest() { - // TODO: test _case - } + /** + * Test the property '_case' + */ + @Test + public void _caseTest() { + // TODO: test _case + } } diff --git a/src/test/java/com/formkiq/client/model/AddCaseResponseTest.java b/src/test/java/com/formkiq/client/model/AddCaseResponseTest.java index 94323f160..1466709d0 100644 --- a/src/test/java/com/formkiq/client/model/AddCaseResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddCaseResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddCaseResponse */ public class AddCaseResponseTest { - private final AddCaseResponse model = new AddCaseResponse(); + private final AddCaseResponse model = new AddCaseResponse(); - /** - * Model tests for AddCaseResponse - */ - @Test - public void testAddCaseResponse() { - // TODO: test AddCaseResponse - } + /** + * Model tests for AddCaseResponse + */ + @Test + public void testAddCaseResponse() { + // TODO: test AddCaseResponse + } - /** - * Test the property 'caseId' - */ - @Test - public void caseIdTest() { - // TODO: test caseId - } + /** + * Test the property 'caseId' + */ + @Test + public void caseIdTest() { + // TODO: test caseId + } } diff --git a/src/test/java/com/formkiq/client/model/AddCaseTest.java b/src/test/java/com/formkiq/client/model/AddCaseTest.java index 594296ed4..f697e4518 100644 --- a/src/test/java/com/formkiq/client/model/AddCaseTest.java +++ b/src/test/java/com/formkiq/client/model/AddCaseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -33,102 +40,102 @@ * Model tests for AddCase */ public class AddCaseTest { - private final AddCase model = new AddCase(); - - /** - * Model tests for AddCase - */ - @Test - public void testAddCase() { - // TODO: test AddCase - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } - - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } - - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } - - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'documentNumberFormat' - */ - @Test - public void documentNumberFormatTest() { - // TODO: test documentNumberFormat - } - - /** - * Test the property 'caseNumberFormat' - */ - @Test - public void caseNumberFormatTest() { - // TODO: test caseNumberFormat - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + private final AddCase model = new AddCase(); + + /** + * Model tests for AddCase + */ + @Test + public void testAddCase() { + // TODO: test AddCase + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } + + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'documentNumberFormat' + */ + @Test + public void documentNumberFormatTest() { + // TODO: test documentNumberFormat + } + + /** + * Test the property 'caseNumberFormat' + */ + @Test + public void caseNumberFormatTest() { + // TODO: test caseNumberFormat + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/AddChildDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/AddChildDocumentResponseTest.java index 5e36eadb7..bfb278f1f 100644 --- a/src/test/java/com/formkiq/client/model/AddChildDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddChildDocumentResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,38 +36,38 @@ * Model tests for AddChildDocumentResponse */ public class AddChildDocumentResponseTest { - private final AddChildDocumentResponse model = new AddChildDocumentResponse(); + private final AddChildDocumentResponse model = new AddChildDocumentResponse(); - /** - * Model tests for AddChildDocumentResponse - */ - @Test - public void testAddChildDocumentResponse() { - // TODO: test AddChildDocumentResponse - } + /** + * Model tests for AddChildDocumentResponse + */ + @Test + public void testAddChildDocumentResponse() { + // TODO: test AddChildDocumentResponse + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'uploadUrl' - */ - @Test - public void uploadUrlTest() { - // TODO: test uploadUrl - } + /** + * Test the property 'uploadUrl' + */ + @Test + public void uploadUrlTest() { + // TODO: test uploadUrl + } - /** - * Test the property 'headers' - */ - @Test - public void headersTest() { - // TODO: test headers - } + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } } diff --git a/src/test/java/com/formkiq/client/model/AddChildDocumentTest.java b/src/test/java/com/formkiq/client/model/AddChildDocumentTest.java index 4f1670933..c0df5915f 100644 --- a/src/test/java/com/formkiq/client/model/AddChildDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/AddChildDocumentTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,102 +39,102 @@ * Model tests for AddChildDocument */ public class AddChildDocumentTest { - private final AddChildDocument model = new AddChildDocument(); - - /** - * Model tests for AddChildDocument - */ - @Test - public void testAddChildDocument() { - // TODO: test AddChildDocument - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final AddChildDocument model = new AddChildDocument(); + + /** + * Model tests for AddChildDocument + */ + @Test + public void testAddChildDocument() { + // TODO: test AddChildDocument + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/AddClassificationRequestTest.java b/src/test/java/com/formkiq/client/model/AddClassificationRequestTest.java index 42eab0306..9410b5b4a 100644 --- a/src/test/java/com/formkiq/client/model/AddClassificationRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddClassificationRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddClassificationRequest */ public class AddClassificationRequestTest { - private final AddClassificationRequest model = new AddClassificationRequest(); + private final AddClassificationRequest model = new AddClassificationRequest(); - /** - * Model tests for AddClassificationRequest - */ - @Test - public void testAddClassificationRequest() { - // TODO: test AddClassificationRequest - } + /** + * Model tests for AddClassificationRequest + */ + @Test + public void testAddClassificationRequest() { + // TODO: test AddClassificationRequest + } - /** - * Test the property 'classification' - */ - @Test - public void classificationTest() { - // TODO: test classification - } + /** + * Test the property 'classification' + */ + @Test + public void classificationTest() { + // TODO: test classification + } } diff --git a/src/test/java/com/formkiq/client/model/AddClassificationResponseTest.java b/src/test/java/com/formkiq/client/model/AddClassificationResponseTest.java index 957668d89..30d09dd98 100644 --- a/src/test/java/com/formkiq/client/model/AddClassificationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddClassificationResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddClassificationResponse */ public class AddClassificationResponseTest { - private final AddClassificationResponse model = new AddClassificationResponse(); + private final AddClassificationResponse model = new AddClassificationResponse(); - /** - * Model tests for AddClassificationResponse - */ - @Test - public void testAddClassificationResponse() { - // TODO: test AddClassificationResponse - } + /** + * Model tests for AddClassificationResponse + */ + @Test + public void testAddClassificationResponse() { + // TODO: test AddClassificationResponse + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } } diff --git a/src/test/java/com/formkiq/client/model/AddClassificationTest.java b/src/test/java/com/formkiq/client/model/AddClassificationTest.java index ef00658b9..3effce755 100644 --- a/src/test/java/com/formkiq/client/model/AddClassificationTest.java +++ b/src/test/java/com/formkiq/client/model/AddClassificationTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for AddClassification */ public class AddClassificationTest { - private final AddClassification model = new AddClassification(); - - /** - * Model tests for AddClassification - */ - @Test - public void testAddClassification() { - // TODO: test AddClassification - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final AddClassification model = new AddClassification(); + + /** + * Model tests for AddClassification + */ + @Test + public void testAddClassification() { + // TODO: test AddClassification + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentActionsRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentActionsRequestTest.java index 8ec212523..cb4398f90 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentActionsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentActionsRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for AddDocumentActionsRequest */ public class AddDocumentActionsRequestTest { - private final AddDocumentActionsRequest model = new AddDocumentActionsRequest(); + private final AddDocumentActionsRequest model = new AddDocumentActionsRequest(); - /** - * Model tests for AddDocumentActionsRequest - */ - @Test - public void testAddDocumentActionsRequest() { - // TODO: test AddDocumentActionsRequest - } + /** + * Model tests for AddDocumentActionsRequest + */ + @Test + public void testAddDocumentActionsRequest() { + // TODO: test AddDocumentActionsRequest + } - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentActionsResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentActionsResponseTest.java index 440e616e3..d4e81f370 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentActionsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentActionsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddDocumentActionsResponse */ public class AddDocumentActionsResponseTest { - private final AddDocumentActionsResponse model = new AddDocumentActionsResponse(); + private final AddDocumentActionsResponse model = new AddDocumentActionsResponse(); - /** - * Model tests for AddDocumentActionsResponse - */ - @Test - public void testAddDocumentActionsResponse() { - // TODO: test AddDocumentActionsResponse - } + /** + * Model tests for AddDocumentActionsResponse + */ + @Test + public void testAddDocumentActionsResponse() { + // TODO: test AddDocumentActionsResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentActionsRetryResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentActionsRetryResponseTest.java index 76c381ebe..f4a4b253a 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentActionsRetryResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentActionsRetryResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddDocumentActionsRetryResponse */ public class AddDocumentActionsRetryResponseTest { - private final AddDocumentActionsRetryResponse model = new AddDocumentActionsRetryResponse(); + private final AddDocumentActionsRetryResponse model = new AddDocumentActionsRetryResponse(); - /** - * Model tests for AddDocumentActionsRetryResponse - */ - @Test - public void testAddDocumentActionsRetryResponse() { - // TODO: test AddDocumentActionsRetryResponse - } + /** + * Model tests for AddDocumentActionsRetryResponse + */ + @Test + public void testAddDocumentActionsRetryResponse() { + // TODO: test AddDocumentActionsRetryResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeClassificationTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeClassificationTest.java index 4d8e0a191..e58ae9e24 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeClassificationTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeClassificationTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddDocumentAttributeClassification */ public class AddDocumentAttributeClassificationTest { - private final AddDocumentAttributeClassification model = new AddDocumentAttributeClassification(); + private final AddDocumentAttributeClassification model = new AddDocumentAttributeClassification(); - /** - * Model tests for AddDocumentAttributeClassification - */ - @Test - public void testAddDocumentAttributeClassification() { - // TODO: test AddDocumentAttributeClassification - } + /** + * Model tests for AddDocumentAttributeClassification + */ + @Test + public void testAddDocumentAttributeClassification() { + // TODO: test AddDocumentAttributeClassification + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeEntityTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeEntityTest.java index a7b7eb3f8..5a4cff158 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeEntityTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeEntityTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,46 +35,46 @@ * Model tests for AddDocumentAttributeEntity */ public class AddDocumentAttributeEntityTest { - private final AddDocumentAttributeEntity model = new AddDocumentAttributeEntity(); + private final AddDocumentAttributeEntity model = new AddDocumentAttributeEntity(); - /** - * Model tests for AddDocumentAttributeEntity - */ - @Test - public void testAddDocumentAttributeEntity() { - // TODO: test AddDocumentAttributeEntity - } + /** + * Model tests for AddDocumentAttributeEntity + */ + @Test + public void testAddDocumentAttributeEntity() { + // TODO: test AddDocumentAttributeEntity + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } - /** - * Test the property 'entityId' - */ - @Test - public void entityIdTest() { - // TODO: test entityId - } + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeRelationshipTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeRelationshipTest.java index a2fa582af..b58645bce 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeRelationshipTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeRelationshipTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,38 +35,38 @@ * Model tests for AddDocumentAttributeRelationship */ public class AddDocumentAttributeRelationshipTest { - private final AddDocumentAttributeRelationship model = new AddDocumentAttributeRelationship(); + private final AddDocumentAttributeRelationship model = new AddDocumentAttributeRelationship(); - /** - * Model tests for AddDocumentAttributeRelationship - */ - @Test - public void testAddDocumentAttributeRelationship() { - // TODO: test AddDocumentAttributeRelationship - } + /** + * Model tests for AddDocumentAttributeRelationship + */ + @Test + public void testAddDocumentAttributeRelationship() { + // TODO: test AddDocumentAttributeRelationship + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'relationship' - */ - @Test - public void relationshipTest() { - // TODO: test relationship - } + /** + * Test the property 'relationship' + */ + @Test + public void relationshipTest() { + // TODO: test relationship + } - /** - * Test the property 'inverseRelationship' - */ - @Test - public void inverseRelationshipTest() { - // TODO: test inverseRelationship - } + /** + * Test the property 'inverseRelationship' + */ + @Test + public void inverseRelationshipTest() { + // TODO: test inverseRelationship + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeStandardTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeStandardTest.java index bfeffddfb..b9a1da245 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeStandardTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeStandardTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,62 +37,62 @@ * Model tests for AddDocumentAttributeStandard */ public class AddDocumentAttributeStandardTest { - private final AddDocumentAttributeStandard model = new AddDocumentAttributeStandard(); + private final AddDocumentAttributeStandard model = new AddDocumentAttributeStandard(); - /** - * Model tests for AddDocumentAttributeStandard - */ - @Test - public void testAddDocumentAttributeStandard() { - // TODO: test AddDocumentAttributeStandard - } + /** + * Model tests for AddDocumentAttributeStandard + */ + @Test + public void testAddDocumentAttributeStandard() { + // TODO: test AddDocumentAttributeStandard + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeTest.java index 4d6b3e9c8..3f3a27c69 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -36,118 +43,118 @@ * Model tests for AddDocumentAttribute */ public class AddDocumentAttributeTest { - private final AddDocumentAttribute model = new AddDocumentAttribute(); - - /** - * Model tests for AddDocumentAttribute - */ - @Test - public void testAddDocumentAttribute() { - // TODO: test AddDocumentAttribute - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } - - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } - - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } - - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } - - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } - - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'relationship' - */ - @Test - public void relationshipTest() { - // TODO: test relationship - } - - /** - * Test the property 'inverseRelationship' - */ - @Test - public void inverseRelationshipTest() { - // TODO: test inverseRelationship - } - - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } - - /** - * Test the property 'entityId' - */ - @Test - public void entityIdTest() { - // TODO: test entityId - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } + private final AddDocumentAttribute model = new AddDocumentAttribute(); + + /** + * Model tests for AddDocumentAttribute + */ + @Test + public void testAddDocumentAttribute() { + // TODO: test AddDocumentAttribute + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } + + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } + + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } + + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } + + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } + + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'relationship' + */ + @Test + public void relationshipTest() { + // TODO: test relationship + } + + /** + * Test the property 'inverseRelationship' + */ + @Test + public void inverseRelationshipTest() { + // TODO: test inverseRelationship + } + + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } + + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributeValueTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributeValueTest.java index 84f4cfbe8..f0ca90a0b 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributeValueTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributeValueTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,54 +37,54 @@ * Model tests for AddDocumentAttributeValue */ public class AddDocumentAttributeValueTest { - private final AddDocumentAttributeValue model = new AddDocumentAttributeValue(); + private final AddDocumentAttributeValue model = new AddDocumentAttributeValue(); - /** - * Model tests for AddDocumentAttributeValue - */ - @Test - public void testAddDocumentAttributeValue() { - // TODO: test AddDocumentAttributeValue - } + /** + * Model tests for AddDocumentAttributeValue + */ + @Test + public void testAddDocumentAttributeValue() { + // TODO: test AddDocumentAttributeValue + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentAttributesRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentAttributesRequestTest.java index 127354a41..33a999887 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentAttributesRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentAttributesRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for AddDocumentAttributesRequest */ public class AddDocumentAttributesRequestTest { - private final AddDocumentAttributesRequest model = new AddDocumentAttributesRequest(); + private final AddDocumentAttributesRequest model = new AddDocumentAttributesRequest(); - /** - * Model tests for AddDocumentAttributesRequest - */ - @Test - public void testAddDocumentAttributesRequest() { - // TODO: test AddDocumentAttributesRequest - } + /** + * Model tests for AddDocumentAttributesRequest + */ + @Test + public void testAddDocumentAttributesRequest() { + // TODO: test AddDocumentAttributesRequest + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentFulltextRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentFulltextRequestTest.java index dcf441e13..feaf37a53 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentFulltextRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentFulltextRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -35,110 +42,110 @@ * Model tests for AddDocumentFulltextRequest */ public class AddDocumentFulltextRequestTest { - private final AddDocumentFulltextRequest model = new AddDocumentFulltextRequest(); - - /** - * Model tests for AddDocumentFulltextRequest - */ - @Test - public void testAddDocumentFulltextRequest() { - // TODO: test AddDocumentFulltextRequest - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'contentUrls' - */ - @Test - public void contentUrlsTest() { - // TODO: test contentUrls - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final AddDocumentFulltextRequest model = new AddDocumentFulltextRequest(); + + /** + * Model tests for AddDocumentFulltextRequest + */ + @Test + public void testAddDocumentFulltextRequest() { + // TODO: test AddDocumentFulltextRequest + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'contentUrls' + */ + @Test + public void contentUrlsTest() { + // TODO: test contentUrls + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentFulltextResponseTest.java index f54bc8aa6..8a73135a3 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentFulltextResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddDocumentFulltextResponse */ public class AddDocumentFulltextResponseTest { - private final AddDocumentFulltextResponse model = new AddDocumentFulltextResponse(); + private final AddDocumentFulltextResponse model = new AddDocumentFulltextResponse(); - /** - * Model tests for AddDocumentFulltextResponse - */ - @Test - public void testAddDocumentFulltextResponse() { - // TODO: test AddDocumentFulltextResponse - } + /** + * Model tests for AddDocumentFulltextResponse + */ + @Test + public void testAddDocumentFulltextResponse() { + // TODO: test AddDocumentFulltextResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentGenerateRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentGenerateRequestTest.java index bbc40c0f8..846fd1a54 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentGenerateRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentGenerateRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -33,62 +40,62 @@ * Model tests for AddDocumentGenerateRequest */ public class AddDocumentGenerateRequestTest { - private final AddDocumentGenerateRequest model = new AddDocumentGenerateRequest(); + private final AddDocumentGenerateRequest model = new AddDocumentGenerateRequest(); - /** - * Model tests for AddDocumentGenerateRequest - */ - @Test - public void testAddDocumentGenerateRequest() { - // TODO: test AddDocumentGenerateRequest - } + /** + * Model tests for AddDocumentGenerateRequest + */ + @Test + public void testAddDocumentGenerateRequest() { + // TODO: test AddDocumentGenerateRequest + } - /** - * Test the property 'locale' - */ - @Test - public void localeTest() { - // TODO: test locale - } + /** + * Test the property 'locale' + */ + @Test + public void localeTest() { + // TODO: test locale + } - /** - * Test the property 'insertDocuments' - */ - @Test - public void insertDocumentsTest() { - // TODO: test insertDocuments - } + /** + * Test the property 'insertDocuments' + */ + @Test + public void insertDocumentsTest() { + // TODO: test insertDocuments + } - /** - * Test the property 'datasources' - */ - @Test - public void datasourcesTest() { - // TODO: test datasources - } + /** + * Test the property 'datasources' + */ + @Test + public void datasourcesTest() { + // TODO: test datasources + } - /** - * Test the property 'outputType' - */ - @Test - public void outputTypeTest() { - // TODO: test outputType - } + /** + * Test the property 'outputType' + */ + @Test + public void outputTypeTest() { + // TODO: test outputType + } - /** - * Test the property 'saveAsDocumentId' - */ - @Test - public void saveAsDocumentIdTest() { - // TODO: test saveAsDocumentId - } + /** + * Test the property 'saveAsDocumentId' + */ + @Test + public void saveAsDocumentIdTest() { + // TODO: test saveAsDocumentId + } - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentGenerateResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentGenerateResponseTest.java index dfd690a76..6a3ed5c6a 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentGenerateResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentGenerateResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddDocumentGenerateResponse */ public class AddDocumentGenerateResponseTest { - private final AddDocumentGenerateResponse model = new AddDocumentGenerateResponse(); + private final AddDocumentGenerateResponse model = new AddDocumentGenerateResponse(); - /** - * Model tests for AddDocumentGenerateResponse - */ - @Test - public void testAddDocumentGenerateResponse() { - // TODO: test AddDocumentGenerateResponse - } + /** + * Model tests for AddDocumentGenerateResponse + */ + @Test + public void testAddDocumentGenerateResponse() { + // TODO: test AddDocumentGenerateResponse + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentMetadataTest.java b/src/test/java/com/formkiq/client/model/AddDocumentMetadataTest.java index 37d957a38..af6e00e10 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentMetadataTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentMetadataTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,38 +36,38 @@ * Model tests for AddDocumentMetadata */ public class AddDocumentMetadataTest { - private final AddDocumentMetadata model = new AddDocumentMetadata(); + private final AddDocumentMetadata model = new AddDocumentMetadata(); - /** - * Model tests for AddDocumentMetadata - */ - @Test - public void testAddDocumentMetadata() { - // TODO: test AddDocumentMetadata - } + /** + * Model tests for AddDocumentMetadata + */ + @Test + public void testAddDocumentMetadata() { + // TODO: test AddDocumentMetadata + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentOcrRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentOcrRequestTest.java index d96486676..10ae80a3d 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentOcrRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentOcrRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,62 +39,62 @@ * Model tests for AddDocumentOcrRequest */ public class AddDocumentOcrRequestTest { - private final AddDocumentOcrRequest model = new AddDocumentOcrRequest(); + private final AddDocumentOcrRequest model = new AddDocumentOcrRequest(); - /** - * Model tests for AddDocumentOcrRequest - */ - @Test - public void testAddDocumentOcrRequest() { - // TODO: test AddDocumentOcrRequest - } + /** + * Model tests for AddDocumentOcrRequest + */ + @Test + public void testAddDocumentOcrRequest() { + // TODO: test AddDocumentOcrRequest + } - /** - * Test the property 'textractQueries' - */ - @Test - public void textractQueriesTest() { - // TODO: test textractQueries - } + /** + * Test the property 'textractQueries' + */ + @Test + public void textractQueriesTest() { + // TODO: test textractQueries + } - /** - * Test the property 'parseTypes' - */ - @Test - public void parseTypesTest() { - // TODO: test parseTypes - } + /** + * Test the property 'parseTypes' + */ + @Test + public void parseTypesTest() { + // TODO: test parseTypes + } - /** - * Test the property 'addPdfDetectedCharactersAsText' - */ - @Test - public void addPdfDetectedCharactersAsTextTest() { - // TODO: test addPdfDetectedCharactersAsText - } + /** + * Test the property 'addPdfDetectedCharactersAsText' + */ + @Test + public void addPdfDetectedCharactersAsTextTest() { + // TODO: test addPdfDetectedCharactersAsText + } - /** - * Test the property 'ocrEngine' - */ - @Test - public void ocrEngineTest() { - // TODO: test ocrEngine - } + /** + * Test the property 'ocrEngine' + */ + @Test + public void ocrEngineTest() { + // TODO: test ocrEngine + } - /** - * Test the property 'ocrNumberOfPages' - */ - @Test - public void ocrNumberOfPagesTest() { - // TODO: test ocrNumberOfPages - } + /** + * Test the property 'ocrNumberOfPages' + */ + @Test + public void ocrNumberOfPagesTest() { + // TODO: test ocrNumberOfPages + } - /** - * Test the property 'ocrOutputType' - */ - @Test - public void ocrOutputTypeTest() { - // TODO: test ocrOutputType - } + /** + * Test the property 'ocrOutputType' + */ + @Test + public void ocrOutputTypeTest() { + // TODO: test ocrOutputType + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentOcrResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentOcrResponseTest.java index a9d3ee41a..fe8563007 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentOcrResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentOcrResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddDocumentOcrResponse */ public class AddDocumentOcrResponseTest { - private final AddDocumentOcrResponse model = new AddDocumentOcrResponse(); + private final AddDocumentOcrResponse model = new AddDocumentOcrResponse(); - /** - * Model tests for AddDocumentOcrResponse - */ - @Test - public void testAddDocumentOcrResponse() { - // TODO: test AddDocumentOcrResponse - } + /** + * Model tests for AddDocumentOcrResponse + */ + @Test + public void testAddDocumentOcrResponse() { + // TODO: test AddDocumentOcrResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentRequestTest.java index 67331a727..c528da1dd 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -35,134 +42,134 @@ * Model tests for AddDocumentRequest */ public class AddDocumentRequestTest { - private final AddDocumentRequest model = new AddDocumentRequest(); - - /** - * Model tests for AddDocumentRequest - */ - @Test - public void testAddDocumentRequest() { - // TODO: test AddDocumentRequest - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final AddDocumentRequest model = new AddDocumentRequest(); + + /** + * Model tests for AddDocumentRequest + */ + @Test + public void testAddDocumentRequest() { + // TODO: test AddDocumentRequest + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentResponseTest.java index 9713dc663..844326cff 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,54 +39,54 @@ * Model tests for AddDocumentResponse */ public class AddDocumentResponseTest { - private final AddDocumentResponse model = new AddDocumentResponse(); + private final AddDocumentResponse model = new AddDocumentResponse(); - /** - * Model tests for AddDocumentResponse - */ - @Test - public void testAddDocumentResponse() { - // TODO: test AddDocumentResponse - } + /** + * Model tests for AddDocumentResponse + */ + @Test + public void testAddDocumentResponse() { + // TODO: test AddDocumentResponse + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } - /** - * Test the property 'uploadUrl' - */ - @Test - public void uploadUrlTest() { - // TODO: test uploadUrl - } + /** + * Test the property 'uploadUrl' + */ + @Test + public void uploadUrlTest() { + // TODO: test uploadUrl + } - /** - * Test the property 'headers' - */ - @Test - public void headersTest() { - // TODO: test headers - } + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentSyncRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentSyncRequestTest.java index d0ea50687..83a731a60 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentSyncRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentSyncRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddDocumentSyncRequest */ public class AddDocumentSyncRequestTest { - private final AddDocumentSyncRequest model = new AddDocumentSyncRequest(); + private final AddDocumentSyncRequest model = new AddDocumentSyncRequest(); - /** - * Model tests for AddDocumentSyncRequest - */ - @Test - public void testAddDocumentSyncRequest() { - // TODO: test AddDocumentSyncRequest - } + /** + * Model tests for AddDocumentSyncRequest + */ + @Test + public void testAddDocumentSyncRequest() { + // TODO: test AddDocumentSyncRequest + } - /** - * Test the property 'sync' - */ - @Test - public void syncTest() { - // TODO: test sync - } + /** + * Test the property 'sync' + */ + @Test + public void syncTest() { + // TODO: test sync + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentSyncServiceTest.java b/src/test/java/com/formkiq/client/model/AddDocumentSyncServiceTest.java index b9e410fdf..bdd2a81f5 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentSyncServiceTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentSyncServiceTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for AddDocumentSyncService */ public class AddDocumentSyncServiceTest { - /** - * Model tests for AddDocumentSyncService - */ - @Test - public void testAddDocumentSyncService() { - // TODO: test AddDocumentSyncService - } + /** + * Model tests for AddDocumentSyncService + */ + @Test + public void testAddDocumentSyncService() { + // TODO: test AddDocumentSyncService + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentSyncTest.java b/src/test/java/com/formkiq/client/model/AddDocumentSyncTest.java index 75e589cbf..f2ff76ee8 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentSyncTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentSyncTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for AddDocumentSync */ public class AddDocumentSyncTest { - private final AddDocumentSync model = new AddDocumentSync(); - - /** - * Model tests for AddDocumentSync - */ - @Test - public void testAddDocumentSync() { - // TODO: test AddDocumentSync - } - - /** - * Test the property 'service' - */ - @Test - public void serviceTest() { - // TODO: test service - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + private final AddDocumentSync model = new AddDocumentSync(); + + /** + * Model tests for AddDocumentSync + */ + @Test + public void testAddDocumentSync() { + // TODO: test AddDocumentSync + } + + /** + * Test the property 'service' + */ + @Test + public void serviceTest() { + // TODO: test service + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentTagTest.java b/src/test/java/com/formkiq/client/model/AddDocumentTagTest.java index 9a9c1fa66..32dd81edf 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentTagTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentTagTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,38 +36,38 @@ * Model tests for AddDocumentTag */ public class AddDocumentTagTest { - private final AddDocumentTag model = new AddDocumentTag(); + private final AddDocumentTag model = new AddDocumentTag(); - /** - * Model tests for AddDocumentTag - */ - @Test - public void testAddDocumentTag() { - // TODO: test AddDocumentTag - } + /** + * Model tests for AddDocumentTag + */ + @Test + public void testAddDocumentTag() { + // TODO: test AddDocumentTag + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentTagsRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentTagsRequestTest.java index 239f3e92f..137ea48cf 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentTagsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentTagsRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for AddDocumentTagsRequest */ public class AddDocumentTagsRequestTest { - private final AddDocumentTagsRequest model = new AddDocumentTagsRequest(); + private final AddDocumentTagsRequest model = new AddDocumentTagsRequest(); - /** - * Model tests for AddDocumentTagsRequest - */ - @Test - public void testAddDocumentTagsRequest() { - // TODO: test AddDocumentTagsRequest - } + /** + * Model tests for AddDocumentTagsRequest + */ + @Test + public void testAddDocumentTagsRequest() { + // TODO: test AddDocumentTagsRequest + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentUploadRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentUploadRequestTest.java index 606475f4d..1ab9ba138 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentUploadRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentUploadRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -33,102 +40,102 @@ * Model tests for AddDocumentUploadRequest */ public class AddDocumentUploadRequestTest { - private final AddDocumentUploadRequest model = new AddDocumentUploadRequest(); - - /** - * Model tests for AddDocumentUploadRequest - */ - @Test - public void testAddDocumentUploadRequest() { - // TODO: test AddDocumentUploadRequest - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } + private final AddDocumentUploadRequest model = new AddDocumentUploadRequest(); + + /** + * Model tests for AddDocumentUploadRequest + */ + @Test + public void testAddDocumentUploadRequest() { + // TODO: test AddDocumentUploadRequest + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequestTest.java index 4c417d682..06486d2c7 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,38 +34,39 @@ * Model tests for AddDocumentWorkflowDecisionsRequest */ public class AddDocumentWorkflowDecisionsRequestTest { - private final AddDocumentWorkflowDecisionsRequest model = new AddDocumentWorkflowDecisionsRequest(); + private final AddDocumentWorkflowDecisionsRequest model = + new AddDocumentWorkflowDecisionsRequest(); - /** - * Model tests for AddDocumentWorkflowDecisionsRequest - */ - @Test - public void testAddDocumentWorkflowDecisionsRequest() { - // TODO: test AddDocumentWorkflowDecisionsRequest - } + /** + * Model tests for AddDocumentWorkflowDecisionsRequest + */ + @Test + public void testAddDocumentWorkflowDecisionsRequest() { + // TODO: test AddDocumentWorkflowDecisionsRequest + } - /** - * Test the property 'stepId' - */ - @Test - public void stepIdTest() { - // TODO: test stepId - } + /** + * Test the property 'stepId' + */ + @Test + public void stepIdTest() { + // TODO: test stepId + } - /** - * Test the property 'comments' - */ - @Test - public void commentsTest() { - // TODO: test comments - } + /** + * Test the property 'comments' + */ + @Test + public void commentsTest() { + // TODO: test comments + } - /** - * Test the property 'decision' - */ - @Test - public void decisionTest() { - // TODO: test decision - } + /** + * Test the property 'decision' + */ + @Test + public void decisionTest() { + // TODO: test decision + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponseTest.java index 8d92933ff..732bd01d7 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,23 @@ * Model tests for AddDocumentWorkflowDecisionsResponse */ public class AddDocumentWorkflowDecisionsResponseTest { - private final AddDocumentWorkflowDecisionsResponse model = new AddDocumentWorkflowDecisionsResponse(); + private final AddDocumentWorkflowDecisionsResponse model = + new AddDocumentWorkflowDecisionsResponse(); - /** - * Model tests for AddDocumentWorkflowDecisionsResponse - */ - @Test - public void testAddDocumentWorkflowDecisionsResponse() { - // TODO: test AddDocumentWorkflowDecisionsResponse - } + /** + * Model tests for AddDocumentWorkflowDecisionsResponse + */ + @Test + public void testAddDocumentWorkflowDecisionsResponse() { + // TODO: test AddDocumentWorkflowDecisionsResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowRequestTest.java index c2d257343..e68bcaf81 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddDocumentWorkflowRequest */ public class AddDocumentWorkflowRequestTest { - private final AddDocumentWorkflowRequest model = new AddDocumentWorkflowRequest(); + private final AddDocumentWorkflowRequest model = new AddDocumentWorkflowRequest(); - /** - * Model tests for AddDocumentWorkflowRequest - */ - @Test - public void testAddDocumentWorkflowRequest() { - // TODO: test AddDocumentWorkflowRequest - } + /** + * Model tests for AddDocumentWorkflowRequest + */ + @Test + public void testAddDocumentWorkflowRequest() { + // TODO: test AddDocumentWorkflowRequest + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowResponseTest.java index 16aa43910..ef0a41c24 100644 --- a/src/test/java/com/formkiq/client/model/AddDocumentWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocumentWorkflowResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddDocumentWorkflowResponse */ public class AddDocumentWorkflowResponseTest { - private final AddDocumentWorkflowResponse model = new AddDocumentWorkflowResponse(); + private final AddDocumentWorkflowResponse model = new AddDocumentWorkflowResponse(); - /** - * Model tests for AddDocumentWorkflowResponse - */ - @Test - public void testAddDocumentWorkflowResponse() { - // TODO: test AddDocumentWorkflowResponse - } + /** + * Model tests for AddDocumentWorkflowResponse + */ + @Test + public void testAddDocumentWorkflowResponse() { + // TODO: test AddDocumentWorkflowResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesRequestTest.java index ec4692ba6..93c4d280c 100644 --- a/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -33,54 +40,54 @@ * Model tests for AddDocusignEnvelopesRequest */ public class AddDocusignEnvelopesRequestTest { - private final AddDocusignEnvelopesRequest model = new AddDocusignEnvelopesRequest(); + private final AddDocusignEnvelopesRequest model = new AddDocusignEnvelopesRequest(); - /** - * Model tests for AddDocusignEnvelopesRequest - */ - @Test - public void testAddDocusignEnvelopesRequest() { - // TODO: test AddDocusignEnvelopesRequest - } + /** + * Model tests for AddDocusignEnvelopesRequest + */ + @Test + public void testAddDocusignEnvelopesRequest() { + // TODO: test AddDocusignEnvelopesRequest + } - /** - * Test the property 'emailSubject' - */ - @Test - public void emailSubjectTest() { - // TODO: test emailSubject - } + /** + * Test the property 'emailSubject' + */ + @Test + public void emailSubjectTest() { + // TODO: test emailSubject + } - /** - * Test the property 'environment' - */ - @Test - public void environmentTest() { - // TODO: test environment - } + /** + * Test the property 'environment' + */ + @Test + public void environmentTest() { + // TODO: test environment + } - /** - * Test the property 'signers' - */ - @Test - public void signersTest() { - // TODO: test signers - } + /** + * Test the property 'signers' + */ + @Test + public void signersTest() { + // TODO: test signers + } - /** - * Test the property 'inpersonSigners' - */ - @Test - public void inpersonSignersTest() { - // TODO: test inpersonSigners - } + /** + * Test the property 'inpersonSigners' + */ + @Test + public void inpersonSignersTest() { + // TODO: test inpersonSigners + } - /** - * Test the property 'notification' - */ - @Test - public void notificationTest() { - // TODO: test notification - } + /** + * Test the property 'notification' + */ + @Test + public void notificationTest() { + // TODO: test notification + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesResponseTest.java index 40b08a2d5..ba063a5f7 100644 --- a/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocusignEnvelopesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddDocusignEnvelopesResponse */ public class AddDocusignEnvelopesResponseTest { - private final AddDocusignEnvelopesResponse model = new AddDocusignEnvelopesResponse(); + private final AddDocusignEnvelopesResponse model = new AddDocusignEnvelopesResponse(); - /** - * Model tests for AddDocusignEnvelopesResponse - */ - @Test - public void testAddDocusignEnvelopesResponse() { - // TODO: test AddDocusignEnvelopesResponse - } + /** + * Model tests for AddDocusignEnvelopesResponse + */ + @Test + public void testAddDocusignEnvelopesResponse() { + // TODO: test AddDocusignEnvelopesResponse + } - /** - * Test the property 'envelopeId' - */ - @Test - public void envelopeIdTest() { - // TODO: test envelopeId - } + /** + * Test the property 'envelopeId' + */ + @Test + public void envelopeIdTest() { + // TODO: test envelopeId + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewRequestTest.java b/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewRequestTest.java index 87142c66f..826e60c0c 100644 --- a/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for AddDocusignRecipientViewRequest */ public class AddDocusignRecipientViewRequestTest { - private final AddDocusignRecipientViewRequest model = new AddDocusignRecipientViewRequest(); - - /** - * Model tests for AddDocusignRecipientViewRequest - */ - @Test - public void testAddDocusignRecipientViewRequest() { - // TODO: test AddDocusignRecipientViewRequest - } - - /** - * Test the property 'environment' - */ - @Test - public void environmentTest() { - // TODO: test environment - } - - /** - * Test the property 'recipientView' - */ - @Test - public void recipientViewTest() { - // TODO: test recipientView - } + private final AddDocusignRecipientViewRequest model = new AddDocusignRecipientViewRequest(); + + /** + * Model tests for AddDocusignRecipientViewRequest + */ + @Test + public void testAddDocusignRecipientViewRequest() { + // TODO: test AddDocusignRecipientViewRequest + } + + /** + * Test the property 'environment' + */ + @Test + public void environmentTest() { + // TODO: test environment + } + + /** + * Test the property 'recipientView' + */ + @Test + public void recipientViewTest() { + // TODO: test recipientView + } } diff --git a/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewResponseTest.java b/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewResponseTest.java index 99e46a689..bab043756 100644 --- a/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddDocusignRecipientViewResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddDocusignRecipientViewResponse */ public class AddDocusignRecipientViewResponseTest { - private final AddDocusignRecipientViewResponse model = new AddDocusignRecipientViewResponse(); + private final AddDocusignRecipientViewResponse model = new AddDocusignRecipientViewResponse(); - /** - * Model tests for AddDocusignRecipientViewResponse - */ - @Test - public void testAddDocusignRecipientViewResponse() { - // TODO: test AddDocusignRecipientViewResponse - } + /** + * Model tests for AddDocusignRecipientViewResponse + */ + @Test + public void testAddDocusignRecipientViewResponse() { + // TODO: test AddDocusignRecipientViewResponse + } - /** - * Test the property 'viewUrl' - */ - @Test - public void viewUrlTest() { - // TODO: test viewUrl - } + /** + * Test the property 'viewUrl' + */ + @Test + public void viewUrlTest() { + // TODO: test viewUrl + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityAttributeTest.java b/src/test/java/com/formkiq/client/model/AddEntityAttributeTest.java index 1270f5df6..349aff120 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,62 +37,62 @@ * Model tests for AddEntityAttribute */ public class AddEntityAttributeTest { - private final AddEntityAttribute model = new AddEntityAttribute(); + private final AddEntityAttribute model = new AddEntityAttribute(); - /** - * Model tests for AddEntityAttribute - */ - @Test - public void testAddEntityAttribute() { - // TODO: test AddEntityAttribute - } + /** + * Model tests for AddEntityAttribute + */ + @Test + public void testAddEntityAttribute() { + // TODO: test AddEntityAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityRequestTest.java b/src/test/java/com/formkiq/client/model/AddEntityRequestTest.java index 832fcd6a8..114fb9dcb 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddEntityRequest */ public class AddEntityRequestTest { - private final AddEntityRequest model = new AddEntityRequest(); + private final AddEntityRequest model = new AddEntityRequest(); - /** - * Model tests for AddEntityRequest - */ - @Test - public void testAddEntityRequest() { - // TODO: test AddEntityRequest - } + /** + * Model tests for AddEntityRequest + */ + @Test + public void testAddEntityRequest() { + // TODO: test AddEntityRequest + } - /** - * Test the property 'entity' - */ - @Test - public void entityTest() { - // TODO: test entity - } + /** + * Test the property 'entity' + */ + @Test + public void entityTest() { + // TODO: test entity + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityResponseTest.java b/src/test/java/com/formkiq/client/model/AddEntityResponseTest.java index 43d65568e..18d0729d1 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddEntityResponse */ public class AddEntityResponseTest { - private final AddEntityResponse model = new AddEntityResponse(); + private final AddEntityResponse model = new AddEntityResponse(); - /** - * Model tests for AddEntityResponse - */ - @Test - public void testAddEntityResponse() { - // TODO: test AddEntityResponse - } + /** + * Model tests for AddEntityResponse + */ + @Test + public void testAddEntityResponse() { + // TODO: test AddEntityResponse + } - /** - * Test the property 'entityId' - */ - @Test - public void entityIdTest() { - // TODO: test entityId - } + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityTest.java b/src/test/java/com/formkiq/client/model/AddEntityTest.java index 317e0ac4b..364e9f855 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for AddEntity */ public class AddEntityTest { - private final AddEntity model = new AddEntity(); - - /** - * Model tests for AddEntity - */ - @Test - public void testAddEntity() { - // TODO: test AddEntity - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final AddEntity model = new AddEntity(); + + /** + * Model tests for AddEntity + */ + @Test + public void testAddEntity() { + // TODO: test AddEntity + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityTypeRequestTest.java b/src/test/java/com/formkiq/client/model/AddEntityTypeRequestTest.java index cfaf2c606..7cae9fd69 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityTypeRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityTypeRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddEntityTypeRequest */ public class AddEntityTypeRequestTest { - private final AddEntityTypeRequest model = new AddEntityTypeRequest(); + private final AddEntityTypeRequest model = new AddEntityTypeRequest(); - /** - * Model tests for AddEntityTypeRequest - */ - @Test - public void testAddEntityTypeRequest() { - // TODO: test AddEntityTypeRequest - } + /** + * Model tests for AddEntityTypeRequest + */ + @Test + public void testAddEntityTypeRequest() { + // TODO: test AddEntityTypeRequest + } - /** - * Test the property 'entityType' - */ - @Test - public void entityTypeTest() { - // TODO: test entityType - } + /** + * Test the property 'entityType' + */ + @Test + public void entityTypeTest() { + // TODO: test entityType + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityTypeResponseTest.java b/src/test/java/com/formkiq/client/model/AddEntityTypeResponseTest.java index f1a4ba7c1..30d7111ab 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityTypeResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityTypeResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddEntityTypeResponse */ public class AddEntityTypeResponseTest { - private final AddEntityTypeResponse model = new AddEntityTypeResponse(); + private final AddEntityTypeResponse model = new AddEntityTypeResponse(); - /** - * Model tests for AddEntityTypeResponse - */ - @Test - public void testAddEntityTypeResponse() { - // TODO: test AddEntityTypeResponse - } + /** + * Model tests for AddEntityTypeResponse + */ + @Test + public void testAddEntityTypeResponse() { + // TODO: test AddEntityTypeResponse + } - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } } diff --git a/src/test/java/com/formkiq/client/model/AddEntityTypeTest.java b/src/test/java/com/formkiq/client/model/AddEntityTypeTest.java index 7eae28bde..8a1367bb5 100644 --- a/src/test/java/com/formkiq/client/model/AddEntityTypeTest.java +++ b/src/test/java/com/formkiq/client/model/AddEntityTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for AddEntityType */ public class AddEntityTypeTest { - private final AddEntityType model = new AddEntityType(); - - /** - * Model tests for AddEntityType - */ - @Test - public void testAddEntityType() { - // TODO: test AddEntityType - } - - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + private final AddEntityType model = new AddEntityType(); + + /** + * Model tests for AddEntityType + */ + @Test + public void testAddEntityType() { + // TODO: test AddEntityType + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } } diff --git a/src/test/java/com/formkiq/client/model/AddFolderPermissionTest.java b/src/test/java/com/formkiq/client/model/AddFolderPermissionTest.java index 8654d0219..b508c956e 100644 --- a/src/test/java/com/formkiq/client/model/AddFolderPermissionTest.java +++ b/src/test/java/com/formkiq/client/model/AddFolderPermissionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for AddFolderPermission */ public class AddFolderPermissionTest { - private final AddFolderPermission model = new AddFolderPermission(); - - /** - * Model tests for AddFolderPermission - */ - @Test - public void testAddFolderPermission() { - // TODO: test AddFolderPermission - } - - /** - * Test the property 'roleName' - */ - @Test - public void roleNameTest() { - // TODO: test roleName - } - - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + private final AddFolderPermission model = new AddFolderPermission(); + + /** + * Model tests for AddFolderPermission + */ + @Test + public void testAddFolderPermission() { + // TODO: test AddFolderPermission + } + + /** + * Test the property 'roleName' + */ + @Test + public void roleNameTest() { + // TODO: test roleName + } + + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/AddFolderRequestTest.java b/src/test/java/com/formkiq/client/model/AddFolderRequestTest.java index 561533940..76ddd7da2 100644 --- a/src/test/java/com/formkiq/client/model/AddFolderRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddFolderRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddFolderRequest */ public class AddFolderRequestTest { - private final AddFolderRequest model = new AddFolderRequest(); + private final AddFolderRequest model = new AddFolderRequest(); - /** - * Model tests for AddFolderRequest - */ - @Test - public void testAddFolderRequest() { - // TODO: test AddFolderRequest - } + /** + * Model tests for AddFolderRequest + */ + @Test + public void testAddFolderRequest() { + // TODO: test AddFolderRequest + } - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } } diff --git a/src/test/java/com/formkiq/client/model/AddFolderResponseTest.java b/src/test/java/com/formkiq/client/model/AddFolderResponseTest.java index 770df79aa..776eca180 100644 --- a/src/test/java/com/formkiq/client/model/AddFolderResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddFolderResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for AddFolderResponse */ public class AddFolderResponseTest { - private final AddFolderResponse model = new AddFolderResponse(); - - /** - * Model tests for AddFolderResponse - */ - @Test - public void testAddFolderResponse() { - // TODO: test AddFolderResponse - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'indexKey' - */ - @Test - public void indexKeyTest() { - // TODO: test indexKey - } + private final AddFolderResponse model = new AddFolderResponse(); + + /** + * Model tests for AddFolderResponse + */ + @Test + public void testAddFolderResponse() { + // TODO: test AddFolderResponse + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'indexKey' + */ + @Test + public void indexKeyTest() { + // TODO: test indexKey + } } diff --git a/src/test/java/com/formkiq/client/model/AddFolderShareRequestTest.java b/src/test/java/com/formkiq/client/model/AddFolderShareRequestTest.java index 92dc3ca3a..c60eb6819 100644 --- a/src/test/java/com/formkiq/client/model/AddFolderShareRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddFolderShareRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddFolderShareRequest */ public class AddFolderShareRequestTest { - private final AddFolderShareRequest model = new AddFolderShareRequest(); + private final AddFolderShareRequest model = new AddFolderShareRequest(); - /** - * Model tests for AddFolderShareRequest - */ - @Test - public void testAddFolderShareRequest() { - // TODO: test AddFolderShareRequest - } + /** + * Model tests for AddFolderShareRequest + */ + @Test + public void testAddFolderShareRequest() { + // TODO: test AddFolderShareRequest + } - /** - * Test the property 'share' - */ - @Test - public void shareTest() { - // TODO: test share - } + /** + * Test the property 'share' + */ + @Test + public void shareTest() { + // TODO: test share + } } diff --git a/src/test/java/com/formkiq/client/model/AddFolderShareResponseTest.java b/src/test/java/com/formkiq/client/model/AddFolderShareResponseTest.java index 484f44421..f6d2be557 100644 --- a/src/test/java/com/formkiq/client/model/AddFolderShareResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddFolderShareResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for AddFolderShareResponse */ public class AddFolderShareResponseTest { - private final AddFolderShareResponse model = new AddFolderShareResponse(); - - /** - * Model tests for AddFolderShareResponse - */ - @Test - public void testAddFolderShareResponse() { - // TODO: test AddFolderShareResponse - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'shareKey' - */ - @Test - public void shareKeyTest() { - // TODO: test shareKey - } + private final AddFolderShareResponse model = new AddFolderShareResponse(); + + /** + * Model tests for AddFolderShareResponse + */ + @Test + public void testAddFolderShareResponse() { + // TODO: test AddFolderShareResponse + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'shareKey' + */ + @Test + public void shareKeyTest() { + // TODO: test shareKey + } } diff --git a/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportRequestTest.java b/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportRequestTest.java index 2ce550e9b..be7466244 100644 --- a/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for AddGoogleDocumentExportRequest */ public class AddGoogleDocumentExportRequestTest { - private final AddGoogleDocumentExportRequest model = new AddGoogleDocumentExportRequest(); - - /** - * Model tests for AddGoogleDocumentExportRequest - */ - @Test - public void testAddGoogleDocumentExportRequest() { - // TODO: test AddGoogleDocumentExportRequest - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'outputType' - */ - @Test - public void outputTypeTest() { - // TODO: test outputType - } + private final AddGoogleDocumentExportRequest model = new AddGoogleDocumentExportRequest(); + + /** + * Model tests for AddGoogleDocumentExportRequest + */ + @Test + public void testAddGoogleDocumentExportRequest() { + // TODO: test AddGoogleDocumentExportRequest + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'outputType' + */ + @Test + public void outputTypeTest() { + // TODO: test outputType + } } diff --git a/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportResponseTest.java b/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportResponseTest.java index 0cec6db79..a4821c815 100644 --- a/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddGoogleDocumentExportResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddGoogleDocumentExportResponse */ public class AddGoogleDocumentExportResponseTest { - private final AddGoogleDocumentExportResponse model = new AddGoogleDocumentExportResponse(); + private final AddGoogleDocumentExportResponse model = new AddGoogleDocumentExportResponse(); - /** - * Model tests for AddGoogleDocumentExportResponse - */ - @Test - public void testAddGoogleDocumentExportResponse() { - // TODO: test AddGoogleDocumentExportResponse - } + /** + * Model tests for AddGoogleDocumentExportResponse + */ + @Test + public void testAddGoogleDocumentExportResponse() { + // TODO: test AddGoogleDocumentExportResponse + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } } diff --git a/src/test/java/com/formkiq/client/model/AddGroupRequestTest.java b/src/test/java/com/formkiq/client/model/AddGroupRequestTest.java index 46d5ef9c8..b9a109a1d 100644 --- a/src/test/java/com/formkiq/client/model/AddGroupRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddGroupRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddGroupRequest */ public class AddGroupRequestTest { - private final AddGroupRequest model = new AddGroupRequest(); + private final AddGroupRequest model = new AddGroupRequest(); - /** - * Model tests for AddGroupRequest - */ - @Test - public void testAddGroupRequest() { - // TODO: test AddGroupRequest - } + /** + * Model tests for AddGroupRequest + */ + @Test + public void testAddGroupRequest() { + // TODO: test AddGroupRequest + } - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } } diff --git a/src/test/java/com/formkiq/client/model/AddGroupTest.java b/src/test/java/com/formkiq/client/model/AddGroupTest.java index c4db7054e..26d0fbf02 100644 --- a/src/test/java/com/formkiq/client/model/AddGroupTest.java +++ b/src/test/java/com/formkiq/client/model/AddGroupTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for AddGroup */ public class AddGroupTest { - private final AddGroup model = new AddGroup(); - - /** - * Model tests for AddGroup - */ - @Test - public void testAddGroup() { - // TODO: test AddGroup - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + private final AddGroup model = new AddGroup(); + + /** + * Model tests for AddGroup + */ + @Test + public void testAddGroup() { + // TODO: test AddGroup + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleRequestTest.java b/src/test/java/com/formkiq/client/model/AddLocaleRequestTest.java index 325d4aeaa..281b63b9d 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddLocaleRequest */ public class AddLocaleRequestTest { - private final AddLocaleRequest model = new AddLocaleRequest(); + private final AddLocaleRequest model = new AddLocaleRequest(); - /** - * Model tests for AddLocaleRequest - */ - @Test - public void testAddLocaleRequest() { - // TODO: test AddLocaleRequest - } + /** + * Model tests for AddLocaleRequest + */ + @Test + public void testAddLocaleRequest() { + // TODO: test AddLocaleRequest + } - /** - * Test the property 'locale' - */ - @Test - public void localeTest() { - // TODO: test locale - } + /** + * Test the property 'locale' + */ + @Test + public void localeTest() { + // TODO: test locale + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleResourceClassificationItemTest.java b/src/test/java/com/formkiq/client/model/AddLocaleResourceClassificationItemTest.java index 8a3d569be..2e08ce2b4 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleResourceClassificationItemTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleResourceClassificationItemTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,54 +35,55 @@ * Model tests for AddLocaleResourceClassificationItem */ public class AddLocaleResourceClassificationItemTest { - private final AddLocaleResourceClassificationItem model = new AddLocaleResourceClassificationItem(); + private final AddLocaleResourceClassificationItem model = + new AddLocaleResourceClassificationItem(); - /** - * Model tests for AddLocaleResourceClassificationItem - */ - @Test - public void testAddLocaleResourceClassificationItem() { - // TODO: test AddLocaleResourceClassificationItem - } + /** + * Model tests for AddLocaleResourceClassificationItem + */ + @Test + public void testAddLocaleResourceClassificationItem() { + // TODO: test AddLocaleResourceClassificationItem + } - /** - * Test the property 'itemType' - */ - @Test - public void itemTypeTest() { - // TODO: test itemType - } + /** + * Test the property 'itemType' + */ + @Test + public void itemTypeTest() { + // TODO: test itemType + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValue' - */ - @Test - public void allowedValueTest() { - // TODO: test allowedValue - } + /** + * Test the property 'allowedValue' + */ + @Test + public void allowedValueTest() { + // TODO: test allowedValue + } - /** - * Test the property 'localizedValue' - */ - @Test - public void localizedValueTest() { - // TODO: test localizedValue - } + /** + * Test the property 'localizedValue' + */ + @Test + public void localizedValueTest() { + // TODO: test localizedValue + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleResourceInterfaceItemTest.java b/src/test/java/com/formkiq/client/model/AddLocaleResourceInterfaceItemTest.java index f37bd4390..65ca6c584 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleResourceInterfaceItemTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleResourceInterfaceItemTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,38 +35,38 @@ * Model tests for AddLocaleResourceInterfaceItem */ public class AddLocaleResourceInterfaceItemTest { - private final AddLocaleResourceInterfaceItem model = new AddLocaleResourceInterfaceItem(); + private final AddLocaleResourceInterfaceItem model = new AddLocaleResourceInterfaceItem(); - /** - * Model tests for AddLocaleResourceInterfaceItem - */ - @Test - public void testAddLocaleResourceInterfaceItem() { - // TODO: test AddLocaleResourceInterfaceItem - } + /** + * Model tests for AddLocaleResourceInterfaceItem + */ + @Test + public void testAddLocaleResourceInterfaceItem() { + // TODO: test AddLocaleResourceInterfaceItem + } - /** - * Test the property 'itemType' - */ - @Test - public void itemTypeTest() { - // TODO: test itemType - } + /** + * Test the property 'itemType' + */ + @Test + public void itemTypeTest() { + // TODO: test itemType + } - /** - * Test the property 'localizedValue' - */ - @Test - public void localizedValueTest() { - // TODO: test localizedValue - } + /** + * Test the property 'localizedValue' + */ + @Test + public void localizedValueTest() { + // TODO: test localizedValue + } - /** - * Test the property 'interfaceKey' - */ - @Test - public void interfaceKeyTest() { - // TODO: test interfaceKey - } + /** + * Test the property 'interfaceKey' + */ + @Test + public void interfaceKeyTest() { + // TODO: test interfaceKey + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleResourceItemRequestTest.java b/src/test/java/com/formkiq/client/model/AddLocaleResourceItemRequestTest.java index b484481b5..0ca39ab54 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleResourceItemRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleResourceItemRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddLocaleResourceItemRequest */ public class AddLocaleResourceItemRequestTest { - private final AddLocaleResourceItemRequest model = new AddLocaleResourceItemRequest(); + private final AddLocaleResourceItemRequest model = new AddLocaleResourceItemRequest(); - /** - * Model tests for AddLocaleResourceItemRequest - */ - @Test - public void testAddLocaleResourceItemRequest() { - // TODO: test AddLocaleResourceItemRequest - } + /** + * Model tests for AddLocaleResourceItemRequest + */ + @Test + public void testAddLocaleResourceItemRequest() { + // TODO: test AddLocaleResourceItemRequest + } - /** - * Test the property 'resourceItem' - */ - @Test - public void resourceItemTest() { - // TODO: test resourceItem - } + /** + * Test the property 'resourceItem' + */ + @Test + public void resourceItemTest() { + // TODO: test resourceItem + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleResourceItemResponseTest.java b/src/test/java/com/formkiq/client/model/AddLocaleResourceItemResponseTest.java index c09f80454..384825128 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleResourceItemResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleResourceItemResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddLocaleResourceItemResponse */ public class AddLocaleResourceItemResponseTest { - private final AddLocaleResourceItemResponse model = new AddLocaleResourceItemResponse(); + private final AddLocaleResourceItemResponse model = new AddLocaleResourceItemResponse(); - /** - * Model tests for AddLocaleResourceItemResponse - */ - @Test - public void testAddLocaleResourceItemResponse() { - // TODO: test AddLocaleResourceItemResponse - } + /** + * Model tests for AddLocaleResourceItemResponse + */ + @Test + public void testAddLocaleResourceItemResponse() { + // TODO: test AddLocaleResourceItemResponse + } - /** - * Test the property 'itemKey' - */ - @Test - public void itemKeyTest() { - // TODO: test itemKey - } + /** + * Test the property 'itemKey' + */ + @Test + public void itemKeyTest() { + // TODO: test itemKey + } } diff --git a/src/test/java/com/formkiq/client/model/AddLocaleResourceSchemaItemTest.java b/src/test/java/com/formkiq/client/model/AddLocaleResourceSchemaItemTest.java index 9059e9344..1c9041fa5 100644 --- a/src/test/java/com/formkiq/client/model/AddLocaleResourceSchemaItemTest.java +++ b/src/test/java/com/formkiq/client/model/AddLocaleResourceSchemaItemTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,46 +35,46 @@ * Model tests for AddLocaleResourceSchemaItem */ public class AddLocaleResourceSchemaItemTest { - private final AddLocaleResourceSchemaItem model = new AddLocaleResourceSchemaItem(); + private final AddLocaleResourceSchemaItem model = new AddLocaleResourceSchemaItem(); - /** - * Model tests for AddLocaleResourceSchemaItem - */ - @Test - public void testAddLocaleResourceSchemaItem() { - // TODO: test AddLocaleResourceSchemaItem - } + /** + * Model tests for AddLocaleResourceSchemaItem + */ + @Test + public void testAddLocaleResourceSchemaItem() { + // TODO: test AddLocaleResourceSchemaItem + } - /** - * Test the property 'itemType' - */ - @Test - public void itemTypeTest() { - // TODO: test itemType - } + /** + * Test the property 'itemType' + */ + @Test + public void itemTypeTest() { + // TODO: test itemType + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValue' - */ - @Test - public void allowedValueTest() { - // TODO: test allowedValue - } + /** + * Test the property 'allowedValue' + */ + @Test + public void allowedValueTest() { + // TODO: test allowedValue + } - /** - * Test the property 'localizedValue' - */ - @Test - public void localizedValueTest() { - // TODO: test localizedValue - } + /** + * Test the property 'localizedValue' + */ + @Test + public void localizedValueTest() { + // TODO: test localizedValue + } } diff --git a/src/test/java/com/formkiq/client/model/AddMappingRequestTest.java b/src/test/java/com/formkiq/client/model/AddMappingRequestTest.java index 5fb7f8825..e83048ea1 100644 --- a/src/test/java/com/formkiq/client/model/AddMappingRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddMappingRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddMappingRequest */ public class AddMappingRequestTest { - private final AddMappingRequest model = new AddMappingRequest(); + private final AddMappingRequest model = new AddMappingRequest(); - /** - * Model tests for AddMappingRequest - */ - @Test - public void testAddMappingRequest() { - // TODO: test AddMappingRequest - } + /** + * Model tests for AddMappingRequest + */ + @Test + public void testAddMappingRequest() { + // TODO: test AddMappingRequest + } - /** - * Test the property 'mapping' - */ - @Test - public void mappingTest() { - // TODO: test mapping - } + /** + * Test the property 'mapping' + */ + @Test + public void mappingTest() { + // TODO: test mapping + } } diff --git a/src/test/java/com/formkiq/client/model/AddMappingResponseTest.java b/src/test/java/com/formkiq/client/model/AddMappingResponseTest.java index 6f3b4b7cb..e566dd02c 100644 --- a/src/test/java/com/formkiq/client/model/AddMappingResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddMappingResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddMappingResponse */ public class AddMappingResponseTest { - private final AddMappingResponse model = new AddMappingResponse(); + private final AddMappingResponse model = new AddMappingResponse(); - /** - * Model tests for AddMappingResponse - */ - @Test - public void testAddMappingResponse() { - // TODO: test AddMappingResponse - } + /** + * Model tests for AddMappingResponse + */ + @Test + public void testAddMappingResponse() { + // TODO: test AddMappingResponse + } - /** - * Test the property 'mappingId' - */ - @Test - public void mappingIdTest() { - // TODO: test mappingId - } + /** + * Test the property 'mappingId' + */ + @Test + public void mappingIdTest() { + // TODO: test mappingId + } } diff --git a/src/test/java/com/formkiq/client/model/AddMappingTest.java b/src/test/java/com/formkiq/client/model/AddMappingTest.java index 6d25041a8..4bfc59919 100644 --- a/src/test/java/com/formkiq/client/model/AddMappingTest.java +++ b/src/test/java/com/formkiq/client/model/AddMappingTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,38 +37,38 @@ * Model tests for AddMapping */ public class AddMappingTest { - private final AddMapping model = new AddMapping(); + private final AddMapping model = new AddMapping(); - /** - * Model tests for AddMapping - */ - @Test - public void testAddMapping() { - // TODO: test AddMapping - } + /** + * Model tests for AddMapping + */ + @Test + public void testAddMapping() { + // TODO: test AddMapping + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddNigoRequestTest.java b/src/test/java/com/formkiq/client/model/AddNigoRequestTest.java index a97eec53d..d38144d7a 100644 --- a/src/test/java/com/formkiq/client/model/AddNigoRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddNigoRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddNigoRequest */ public class AddNigoRequestTest { - private final AddNigoRequest model = new AddNigoRequest(); + private final AddNigoRequest model = new AddNigoRequest(); - /** - * Model tests for AddNigoRequest - */ - @Test - public void testAddNigoRequest() { - // TODO: test AddNigoRequest - } + /** + * Model tests for AddNigoRequest + */ + @Test + public void testAddNigoRequest() { + // TODO: test AddNigoRequest + } - /** - * Test the property 'nigo' - */ - @Test - public void nigoTest() { - // TODO: test nigo - } + /** + * Test the property 'nigo' + */ + @Test + public void nigoTest() { + // TODO: test nigo + } } diff --git a/src/test/java/com/formkiq/client/model/AddNigoResponseTest.java b/src/test/java/com/formkiq/client/model/AddNigoResponseTest.java index 7a09df1df..e4451eaee 100644 --- a/src/test/java/com/formkiq/client/model/AddNigoResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddNigoResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddNigoResponse */ public class AddNigoResponseTest { - private final AddNigoResponse model = new AddNigoResponse(); + private final AddNigoResponse model = new AddNigoResponse(); - /** - * Model tests for AddNigoResponse - */ - @Test - public void testAddNigoResponse() { - // TODO: test AddNigoResponse - } + /** + * Model tests for AddNigoResponse + */ + @Test + public void testAddNigoResponse() { + // TODO: test AddNigoResponse + } - /** - * Test the property 'nigoId' - */ - @Test - public void nigoIdTest() { - // TODO: test nigoId - } + /** + * Test the property 'nigoId' + */ + @Test + public void nigoIdTest() { + // TODO: test nigoId + } } diff --git a/src/test/java/com/formkiq/client/model/AddNigoTest.java b/src/test/java/com/formkiq/client/model/AddNigoTest.java index 850c44e82..b0c558e6d 100644 --- a/src/test/java/com/formkiq/client/model/AddNigoTest.java +++ b/src/test/java/com/formkiq/client/model/AddNigoTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,86 +39,86 @@ * Model tests for AddNigo */ public class AddNigoTest { - private final AddNigo model = new AddNigo(); + private final AddNigo model = new AddNigo(); - /** - * Model tests for AddNigo - */ - @Test - public void testAddNigo() { - // TODO: test AddNigo - } + /** + * Model tests for AddNigo + */ + @Test + public void testAddNigo() { + // TODO: test AddNigo + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/AddQueueRequestTest.java b/src/test/java/com/formkiq/client/model/AddQueueRequestTest.java index 05f756ae8..865fe2595 100644 --- a/src/test/java/com/formkiq/client/model/AddQueueRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddQueueRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddQueueRequest */ public class AddQueueRequestTest { - private final AddQueueRequest model = new AddQueueRequest(); + private final AddQueueRequest model = new AddQueueRequest(); - /** - * Model tests for AddQueueRequest - */ - @Test - public void testAddQueueRequest() { - // TODO: test AddQueueRequest - } + /** + * Model tests for AddQueueRequest + */ + @Test + public void testAddQueueRequest() { + // TODO: test AddQueueRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } } diff --git a/src/test/java/com/formkiq/client/model/AddQueueResponseTest.java b/src/test/java/com/formkiq/client/model/AddQueueResponseTest.java index 7470b3950..5bca02adc 100644 --- a/src/test/java/com/formkiq/client/model/AddQueueResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddQueueResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddQueueResponse */ public class AddQueueResponseTest { - private final AddQueueResponse model = new AddQueueResponse(); + private final AddQueueResponse model = new AddQueueResponse(); - /** - * Model tests for AddQueueResponse - */ - @Test - public void testAddQueueResponse() { - // TODO: test AddQueueResponse - } + /** + * Model tests for AddQueueResponse + */ + @Test + public void testAddQueueResponse() { + // TODO: test AddQueueResponse + } - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } } diff --git a/src/test/java/com/formkiq/client/model/AddReindexDocumentRequestTest.java b/src/test/java/com/formkiq/client/model/AddReindexDocumentRequestTest.java index aafef7a9e..e4f171268 100644 --- a/src/test/java/com/formkiq/client/model/AddReindexDocumentRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddReindexDocumentRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddReindexDocumentRequest */ public class AddReindexDocumentRequestTest { - private final AddReindexDocumentRequest model = new AddReindexDocumentRequest(); + private final AddReindexDocumentRequest model = new AddReindexDocumentRequest(); - /** - * Model tests for AddReindexDocumentRequest - */ - @Test - public void testAddReindexDocumentRequest() { - // TODO: test AddReindexDocumentRequest - } + /** + * Model tests for AddReindexDocumentRequest + */ + @Test + public void testAddReindexDocumentRequest() { + // TODO: test AddReindexDocumentRequest + } - /** - * Test the property 'target' - */ - @Test - public void targetTest() { - // TODO: test target - } + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } } diff --git a/src/test/java/com/formkiq/client/model/AddResourceItemTest.java b/src/test/java/com/formkiq/client/model/AddResourceItemTest.java index 4a48f06ab..7254fe88d 100644 --- a/src/test/java/com/formkiq/client/model/AddResourceItemTest.java +++ b/src/test/java/com/formkiq/client/model/AddResourceItemTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,62 +38,62 @@ * Model tests for AddResourceItem */ public class AddResourceItemTest { - private final AddResourceItem model = new AddResourceItem(); + private final AddResourceItem model = new AddResourceItem(); - /** - * Model tests for AddResourceItem - */ - @Test - public void testAddResourceItem() { - // TODO: test AddResourceItem - } + /** + * Model tests for AddResourceItem + */ + @Test + public void testAddResourceItem() { + // TODO: test AddResourceItem + } - /** - * Test the property 'itemType' - */ - @Test - public void itemTypeTest() { - // TODO: test itemType - } + /** + * Test the property 'itemType' + */ + @Test + public void itemTypeTest() { + // TODO: test itemType + } - /** - * Test the property 'localizedValue' - */ - @Test - public void localizedValueTest() { - // TODO: test localizedValue - } + /** + * Test the property 'localizedValue' + */ + @Test + public void localizedValueTest() { + // TODO: test localizedValue + } - /** - * Test the property 'interfaceKey' - */ - @Test - public void interfaceKeyTest() { - // TODO: test interfaceKey - } + /** + * Test the property 'interfaceKey' + */ + @Test + public void interfaceKeyTest() { + // TODO: test interfaceKey + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValue' - */ - @Test - public void allowedValueTest() { - // TODO: test allowedValue - } + /** + * Test the property 'allowedValue' + */ + @Test + public void allowedValueTest() { + // TODO: test allowedValue + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } } diff --git a/src/test/java/com/formkiq/client/model/AddResponseTest.java b/src/test/java/com/formkiq/client/model/AddResponseTest.java index 8aac15c16..b29db9e90 100644 --- a/src/test/java/com/formkiq/client/model/AddResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddResponse */ public class AddResponseTest { - private final AddResponse model = new AddResponse(); + private final AddResponse model = new AddResponse(); - /** - * Model tests for AddResponse - */ - @Test - public void testAddResponse() { - // TODO: test AddResponse - } + /** + * Model tests for AddResponse + */ + @Test + public void testAddResponse() { + // TODO: test AddResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/AddRuleRequestTest.java b/src/test/java/com/formkiq/client/model/AddRuleRequestTest.java index b41a54e89..5bcd17e53 100644 --- a/src/test/java/com/formkiq/client/model/AddRuleRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddRuleRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddRuleRequest */ public class AddRuleRequestTest { - private final AddRuleRequest model = new AddRuleRequest(); + private final AddRuleRequest model = new AddRuleRequest(); - /** - * Model tests for AddRuleRequest - */ - @Test - public void testAddRuleRequest() { - // TODO: test AddRuleRequest - } + /** + * Model tests for AddRuleRequest + */ + @Test + public void testAddRuleRequest() { + // TODO: test AddRuleRequest + } - /** - * Test the property 'rule' - */ - @Test - public void ruleTest() { - // TODO: test rule - } + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } } diff --git a/src/test/java/com/formkiq/client/model/AddRuleResponseTest.java b/src/test/java/com/formkiq/client/model/AddRuleResponseTest.java index a8a75f900..391b7c89d 100644 --- a/src/test/java/com/formkiq/client/model/AddRuleResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddRuleResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddRuleResponse */ public class AddRuleResponseTest { - private final AddRuleResponse model = new AddRuleResponse(); + private final AddRuleResponse model = new AddRuleResponse(); - /** - * Model tests for AddRuleResponse - */ - @Test - public void testAddRuleResponse() { - // TODO: test AddRuleResponse - } + /** + * Model tests for AddRuleResponse + */ + @Test + public void testAddRuleResponse() { + // TODO: test AddRuleResponse + } - /** - * Test the property 'ruleId' - */ - @Test - public void ruleIdTest() { - // TODO: test ruleId - } + /** + * Test the property 'ruleId' + */ + @Test + public void ruleIdTest() { + // TODO: test ruleId + } } diff --git a/src/test/java/com/formkiq/client/model/AddRuleTest.java b/src/test/java/com/formkiq/client/model/AddRuleTest.java index a778174a8..47787bf7f 100644 --- a/src/test/java/com/formkiq/client/model/AddRuleTest.java +++ b/src/test/java/com/formkiq/client/model/AddRuleTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,54 +37,54 @@ * Model tests for AddRule */ public class AddRuleTest { - private final AddRule model = new AddRule(); + private final AddRule model = new AddRule(); - /** - * Model tests for AddRule - */ - @Test - public void testAddRule() { - // TODO: test AddRule - } + /** + * Model tests for AddRule + */ + @Test + public void testAddRule() { + // TODO: test AddRule + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'conditions' - */ - @Test - public void conditionsTest() { - // TODO: test conditions - } + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } } diff --git a/src/test/java/com/formkiq/client/model/AddRulesetRequestTest.java b/src/test/java/com/formkiq/client/model/AddRulesetRequestTest.java index ea0791f17..714093041 100644 --- a/src/test/java/com/formkiq/client/model/AddRulesetRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddRulesetRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddRulesetRequest */ public class AddRulesetRequestTest { - private final AddRulesetRequest model = new AddRulesetRequest(); + private final AddRulesetRequest model = new AddRulesetRequest(); - /** - * Model tests for AddRulesetRequest - */ - @Test - public void testAddRulesetRequest() { - // TODO: test AddRulesetRequest - } + /** + * Model tests for AddRulesetRequest + */ + @Test + public void testAddRulesetRequest() { + // TODO: test AddRulesetRequest + } - /** - * Test the property 'ruleset' - */ - @Test - public void rulesetTest() { - // TODO: test ruleset - } + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } } diff --git a/src/test/java/com/formkiq/client/model/AddRulesetResponseTest.java b/src/test/java/com/formkiq/client/model/AddRulesetResponseTest.java index 3f1c740c9..7d0c04744 100644 --- a/src/test/java/com/formkiq/client/model/AddRulesetResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddRulesetResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddRulesetResponse */ public class AddRulesetResponseTest { - private final AddRulesetResponse model = new AddRulesetResponse(); + private final AddRulesetResponse model = new AddRulesetResponse(); - /** - * Model tests for AddRulesetResponse - */ - @Test - public void testAddRulesetResponse() { - // TODO: test AddRulesetResponse - } + /** + * Model tests for AddRulesetResponse + */ + @Test + public void testAddRulesetResponse() { + // TODO: test AddRulesetResponse + } - /** - * Test the property 'rulesetId' - */ - @Test - public void rulesetIdTest() { - // TODO: test rulesetId - } + /** + * Test the property 'rulesetId' + */ + @Test + public void rulesetIdTest() { + // TODO: test rulesetId + } } diff --git a/src/test/java/com/formkiq/client/model/AddRulesetTest.java b/src/test/java/com/formkiq/client/model/AddRulesetTest.java index 59cef08d8..7b782d9a5 100644 --- a/src/test/java/com/formkiq/client/model/AddRulesetTest.java +++ b/src/test/java/com/formkiq/client/model/AddRulesetTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,46 +36,46 @@ * Model tests for AddRuleset */ public class AddRulesetTest { - private final AddRuleset model = new AddRuleset(); + private final AddRuleset model = new AddRuleset(); - /** - * Model tests for AddRuleset - */ - @Test - public void testAddRuleset() { - // TODO: test AddRuleset - } + /** + * Model tests for AddRuleset + */ + @Test + public void testAddRuleset() { + // TODO: test AddRuleset + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/AddShareTest.java b/src/test/java/com/formkiq/client/model/AddShareTest.java index 8eea5f87c..d43ec884c 100644 --- a/src/test/java/com/formkiq/client/model/AddShareTest.java +++ b/src/test/java/com/formkiq/client/model/AddShareTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for AddShare */ public class AddShareTest { - private final AddShare model = new AddShare(); - - /** - * Model tests for AddShare - */ - @Test - public void testAddShare() { - // TODO: test AddShare - } - - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } - - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + private final AddShare model = new AddShare(); + + /** + * Model tests for AddShare + */ + @Test + public void testAddShare() { + // TODO: test AddShare + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/AddSiteRequestTest.java b/src/test/java/com/formkiq/client/model/AddSiteRequestTest.java index f9dc41932..af312de86 100644 --- a/src/test/java/com/formkiq/client/model/AddSiteRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddSiteRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddSiteRequest */ public class AddSiteRequestTest { - private final AddSiteRequest model = new AddSiteRequest(); + private final AddSiteRequest model = new AddSiteRequest(); - /** - * Model tests for AddSiteRequest - */ - @Test - public void testAddSiteRequest() { - // TODO: test AddSiteRequest - } + /** + * Model tests for AddSiteRequest + */ + @Test + public void testAddSiteRequest() { + // TODO: test AddSiteRequest + } - /** - * Test the property 'site' - */ - @Test - public void siteTest() { - // TODO: test site - } + /** + * Test the property 'site' + */ + @Test + public void siteTest() { + // TODO: test site + } } diff --git a/src/test/java/com/formkiq/client/model/AddSiteTest.java b/src/test/java/com/formkiq/client/model/AddSiteTest.java index 6cc283a19..be9613954 100644 --- a/src/test/java/com/formkiq/client/model/AddSiteTest.java +++ b/src/test/java/com/formkiq/client/model/AddSiteTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,38 +35,38 @@ * Model tests for AddSite */ public class AddSiteTest { - private final AddSite model = new AddSite(); + private final AddSite model = new AddSite(); - /** - * Model tests for AddSite - */ - @Test - public void testAddSite() { - // TODO: test AddSite - } + /** + * Model tests for AddSite + */ + @Test + public void testAddSite() { + // TODO: test AddSite + } - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } - /** - * Test the property 'title' - */ - @Test - public void titleTest() { - // TODO: test title - } + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/AddTaskRequestTest.java b/src/test/java/com/formkiq/client/model/AddTaskRequestTest.java index f1dbca2b9..b96b8a098 100644 --- a/src/test/java/com/formkiq/client/model/AddTaskRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddTaskRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddTaskRequest */ public class AddTaskRequestTest { - private final AddTaskRequest model = new AddTaskRequest(); + private final AddTaskRequest model = new AddTaskRequest(); - /** - * Model tests for AddTaskRequest - */ - @Test - public void testAddTaskRequest() { - // TODO: test AddTaskRequest - } + /** + * Model tests for AddTaskRequest + */ + @Test + public void testAddTaskRequest() { + // TODO: test AddTaskRequest + } - /** - * Test the property 'task' - */ - @Test - public void taskTest() { - // TODO: test task - } + /** + * Test the property 'task' + */ + @Test + public void taskTest() { + // TODO: test task + } } diff --git a/src/test/java/com/formkiq/client/model/AddTaskResponseTest.java b/src/test/java/com/formkiq/client/model/AddTaskResponseTest.java index 09d45ebfc..04822acaa 100644 --- a/src/test/java/com/formkiq/client/model/AddTaskResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddTaskResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddTaskResponse */ public class AddTaskResponseTest { - private final AddTaskResponse model = new AddTaskResponse(); + private final AddTaskResponse model = new AddTaskResponse(); - /** - * Model tests for AddTaskResponse - */ - @Test - public void testAddTaskResponse() { - // TODO: test AddTaskResponse - } + /** + * Model tests for AddTaskResponse + */ + @Test + public void testAddTaskResponse() { + // TODO: test AddTaskResponse + } - /** - * Test the property 'taskId' - */ - @Test - public void taskIdTest() { - // TODO: test taskId - } + /** + * Test the property 'taskId' + */ + @Test + public void taskIdTest() { + // TODO: test taskId + } } diff --git a/src/test/java/com/formkiq/client/model/AddTaskTest.java b/src/test/java/com/formkiq/client/model/AddTaskTest.java index 7e47ebdac..924245b1a 100644 --- a/src/test/java/com/formkiq/client/model/AddTaskTest.java +++ b/src/test/java/com/formkiq/client/model/AddTaskTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,86 +39,86 @@ * Model tests for AddTask */ public class AddTaskTest { - private final AddTask model = new AddTask(); + private final AddTask model = new AddTask(); - /** - * Model tests for AddTask - */ - @Test - public void testAddTask() { - // TODO: test AddTask - } + /** + * Model tests for AddTask + */ + @Test + public void testAddTask() { + // TODO: test AddTask + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/AddUserRequestTest.java b/src/test/java/com/formkiq/client/model/AddUserRequestTest.java index 3144218d4..4930df193 100644 --- a/src/test/java/com/formkiq/client/model/AddUserRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddUserRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for AddUserRequest */ public class AddUserRequestTest { - private final AddUserRequest model = new AddUserRequest(); + private final AddUserRequest model = new AddUserRequest(); - /** - * Model tests for AddUserRequest - */ - @Test - public void testAddUserRequest() { - // TODO: test AddUserRequest - } + /** + * Model tests for AddUserRequest + */ + @Test + public void testAddUserRequest() { + // TODO: test AddUserRequest + } - /** - * Test the property 'user' - */ - @Test - public void userTest() { - // TODO: test user - } + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } } diff --git a/src/test/java/com/formkiq/client/model/AddUserTest.java b/src/test/java/com/formkiq/client/model/AddUserTest.java index 8e0d153fa..bc7878ff4 100644 --- a/src/test/java/com/formkiq/client/model/AddUserTest.java +++ b/src/test/java/com/formkiq/client/model/AddUserTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for AddUser */ public class AddUserTest { - private final AddUser model = new AddUser(); - - /** - * Model tests for AddUser - */ - @Test - public void testAddUser() { - // TODO: test AddUser - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final AddUser model = new AddUser(); + + /** + * Model tests for AddUser + */ + @Test + public void testAddUser() { + // TODO: test AddUser + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/AddWebhookRequestTest.java b/src/test/java/com/formkiq/client/model/AddWebhookRequestTest.java index 91209ca05..0f4996bf0 100644 --- a/src/test/java/com/formkiq/client/model/AddWebhookRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddWebhookRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,46 +37,46 @@ * Model tests for AddWebhookRequest */ public class AddWebhookRequestTest { - private final AddWebhookRequest model = new AddWebhookRequest(); + private final AddWebhookRequest model = new AddWebhookRequest(); - /** - * Model tests for AddWebhookRequest - */ - @Test - public void testAddWebhookRequest() { - // TODO: test AddWebhookRequest - } + /** + * Model tests for AddWebhookRequest + */ + @Test + public void testAddWebhookRequest() { + // TODO: test AddWebhookRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'ttl' - */ - @Test - public void ttlTest() { - // TODO: test ttl - } + /** + * Test the property 'ttl' + */ + @Test + public void ttlTest() { + // TODO: test ttl + } - /** - * Test the property 'enabled' - */ - @Test - public void enabledTest() { - // TODO: test enabled - } + /** + * Test the property 'enabled' + */ + @Test + public void enabledTest() { + // TODO: test enabled + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/AddWebhookResponseTest.java b/src/test/java/com/formkiq/client/model/AddWebhookResponseTest.java index 470ccacf7..21962f45b 100644 --- a/src/test/java/com/formkiq/client/model/AddWebhookResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddWebhookResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for AddWebhookResponse */ public class AddWebhookResponseTest { - private final AddWebhookResponse model = new AddWebhookResponse(); - - /** - * Model tests for AddWebhookResponse - */ - @Test - public void testAddWebhookResponse() { - // TODO: test AddWebhookResponse - } - - /** - * Test the property 'webhookId' - */ - @Test - public void webhookIdTest() { - // TODO: test webhookId - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + private final AddWebhookResponse model = new AddWebhookResponse(); + + /** + * Model tests for AddWebhookResponse + */ + @Test + public void testAddWebhookResponse() { + // TODO: test AddWebhookResponse + } + + /** + * Test the property 'webhookId' + */ + @Test + public void webhookIdTest() { + // TODO: test webhookId + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } } diff --git a/src/test/java/com/formkiq/client/model/AddWebhookTagRequestTest.java b/src/test/java/com/formkiq/client/model/AddWebhookTagRequestTest.java index 750604996..6d0dc1cb1 100644 --- a/src/test/java/com/formkiq/client/model/AddWebhookTagRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddWebhookTagRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,38 +36,38 @@ * Model tests for AddWebhookTagRequest */ public class AddWebhookTagRequestTest { - private final AddWebhookTagRequest model = new AddWebhookTagRequest(); + private final AddWebhookTagRequest model = new AddWebhookTagRequest(); - /** - * Model tests for AddWebhookTagRequest - */ - @Test - public void testAddWebhookTagRequest() { - // TODO: test AddWebhookTagRequest - } + /** + * Model tests for AddWebhookTagRequest + */ + @Test + public void testAddWebhookTagRequest() { + // TODO: test AddWebhookTagRequest + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/AddWorkflowRequestTest.java b/src/test/java/com/formkiq/client/model/AddWorkflowRequestTest.java index 5e2ac150b..72b2dce1b 100644 --- a/src/test/java/com/formkiq/client/model/AddWorkflowRequestTest.java +++ b/src/test/java/com/formkiq/client/model/AddWorkflowRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,46 +38,46 @@ * Model tests for AddWorkflowRequest */ public class AddWorkflowRequestTest { - private final AddWorkflowRequest model = new AddWorkflowRequest(); + private final AddWorkflowRequest model = new AddWorkflowRequest(); - /** - * Model tests for AddWorkflowRequest - */ - @Test - public void testAddWorkflowRequest() { - // TODO: test AddWorkflowRequest - } + /** + * Model tests for AddWorkflowRequest + */ + @Test + public void testAddWorkflowRequest() { + // TODO: test AddWorkflowRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'steps' - */ - @Test - public void stepsTest() { - // TODO: test steps - } + /** + * Test the property 'steps' + */ + @Test + public void stepsTest() { + // TODO: test steps + } } diff --git a/src/test/java/com/formkiq/client/model/AddWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/AddWorkflowResponseTest.java index 86413a26a..26119c2a2 100644 --- a/src/test/java/com/formkiq/client/model/AddWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/AddWorkflowResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for AddWorkflowResponse */ public class AddWorkflowResponseTest { - private final AddWorkflowResponse model = new AddWorkflowResponse(); + private final AddWorkflowResponse model = new AddWorkflowResponse(); - /** - * Model tests for AddWorkflowResponse - */ - @Test - public void testAddWorkflowResponse() { - // TODO: test AddWorkflowResponse - } + /** + * Model tests for AddWorkflowResponse + */ + @Test + public void testAddWorkflowResponse() { + // TODO: test AddWorkflowResponse + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } } diff --git a/src/test/java/com/formkiq/client/model/AddWorkflowStepDecisionTest.java b/src/test/java/com/formkiq/client/model/AddWorkflowStepDecisionTest.java index 7f94f5afa..243cc56d3 100644 --- a/src/test/java/com/formkiq/client/model/AddWorkflowStepDecisionTest.java +++ b/src/test/java/com/formkiq/client/model/AddWorkflowStepDecisionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for AddWorkflowStepDecision */ public class AddWorkflowStepDecisionTest { - private final AddWorkflowStepDecision model = new AddWorkflowStepDecision(); - - /** - * Model tests for AddWorkflowStepDecision - */ - @Test - public void testAddWorkflowStepDecision() { - // TODO: test AddWorkflowStepDecision - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'nextStepId' - */ - @Test - public void nextStepIdTest() { - // TODO: test nextStepId - } + private final AddWorkflowStepDecision model = new AddWorkflowStepDecision(); + + /** + * Model tests for AddWorkflowStepDecision + */ + @Test + public void testAddWorkflowStepDecision() { + // TODO: test AddWorkflowStepDecision + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'nextStepId' + */ + @Test + public void nextStepIdTest() { + // TODO: test nextStepId + } } diff --git a/src/test/java/com/formkiq/client/model/AddWorkflowStepQueueTest.java b/src/test/java/com/formkiq/client/model/AddWorkflowStepQueueTest.java index 1097928d8..1825da101 100644 --- a/src/test/java/com/formkiq/client/model/AddWorkflowStepQueueTest.java +++ b/src/test/java/com/formkiq/client/model/AddWorkflowStepQueueTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for AddWorkflowStepQueue */ public class AddWorkflowStepQueueTest { - private final AddWorkflowStepQueue model = new AddWorkflowStepQueue(); - - /** - * Model tests for AddWorkflowStepQueue - */ - @Test - public void testAddWorkflowStepQueue() { - // TODO: test AddWorkflowStepQueue - } - - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } - - /** - * Test the property 'approvalGroups' - */ - @Test - public void approvalGroupsTest() { - // TODO: test approvalGroups - } + private final AddWorkflowStepQueue model = new AddWorkflowStepQueue(); + + /** + * Model tests for AddWorkflowStepQueue + */ + @Test + public void testAddWorkflowStepQueue() { + // TODO: test AddWorkflowStepQueue + } + + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } + + /** + * Test the property 'approvalGroups' + */ + @Test + public void approvalGroupsTest() { + // TODO: test approvalGroups + } } diff --git a/src/test/java/com/formkiq/client/model/AddWorkflowStepTest.java b/src/test/java/com/formkiq/client/model/AddWorkflowStepTest.java index 73280e4ce..09ac866a1 100644 --- a/src/test/java/com/formkiq/client/model/AddWorkflowStepTest.java +++ b/src/test/java/com/formkiq/client/model/AddWorkflowStepTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,46 +39,46 @@ * Model tests for AddWorkflowStep */ public class AddWorkflowStepTest { - private final AddWorkflowStep model = new AddWorkflowStep(); + private final AddWorkflowStep model = new AddWorkflowStep(); - /** - * Model tests for AddWorkflowStep - */ - @Test - public void testAddWorkflowStep() { - // TODO: test AddWorkflowStep - } + /** + * Model tests for AddWorkflowStep + */ + @Test + public void testAddWorkflowStep() { + // TODO: test AddWorkflowStep + } - /** - * Test the property 'stepId' - */ - @Test - public void stepIdTest() { - // TODO: test stepId - } + /** + * Test the property 'stepId' + */ + @Test + public void stepIdTest() { + // TODO: test stepId + } - /** - * Test the property 'action' - */ - @Test - public void actionTest() { - // TODO: test action - } + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } - /** - * Test the property 'queue' - */ - @Test - public void queueTest() { - // TODO: test queue - } + /** + * Test the property 'queue' + */ + @Test + public void queueTest() { + // TODO: test queue + } - /** - * Test the property 'decisions' - */ - @Test - public void decisionsTest() { - // TODO: test decisions - } + /** + * Test the property 'decisions' + */ + @Test + public void decisionsTest() { + // TODO: test decisions + } } diff --git a/src/test/java/com/formkiq/client/model/ApiKeyPermissionTest.java b/src/test/java/com/formkiq/client/model/ApiKeyPermissionTest.java new file mode 100644 index 000000000..65028e3bb --- /dev/null +++ b/src/test/java/com/formkiq/client/model/ApiKeyPermissionTest.java @@ -0,0 +1,39 @@ +/* + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ + + +package com.formkiq.client.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ApiKeyPermission + */ +public class ApiKeyPermissionTest { + /** + * Model tests for ApiKeyPermission + */ + @Test + public void testApiKeyPermission() { + // TODO: test ApiKeyPermission + } + +} diff --git a/src/test/java/com/formkiq/client/model/ApiKeyTest.java b/src/test/java/com/formkiq/client/model/ApiKeyTest.java index 4e5bb7658..2a0fded2e 100644 --- a/src/test/java/com/formkiq/client/model/ApiKeyTest.java +++ b/src/test/java/com/formkiq/client/model/ApiKeyTest.java @@ -1,18 +1,26 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ package com.formkiq.client.model; +import com.formkiq.client.model.ApiKeyPermission; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,62 +37,70 @@ * Model tests for ApiKey */ public class ApiKeyTest { - private final ApiKey model = new ApiKey(); + private final ApiKey model = new ApiKey(); - /** - * Model tests for ApiKey - */ - @Test - public void testApiKey() { - // TODO: test ApiKey - } + /** + * Model tests for ApiKey + */ + @Test + public void testApiKey() { + // TODO: test ApiKey + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'apiKey' - */ - @Test - public void apiKeyTest() { - // TODO: test apiKey - } + /** + * Test the property 'apiKey' + */ + @Test + public void apiKeyTest() { + // TODO: test apiKey + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeDataTypeTest.java b/src/test/java/com/formkiq/client/model/AttributeDataTypeTest.java index 9007142d1..1f7b7790e 100644 --- a/src/test/java/com/formkiq/client/model/AttributeDataTypeTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeDataTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for AttributeDataType */ public class AttributeDataTypeTest { - /** - * Model tests for AttributeDataType - */ - @Test - public void testAttributeDataType() { - // TODO: test AttributeDataType - } + /** + * Model tests for AttributeDataType + */ + @Test + public void testAttributeDataType() { + // TODO: test AttributeDataType + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeSchemaCompositeKeyTest.java b/src/test/java/com/formkiq/client/model/AttributeSchemaCompositeKeyTest.java index 3de5dd1fe..1133f5a6d 100644 --- a/src/test/java/com/formkiq/client/model/AttributeSchemaCompositeKeyTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeSchemaCompositeKeyTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,22 +36,22 @@ * Model tests for AttributeSchemaCompositeKey */ public class AttributeSchemaCompositeKeyTest { - private final AttributeSchemaCompositeKey model = new AttributeSchemaCompositeKey(); + private final AttributeSchemaCompositeKey model = new AttributeSchemaCompositeKey(); - /** - * Model tests for AttributeSchemaCompositeKey - */ - @Test - public void testAttributeSchemaCompositeKey() { - // TODO: test AttributeSchemaCompositeKey - } + /** + * Model tests for AttributeSchemaCompositeKey + */ + @Test + public void testAttributeSchemaCompositeKey() { + // TODO: test AttributeSchemaCompositeKey + } - /** - * Test the property 'attributeKeys' - */ - @Test - public void attributeKeysTest() { - // TODO: test attributeKeys - } + /** + * Test the property 'attributeKeys' + */ + @Test + public void attributeKeysTest() { + // TODO: test attributeKeys + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeSchemaOptionalTest.java b/src/test/java/com/formkiq/client/model/AttributeSchemaOptionalTest.java index cab288a5c..8d2835bdc 100644 --- a/src/test/java/com/formkiq/client/model/AttributeSchemaOptionalTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeSchemaOptionalTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,54 +39,54 @@ * Model tests for AttributeSchemaOptional */ public class AttributeSchemaOptionalTest { - private final AttributeSchemaOptional model = new AttributeSchemaOptional(); + private final AttributeSchemaOptional model = new AttributeSchemaOptional(); - /** - * Model tests for AttributeSchemaOptional - */ - @Test - public void testAttributeSchemaOptional() { - // TODO: test AttributeSchemaOptional - } + /** + * Model tests for AttributeSchemaOptional + */ + @Test + public void testAttributeSchemaOptional() { + // TODO: test AttributeSchemaOptional + } - /** - * Test the property 'minNumberOfValues' - */ - @Test - public void minNumberOfValuesTest() { - // TODO: test minNumberOfValues - } + /** + * Test the property 'minNumberOfValues' + */ + @Test + public void minNumberOfValuesTest() { + // TODO: test minNumberOfValues + } - /** - * Test the property 'maxNumberOfValues' - */ - @Test - public void maxNumberOfValuesTest() { - // TODO: test maxNumberOfValues - } + /** + * Test the property 'maxNumberOfValues' + */ + @Test + public void maxNumberOfValuesTest() { + // TODO: test maxNumberOfValues + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValues' - */ - @Test - public void allowedValuesTest() { - // TODO: test allowedValues - } + /** + * Test the property 'allowedValues' + */ + @Test + public void allowedValuesTest() { + // TODO: test allowedValues + } - /** - * Test the property 'localizedAllowedValues' - */ - @Test - public void localizedAllowedValuesTest() { - // TODO: test localizedAllowedValues - } + /** + * Test the property 'localizedAllowedValues' + */ + @Test + public void localizedAllowedValuesTest() { + // TODO: test localizedAllowedValues + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeSchemaRequiredTest.java b/src/test/java/com/formkiq/client/model/AttributeSchemaRequiredTest.java index 8b1a73701..6db4fef79 100644 --- a/src/test/java/com/formkiq/client/model/AttributeSchemaRequiredTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeSchemaRequiredTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,70 +39,70 @@ * Model tests for AttributeSchemaRequired */ public class AttributeSchemaRequiredTest { - private final AttributeSchemaRequired model = new AttributeSchemaRequired(); + private final AttributeSchemaRequired model = new AttributeSchemaRequired(); - /** - * Model tests for AttributeSchemaRequired - */ - @Test - public void testAttributeSchemaRequired() { - // TODO: test AttributeSchemaRequired - } + /** + * Model tests for AttributeSchemaRequired + */ + @Test + public void testAttributeSchemaRequired() { + // TODO: test AttributeSchemaRequired + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'minNumberOfValues' - */ - @Test - public void minNumberOfValuesTest() { - // TODO: test minNumberOfValues - } + /** + * Test the property 'minNumberOfValues' + */ + @Test + public void minNumberOfValuesTest() { + // TODO: test minNumberOfValues + } - /** - * Test the property 'maxNumberOfValues' - */ - @Test - public void maxNumberOfValuesTest() { - // TODO: test maxNumberOfValues - } + /** + * Test the property 'maxNumberOfValues' + */ + @Test + public void maxNumberOfValuesTest() { + // TODO: test maxNumberOfValues + } - /** - * Test the property 'defaultValue' - */ - @Test - public void defaultValueTest() { - // TODO: test defaultValue - } + /** + * Test the property 'defaultValue' + */ + @Test + public void defaultValueTest() { + // TODO: test defaultValue + } - /** - * Test the property 'defaultValues' - */ - @Test - public void defaultValuesTest() { - // TODO: test defaultValues - } + /** + * Test the property 'defaultValues' + */ + @Test + public void defaultValuesTest() { + // TODO: test defaultValues + } - /** - * Test the property 'allowedValues' - */ - @Test - public void allowedValuesTest() { - // TODO: test allowedValues - } + /** + * Test the property 'allowedValues' + */ + @Test + public void allowedValuesTest() { + // TODO: test allowedValues + } - /** - * Test the property 'localizedAllowedValues' - */ - @Test - public void localizedAllowedValuesTest() { - // TODO: test localizedAllowedValues - } + /** + * Test the property 'localizedAllowedValues' + */ + @Test + public void localizedAllowedValuesTest() { + // TODO: test localizedAllowedValues + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeTest.java b/src/test/java/com/formkiq/client/model/AttributeTest.java index 9a168b637..d53fb85ba 100644 --- a/src/test/java/com/formkiq/client/model/AttributeTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,46 +37,46 @@ * Model tests for Attribute */ public class AttributeTest { - private final Attribute model = new Attribute(); + private final Attribute model = new Attribute(); - /** - * Model tests for Attribute - */ - @Test - public void testAttribute() { - // TODO: test Attribute - } + /** + * Model tests for Attribute + */ + @Test + public void testAttribute() { + // TODO: test Attribute + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'dataType' - */ - @Test - public void dataTypeTest() { - // TODO: test dataType - } + /** + * Test the property 'dataType' + */ + @Test + public void dataTypeTest() { + // TODO: test dataType + } - /** - * Test the property 'watermark' - */ - @Test - public void watermarkTest() { - // TODO: test watermark - } + /** + * Test the property 'watermark' + */ + @Test + public void watermarkTest() { + // TODO: test watermark + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeTypeTest.java b/src/test/java/com/formkiq/client/model/AttributeTypeTest.java index e3b16edd0..e6524c577 100644 --- a/src/test/java/com/formkiq/client/model/AttributeTypeTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for AttributeType */ public class AttributeTypeTest { - /** - * Model tests for AttributeType - */ - @Test - public void testAttributeType() { - // TODO: test AttributeType - } + /** + * Model tests for AttributeType + */ + @Test + public void testAttributeType() { + // TODO: test AttributeType + } } diff --git a/src/test/java/com/formkiq/client/model/AttributeValueTypeTest.java b/src/test/java/com/formkiq/client/model/AttributeValueTypeTest.java index d5c18229a..54428371c 100644 --- a/src/test/java/com/formkiq/client/model/AttributeValueTypeTest.java +++ b/src/test/java/com/formkiq/client/model/AttributeValueTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for AttributeValueType */ public class AttributeValueTypeTest { - /** - * Model tests for AttributeValueType - */ - @Test - public void testAttributeValueType() { - // TODO: test AttributeValueType - } + /** + * Model tests for AttributeValueType + */ + @Test + public void testAttributeValueType() { + // TODO: test AttributeValueType + } } diff --git a/src/test/java/com/formkiq/client/model/CaseStatusTest.java b/src/test/java/com/formkiq/client/model/CaseStatusTest.java index 269052d3d..735e15355 100644 --- a/src/test/java/com/formkiq/client/model/CaseStatusTest.java +++ b/src/test/java/com/formkiq/client/model/CaseStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for CaseStatus */ public class CaseStatusTest { - /** - * Model tests for CaseStatus - */ - @Test - public void testCaseStatus() { - // TODO: test CaseStatus - } + /** + * Model tests for CaseStatus + */ + @Test + public void testCaseStatus() { + // TODO: test CaseStatus + } } diff --git a/src/test/java/com/formkiq/client/model/ChecksumTypeTest.java b/src/test/java/com/formkiq/client/model/ChecksumTypeTest.java index f1c3addd0..49b38160b 100644 --- a/src/test/java/com/formkiq/client/model/ChecksumTypeTest.java +++ b/src/test/java/com/formkiq/client/model/ChecksumTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for ChecksumType */ public class ChecksumTypeTest { - /** - * Model tests for ChecksumType - */ - @Test - public void testChecksumType() { - // TODO: test ChecksumType - } + /** + * Model tests for ChecksumType + */ + @Test + public void testChecksumType() { + // TODO: test ChecksumType + } } diff --git a/src/test/java/com/formkiq/client/model/ChildDocumentTest.java b/src/test/java/com/formkiq/client/model/ChildDocumentTest.java index 4e209b71c..ac8386b39 100644 --- a/src/test/java/com/formkiq/client/model/ChildDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/ChildDocumentTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,118 +34,118 @@ * Model tests for ChildDocument */ public class ChildDocumentTest { - private final ChildDocument model = new ChildDocument(); - - /** - * Model tests for ChildDocument - */ - @Test - public void testChildDocument() { - // TODO: test ChildDocument - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'versionId' - */ - @Test - public void versionIdTest() { - // TODO: test versionId - } - - /** - * Test the property 'belongsToDocumentId' - */ - @Test - public void belongsToDocumentIdTest() { - // TODO: test belongsToDocumentId - } + private final ChildDocument model = new ChildDocument(); + + /** + * Model tests for ChildDocument + */ + @Test + public void testChildDocument() { + // TODO: test ChildDocument + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'versionId' + */ + @Test + public void versionIdTest() { + // TODO: test versionId + } + + /** + * Test the property 'belongsToDocumentId' + */ + @Test + public void belongsToDocumentIdTest() { + // TODO: test belongsToDocumentId + } } diff --git a/src/test/java/com/formkiq/client/model/ClassificationSummaryTest.java b/src/test/java/com/formkiq/client/model/ClassificationSummaryTest.java index 26826a70e..3942bacd8 100644 --- a/src/test/java/com/formkiq/client/model/ClassificationSummaryTest.java +++ b/src/test/java/com/formkiq/client/model/ClassificationSummaryTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,46 +34,46 @@ * Model tests for ClassificationSummary */ public class ClassificationSummaryTest { - private final ClassificationSummary model = new ClassificationSummary(); + private final ClassificationSummary model = new ClassificationSummary(); - /** - * Model tests for ClassificationSummary - */ - @Test - public void testClassificationSummary() { - // TODO: test ClassificationSummary - } + /** + * Model tests for ClassificationSummary + */ + @Test + public void testClassificationSummary() { + // TODO: test ClassificationSummary + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } } diff --git a/src/test/java/com/formkiq/client/model/ClassificationTest.java b/src/test/java/com/formkiq/client/model/ClassificationTest.java index d01debcf4..9f1e30c90 100644 --- a/src/test/java/com/formkiq/client/model/ClassificationTest.java +++ b/src/test/java/com/formkiq/client/model/ClassificationTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,46 +35,46 @@ * Model tests for Classification */ public class ClassificationTest { - private final Classification model = new Classification(); + private final Classification model = new Classification(); - /** - * Model tests for Classification - */ - @Test - public void testClassification() { - // TODO: test Classification - } + /** + * Model tests for Classification + */ + @Test + public void testClassification() { + // TODO: test Classification + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/DataClassificationAttributeTest.java b/src/test/java/com/formkiq/client/model/DataClassificationAttributeTest.java index a437a0061..1ca5815e3 100644 --- a/src/test/java/com/formkiq/client/model/DataClassificationAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/DataClassificationAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for DataClassificationAttribute */ public class DataClassificationAttributeTest { - private final DataClassificationAttribute model = new DataClassificationAttribute(); - - /** - * Model tests for DataClassificationAttribute - */ - @Test - public void testDataClassificationAttribute() { - // TODO: test DataClassificationAttribute - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + private final DataClassificationAttribute model = new DataClassificationAttribute(); + + /** + * Model tests for DataClassificationAttribute + */ + @Test + public void testDataClassificationAttribute() { + // TODO: test DataClassificationAttribute + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } } diff --git a/src/test/java/com/formkiq/client/model/DataClassificationTest.java b/src/test/java/com/formkiq/client/model/DataClassificationTest.java index a9369faad..a584b27ff 100644 --- a/src/test/java/com/formkiq/client/model/DataClassificationTest.java +++ b/src/test/java/com/formkiq/client/model/DataClassificationTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,54 +37,54 @@ * Model tests for DataClassification */ public class DataClassificationTest { - private final DataClassification model = new DataClassification(); + private final DataClassification model = new DataClassification(); - /** - * Model tests for DataClassification - */ - @Test - public void testDataClassification() { - // TODO: test DataClassification - } + /** + * Model tests for DataClassification + */ + @Test + public void testDataClassification() { + // TODO: test DataClassification + } - /** - * Test the property 'llmPromptEntityName' - */ - @Test - public void llmPromptEntityNameTest() { - // TODO: test llmPromptEntityName - } + /** + * Test the property 'llmPromptEntityName' + */ + @Test + public void llmPromptEntityNameTest() { + // TODO: test llmPromptEntityName + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteApiKeyResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteApiKeyResponseTest.java index 08fccd7eb..0589f879a 100644 --- a/src/test/java/com/formkiq/client/model/DeleteApiKeyResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteApiKeyResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteApiKeyResponse */ public class DeleteApiKeyResponseTest { - private final DeleteApiKeyResponse model = new DeleteApiKeyResponse(); + private final DeleteApiKeyResponse model = new DeleteApiKeyResponse(); - /** - * Model tests for DeleteApiKeyResponse - */ - @Test - public void testDeleteApiKeyResponse() { - // TODO: test DeleteApiKeyResponse - } + /** + * Model tests for DeleteApiKeyResponse + */ + @Test + public void testDeleteApiKeyResponse() { + // TODO: test DeleteApiKeyResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseDocumentResponseTest.java index b0aeea419..f9710b0ca 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseDocumentResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteCaseDocumentResponse */ public class DeleteCaseDocumentResponseTest { - private final DeleteCaseDocumentResponse model = new DeleteCaseDocumentResponse(); + private final DeleteCaseDocumentResponse model = new DeleteCaseDocumentResponse(); - /** - * Model tests for DeleteCaseDocumentResponse - */ - @Test - public void testDeleteCaseDocumentResponse() { - // TODO: test DeleteCaseDocumentResponse - } + /** + * Model tests for DeleteCaseDocumentResponse + */ + @Test + public void testDeleteCaseDocumentResponse() { + // TODO: test DeleteCaseDocumentResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponseTest.java index 570574c05..bed1e9ec6 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteCaseNigoDocumentResponse */ public class DeleteCaseNigoDocumentResponseTest { - private final DeleteCaseNigoDocumentResponse model = new DeleteCaseNigoDocumentResponse(); + private final DeleteCaseNigoDocumentResponse model = new DeleteCaseNigoDocumentResponse(); - /** - * Model tests for DeleteCaseNigoDocumentResponse - */ - @Test - public void testDeleteCaseNigoDocumentResponse() { - // TODO: test DeleteCaseNigoDocumentResponse - } + /** + * Model tests for DeleteCaseNigoDocumentResponse + */ + @Test + public void testDeleteCaseNigoDocumentResponse() { + // TODO: test DeleteCaseNigoDocumentResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseNigoResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseNigoResponseTest.java index 9c5e91f3f..009cb958d 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseNigoResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseNigoResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteCaseNigoResponse */ public class DeleteCaseNigoResponseTest { - private final DeleteCaseNigoResponse model = new DeleteCaseNigoResponse(); + private final DeleteCaseNigoResponse model = new DeleteCaseNigoResponse(); - /** - * Model tests for DeleteCaseNigoResponse - */ - @Test - public void testDeleteCaseNigoResponse() { - // TODO: test DeleteCaseNigoResponse - } + /** + * Model tests for DeleteCaseNigoResponse + */ + @Test + public void testDeleteCaseNigoResponse() { + // TODO: test DeleteCaseNigoResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseResponseTest.java index de9211268..44f5cd3df 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteCaseResponse */ public class DeleteCaseResponseTest { - private final DeleteCaseResponse model = new DeleteCaseResponse(); + private final DeleteCaseResponse model = new DeleteCaseResponse(); - /** - * Model tests for DeleteCaseResponse - */ - @Test - public void testDeleteCaseResponse() { - // TODO: test DeleteCaseResponse - } + /** + * Model tests for DeleteCaseResponse + */ + @Test + public void testDeleteCaseResponse() { + // TODO: test DeleteCaseResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponseTest.java index 4f51cd253..5e034bdaf 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteCaseTaskDocumentResponse */ public class DeleteCaseTaskDocumentResponseTest { - private final DeleteCaseTaskDocumentResponse model = new DeleteCaseTaskDocumentResponse(); + private final DeleteCaseTaskDocumentResponse model = new DeleteCaseTaskDocumentResponse(); - /** - * Model tests for DeleteCaseTaskDocumentResponse - */ - @Test - public void testDeleteCaseTaskDocumentResponse() { - // TODO: test DeleteCaseTaskDocumentResponse - } + /** + * Model tests for DeleteCaseTaskDocumentResponse + */ + @Test + public void testDeleteCaseTaskDocumentResponse() { + // TODO: test DeleteCaseTaskDocumentResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteCaseTaskResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteCaseTaskResponseTest.java index 08f98c9c0..a5aba6130 100644 --- a/src/test/java/com/formkiq/client/model/DeleteCaseTaskResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteCaseTaskResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteCaseTaskResponse */ public class DeleteCaseTaskResponseTest { - private final DeleteCaseTaskResponse model = new DeleteCaseTaskResponse(); + private final DeleteCaseTaskResponse model = new DeleteCaseTaskResponse(); - /** - * Model tests for DeleteCaseTaskResponse - */ - @Test - public void testDeleteCaseTaskResponse() { - // TODO: test DeleteCaseTaskResponse - } + /** + * Model tests for DeleteCaseTaskResponse + */ + @Test + public void testDeleteCaseTaskResponse() { + // TODO: test DeleteCaseTaskResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteFolderResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteFolderResponseTest.java index e05003309..2e2448a81 100644 --- a/src/test/java/com/formkiq/client/model/DeleteFolderResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteFolderResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteFolderResponse */ public class DeleteFolderResponseTest { - private final DeleteFolderResponse model = new DeleteFolderResponse(); + private final DeleteFolderResponse model = new DeleteFolderResponse(); - /** - * Model tests for DeleteFolderResponse - */ - @Test - public void testDeleteFolderResponse() { - // TODO: test DeleteFolderResponse - } + /** + * Model tests for DeleteFolderResponse + */ + @Test + public void testDeleteFolderResponse() { + // TODO: test DeleteFolderResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteFulltextResponseTest.java index bd0901d36..b6eb6590f 100644 --- a/src/test/java/com/formkiq/client/model/DeleteFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteFulltextResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteFulltextResponse */ public class DeleteFulltextResponseTest { - private final DeleteFulltextResponse model = new DeleteFulltextResponse(); + private final DeleteFulltextResponse model = new DeleteFulltextResponse(); - /** - * Model tests for DeleteFulltextResponse - */ - @Test - public void testDeleteFulltextResponse() { - // TODO: test DeleteFulltextResponse - } + /** + * Model tests for DeleteFulltextResponse + */ + @Test + public void testDeleteFulltextResponse() { + // TODO: test DeleteFulltextResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteIndicesResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteIndicesResponseTest.java index 5916e4898..8a1554373 100644 --- a/src/test/java/com/formkiq/client/model/DeleteIndicesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteIndicesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteIndicesResponse */ public class DeleteIndicesResponseTest { - private final DeleteIndicesResponse model = new DeleteIndicesResponse(); + private final DeleteIndicesResponse model = new DeleteIndicesResponse(); - /** - * Model tests for DeleteIndicesResponse - */ - @Test - public void testDeleteIndicesResponse() { - // TODO: test DeleteIndicesResponse - } + /** + * Model tests for DeleteIndicesResponse + */ + @Test + public void testDeleteIndicesResponse() { + // TODO: test DeleteIndicesResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteQueueResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteQueueResponseTest.java index 5e791b88e..494faf706 100644 --- a/src/test/java/com/formkiq/client/model/DeleteQueueResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteQueueResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteQueueResponse */ public class DeleteQueueResponseTest { - private final DeleteQueueResponse model = new DeleteQueueResponse(); + private final DeleteQueueResponse model = new DeleteQueueResponse(); - /** - * Model tests for DeleteQueueResponse - */ - @Test - public void testDeleteQueueResponse() { - // TODO: test DeleteQueueResponse - } + /** + * Model tests for DeleteQueueResponse + */ + @Test + public void testDeleteQueueResponse() { + // TODO: test DeleteQueueResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteResponseTest.java index b6e8f054f..e2c505302 100644 --- a/src/test/java/com/formkiq/client/model/DeleteResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteResponse */ public class DeleteResponseTest { - private final DeleteResponse model = new DeleteResponse(); + private final DeleteResponse model = new DeleteResponse(); - /** - * Model tests for DeleteResponse - */ - @Test - public void testDeleteResponse() { - // TODO: test DeleteResponse - } + /** + * Model tests for DeleteResponse + */ + @Test + public void testDeleteResponse() { + // TODO: test DeleteResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteRuleResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteRuleResponseTest.java index 56723f4e3..5ed2e47a5 100644 --- a/src/test/java/com/formkiq/client/model/DeleteRuleResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteRuleResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteRuleResponse */ public class DeleteRuleResponseTest { - private final DeleteRuleResponse model = new DeleteRuleResponse(); + private final DeleteRuleResponse model = new DeleteRuleResponse(); - /** - * Model tests for DeleteRuleResponse - */ - @Test - public void testDeleteRuleResponse() { - // TODO: test DeleteRuleResponse - } + /** + * Model tests for DeleteRuleResponse + */ + @Test + public void testDeleteRuleResponse() { + // TODO: test DeleteRuleResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteRulesetResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteRulesetResponseTest.java index 2ade6d50b..c4462e1c6 100644 --- a/src/test/java/com/formkiq/client/model/DeleteRulesetResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteRulesetResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteRulesetResponse */ public class DeleteRulesetResponseTest { - private final DeleteRulesetResponse model = new DeleteRulesetResponse(); + private final DeleteRulesetResponse model = new DeleteRulesetResponse(); - /** - * Model tests for DeleteRulesetResponse - */ - @Test - public void testDeleteRulesetResponse() { - // TODO: test DeleteRulesetResponse - } + /** + * Model tests for DeleteRulesetResponse + */ + @Test + public void testDeleteRulesetResponse() { + // TODO: test DeleteRulesetResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteShareResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteShareResponseTest.java index 24c605dbe..2cec5d697 100644 --- a/src/test/java/com/formkiq/client/model/DeleteShareResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteShareResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteShareResponse */ public class DeleteShareResponseTest { - private final DeleteShareResponse model = new DeleteShareResponse(); + private final DeleteShareResponse model = new DeleteShareResponse(); - /** - * Model tests for DeleteShareResponse - */ - @Test - public void testDeleteShareResponse() { - // TODO: test DeleteShareResponse - } + /** + * Model tests for DeleteShareResponse + */ + @Test + public void testDeleteShareResponse() { + // TODO: test DeleteShareResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DeleteWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/DeleteWorkflowResponseTest.java index 69a8ecb6e..4d56ee09e 100644 --- a/src/test/java/com/formkiq/client/model/DeleteWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DeleteWorkflowResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DeleteWorkflowResponse */ public class DeleteWorkflowResponseTest { - private final DeleteWorkflowResponse model = new DeleteWorkflowResponse(); + private final DeleteWorkflowResponse model = new DeleteWorkflowResponse(); - /** - * Model tests for DeleteWorkflowResponse - */ - @Test - public void testDeleteWorkflowResponse() { - // TODO: test DeleteWorkflowResponse - } + /** + * Model tests for DeleteWorkflowResponse + */ + @Test + public void testDeleteWorkflowResponse() { + // TODO: test DeleteWorkflowResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentActionStatusTest.java b/src/test/java/com/formkiq/client/model/DocumentActionStatusTest.java index dcad8018c..171d4843a 100644 --- a/src/test/java/com/formkiq/client/model/DocumentActionStatusTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentActionStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for DocumentActionStatus */ public class DocumentActionStatusTest { - /** - * Model tests for DocumentActionStatus - */ - @Test - public void testDocumentActionStatus() { - // TODO: test DocumentActionStatus - } + /** + * Model tests for DocumentActionStatus + */ + @Test + public void testDocumentActionStatus() { + // TODO: test DocumentActionStatus + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentActionTest.java b/src/test/java/com/formkiq/client/model/DocumentActionTest.java index 3de26826c..7df3f2e84 100644 --- a/src/test/java/com/formkiq/client/model/DocumentActionTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentActionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,126 +39,126 @@ * Model tests for DocumentAction */ public class DocumentActionTest { - private final DocumentAction model = new DocumentAction(); - - /** - * Model tests for DocumentAction - */ - @Test - public void testDocumentAction() { - // TODO: test DocumentAction - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'retryCount' - */ - @Test - public void retryCountTest() { - // TODO: test retryCount - } - - /** - * Test the property 'maxRetries' - */ - @Test - public void maxRetriesTest() { - // TODO: test maxRetries - } - - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } - - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } - - /** - * Test the property 'workflowStepId' - */ - @Test - public void workflowStepIdTest() { - // TODO: test workflowStepId - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } - - /** - * Test the property 'completedDate' - */ - @Test - public void completedDateTest() { - // TODO: test completedDate - } - - /** - * Test the property 'parameters' - */ - @Test - public void parametersTest() { - // TODO: test parameters - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final DocumentAction model = new DocumentAction(); + + /** + * Model tests for DocumentAction + */ + @Test + public void testDocumentAction() { + // TODO: test DocumentAction + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'retryCount' + */ + @Test + public void retryCountTest() { + // TODO: test retryCount + } + + /** + * Test the property 'maxRetries' + */ + @Test + public void maxRetriesTest() { + // TODO: test maxRetries + } + + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } + + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } + + /** + * Test the property 'workflowStepId' + */ + @Test + public void workflowStepIdTest() { + // TODO: test workflowStepId + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'completedDate' + */ + @Test + public void completedDateTest() { + // TODO: test completedDate + } + + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentActionTypeTest.java b/src/test/java/com/formkiq/client/model/DocumentActionTypeTest.java index 8be278fd0..0168cc16c 100644 --- a/src/test/java/com/formkiq/client/model/DocumentActionTypeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentActionTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for DocumentActionType */ public class DocumentActionTypeTest { - /** - * Model tests for DocumentActionType - */ - @Test - public void testDocumentActionType() { - // TODO: test DocumentActionType - } + /** + * Model tests for DocumentActionType + */ + @Test + public void testDocumentActionType() { + // TODO: test DocumentActionType + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentAttributeTest.java b/src/test/java/com/formkiq/client/model/DocumentAttributeTest.java index ec7f4678c..f811b9af7 100644 --- a/src/test/java/com/formkiq/client/model/DocumentAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,86 +38,86 @@ * Model tests for DocumentAttribute */ public class DocumentAttributeTest { - private final DocumentAttribute model = new DocumentAttribute(); + private final DocumentAttribute model = new DocumentAttribute(); - /** - * Model tests for DocumentAttribute - */ - @Test - public void testDocumentAttribute() { - // TODO: test DocumentAttribute - } + /** + * Model tests for DocumentAttribute + */ + @Test + public void testDocumentAttribute() { + // TODO: test DocumentAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'valueType' - */ - @Test - public void valueTypeTest() { - // TODO: test valueType - } + /** + * Test the property 'valueType' + */ + @Test + public void valueTypeTest() { + // TODO: test valueType + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentConfigContentTypesTest.java b/src/test/java/com/formkiq/client/model/DocumentConfigContentTypesTest.java new file mode 100644 index 000000000..8584ae857 --- /dev/null +++ b/src/test/java/com/formkiq/client/model/DocumentConfigContentTypesTest.java @@ -0,0 +1,65 @@ +/* + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ + + +package com.formkiq.client.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DocumentConfigContentTypes + */ +public class DocumentConfigContentTypesTest { + private final DocumentConfigContentTypes model = new DocumentConfigContentTypes(); + + /** + * Model tests for DocumentConfigContentTypes + */ + @Test + public void testDocumentConfigContentTypes() { + // TODO: test DocumentConfigContentTypes + } + + /** + * Test the property 'allowlist' + */ + @Test + public void allowlistTest() { + // TODO: test allowlist + } + + /** + * Test the property 'denylist' + */ + @Test + public void denylistTest() { + // TODO: test denylist + } + +} diff --git a/src/test/java/com/formkiq/client/model/DocumentConfigTest.java b/src/test/java/com/formkiq/client/model/DocumentConfigTest.java new file mode 100644 index 000000000..c608acab1 --- /dev/null +++ b/src/test/java/com/formkiq/client/model/DocumentConfigTest.java @@ -0,0 +1,56 @@ +/* + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech Do not edit the class manually. + */ + + +package com.formkiq.client.model; + +import com.formkiq.client.model.DocumentConfigContentTypes; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DocumentConfig + */ +public class DocumentConfigTest { + private final DocumentConfig model = new DocumentConfig(); + + /** + * Model tests for DocumentConfig + */ + @Test + public void testDocumentConfig() { + // TODO: test DocumentConfig + } + + /** + * Test the property 'contentTypes' + */ + @Test + public void contentTypesTest() { + // TODO: test contentTypes + } + +} diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeEqTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeEqTest.java index 326287d31..aac495a21 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeEqTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeEqTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,38 +35,38 @@ * Model tests for DocumentFulltextAttributeEq */ public class DocumentFulltextAttributeEqTest { - private final DocumentFulltextAttributeEq model = new DocumentFulltextAttributeEq(); + private final DocumentFulltextAttributeEq model = new DocumentFulltextAttributeEq(); - /** - * Model tests for DocumentFulltextAttributeEq - */ - @Test - public void testDocumentFulltextAttributeEq() { - // TODO: test DocumentFulltextAttributeEq - } + /** + * Model tests for DocumentFulltextAttributeEq + */ + @Test + public void testDocumentFulltextAttributeEq() { + // TODO: test DocumentFulltextAttributeEq + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeTest.java index b11e4572f..31a97709f 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,38 +37,38 @@ * Model tests for DocumentFulltextAttribute */ public class DocumentFulltextAttributeTest { - private final DocumentFulltextAttribute model = new DocumentFulltextAttribute(); + private final DocumentFulltextAttribute model = new DocumentFulltextAttribute(); - /** - * Model tests for DocumentFulltextAttribute - */ - @Test - public void testDocumentFulltextAttribute() { - // TODO: test DocumentFulltextAttribute - } + /** + * Model tests for DocumentFulltextAttribute + */ + @Test + public void testDocumentFulltextAttribute() { + // TODO: test DocumentFulltextAttribute + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'eqOr' - */ - @Test - public void eqOrTest() { - // TODO: test eqOr - } + /** + * Test the property 'eqOr' + */ + @Test + public void eqOrTest() { + // TODO: test eqOr + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextRequestTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextRequestTest.java index 7d691b634..f9aee3e9e 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextRequestTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for DocumentFulltextRequest */ public class DocumentFulltextRequestTest { - private final DocumentFulltextRequest model = new DocumentFulltextRequest(); - - /** - * Model tests for DocumentFulltextRequest - */ - @Test - public void testDocumentFulltextRequest() { - // TODO: test DocumentFulltextRequest - } - - /** - * Test the property 'query' - */ - @Test - public void queryTest() { - // TODO: test query - } - - /** - * Test the property 'responseFields' - */ - @Test - public void responseFieldsTest() { - // TODO: test responseFields - } + private final DocumentFulltextRequest model = new DocumentFulltextRequest(); + + /** + * Model tests for DocumentFulltextRequest + */ + @Test + public void testDocumentFulltextRequest() { + // TODO: test DocumentFulltextRequest + } + + /** + * Test the property 'query' + */ + @Test + public void queryTest() { + // TODO: test query + } + + /** + * Test the property 'responseFields' + */ + @Test + public void responseFieldsTest() { + // TODO: test responseFields + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java index ec6e4bf47..e63f3a47a 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for DocumentFulltextResponse */ public class DocumentFulltextResponseTest { - private final DocumentFulltextResponse model = new DocumentFulltextResponse(); + private final DocumentFulltextResponse model = new DocumentFulltextResponse(); - /** - * Model tests for DocumentFulltextResponse - */ - @Test - public void testDocumentFulltextResponse() { - // TODO: test DocumentFulltextResponse - } + /** + * Model tests for DocumentFulltextResponse + */ + @Test + public void testDocumentFulltextResponse() { + // TODO: test DocumentFulltextResponse + } - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextSearchTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextSearchTest.java index 5c4f0d36d..117e4665c 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextSearchTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextSearchTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,46 +38,46 @@ * Model tests for DocumentFulltextSearch */ public class DocumentFulltextSearchTest { - private final DocumentFulltextSearch model = new DocumentFulltextSearch(); + private final DocumentFulltextSearch model = new DocumentFulltextSearch(); - /** - * Model tests for DocumentFulltextSearch - */ - @Test - public void testDocumentFulltextSearch() { - // TODO: test DocumentFulltextSearch - } + /** + * Model tests for DocumentFulltextSearch + */ + @Test + public void testDocumentFulltextSearch() { + // TODO: test DocumentFulltextSearch + } - /** - * Test the property 'page' - */ - @Test - public void pageTest() { - // TODO: test page - } + /** + * Test the property 'page' + */ + @Test + public void pageTest() { + // TODO: test page + } - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextTagTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextTagTest.java index 0508d5994..fc7672863 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextTagTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextTagTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,38 +36,38 @@ * Model tests for DocumentFulltextTag */ public class DocumentFulltextTagTest { - private final DocumentFulltextTag model = new DocumentFulltextTag(); + private final DocumentFulltextTag model = new DocumentFulltextTag(); - /** - * Model tests for DocumentFulltextTag - */ - @Test - public void testDocumentFulltextTag() { - // TODO: test DocumentFulltextTag - } + /** + * Model tests for DocumentFulltextTag + */ + @Test + public void testDocumentFulltextTag() { + // TODO: test DocumentFulltextTag + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'eqOr' - */ - @Test - public void eqOrTest() { - // TODO: test eqOr - } + /** + * Test the property 'eqOr' + */ + @Test + public void eqOrTest() { + // TODO: test eqOr + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentGenerateDataSourceTest.java b/src/test/java/com/formkiq/client/model/DocumentGenerateDataSourceTest.java index 1cae56b33..cb8453870 100644 --- a/src/test/java/com/formkiq/client/model/DocumentGenerateDataSourceTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentGenerateDataSourceTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,38 +34,38 @@ * Model tests for DocumentGenerateDataSource */ public class DocumentGenerateDataSourceTest { - private final DocumentGenerateDataSource model = new DocumentGenerateDataSource(); + private final DocumentGenerateDataSource model = new DocumentGenerateDataSource(); - /** - * Model tests for DocumentGenerateDataSource - */ - @Test - public void testDocumentGenerateDataSource() { - // TODO: test DocumentGenerateDataSource - } + /** + * Model tests for DocumentGenerateDataSource + */ + @Test + public void testDocumentGenerateDataSource() { + // TODO: test DocumentGenerateDataSource + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'dataRoot' - */ - @Test - public void dataRootTest() { - // TODO: test dataRoot - } + /** + * Test the property 'dataRoot' + */ + @Test + public void dataRootTest() { + // TODO: test dataRoot + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPositionTest.java b/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPositionTest.java index 13195b1d7..361292b47 100644 --- a/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPositionTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentPositionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for DocumentGenerateInsertDocumentPosition */ public class DocumentGenerateInsertDocumentPositionTest { - /** - * Model tests for DocumentGenerateInsertDocumentPosition - */ - @Test - public void testDocumentGenerateInsertDocumentPosition() { - // TODO: test DocumentGenerateInsertDocumentPosition - } + /** + * Model tests for DocumentGenerateInsertDocumentPosition + */ + @Test + public void testDocumentGenerateInsertDocumentPosition() { + // TODO: test DocumentGenerateInsertDocumentPosition + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentTest.java b/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentTest.java index 12200bcaa..8924899c8 100644 --- a/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentGenerateInsertDocumentTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for DocumentGenerateInsertDocument */ public class DocumentGenerateInsertDocumentTest { - private final DocumentGenerateInsertDocument model = new DocumentGenerateInsertDocument(); - - /** - * Model tests for DocumentGenerateInsertDocument - */ - @Test - public void testDocumentGenerateInsertDocument() { - // TODO: test DocumentGenerateInsertDocument - } - - /** - * Test the property 'position' - */ - @Test - public void positionTest() { - // TODO: test position - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + private final DocumentGenerateInsertDocument model = new DocumentGenerateInsertDocument(); + + /** + * Model tests for DocumentGenerateInsertDocument + */ + @Test + public void testDocumentGenerateInsertDocument() { + // TODO: test DocumentGenerateInsertDocument + } + + /** + * Test the property 'position' + */ + @Test + public void positionTest() { + // TODO: test position + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentGenerateOutputTypeTest.java b/src/test/java/com/formkiq/client/model/DocumentGenerateOutputTypeTest.java index d744df91f..9011451df 100644 --- a/src/test/java/com/formkiq/client/model/DocumentGenerateOutputTypeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentGenerateOutputTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for DocumentGenerateOutputType */ public class DocumentGenerateOutputTypeTest { - /** - * Model tests for DocumentGenerateOutputType - */ - @Test - public void testDocumentGenerateOutputType() { - // TODO: test DocumentGenerateOutputType - } + /** + * Model tests for DocumentGenerateOutputType + */ + @Test + public void testDocumentGenerateOutputType() { + // TODO: test DocumentGenerateOutputType + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentIdTest.java b/src/test/java/com/formkiq/client/model/DocumentIdTest.java index 646b270bb..5246b2937 100644 --- a/src/test/java/com/formkiq/client/model/DocumentIdTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentIdTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for DocumentId */ public class DocumentIdTest { - private final DocumentId model = new DocumentId(); - - /** - * Model tests for DocumentId - */ - @Test - public void testDocumentId() { - // TODO: test DocumentId - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + private final DocumentId model = new DocumentId(); + + /** + * Model tests for DocumentId + */ + @Test + public void testDocumentId() { + // TODO: test DocumentId + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentMetadataTest.java b/src/test/java/com/formkiq/client/model/DocumentMetadataTest.java index 89652cb2c..6f6a20f18 100644 --- a/src/test/java/com/formkiq/client/model/DocumentMetadataTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentMetadataTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,38 +36,38 @@ * Model tests for DocumentMetadata */ public class DocumentMetadataTest { - private final DocumentMetadata model = new DocumentMetadata(); + private final DocumentMetadata model = new DocumentMetadata(); - /** - * Model tests for DocumentMetadata - */ - @Test - public void testDocumentMetadata() { - // TODO: test DocumentMetadata - } + /** + * Model tests for DocumentMetadata + */ + @Test + public void testDocumentMetadata() { + // TODO: test DocumentMetadata + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentRelationshipTypeTest.java b/src/test/java/com/formkiq/client/model/DocumentRelationshipTypeTest.java index c5ec22106..ee887269a 100644 --- a/src/test/java/com/formkiq/client/model/DocumentRelationshipTypeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentRelationshipTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for DocumentRelationshipType */ public class DocumentRelationshipTypeTest { - /** - * Model tests for DocumentRelationshipType - */ - @Test - public void testDocumentRelationshipType() { - // TODO: test DocumentRelationshipType - } + /** + * Model tests for DocumentRelationshipType + */ + @Test + public void testDocumentRelationshipType() { + // TODO: test DocumentRelationshipType + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchAttributeTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchAttributeTest.java index d60caceb3..e547fbf6b 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,54 +37,54 @@ * Model tests for DocumentSearchAttribute */ public class DocumentSearchAttributeTest { - private final DocumentSearchAttribute model = new DocumentSearchAttribute(); + private final DocumentSearchAttribute model = new DocumentSearchAttribute(); - /** - * Model tests for DocumentSearchAttribute - */ - @Test - public void testDocumentSearchAttribute() { - // TODO: test DocumentSearchAttribute - } + /** + * Model tests for DocumentSearchAttribute + */ + @Test + public void testDocumentSearchAttribute() { + // TODO: test DocumentSearchAttribute + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'eqOr' - */ - @Test - public void eqOrTest() { - // TODO: test eqOr - } + /** + * Test the property 'eqOr' + */ + @Test + public void eqOrTest() { + // TODO: test eqOr + } - /** - * Test the property 'beginsWith' - */ - @Test - public void beginsWithTest() { - // TODO: test beginsWith - } + /** + * Test the property 'beginsWith' + */ + @Test + public void beginsWithTest() { + // TODO: test beginsWith + } - /** - * Test the property 'range' - */ - @Test - public void rangeTest() { - // TODO: test range - } + /** + * Test the property 'range' + */ + @Test + public void rangeTest() { + // TODO: test range + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchMatchAttributeTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchMatchAttributeTest.java index c6987f005..001762bf3 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchMatchAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchMatchAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,46 +35,46 @@ * Model tests for DocumentSearchMatchAttribute */ public class DocumentSearchMatchAttributeTest { - private final DocumentSearchMatchAttribute model = new DocumentSearchMatchAttribute(); + private final DocumentSearchMatchAttribute model = new DocumentSearchMatchAttribute(); - /** - * Model tests for DocumentSearchMatchAttribute - */ - @Test - public void testDocumentSearchMatchAttribute() { - // TODO: test DocumentSearchMatchAttribute - } + /** + * Model tests for DocumentSearchMatchAttribute + */ + @Test + public void testDocumentSearchMatchAttribute() { + // TODO: test DocumentSearchMatchAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchMatchTagTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchMatchTagTest.java index 08ac3b5ac..b176e6c11 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchMatchTagTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchMatchTagTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,38 +34,38 @@ * Model tests for DocumentSearchMatchTag */ public class DocumentSearchMatchTagTest { - private final DocumentSearchMatchTag model = new DocumentSearchMatchTag(); + private final DocumentSearchMatchTag model = new DocumentSearchMatchTag(); - /** - * Model tests for DocumentSearchMatchTag - */ - @Test - public void testDocumentSearchMatchTag() { - // TODO: test DocumentSearchMatchTag - } + /** + * Model tests for DocumentSearchMatchTag + */ + @Test + public void testDocumentSearchMatchTag() { + // TODO: test DocumentSearchMatchTag + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchMetaTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchMetaTest.java index d26efedff..5dd78c801 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchMetaTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchMetaTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,54 +34,54 @@ * Model tests for DocumentSearchMeta */ public class DocumentSearchMetaTest { - private final DocumentSearchMeta model = new DocumentSearchMeta(); + private final DocumentSearchMeta model = new DocumentSearchMeta(); - /** - * Model tests for DocumentSearchMeta - */ - @Test - public void testDocumentSearchMeta() { - // TODO: test DocumentSearchMeta - } + /** + * Model tests for DocumentSearchMeta + */ + @Test + public void testDocumentSearchMeta() { + // TODO: test DocumentSearchMeta + } - /** - * Test the property 'folder' - */ - @Test - public void folderTest() { - // TODO: test folder - } + /** + * Test the property 'folder' + */ + @Test + public void folderTest() { + // TODO: test folder + } - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'indexType' - */ - @Test - public void indexTypeTest() { - // TODO: test indexType - } + /** + * Test the property 'indexType' + */ + @Test + public void indexTypeTest() { + // TODO: test indexType + } - /** - * Test the property 'indexFilterBeginsWith' - */ - @Test - public void indexFilterBeginsWithTest() { - // TODO: test indexFilterBeginsWith - } + /** + * Test the property 'indexFilterBeginsWith' + */ + @Test + public void indexFilterBeginsWithTest() { + // TODO: test indexFilterBeginsWith + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchRangeTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchRangeTest.java index 84987909d..efc23ac05 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchRangeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchRangeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,38 +35,38 @@ * Model tests for DocumentSearchRange */ public class DocumentSearchRangeTest { - private final DocumentSearchRange model = new DocumentSearchRange(); + private final DocumentSearchRange model = new DocumentSearchRange(); - /** - * Model tests for DocumentSearchRange - */ - @Test - public void testDocumentSearchRange() { - // TODO: test DocumentSearchRange - } + /** + * Model tests for DocumentSearchRange + */ + @Test + public void testDocumentSearchRange() { + // TODO: test DocumentSearchRange + } - /** - * Test the property 'start' - */ - @Test - public void startTest() { - // TODO: test start - } + /** + * Test the property 'start' + */ + @Test + public void startTest() { + // TODO: test start + } - /** - * Test the property 'end' - */ - @Test - public void endTest() { - // TODO: test end - } + /** + * Test the property 'end' + */ + @Test + public void endTest() { + // TODO: test end + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchRequestTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchRequestTest.java index 2f023296e..33dc18551 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchRequestTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for DocumentSearchRequest */ public class DocumentSearchRequestTest { - private final DocumentSearchRequest model = new DocumentSearchRequest(); - - /** - * Model tests for DocumentSearchRequest - */ - @Test - public void testDocumentSearchRequest() { - // TODO: test DocumentSearchRequest - } - - /** - * Test the property 'query' - */ - @Test - public void queryTest() { - // TODO: test query - } - - /** - * Test the property 'responseFields' - */ - @Test - public void responseFieldsTest() { - // TODO: test responseFields - } + private final DocumentSearchRequest model = new DocumentSearchRequest(); + + /** + * Model tests for DocumentSearchRequest + */ + @Test + public void testDocumentSearchRequest() { + // TODO: test DocumentSearchRequest + } + + /** + * Test the property 'query' + */ + @Test + public void queryTest() { + // TODO: test query + } + + /** + * Test the property 'responseFields' + */ + @Test + public void responseFieldsTest() { + // TODO: test responseFields + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchResponseTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchResponseTest.java index 0e508199d..aa731fbc0 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,38 +37,38 @@ * Model tests for DocumentSearchResponse */ public class DocumentSearchResponseTest { - private final DocumentSearchResponse model = new DocumentSearchResponse(); + private final DocumentSearchResponse model = new DocumentSearchResponse(); - /** - * Model tests for DocumentSearchResponse - */ - @Test - public void testDocumentSearchResponse() { - // TODO: test DocumentSearchResponse - } + /** + * Model tests for DocumentSearchResponse + */ + @Test + public void testDocumentSearchResponse() { + // TODO: test DocumentSearchResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchTagTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchTagTest.java index 1e9995d7d..d34d050f7 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchTagTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchTagTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,54 +37,54 @@ * Model tests for DocumentSearchTag */ public class DocumentSearchTagTest { - private final DocumentSearchTag model = new DocumentSearchTag(); + private final DocumentSearchTag model = new DocumentSearchTag(); - /** - * Model tests for DocumentSearchTag - */ - @Test - public void testDocumentSearchTag() { - // TODO: test DocumentSearchTag - } + /** + * Model tests for DocumentSearchTag + */ + @Test + public void testDocumentSearchTag() { + // TODO: test DocumentSearchTag + } - /** - * Test the property 'beginsWith' - */ - @Test - public void beginsWithTest() { - // TODO: test beginsWith - } + /** + * Test the property 'beginsWith' + */ + @Test + public void beginsWithTest() { + // TODO: test beginsWith + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'eqOr' - */ - @Test - public void eqOrTest() { - // TODO: test eqOr - } + /** + * Test the property 'eqOr' + */ + @Test + public void eqOrTest() { + // TODO: test eqOr + } - /** - * Test the property 'range' - */ - @Test - public void rangeTest() { - // TODO: test range - } + /** + * Test the property 'range' + */ + @Test + public void rangeTest() { + // TODO: test range + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchTagsTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchTagsTest.java index a634010ac..4ed30fcfd 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchTagsTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchTagsTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,46 +35,46 @@ * Model tests for DocumentSearchTags */ public class DocumentSearchTagsTest { - private final DocumentSearchTags model = new DocumentSearchTags(); + private final DocumentSearchTags model = new DocumentSearchTags(); - /** - * Model tests for DocumentSearchTags - */ - @Test - public void testDocumentSearchTags() { - // TODO: test DocumentSearchTags - } + /** + * Model tests for DocumentSearchTags + */ + @Test + public void testDocumentSearchTags() { + // TODO: test DocumentSearchTags + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'beginsWith' - */ - @Test - public void beginsWithTest() { - // TODO: test beginsWith - } + /** + * Test the property 'beginsWith' + */ + @Test + public void beginsWithTest() { + // TODO: test beginsWith + } - /** - * Test the property 'range' - */ - @Test - public void rangeTest() { - // TODO: test range - } + /** + * Test the property 'range' + */ + @Test + public void rangeTest() { + // TODO: test range + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSearchTest.java b/src/test/java/com/formkiq/client/model/DocumentSearchTest.java index 63a3bfa3a..908858add 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSearchTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSearchTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -33,70 +40,70 @@ * Model tests for DocumentSearch */ public class DocumentSearchTest { - private final DocumentSearch model = new DocumentSearch(); + private final DocumentSearch model = new DocumentSearch(); - /** - * Model tests for DocumentSearch - */ - @Test - public void testDocumentSearch() { - // TODO: test DocumentSearch - } + /** + * Model tests for DocumentSearch + */ + @Test + public void testDocumentSearch() { + // TODO: test DocumentSearch + } - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } - /** - * Test the property 'meta' - */ - @Test - public void metaTest() { - // TODO: test meta - } + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSyncServiceTest.java b/src/test/java/com/formkiq/client/model/DocumentSyncServiceTest.java index 645e40bf4..adcaadfc3 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSyncServiceTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSyncServiceTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for DocumentSyncService */ public class DocumentSyncServiceTest { - /** - * Model tests for DocumentSyncService - */ - @Test - public void testDocumentSyncService() { - // TODO: test DocumentSyncService - } + /** + * Model tests for DocumentSyncService + */ + @Test + public void testDocumentSyncService() { + // TODO: test DocumentSyncService + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSyncStatusTest.java b/src/test/java/com/formkiq/client/model/DocumentSyncStatusTest.java index d295cb219..0374b203d 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSyncStatusTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSyncStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for DocumentSyncStatus */ public class DocumentSyncStatusTest { - /** - * Model tests for DocumentSyncStatus - */ - @Test - public void testDocumentSyncStatus() { - // TODO: test DocumentSyncStatus - } + /** + * Model tests for DocumentSyncStatus + */ + @Test + public void testDocumentSyncStatus() { + // TODO: test DocumentSyncStatus + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSyncTest.java b/src/test/java/com/formkiq/client/model/DocumentSyncTest.java index 1d863120f..fe5991d90 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSyncTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSyncTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,70 +37,70 @@ * Model tests for DocumentSync */ public class DocumentSyncTest { - private final DocumentSync model = new DocumentSync(); + private final DocumentSync model = new DocumentSync(); - /** - * Model tests for DocumentSync - */ - @Test - public void testDocumentSync() { - // TODO: test DocumentSync - } + /** + * Model tests for DocumentSync + */ + @Test + public void testDocumentSync() { + // TODO: test DocumentSync + } - /** - * Test the property 'service' - */ - @Test - public void serviceTest() { - // TODO: test service - } + /** + * Test the property 'service' + */ + @Test + public void serviceTest() { + // TODO: test service + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'syncDate' - */ - @Test - public void syncDateTest() { - // TODO: test syncDate - } + /** + * Test the property 'syncDate' + */ + @Test + public void syncDateTest() { + // TODO: test syncDate + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentSyncTypeTest.java b/src/test/java/com/formkiq/client/model/DocumentSyncTypeTest.java index ec27d09d9..b2bbdfcaf 100644 --- a/src/test/java/com/formkiq/client/model/DocumentSyncTypeTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentSyncTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for DocumentSyncType */ public class DocumentSyncTypeTest { - /** - * Model tests for DocumentSyncType - */ - @Test - public void testDocumentSyncType() { - // TODO: test DocumentSyncType - } + /** + * Model tests for DocumentSyncType + */ + @Test + public void testDocumentSyncType() { + // TODO: test DocumentSyncType + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentTagTest.java b/src/test/java/com/formkiq/client/model/DocumentTagTest.java index e5071d3c5..012720e4c 100644 --- a/src/test/java/com/formkiq/client/model/DocumentTagTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentTagTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,70 +36,70 @@ * Model tests for DocumentTag */ public class DocumentTagTest { - private final DocumentTag model = new DocumentTag(); + private final DocumentTag model = new DocumentTag(); - /** - * Model tests for DocumentTag - */ - @Test - public void testDocumentTag() { - // TODO: test DocumentTag - } + /** + * Model tests for DocumentTag + */ + @Test + public void testDocumentTag() { + // TODO: test DocumentTag + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentTest.java b/src/test/java/com/formkiq/client/model/DocumentTest.java index 4a9e0ec8a..ce0624a14 100644 --- a/src/test/java/com/formkiq/client/model/DocumentTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,158 +38,158 @@ * Model tests for Document */ public class DocumentTest { - private final Document model = new Document(); - - /** - * Model tests for Document - */ - @Test - public void testDocument() { - // TODO: test Document - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } - - /** - * Test the property 'versionKey' - */ - @Test - public void versionKeyTest() { - // TODO: test versionKey - } - - /** - * Test the property 's3version' - */ - @Test - public void s3versionTest() { - // TODO: test s3version - } - - /** - * Test the property 'belongsToDocumentId' - */ - @Test - public void belongsToDocumentIdTest() { - // TODO: test belongsToDocumentId - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final Document model = new Document(); + + /** + * Model tests for Document + */ + @Test + public void testDocument() { + // TODO: test Document + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'versionKey' + */ + @Test + public void versionKeyTest() { + // TODO: test versionKey + } + + /** + * Test the property 's3version' + */ + @Test + public void s3versionTest() { + // TODO: test s3version + } + + /** + * Test the property 'belongsToDocumentId' + */ + @Test + public void belongsToDocumentIdTest() { + // TODO: test belongsToDocumentId + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentVersionTest.java b/src/test/java/com/formkiq/client/model/DocumentVersionTest.java index d9f4528b4..e6049dedb 100644 --- a/src/test/java/com/formkiq/client/model/DocumentVersionTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentVersionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,78 +35,78 @@ * Model tests for DocumentVersion */ public class DocumentVersionTest { - private final DocumentVersion model = new DocumentVersion(); + private final DocumentVersion model = new DocumentVersion(); - /** - * Model tests for DocumentVersion - */ - @Test - public void testDocumentVersion() { - // TODO: test DocumentVersion - } + /** + * Model tests for DocumentVersion + */ + @Test + public void testDocumentVersion() { + // TODO: test DocumentVersion + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } - /** - * Test the property 'versionKey' - */ - @Test - public void versionKeyTest() { - // TODO: test versionKey - } + /** + * Test the property 'versionKey' + */ + @Test + public void versionKeyTest() { + // TODO: test versionKey + } - /** - * Test the property 's3version' - */ - @Test - public void s3versionTest() { - // TODO: test s3version - } + /** + * Test the property 's3version' + */ + @Test + public void s3versionTest() { + // TODO: test s3version + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentWorkflowStatusTest.java b/src/test/java/com/formkiq/client/model/DocumentWorkflowStatusTest.java index 5c97a354e..298e7bc79 100644 --- a/src/test/java/com/formkiq/client/model/DocumentWorkflowStatusTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentWorkflowStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for DocumentWorkflowStatus */ public class DocumentWorkflowStatusTest { - /** - * Model tests for DocumentWorkflowStatus - */ - @Test - public void testDocumentWorkflowStatus() { - // TODO: test DocumentWorkflowStatus - } + /** + * Model tests for DocumentWorkflowStatus + */ + @Test + public void testDocumentWorkflowStatus() { + // TODO: test DocumentWorkflowStatus + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentWorkflowTest.java b/src/test/java/com/formkiq/client/model/DocumentWorkflowTest.java index 28129fc85..9b4bbe24c 100644 --- a/src/test/java/com/formkiq/client/model/DocumentWorkflowTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentWorkflowTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,62 +35,62 @@ * Model tests for DocumentWorkflow */ public class DocumentWorkflowTest { - private final DocumentWorkflow model = new DocumentWorkflow(); + private final DocumentWorkflow model = new DocumentWorkflow(); - /** - * Model tests for DocumentWorkflow - */ - @Test - public void testDocumentWorkflow() { - // TODO: test DocumentWorkflow - } + /** + * Model tests for DocumentWorkflow + */ + @Test + public void testDocumentWorkflow() { + // TODO: test DocumentWorkflow + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'currentStepId' - */ - @Test - public void currentStepIdTest() { - // TODO: test currentStepId - } + /** + * Test the property 'currentStepId' + */ + @Test + public void currentStepIdTest() { + // TODO: test currentStepId + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentsCompressRequestTest.java b/src/test/java/com/formkiq/client/model/DocumentsCompressRequestTest.java index ec0e6853c..ecffd19d6 100644 --- a/src/test/java/com/formkiq/client/model/DocumentsCompressRequestTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentsCompressRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,22 +36,22 @@ * Model tests for DocumentsCompressRequest */ public class DocumentsCompressRequestTest { - private final DocumentsCompressRequest model = new DocumentsCompressRequest(); + private final DocumentsCompressRequest model = new DocumentsCompressRequest(); - /** - * Model tests for DocumentsCompressRequest - */ - @Test - public void testDocumentsCompressRequest() { - // TODO: test DocumentsCompressRequest - } + /** + * Model tests for DocumentsCompressRequest + */ + @Test + public void testDocumentsCompressRequest() { + // TODO: test DocumentsCompressRequest + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/DocumentsCompressResponseTest.java b/src/test/java/com/formkiq/client/model/DocumentsCompressResponseTest.java index b87871aa7..0f3baa145 100644 --- a/src/test/java/com/formkiq/client/model/DocumentsCompressResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentsCompressResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for DocumentsCompressResponse */ public class DocumentsCompressResponseTest { - private final DocumentsCompressResponse model = new DocumentsCompressResponse(); + private final DocumentsCompressResponse model = new DocumentsCompressResponse(); - /** - * Model tests for DocumentsCompressResponse - */ - @Test - public void testDocumentsCompressResponse() { - // TODO: test DocumentsCompressResponse - } + /** + * Model tests for DocumentsCompressResponse + */ + @Test + public void testDocumentsCompressResponse() { + // TODO: test DocumentsCompressResponse + } - /** - * Test the property 'downloadUrl' - */ - @Test - public void downloadUrlTest() { - // TODO: test downloadUrl - } + /** + * Test the property 'downloadUrl' + */ + @Test + public void downloadUrlTest() { + // TODO: test downloadUrl + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignConfigTest.java b/src/test/java/com/formkiq/client/model/DocusignConfigTest.java index f72f5b251..b77bc3912 100644 --- a/src/test/java/com/formkiq/client/model/DocusignConfigTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignConfigTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,46 +34,46 @@ * Model tests for DocusignConfig */ public class DocusignConfigTest { - private final DocusignConfig model = new DocusignConfig(); + private final DocusignConfig model = new DocusignConfig(); - /** - * Model tests for DocusignConfig - */ - @Test - public void testDocusignConfig() { - // TODO: test DocusignConfig - } + /** + * Model tests for DocusignConfig + */ + @Test + public void testDocusignConfig() { + // TODO: test DocusignConfig + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'integrationKey' - */ - @Test - public void integrationKeyTest() { - // TODO: test integrationKey - } + /** + * Test the property 'integrationKey' + */ + @Test + public void integrationKeyTest() { + // TODO: test integrationKey + } - /** - * Test the property 'rsaPrivateKey' - */ - @Test - public void rsaPrivateKeyTest() { - // TODO: test rsaPrivateKey - } + /** + * Test the property 'rsaPrivateKey' + */ + @Test + public void rsaPrivateKeyTest() { + // TODO: test rsaPrivateKey + } - /** - * Test the property 'hmacSignature' - */ - @Test - public void hmacSignatureTest() { - // TODO: test hmacSignature - } + /** + * Test the property 'hmacSignature' + */ + @Test + public void hmacSignatureTest() { + // TODO: test hmacSignature + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignEnvironmentTest.java b/src/test/java/com/formkiq/client/model/DocusignEnvironmentTest.java index c8ead6be5..29f2da27a 100644 --- a/src/test/java/com/formkiq/client/model/DocusignEnvironmentTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignEnvironmentTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for DocusignEnvironment */ public class DocusignEnvironmentTest { - /** - * Model tests for DocusignEnvironment - */ - @Test - public void testDocusignEnvironment() { - // TODO: test DocusignEnvironment - } + /** + * Model tests for DocusignEnvironment + */ + @Test + public void testDocusignEnvironment() { + // TODO: test DocusignEnvironment + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignInpersonSignerTest.java b/src/test/java/com/formkiq/client/model/DocusignInpersonSignerTest.java index bc481306e..ed4f7ff7f 100644 --- a/src/test/java/com/formkiq/client/model/DocusignInpersonSignerTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignInpersonSignerTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,78 +35,78 @@ * Model tests for DocusignInpersonSigner */ public class DocusignInpersonSignerTest { - private final DocusignInpersonSigner model = new DocusignInpersonSigner(); + private final DocusignInpersonSigner model = new DocusignInpersonSigner(); - /** - * Model tests for DocusignInpersonSigner - */ - @Test - public void testDocusignInpersonSigner() { - // TODO: test DocusignInpersonSigner - } + /** + * Model tests for DocusignInpersonSigner + */ + @Test + public void testDocusignInpersonSigner() { + // TODO: test DocusignInpersonSigner + } - /** - * Test the property 'hostEmail' - */ - @Test - public void hostEmailTest() { - // TODO: test hostEmail - } + /** + * Test the property 'hostEmail' + */ + @Test + public void hostEmailTest() { + // TODO: test hostEmail + } - /** - * Test the property 'hostName' - */ - @Test - public void hostNameTest() { - // TODO: test hostName - } + /** + * Test the property 'hostName' + */ + @Test + public void hostNameTest() { + // TODO: test hostName + } - /** - * Test the property 'signerName' - */ - @Test - public void signerNameTest() { - // TODO: test signerName - } + /** + * Test the property 'signerName' + */ + @Test + public void signerNameTest() { + // TODO: test signerName + } - /** - * Test the property 'signerEmail' - */ - @Test - public void signerEmailTest() { - // TODO: test signerEmail - } + /** + * Test the property 'signerEmail' + */ + @Test + public void signerEmailTest() { + // TODO: test signerEmail + } - /** - * Test the property 'recipientId' - */ - @Test - public void recipientIdTest() { - // TODO: test recipientId - } + /** + * Test the property 'recipientId' + */ + @Test + public void recipientIdTest() { + // TODO: test recipientId + } - /** - * Test the property 'routingOrder' - */ - @Test - public void routingOrderTest() { - // TODO: test routingOrder - } + /** + * Test the property 'routingOrder' + */ + @Test + public void routingOrderTest() { + // TODO: test routingOrder + } - /** - * Test the property 'suppressEmails' - */ - @Test - public void suppressEmailsTest() { - // TODO: test suppressEmails - } + /** + * Test the property 'suppressEmails' + */ + @Test + public void suppressEmailsTest() { + // TODO: test suppressEmails + } - /** - * Test the property 'tabs' - */ - @Test - public void tabsTest() { - // TODO: test tabs - } + /** + * Test the property 'tabs' + */ + @Test + public void tabsTest() { + // TODO: test tabs + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignNotificationExpirationsTest.java b/src/test/java/com/formkiq/client/model/DocusignNotificationExpirationsTest.java index 0ed1f84fa..93c6cc3f7 100644 --- a/src/test/java/com/formkiq/client/model/DocusignNotificationExpirationsTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignNotificationExpirationsTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,38 +34,38 @@ * Model tests for DocusignNotificationExpirations */ public class DocusignNotificationExpirationsTest { - private final DocusignNotificationExpirations model = new DocusignNotificationExpirations(); + private final DocusignNotificationExpirations model = new DocusignNotificationExpirations(); - /** - * Model tests for DocusignNotificationExpirations - */ - @Test - public void testDocusignNotificationExpirations() { - // TODO: test DocusignNotificationExpirations - } + /** + * Model tests for DocusignNotificationExpirations + */ + @Test + public void testDocusignNotificationExpirations() { + // TODO: test DocusignNotificationExpirations + } - /** - * Test the property 'expireAfter' - */ - @Test - public void expireAfterTest() { - // TODO: test expireAfter - } + /** + * Test the property 'expireAfter' + */ + @Test + public void expireAfterTest() { + // TODO: test expireAfter + } - /** - * Test the property 'expireEnabled' - */ - @Test - public void expireEnabledTest() { - // TODO: test expireEnabled - } + /** + * Test the property 'expireEnabled' + */ + @Test + public void expireEnabledTest() { + // TODO: test expireEnabled + } - /** - * Test the property 'expireWarn' - */ - @Test - public void expireWarnTest() { - // TODO: test expireWarn - } + /** + * Test the property 'expireWarn' + */ + @Test + public void expireWarnTest() { + // TODO: test expireWarn + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignNotificationRemindersTest.java b/src/test/java/com/formkiq/client/model/DocusignNotificationRemindersTest.java index a814e53ee..0043f088b 100644 --- a/src/test/java/com/formkiq/client/model/DocusignNotificationRemindersTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignNotificationRemindersTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,38 +34,38 @@ * Model tests for DocusignNotificationReminders */ public class DocusignNotificationRemindersTest { - private final DocusignNotificationReminders model = new DocusignNotificationReminders(); + private final DocusignNotificationReminders model = new DocusignNotificationReminders(); - /** - * Model tests for DocusignNotificationReminders - */ - @Test - public void testDocusignNotificationReminders() { - // TODO: test DocusignNotificationReminders - } + /** + * Model tests for DocusignNotificationReminders + */ + @Test + public void testDocusignNotificationReminders() { + // TODO: test DocusignNotificationReminders + } - /** - * Test the property 'reminderDelay' - */ - @Test - public void reminderDelayTest() { - // TODO: test reminderDelay - } + /** + * Test the property 'reminderDelay' + */ + @Test + public void reminderDelayTest() { + // TODO: test reminderDelay + } - /** - * Test the property 'reminderEnabled' - */ - @Test - public void reminderEnabledTest() { - // TODO: test reminderEnabled - } + /** + * Test the property 'reminderEnabled' + */ + @Test + public void reminderEnabledTest() { + // TODO: test reminderEnabled + } - /** - * Test the property 'reminderFrequency' - */ - @Test - public void reminderFrequencyTest() { - // TODO: test reminderFrequency - } + /** + * Test the property 'reminderFrequency' + */ + @Test + public void reminderFrequencyTest() { + // TODO: test reminderFrequency + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignNotificationTest.java b/src/test/java/com/formkiq/client/model/DocusignNotificationTest.java index d16f5ceba..0bb67b6b3 100644 --- a/src/test/java/com/formkiq/client/model/DocusignNotificationTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignNotificationTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,38 +36,38 @@ * Model tests for DocusignNotification */ public class DocusignNotificationTest { - private final DocusignNotification model = new DocusignNotification(); + private final DocusignNotification model = new DocusignNotification(); - /** - * Model tests for DocusignNotification - */ - @Test - public void testDocusignNotification() { - // TODO: test DocusignNotification - } + /** + * Model tests for DocusignNotification + */ + @Test + public void testDocusignNotification() { + // TODO: test DocusignNotification + } - /** - * Test the property 'useAccountDefaults' - */ - @Test - public void useAccountDefaultsTest() { - // TODO: test useAccountDefaults - } + /** + * Test the property 'useAccountDefaults' + */ + @Test + public void useAccountDefaultsTest() { + // TODO: test useAccountDefaults + } - /** - * Test the property 'expirations' - */ - @Test - public void expirationsTest() { - // TODO: test expirations - } + /** + * Test the property 'expirations' + */ + @Test + public void expirationsTest() { + // TODO: test expirations + } - /** - * Test the property 'reminders' - */ - @Test - public void remindersTest() { - // TODO: test reminders - } + /** + * Test the property 'reminders' + */ + @Test + public void remindersTest() { + // TODO: test reminders + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignRecipientViewTest.java b/src/test/java/com/formkiq/client/model/DocusignRecipientViewTest.java index ba4ed881b..40cd567e1 100644 --- a/src/test/java/com/formkiq/client/model/DocusignRecipientViewTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignRecipientViewTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,70 +36,70 @@ * Model tests for DocusignRecipientView */ public class DocusignRecipientViewTest { - private final DocusignRecipientView model = new DocusignRecipientView(); + private final DocusignRecipientView model = new DocusignRecipientView(); - /** - * Model tests for DocusignRecipientView - */ - @Test - public void testDocusignRecipientView() { - // TODO: test DocusignRecipientView - } + /** + * Model tests for DocusignRecipientView + */ + @Test + public void testDocusignRecipientView() { + // TODO: test DocusignRecipientView + } - /** - * Test the property 'returnUrl' - */ - @Test - public void returnUrlTest() { - // TODO: test returnUrl - } + /** + * Test the property 'returnUrl' + */ + @Test + public void returnUrlTest() { + // TODO: test returnUrl + } - /** - * Test the property 'recipientId' - */ - @Test - public void recipientIdTest() { - // TODO: test recipientId - } + /** + * Test the property 'recipientId' + */ + @Test + public void recipientIdTest() { + // TODO: test recipientId + } - /** - * Test the property 'userName' - */ - @Test - public void userNameTest() { - // TODO: test userName - } + /** + * Test the property 'userName' + */ + @Test + public void userNameTest() { + // TODO: test userName + } - /** - * Test the property 'clientUserId' - */ - @Test - public void clientUserIdTest() { - // TODO: test clientUserId - } + /** + * Test the property 'clientUserId' + */ + @Test + public void clientUserIdTest() { + // TODO: test clientUserId + } - /** - * Test the property 'email' - */ - @Test - public void emailTest() { - // TODO: test email - } + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } - /** - * Test the property 'frameAncestors' - */ - @Test - public void frameAncestorsTest() { - // TODO: test frameAncestors - } + /** + * Test the property 'frameAncestors' + */ + @Test + public void frameAncestorsTest() { + // TODO: test frameAncestors + } - /** - * Test the property 'messageOrigins' - */ - @Test - public void messageOriginsTest() { - // TODO: test messageOrigins - } + /** + * Test the property 'messageOrigins' + */ + @Test + public void messageOriginsTest() { + // TODO: test messageOrigins + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignSignHereTabsTest.java b/src/test/java/com/formkiq/client/model/DocusignSignHereTabsTest.java index eb0714fd7..68d4630b8 100644 --- a/src/test/java/com/formkiq/client/model/DocusignSignHereTabsTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignSignHereTabsTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,78 +34,78 @@ * Model tests for DocusignSignHereTabs */ public class DocusignSignHereTabsTest { - private final DocusignSignHereTabs model = new DocusignSignHereTabs(); + private final DocusignSignHereTabs model = new DocusignSignHereTabs(); - /** - * Model tests for DocusignSignHereTabs - */ - @Test - public void testDocusignSignHereTabs() { - // TODO: test DocusignSignHereTabs - } + /** + * Model tests for DocusignSignHereTabs + */ + @Test + public void testDocusignSignHereTabs() { + // TODO: test DocusignSignHereTabs + } - /** - * Test the property 'anchorString' - */ - @Test - public void anchorStringTest() { - // TODO: test anchorString - } + /** + * Test the property 'anchorString' + */ + @Test + public void anchorStringTest() { + // TODO: test anchorString + } - /** - * Test the property 'anchorXOffset' - */ - @Test - public void anchorXOffsetTest() { - // TODO: test anchorXOffset - } + /** + * Test the property 'anchorXOffset' + */ + @Test + public void anchorXOffsetTest() { + // TODO: test anchorXOffset + } - /** - * Test the property 'anchorYOffset' - */ - @Test - public void anchorYOffsetTest() { - // TODO: test anchorYOffset - } + /** + * Test the property 'anchorYOffset' + */ + @Test + public void anchorYOffsetTest() { + // TODO: test anchorYOffset + } - /** - * Test the property 'anchorIgnoreIfNotPresent' - */ - @Test - public void anchorIgnoreIfNotPresentTest() { - // TODO: test anchorIgnoreIfNotPresent - } + /** + * Test the property 'anchorIgnoreIfNotPresent' + */ + @Test + public void anchorIgnoreIfNotPresentTest() { + // TODO: test anchorIgnoreIfNotPresent + } - /** - * Test the property 'anchorUnits' - */ - @Test - public void anchorUnitsTest() { - // TODO: test anchorUnits - } + /** + * Test the property 'anchorUnits' + */ + @Test + public void anchorUnitsTest() { + // TODO: test anchorUnits + } - /** - * Test the property 'xPosition' - */ - @Test - public void xPositionTest() { - // TODO: test xPosition - } + /** + * Test the property 'xPosition' + */ + @Test + public void xPositionTest() { + // TODO: test xPosition + } - /** - * Test the property 'yPosition' - */ - @Test - public void yPositionTest() { - // TODO: test yPosition - } + /** + * Test the property 'yPosition' + */ + @Test + public void yPositionTest() { + // TODO: test yPosition + } - /** - * Test the property 'pageNumber' - */ - @Test - public void pageNumberTest() { - // TODO: test pageNumber - } + /** + * Test the property 'pageNumber' + */ + @Test + public void pageNumberTest() { + // TODO: test pageNumber + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignSignerTest.java b/src/test/java/com/formkiq/client/model/DocusignSignerTest.java index 8e55f27ca..0b618d418 100644 --- a/src/test/java/com/formkiq/client/model/DocusignSignerTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignSignerTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,70 +35,70 @@ * Model tests for DocusignSigner */ public class DocusignSignerTest { - private final DocusignSigner model = new DocusignSigner(); + private final DocusignSigner model = new DocusignSigner(); - /** - * Model tests for DocusignSigner - */ - @Test - public void testDocusignSigner() { - // TODO: test DocusignSigner - } + /** + * Model tests for DocusignSigner + */ + @Test + public void testDocusignSigner() { + // TODO: test DocusignSigner + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'email' - */ - @Test - public void emailTest() { - // TODO: test email - } + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } - /** - * Test the property 'clientUserId' - */ - @Test - public void clientUserIdTest() { - // TODO: test clientUserId - } + /** + * Test the property 'clientUserId' + */ + @Test + public void clientUserIdTest() { + // TODO: test clientUserId + } - /** - * Test the property 'recipientId' - */ - @Test - public void recipientIdTest() { - // TODO: test recipientId - } + /** + * Test the property 'recipientId' + */ + @Test + public void recipientIdTest() { + // TODO: test recipientId + } - /** - * Test the property 'routingOrder' - */ - @Test - public void routingOrderTest() { - // TODO: test routingOrder - } + /** + * Test the property 'routingOrder' + */ + @Test + public void routingOrderTest() { + // TODO: test routingOrder + } - /** - * Test the property 'suppressEmails' - */ - @Test - public void suppressEmailsTest() { - // TODO: test suppressEmails - } + /** + * Test the property 'suppressEmails' + */ + @Test + public void suppressEmailsTest() { + // TODO: test suppressEmails + } - /** - * Test the property 'tabs' - */ - @Test - public void tabsTest() { - // TODO: test tabs - } + /** + * Test the property 'tabs' + */ + @Test + public void tabsTest() { + // TODO: test tabs + } } diff --git a/src/test/java/com/formkiq/client/model/DocusignSigningTabsTest.java b/src/test/java/com/formkiq/client/model/DocusignSigningTabsTest.java index 35d954560..19b390a9a 100644 --- a/src/test/java/com/formkiq/client/model/DocusignSigningTabsTest.java +++ b/src/test/java/com/formkiq/client/model/DocusignSigningTabsTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for DocusignSigningTabs */ public class DocusignSigningTabsTest { - private final DocusignSigningTabs model = new DocusignSigningTabs(); + private final DocusignSigningTabs model = new DocusignSigningTabs(); - /** - * Model tests for DocusignSigningTabs - */ - @Test - public void testDocusignSigningTabs() { - // TODO: test DocusignSigningTabs - } + /** + * Model tests for DocusignSigningTabs + */ + @Test + public void testDocusignSigningTabs() { + // TODO: test DocusignSigningTabs + } - /** - * Test the property 'signHereTabs' - */ - @Test - public void signHereTabsTest() { - // TODO: test signHereTabs - } + /** + * Test the property 'signHereTabs' + */ + @Test + public void signHereTabsTest() { + // TODO: test signHereTabs + } } diff --git a/src/test/java/com/formkiq/client/model/EntityAttributeTest.java b/src/test/java/com/formkiq/client/model/EntityAttributeTest.java index 76a06084b..f26c5a55c 100644 --- a/src/test/java/com/formkiq/client/model/EntityAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/EntityAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,70 +38,70 @@ * Model tests for EntityAttribute */ public class EntityAttributeTest { - private final EntityAttribute model = new EntityAttribute(); + private final EntityAttribute model = new EntityAttribute(); - /** - * Model tests for EntityAttribute - */ - @Test - public void testEntityAttribute() { - // TODO: test EntityAttribute - } + /** + * Model tests for EntityAttribute + */ + @Test + public void testEntityAttribute() { + // TODO: test EntityAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } - /** - * Test the property 'valueType' - */ - @Test - public void valueTypeTest() { - // TODO: test valueType - } + /** + * Test the property 'valueType' + */ + @Test + public void valueTypeTest() { + // TODO: test valueType + } } diff --git a/src/test/java/com/formkiq/client/model/EntityTest.java b/src/test/java/com/formkiq/client/model/EntityTest.java index 87a041daa..c46ce7f02 100644 --- a/src/test/java/com/formkiq/client/model/EntityTest.java +++ b/src/test/java/com/formkiq/client/model/EntityTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,54 +37,54 @@ * Model tests for Entity */ public class EntityTest { - private final Entity model = new Entity(); + private final Entity model = new Entity(); - /** - * Model tests for Entity - */ - @Test - public void testEntity() { - // TODO: test Entity - } + /** + * Model tests for Entity + */ + @Test + public void testEntity() { + // TODO: test Entity + } - /** - * Test the property 'entityId' - */ - @Test - public void entityIdTest() { - // TODO: test entityId - } + /** + * Test the property 'entityId' + */ + @Test + public void entityIdTest() { + // TODO: test entityId + } - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/EntityTypeNamespaceTest.java b/src/test/java/com/formkiq/client/model/EntityTypeNamespaceTest.java index 2bdfd9df4..b907f9604 100644 --- a/src/test/java/com/formkiq/client/model/EntityTypeNamespaceTest.java +++ b/src/test/java/com/formkiq/client/model/EntityTypeNamespaceTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for EntityTypeNamespace */ public class EntityTypeNamespaceTest { - /** - * Model tests for EntityTypeNamespace - */ - @Test - public void testEntityTypeNamespace() { - // TODO: test EntityTypeNamespace - } + /** + * Model tests for EntityTypeNamespace + */ + @Test + public void testEntityTypeNamespace() { + // TODO: test EntityTypeNamespace + } } diff --git a/src/test/java/com/formkiq/client/model/EntityTypeTest.java b/src/test/java/com/formkiq/client/model/EntityTypeTest.java index ab402b324..2e8768ab3 100644 --- a/src/test/java/com/formkiq/client/model/EntityTypeTest.java +++ b/src/test/java/com/formkiq/client/model/EntityTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,46 +35,46 @@ * Model tests for EntityType */ public class EntityTypeTest { - private final EntityType model = new EntityType(); + private final EntityType model = new EntityType(); - /** - * Model tests for EntityType - */ - @Test - public void testEntityType() { - // TODO: test EntityType - } + /** + * Model tests for EntityType + */ + @Test + public void testEntityType() { + // TODO: test EntityType + } - /** - * Test the property 'entityTypeId' - */ - @Test - public void entityTypeIdTest() { - // TODO: test entityTypeId - } + /** + * Test the property 'entityTypeId' + */ + @Test + public void entityTypeIdTest() { + // TODO: test entityTypeId + } - /** - * Test the property 'namespace' - */ - @Test - public void namespaceTest() { - // TODO: test namespace - } + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } } diff --git a/src/test/java/com/formkiq/client/model/ErrorTest.java b/src/test/java/com/formkiq/client/model/ErrorTest.java index 0a18e8c56..ce9221641 100644 --- a/src/test/java/com/formkiq/client/model/ErrorTest.java +++ b/src/test/java/com/formkiq/client/model/ErrorTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for Error */ public class ErrorTest { - private final Error model = new Error(); - - /** - * Model tests for Error - */ - @Test - public void testError() { - // TODO: test Error - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'error' - */ - @Test - public void errorTest() { - // TODO: test error - } + private final Error model = new Error(); + + /** + * Model tests for Error + */ + @Test + public void testError() { + // TODO: test Error + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'error' + */ + @Test + public void errorTest() { + // TODO: test error + } } diff --git a/src/test/java/com/formkiq/client/model/ErrorsResponseTest.java b/src/test/java/com/formkiq/client/model/ErrorsResponseTest.java index 2cc224118..f08717642 100644 --- a/src/test/java/com/formkiq/client/model/ErrorsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/ErrorsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for ErrorsResponse */ public class ErrorsResponseTest { - private final ErrorsResponse model = new ErrorsResponse(); + private final ErrorsResponse model = new ErrorsResponse(); - /** - * Model tests for ErrorsResponse - */ - @Test - public void testErrorsResponse() { - // TODO: test ErrorsResponse - } + /** + * Model tests for ErrorsResponse + */ + @Test + public void testErrorsResponse() { + // TODO: test ErrorsResponse + } - /** - * Test the property 'errors' - */ - @Test - public void errorsTest() { - // TODO: test errors - } + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } } diff --git a/src/test/java/com/formkiq/client/model/FolderPermissionTest.java b/src/test/java/com/formkiq/client/model/FolderPermissionTest.java index e3a04250a..e23a2ee7c 100644 --- a/src/test/java/com/formkiq/client/model/FolderPermissionTest.java +++ b/src/test/java/com/formkiq/client/model/FolderPermissionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for FolderPermission */ public class FolderPermissionTest { - private final FolderPermission model = new FolderPermission(); - - /** - * Model tests for FolderPermission - */ - @Test - public void testFolderPermission() { - // TODO: test FolderPermission - } - - /** - * Test the property 'roleName' - */ - @Test - public void roleNameTest() { - // TODO: test roleName - } - - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + private final FolderPermission model = new FolderPermission(); + + /** + * Model tests for FolderPermission + */ + @Test + public void testFolderPermission() { + // TODO: test FolderPermission + } + + /** + * Test the property 'roleName' + */ + @Test + public void roleNameTest() { + // TODO: test roleName + } + + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/FolderPermissionTypeTest.java b/src/test/java/com/formkiq/client/model/FolderPermissionTypeTest.java index 7ab4fac60..2736c476f 100644 --- a/src/test/java/com/formkiq/client/model/FolderPermissionTypeTest.java +++ b/src/test/java/com/formkiq/client/model/FolderPermissionTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for FolderPermissionType */ public class FolderPermissionTypeTest { - /** - * Model tests for FolderPermissionType - */ - @Test - public void testFolderPermissionType() { - // TODO: test FolderPermissionType - } + /** + * Model tests for FolderPermissionType + */ + @Test + public void testFolderPermissionType() { + // TODO: test FolderPermissionType + } } diff --git a/src/test/java/com/formkiq/client/model/FulltextAttributeTest.java b/src/test/java/com/formkiq/client/model/FulltextAttributeTest.java index 3ae3f2b1c..04f793f75 100644 --- a/src/test/java/com/formkiq/client/model/FulltextAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/FulltextAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,46 +38,46 @@ * Model tests for FulltextAttribute */ public class FulltextAttributeTest { - private final FulltextAttribute model = new FulltextAttribute(); + private final FulltextAttribute model = new FulltextAttribute(); - /** - * Model tests for FulltextAttribute - */ - @Test - public void testFulltextAttribute() { - // TODO: test FulltextAttribute - } + /** + * Model tests for FulltextAttribute + */ + @Test + public void testFulltextAttribute() { + // TODO: test FulltextAttribute + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } - /** - * Test the property 'valueType' - */ - @Test - public void valueTypeTest() { - // TODO: test valueType - } + /** + * Test the property 'valueType' + */ + @Test + public void valueTypeTest() { + // TODO: test valueType + } } diff --git a/src/test/java/com/formkiq/client/model/FulltextSearchItemTest.java b/src/test/java/com/formkiq/client/model/FulltextSearchItemTest.java index 9f81d7817..c17e9bed6 100644 --- a/src/test/java/com/formkiq/client/model/FulltextSearchItemTest.java +++ b/src/test/java/com/formkiq/client/model/FulltextSearchItemTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,142 +38,142 @@ * Model tests for FulltextSearchItem */ public class FulltextSearchItemTest { - private final FulltextSearchItem model = new FulltextSearchItem(); - - /** - * Model tests for FulltextSearchItem - */ - @Test - public void testFulltextSearchItem() { - // TODO: test FulltextSearchItem - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'createdBy' - */ - @Test - public void createdByTest() { - // TODO: test createdBy - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final FulltextSearchItem model = new FulltextSearchItem(); + + /** + * Model tests for FulltextSearchItem + */ + @Test + public void testFulltextSearchItem() { + // TODO: test FulltextSearchItem + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/GetActivitesResponseTest.java b/src/test/java/com/formkiq/client/model/GetActivitesResponseTest.java index 2ab1320f7..18bb0a810 100644 --- a/src/test/java/com/formkiq/client/model/GetActivitesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetActivitesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetActivitesResponse */ public class GetActivitesResponseTest { - private final GetActivitesResponse model = new GetActivitesResponse(); - - /** - * Model tests for GetActivitesResponse - */ - @Test - public void testGetActivitesResponse() { - // TODO: test GetActivitesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'activities' - */ - @Test - public void activitiesTest() { - // TODO: test activities - } + private final GetActivitesResponse model = new GetActivitesResponse(); + + /** + * Model tests for GetActivitesResponse + */ + @Test + public void testGetActivitesResponse() { + // TODO: test GetActivitesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'activities' + */ + @Test + public void activitiesTest() { + // TODO: test activities + } } diff --git a/src/test/java/com/formkiq/client/model/GetApiKeysResponseTest.java b/src/test/java/com/formkiq/client/model/GetApiKeysResponseTest.java index aa10eabf0..2b1f561f7 100644 --- a/src/test/java/com/formkiq/client/model/GetApiKeysResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetApiKeysResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetApiKeysResponse */ public class GetApiKeysResponseTest { - private final GetApiKeysResponse model = new GetApiKeysResponse(); - - /** - * Model tests for GetApiKeysResponse - */ - @Test - public void testGetApiKeysResponse() { - // TODO: test GetApiKeysResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'apiKeys' - */ - @Test - public void apiKeysTest() { - // TODO: test apiKeys - } + private final GetApiKeysResponse model = new GetApiKeysResponse(); + + /** + * Model tests for GetApiKeysResponse + */ + @Test + public void testGetApiKeysResponse() { + // TODO: test GetApiKeysResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'apiKeys' + */ + @Test + public void apiKeysTest() { + // TODO: test apiKeys + } } diff --git a/src/test/java/com/formkiq/client/model/GetAttributeAllowedValuesResponseTest.java b/src/test/java/com/formkiq/client/model/GetAttributeAllowedValuesResponseTest.java index a08ee4ecc..e4ca57809 100644 --- a/src/test/java/com/formkiq/client/model/GetAttributeAllowedValuesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetAttributeAllowedValuesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,30 +38,30 @@ * Model tests for GetAttributeAllowedValuesResponse */ public class GetAttributeAllowedValuesResponseTest { - private final GetAttributeAllowedValuesResponse model = new GetAttributeAllowedValuesResponse(); - - /** - * Model tests for GetAttributeAllowedValuesResponse - */ - @Test - public void testGetAttributeAllowedValuesResponse() { - // TODO: test GetAttributeAllowedValuesResponse - } - - /** - * Test the property 'allowedValues' - */ - @Test - public void allowedValuesTest() { - // TODO: test allowedValues - } - - /** - * Test the property 'localizedAllowedValues' - */ - @Test - public void localizedAllowedValuesTest() { - // TODO: test localizedAllowedValues - } + private final GetAttributeAllowedValuesResponse model = new GetAttributeAllowedValuesResponse(); + + /** + * Model tests for GetAttributeAllowedValuesResponse + */ + @Test + public void testGetAttributeAllowedValuesResponse() { + // TODO: test GetAttributeAllowedValuesResponse + } + + /** + * Test the property 'allowedValues' + */ + @Test + public void allowedValuesTest() { + // TODO: test allowedValues + } + + /** + * Test the property 'localizedAllowedValues' + */ + @Test + public void localizedAllowedValuesTest() { + // TODO: test localizedAllowedValues + } } diff --git a/src/test/java/com/formkiq/client/model/GetAttributeResponseTest.java b/src/test/java/com/formkiq/client/model/GetAttributeResponseTest.java index 64a6789e6..7976bd8f9 100644 --- a/src/test/java/com/formkiq/client/model/GetAttributeResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetAttributeResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetAttributeResponse */ public class GetAttributeResponseTest { - private final GetAttributeResponse model = new GetAttributeResponse(); + private final GetAttributeResponse model = new GetAttributeResponse(); - /** - * Model tests for GetAttributeResponse - */ - @Test - public void testGetAttributeResponse() { - // TODO: test GetAttributeResponse - } + /** + * Model tests for GetAttributeResponse + */ + @Test + public void testGetAttributeResponse() { + // TODO: test GetAttributeResponse + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } } diff --git a/src/test/java/com/formkiq/client/model/GetAttributesResponseTest.java b/src/test/java/com/formkiq/client/model/GetAttributesResponseTest.java index bc37d31eb..6557a4465 100644 --- a/src/test/java/com/formkiq/client/model/GetAttributesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetAttributesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetAttributesResponse */ public class GetAttributesResponseTest { - private final GetAttributesResponse model = new GetAttributesResponse(); - - /** - * Model tests for GetAttributesResponse - */ - @Test - public void testGetAttributesResponse() { - // TODO: test GetAttributesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final GetAttributesResponse model = new GetAttributesResponse(); + + /** + * Model tests for GetAttributesResponse + */ + @Test + public void testGetAttributesResponse() { + // TODO: test GetAttributesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseDocumentsResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseDocumentsResponseTest.java index 35b4834a7..49ec84bef 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseDocumentsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseDocumentsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetCaseDocumentsResponse */ public class GetCaseDocumentsResponseTest { - private final GetCaseDocumentsResponse model = new GetCaseDocumentsResponse(); - - /** - * Model tests for GetCaseDocumentsResponse - */ - @Test - public void testGetCaseDocumentsResponse() { - // TODO: test GetCaseDocumentsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final GetCaseDocumentsResponse model = new GetCaseDocumentsResponse(); + + /** + * Model tests for GetCaseDocumentsResponse + */ + @Test + public void testGetCaseDocumentsResponse() { + // TODO: test GetCaseDocumentsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseNigoResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseNigoResponseTest.java index b4d1f8763..65e79cc20 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseNigoResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseNigoResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetCaseNigoResponse */ public class GetCaseNigoResponseTest { - private final GetCaseNigoResponse model = new GetCaseNigoResponse(); + private final GetCaseNigoResponse model = new GetCaseNigoResponse(); - /** - * Model tests for GetCaseNigoResponse - */ - @Test - public void testGetCaseNigoResponse() { - // TODO: test GetCaseNigoResponse - } + /** + * Model tests for GetCaseNigoResponse + */ + @Test + public void testGetCaseNigoResponse() { + // TODO: test GetCaseNigoResponse + } - /** - * Test the property 'nigo' - */ - @Test - public void nigoTest() { - // TODO: test nigo - } + /** + * Test the property 'nigo' + */ + @Test + public void nigoTest() { + // TODO: test nigo + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseNigosResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseNigosResponseTest.java index 2b7abf515..a1414b303 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseNigosResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseNigosResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetCaseNigosResponse */ public class GetCaseNigosResponseTest { - private final GetCaseNigosResponse model = new GetCaseNigosResponse(); - - /** - * Model tests for GetCaseNigosResponse - */ - @Test - public void testGetCaseNigosResponse() { - // TODO: test GetCaseNigosResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'nigos' - */ - @Test - public void nigosTest() { - // TODO: test nigos - } + private final GetCaseNigosResponse model = new GetCaseNigosResponse(); + + /** + * Model tests for GetCaseNigosResponse + */ + @Test + public void testGetCaseNigosResponse() { + // TODO: test GetCaseNigosResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'nigos' + */ + @Test + public void nigosTest() { + // TODO: test nigos + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseResponseTest.java index f5230ea45..0a81dcf4e 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetCaseResponse */ public class GetCaseResponseTest { - private final GetCaseResponse model = new GetCaseResponse(); + private final GetCaseResponse model = new GetCaseResponse(); - /** - * Model tests for GetCaseResponse - */ - @Test - public void testGetCaseResponse() { - // TODO: test GetCaseResponse - } + /** + * Model tests for GetCaseResponse + */ + @Test + public void testGetCaseResponse() { + // TODO: test GetCaseResponse + } - /** - * Test the property '_case' - */ - @Test - public void _caseTest() { - // TODO: test _case - } + /** + * Test the property '_case' + */ + @Test + public void _caseTest() { + // TODO: test _case + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseTaskResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseTaskResponseTest.java index e571e6c15..c25ba0da3 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseTaskResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseTaskResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetCaseTaskResponse */ public class GetCaseTaskResponseTest { - private final GetCaseTaskResponse model = new GetCaseTaskResponse(); + private final GetCaseTaskResponse model = new GetCaseTaskResponse(); - /** - * Model tests for GetCaseTaskResponse - */ - @Test - public void testGetCaseTaskResponse() { - // TODO: test GetCaseTaskResponse - } + /** + * Model tests for GetCaseTaskResponse + */ + @Test + public void testGetCaseTaskResponse() { + // TODO: test GetCaseTaskResponse + } - /** - * Test the property 'task' - */ - @Test - public void taskTest() { - // TODO: test task - } + /** + * Test the property 'task' + */ + @Test + public void taskTest() { + // TODO: test task + } } diff --git a/src/test/java/com/formkiq/client/model/GetCaseTasksResponseTest.java b/src/test/java/com/formkiq/client/model/GetCaseTasksResponseTest.java index 6545a5f55..9a64f08d5 100644 --- a/src/test/java/com/formkiq/client/model/GetCaseTasksResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCaseTasksResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetCaseTasksResponse */ public class GetCaseTasksResponseTest { - private final GetCaseTasksResponse model = new GetCaseTasksResponse(); - - /** - * Model tests for GetCaseTasksResponse - */ - @Test - public void testGetCaseTasksResponse() { - // TODO: test GetCaseTasksResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'tasks' - */ - @Test - public void tasksTest() { - // TODO: test tasks - } + private final GetCaseTasksResponse model = new GetCaseTasksResponse(); + + /** + * Model tests for GetCaseTasksResponse + */ + @Test + public void testGetCaseTasksResponse() { + // TODO: test GetCaseTasksResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'tasks' + */ + @Test + public void tasksTest() { + // TODO: test tasks + } } diff --git a/src/test/java/com/formkiq/client/model/GetCasesResponseTest.java b/src/test/java/com/formkiq/client/model/GetCasesResponseTest.java index 5acede76c..b3a565ccd 100644 --- a/src/test/java/com/formkiq/client/model/GetCasesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetCasesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetCasesResponse */ public class GetCasesResponseTest { - private final GetCasesResponse model = new GetCasesResponse(); - - /** - * Model tests for GetCasesResponse - */ - @Test - public void testGetCasesResponse() { - // TODO: test GetCasesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'cases' - */ - @Test - public void casesTest() { - // TODO: test cases - } + private final GetCasesResponse model = new GetCasesResponse(); + + /** + * Model tests for GetCasesResponse + */ + @Test + public void testGetCasesResponse() { + // TODO: test GetCasesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'cases' + */ + @Test + public void casesTest() { + // TODO: test cases + } } diff --git a/src/test/java/com/formkiq/client/model/GetClassificationResponseTest.java b/src/test/java/com/formkiq/client/model/GetClassificationResponseTest.java index f43a0fd9c..1aa90a08d 100644 --- a/src/test/java/com/formkiq/client/model/GetClassificationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetClassificationResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetClassificationResponse */ public class GetClassificationResponseTest { - private final GetClassificationResponse model = new GetClassificationResponse(); + private final GetClassificationResponse model = new GetClassificationResponse(); - /** - * Model tests for GetClassificationResponse - */ - @Test - public void testGetClassificationResponse() { - // TODO: test GetClassificationResponse - } + /** + * Model tests for GetClassificationResponse + */ + @Test + public void testGetClassificationResponse() { + // TODO: test GetClassificationResponse + } - /** - * Test the property 'classification' - */ - @Test - public void classificationTest() { - // TODO: test classification - } + /** + * Test the property 'classification' + */ + @Test + public void classificationTest() { + // TODO: test classification + } } diff --git a/src/test/java/com/formkiq/client/model/GetClassificationsResponseTest.java b/src/test/java/com/formkiq/client/model/GetClassificationsResponseTest.java index 3e6efe5da..b281e031f 100644 --- a/src/test/java/com/formkiq/client/model/GetClassificationsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetClassificationsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetClassificationsResponse */ public class GetClassificationsResponseTest { - private final GetClassificationsResponse model = new GetClassificationsResponse(); - - /** - * Model tests for GetClassificationsResponse - */ - @Test - public void testGetClassificationsResponse() { - // TODO: test GetClassificationsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'classifications' - */ - @Test - public void classificationsTest() { - // TODO: test classifications - } + private final GetClassificationsResponse model = new GetClassificationsResponse(); + + /** + * Model tests for GetClassificationsResponse + */ + @Test + public void testGetClassificationsResponse() { + // TODO: test GetClassificationsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'classifications' + */ + @Test + public void classificationsTest() { + // TODO: test classifications + } } diff --git a/src/test/java/com/formkiq/client/model/GetConfigurationResponseTest.java b/src/test/java/com/formkiq/client/model/GetConfigurationResponseTest.java index 43142a570..20fd5e9e6 100644 --- a/src/test/java/com/formkiq/client/model/GetConfigurationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetConfigurationResponseTest.java @@ -1,18 +1,26 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ package com.formkiq.client.model; +import com.formkiq.client.model.DocumentConfig; import com.formkiq.client.model.DocusignConfig; import com.formkiq.client.model.GoogleConfig; import com.formkiq.client.model.OcrConfig; @@ -30,78 +38,86 @@ * Model tests for GetConfigurationResponse */ public class GetConfigurationResponseTest { - private final GetConfigurationResponse model = new GetConfigurationResponse(); + private final GetConfigurationResponse model = new GetConfigurationResponse(); - /** - * Model tests for GetConfigurationResponse - */ - @Test - public void testGetConfigurationResponse() { - // TODO: test GetConfigurationResponse - } + /** + * Model tests for GetConfigurationResponse + */ + @Test + public void testGetConfigurationResponse() { + // TODO: test GetConfigurationResponse + } - /** - * Test the property 'chatGptApiKey' - */ - @Test - public void chatGptApiKeyTest() { - // TODO: test chatGptApiKey - } + /** + * Test the property 'chatGptApiKey' + */ + @Test + public void chatGptApiKeyTest() { + // TODO: test chatGptApiKey + } - /** - * Test the property 'maxContentLengthBytes' - */ - @Test - public void maxContentLengthBytesTest() { - // TODO: test maxContentLengthBytes - } + /** + * Test the property 'maxContentLengthBytes' + */ + @Test + public void maxContentLengthBytesTest() { + // TODO: test maxContentLengthBytes + } - /** - * Test the property 'maxDocuments' - */ - @Test - public void maxDocumentsTest() { - // TODO: test maxDocuments - } + /** + * Test the property 'maxDocuments' + */ + @Test + public void maxDocumentsTest() { + // TODO: test maxDocuments + } - /** - * Test the property 'maxWebhooks' - */ - @Test - public void maxWebhooksTest() { - // TODO: test maxWebhooks - } + /** + * Test the property 'maxWebhooks' + */ + @Test + public void maxWebhooksTest() { + // TODO: test maxWebhooks + } - /** - * Test the property 'notificationEmail' - */ - @Test - public void notificationEmailTest() { - // TODO: test notificationEmail - } + /** + * Test the property 'notificationEmail' + */ + @Test + public void notificationEmailTest() { + // TODO: test notificationEmail + } - /** - * Test the property 'ocr' - */ - @Test - public void ocrTest() { - // TODO: test ocr - } + /** + * Test the property 'document' + */ + @Test + public void documentTest() { + // TODO: test document + } - /** - * Test the property 'google' - */ - @Test - public void googleTest() { - // TODO: test google - } + /** + * Test the property 'ocr' + */ + @Test + public void ocrTest() { + // TODO: test ocr + } - /** - * Test the property 'docusign' - */ - @Test - public void docusignTest() { - // TODO: test docusign - } + /** + * Test the property 'google' + */ + @Test + public void googleTest() { + // TODO: test google + } + + /** + * Test the property 'docusign' + */ + @Test + public void docusignTest() { + // TODO: test docusign + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentActionsResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentActionsResponseTest.java index c7e9891c9..cd19f95bd 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentActionsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentActionsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetDocumentActionsResponse */ public class GetDocumentActionsResponseTest { - private final GetDocumentActionsResponse model = new GetDocumentActionsResponse(); - - /** - * Model tests for GetDocumentActionsResponse - */ - @Test - public void testGetDocumentActionsResponse() { - // TODO: test GetDocumentActionsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } + private final GetDocumentActionsResponse model = new GetDocumentActionsResponse(); + + /** + * Model tests for GetDocumentActionsResponse + */ + @Test + public void testGetDocumentActionsResponse() { + // TODO: test GetDocumentActionsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentAttributeResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentAttributeResponseTest.java index dda41a1b5..8a7b4bd18 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentAttributeResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentAttributeResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetDocumentAttributeResponse */ public class GetDocumentAttributeResponseTest { - private final GetDocumentAttributeResponse model = new GetDocumentAttributeResponse(); + private final GetDocumentAttributeResponse model = new GetDocumentAttributeResponse(); - /** - * Model tests for GetDocumentAttributeResponse - */ - @Test - public void testGetDocumentAttributeResponse() { - // TODO: test GetDocumentAttributeResponse - } + /** + * Model tests for GetDocumentAttributeResponse + */ + @Test + public void testGetDocumentAttributeResponse() { + // TODO: test GetDocumentAttributeResponse + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentAttributesResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentAttributesResponseTest.java index b0c312d84..11e712fbe 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentAttributesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentAttributesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetDocumentAttributesResponse */ public class GetDocumentAttributesResponseTest { - private final GetDocumentAttributesResponse model = new GetDocumentAttributesResponse(); - - /** - * Model tests for GetDocumentAttributesResponse - */ - @Test - public void testGetDocumentAttributesResponse() { - // TODO: test GetDocumentAttributesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final GetDocumentAttributesResponse model = new GetDocumentAttributesResponse(); + + /** + * Model tests for GetDocumentAttributesResponse + */ + @Test + public void testGetDocumentAttributesResponse() { + // TODO: test GetDocumentAttributesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentContentResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentContentResponseTest.java index fea1716b9..ba0e87a1c 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentContentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentContentResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,46 +34,46 @@ * Model tests for GetDocumentContentResponse */ public class GetDocumentContentResponseTest { - private final GetDocumentContentResponse model = new GetDocumentContentResponse(); + private final GetDocumentContentResponse model = new GetDocumentContentResponse(); - /** - * Model tests for GetDocumentContentResponse - */ - @Test - public void testGetDocumentContentResponse() { - // TODO: test GetDocumentContentResponse - } + /** + * Model tests for GetDocumentContentResponse + */ + @Test + public void testGetDocumentContentResponse() { + // TODO: test GetDocumentContentResponse + } - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } - /** - * Test the property 'contentUrl' - */ - @Test - public void contentUrlTest() { - // TODO: test contentUrl - } + /** + * Test the property 'contentUrl' + */ + @Test + public void contentUrlTest() { + // TODO: test contentUrl + } - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentDataClassificationResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentDataClassificationResponseTest.java index c2254501c..24e1be28a 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentDataClassificationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentDataClassificationResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,31 @@ * Model tests for GetDocumentDataClassificationResponse */ public class GetDocumentDataClassificationResponseTest { - private final GetDocumentDataClassificationResponse model = new GetDocumentDataClassificationResponse(); - - /** - * Model tests for GetDocumentDataClassificationResponse - */ - @Test - public void testGetDocumentDataClassificationResponse() { - // TODO: test GetDocumentDataClassificationResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'dataClassifications' - */ - @Test - public void dataClassificationsTest() { - // TODO: test dataClassifications - } + private final GetDocumentDataClassificationResponse model = + new GetDocumentDataClassificationResponse(); + + /** + * Model tests for GetDocumentDataClassificationResponse + */ + @Test + public void testGetDocumentDataClassificationResponse() { + // TODO: test GetDocumentDataClassificationResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'dataClassifications' + */ + @Test + public void dataClassificationsTest() { + // TODO: test dataClassifications + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentFulltextResponseTest.java index 7a82c89aa..636cc442b 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentFulltextResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,150 +38,150 @@ * Model tests for GetDocumentFulltextResponse */ public class GetDocumentFulltextResponseTest { - private final GetDocumentFulltextResponse model = new GetDocumentFulltextResponse(); - - /** - * Model tests for GetDocumentFulltextResponse - */ - @Test - public void testGetDocumentFulltextResponse() { - // TODO: test GetDocumentFulltextResponse - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'createdBy' - */ - @Test - public void createdByTest() { - // TODO: test createdBy - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final GetDocumentFulltextResponse model = new GetDocumentFulltextResponse(); + + /** + * Model tests for GetDocumentFulltextResponse + */ + @Test + public void testGetDocumentFulltextResponse() { + // TODO: test GetDocumentFulltextResponse + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentOcrResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentOcrResponseTest.java index b95fcbf2c..32f796676 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentOcrResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentOcrResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,102 +38,102 @@ * Model tests for GetDocumentOcrResponse */ public class GetDocumentOcrResponseTest { - private final GetDocumentOcrResponse model = new GetDocumentOcrResponse(); - - /** - * Model tests for GetDocumentOcrResponse - */ - @Test - public void testGetDocumentOcrResponse() { - // TODO: test GetDocumentOcrResponse - } - - /** - * Test the property 'contentUrls' - */ - @Test - public void contentUrlsTest() { - // TODO: test contentUrls - } - - /** - * Test the property 'keyValues' - */ - @Test - public void keyValuesTest() { - // TODO: test keyValues - } - - /** - * Test the property 'tables' - */ - @Test - public void tablesTest() { - // TODO: test tables - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } - - /** - * Test the property 'ocrEngine' - */ - @Test - public void ocrEngineTest() { - // TODO: test ocrEngine - } - - /** - * Test the property 'ocrStatus' - */ - @Test - public void ocrStatusTest() { - // TODO: test ocrStatus - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + private final GetDocumentOcrResponse model = new GetDocumentOcrResponse(); + + /** + * Model tests for GetDocumentOcrResponse + */ + @Test + public void testGetDocumentOcrResponse() { + // TODO: test GetDocumentOcrResponse + } + + /** + * Test the property 'contentUrls' + */ + @Test + public void contentUrlsTest() { + // TODO: test contentUrls + } + + /** + * Test the property 'keyValues' + */ + @Test + public void keyValuesTest() { + // TODO: test keyValues + } + + /** + * Test the property 'tables' + */ + @Test + public void tablesTest() { + // TODO: test tables + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'ocrEngine' + */ + @Test + public void ocrEngineTest() { + // TODO: test ocrEngine + } + + /** + * Test the property 'ocrStatus' + */ + @Test + public void ocrStatusTest() { + // TODO: test ocrStatus + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentResponseTest.java index 4f4e79097..9e1aa8d8a 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,150 +39,150 @@ * Model tests for GetDocumentResponse */ public class GetDocumentResponseTest { - private final GetDocumentResponse model = new GetDocumentResponse(); - - /** - * Model tests for GetDocumentResponse - */ - @Test - public void testGetDocumentResponse() { - // TODO: test GetDocumentResponse - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'versionId' - */ - @Test - public void versionIdTest() { - // TODO: test versionId - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } - - /** - * Test the property 'belongsToDocumentId' - */ - @Test - public void belongsToDocumentIdTest() { - // TODO: test belongsToDocumentId - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final GetDocumentResponse model = new GetDocumentResponse(); + + /** + * Model tests for GetDocumentResponse + */ + @Test + public void testGetDocumentResponse() { + // TODO: test GetDocumentResponse + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'versionId' + */ + @Test + public void versionIdTest() { + // TODO: test versionId + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } + + /** + * Test the property 'belongsToDocumentId' + */ + @Test + public void belongsToDocumentIdTest() { + // TODO: test belongsToDocumentId + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentSyncResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentSyncResponseTest.java index 0a735203f..80401305f 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentSyncResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentSyncResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetDocumentSyncResponse */ public class GetDocumentSyncResponseTest { - private final GetDocumentSyncResponse model = new GetDocumentSyncResponse(); - - /** - * Model tests for GetDocumentSyncResponse - */ - @Test - public void testGetDocumentSyncResponse() { - // TODO: test GetDocumentSyncResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'syncs' - */ - @Test - public void syncsTest() { - // TODO: test syncs - } + private final GetDocumentSyncResponse model = new GetDocumentSyncResponse(); + + /** + * Model tests for GetDocumentSyncResponse + */ + @Test + public void testGetDocumentSyncResponse() { + // TODO: test GetDocumentSyncResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'syncs' + */ + @Test + public void syncsTest() { + // TODO: test syncs + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentTagResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentTagResponseTest.java index ce7f9a553..a5b2a271a 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentTagResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentTagResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,70 +36,70 @@ * Model tests for GetDocumentTagResponse */ public class GetDocumentTagResponseTest { - private final GetDocumentTagResponse model = new GetDocumentTagResponse(); + private final GetDocumentTagResponse model = new GetDocumentTagResponse(); - /** - * Model tests for GetDocumentTagResponse - */ - @Test - public void testGetDocumentTagResponse() { - // TODO: test GetDocumentTagResponse - } + /** + * Model tests for GetDocumentTagResponse + */ + @Test + public void testGetDocumentTagResponse() { + // TODO: test GetDocumentTagResponse + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentTagsResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentTagsResponseTest.java index ede386373..cd02bfa46 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentTagsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentTagsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,38 +37,38 @@ * Model tests for GetDocumentTagsResponse */ public class GetDocumentTagsResponseTest { - private final GetDocumentTagsResponse model = new GetDocumentTagsResponse(); + private final GetDocumentTagsResponse model = new GetDocumentTagsResponse(); - /** - * Model tests for GetDocumentTagsResponse - */ - @Test - public void testGetDocumentTagsResponse() { - // TODO: test GetDocumentTagsResponse - } + /** + * Model tests for GetDocumentTagsResponse + */ + @Test + public void testGetDocumentTagsResponse() { + // TODO: test GetDocumentTagsResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentUrlResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentUrlResponseTest.java index 28633f9a4..6e44dba97 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentUrlResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentUrlResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,38 +36,38 @@ * Model tests for GetDocumentUrlResponse */ public class GetDocumentUrlResponseTest { - private final GetDocumentUrlResponse model = new GetDocumentUrlResponse(); + private final GetDocumentUrlResponse model = new GetDocumentUrlResponse(); - /** - * Model tests for GetDocumentUrlResponse - */ - @Test - public void testGetDocumentUrlResponse() { - // TODO: test GetDocumentUrlResponse - } + /** + * Model tests for GetDocumentUrlResponse + */ + @Test + public void testGetDocumentUrlResponse() { + // TODO: test GetDocumentUrlResponse + } - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } - /** - * Test the property 'url' - */ - @Test - public void urlTest() { - // TODO: test url - } + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } - /** - * Test the property 'headers' - */ - @Test - public void headersTest() { - // TODO: test headers - } + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentVersionsResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentVersionsResponseTest.java index 0a316ab24..327fa57c7 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentVersionsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentVersionsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetDocumentVersionsResponse */ public class GetDocumentVersionsResponseTest { - private final GetDocumentVersionsResponse model = new GetDocumentVersionsResponse(); - - /** - * Model tests for GetDocumentVersionsResponse - */ - @Test - public void testGetDocumentVersionsResponse() { - // TODO: test GetDocumentVersionsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final GetDocumentVersionsResponse model = new GetDocumentVersionsResponse(); + + /** + * Model tests for GetDocumentVersionsResponse + */ + @Test + public void testGetDocumentVersionsResponse() { + // TODO: test GetDocumentVersionsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentWorkflowResponseTest.java index 3504965ee..65ef285bf 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentWorkflowResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetDocumentWorkflowResponse */ public class GetDocumentWorkflowResponseTest { - private final GetDocumentWorkflowResponse model = new GetDocumentWorkflowResponse(); + private final GetDocumentWorkflowResponse model = new GetDocumentWorkflowResponse(); - /** - * Model tests for GetDocumentWorkflowResponse - */ - @Test - public void testGetDocumentWorkflowResponse() { - // TODO: test GetDocumentWorkflowResponse - } + /** + * Model tests for GetDocumentWorkflowResponse + */ + @Test + public void testGetDocumentWorkflowResponse() { + // TODO: test GetDocumentWorkflowResponse + } - /** - * Test the property 'workflow' - */ - @Test - public void workflowTest() { - // TODO: test workflow - } + /** + * Test the property 'workflow' + */ + @Test + public void workflowTest() { + // TODO: test workflow + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentWorkflowsResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentWorkflowsResponseTest.java index 6ccc4d42a..460de8870 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentWorkflowsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentWorkflowsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetDocumentWorkflowsResponse */ public class GetDocumentWorkflowsResponseTest { - private final GetDocumentWorkflowsResponse model = new GetDocumentWorkflowsResponse(); - - /** - * Model tests for GetDocumentWorkflowsResponse - */ - @Test - public void testGetDocumentWorkflowsResponse() { - // TODO: test GetDocumentWorkflowsResponse - } - - /** - * Test the property 'workflows' - */ - @Test - public void workflowsTest() { - // TODO: test workflows - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + private final GetDocumentWorkflowsResponse model = new GetDocumentWorkflowsResponse(); + + /** + * Model tests for GetDocumentWorkflowsResponse + */ + @Test + public void testGetDocumentWorkflowsResponse() { + // TODO: test GetDocumentWorkflowsResponse + } + + /** + * Test the property 'workflows' + */ + @Test + public void workflowsTest() { + // TODO: test workflows + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } } diff --git a/src/test/java/com/formkiq/client/model/GetDocumentsResponseTest.java b/src/test/java/com/formkiq/client/model/GetDocumentsResponseTest.java index dd916b746..abc100c9e 100644 --- a/src/test/java/com/formkiq/client/model/GetDocumentsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetDocumentsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,38 +37,38 @@ * Model tests for GetDocumentsResponse */ public class GetDocumentsResponseTest { - private final GetDocumentsResponse model = new GetDocumentsResponse(); + private final GetDocumentsResponse model = new GetDocumentsResponse(); - /** - * Model tests for GetDocumentsResponse - */ - @Test - public void testGetDocumentsResponse() { - // TODO: test GetDocumentsResponse - } + /** + * Model tests for GetDocumentsResponse + */ + @Test + public void testGetDocumentsResponse() { + // TODO: test GetDocumentsResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetEntitiesResponseTest.java b/src/test/java/com/formkiq/client/model/GetEntitiesResponseTest.java index 35f2061c8..7d2577810 100644 --- a/src/test/java/com/formkiq/client/model/GetEntitiesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetEntitiesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetEntitiesResponse */ public class GetEntitiesResponseTest { - private final GetEntitiesResponse model = new GetEntitiesResponse(); - - /** - * Model tests for GetEntitiesResponse - */ - @Test - public void testGetEntitiesResponse() { - // TODO: test GetEntitiesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'entities' - */ - @Test - public void entitiesTest() { - // TODO: test entities - } + private final GetEntitiesResponse model = new GetEntitiesResponse(); + + /** + * Model tests for GetEntitiesResponse + */ + @Test + public void testGetEntitiesResponse() { + // TODO: test GetEntitiesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'entities' + */ + @Test + public void entitiesTest() { + // TODO: test entities + } } diff --git a/src/test/java/com/formkiq/client/model/GetEntityResponseTest.java b/src/test/java/com/formkiq/client/model/GetEntityResponseTest.java index 58d789434..25fefe3b5 100644 --- a/src/test/java/com/formkiq/client/model/GetEntityResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetEntityResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetEntityResponse */ public class GetEntityResponseTest { - private final GetEntityResponse model = new GetEntityResponse(); + private final GetEntityResponse model = new GetEntityResponse(); - /** - * Model tests for GetEntityResponse - */ - @Test - public void testGetEntityResponse() { - // TODO: test GetEntityResponse - } + /** + * Model tests for GetEntityResponse + */ + @Test + public void testGetEntityResponse() { + // TODO: test GetEntityResponse + } - /** - * Test the property 'entity' - */ - @Test - public void entityTest() { - // TODO: test entity - } + /** + * Test the property 'entity' + */ + @Test + public void entityTest() { + // TODO: test entity + } } diff --git a/src/test/java/com/formkiq/client/model/GetEntityTypeResponseTest.java b/src/test/java/com/formkiq/client/model/GetEntityTypeResponseTest.java index 283b3685b..b672a927f 100644 --- a/src/test/java/com/formkiq/client/model/GetEntityTypeResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetEntityTypeResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetEntityTypeResponse */ public class GetEntityTypeResponseTest { - private final GetEntityTypeResponse model = new GetEntityTypeResponse(); + private final GetEntityTypeResponse model = new GetEntityTypeResponse(); - /** - * Model tests for GetEntityTypeResponse - */ - @Test - public void testGetEntityTypeResponse() { - // TODO: test GetEntityTypeResponse - } + /** + * Model tests for GetEntityTypeResponse + */ + @Test + public void testGetEntityTypeResponse() { + // TODO: test GetEntityTypeResponse + } - /** - * Test the property 'entityType' - */ - @Test - public void entityTypeTest() { - // TODO: test entityType - } + /** + * Test the property 'entityType' + */ + @Test + public void entityTypeTest() { + // TODO: test entityType + } } diff --git a/src/test/java/com/formkiq/client/model/GetEntityTypesResponseTest.java b/src/test/java/com/formkiq/client/model/GetEntityTypesResponseTest.java index f82b0bd0e..97d63f41c 100644 --- a/src/test/java/com/formkiq/client/model/GetEntityTypesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetEntityTypesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetEntityTypesResponse */ public class GetEntityTypesResponseTest { - private final GetEntityTypesResponse model = new GetEntityTypesResponse(); - - /** - * Model tests for GetEntityTypesResponse - */ - @Test - public void testGetEntityTypesResponse() { - // TODO: test GetEntityTypesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'entityTypes' - */ - @Test - public void entityTypesTest() { - // TODO: test entityTypes - } + private final GetEntityTypesResponse model = new GetEntityTypesResponse(); + + /** + * Model tests for GetEntityTypesResponse + */ + @Test + public void testGetEntityTypesResponse() { + // TODO: test GetEntityTypesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'entityTypes' + */ + @Test + public void entityTypesTest() { + // TODO: test entityTypes + } } diff --git a/src/test/java/com/formkiq/client/model/GetExaminePdfResponseTest.java b/src/test/java/com/formkiq/client/model/GetExaminePdfResponseTest.java index feb77b312..5d6057751 100644 --- a/src/test/java/com/formkiq/client/model/GetExaminePdfResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetExaminePdfResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetExaminePdfResponse */ public class GetExaminePdfResponseTest { - private final GetExaminePdfResponse model = new GetExaminePdfResponse(); + private final GetExaminePdfResponse model = new GetExaminePdfResponse(); - /** - * Model tests for GetExaminePdfResponse - */ - @Test - public void testGetExaminePdfResponse() { - // TODO: test GetExaminePdfResponse - } + /** + * Model tests for GetExaminePdfResponse + */ + @Test + public void testGetExaminePdfResponse() { + // TODO: test GetExaminePdfResponse + } - /** - * Test the property 'fileinfo' - */ - @Test - public void fileinfoTest() { - // TODO: test fileinfo - } + /** + * Test the property 'fileinfo' + */ + @Test + public void fileinfoTest() { + // TODO: test fileinfo + } } diff --git a/src/test/java/com/formkiq/client/model/GetExaminePdfUrlResponseTest.java b/src/test/java/com/formkiq/client/model/GetExaminePdfUrlResponseTest.java index 0968ed72d..cb65652ef 100644 --- a/src/test/java/com/formkiq/client/model/GetExaminePdfUrlResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetExaminePdfUrlResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for GetExaminePdfUrlResponse */ public class GetExaminePdfUrlResponseTest { - private final GetExaminePdfUrlResponse model = new GetExaminePdfUrlResponse(); - - /** - * Model tests for GetExaminePdfUrlResponse - */ - @Test - public void testGetExaminePdfUrlResponse() { - // TODO: test GetExaminePdfUrlResponse - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'uploadUrl' - */ - @Test - public void uploadUrlTest() { - // TODO: test uploadUrl - } + private final GetExaminePdfUrlResponse model = new GetExaminePdfUrlResponse(); + + /** + * Model tests for GetExaminePdfUrlResponse + */ + @Test + public void testGetExaminePdfUrlResponse() { + // TODO: test GetExaminePdfUrlResponse + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'uploadUrl' + */ + @Test + public void uploadUrlTest() { + // TODO: test uploadUrl + } } diff --git a/src/test/java/com/formkiq/client/model/GetFolderPermissionsResponseTest.java b/src/test/java/com/formkiq/client/model/GetFolderPermissionsResponseTest.java index 06e7c1dba..9578e3632 100644 --- a/src/test/java/com/formkiq/client/model/GetFolderPermissionsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetFolderPermissionsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for GetFolderPermissionsResponse */ public class GetFolderPermissionsResponseTest { - private final GetFolderPermissionsResponse model = new GetFolderPermissionsResponse(); + private final GetFolderPermissionsResponse model = new GetFolderPermissionsResponse(); - /** - * Model tests for GetFolderPermissionsResponse - */ - @Test - public void testGetFolderPermissionsResponse() { - // TODO: test GetFolderPermissionsResponse - } + /** + * Model tests for GetFolderPermissionsResponse + */ + @Test + public void testGetFolderPermissionsResponse() { + // TODO: test GetFolderPermissionsResponse + } - /** - * Test the property 'roles' - */ - @Test - public void rolesTest() { - // TODO: test roles - } + /** + * Test the property 'roles' + */ + @Test + public void rolesTest() { + // TODO: test roles + } } diff --git a/src/test/java/com/formkiq/client/model/GetFoldersResponseTest.java b/src/test/java/com/formkiq/client/model/GetFoldersResponseTest.java index f6fac566e..11435f1be 100644 --- a/src/test/java/com/formkiq/client/model/GetFoldersResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetFoldersResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,38 +37,38 @@ * Model tests for GetFoldersResponse */ public class GetFoldersResponseTest { - private final GetFoldersResponse model = new GetFoldersResponse(); + private final GetFoldersResponse model = new GetFoldersResponse(); - /** - * Model tests for GetFoldersResponse - */ - @Test - public void testGetFoldersResponse() { - // TODO: test GetFoldersResponse - } + /** + * Model tests for GetFoldersResponse + */ + @Test + public void testGetFoldersResponse() { + // TODO: test GetFoldersResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetGroupResponseTest.java b/src/test/java/com/formkiq/client/model/GetGroupResponseTest.java index 94ce1af72..a824de5a3 100644 --- a/src/test/java/com/formkiq/client/model/GetGroupResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetGroupResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetGroupResponse */ public class GetGroupResponseTest { - private final GetGroupResponse model = new GetGroupResponse(); + private final GetGroupResponse model = new GetGroupResponse(); - /** - * Model tests for GetGroupResponse - */ - @Test - public void testGetGroupResponse() { - // TODO: test GetGroupResponse - } + /** + * Model tests for GetGroupResponse + */ + @Test + public void testGetGroupResponse() { + // TODO: test GetGroupResponse + } - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } } diff --git a/src/test/java/com/formkiq/client/model/GetGroupsResponseTest.java b/src/test/java/com/formkiq/client/model/GetGroupsResponseTest.java index 805b5a812..1e060386a 100644 --- a/src/test/java/com/formkiq/client/model/GetGroupsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetGroupsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetGroupsResponse */ public class GetGroupsResponseTest { - private final GetGroupsResponse model = new GetGroupsResponse(); - - /** - * Model tests for GetGroupsResponse - */ - @Test - public void testGetGroupsResponse() { - // TODO: test GetGroupsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'groups' - */ - @Test - public void groupsTest() { - // TODO: test groups - } + private final GetGroupsResponse model = new GetGroupsResponse(); + + /** + * Model tests for GetGroupsResponse + */ + @Test + public void testGetGroupsResponse() { + // TODO: test GetGroupsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } } diff --git a/src/test/java/com/formkiq/client/model/GetLocaleResourceItemResponseTest.java b/src/test/java/com/formkiq/client/model/GetLocaleResourceItemResponseTest.java index 978885784..a20cebe58 100644 --- a/src/test/java/com/formkiq/client/model/GetLocaleResourceItemResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetLocaleResourceItemResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetLocaleResourceItemResponse */ public class GetLocaleResourceItemResponseTest { - private final GetLocaleResourceItemResponse model = new GetLocaleResourceItemResponse(); + private final GetLocaleResourceItemResponse model = new GetLocaleResourceItemResponse(); - /** - * Model tests for GetLocaleResourceItemResponse - */ - @Test - public void testGetLocaleResourceItemResponse() { - // TODO: test GetLocaleResourceItemResponse - } + /** + * Model tests for GetLocaleResourceItemResponse + */ + @Test + public void testGetLocaleResourceItemResponse() { + // TODO: test GetLocaleResourceItemResponse + } - /** - * Test the property 'resourceItem' - */ - @Test - public void resourceItemTest() { - // TODO: test resourceItem - } + /** + * Test the property 'resourceItem' + */ + @Test + public void resourceItemTest() { + // TODO: test resourceItem + } } diff --git a/src/test/java/com/formkiq/client/model/GetLocaleResourceItemsResponseTest.java b/src/test/java/com/formkiq/client/model/GetLocaleResourceItemsResponseTest.java index 72d6f86f2..78bdd279e 100644 --- a/src/test/java/com/formkiq/client/model/GetLocaleResourceItemsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetLocaleResourceItemsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetLocaleResourceItemsResponse */ public class GetLocaleResourceItemsResponseTest { - private final GetLocaleResourceItemsResponse model = new GetLocaleResourceItemsResponse(); - - /** - * Model tests for GetLocaleResourceItemsResponse - */ - @Test - public void testGetLocaleResourceItemsResponse() { - // TODO: test GetLocaleResourceItemsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'resourceItems' - */ - @Test - public void resourceItemsTest() { - // TODO: test resourceItems - } + private final GetLocaleResourceItemsResponse model = new GetLocaleResourceItemsResponse(); + + /** + * Model tests for GetLocaleResourceItemsResponse + */ + @Test + public void testGetLocaleResourceItemsResponse() { + // TODO: test GetLocaleResourceItemsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'resourceItems' + */ + @Test + public void resourceItemsTest() { + // TODO: test resourceItems + } } diff --git a/src/test/java/com/formkiq/client/model/GetLocalesResponseTest.java b/src/test/java/com/formkiq/client/model/GetLocalesResponseTest.java index faeb09b29..9005d6c8f 100644 --- a/src/test/java/com/formkiq/client/model/GetLocalesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetLocalesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetLocalesResponse */ public class GetLocalesResponseTest { - private final GetLocalesResponse model = new GetLocalesResponse(); - - /** - * Model tests for GetLocalesResponse - */ - @Test - public void testGetLocalesResponse() { - // TODO: test GetLocalesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'locales' - */ - @Test - public void localesTest() { - // TODO: test locales - } + private final GetLocalesResponse model = new GetLocalesResponse(); + + /** + * Model tests for GetLocalesResponse + */ + @Test + public void testGetLocalesResponse() { + // TODO: test GetLocalesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'locales' + */ + @Test + public void localesTest() { + // TODO: test locales + } } diff --git a/src/test/java/com/formkiq/client/model/GetMalwareScanResponseTest.java b/src/test/java/com/formkiq/client/model/GetMalwareScanResponseTest.java index 007398362..ee29f7f28 100644 --- a/src/test/java/com/formkiq/client/model/GetMalwareScanResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetMalwareScanResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetMalwareScanResponse */ public class GetMalwareScanResponseTest { - private final GetMalwareScanResponse model = new GetMalwareScanResponse(); - - /** - * Model tests for GetMalwareScanResponse - */ - @Test - public void testGetMalwareScanResponse() { - // TODO: test GetMalwareScanResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'malwareScanResults' - */ - @Test - public void malwareScanResultsTest() { - // TODO: test malwareScanResults - } + private final GetMalwareScanResponse model = new GetMalwareScanResponse(); + + /** + * Model tests for GetMalwareScanResponse + */ + @Test + public void testGetMalwareScanResponse() { + // TODO: test GetMalwareScanResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'malwareScanResults' + */ + @Test + public void malwareScanResultsTest() { + // TODO: test malwareScanResults + } } diff --git a/src/test/java/com/formkiq/client/model/GetMappingResponseTest.java b/src/test/java/com/formkiq/client/model/GetMappingResponseTest.java index b3bfdb428..e6f74a892 100644 --- a/src/test/java/com/formkiq/client/model/GetMappingResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetMappingResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetMappingResponse */ public class GetMappingResponseTest { - private final GetMappingResponse model = new GetMappingResponse(); + private final GetMappingResponse model = new GetMappingResponse(); - /** - * Model tests for GetMappingResponse - */ - @Test - public void testGetMappingResponse() { - // TODO: test GetMappingResponse - } + /** + * Model tests for GetMappingResponse + */ + @Test + public void testGetMappingResponse() { + // TODO: test GetMappingResponse + } - /** - * Test the property 'mapping' - */ - @Test - public void mappingTest() { - // TODO: test mapping - } + /** + * Test the property 'mapping' + */ + @Test + public void mappingTest() { + // TODO: test mapping + } } diff --git a/src/test/java/com/formkiq/client/model/GetMappingsResponseTest.java b/src/test/java/com/formkiq/client/model/GetMappingsResponseTest.java index 5a40b7dfd..780aea168 100644 --- a/src/test/java/com/formkiq/client/model/GetMappingsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetMappingsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetMappingsResponse */ public class GetMappingsResponseTest { - private final GetMappingsResponse model = new GetMappingsResponse(); - - /** - * Model tests for GetMappingsResponse - */ - @Test - public void testGetMappingsResponse() { - // TODO: test GetMappingsResponse - } - - /** - * Test the property 'mappings' - */ - @Test - public void mappingsTest() { - // TODO: test mappings - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + private final GetMappingsResponse model = new GetMappingsResponse(); + + /** + * Model tests for GetMappingsResponse + */ + @Test + public void testGetMappingsResponse() { + // TODO: test GetMappingsResponse + } + + /** + * Test the property 'mappings' + */ + @Test + public void mappingsTest() { + // TODO: test mappings + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpaAccessPoliciesResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpaAccessPoliciesResponseTest.java index 70aa9d46d..efc091d4f 100644 --- a/src/test/java/com/formkiq/client/model/GetOpaAccessPoliciesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpaAccessPoliciesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetOpaAccessPoliciesResponse */ public class GetOpaAccessPoliciesResponseTest { - private final GetOpaAccessPoliciesResponse model = new GetOpaAccessPoliciesResponse(); - - /** - * Model tests for GetOpaAccessPoliciesResponse - */ - @Test - public void testGetOpaAccessPoliciesResponse() { - // TODO: test GetOpaAccessPoliciesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'opaPolicies' - */ - @Test - public void opaPoliciesTest() { - // TODO: test opaPolicies - } + private final GetOpaAccessPoliciesResponse model = new GetOpaAccessPoliciesResponse(); + + /** + * Model tests for GetOpaAccessPoliciesResponse + */ + @Test + public void testGetOpaAccessPoliciesResponse() { + // TODO: test GetOpaAccessPoliciesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'opaPolicies' + */ + @Test + public void opaPoliciesTest() { + // TODO: test opaPolicies + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponseTest.java index 9ffb8bf0c..a59f606b6 100644 --- a/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for GetOpaAccessPolicyItemsResponse */ public class GetOpaAccessPolicyItemsResponseTest { - private final GetOpaAccessPolicyItemsResponse model = new GetOpaAccessPolicyItemsResponse(); + private final GetOpaAccessPolicyItemsResponse model = new GetOpaAccessPolicyItemsResponse(); - /** - * Model tests for GetOpaAccessPolicyItemsResponse - */ - @Test - public void testGetOpaAccessPolicyItemsResponse() { - // TODO: test GetOpaAccessPolicyItemsResponse - } + /** + * Model tests for GetOpaAccessPolicyItemsResponse + */ + @Test + public void testGetOpaAccessPolicyItemsResponse() { + // TODO: test GetOpaAccessPolicyItemsResponse + } - /** - * Test the property 'policyItems' - */ - @Test - public void policyItemsTest() { - // TODO: test policyItems - } + /** + * Test the property 'policyItems' + */ + @Test + public void policyItemsTest() { + // TODO: test policyItems + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyResponseTest.java index 39eeefebb..30c1e6668 100644 --- a/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpaAccessPolicyResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for GetOpaAccessPolicyResponse */ public class GetOpaAccessPolicyResponseTest { - private final GetOpaAccessPolicyResponse model = new GetOpaAccessPolicyResponse(); + private final GetOpaAccessPolicyResponse model = new GetOpaAccessPolicyResponse(); - /** - * Model tests for GetOpaAccessPolicyResponse - */ - @Test - public void testGetOpaAccessPolicyResponse() { - // TODO: test GetOpaAccessPolicyResponse - } + /** + * Model tests for GetOpaAccessPolicyResponse + */ + @Test + public void testGetOpaAccessPolicyResponse() { + // TODO: test GetOpaAccessPolicyResponse + } - /** - * Test the property 'opaPolicy' - */ - @Test - public void opaPolicyTest() { - // TODO: test opaPolicy - } + /** + * Test the property 'opaPolicy' + */ + @Test + public void opaPolicyTest() { + // TODO: test opaPolicy + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpenSearchIndexResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpenSearchIndexResponseTest.java index 518b572eb..ca0cc3ab9 100644 --- a/src/test/java/com/formkiq/client/model/GetOpenSearchIndexResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpenSearchIndexResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetOpenSearchIndexResponse */ public class GetOpenSearchIndexResponseTest { - private final GetOpenSearchIndexResponse model = new GetOpenSearchIndexResponse(); + private final GetOpenSearchIndexResponse model = new GetOpenSearchIndexResponse(); - /** - * Model tests for GetOpenSearchIndexResponse - */ - @Test - public void testGetOpenSearchIndexResponse() { - // TODO: test GetOpenSearchIndexResponse - } + /** + * Model tests for GetOpenSearchIndexResponse + */ + @Test + public void testGetOpenSearchIndexResponse() { + // TODO: test GetOpenSearchIndexResponse + } - /** - * Test the property 'indexSettings' - */ - @Test - public void indexSettingsTest() { - // TODO: test indexSettings - } + /** + * Test the property 'indexSettings' + */ + @Test + public void indexSettingsTest() { + // TODO: test indexSettings + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpenSearchIndiceResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpenSearchIndiceResponseTest.java index 1a7b66d0a..94e95a8dd 100644 --- a/src/test/java/com/formkiq/client/model/GetOpenSearchIndiceResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpenSearchIndiceResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for GetOpenSearchIndiceResponse */ public class GetOpenSearchIndiceResponseTest { - private final GetOpenSearchIndiceResponse model = new GetOpenSearchIndiceResponse(); + private final GetOpenSearchIndiceResponse model = new GetOpenSearchIndiceResponse(); - /** - * Model tests for GetOpenSearchIndiceResponse - */ - @Test - public void testGetOpenSearchIndiceResponse() { - // TODO: test GetOpenSearchIndiceResponse - } + /** + * Model tests for GetOpenSearchIndiceResponse + */ + @Test + public void testGetOpenSearchIndiceResponse() { + // TODO: test GetOpenSearchIndiceResponse + } - /** - * Test the property 'indices' - */ - @Test - public void indicesTest() { - // TODO: test indices - } + /** + * Test the property 'indices' + */ + @Test + public void indicesTest() { + // TODO: test indices + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponseTest.java index 58184aacb..54c0e6b20 100644 --- a/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,23 @@ * Model tests for GetOpenSearchSnapshotRepositoryResponse */ public class GetOpenSearchSnapshotRepositoryResponseTest { - private final GetOpenSearchSnapshotRepositoryResponse model = new GetOpenSearchSnapshotRepositoryResponse(); + private final GetOpenSearchSnapshotRepositoryResponse model = + new GetOpenSearchSnapshotRepositoryResponse(); - /** - * Model tests for GetOpenSearchSnapshotRepositoryResponse - */ - @Test - public void testGetOpenSearchSnapshotRepositoryResponse() { - // TODO: test GetOpenSearchSnapshotRepositoryResponse - } + /** + * Model tests for GetOpenSearchSnapshotRepositoryResponse + */ + @Test + public void testGetOpenSearchSnapshotRepositoryResponse() { + // TODO: test GetOpenSearchSnapshotRepositoryResponse + } - /** - * Test the property 's3Repositories' - */ - @Test - public void s3RepositoriesTest() { - // TODO: test s3Repositories - } + /** + * Test the property 's3Repositories' + */ + @Test + public void s3RepositoriesTest() { + // TODO: test s3Repositories + } } diff --git a/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotResponseTest.java b/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotResponseTest.java index e4853a36d..d060fdb90 100644 --- a/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetOpenSearchSnapshotResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for GetOpenSearchSnapshotResponse */ public class GetOpenSearchSnapshotResponseTest { - private final GetOpenSearchSnapshotResponse model = new GetOpenSearchSnapshotResponse(); + private final GetOpenSearchSnapshotResponse model = new GetOpenSearchSnapshotResponse(); - /** - * Model tests for GetOpenSearchSnapshotResponse - */ - @Test - public void testGetOpenSearchSnapshotResponse() { - // TODO: test GetOpenSearchSnapshotResponse - } + /** + * Model tests for GetOpenSearchSnapshotResponse + */ + @Test + public void testGetOpenSearchSnapshotResponse() { + // TODO: test GetOpenSearchSnapshotResponse + } - /** - * Test the property 'snapshots' - */ - @Test - public void snapshotsTest() { - // TODO: test snapshots - } + /** + * Test the property 'snapshots' + */ + @Test + public void snapshotsTest() { + // TODO: test snapshots + } } diff --git a/src/test/java/com/formkiq/client/model/GetQueueResponseTest.java b/src/test/java/com/formkiq/client/model/GetQueueResponseTest.java index 8b6f4d888..4f7adb982 100644 --- a/src/test/java/com/formkiq/client/model/GetQueueResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetQueueResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for GetQueueResponse */ public class GetQueueResponseTest { - private final GetQueueResponse model = new GetQueueResponse(); + private final GetQueueResponse model = new GetQueueResponse(); - /** - * Model tests for GetQueueResponse - */ - @Test - public void testGetQueueResponse() { - // TODO: test GetQueueResponse - } + /** + * Model tests for GetQueueResponse + */ + @Test + public void testGetQueueResponse() { + // TODO: test GetQueueResponse + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } } diff --git a/src/test/java/com/formkiq/client/model/GetQueuesResponseTest.java b/src/test/java/com/formkiq/client/model/GetQueuesResponseTest.java index b77cd2340..f7494e493 100644 --- a/src/test/java/com/formkiq/client/model/GetQueuesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetQueuesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetQueuesResponse */ public class GetQueuesResponseTest { - private final GetQueuesResponse model = new GetQueuesResponse(); - - /** - * Model tests for GetQueuesResponse - */ - @Test - public void testGetQueuesResponse() { - // TODO: test GetQueuesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'queues' - */ - @Test - public void queuesTest() { - // TODO: test queues - } + private final GetQueuesResponse model = new GetQueuesResponse(); + + /** + * Model tests for GetQueuesResponse + */ + @Test + public void testGetQueuesResponse() { + // TODO: test GetQueuesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'queues' + */ + @Test + public void queuesTest() { + // TODO: test queues + } } diff --git a/src/test/java/com/formkiq/client/model/GetRuleResponseTest.java b/src/test/java/com/formkiq/client/model/GetRuleResponseTest.java index 6300dc87c..de82e923d 100644 --- a/src/test/java/com/formkiq/client/model/GetRuleResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetRuleResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetRuleResponse */ public class GetRuleResponseTest { - private final GetRuleResponse model = new GetRuleResponse(); + private final GetRuleResponse model = new GetRuleResponse(); - /** - * Model tests for GetRuleResponse - */ - @Test - public void testGetRuleResponse() { - // TODO: test GetRuleResponse - } + /** + * Model tests for GetRuleResponse + */ + @Test + public void testGetRuleResponse() { + // TODO: test GetRuleResponse + } - /** - * Test the property 'rule' - */ - @Test - public void ruleTest() { - // TODO: test rule - } + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } } diff --git a/src/test/java/com/formkiq/client/model/GetRulesResponseTest.java b/src/test/java/com/formkiq/client/model/GetRulesResponseTest.java index 28286ab5b..7bc40108e 100644 --- a/src/test/java/com/formkiq/client/model/GetRulesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetRulesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetRulesResponse */ public class GetRulesResponseTest { - private final GetRulesResponse model = new GetRulesResponse(); - - /** - * Model tests for GetRulesResponse - */ - @Test - public void testGetRulesResponse() { - // TODO: test GetRulesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'rules' - */ - @Test - public void rulesTest() { - // TODO: test rules - } + private final GetRulesResponse model = new GetRulesResponse(); + + /** + * Model tests for GetRulesResponse + */ + @Test + public void testGetRulesResponse() { + // TODO: test GetRulesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } } diff --git a/src/test/java/com/formkiq/client/model/GetRulesetResponseTest.java b/src/test/java/com/formkiq/client/model/GetRulesetResponseTest.java index a81ea4aab..c0c0af64b 100644 --- a/src/test/java/com/formkiq/client/model/GetRulesetResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetRulesetResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetRulesetResponse */ public class GetRulesetResponseTest { - private final GetRulesetResponse model = new GetRulesetResponse(); + private final GetRulesetResponse model = new GetRulesetResponse(); - /** - * Model tests for GetRulesetResponse - */ - @Test - public void testGetRulesetResponse() { - // TODO: test GetRulesetResponse - } + /** + * Model tests for GetRulesetResponse + */ + @Test + public void testGetRulesetResponse() { + // TODO: test GetRulesetResponse + } - /** - * Test the property 'ruleset' - */ - @Test - public void rulesetTest() { - // TODO: test ruleset - } + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } } diff --git a/src/test/java/com/formkiq/client/model/GetRulesetsResponseTest.java b/src/test/java/com/formkiq/client/model/GetRulesetsResponseTest.java index dade7b817..ac5bd0951 100644 --- a/src/test/java/com/formkiq/client/model/GetRulesetsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetRulesetsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetRulesetsResponse */ public class GetRulesetsResponseTest { - private final GetRulesetsResponse model = new GetRulesetsResponse(); - - /** - * Model tests for GetRulesetsResponse - */ - @Test - public void testGetRulesetsResponse() { - // TODO: test GetRulesetsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'rulesets' - */ - @Test - public void rulesetsTest() { - // TODO: test rulesets - } + private final GetRulesetsResponse model = new GetRulesetsResponse(); + + /** + * Model tests for GetRulesetsResponse + */ + @Test + public void testGetRulesetsResponse() { + // TODO: test GetRulesetsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'rulesets' + */ + @Test + public void rulesetsTest() { + // TODO: test rulesets + } } diff --git a/src/test/java/com/formkiq/client/model/GetSiteGroupResponseTest.java b/src/test/java/com/formkiq/client/model/GetSiteGroupResponseTest.java index 9793225c9..de25d8ba2 100644 --- a/src/test/java/com/formkiq/client/model/GetSiteGroupResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetSiteGroupResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetSiteGroupResponse */ public class GetSiteGroupResponseTest { - private final GetSiteGroupResponse model = new GetSiteGroupResponse(); + private final GetSiteGroupResponse model = new GetSiteGroupResponse(); - /** - * Model tests for GetSiteGroupResponse - */ - @Test - public void testGetSiteGroupResponse() { - // TODO: test GetSiteGroupResponse - } + /** + * Model tests for GetSiteGroupResponse + */ + @Test + public void testGetSiteGroupResponse() { + // TODO: test GetSiteGroupResponse + } - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } } diff --git a/src/test/java/com/formkiq/client/model/GetSiteGroupsResponseTest.java b/src/test/java/com/formkiq/client/model/GetSiteGroupsResponseTest.java index 91470a621..e5d540109 100644 --- a/src/test/java/com/formkiq/client/model/GetSiteGroupsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetSiteGroupsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,22 +36,22 @@ * Model tests for GetSiteGroupsResponse */ public class GetSiteGroupsResponseTest { - private final GetSiteGroupsResponse model = new GetSiteGroupsResponse(); + private final GetSiteGroupsResponse model = new GetSiteGroupsResponse(); - /** - * Model tests for GetSiteGroupsResponse - */ - @Test - public void testGetSiteGroupsResponse() { - // TODO: test GetSiteGroupsResponse - } + /** + * Model tests for GetSiteGroupsResponse + */ + @Test + public void testGetSiteGroupsResponse() { + // TODO: test GetSiteGroupsResponse + } - /** - * Test the property 'groupNames' - */ - @Test - public void groupNamesTest() { - // TODO: test groupNames - } + /** + * Test the property 'groupNames' + */ + @Test + public void groupNamesTest() { + // TODO: test groupNames + } } diff --git a/src/test/java/com/formkiq/client/model/GetSitesResponseTest.java b/src/test/java/com/formkiq/client/model/GetSitesResponseTest.java index 49d5289a9..77829afcb 100644 --- a/src/test/java/com/formkiq/client/model/GetSitesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetSitesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,38 +37,38 @@ * Model tests for GetSitesResponse */ public class GetSitesResponseTest { - private final GetSitesResponse model = new GetSitesResponse(); + private final GetSitesResponse model = new GetSitesResponse(); - /** - * Model tests for GetSitesResponse - */ - @Test - public void testGetSitesResponse() { - // TODO: test GetSitesResponse - } + /** + * Model tests for GetSitesResponse + */ + @Test + public void testGetSitesResponse() { + // TODO: test GetSitesResponse + } - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } - /** - * Test the property 'roles' - */ - @Test - public void rolesTest() { - // TODO: test roles - } + /** + * Test the property 'roles' + */ + @Test + public void rolesTest() { + // TODO: test roles + } - /** - * Test the property 'sites' - */ - @Test - public void sitesTest() { - // TODO: test sites - } + /** + * Test the property 'sites' + */ + @Test + public void sitesTest() { + // TODO: test sites + } } diff --git a/src/test/java/com/formkiq/client/model/GetSitesSchemaResponseTest.java b/src/test/java/com/formkiq/client/model/GetSitesSchemaResponseTest.java index 84d4fb539..2cf11cf78 100644 --- a/src/test/java/com/formkiq/client/model/GetSitesSchemaResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetSitesSchemaResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for GetSitesSchemaResponse */ public class GetSitesSchemaResponseTest { - private final GetSitesSchemaResponse model = new GetSitesSchemaResponse(); - - /** - * Model tests for GetSitesSchemaResponse - */ - @Test - public void testGetSitesSchemaResponse() { - // TODO: test GetSitesSchemaResponse - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final GetSitesSchemaResponse model = new GetSitesSchemaResponse(); + + /** + * Model tests for GetSitesSchemaResponse + */ + @Test + public void testGetSitesSchemaResponse() { + // TODO: test GetSitesSchemaResponse + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/GetUserActivitesResponseTest.java b/src/test/java/com/formkiq/client/model/GetUserActivitesResponseTest.java index a9983f28e..ad085cca0 100644 --- a/src/test/java/com/formkiq/client/model/GetUserActivitesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUserActivitesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetUserActivitesResponse */ public class GetUserActivitesResponseTest { - private final GetUserActivitesResponse model = new GetUserActivitesResponse(); - - /** - * Model tests for GetUserActivitesResponse - */ - @Test - public void testGetUserActivitesResponse() { - // TODO: test GetUserActivitesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'userActivities' - */ - @Test - public void userActivitiesTest() { - // TODO: test userActivities - } + private final GetUserActivitesResponse model = new GetUserActivitesResponse(); + + /** + * Model tests for GetUserActivitesResponse + */ + @Test + public void testGetUserActivitesResponse() { + // TODO: test GetUserActivitesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'userActivities' + */ + @Test + public void userActivitiesTest() { + // TODO: test userActivities + } } diff --git a/src/test/java/com/formkiq/client/model/GetUserGroupsResponseTest.java b/src/test/java/com/formkiq/client/model/GetUserGroupsResponseTest.java index f0bdf3ca3..aa492f203 100644 --- a/src/test/java/com/formkiq/client/model/GetUserGroupsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUserGroupsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetUserGroupsResponse */ public class GetUserGroupsResponseTest { - private final GetUserGroupsResponse model = new GetUserGroupsResponse(); - - /** - * Model tests for GetUserGroupsResponse - */ - @Test - public void testGetUserGroupsResponse() { - // TODO: test GetUserGroupsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'groups' - */ - @Test - public void groupsTest() { - // TODO: test groups - } + private final GetUserGroupsResponse model = new GetUserGroupsResponse(); + + /** + * Model tests for GetUserGroupsResponse + */ + @Test + public void testGetUserGroupsResponse() { + // TODO: test GetUserGroupsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } } diff --git a/src/test/java/com/formkiq/client/model/GetUserResponseTest.java b/src/test/java/com/formkiq/client/model/GetUserResponseTest.java index aea348188..7f04192db 100644 --- a/src/test/java/com/formkiq/client/model/GetUserResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUserResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for GetUserResponse */ public class GetUserResponseTest { - private final GetUserResponse model = new GetUserResponse(); + private final GetUserResponse model = new GetUserResponse(); - /** - * Model tests for GetUserResponse - */ - @Test - public void testGetUserResponse() { - // TODO: test GetUserResponse - } + /** + * Model tests for GetUserResponse + */ + @Test + public void testGetUserResponse() { + // TODO: test GetUserResponse + } - /** - * Test the property 'user' - */ - @Test - public void userTest() { - // TODO: test user - } + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } } diff --git a/src/test/java/com/formkiq/client/model/GetUserSharesResponseTest.java b/src/test/java/com/formkiq/client/model/GetUserSharesResponseTest.java index 0bed566b2..a7db00f7b 100644 --- a/src/test/java/com/formkiq/client/model/GetUserSharesResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUserSharesResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetUserSharesResponse */ public class GetUserSharesResponseTest { - private final GetUserSharesResponse model = new GetUserSharesResponse(); - - /** - * Model tests for GetUserSharesResponse - */ - @Test - public void testGetUserSharesResponse() { - // TODO: test GetUserSharesResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'shares' - */ - @Test - public void sharesTest() { - // TODO: test shares - } + private final GetUserSharesResponse model = new GetUserSharesResponse(); + + /** + * Model tests for GetUserSharesResponse + */ + @Test + public void testGetUserSharesResponse() { + // TODO: test GetUserSharesResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'shares' + */ + @Test + public void sharesTest() { + // TODO: test shares + } } diff --git a/src/test/java/com/formkiq/client/model/GetUsersInGroupResponseTest.java b/src/test/java/com/formkiq/client/model/GetUsersInGroupResponseTest.java index 52a51fd79..e6b75cb60 100644 --- a/src/test/java/com/formkiq/client/model/GetUsersInGroupResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUsersInGroupResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetUsersInGroupResponse */ public class GetUsersInGroupResponseTest { - private final GetUsersInGroupResponse model = new GetUsersInGroupResponse(); - - /** - * Model tests for GetUsersInGroupResponse - */ - @Test - public void testGetUsersInGroupResponse() { - // TODO: test GetUsersInGroupResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'users' - */ - @Test - public void usersTest() { - // TODO: test users - } + private final GetUsersInGroupResponse model = new GetUsersInGroupResponse(); + + /** + * Model tests for GetUsersInGroupResponse + */ + @Test + public void testGetUsersInGroupResponse() { + // TODO: test GetUsersInGroupResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } } diff --git a/src/test/java/com/formkiq/client/model/GetUsersResponseTest.java b/src/test/java/com/formkiq/client/model/GetUsersResponseTest.java index a518267cf..23408580f 100644 --- a/src/test/java/com/formkiq/client/model/GetUsersResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetUsersResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetUsersResponse */ public class GetUsersResponseTest { - private final GetUsersResponse model = new GetUsersResponse(); - - /** - * Model tests for GetUsersResponse - */ - @Test - public void testGetUsersResponse() { - // TODO: test GetUsersResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'users' - */ - @Test - public void usersTest() { - // TODO: test users - } + private final GetUsersResponse model = new GetUsersResponse(); + + /** + * Model tests for GetUsersResponse + */ + @Test + public void testGetUsersResponse() { + // TODO: test GetUsersResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } } diff --git a/src/test/java/com/formkiq/client/model/GetVersionResponseTest.java b/src/test/java/com/formkiq/client/model/GetVersionResponseTest.java index e749b7f2b..476dfa563 100644 --- a/src/test/java/com/formkiq/client/model/GetVersionResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetVersionResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,46 +36,46 @@ * Model tests for GetVersionResponse */ public class GetVersionResponseTest { - private final GetVersionResponse model = new GetVersionResponse(); + private final GetVersionResponse model = new GetVersionResponse(); - /** - * Model tests for GetVersionResponse - */ - @Test - public void testGetVersionResponse() { - // TODO: test GetVersionResponse - } + /** + * Model tests for GetVersionResponse + */ + @Test + public void testGetVersionResponse() { + // TODO: test GetVersionResponse + } - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'appEnvironment' - */ - @Test - public void appEnvironmentTest() { - // TODO: test appEnvironment - } + /** + * Test the property 'appEnvironment' + */ + @Test + public void appEnvironmentTest() { + // TODO: test appEnvironment + } - /** - * Test the property 'modules' - */ - @Test - public void modulesTest() { - // TODO: test modules - } + /** + * Test the property 'modules' + */ + @Test + public void modulesTest() { + // TODO: test modules + } } diff --git a/src/test/java/com/formkiq/client/model/GetWebhookResponseTest.java b/src/test/java/com/formkiq/client/model/GetWebhookResponseTest.java index bc6ebfe3f..0c7ac6d1a 100644 --- a/src/test/java/com/formkiq/client/model/GetWebhookResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWebhookResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,78 +34,78 @@ * Model tests for GetWebhookResponse */ public class GetWebhookResponseTest { - private final GetWebhookResponse model = new GetWebhookResponse(); + private final GetWebhookResponse model = new GetWebhookResponse(); - /** - * Model tests for GetWebhookResponse - */ - @Test - public void testGetWebhookResponse() { - // TODO: test GetWebhookResponse - } + /** + * Model tests for GetWebhookResponse + */ + @Test + public void testGetWebhookResponse() { + // TODO: test GetWebhookResponse + } - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'url' - */ - @Test - public void urlTest() { - // TODO: test url - } + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'webhookId' - */ - @Test - public void webhookIdTest() { - // TODO: test webhookId - } + /** + * Test the property 'webhookId' + */ + @Test + public void webhookIdTest() { + // TODO: test webhookId + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'enabled' - */ - @Test - public void enabledTest() { - // TODO: test enabled - } + /** + * Test the property 'enabled' + */ + @Test + public void enabledTest() { + // TODO: test enabled + } - /** - * Test the property 'ttl' - */ - @Test - public void ttlTest() { - // TODO: test ttl - } + /** + * Test the property 'ttl' + */ + @Test + public void ttlTest() { + // TODO: test ttl + } } diff --git a/src/test/java/com/formkiq/client/model/GetWebhookTagsResponseTest.java b/src/test/java/com/formkiq/client/model/GetWebhookTagsResponseTest.java index 1af723620..179795797 100644 --- a/src/test/java/com/formkiq/client/model/GetWebhookTagsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWebhookTagsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,38 +37,38 @@ * Model tests for GetWebhookTagsResponse */ public class GetWebhookTagsResponseTest { - private final GetWebhookTagsResponse model = new GetWebhookTagsResponse(); + private final GetWebhookTagsResponse model = new GetWebhookTagsResponse(); - /** - * Model tests for GetWebhookTagsResponse - */ - @Test - public void testGetWebhookTagsResponse() { - // TODO: test GetWebhookTagsResponse - } + /** + * Model tests for GetWebhookTagsResponse + */ + @Test + public void testGetWebhookTagsResponse() { + // TODO: test GetWebhookTagsResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/GetWebhooksResponseTest.java b/src/test/java/com/formkiq/client/model/GetWebhooksResponseTest.java index 010eacb40..e16a9be0b 100644 --- a/src/test/java/com/formkiq/client/model/GetWebhooksResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWebhooksResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetWebhooksResponse */ public class GetWebhooksResponseTest { - private final GetWebhooksResponse model = new GetWebhooksResponse(); - - /** - * Model tests for GetWebhooksResponse - */ - @Test - public void testGetWebhooksResponse() { - // TODO: test GetWebhooksResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'webhooks' - */ - @Test - public void webhooksTest() { - // TODO: test webhooks - } + private final GetWebhooksResponse model = new GetWebhooksResponse(); + + /** + * Model tests for GetWebhooksResponse + */ + @Test + public void testGetWebhooksResponse() { + // TODO: test GetWebhooksResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'webhooks' + */ + @Test + public void webhooksTest() { + // TODO: test webhooks + } } diff --git a/src/test/java/com/formkiq/client/model/GetWorkflowDocumentsResponseTest.java b/src/test/java/com/formkiq/client/model/GetWorkflowDocumentsResponseTest.java index c9e2a883a..6ce000938 100644 --- a/src/test/java/com/formkiq/client/model/GetWorkflowDocumentsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWorkflowDocumentsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetWorkflowDocumentsResponse */ public class GetWorkflowDocumentsResponseTest { - private final GetWorkflowDocumentsResponse model = new GetWorkflowDocumentsResponse(); - - /** - * Model tests for GetWorkflowDocumentsResponse - */ - @Test - public void testGetWorkflowDocumentsResponse() { - // TODO: test GetWorkflowDocumentsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final GetWorkflowDocumentsResponse model = new GetWorkflowDocumentsResponse(); + + /** + * Model tests for GetWorkflowDocumentsResponse + */ + @Test + public void testGetWorkflowDocumentsResponse() { + // TODO: test GetWorkflowDocumentsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponseTest.java b/src/test/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponseTest.java index d020ae097..6815ce953 100644 --- a/src/test/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetWorkflowQueueDocumentsResponse */ public class GetWorkflowQueueDocumentsResponseTest { - private final GetWorkflowQueueDocumentsResponse model = new GetWorkflowQueueDocumentsResponse(); - - /** - * Model tests for GetWorkflowQueueDocumentsResponse - */ - @Test - public void testGetWorkflowQueueDocumentsResponse() { - // TODO: test GetWorkflowQueueDocumentsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final GetWorkflowQueueDocumentsResponse model = new GetWorkflowQueueDocumentsResponse(); + + /** + * Model tests for GetWorkflowQueueDocumentsResponse + */ + @Test + public void testGetWorkflowQueueDocumentsResponse() { + // TODO: test GetWorkflowQueueDocumentsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/GetWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/GetWorkflowResponseTest.java index a1701feea..e2e1b7f7a 100644 --- a/src/test/java/com/formkiq/client/model/GetWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWorkflowResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,54 +38,54 @@ * Model tests for GetWorkflowResponse */ public class GetWorkflowResponseTest { - private final GetWorkflowResponse model = new GetWorkflowResponse(); + private final GetWorkflowResponse model = new GetWorkflowResponse(); - /** - * Model tests for GetWorkflowResponse - */ - @Test - public void testGetWorkflowResponse() { - // TODO: test GetWorkflowResponse - } + /** + * Model tests for GetWorkflowResponse + */ + @Test + public void testGetWorkflowResponse() { + // TODO: test GetWorkflowResponse + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'inUse' - */ - @Test - public void inUseTest() { - // TODO: test inUse - } + /** + * Test the property 'inUse' + */ + @Test + public void inUseTest() { + // TODO: test inUse + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'steps' - */ - @Test - public void stepsTest() { - // TODO: test steps - } + /** + * Test the property 'steps' + */ + @Test + public void stepsTest() { + // TODO: test steps + } } diff --git a/src/test/java/com/formkiq/client/model/GetWorkflowsResponseTest.java b/src/test/java/com/formkiq/client/model/GetWorkflowsResponseTest.java index a74c5eb86..7e1208534 100644 --- a/src/test/java/com/formkiq/client/model/GetWorkflowsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/GetWorkflowsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for GetWorkflowsResponse */ public class GetWorkflowsResponseTest { - private final GetWorkflowsResponse model = new GetWorkflowsResponse(); - - /** - * Model tests for GetWorkflowsResponse - */ - @Test - public void testGetWorkflowsResponse() { - // TODO: test GetWorkflowsResponse - } - - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } - - /** - * Test the property 'workflows' - */ - @Test - public void workflowsTest() { - // TODO: test workflows - } + private final GetWorkflowsResponse model = new GetWorkflowsResponse(); + + /** + * Model tests for GetWorkflowsResponse + */ + @Test + public void testGetWorkflowsResponse() { + // TODO: test GetWorkflowsResponse + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'workflows' + */ + @Test + public void workflowsTest() { + // TODO: test workflows + } } diff --git a/src/test/java/com/formkiq/client/model/GoogleConfigTest.java b/src/test/java/com/formkiq/client/model/GoogleConfigTest.java index e80356567..773bce281 100644 --- a/src/test/java/com/formkiq/client/model/GoogleConfigTest.java +++ b/src/test/java/com/formkiq/client/model/GoogleConfigTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for GoogleConfig */ public class GoogleConfigTest { - private final GoogleConfig model = new GoogleConfig(); - - /** - * Model tests for GoogleConfig - */ - @Test - public void testGoogleConfig() { - // TODO: test GoogleConfig - } - - /** - * Test the property 'workloadIdentityAudience' - */ - @Test - public void workloadIdentityAudienceTest() { - // TODO: test workloadIdentityAudience - } - - /** - * Test the property 'workloadIdentityServiceAccount' - */ - @Test - public void workloadIdentityServiceAccountTest() { - // TODO: test workloadIdentityServiceAccount - } + private final GoogleConfig model = new GoogleConfig(); + + /** + * Model tests for GoogleConfig + */ + @Test + public void testGoogleConfig() { + // TODO: test GoogleConfig + } + + /** + * Test the property 'workloadIdentityAudience' + */ + @Test + public void workloadIdentityAudienceTest() { + // TODO: test workloadIdentityAudience + } + + /** + * Test the property 'workloadIdentityServiceAccount' + */ + @Test + public void workloadIdentityServiceAccountTest() { + // TODO: test workloadIdentityServiceAccount + } } diff --git a/src/test/java/com/formkiq/client/model/GoogleExportOutputTypeTest.java b/src/test/java/com/formkiq/client/model/GoogleExportOutputTypeTest.java index 897941b07..60764bbe7 100644 --- a/src/test/java/com/formkiq/client/model/GoogleExportOutputTypeTest.java +++ b/src/test/java/com/formkiq/client/model/GoogleExportOutputTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for GoogleExportOutputType */ public class GoogleExportOutputTypeTest { - /** - * Model tests for GoogleExportOutputType - */ - @Test - public void testGoogleExportOutputType() { - // TODO: test GoogleExportOutputType - } + /** + * Model tests for GoogleExportOutputType + */ + @Test + public void testGoogleExportOutputType() { + // TODO: test GoogleExportOutputType + } } diff --git a/src/test/java/com/formkiq/client/model/GroupTest.java b/src/test/java/com/formkiq/client/model/GroupTest.java index c8c2b933a..99e8a6af5 100644 --- a/src/test/java/com/formkiq/client/model/GroupTest.java +++ b/src/test/java/com/formkiq/client/model/GroupTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,46 +34,46 @@ * Model tests for Group */ public class GroupTest { - private final Group model = new Group(); + private final Group model = new Group(); - /** - * Model tests for Group - */ - @Test - public void testGroup() { - // TODO: test Group - } + /** + * Model tests for Group + */ + @Test + public void testGroup() { + // TODO: test Group + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } } diff --git a/src/test/java/com/formkiq/client/model/IndexFolderMoveRequestTest.java b/src/test/java/com/formkiq/client/model/IndexFolderMoveRequestTest.java index 973415216..9b636cbc3 100644 --- a/src/test/java/com/formkiq/client/model/IndexFolderMoveRequestTest.java +++ b/src/test/java/com/formkiq/client/model/IndexFolderMoveRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for IndexFolderMoveRequest */ public class IndexFolderMoveRequestTest { - private final IndexFolderMoveRequest model = new IndexFolderMoveRequest(); - - /** - * Model tests for IndexFolderMoveRequest - */ - @Test - public void testIndexFolderMoveRequest() { - // TODO: test IndexFolderMoveRequest - } - - /** - * Test the property 'source' - */ - @Test - public void sourceTest() { - // TODO: test source - } - - /** - * Test the property 'target' - */ - @Test - public void targetTest() { - // TODO: test target - } + private final IndexFolderMoveRequest model = new IndexFolderMoveRequest(); + + /** + * Model tests for IndexFolderMoveRequest + */ + @Test + public void testIndexFolderMoveRequest() { + // TODO: test IndexFolderMoveRequest + } + + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } } diff --git a/src/test/java/com/formkiq/client/model/IndexFolderMoveResponseTest.java b/src/test/java/com/formkiq/client/model/IndexFolderMoveResponseTest.java index 0fb81a48e..d9a3ffe5f 100644 --- a/src/test/java/com/formkiq/client/model/IndexFolderMoveResponseTest.java +++ b/src/test/java/com/formkiq/client/model/IndexFolderMoveResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for IndexFolderMoveResponse */ public class IndexFolderMoveResponseTest { - private final IndexFolderMoveResponse model = new IndexFolderMoveResponse(); + private final IndexFolderMoveResponse model = new IndexFolderMoveResponse(); - /** - * Model tests for IndexFolderMoveResponse - */ - @Test - public void testIndexFolderMoveResponse() { - // TODO: test IndexFolderMoveResponse - } + /** + * Model tests for IndexFolderMoveResponse + */ + @Test + public void testIndexFolderMoveResponse() { + // TODO: test IndexFolderMoveResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/IndexSearchRequestTest.java b/src/test/java/com/formkiq/client/model/IndexSearchRequestTest.java index 8ab0288bf..c43804cdc 100644 --- a/src/test/java/com/formkiq/client/model/IndexSearchRequestTest.java +++ b/src/test/java/com/formkiq/client/model/IndexSearchRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for IndexSearchRequest */ public class IndexSearchRequestTest { - private final IndexSearchRequest model = new IndexSearchRequest(); + private final IndexSearchRequest model = new IndexSearchRequest(); - /** - * Model tests for IndexSearchRequest - */ - @Test - public void testIndexSearchRequest() { - // TODO: test IndexSearchRequest - } + /** + * Model tests for IndexSearchRequest + */ + @Test + public void testIndexSearchRequest() { + // TODO: test IndexSearchRequest + } - /** - * Test the property 'indexType' - */ - @Test - public void indexTypeTest() { - // TODO: test indexType - } + /** + * Test the property 'indexType' + */ + @Test + public void indexTypeTest() { + // TODO: test indexType + } } diff --git a/src/test/java/com/formkiq/client/model/IndexSearchResponseTest.java b/src/test/java/com/formkiq/client/model/IndexSearchResponseTest.java index 7eae940f7..5cbc56c74 100644 --- a/src/test/java/com/formkiq/client/model/IndexSearchResponseTest.java +++ b/src/test/java/com/formkiq/client/model/IndexSearchResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,38 +37,38 @@ * Model tests for IndexSearchResponse */ public class IndexSearchResponseTest { - private final IndexSearchResponse model = new IndexSearchResponse(); + private final IndexSearchResponse model = new IndexSearchResponse(); - /** - * Model tests for IndexSearchResponse - */ - @Test - public void testIndexSearchResponse() { - // TODO: test IndexSearchResponse - } + /** + * Model tests for IndexSearchResponse + */ + @Test + public void testIndexSearchResponse() { + // TODO: test IndexSearchResponse + } - /** - * Test the property 'next' - */ - @Test - public void nextTest() { - // TODO: test next - } + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } - /** - * Test the property 'previous' - */ - @Test - public void previousTest() { - // TODO: test previous - } + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/IndexSearchTest.java b/src/test/java/com/formkiq/client/model/IndexSearchTest.java index c98dc0970..74a4cff0b 100644 --- a/src/test/java/com/formkiq/client/model/IndexSearchTest.java +++ b/src/test/java/com/formkiq/client/model/IndexSearchTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for IndexSearch */ public class IndexSearchTest { - private final IndexSearch model = new IndexSearch(); + private final IndexSearch model = new IndexSearch(); - /** - * Model tests for IndexSearch - */ - @Test - public void testIndexSearch() { - // TODO: test IndexSearch - } + /** + * Model tests for IndexSearch + */ + @Test + public void testIndexSearch() { + // TODO: test IndexSearch + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } } diff --git a/src/test/java/com/formkiq/client/model/LocaleInfoTest.java b/src/test/java/com/formkiq/client/model/LocaleInfoTest.java index 1d19c3363..58b03d310 100644 --- a/src/test/java/com/formkiq/client/model/LocaleInfoTest.java +++ b/src/test/java/com/formkiq/client/model/LocaleInfoTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for LocaleInfo */ public class LocaleInfoTest { - private final LocaleInfo model = new LocaleInfo(); + private final LocaleInfo model = new LocaleInfo(); - /** - * Model tests for LocaleInfo - */ - @Test - public void testLocaleInfo() { - // TODO: test LocaleInfo - } + /** + * Model tests for LocaleInfo + */ + @Test + public void testLocaleInfo() { + // TODO: test LocaleInfo + } - /** - * Test the property 'locale' - */ - @Test - public void localeTest() { - // TODO: test locale - } + /** + * Test the property 'locale' + */ + @Test + public void localeTest() { + // TODO: test locale + } } diff --git a/src/test/java/com/formkiq/client/model/LocaleResourceTypeTest.java b/src/test/java/com/formkiq/client/model/LocaleResourceTypeTest.java index 456a8e159..731d8c175 100644 --- a/src/test/java/com/formkiq/client/model/LocaleResourceTypeTest.java +++ b/src/test/java/com/formkiq/client/model/LocaleResourceTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for LocaleResourceType */ public class LocaleResourceTypeTest { - /** - * Model tests for LocaleResourceType - */ - @Test - public void testLocaleResourceType() { - // TODO: test LocaleResourceType - } + /** + * Model tests for LocaleResourceType + */ + @Test + public void testLocaleResourceType() { + // TODO: test LocaleResourceType + } } diff --git a/src/test/java/com/formkiq/client/model/MalwareEngineTest.java b/src/test/java/com/formkiq/client/model/MalwareEngineTest.java index 536de1682..daa91fb7e 100644 --- a/src/test/java/com/formkiq/client/model/MalwareEngineTest.java +++ b/src/test/java/com/formkiq/client/model/MalwareEngineTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for MalwareEngine */ public class MalwareEngineTest { - /** - * Model tests for MalwareEngine - */ - @Test - public void testMalwareEngine() { - // TODO: test MalwareEngine - } + /** + * Model tests for MalwareEngine + */ + @Test + public void testMalwareEngine() { + // TODO: test MalwareEngine + } } diff --git a/src/test/java/com/formkiq/client/model/MalwareScanResultTest.java b/src/test/java/com/formkiq/client/model/MalwareScanResultTest.java index 022764757..5f3742f72 100644 --- a/src/test/java/com/formkiq/client/model/MalwareScanResultTest.java +++ b/src/test/java/com/formkiq/client/model/MalwareScanResultTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,54 +36,54 @@ * Model tests for MalwareScanResult */ public class MalwareScanResultTest { - private final MalwareScanResult model = new MalwareScanResult(); + private final MalwareScanResult model = new MalwareScanResult(); - /** - * Model tests for MalwareScanResult - */ - @Test - public void testMalwareScanResult() { - // TODO: test MalwareScanResult - } + /** + * Model tests for MalwareScanResult + */ + @Test + public void testMalwareScanResult() { + // TODO: test MalwareScanResult + } - /** - * Test the property 'scanStatus' - */ - @Test - public void scanStatusTest() { - // TODO: test scanStatus - } + /** + * Test the property 'scanStatus' + */ + @Test + public void scanStatusTest() { + // TODO: test scanStatus + } - /** - * Test the property 'scanEngine' - */ - @Test - public void scanEngineTest() { - // TODO: test scanEngine - } + /** + * Test the property 'scanEngine' + */ + @Test + public void scanEngineTest() { + // TODO: test scanEngine + } - /** - * Test the property 's3version' - */ - @Test - public void s3versionTest() { - // TODO: test s3version - } + /** + * Test the property 's3version' + */ + @Test + public void s3versionTest() { + // TODO: test s3version + } - /** - * Test the property 'scanMessage' - */ - @Test - public void scanMessageTest() { - // TODO: test scanMessage - } + /** + * Test the property 'scanMessage' + */ + @Test + public void scanMessageTest() { + // TODO: test scanMessage + } - /** - * Test the property 'scannedDate' - */ - @Test - public void scannedDateTest() { - // TODO: test scannedDate - } + /** + * Test the property 'scannedDate' + */ + @Test + public void scannedDateTest() { + // TODO: test scannedDate + } } diff --git a/src/test/java/com/formkiq/client/model/MalwareScanStatusTest.java b/src/test/java/com/formkiq/client/model/MalwareScanStatusTest.java index a3b34866c..3a58b1085 100644 --- a/src/test/java/com/formkiq/client/model/MalwareScanStatusTest.java +++ b/src/test/java/com/formkiq/client/model/MalwareScanStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for MalwareScanStatus */ public class MalwareScanStatusTest { - /** - * Model tests for MalwareScanStatus - */ - @Test - public void testMalwareScanStatus() { - // TODO: test MalwareScanStatus - } + /** + * Model tests for MalwareScanStatus + */ + @Test + public void testMalwareScanStatus() { + // TODO: test MalwareScanStatus + } } diff --git a/src/test/java/com/formkiq/client/model/MappingAttributeLabelMatchingTypeTest.java b/src/test/java/com/formkiq/client/model/MappingAttributeLabelMatchingTypeTest.java index 16efc9c7a..417e53ce7 100644 --- a/src/test/java/com/formkiq/client/model/MappingAttributeLabelMatchingTypeTest.java +++ b/src/test/java/com/formkiq/client/model/MappingAttributeLabelMatchingTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for MappingAttributeLabelMatchingType */ public class MappingAttributeLabelMatchingTypeTest { - /** - * Model tests for MappingAttributeLabelMatchingType - */ - @Test - public void testMappingAttributeLabelMatchingType() { - // TODO: test MappingAttributeLabelMatchingType - } + /** + * Model tests for MappingAttributeLabelMatchingType + */ + @Test + public void testMappingAttributeLabelMatchingType() { + // TODO: test MappingAttributeLabelMatchingType + } } diff --git a/src/test/java/com/formkiq/client/model/MappingAttributeMetadataFieldTest.java b/src/test/java/com/formkiq/client/model/MappingAttributeMetadataFieldTest.java index 0dc976313..9390952af 100644 --- a/src/test/java/com/formkiq/client/model/MappingAttributeMetadataFieldTest.java +++ b/src/test/java/com/formkiq/client/model/MappingAttributeMetadataFieldTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for MappingAttributeMetadataField */ public class MappingAttributeMetadataFieldTest { - /** - * Model tests for MappingAttributeMetadataField - */ - @Test - public void testMappingAttributeMetadataField() { - // TODO: test MappingAttributeMetadataField - } + /** + * Model tests for MappingAttributeMetadataField + */ + @Test + public void testMappingAttributeMetadataField() { + // TODO: test MappingAttributeMetadataField + } } diff --git a/src/test/java/com/formkiq/client/model/MappingAttributeSourceTypeTest.java b/src/test/java/com/formkiq/client/model/MappingAttributeSourceTypeTest.java index 92bf5d01e..6cc75b6c6 100644 --- a/src/test/java/com/formkiq/client/model/MappingAttributeSourceTypeTest.java +++ b/src/test/java/com/formkiq/client/model/MappingAttributeSourceTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for MappingAttributeSourceType */ public class MappingAttributeSourceTypeTest { - /** - * Model tests for MappingAttributeSourceType - */ - @Test - public void testMappingAttributeSourceType() { - // TODO: test MappingAttributeSourceType - } + /** + * Model tests for MappingAttributeSourceType + */ + @Test + public void testMappingAttributeSourceType() { + // TODO: test MappingAttributeSourceType + } } diff --git a/src/test/java/com/formkiq/client/model/MappingAttributeTest.java b/src/test/java/com/formkiq/client/model/MappingAttributeTest.java index 625164703..3c86be0f8 100644 --- a/src/test/java/com/formkiq/client/model/MappingAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/MappingAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,78 +39,78 @@ * Model tests for MappingAttribute */ public class MappingAttributeTest { - private final MappingAttribute model = new MappingAttribute(); + private final MappingAttribute model = new MappingAttribute(); - /** - * Model tests for MappingAttribute - */ - @Test - public void testMappingAttribute() { - // TODO: test MappingAttribute - } + /** + * Model tests for MappingAttribute + */ + @Test + public void testMappingAttribute() { + // TODO: test MappingAttribute + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'sourceType' - */ - @Test - public void sourceTypeTest() { - // TODO: test sourceType - } + /** + * Test the property 'sourceType' + */ + @Test + public void sourceTypeTest() { + // TODO: test sourceType + } - /** - * Test the property 'defaultValue' - */ - @Test - public void defaultValueTest() { - // TODO: test defaultValue - } + /** + * Test the property 'defaultValue' + */ + @Test + public void defaultValueTest() { + // TODO: test defaultValue + } - /** - * Test the property 'defaultValues' - */ - @Test - public void defaultValuesTest() { - // TODO: test defaultValues - } + /** + * Test the property 'defaultValues' + */ + @Test + public void defaultValuesTest() { + // TODO: test defaultValues + } - /** - * Test the property 'labelTexts' - */ - @Test - public void labelTextsTest() { - // TODO: test labelTexts - } + /** + * Test the property 'labelTexts' + */ + @Test + public void labelTextsTest() { + // TODO: test labelTexts + } - /** - * Test the property 'labelMatchingType' - */ - @Test - public void labelMatchingTypeTest() { - // TODO: test labelMatchingType - } + /** + * Test the property 'labelMatchingType' + */ + @Test + public void labelMatchingTypeTest() { + // TODO: test labelMatchingType + } - /** - * Test the property 'metadataField' - */ - @Test - public void metadataFieldTest() { - // TODO: test metadataField - } + /** + * Test the property 'metadataField' + */ + @Test + public void metadataFieldTest() { + // TODO: test metadataField + } - /** - * Test the property 'validationRegex' - */ - @Test - public void validationRegexTest() { - // TODO: test validationRegex - } + /** + * Test the property 'validationRegex' + */ + @Test + public void validationRegexTest() { + // TODO: test validationRegex + } } diff --git a/src/test/java/com/formkiq/client/model/MappingTest.java b/src/test/java/com/formkiq/client/model/MappingTest.java index cefd4e4ec..85f6f5720 100644 --- a/src/test/java/com/formkiq/client/model/MappingTest.java +++ b/src/test/java/com/formkiq/client/model/MappingTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,46 +37,46 @@ * Model tests for Mapping */ public class MappingTest { - private final Mapping model = new Mapping(); + private final Mapping model = new Mapping(); - /** - * Model tests for Mapping - */ - @Test - public void testMapping() { - // TODO: test Mapping - } + /** + * Model tests for Mapping + */ + @Test + public void testMapping() { + // TODO: test Mapping + } - /** - * Test the property 'mappingId' - */ - @Test - public void mappingIdTest() { - // TODO: test mappingId - } + /** + * Test the property 'mappingId' + */ + @Test + public void mappingIdTest() { + // TODO: test mappingId + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/MatchDocumentTagTest.java b/src/test/java/com/formkiq/client/model/MatchDocumentTagTest.java index a1ea4ec97..ffebdb18e 100644 --- a/src/test/java/com/formkiq/client/model/MatchDocumentTagTest.java +++ b/src/test/java/com/formkiq/client/model/MatchDocumentTagTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,38 +34,38 @@ * Model tests for MatchDocumentTag */ public class MatchDocumentTagTest { - private final MatchDocumentTag model = new MatchDocumentTag(); + private final MatchDocumentTag model = new MatchDocumentTag(); - /** - * Model tests for MatchDocumentTag - */ - @Test - public void testMatchDocumentTag() { - // TODO: test MatchDocumentTag - } + /** + * Model tests for MatchDocumentTag + */ + @Test + public void testMatchDocumentTag() { + // TODO: test MatchDocumentTag + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'beginsWith' - */ - @Test - public void beginsWithTest() { - // TODO: test beginsWith - } + /** + * Test the property 'beginsWith' + */ + @Test + public void beginsWithTest() { + // TODO: test beginsWith + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } } diff --git a/src/test/java/com/formkiq/client/model/ModelCaseTest.java b/src/test/java/com/formkiq/client/model/ModelCaseTest.java index d119b797f..0e057b6c7 100644 --- a/src/test/java/com/formkiq/client/model/ModelCaseTest.java +++ b/src/test/java/com/formkiq/client/model/ModelCaseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,118 +37,118 @@ * Model tests for ModelCase */ public class ModelCaseTest { - private final ModelCase model = new ModelCase(); - - /** - * Model tests for ModelCase - */ - @Test - public void testModelCase() { - // TODO: test ModelCase - } - - /** - * Test the property 'caseId' - */ - @Test - public void caseIdTest() { - // TODO: test caseId - } - - /** - * Test the property 'caseNumber' - */ - @Test - public void caseNumberTest() { - // TODO: test caseNumber - } - - /** - * Test the property 'documentNumber' - */ - @Test - public void documentNumberTest() { - // TODO: test documentNumber - } - - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } - - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } - - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } - - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + private final ModelCase model = new ModelCase(); + + /** + * Model tests for ModelCase + */ + @Test + public void testModelCase() { + // TODO: test ModelCase + } + + /** + * Test the property 'caseId' + */ + @Test + public void caseIdTest() { + // TODO: test caseId + } + + /** + * Test the property 'caseNumber' + */ + @Test + public void caseNumberTest() { + // TODO: test caseNumber + } + + /** + * Test the property 'documentNumber' + */ + @Test + public void documentNumberTest() { + // TODO: test documentNumber + } + + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } + + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } } diff --git a/src/test/java/com/formkiq/client/model/NigoStatusTest.java b/src/test/java/com/formkiq/client/model/NigoStatusTest.java index 3ecb65b12..17dd53318 100644 --- a/src/test/java/com/formkiq/client/model/NigoStatusTest.java +++ b/src/test/java/com/formkiq/client/model/NigoStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for NigoStatus */ public class NigoStatusTest { - /** - * Model tests for NigoStatus - */ - @Test - public void testNigoStatus() { - // TODO: test NigoStatus - } + /** + * Model tests for NigoStatus + */ + @Test + public void testNigoStatus() { + // TODO: test NigoStatus + } } diff --git a/src/test/java/com/formkiq/client/model/NigoTest.java b/src/test/java/com/formkiq/client/model/NigoTest.java index c44d76166..e36e531c1 100644 --- a/src/test/java/com/formkiq/client/model/NigoTest.java +++ b/src/test/java/com/formkiq/client/model/NigoTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,102 +37,102 @@ * Model tests for Nigo */ public class NigoTest { - private final Nigo model = new Nigo(); - - /** - * Model tests for Nigo - */ - @Test - public void testNigo() { - // TODO: test Nigo - } - - /** - * Test the property 'nigoId' - */ - @Test - public void nigoIdTest() { - // TODO: test nigoId - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } - - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } - - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } - - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final Nigo model = new Nigo(); + + /** + * Model tests for Nigo + */ + @Test + public void testNigo() { + // TODO: test Nigo + } + + /** + * Test the property 'nigoId' + */ + @Test + public void nigoIdTest() { + // TODO: test nigoId + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } + + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/OcrConfigTest.java b/src/test/java/com/formkiq/client/model/OcrConfigTest.java index 35a9b5f16..ed1e8dc58 100644 --- a/src/test/java/com/formkiq/client/model/OcrConfigTest.java +++ b/src/test/java/com/formkiq/client/model/OcrConfigTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for OcrConfig */ public class OcrConfigTest { - private final OcrConfig model = new OcrConfig(); - - /** - * Model tests for OcrConfig - */ - @Test - public void testOcrConfig() { - // TODO: test OcrConfig - } - - /** - * Test the property 'maxPagesPerTransaction' - */ - @Test - public void maxPagesPerTransactionTest() { - // TODO: test maxPagesPerTransaction - } - - /** - * Test the property 'maxTransactions' - */ - @Test - public void maxTransactionsTest() { - // TODO: test maxTransactions - } + private final OcrConfig model = new OcrConfig(); + + /** + * Model tests for OcrConfig + */ + @Test + public void testOcrConfig() { + // TODO: test OcrConfig + } + + /** + * Test the property 'maxPagesPerTransaction' + */ + @Test + public void maxPagesPerTransactionTest() { + // TODO: test maxPagesPerTransaction + } + + /** + * Test the property 'maxTransactions' + */ + @Test + public void maxTransactionsTest() { + // TODO: test maxTransactions + } } diff --git a/src/test/java/com/formkiq/client/model/OcrEngineTest.java b/src/test/java/com/formkiq/client/model/OcrEngineTest.java index 138841ecd..41de58510 100644 --- a/src/test/java/com/formkiq/client/model/OcrEngineTest.java +++ b/src/test/java/com/formkiq/client/model/OcrEngineTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for OcrEngine */ public class OcrEngineTest { - /** - * Model tests for OcrEngine - */ - @Test - public void testOcrEngine() { - // TODO: test OcrEngine - } + /** + * Model tests for OcrEngine + */ + @Test + public void testOcrEngine() { + // TODO: test OcrEngine + } } diff --git a/src/test/java/com/formkiq/client/model/OcrKeyValuesTest.java b/src/test/java/com/formkiq/client/model/OcrKeyValuesTest.java index 4d3239a33..7bb39dd44 100644 --- a/src/test/java/com/formkiq/client/model/OcrKeyValuesTest.java +++ b/src/test/java/com/formkiq/client/model/OcrKeyValuesTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for OcrKeyValues */ public class OcrKeyValuesTest { - private final OcrKeyValues model = new OcrKeyValues(); - - /** - * Model tests for OcrKeyValues - */ - @Test - public void testOcrKeyValues() { - // TODO: test OcrKeyValues - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + private final OcrKeyValues model = new OcrKeyValues(); + + /** + * Model tests for OcrKeyValues + */ + @Test + public void testOcrKeyValues() { + // TODO: test OcrKeyValues + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/OcrOutputTypeTest.java b/src/test/java/com/formkiq/client/model/OcrOutputTypeTest.java index e5b7d4e69..09743b2db 100644 --- a/src/test/java/com/formkiq/client/model/OcrOutputTypeTest.java +++ b/src/test/java/com/formkiq/client/model/OcrOutputTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for OcrOutputType */ public class OcrOutputTypeTest { - /** - * Model tests for OcrOutputType - */ - @Test - public void testOcrOutputType() { - // TODO: test OcrOutputType - } + /** + * Model tests for OcrOutputType + */ + @Test + public void testOcrOutputType() { + // TODO: test OcrOutputType + } } diff --git a/src/test/java/com/formkiq/client/model/OcrTableDataTest.java b/src/test/java/com/formkiq/client/model/OcrTableDataTest.java index dd66660ec..446e14164 100644 --- a/src/test/java/com/formkiq/client/model/OcrTableDataTest.java +++ b/src/test/java/com/formkiq/client/model/OcrTableDataTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for OcrTableData */ public class OcrTableDataTest { - private final OcrTableData model = new OcrTableData(); + private final OcrTableData model = new OcrTableData(); - /** - * Model tests for OcrTableData - */ - @Test - public void testOcrTableData() { - // TODO: test OcrTableData - } + /** + * Model tests for OcrTableData + */ + @Test + public void testOcrTableData() { + // TODO: test OcrTableData + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } } diff --git a/src/test/java/com/formkiq/client/model/OcrTableTest.java b/src/test/java/com/formkiq/client/model/OcrTableTest.java index 63aca82fd..fa39941e5 100644 --- a/src/test/java/com/formkiq/client/model/OcrTableTest.java +++ b/src/test/java/com/formkiq/client/model/OcrTableTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for OcrTable */ public class OcrTableTest { - private final OcrTable model = new OcrTable(); - - /** - * Model tests for OcrTable - */ - @Test - public void testOcrTable() { - // TODO: test OcrTable - } - - /** - * Test the property 'headers' - */ - @Test - public void headersTest() { - // TODO: test headers - } - - /** - * Test the property 'data' - */ - @Test - public void dataTest() { - // TODO: test data - } + private final OcrTable model = new OcrTable(); + + /** + * Model tests for OcrTable + */ + @Test + public void testOcrTable() { + // TODO: test OcrTable + } + + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeEqTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeEqTest.java index eecbe875d..a44975487 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeEqTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeEqTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,46 +36,46 @@ * Model tests for OpaPolicyAttributeEq */ public class OpaPolicyAttributeEqTest { - private final OpaPolicyAttributeEq model = new OpaPolicyAttributeEq(); + private final OpaPolicyAttributeEq model = new OpaPolicyAttributeEq(); - /** - * Model tests for OpaPolicyAttributeEq - */ - @Test - public void testOpaPolicyAttributeEq() { - // TODO: test OpaPolicyAttributeEq - } + /** + * Model tests for OpaPolicyAttributeEq + */ + @Test + public void testOpaPolicyAttributeEq() { + // TODO: test OpaPolicyAttributeEq + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } - /** - * Test the property 'input' - */ - @Test - public void inputTest() { - // TODO: test input - } + /** + * Test the property 'input' + */ + @Test + public void inputTest() { + // TODO: test input + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGtTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGtTest.java index 7e974ed99..78193739c 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGtTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGtTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for OpaPolicyAttributeGt */ public class OpaPolicyAttributeGtTest { - private final OpaPolicyAttributeGt model = new OpaPolicyAttributeGt(); + private final OpaPolicyAttributeGt model = new OpaPolicyAttributeGt(); - /** - * Model tests for OpaPolicyAttributeGt - */ - @Test - public void testOpaPolicyAttributeGt() { - // TODO: test OpaPolicyAttributeGt - } + /** + * Model tests for OpaPolicyAttributeGt + */ + @Test + public void testOpaPolicyAttributeGt() { + // TODO: test OpaPolicyAttributeGt + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGteTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGteTest.java index 0220c5ea1..12651f7ad 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGteTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeGteTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for OpaPolicyAttributeGte */ public class OpaPolicyAttributeGteTest { - private final OpaPolicyAttributeGte model = new OpaPolicyAttributeGte(); + private final OpaPolicyAttributeGte model = new OpaPolicyAttributeGte(); - /** - * Model tests for OpaPolicyAttributeGte - */ - @Test - public void testOpaPolicyAttributeGte() { - // TODO: test OpaPolicyAttributeGte - } + /** + * Model tests for OpaPolicyAttributeGte + */ + @Test + public void testOpaPolicyAttributeGte() { + // TODO: test OpaPolicyAttributeGte + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInTest.java index 6d6621343..7dd55b271 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,22 +36,22 @@ * Model tests for OpaPolicyAttributeIn */ public class OpaPolicyAttributeInTest { - private final OpaPolicyAttributeIn model = new OpaPolicyAttributeIn(); + private final OpaPolicyAttributeIn model = new OpaPolicyAttributeIn(); - /** - * Model tests for OpaPolicyAttributeIn - */ - @Test - public void testOpaPolicyAttributeIn() { - // TODO: test OpaPolicyAttributeIn - } + /** + * Model tests for OpaPolicyAttributeIn + */ + @Test + public void testOpaPolicyAttributeIn() { + // TODO: test OpaPolicyAttributeIn + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInputTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInputTest.java index ec6826911..100eb1c44 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInputTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeInputTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for OpaPolicyAttributeInput */ public class OpaPolicyAttributeInputTest { - private final OpaPolicyAttributeInput model = new OpaPolicyAttributeInput(); + private final OpaPolicyAttributeInput model = new OpaPolicyAttributeInput(); - /** - * Model tests for OpaPolicyAttributeInput - */ - @Test - public void testOpaPolicyAttributeInput() { - // TODO: test OpaPolicyAttributeInput - } + /** + * Model tests for OpaPolicyAttributeInput + */ + @Test + public void testOpaPolicyAttributeInput() { + // TODO: test OpaPolicyAttributeInput + } - /** - * Test the property 'matchUsername' - */ - @Test - public void matchUsernameTest() { - // TODO: test matchUsername - } + /** + * Test the property 'matchUsername' + */ + @Test + public void matchUsernameTest() { + // TODO: test matchUsername + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLtTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLtTest.java index a67e53f16..0de314ea8 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLtTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLtTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for OpaPolicyAttributeLt */ public class OpaPolicyAttributeLtTest { - private final OpaPolicyAttributeLt model = new OpaPolicyAttributeLt(); + private final OpaPolicyAttributeLt model = new OpaPolicyAttributeLt(); - /** - * Model tests for OpaPolicyAttributeLt - */ - @Test - public void testOpaPolicyAttributeLt() { - // TODO: test OpaPolicyAttributeLt - } + /** + * Model tests for OpaPolicyAttributeLt + */ + @Test + public void testOpaPolicyAttributeLt() { + // TODO: test OpaPolicyAttributeLt + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLteTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLteTest.java index 13492c0dc..b02b599c0 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLteTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeLteTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for OpaPolicyAttributeLte */ public class OpaPolicyAttributeLteTest { - private final OpaPolicyAttributeLte model = new OpaPolicyAttributeLte(); + private final OpaPolicyAttributeLte model = new OpaPolicyAttributeLte(); - /** - * Model tests for OpaPolicyAttributeLte - */ - @Test - public void testOpaPolicyAttributeLte() { - // TODO: test OpaPolicyAttributeLte - } + /** + * Model tests for OpaPolicyAttributeLte + */ + @Test + public void testOpaPolicyAttributeLte() { + // TODO: test OpaPolicyAttributeLte + } - /** - * Test the property 'numberValue' - */ - @Test - public void numberValueTest() { - // TODO: test numberValue - } + /** + * Test the property 'numberValue' + */ + @Test + public void numberValueTest() { + // TODO: test numberValue + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNeqTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNeqTest.java index b7099e014..6d4942990 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNeqTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNeqTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for OpaPolicyAttributeNeq */ public class OpaPolicyAttributeNeqTest { - private final OpaPolicyAttributeNeq model = new OpaPolicyAttributeNeq(); + private final OpaPolicyAttributeNeq model = new OpaPolicyAttributeNeq(); - /** - * Model tests for OpaPolicyAttributeNeq - */ - @Test - public void testOpaPolicyAttributeNeq() { - // TODO: test OpaPolicyAttributeNeq - } + /** + * Model tests for OpaPolicyAttributeNeq + */ + @Test + public void testOpaPolicyAttributeNeq() { + // TODO: test OpaPolicyAttributeNeq + } - /** - * Test the property 'stringValue' - */ - @Test - public void stringValueTest() { - // TODO: test stringValue - } + /** + * Test the property 'stringValue' + */ + @Test + public void stringValueTest() { + // TODO: test stringValue + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNotInTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNotInTest.java index df71325e0..7823d261a 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNotInTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeNotInTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,22 +36,22 @@ * Model tests for OpaPolicyAttributeNotIn */ public class OpaPolicyAttributeNotInTest { - private final OpaPolicyAttributeNotIn model = new OpaPolicyAttributeNotIn(); + private final OpaPolicyAttributeNotIn model = new OpaPolicyAttributeNotIn(); - /** - * Model tests for OpaPolicyAttributeNotIn - */ - @Test - public void testOpaPolicyAttributeNotIn() { - // TODO: test OpaPolicyAttributeNotIn - } + /** + * Model tests for OpaPolicyAttributeNotIn + */ + @Test + public void testOpaPolicyAttributeNotIn() { + // TODO: test OpaPolicyAttributeNotIn + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeTest.java index e54c45794..635841000 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -35,86 +42,86 @@ * Model tests for OpaPolicyAttribute */ public class OpaPolicyAttributeTest { - private final OpaPolicyAttribute model = new OpaPolicyAttribute(); + private final OpaPolicyAttribute model = new OpaPolicyAttribute(); - /** - * Model tests for OpaPolicyAttribute - */ - @Test - public void testOpaPolicyAttribute() { - // TODO: test OpaPolicyAttribute - } + /** + * Model tests for OpaPolicyAttribute + */ + @Test + public void testOpaPolicyAttribute() { + // TODO: test OpaPolicyAttribute + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } - /** - * Test the property 'eq' - */ - @Test - public void eqTest() { - // TODO: test eq - } + /** + * Test the property 'eq' + */ + @Test + public void eqTest() { + // TODO: test eq + } - /** - * Test the property 'gt' - */ - @Test - public void gtTest() { - // TODO: test gt - } + /** + * Test the property 'gt' + */ + @Test + public void gtTest() { + // TODO: test gt + } - /** - * Test the property 'gte' - */ - @Test - public void gteTest() { - // TODO: test gte - } + /** + * Test the property 'gte' + */ + @Test + public void gteTest() { + // TODO: test gte + } - /** - * Test the property 'lt' - */ - @Test - public void ltTest() { - // TODO: test lt - } + /** + * Test the property 'lt' + */ + @Test + public void ltTest() { + // TODO: test lt + } - /** - * Test the property 'lte' - */ - @Test - public void lteTest() { - // TODO: test lte - } + /** + * Test the property 'lte' + */ + @Test + public void lteTest() { + // TODO: test lte + } - /** - * Test the property 'neq' - */ - @Test - public void neqTest() { - // TODO: test neq - } + /** + * Test the property 'neq' + */ + @Test + public void neqTest() { + // TODO: test neq + } - /** - * Test the property 'in' - */ - @Test - public void inTest() { - // TODO: test in - } + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } - /** - * Test the property 'notIn' - */ - @Test - public void notInTest() { - // TODO: test notIn - } + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyInputMethodTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyInputMethodTest.java index 0b05a7012..2feef241a 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyInputMethodTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyInputMethodTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for OpaPolicyInputMethod */ public class OpaPolicyInputMethodTest { - private final OpaPolicyInputMethod model = new OpaPolicyInputMethod(); - - /** - * Model tests for OpaPolicyInputMethod - */ - @Test - public void testOpaPolicyInputMethod() { - // TODO: test OpaPolicyInputMethod - } - - /** - * Test the property 'in' - */ - @Test - public void inTest() { - // TODO: test in - } - - /** - * Test the property 'notIn' - */ - @Test - public void notInTest() { - // TODO: test notIn - } + private final OpaPolicyInputMethod model = new OpaPolicyInputMethod(); + + /** + * Model tests for OpaPolicyInputMethod + */ + @Test + public void testOpaPolicyInputMethod() { + // TODO: test OpaPolicyInputMethod + } + + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } + + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyInputResourceTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyInputResourceTest.java index a6e394524..100d03808 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyInputResourceTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyInputResourceTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for OpaPolicyInputResource */ public class OpaPolicyInputResourceTest { - private final OpaPolicyInputResource model = new OpaPolicyInputResource(); - - /** - * Model tests for OpaPolicyInputResource - */ - @Test - public void testOpaPolicyInputResource() { - // TODO: test OpaPolicyInputResource - } - - /** - * Test the property 'in' - */ - @Test - public void inTest() { - // TODO: test in - } - - /** - * Test the property 'notIn' - */ - @Test - public void notInTest() { - // TODO: test notIn - } + private final OpaPolicyInputResource model = new OpaPolicyInputResource(); + + /** + * Model tests for OpaPolicyInputResource + */ + @Test + public void testOpaPolicyInputResource() { + // TODO: test OpaPolicyInputResource + } + + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } + + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyInputTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyInputTest.java index 4142f7926..d1562eb10 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyInputTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyInputTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for OpaPolicyInput */ public class OpaPolicyInputTest { - private final OpaPolicyInput model = new OpaPolicyInput(); - - /** - * Model tests for OpaPolicyInput - */ - @Test - public void testOpaPolicyInput() { - // TODO: test OpaPolicyInput - } - - /** - * Test the property 'httpMethod' - */ - @Test - public void httpMethodTest() { - // TODO: test httpMethod - } - - /** - * Test the property 'resource' - */ - @Test - public void resourceTest() { - // TODO: test resource - } + private final OpaPolicyInput model = new OpaPolicyInput(); + + /** + * Model tests for OpaPolicyInput + */ + @Test + public void testOpaPolicyInput() { + // TODO: test OpaPolicyInput + } + + /** + * Test the property 'httpMethod' + */ + @Test + public void httpMethodTest() { + // TODO: test httpMethod + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyItemTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyItemTest.java index aef4a414e..d7da16c2b 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyItemTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyItemTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,62 +38,62 @@ * Model tests for OpaPolicyItem */ public class OpaPolicyItemTest { - private final OpaPolicyItem model = new OpaPolicyItem(); + private final OpaPolicyItem model = new OpaPolicyItem(); - /** - * Model tests for OpaPolicyItem - */ - @Test - public void testOpaPolicyItem() { - // TODO: test OpaPolicyItem - } + /** + * Model tests for OpaPolicyItem + */ + @Test + public void testOpaPolicyItem() { + // TODO: test OpaPolicyItem + } - /** - * Test the property 'policy' - */ - @Test - public void policyTest() { - // TODO: test policy - } + /** + * Test the property 'policy' + */ + @Test + public void policyTest() { + // TODO: test policy + } - /** - * Test the property 'allRoles' - */ - @Test - public void allRolesTest() { - // TODO: test allRoles - } + /** + * Test the property 'allRoles' + */ + @Test + public void allRolesTest() { + // TODO: test allRoles + } - /** - * Test the property 'anyRoles' - */ - @Test - public void anyRolesTest() { - // TODO: test anyRoles - } + /** + * Test the property 'anyRoles' + */ + @Test + public void anyRolesTest() { + // TODO: test anyRoles + } - /** - * Test the property 'excludedRoles' - */ - @Test - public void excludedRolesTest() { - // TODO: test excludedRoles - } + /** + * Test the property 'excludedRoles' + */ + @Test + public void excludedRolesTest() { + // TODO: test excludedRoles + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } - /** - * Test the property 'input' - */ - @Test - public void inputTest() { - // TODO: test input - } + /** + * Test the property 'input' + */ + @Test + public void inputTest() { + // TODO: test input + } } diff --git a/src/test/java/com/formkiq/client/model/OpaPolicyTest.java b/src/test/java/com/formkiq/client/model/OpaPolicyTest.java index 214983e3a..6b45cc089 100644 --- a/src/test/java/com/formkiq/client/model/OpaPolicyTest.java +++ b/src/test/java/com/formkiq/client/model/OpaPolicyTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for OpaPolicy */ public class OpaPolicyTest { - private final OpaPolicy model = new OpaPolicy(); - - /** - * Model tests for OpaPolicy - */ - @Test - public void testOpaPolicy() { - // TODO: test OpaPolicy - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'policy' - */ - @Test - public void policyTest() { - // TODO: test policy - } + private final OpaPolicy model = new OpaPolicy(); + + /** + * Model tests for OpaPolicy + */ + @Test + public void testOpaPolicy() { + // TODO: test OpaPolicy + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'policy' + */ + @Test + public void policyTest() { + // TODO: test policy + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchAliasTest.java b/src/test/java/com/formkiq/client/model/OpenSearchAliasTest.java index 65b7848b8..553517fde 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchAliasTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchAliasTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for OpenSearchAlias */ public class OpenSearchAliasTest { - private final OpenSearchAlias model = new OpenSearchAlias(); + private final OpenSearchAlias model = new OpenSearchAlias(); - /** - * Model tests for OpenSearchAlias - */ - @Test - public void testOpenSearchAlias() { - // TODO: test OpenSearchAlias - } + /** + * Model tests for OpenSearchAlias + */ + @Test + public void testOpenSearchAlias() { + // TODO: test OpenSearchAlias + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchIndexSettingTest.java b/src/test/java/com/formkiq/client/model/OpenSearchIndexSettingTest.java index 7de94b521..c5fdfaafe 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchIndexSettingTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchIndexSettingTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for OpenSearchIndexSetting */ public class OpenSearchIndexSettingTest { - private final OpenSearchIndexSetting model = new OpenSearchIndexSetting(); - - /** - * Model tests for OpenSearchIndexSetting - */ - @Test - public void testOpenSearchIndexSetting() { - // TODO: test OpenSearchIndexSetting - } - - /** - * Test the property 'numberOfReplicas' - */ - @Test - public void numberOfReplicasTest() { - // TODO: test numberOfReplicas - } - - /** - * Test the property 'numberOfShards' - */ - @Test - public void numberOfShardsTest() { - // TODO: test numberOfShards - } + private final OpenSearchIndexSetting model = new OpenSearchIndexSetting(); + + /** + * Model tests for OpenSearchIndexSetting + */ + @Test + public void testOpenSearchIndexSetting() { + // TODO: test OpenSearchIndexSetting + } + + /** + * Test the property 'numberOfReplicas' + */ + @Test + public void numberOfReplicasTest() { + // TODO: test numberOfReplicas + } + + /** + * Test the property 'numberOfShards' + */ + @Test + public void numberOfShardsTest() { + // TODO: test numberOfShards + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchIndexTest.java b/src/test/java/com/formkiq/client/model/OpenSearchIndexTest.java index a969dab3d..ce18292f1 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchIndexTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchIndexTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,62 +37,62 @@ * Model tests for OpenSearchIndex */ public class OpenSearchIndexTest { - private final OpenSearchIndex model = new OpenSearchIndex(); + private final OpenSearchIndex model = new OpenSearchIndex(); - /** - * Model tests for OpenSearchIndex - */ - @Test - public void testOpenSearchIndex() { - // TODO: test OpenSearchIndex - } + /** + * Model tests for OpenSearchIndex + */ + @Test + public void testOpenSearchIndex() { + // TODO: test OpenSearchIndex + } - /** - * Test the property 'numberOfReplicas' - */ - @Test - public void numberOfReplicasTest() { - // TODO: test numberOfReplicas - } + /** + * Test the property 'numberOfReplicas' + */ + @Test + public void numberOfReplicasTest() { + // TODO: test numberOfReplicas + } - /** - * Test the property 'numberOfShards' - */ - @Test - public void numberOfShardsTest() { - // TODO: test numberOfShards - } + /** + * Test the property 'numberOfShards' + */ + @Test + public void numberOfShardsTest() { + // TODO: test numberOfShards + } - /** - * Test the property 'documentCount' - */ - @Test - public void documentCountTest() { - // TODO: test documentCount - } + /** + * Test the property 'documentCount' + */ + @Test + public void documentCountTest() { + // TODO: test documentCount + } - /** - * Test the property 'storeSize' - */ - @Test - public void storeSizeTest() { - // TODO: test storeSize - } + /** + * Test the property 'storeSize' + */ + @Test + public void storeSizeTest() { + // TODO: test storeSize + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'aliases' - */ - @Test - public void aliasesTest() { - // TODO: test aliases - } + /** + * Test the property 'aliases' + */ + @Test + public void aliasesTest() { + // TODO: test aliases + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchS3RepositoryTest.java b/src/test/java/com/formkiq/client/model/OpenSearchS3RepositoryTest.java index 338272db5..967a9e620 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchS3RepositoryTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchS3RepositoryTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for OpenSearchS3Repository */ public class OpenSearchS3RepositoryTest { - private final OpenSearchS3Repository model = new OpenSearchS3Repository(); - - /** - * Model tests for OpenSearchS3Repository - */ - @Test - public void testOpenSearchS3Repository() { - // TODO: test OpenSearchS3Repository - } - - /** - * Test the property 'repository' - */ - @Test - public void repositoryTest() { - // TODO: test repository - } - - /** - * Test the property 'bucket' - */ - @Test - public void bucketTest() { - // TODO: test bucket - } + private final OpenSearchS3Repository model = new OpenSearchS3Repository(); + + /** + * Model tests for OpenSearchS3Repository + */ + @Test + public void testOpenSearchS3Repository() { + // TODO: test OpenSearchS3Repository + } + + /** + * Test the property 'repository' + */ + @Test + public void repositoryTest() { + // TODO: test repository + } + + /** + * Test the property 'bucket' + */ + @Test + public void bucketTest() { + // TODO: test bucket + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotFailureTest.java b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotFailureTest.java index 84637e11f..3e706dead 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotFailureTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotFailureTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,62 +34,62 @@ * Model tests for OpenSearchSnapshotFailure */ public class OpenSearchSnapshotFailureTest { - private final OpenSearchSnapshotFailure model = new OpenSearchSnapshotFailure(); + private final OpenSearchSnapshotFailure model = new OpenSearchSnapshotFailure(); - /** - * Model tests for OpenSearchSnapshotFailure - */ - @Test - public void testOpenSearchSnapshotFailure() { - // TODO: test OpenSearchSnapshotFailure - } + /** + * Model tests for OpenSearchSnapshotFailure + */ + @Test + public void testOpenSearchSnapshotFailure() { + // TODO: test OpenSearchSnapshotFailure + } - /** - * Test the property 'index' - */ - @Test - public void indexTest() { - // TODO: test index - } + /** + * Test the property 'index' + */ + @Test + public void indexTest() { + // TODO: test index + } - /** - * Test the property 'indexUuid' - */ - @Test - public void indexUuidTest() { - // TODO: test indexUuid - } + /** + * Test the property 'indexUuid' + */ + @Test + public void indexUuidTest() { + // TODO: test indexUuid + } - /** - * Test the property 'shardId' - */ - @Test - public void shardIdTest() { - // TODO: test shardId - } + /** + * Test the property 'shardId' + */ + @Test + public void shardIdTest() { + // TODO: test shardId + } - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } - /** - * Test the property 'nodeId' - */ - @Test - public void nodeIdTest() { - // TODO: test nodeId - } + /** + * Test the property 'nodeId' + */ + @Test + public void nodeIdTest() { + // TODO: test nodeId + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotShardTest.java b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotShardTest.java index 011ea0709..4253a8d6e 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotShardTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotShardTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,38 +35,38 @@ * Model tests for OpenSearchSnapshotShard */ public class OpenSearchSnapshotShardTest { - private final OpenSearchSnapshotShard model = new OpenSearchSnapshotShard(); + private final OpenSearchSnapshotShard model = new OpenSearchSnapshotShard(); - /** - * Model tests for OpenSearchSnapshotShard - */ - @Test - public void testOpenSearchSnapshotShard() { - // TODO: test OpenSearchSnapshotShard - } + /** + * Model tests for OpenSearchSnapshotShard + */ + @Test + public void testOpenSearchSnapshotShard() { + // TODO: test OpenSearchSnapshotShard + } - /** - * Test the property 'total' - */ - @Test - public void totalTest() { - // TODO: test total - } + /** + * Test the property 'total' + */ + @Test + public void totalTest() { + // TODO: test total + } - /** - * Test the property 'failed' - */ - @Test - public void failedTest() { - // TODO: test failed - } + /** + * Test the property 'failed' + */ + @Test + public void failedTest() { + // TODO: test failed + } - /** - * Test the property 'successful' - */ - @Test - public void successfulTest() { - // TODO: test successful - } + /** + * Test the property 'successful' + */ + @Test + public void successfulTest() { + // TODO: test successful + } } diff --git a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotTest.java b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotTest.java index 6e2f5e91a..7080d9ba3 100644 --- a/src/test/java/com/formkiq/client/model/OpenSearchSnapshotTest.java +++ b/src/test/java/com/formkiq/client/model/OpenSearchSnapshotTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,110 +39,110 @@ * Model tests for OpenSearchSnapshot */ public class OpenSearchSnapshotTest { - private final OpenSearchSnapshot model = new OpenSearchSnapshot(); - - /** - * Model tests for OpenSearchSnapshot - */ - @Test - public void testOpenSearchSnapshot() { - // TODO: test OpenSearchSnapshot - } - - /** - * Test the property 'snapshot' - */ - @Test - public void snapshotTest() { - // TODO: test snapshot - } - - /** - * Test the property 'uuid' - */ - @Test - public void uuidTest() { - // TODO: test uuid - } - - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } - - /** - * Test the property 'indices' - */ - @Test - public void indicesTest() { - // TODO: test indices - } - - /** - * Test the property 'shards' - */ - @Test - public void shardsTest() { - // TODO: test shards - } - - /** - * Test the property 'failures' - */ - @Test - public void failuresTest() { - // TODO: test failures - } - - /** - * Test the property 'state' - */ - @Test - public void stateTest() { - // TODO: test state - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'startTimeInMillis' - */ - @Test - public void startTimeInMillisTest() { - // TODO: test startTimeInMillis - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'endTimeInMillis' - */ - @Test - public void endTimeInMillisTest() { - // TODO: test endTimeInMillis - } - - /** - * Test the property 'durationInMillis' - */ - @Test - public void durationInMillisTest() { - // TODO: test durationInMillis - } + private final OpenSearchSnapshot model = new OpenSearchSnapshot(); + + /** + * Model tests for OpenSearchSnapshot + */ + @Test + public void testOpenSearchSnapshot() { + // TODO: test OpenSearchSnapshot + } + + /** + * Test the property 'snapshot' + */ + @Test + public void snapshotTest() { + // TODO: test snapshot + } + + /** + * Test the property 'uuid' + */ + @Test + public void uuidTest() { + // TODO: test uuid + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'indices' + */ + @Test + public void indicesTest() { + // TODO: test indices + } + + /** + * Test the property 'shards' + */ + @Test + public void shardsTest() { + // TODO: test shards + } + + /** + * Test the property 'failures' + */ + @Test + public void failuresTest() { + // TODO: test failures + } + + /** + * Test the property 'state' + */ + @Test + public void stateTest() { + // TODO: test state + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'startTimeInMillis' + */ + @Test + public void startTimeInMillisTest() { + // TODO: test startTimeInMillis + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'endTimeInMillis' + */ + @Test + public void endTimeInMillisTest() { + // TODO: test endTimeInMillis + } + + /** + * Test the property 'durationInMillis' + */ + @Test + public void durationInMillisTest() { + // TODO: test durationInMillis + } } diff --git a/src/test/java/com/formkiq/client/model/PdfDocumentFieldTest.java b/src/test/java/com/formkiq/client/model/PdfDocumentFieldTest.java index fa257045f..9053c53e3 100644 --- a/src/test/java/com/formkiq/client/model/PdfDocumentFieldTest.java +++ b/src/test/java/com/formkiq/client/model/PdfDocumentFieldTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for PdfDocumentField */ public class PdfDocumentFieldTest { - private final PdfDocumentField model = new PdfDocumentField(); - - /** - * Model tests for PdfDocumentField - */ - @Test - public void testPdfDocumentField() { - // TODO: test PdfDocumentField - } - - /** - * Test the property 'field' - */ - @Test - public void fieldTest() { - // TODO: test field - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + private final PdfDocumentField model = new PdfDocumentField(); + + /** + * Model tests for PdfDocumentField + */ + @Test + public void testPdfDocumentField() { + // TODO: test PdfDocumentField + } + + /** + * Test the property 'field' + */ + @Test + public void fieldTest() { + // TODO: test field + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } } diff --git a/src/test/java/com/formkiq/client/model/PdfDocumentTest.java b/src/test/java/com/formkiq/client/model/PdfDocumentTest.java index 3e7c7ebf1..93e73954c 100644 --- a/src/test/java/com/formkiq/client/model/PdfDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/PdfDocumentTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for PdfDocument */ public class PdfDocumentTest { - private final PdfDocument model = new PdfDocument(); + private final PdfDocument model = new PdfDocument(); - /** - * Model tests for PdfDocument - */ - @Test - public void testPdfDocument() { - // TODO: test PdfDocument - } + /** + * Model tests for PdfDocument + */ + @Test + public void testPdfDocument() { + // TODO: test PdfDocument + } - /** - * Test the property 'fields' - */ - @Test - public void fieldsTest() { - // TODO: test fields - } + /** + * Test the property 'fields' + */ + @Test + public void fieldsTest() { + // TODO: test fields + } } diff --git a/src/test/java/com/formkiq/client/model/QueryFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/QueryFulltextResponseTest.java index 52df8e316..2fdc92489 100644 --- a/src/test/java/com/formkiq/client/model/QueryFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/QueryFulltextResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for QueryFulltextResponse */ public class QueryFulltextResponseTest { - private final QueryFulltextResponse model = new QueryFulltextResponse(); + private final QueryFulltextResponse model = new QueryFulltextResponse(); - /** - * Model tests for QueryFulltextResponse - */ - @Test - public void testQueryFulltextResponse() { - // TODO: test QueryFulltextResponse - } + /** + * Model tests for QueryFulltextResponse + */ + @Test + public void testQueryFulltextResponse() { + // TODO: test QueryFulltextResponse + } - /** - * Test the property 'result' - */ - @Test - public void resultTest() { - // TODO: test result - } + /** + * Test the property 'result' + */ + @Test + public void resultTest() { + // TODO: test result + } } diff --git a/src/test/java/com/formkiq/client/model/QueueTest.java b/src/test/java/com/formkiq/client/model/QueueTest.java index bcc87d4cf..2a19fe780 100644 --- a/src/test/java/com/formkiq/client/model/QueueTest.java +++ b/src/test/java/com/formkiq/client/model/QueueTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for Queue */ public class QueueTest { - private final Queue model = new Queue(); - - /** - * Model tests for Queue - */ - @Test - public void testQueue() { - // TODO: test Queue - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } + private final Queue model = new Queue(); + + /** + * Model tests for Queue + */ + @Test + public void testQueue() { + // TODO: test Queue + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } } diff --git a/src/test/java/com/formkiq/client/model/ReindexTargetTest.java b/src/test/java/com/formkiq/client/model/ReindexTargetTest.java index 1aee51d70..a278b2aae 100644 --- a/src/test/java/com/formkiq/client/model/ReindexTargetTest.java +++ b/src/test/java/com/formkiq/client/model/ReindexTargetTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for ReindexTarget */ public class ReindexTargetTest { - /** - * Model tests for ReindexTarget - */ - @Test - public void testReindexTarget() { - // TODO: test ReindexTarget - } + /** + * Model tests for ReindexTarget + */ + @Test + public void testReindexTarget() { + // TODO: test ReindexTarget + } } diff --git a/src/test/java/com/formkiq/client/model/ResourceItemTest.java b/src/test/java/com/formkiq/client/model/ResourceItemTest.java index b758228a2..d47381f22 100644 --- a/src/test/java/com/formkiq/client/model/ResourceItemTest.java +++ b/src/test/java/com/formkiq/client/model/ResourceItemTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,70 +35,70 @@ * Model tests for ResourceItem */ public class ResourceItemTest { - private final ResourceItem model = new ResourceItem(); + private final ResourceItem model = new ResourceItem(); - /** - * Model tests for ResourceItem - */ - @Test - public void testResourceItem() { - // TODO: test ResourceItem - } + /** + * Model tests for ResourceItem + */ + @Test + public void testResourceItem() { + // TODO: test ResourceItem + } - /** - * Test the property 'itemType' - */ - @Test - public void itemTypeTest() { - // TODO: test itemType - } + /** + * Test the property 'itemType' + */ + @Test + public void itemTypeTest() { + // TODO: test itemType + } - /** - * Test the property 'localizedValue' - */ - @Test - public void localizedValueTest() { - // TODO: test localizedValue - } + /** + * Test the property 'localizedValue' + */ + @Test + public void localizedValueTest() { + // TODO: test localizedValue + } - /** - * Test the property 'interfaceKey' - */ - @Test - public void interfaceKeyTest() { - // TODO: test interfaceKey - } + /** + * Test the property 'interfaceKey' + */ + @Test + public void interfaceKeyTest() { + // TODO: test interfaceKey + } - /** - * Test the property 'itemKey' - */ - @Test - public void itemKeyTest() { - // TODO: test itemKey - } + /** + * Test the property 'itemKey' + */ + @Test + public void itemKeyTest() { + // TODO: test itemKey + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'allowedValue' - */ - @Test - public void allowedValueTest() { - // TODO: test allowedValue - } + /** + * Test the property 'allowedValue' + */ + @Test + public void allowedValueTest() { + // TODO: test allowedValue + } - /** - * Test the property 'classificationId' - */ - @Test - public void classificationIdTest() { - // TODO: test classificationId - } + /** + * Test the property 'classificationId' + */ + @Test + public void classificationIdTest() { + // TODO: test classificationId + } } diff --git a/src/test/java/com/formkiq/client/model/RuleConditionAttributeTest.java b/src/test/java/com/formkiq/client/model/RuleConditionAttributeTest.java index 79d2ab9d0..72f561d21 100644 --- a/src/test/java/com/formkiq/client/model/RuleConditionAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/RuleConditionAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for RuleConditionAttribute */ public class RuleConditionAttributeTest { - /** - * Model tests for RuleConditionAttribute - */ - @Test - public void testRuleConditionAttribute() { - // TODO: test RuleConditionAttribute - } + /** + * Model tests for RuleConditionAttribute + */ + @Test + public void testRuleConditionAttribute() { + // TODO: test RuleConditionAttribute + } } diff --git a/src/test/java/com/formkiq/client/model/RuleConditionCriterionTest.java b/src/test/java/com/formkiq/client/model/RuleConditionCriterionTest.java index 798a0f128..5583e11ab 100644 --- a/src/test/java/com/formkiq/client/model/RuleConditionCriterionTest.java +++ b/src/test/java/com/formkiq/client/model/RuleConditionCriterionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for RuleConditionCriterion */ public class RuleConditionCriterionTest { - /** - * Model tests for RuleConditionCriterion - */ - @Test - public void testRuleConditionCriterion() { - // TODO: test RuleConditionCriterion - } + /** + * Model tests for RuleConditionCriterion + */ + @Test + public void testRuleConditionCriterion() { + // TODO: test RuleConditionCriterion + } } diff --git a/src/test/java/com/formkiq/client/model/RuleConditionMustTest.java b/src/test/java/com/formkiq/client/model/RuleConditionMustTest.java index 8040f0a6e..d968cb4cd 100644 --- a/src/test/java/com/formkiq/client/model/RuleConditionMustTest.java +++ b/src/test/java/com/formkiq/client/model/RuleConditionMustTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,62 +37,62 @@ * Model tests for RuleConditionMust */ public class RuleConditionMustTest { - private final RuleConditionMust model = new RuleConditionMust(); + private final RuleConditionMust model = new RuleConditionMust(); - /** - * Model tests for RuleConditionMust - */ - @Test - public void testRuleConditionMust() { - // TODO: test RuleConditionMust - } + /** + * Model tests for RuleConditionMust + */ + @Test + public void testRuleConditionMust() { + // TODO: test RuleConditionMust + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } - /** - * Test the property 'criterion' - */ - @Test - public void criterionTest() { - // TODO: test criterion - } + /** + * Test the property 'criterion' + */ + @Test + public void criterionTest() { + // TODO: test criterion + } - /** - * Test the property 'attributeKey' - */ - @Test - public void attributeKeyTest() { - // TODO: test attributeKey - } + /** + * Test the property 'attributeKey' + */ + @Test + public void attributeKeyTest() { + // TODO: test attributeKey + } - /** - * Test the property 'fieldName' - */ - @Test - public void fieldNameTest() { - // TODO: test fieldName - } + /** + * Test the property 'fieldName' + */ + @Test + public void fieldNameTest() { + // TODO: test fieldName + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'operation' - */ - @Test - public void operationTest() { - // TODO: test operation - } + /** + * Test the property 'operation' + */ + @Test + public void operationTest() { + // TODO: test operation + } } diff --git a/src/test/java/com/formkiq/client/model/RuleConditionOperationTest.java b/src/test/java/com/formkiq/client/model/RuleConditionOperationTest.java index 01835aaee..300832444 100644 --- a/src/test/java/com/formkiq/client/model/RuleConditionOperationTest.java +++ b/src/test/java/com/formkiq/client/model/RuleConditionOperationTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for RuleConditionOperation */ public class RuleConditionOperationTest { - /** - * Model tests for RuleConditionOperation - */ - @Test - public void testRuleConditionOperation() { - // TODO: test RuleConditionOperation - } + /** + * Model tests for RuleConditionOperation + */ + @Test + public void testRuleConditionOperation() { + // TODO: test RuleConditionOperation + } } diff --git a/src/test/java/com/formkiq/client/model/RuleConditionTest.java b/src/test/java/com/formkiq/client/model/RuleConditionTest.java index 57b15969f..fc20b77ee 100644 --- a/src/test/java/com/formkiq/client/model/RuleConditionTest.java +++ b/src/test/java/com/formkiq/client/model/RuleConditionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for RuleCondition */ public class RuleConditionTest { - private final RuleCondition model = new RuleCondition(); + private final RuleCondition model = new RuleCondition(); - /** - * Model tests for RuleCondition - */ - @Test - public void testRuleCondition() { - // TODO: test RuleCondition - } + /** + * Model tests for RuleCondition + */ + @Test + public void testRuleCondition() { + // TODO: test RuleCondition + } - /** - * Test the property 'must' - */ - @Test - public void mustTest() { - // TODO: test must - } + /** + * Test the property 'must' + */ + @Test + public void mustTest() { + // TODO: test must + } } diff --git a/src/test/java/com/formkiq/client/model/RuleTest.java b/src/test/java/com/formkiq/client/model/RuleTest.java index 584359a37..d830072b2 100644 --- a/src/test/java/com/formkiq/client/model/RuleTest.java +++ b/src/test/java/com/formkiq/client/model/RuleTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,62 +37,62 @@ * Model tests for Rule */ public class RuleTest { - private final Rule model = new Rule(); + private final Rule model = new Rule(); - /** - * Model tests for Rule - */ - @Test - public void testRule() { - // TODO: test Rule - } + /** + * Model tests for Rule + */ + @Test + public void testRule() { + // TODO: test Rule + } - /** - * Test the property 'ruleId' - */ - @Test - public void ruleIdTest() { - // TODO: test ruleId - } + /** + * Test the property 'ruleId' + */ + @Test + public void ruleIdTest() { + // TODO: test ruleId + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'conditions' - */ - @Test - public void conditionsTest() { - // TODO: test conditions - } + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } } diff --git a/src/test/java/com/formkiq/client/model/RulesetStatusTest.java b/src/test/java/com/formkiq/client/model/RulesetStatusTest.java index 13c32137f..c930ba841 100644 --- a/src/test/java/com/formkiq/client/model/RulesetStatusTest.java +++ b/src/test/java/com/formkiq/client/model/RulesetStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for RulesetStatus */ public class RulesetStatusTest { - /** - * Model tests for RulesetStatus - */ - @Test - public void testRulesetStatus() { - // TODO: test RulesetStatus - } + /** + * Model tests for RulesetStatus + */ + @Test + public void testRulesetStatus() { + // TODO: test RulesetStatus + } } diff --git a/src/test/java/com/formkiq/client/model/RulesetTest.java b/src/test/java/com/formkiq/client/model/RulesetTest.java index d7bbba8c1..9f52fe65a 100644 --- a/src/test/java/com/formkiq/client/model/RulesetTest.java +++ b/src/test/java/com/formkiq/client/model/RulesetTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,62 +36,62 @@ * Model tests for Ruleset */ public class RulesetTest { - private final Ruleset model = new Ruleset(); + private final Ruleset model = new Ruleset(); - /** - * Model tests for Ruleset - */ - @Test - public void testRuleset() { - // TODO: test Ruleset - } + /** + * Model tests for Ruleset + */ + @Test + public void testRuleset() { + // TODO: test Ruleset + } - /** - * Test the property 'rulesetId' - */ - @Test - public void rulesetIdTest() { - // TODO: test rulesetId - } + /** + * Test the property 'rulesetId' + */ + @Test + public void rulesetIdTest() { + // TODO: test rulesetId + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/SchemaAttributesTest.java b/src/test/java/com/formkiq/client/model/SchemaAttributesTest.java index a433aa2b2..3b3bb4d2b 100644 --- a/src/test/java/com/formkiq/client/model/SchemaAttributesTest.java +++ b/src/test/java/com/formkiq/client/model/SchemaAttributesTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,46 +39,46 @@ * Model tests for SchemaAttributes */ public class SchemaAttributesTest { - private final SchemaAttributes model = new SchemaAttributes(); + private final SchemaAttributes model = new SchemaAttributes(); - /** - * Model tests for SchemaAttributes - */ - @Test - public void testSchemaAttributes() { - // TODO: test SchemaAttributes - } + /** + * Model tests for SchemaAttributes + */ + @Test + public void testSchemaAttributes() { + // TODO: test SchemaAttributes + } - /** - * Test the property 'compositeKeys' - */ - @Test - public void compositeKeysTest() { - // TODO: test compositeKeys - } + /** + * Test the property 'compositeKeys' + */ + @Test + public void compositeKeysTest() { + // TODO: test compositeKeys + } - /** - * Test the property 'required' - */ - @Test - public void requiredTest() { - // TODO: test required - } + /** + * Test the property 'required' + */ + @Test + public void requiredTest() { + // TODO: test required + } - /** - * Test the property 'optional' - */ - @Test - public void optionalTest() { - // TODO: test optional - } + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } - /** - * Test the property 'allowAdditionalAttributes' - */ - @Test - public void allowAdditionalAttributesTest() { - // TODO: test allowAdditionalAttributes - } + /** + * Test the property 'allowAdditionalAttributes' + */ + @Test + public void allowAdditionalAttributesTest() { + // TODO: test allowAdditionalAttributes + } } diff --git a/src/test/java/com/formkiq/client/model/SearchRangeDataTypeTest.java b/src/test/java/com/formkiq/client/model/SearchRangeDataTypeTest.java index 28951d56a..49f2f4834 100644 --- a/src/test/java/com/formkiq/client/model/SearchRangeDataTypeTest.java +++ b/src/test/java/com/formkiq/client/model/SearchRangeDataTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for SearchRangeDataType */ public class SearchRangeDataTypeTest { - /** - * Model tests for SearchRangeDataType - */ - @Test - public void testSearchRangeDataType() { - // TODO: test SearchRangeDataType - } + /** + * Model tests for SearchRangeDataType + */ + @Test + public void testSearchRangeDataType() { + // TODO: test SearchRangeDataType + } } diff --git a/src/test/java/com/formkiq/client/model/SearchResponseFieldsTest.java b/src/test/java/com/formkiq/client/model/SearchResponseFieldsTest.java index f70152cca..f61867775 100644 --- a/src/test/java/com/formkiq/client/model/SearchResponseFieldsTest.java +++ b/src/test/java/com/formkiq/client/model/SearchResponseFieldsTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for SearchResponseFields */ public class SearchResponseFieldsTest { - private final SearchResponseFields model = new SearchResponseFields(); - - /** - * Model tests for SearchResponseFields - */ - @Test - public void testSearchResponseFields() { - // TODO: test SearchResponseFields - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + private final SearchResponseFields model = new SearchResponseFields(); + + /** + * Model tests for SearchResponseFields + */ + @Test + public void testSearchResponseFields() { + // TODO: test SearchResponseFields + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/SearchResultDocumentAttributeTest.java b/src/test/java/com/formkiq/client/model/SearchResultDocumentAttributeTest.java index dbc8b3965..7fb9e60f1 100644 --- a/src/test/java/com/formkiq/client/model/SearchResultDocumentAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/SearchResultDocumentAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,46 +38,46 @@ * Model tests for SearchResultDocumentAttribute */ public class SearchResultDocumentAttributeTest { - private final SearchResultDocumentAttribute model = new SearchResultDocumentAttribute(); + private final SearchResultDocumentAttribute model = new SearchResultDocumentAttribute(); - /** - * Model tests for SearchResultDocumentAttribute - */ - @Test - public void testSearchResultDocumentAttribute() { - // TODO: test SearchResultDocumentAttribute - } + /** + * Model tests for SearchResultDocumentAttribute + */ + @Test + public void testSearchResultDocumentAttribute() { + // TODO: test SearchResultDocumentAttribute + } - /** - * Test the property 'stringValues' - */ - @Test - public void stringValuesTest() { - // TODO: test stringValues - } + /** + * Test the property 'stringValues' + */ + @Test + public void stringValuesTest() { + // TODO: test stringValues + } - /** - * Test the property 'numberValues' - */ - @Test - public void numberValuesTest() { - // TODO: test numberValues - } + /** + * Test the property 'numberValues' + */ + @Test + public void numberValuesTest() { + // TODO: test numberValues + } - /** - * Test the property 'booleanValue' - */ - @Test - public void booleanValueTest() { - // TODO: test booleanValue - } + /** + * Test the property 'booleanValue' + */ + @Test + public void booleanValueTest() { + // TODO: test booleanValue + } - /** - * Test the property 'valueType' - */ - @Test - public void valueTypeTest() { - // TODO: test valueType - } + /** + * Test the property 'valueType' + */ + @Test + public void valueTypeTest() { + // TODO: test valueType + } } diff --git a/src/test/java/com/formkiq/client/model/SearchResultDocumentTest.java b/src/test/java/com/formkiq/client/model/SearchResultDocumentTest.java index a3891c63b..5ac173531 100644 --- a/src/test/java/com/formkiq/client/model/SearchResultDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/SearchResultDocumentTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -36,198 +43,198 @@ * Model tests for SearchResultDocument */ public class SearchResultDocumentTest { - private final SearchResultDocument model = new SearchResultDocument(); - - /** - * Model tests for SearchResultDocument - */ - @Test - public void testSearchResultDocument() { - // TODO: test SearchResultDocument - } - - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } - - /** - * Test the property 'folder' - */ - @Test - public void folderTest() { - // TODO: test folder - } - - /** - * Test the property 'indexKey' - */ - @Test - public void indexKeyTest() { - // TODO: test indexKey - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'documentId' - */ - @Test - public void documentIdTest() { - // TODO: test documentId - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'versionId' - */ - @Test - public void versionIdTest() { - // TODO: test versionId - } - - /** - * Test the property 'belongsToDocumentId' - */ - @Test - public void belongsToDocumentIdTest() { - // TODO: test belongsToDocumentId - } - - /** - * Test the property 'matchedAttribute' - */ - @Test - public void matchedAttributeTest() { - // TODO: test matchedAttribute - } - - /** - * Test the property 'matchedTag' - */ - @Test - public void matchedTagTest() { - // TODO: test matchedTag - } - - /** - * Test the property 'matchedTags' - */ - @Test - public void matchedTagsTest() { - // TODO: test matchedTags - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final SearchResultDocument model = new SearchResultDocument(); + + /** + * Model tests for SearchResultDocument + */ + @Test + public void testSearchResultDocument() { + // TODO: test SearchResultDocument + } + + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'folder' + */ + @Test + public void folderTest() { + // TODO: test folder + } + + /** + * Test the property 'indexKey' + */ + @Test + public void indexKeyTest() { + // TODO: test indexKey + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'versionId' + */ + @Test + public void versionIdTest() { + // TODO: test versionId + } + + /** + * Test the property 'belongsToDocumentId' + */ + @Test + public void belongsToDocumentIdTest() { + // TODO: test belongsToDocumentId + } + + /** + * Test the property 'matchedAttribute' + */ + @Test + public void matchedAttributeTest() { + // TODO: test matchedAttribute + } + + /** + * Test the property 'matchedTag' + */ + @Test + public void matchedTagTest() { + // TODO: test matchedTag + } + + /** + * Test the property 'matchedTags' + */ + @Test + public void matchedTagsTest() { + // TODO: test matchedTags + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/SetClassificationRequestTest.java b/src/test/java/com/formkiq/client/model/SetClassificationRequestTest.java index 418f9d560..e7f252c48 100644 --- a/src/test/java/com/formkiq/client/model/SetClassificationRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetClassificationRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for SetClassificationRequest */ public class SetClassificationRequestTest { - private final SetClassificationRequest model = new SetClassificationRequest(); + private final SetClassificationRequest model = new SetClassificationRequest(); - /** - * Model tests for SetClassificationRequest - */ - @Test - public void testSetClassificationRequest() { - // TODO: test SetClassificationRequest - } + /** + * Model tests for SetClassificationRequest + */ + @Test + public void testSetClassificationRequest() { + // TODO: test SetClassificationRequest + } - /** - * Test the property 'classification' - */ - @Test - public void classificationTest() { - // TODO: test classification - } + /** + * Test the property 'classification' + */ + @Test + public void classificationTest() { + // TODO: test classification + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentAttributeRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentAttributeRequestTest.java index 70fb016ad..5746da7f0 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentAttributeRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentAttributeRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for SetDocumentAttributeRequest */ public class SetDocumentAttributeRequestTest { - private final SetDocumentAttributeRequest model = new SetDocumentAttributeRequest(); + private final SetDocumentAttributeRequest model = new SetDocumentAttributeRequest(); - /** - * Model tests for SetDocumentAttributeRequest - */ - @Test - public void testSetDocumentAttributeRequest() { - // TODO: test SetDocumentAttributeRequest - } + /** + * Model tests for SetDocumentAttributeRequest + */ + @Test + public void testSetDocumentAttributeRequest() { + // TODO: test SetDocumentAttributeRequest + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentAttributesRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentAttributesRequestTest.java index 489ffba24..e7b215dd4 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentAttributesRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentAttributesRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for SetDocumentAttributesRequest */ public class SetDocumentAttributesRequestTest { - private final SetDocumentAttributesRequest model = new SetDocumentAttributesRequest(); + private final SetDocumentAttributesRequest model = new SetDocumentAttributesRequest(); - /** - * Model tests for SetDocumentAttributesRequest - */ - @Test - public void testSetDocumentAttributesRequest() { - // TODO: test SetDocumentAttributesRequest - } + /** + * Model tests for SetDocumentAttributesRequest + */ + @Test + public void testSetDocumentAttributesRequest() { + // TODO: test SetDocumentAttributesRequest + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationRequestTest.java index f34bfd753..ffcf2ea6e 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,23 @@ * Model tests for SetDocumentDataClassificationRequest */ public class SetDocumentDataClassificationRequestTest { - private final SetDocumentDataClassificationRequest model = new SetDocumentDataClassificationRequest(); + private final SetDocumentDataClassificationRequest model = + new SetDocumentDataClassificationRequest(); - /** - * Model tests for SetDocumentDataClassificationRequest - */ - @Test - public void testSetDocumentDataClassificationRequest() { - // TODO: test SetDocumentDataClassificationRequest - } + /** + * Model tests for SetDocumentDataClassificationRequest + */ + @Test + public void testSetDocumentDataClassificationRequest() { + // TODO: test SetDocumentDataClassificationRequest + } - /** - * Test the property 'llmPromptEntityName' - */ - @Test - public void llmPromptEntityNameTest() { - // TODO: test llmPromptEntityName - } + /** + * Test the property 'llmPromptEntityName' + */ + @Test + public void llmPromptEntityNameTest() { + // TODO: test llmPromptEntityName + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationResponseTest.java b/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationResponseTest.java index 781ef170b..9c473a310 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentDataClassificationResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,31 @@ * Model tests for SetDocumentDataClassificationResponse */ public class SetDocumentDataClassificationResponseTest { - private final SetDocumentDataClassificationResponse model = new SetDocumentDataClassificationResponse(); - - /** - * Model tests for SetDocumentDataClassificationResponse - */ - @Test - public void testSetDocumentDataClassificationResponse() { - // TODO: test SetDocumentDataClassificationResponse - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final SetDocumentDataClassificationResponse model = + new SetDocumentDataClassificationResponse(); + + /** + * Model tests for SetDocumentDataClassificationResponse + */ + @Test + public void testSetDocumentDataClassificationResponse() { + // TODO: test SetDocumentDataClassificationResponse + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentFulltextRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentFulltextRequestTest.java index 0c63904d9..d0016b61e 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentFulltextRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentFulltextRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -35,110 +42,110 @@ * Model tests for SetDocumentFulltextRequest */ public class SetDocumentFulltextRequestTest { - private final SetDocumentFulltextRequest model = new SetDocumentFulltextRequest(); - - /** - * Model tests for SetDocumentFulltextRequest - */ - @Test - public void testSetDocumentFulltextRequest() { - // TODO: test SetDocumentFulltextRequest - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'contentUrls' - */ - @Test - public void contentUrlsTest() { - // TODO: test contentUrls - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final SetDocumentFulltextRequest model = new SetDocumentFulltextRequest(); + + /** + * Model tests for SetDocumentFulltextRequest + */ + @Test + public void testSetDocumentFulltextRequest() { + // TODO: test SetDocumentFulltextRequest + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'contentUrls' + */ + @Test + public void contentUrlsTest() { + // TODO: test contentUrls + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/SetDocumentFulltextResponseTest.java index 154f7b8cc..324dced8f 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentFulltextResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for SetDocumentFulltextResponse */ public class SetDocumentFulltextResponseTest { - private final SetDocumentFulltextResponse model = new SetDocumentFulltextResponse(); + private final SetDocumentFulltextResponse model = new SetDocumentFulltextResponse(); - /** - * Model tests for SetDocumentFulltextResponse - */ - @Test - public void testSetDocumentFulltextResponse() { - // TODO: test SetDocumentFulltextResponse - } + /** + * Model tests for SetDocumentFulltextResponse + */ + @Test + public void testSetDocumentFulltextResponse() { + // TODO: test SetDocumentFulltextResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentOcrRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentOcrRequestTest.java index 5d5db74cc..ed34348b5 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentOcrRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentOcrRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,38 +34,38 @@ * Model tests for SetDocumentOcrRequest */ public class SetDocumentOcrRequestTest { - private final SetDocumentOcrRequest model = new SetDocumentOcrRequest(); + private final SetDocumentOcrRequest model = new SetDocumentOcrRequest(); - /** - * Model tests for SetDocumentOcrRequest - */ - @Test - public void testSetDocumentOcrRequest() { - // TODO: test SetDocumentOcrRequest - } + /** + * Model tests for SetDocumentOcrRequest + */ + @Test + public void testSetDocumentOcrRequest() { + // TODO: test SetDocumentOcrRequest + } - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentRestoreResponseTest.java b/src/test/java/com/formkiq/client/model/SetDocumentRestoreResponseTest.java index 2c6808b29..f3ed3e9a9 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentRestoreResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentRestoreResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for SetDocumentRestoreResponse */ public class SetDocumentRestoreResponseTest { - private final SetDocumentRestoreResponse model = new SetDocumentRestoreResponse(); + private final SetDocumentRestoreResponse model = new SetDocumentRestoreResponse(); - /** - * Model tests for SetDocumentRestoreResponse - */ - @Test - public void testSetDocumentRestoreResponse() { - // TODO: test SetDocumentRestoreResponse - } + /** + * Model tests for SetDocumentRestoreResponse + */ + @Test + public void testSetDocumentRestoreResponse() { + // TODO: test SetDocumentRestoreResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentTagKeyRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentTagKeyRequestTest.java index 52ba37bf5..953eb8aff 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentTagKeyRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentTagKeyRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for SetDocumentTagKeyRequest */ public class SetDocumentTagKeyRequestTest { - private final SetDocumentTagKeyRequest model = new SetDocumentTagKeyRequest(); - - /** - * Model tests for SetDocumentTagKeyRequest - */ - @Test - public void testSetDocumentTagKeyRequest() { - // TODO: test SetDocumentTagKeyRequest - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } - - /** - * Test the property 'values' - */ - @Test - public void valuesTest() { - // TODO: test values - } + private final SetDocumentTagKeyRequest model = new SetDocumentTagKeyRequest(); + + /** + * Model tests for SetDocumentTagKeyRequest + */ + @Test + public void testSetDocumentTagKeyRequest() { + // TODO: test SetDocumentTagKeyRequest + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentVersionRequestTest.java b/src/test/java/com/formkiq/client/model/SetDocumentVersionRequestTest.java index 3ba2a48cf..4bd19d390 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentVersionRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentVersionRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for SetDocumentVersionRequest */ public class SetDocumentVersionRequestTest { - private final SetDocumentVersionRequest model = new SetDocumentVersionRequest(); + private final SetDocumentVersionRequest model = new SetDocumentVersionRequest(); - /** - * Model tests for SetDocumentVersionRequest - */ - @Test - public void testSetDocumentVersionRequest() { - // TODO: test SetDocumentVersionRequest - } + /** + * Model tests for SetDocumentVersionRequest + */ + @Test + public void testSetDocumentVersionRequest() { + // TODO: test SetDocumentVersionRequest + } - /** - * Test the property 'versionKey' - */ - @Test - public void versionKeyTest() { - // TODO: test versionKey - } + /** + * Test the property 'versionKey' + */ + @Test + public void versionKeyTest() { + // TODO: test versionKey + } } diff --git a/src/test/java/com/formkiq/client/model/SetDocumentVersionResponseTest.java b/src/test/java/com/formkiq/client/model/SetDocumentVersionResponseTest.java index f95b6823f..4aa4f5535 100644 --- a/src/test/java/com/formkiq/client/model/SetDocumentVersionResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetDocumentVersionResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for SetDocumentVersionResponse */ public class SetDocumentVersionResponseTest { - private final SetDocumentVersionResponse model = new SetDocumentVersionResponse(); + private final SetDocumentVersionResponse model = new SetDocumentVersionResponse(); - /** - * Model tests for SetDocumentVersionResponse - */ - @Test - public void testSetDocumentVersionResponse() { - // TODO: test SetDocumentVersionResponse - } + /** + * Model tests for SetDocumentVersionResponse + */ + @Test + public void testSetDocumentVersionResponse() { + // TODO: test SetDocumentVersionResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SetFolderPermissionsRequestTest.java b/src/test/java/com/formkiq/client/model/SetFolderPermissionsRequestTest.java index 1849942e1..ee6d27cae 100644 --- a/src/test/java/com/formkiq/client/model/SetFolderPermissionsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetFolderPermissionsRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,30 +37,30 @@ * Model tests for SetFolderPermissionsRequest */ public class SetFolderPermissionsRequestTest { - private final SetFolderPermissionsRequest model = new SetFolderPermissionsRequest(); - - /** - * Model tests for SetFolderPermissionsRequest - */ - @Test - public void testSetFolderPermissionsRequest() { - // TODO: test SetFolderPermissionsRequest - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'roles' - */ - @Test - public void rolesTest() { - // TODO: test roles - } + private final SetFolderPermissionsRequest model = new SetFolderPermissionsRequest(); + + /** + * Model tests for SetFolderPermissionsRequest + */ + @Test + public void testSetFolderPermissionsRequest() { + // TODO: test SetFolderPermissionsRequest + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'roles' + */ + @Test + public void rolesTest() { + // TODO: test roles + } } diff --git a/src/test/java/com/formkiq/client/model/SetGroupPermissionsRequestTest.java b/src/test/java/com/formkiq/client/model/SetGroupPermissionsRequestTest.java index 8b1e66e62..406750269 100644 --- a/src/test/java/com/formkiq/client/model/SetGroupPermissionsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetGroupPermissionsRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for SetGroupPermissionsRequest */ public class SetGroupPermissionsRequestTest { - private final SetGroupPermissionsRequest model = new SetGroupPermissionsRequest(); + private final SetGroupPermissionsRequest model = new SetGroupPermissionsRequest(); - /** - * Model tests for SetGroupPermissionsRequest - */ - @Test - public void testSetGroupPermissionsRequest() { - // TODO: test SetGroupPermissionsRequest - } + /** + * Model tests for SetGroupPermissionsRequest + */ + @Test + public void testSetGroupPermissionsRequest() { + // TODO: test SetGroupPermissionsRequest + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/SetLocaleResourceItemRequestTest.java b/src/test/java/com/formkiq/client/model/SetLocaleResourceItemRequestTest.java index a0e0c4d16..d85f69ca7 100644 --- a/src/test/java/com/formkiq/client/model/SetLocaleResourceItemRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetLocaleResourceItemRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for SetLocaleResourceItemRequest */ public class SetLocaleResourceItemRequestTest { - private final SetLocaleResourceItemRequest model = new SetLocaleResourceItemRequest(); + private final SetLocaleResourceItemRequest model = new SetLocaleResourceItemRequest(); - /** - * Model tests for SetLocaleResourceItemRequest - */ - @Test - public void testSetLocaleResourceItemRequest() { - // TODO: test SetLocaleResourceItemRequest - } + /** + * Model tests for SetLocaleResourceItemRequest + */ + @Test + public void testSetLocaleResourceItemRequest() { + // TODO: test SetLocaleResourceItemRequest + } - /** - * Test the property 'resourceItem' - */ - @Test - public void resourceItemTest() { - // TODO: test resourceItem - } + /** + * Test the property 'resourceItem' + */ + @Test + public void resourceItemTest() { + // TODO: test resourceItem + } } diff --git a/src/test/java/com/formkiq/client/model/SetMappingRequestTest.java b/src/test/java/com/formkiq/client/model/SetMappingRequestTest.java index 6f9e313bb..9e1717d3e 100644 --- a/src/test/java/com/formkiq/client/model/SetMappingRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetMappingRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for SetMappingRequest */ public class SetMappingRequestTest { - private final SetMappingRequest model = new SetMappingRequest(); + private final SetMappingRequest model = new SetMappingRequest(); - /** - * Model tests for SetMappingRequest - */ - @Test - public void testSetMappingRequest() { - // TODO: test SetMappingRequest - } + /** + * Model tests for SetMappingRequest + */ + @Test + public void testSetMappingRequest() { + // TODO: test SetMappingRequest + } - /** - * Test the property 'mapping' - */ - @Test - public void mappingTest() { - // TODO: test mapping - } + /** + * Test the property 'mapping' + */ + @Test + public void mappingTest() { + // TODO: test mapping + } } diff --git a/src/test/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequestTest.java b/src/test/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequestTest.java index a5c24919e..95b7bb821 100644 --- a/src/test/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for SetOpaAccessPolicyItemsRequest */ public class SetOpaAccessPolicyItemsRequestTest { - private final SetOpaAccessPolicyItemsRequest model = new SetOpaAccessPolicyItemsRequest(); + private final SetOpaAccessPolicyItemsRequest model = new SetOpaAccessPolicyItemsRequest(); - /** - * Model tests for SetOpaAccessPolicyItemsRequest - */ - @Test - public void testSetOpaAccessPolicyItemsRequest() { - // TODO: test SetOpaAccessPolicyItemsRequest - } + /** + * Model tests for SetOpaAccessPolicyItemsRequest + */ + @Test + public void testSetOpaAccessPolicyItemsRequest() { + // TODO: test SetOpaAccessPolicyItemsRequest + } - /** - * Test the property 'policyItems' - */ - @Test - public void policyItemsTest() { - // TODO: test policyItems - } + /** + * Test the property 'policyItems' + */ + @Test + public void policyItemsTest() { + // TODO: test policyItems + } } diff --git a/src/test/java/com/formkiq/client/model/SetOpenSearchIndexRequestTest.java b/src/test/java/com/formkiq/client/model/SetOpenSearchIndexRequestTest.java index d43893df2..34355dc3c 100644 --- a/src/test/java/com/formkiq/client/model/SetOpenSearchIndexRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetOpenSearchIndexRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for SetOpenSearchIndexRequest */ public class SetOpenSearchIndexRequestTest { - private final SetOpenSearchIndexRequest model = new SetOpenSearchIndexRequest(); + private final SetOpenSearchIndexRequest model = new SetOpenSearchIndexRequest(); - /** - * Model tests for SetOpenSearchIndexRequest - */ - @Test - public void testSetOpenSearchIndexRequest() { - // TODO: test SetOpenSearchIndexRequest - } + /** + * Model tests for SetOpenSearchIndexRequest + */ + @Test + public void testSetOpenSearchIndexRequest() { + // TODO: test SetOpenSearchIndexRequest + } - /** - * Test the property 'indexSettings' - */ - @Test - public void indexSettingsTest() { - // TODO: test indexSettings - } + /** + * Test the property 'indexSettings' + */ + @Test + public void indexSettingsTest() { + // TODO: test indexSettings + } } diff --git a/src/test/java/com/formkiq/client/model/SetOpenSearchIndexResponseTest.java b/src/test/java/com/formkiq/client/model/SetOpenSearchIndexResponseTest.java index 4f3c5b964..4ade59d0e 100644 --- a/src/test/java/com/formkiq/client/model/SetOpenSearchIndexResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetOpenSearchIndexResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for SetOpenSearchIndexResponse */ public class SetOpenSearchIndexResponseTest { - private final SetOpenSearchIndexResponse model = new SetOpenSearchIndexResponse(); + private final SetOpenSearchIndexResponse model = new SetOpenSearchIndexResponse(); - /** - * Model tests for SetOpenSearchIndexResponse - */ - @Test - public void testSetOpenSearchIndexResponse() { - // TODO: test SetOpenSearchIndexResponse - } + /** + * Model tests for SetOpenSearchIndexResponse + */ + @Test + public void testSetOpenSearchIndexResponse() { + // TODO: test SetOpenSearchIndexResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SetOpenSearchIndiceRequestTest.java b/src/test/java/com/formkiq/client/model/SetOpenSearchIndiceRequestTest.java index 213256faa..c30905f9d 100644 --- a/src/test/java/com/formkiq/client/model/SetOpenSearchIndiceRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetOpenSearchIndiceRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for SetOpenSearchIndiceRequest */ public class SetOpenSearchIndiceRequestTest { - private final SetOpenSearchIndiceRequest model = new SetOpenSearchIndiceRequest(); + private final SetOpenSearchIndiceRequest model = new SetOpenSearchIndiceRequest(); - /** - * Model tests for SetOpenSearchIndiceRequest - */ - @Test - public void testSetOpenSearchIndiceRequest() { - // TODO: test SetOpenSearchIndiceRequest - } + /** + * Model tests for SetOpenSearchIndiceRequest + */ + @Test + public void testSetOpenSearchIndiceRequest() { + // TODO: test SetOpenSearchIndiceRequest + } - /** - * Test the property 'indexName' - */ - @Test - public void indexNameTest() { - // TODO: test indexName - } + /** + * Test the property 'indexName' + */ + @Test + public void indexNameTest() { + // TODO: test indexName + } } diff --git a/src/test/java/com/formkiq/client/model/SetResponseTest.java b/src/test/java/com/formkiq/client/model/SetResponseTest.java index 44886385a..a293eab98 100644 --- a/src/test/java/com/formkiq/client/model/SetResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for SetResponse */ public class SetResponseTest { - private final SetResponse model = new SetResponse(); + private final SetResponse model = new SetResponse(); - /** - * Model tests for SetResponse - */ - @Test - public void testSetResponse() { - // TODO: test SetResponse - } + /** + * Model tests for SetResponse + */ + @Test + public void testSetResponse() { + // TODO: test SetResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SetSchemaAttributesTest.java b/src/test/java/com/formkiq/client/model/SetSchemaAttributesTest.java index d1430db77..6ba23cc08 100644 --- a/src/test/java/com/formkiq/client/model/SetSchemaAttributesTest.java +++ b/src/test/java/com/formkiq/client/model/SetSchemaAttributesTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,46 +39,46 @@ * Model tests for SetSchemaAttributes */ public class SetSchemaAttributesTest { - private final SetSchemaAttributes model = new SetSchemaAttributes(); + private final SetSchemaAttributes model = new SetSchemaAttributes(); - /** - * Model tests for SetSchemaAttributes - */ - @Test - public void testSetSchemaAttributes() { - // TODO: test SetSchemaAttributes - } + /** + * Model tests for SetSchemaAttributes + */ + @Test + public void testSetSchemaAttributes() { + // TODO: test SetSchemaAttributes + } - /** - * Test the property 'compositeKeys' - */ - @Test - public void compositeKeysTest() { - // TODO: test compositeKeys - } + /** + * Test the property 'compositeKeys' + */ + @Test + public void compositeKeysTest() { + // TODO: test compositeKeys + } - /** - * Test the property 'required' - */ - @Test - public void requiredTest() { - // TODO: test required - } + /** + * Test the property 'required' + */ + @Test + public void requiredTest() { + // TODO: test required + } - /** - * Test the property 'optional' - */ - @Test - public void optionalTest() { - // TODO: test optional - } + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } - /** - * Test the property 'allowAdditionalAttributes' - */ - @Test - public void allowAdditionalAttributesTest() { - // TODO: test allowAdditionalAttributes - } + /** + * Test the property 'allowAdditionalAttributes' + */ + @Test + public void allowAdditionalAttributesTest() { + // TODO: test allowAdditionalAttributes + } } diff --git a/src/test/java/com/formkiq/client/model/SetSitesSchemaRequestTest.java b/src/test/java/com/formkiq/client/model/SetSitesSchemaRequestTest.java index b57897b93..6f423a7ad 100644 --- a/src/test/java/com/formkiq/client/model/SetSitesSchemaRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetSitesSchemaRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for SetSitesSchemaRequest */ public class SetSitesSchemaRequestTest { - private final SetSitesSchemaRequest model = new SetSitesSchemaRequest(); - - /** - * Model tests for SetSitesSchemaRequest - */ - @Test - public void testSetSitesSchemaRequest() { - // TODO: test SetSitesSchemaRequest - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final SetSitesSchemaRequest model = new SetSitesSchemaRequest(); + + /** + * Model tests for SetSitesSchemaRequest + */ + @Test + public void testSetSitesSchemaRequest() { + // TODO: test SetSitesSchemaRequest + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/SetWorkflowRequestTest.java b/src/test/java/com/formkiq/client/model/SetWorkflowRequestTest.java index 4ee2a5e74..d918b2f92 100644 --- a/src/test/java/com/formkiq/client/model/SetWorkflowRequestTest.java +++ b/src/test/java/com/formkiq/client/model/SetWorkflowRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,46 +38,46 @@ * Model tests for SetWorkflowRequest */ public class SetWorkflowRequestTest { - private final SetWorkflowRequest model = new SetWorkflowRequest(); + private final SetWorkflowRequest model = new SetWorkflowRequest(); - /** - * Model tests for SetWorkflowRequest - */ - @Test - public void testSetWorkflowRequest() { - // TODO: test SetWorkflowRequest - } + /** + * Model tests for SetWorkflowRequest + */ + @Test + public void testSetWorkflowRequest() { + // TODO: test SetWorkflowRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'steps' - */ - @Test - public void stepsTest() { - // TODO: test steps - } + /** + * Test the property 'steps' + */ + @Test + public void stepsTest() { + // TODO: test steps + } } diff --git a/src/test/java/com/formkiq/client/model/SetWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/SetWorkflowResponseTest.java index af3321588..ec7d9ac5f 100644 --- a/src/test/java/com/formkiq/client/model/SetWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/SetWorkflowResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for SetWorkflowResponse */ public class SetWorkflowResponseTest { - private final SetWorkflowResponse model = new SetWorkflowResponse(); + private final SetWorkflowResponse model = new SetWorkflowResponse(); - /** - * Model tests for SetWorkflowResponse - */ - @Test - public void testSetWorkflowResponse() { - // TODO: test SetWorkflowResponse - } + /** + * Model tests for SetWorkflowResponse + */ + @Test + public void testSetWorkflowResponse() { + // TODO: test SetWorkflowResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/SiteConfigTest.java b/src/test/java/com/formkiq/client/model/SiteConfigTest.java index 48c12f7f8..93395dd58 100644 --- a/src/test/java/com/formkiq/client/model/SiteConfigTest.java +++ b/src/test/java/com/formkiq/client/model/SiteConfigTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,46 +35,46 @@ * Model tests for SiteConfig */ public class SiteConfigTest { - private final SiteConfig model = new SiteConfig(); + private final SiteConfig model = new SiteConfig(); - /** - * Model tests for SiteConfig - */ - @Test - public void testSiteConfig() { - // TODO: test SiteConfig - } + /** + * Model tests for SiteConfig + */ + @Test + public void testSiteConfig() { + // TODO: test SiteConfig + } - /** - * Test the property 'maxContentLengthBytes' - */ - @Test - public void maxContentLengthBytesTest() { - // TODO: test maxContentLengthBytes - } + /** + * Test the property 'maxContentLengthBytes' + */ + @Test + public void maxContentLengthBytesTest() { + // TODO: test maxContentLengthBytes + } - /** - * Test the property 'maxDocuments' - */ - @Test - public void maxDocumentsTest() { - // TODO: test maxDocuments - } + /** + * Test the property 'maxDocuments' + */ + @Test + public void maxDocumentsTest() { + // TODO: test maxDocuments + } - /** - * Test the property 'maxWebhooks' - */ - @Test - public void maxWebhooksTest() { - // TODO: test maxWebhooks - } + /** + * Test the property 'maxWebhooks' + */ + @Test + public void maxWebhooksTest() { + // TODO: test maxWebhooks + } - /** - * Test the property 'ocr' - */ - @Test - public void ocrTest() { - // TODO: test ocr - } + /** + * Test the property 'ocr' + */ + @Test + public void ocrTest() { + // TODO: test ocr + } } diff --git a/src/test/java/com/formkiq/client/model/SiteGroupPermissionsTest.java b/src/test/java/com/formkiq/client/model/SiteGroupPermissionsTest.java index 698898c27..88d8ba736 100644 --- a/src/test/java/com/formkiq/client/model/SiteGroupPermissionsTest.java +++ b/src/test/java/com/formkiq/client/model/SiteGroupPermissionsTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for SiteGroupPermissions */ public class SiteGroupPermissionsTest { - /** - * Model tests for SiteGroupPermissions - */ - @Test - public void testSiteGroupPermissions() { - // TODO: test SiteGroupPermissions - } + /** + * Model tests for SiteGroupPermissions + */ + @Test + public void testSiteGroupPermissions() { + // TODO: test SiteGroupPermissions + } } diff --git a/src/test/java/com/formkiq/client/model/SiteGroupTest.java b/src/test/java/com/formkiq/client/model/SiteGroupTest.java index c37260eb1..cc52c5de6 100644 --- a/src/test/java/com/formkiq/client/model/SiteGroupTest.java +++ b/src/test/java/com/formkiq/client/model/SiteGroupTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for SiteGroup */ public class SiteGroupTest { - private final SiteGroup model = new SiteGroup(); + private final SiteGroup model = new SiteGroup(); - /** - * Model tests for SiteGroup - */ - @Test - public void testSiteGroup() { - // TODO: test SiteGroup - } + /** + * Model tests for SiteGroup + */ + @Test + public void testSiteGroup() { + // TODO: test SiteGroup + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } } diff --git a/src/test/java/com/formkiq/client/model/SiteStatusTest.java b/src/test/java/com/formkiq/client/model/SiteStatusTest.java index a2bd341e9..ed126012e 100644 --- a/src/test/java/com/formkiq/client/model/SiteStatusTest.java +++ b/src/test/java/com/formkiq/client/model/SiteStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for SiteStatus */ public class SiteStatusTest { - /** - * Model tests for SiteStatus - */ - @Test - public void testSiteStatus() { - // TODO: test SiteStatus - } + /** + * Model tests for SiteStatus + */ + @Test + public void testSiteStatus() { + // TODO: test SiteStatus + } } diff --git a/src/test/java/com/formkiq/client/model/SiteTest.java b/src/test/java/com/formkiq/client/model/SiteTest.java index b574d5289..80330bd83 100644 --- a/src/test/java/com/formkiq/client/model/SiteTest.java +++ b/src/test/java/com/formkiq/client/model/SiteTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -33,78 +40,78 @@ * Model tests for Site */ public class SiteTest { - private final Site model = new Site(); + private final Site model = new Site(); - /** - * Model tests for Site - */ - @Test - public void testSite() { - // TODO: test Site - } + /** + * Model tests for Site + */ + @Test + public void testSite() { + // TODO: test Site + } - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } - /** - * Test the property 'title' - */ - @Test - public void titleTest() { - // TODO: test title - } + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'permission' - */ - @Test - public void permissionTest() { - // TODO: test permission - } + /** + * Test the property 'permission' + */ + @Test + public void permissionTest() { + // TODO: test permission + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } - /** - * Test the property 'uploadEmail' - */ - @Test - public void uploadEmailTest() { - // TODO: test uploadEmail - } + /** + * Test the property 'uploadEmail' + */ + @Test + public void uploadEmailTest() { + // TODO: test uploadEmail + } - /** - * Test the property 'config' - */ - @Test - public void configTest() { - // TODO: test config - } + /** + * Test the property 'config' + */ + @Test + public void configTest() { + // TODO: test config + } - /** - * Test the property 'usage' - */ - @Test - public void usageTest() { - // TODO: test usage - } + /** + * Test the property 'usage' + */ + @Test + public void usageTest() { + // TODO: test usage + } } diff --git a/src/test/java/com/formkiq/client/model/SiteUsageTest.java b/src/test/java/com/formkiq/client/model/SiteUsageTest.java index 4ddb1c087..c560d1df0 100644 --- a/src/test/java/com/formkiq/client/model/SiteUsageTest.java +++ b/src/test/java/com/formkiq/client/model/SiteUsageTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for SiteUsage */ public class SiteUsageTest { - private final SiteUsage model = new SiteUsage(); - - /** - * Model tests for SiteUsage - */ - @Test - public void testSiteUsage() { - // TODO: test SiteUsage - } - - /** - * Test the property 'documentCount' - */ - @Test - public void documentCountTest() { - // TODO: test documentCount - } - - /** - * Test the property 'ocrTransactionCount' - */ - @Test - public void ocrTransactionCountTest() { - // TODO: test ocrTransactionCount - } + private final SiteUsage model = new SiteUsage(); + + /** + * Model tests for SiteUsage + */ + @Test + public void testSiteUsage() { + // TODO: test SiteUsage + } + + /** + * Test the property 'documentCount' + */ + @Test + public void documentCountTest() { + // TODO: test documentCount + } + + /** + * Test the property 'ocrTransactionCount' + */ + @Test + public void ocrTransactionCountTest() { + // TODO: test ocrTransactionCount + } } diff --git a/src/test/java/com/formkiq/client/model/StringFormatTest.java b/src/test/java/com/formkiq/client/model/StringFormatTest.java index 03a4aa2e0..4bf21fe01 100644 --- a/src/test/java/com/formkiq/client/model/StringFormatTest.java +++ b/src/test/java/com/formkiq/client/model/StringFormatTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,38 +35,38 @@ * Model tests for StringFormat */ public class StringFormatTest { - private final StringFormat model = new StringFormat(); + private final StringFormat model = new StringFormat(); - /** - * Model tests for StringFormat - */ - @Test - public void testStringFormat() { - // TODO: test StringFormat - } + /** + * Model tests for StringFormat + */ + @Test + public void testStringFormat() { + // TODO: test StringFormat + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'staticValue' - */ - @Test - public void staticValueTest() { - // TODO: test staticValue - } + /** + * Test the property 'staticValue' + */ + @Test + public void staticValueTest() { + // TODO: test staticValue + } - /** - * Test the property 'padding' - */ - @Test - public void paddingTest() { - // TODO: test padding - } + /** + * Test the property 'padding' + */ + @Test + public void paddingTest() { + // TODO: test padding + } } diff --git a/src/test/java/com/formkiq/client/model/StringGeneratorTypeTest.java b/src/test/java/com/formkiq/client/model/StringGeneratorTypeTest.java index 5e4fb578d..ad831ab87 100644 --- a/src/test/java/com/formkiq/client/model/StringGeneratorTypeTest.java +++ b/src/test/java/com/formkiq/client/model/StringGeneratorTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for StringGeneratorType */ public class StringGeneratorTypeTest { - /** - * Model tests for StringGeneratorType - */ - @Test - public void testStringGeneratorType() { - // TODO: test StringGeneratorType - } + /** + * Model tests for StringGeneratorType + */ + @Test + public void testStringGeneratorType() { + // TODO: test StringGeneratorType + } } diff --git a/src/test/java/com/formkiq/client/model/TaskStatusTest.java b/src/test/java/com/formkiq/client/model/TaskStatusTest.java index c6a4f6052..10a7a4ffd 100644 --- a/src/test/java/com/formkiq/client/model/TaskStatusTest.java +++ b/src/test/java/com/formkiq/client/model/TaskStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for TaskStatus */ public class TaskStatusTest { - /** - * Model tests for TaskStatus - */ - @Test - public void testTaskStatus() { - // TODO: test TaskStatus - } + /** + * Model tests for TaskStatus + */ + @Test + public void testTaskStatus() { + // TODO: test TaskStatus + } } diff --git a/src/test/java/com/formkiq/client/model/TaskTest.java b/src/test/java/com/formkiq/client/model/TaskTest.java index 382136b45..0b4c38e98 100644 --- a/src/test/java/com/formkiq/client/model/TaskTest.java +++ b/src/test/java/com/formkiq/client/model/TaskTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,102 +37,102 @@ * Model tests for Task */ public class TaskTest { - private final Task model = new Task(); - - /** - * Model tests for Task - */ - @Test - public void testTask() { - // TODO: test Task - } - - /** - * Test the property 'taskId' - */ - @Test - public void taskIdTest() { - // TODO: test taskId - } - - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } - - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } - - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } - - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } - - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + private final Task model = new Task(); + + /** + * Model tests for Task + */ + @Test + public void testTask() { + // TODO: test Task + } + + /** + * Test the property 'taskId' + */ + @Test + public void taskIdTest() { + // TODO: test taskId + } + + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } + + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } + + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } + + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } } diff --git a/src/test/java/com/formkiq/client/model/TextractQueryTest.java b/src/test/java/com/formkiq/client/model/TextractQueryTest.java index 25d4b8114..91bc6b2dc 100644 --- a/src/test/java/com/formkiq/client/model/TextractQueryTest.java +++ b/src/test/java/com/formkiq/client/model/TextractQueryTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,38 +36,38 @@ * Model tests for TextractQuery */ public class TextractQueryTest { - private final TextractQuery model = new TextractQuery(); + private final TextractQuery model = new TextractQuery(); - /** - * Model tests for TextractQuery - */ - @Test - public void testTextractQuery() { - // TODO: test TextractQuery - } + /** + * Model tests for TextractQuery + */ + @Test + public void testTextractQuery() { + // TODO: test TextractQuery + } - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } - /** - * Test the property 'alias' - */ - @Test - public void aliasTest() { - // TODO: test alias - } + /** + * Test the property 'alias' + */ + @Test + public void aliasTest() { + // TODO: test alias + } - /** - * Test the property 'pages' - */ - @Test - public void pagesTest() { - // TODO: test pages - } + /** + * Test the property 'pages' + */ + @Test + public void pagesTest() { + // TODO: test pages + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateAttributeRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateAttributeRequestTest.java index 965401008..68ef3cd9d 100644 --- a/src/test/java/com/formkiq/client/model/UpdateAttributeRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateAttributeRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for UpdateAttributeRequest */ public class UpdateAttributeRequestTest { - private final UpdateAttributeRequest model = new UpdateAttributeRequest(); + private final UpdateAttributeRequest model = new UpdateAttributeRequest(); - /** - * Model tests for UpdateAttributeRequest - */ - @Test - public void testUpdateAttributeRequest() { - // TODO: test UpdateAttributeRequest - } + /** + * Model tests for UpdateAttributeRequest + */ + @Test + public void testUpdateAttributeRequest() { + // TODO: test UpdateAttributeRequest + } - /** - * Test the property 'attribute' - */ - @Test - public void attributeTest() { - // TODO: test attribute - } + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateAttributeTest.java b/src/test/java/com/formkiq/client/model/UpdateAttributeTest.java index 9af1c4fb4..597464ab1 100644 --- a/src/test/java/com/formkiq/client/model/UpdateAttributeTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateAttributeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for UpdateAttribute */ public class UpdateAttributeTest { - private final UpdateAttribute model = new UpdateAttribute(); - - /** - * Model tests for UpdateAttribute - */ - @Test - public void testUpdateAttribute() { - // TODO: test UpdateAttribute - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'watermark' - */ - @Test - public void watermarkTest() { - // TODO: test watermark - } + private final UpdateAttribute model = new UpdateAttribute(); + + /** + * Model tests for UpdateAttribute + */ + @Test + public void testUpdateAttribute() { + // TODO: test UpdateAttribute + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'watermark' + */ + @Test + public void watermarkTest() { + // TODO: test watermark + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateCaseRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateCaseRequestTest.java index bfb9776f9..105cb22da 100644 --- a/src/test/java/com/formkiq/client/model/UpdateCaseRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateCaseRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for UpdateCaseRequest */ public class UpdateCaseRequestTest { - private final UpdateCaseRequest model = new UpdateCaseRequest(); + private final UpdateCaseRequest model = new UpdateCaseRequest(); - /** - * Model tests for UpdateCaseRequest - */ - @Test - public void testUpdateCaseRequest() { - // TODO: test UpdateCaseRequest - } + /** + * Model tests for UpdateCaseRequest + */ + @Test + public void testUpdateCaseRequest() { + // TODO: test UpdateCaseRequest + } - /** - * Test the property '_case' - */ - @Test - public void _caseTest() { - // TODO: test _case - } + /** + * Test the property '_case' + */ + @Test + public void _caseTest() { + // TODO: test _case + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateCaseResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateCaseResponseTest.java index 7e167841b..039084eae 100644 --- a/src/test/java/com/formkiq/client/model/UpdateCaseResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateCaseResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for UpdateCaseResponse */ public class UpdateCaseResponseTest { - private final UpdateCaseResponse model = new UpdateCaseResponse(); + private final UpdateCaseResponse model = new UpdateCaseResponse(); - /** - * Model tests for UpdateCaseResponse - */ - @Test - public void testUpdateCaseResponse() { - // TODO: test UpdateCaseResponse - } + /** + * Model tests for UpdateCaseResponse + */ + @Test + public void testUpdateCaseResponse() { + // TODO: test UpdateCaseResponse + } - /** - * Test the property 'caseId' - */ - @Test - public void caseIdTest() { - // TODO: test caseId - } + /** + * Test the property 'caseId' + */ + @Test + public void caseIdTest() { + // TODO: test caseId + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateCaseTest.java b/src/test/java/com/formkiq/client/model/UpdateCaseTest.java index 25b890074..b2d706e5e 100644 --- a/src/test/java/com/formkiq/client/model/UpdateCaseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateCaseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,86 +39,86 @@ * Model tests for UpdateCase */ public class UpdateCaseTest { - private final UpdateCase model = new UpdateCase(); + private final UpdateCase model = new UpdateCase(); - /** - * Model tests for UpdateCase - */ - @Test - public void testUpdateCase() { - // TODO: test UpdateCase - } + /** + * Model tests for UpdateCase + */ + @Test + public void testUpdateCase() { + // TODO: test UpdateCase + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateConfigurationRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateConfigurationRequestTest.java index cd1c16de5..81c8fb647 100644 --- a/src/test/java/com/formkiq/client/model/UpdateConfigurationRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateConfigurationRequestTest.java @@ -1,18 +1,26 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ package com.formkiq.client.model; +import com.formkiq.client.model.DocumentConfig; import com.formkiq.client.model.DocusignConfig; import com.formkiq.client.model.GoogleConfig; import com.formkiq.client.model.OcrConfig; @@ -30,78 +38,86 @@ * Model tests for UpdateConfigurationRequest */ public class UpdateConfigurationRequestTest { - private final UpdateConfigurationRequest model = new UpdateConfigurationRequest(); + private final UpdateConfigurationRequest model = new UpdateConfigurationRequest(); - /** - * Model tests for UpdateConfigurationRequest - */ - @Test - public void testUpdateConfigurationRequest() { - // TODO: test UpdateConfigurationRequest - } + /** + * Model tests for UpdateConfigurationRequest + */ + @Test + public void testUpdateConfigurationRequest() { + // TODO: test UpdateConfigurationRequest + } - /** - * Test the property 'chatGptApiKey' - */ - @Test - public void chatGptApiKeyTest() { - // TODO: test chatGptApiKey - } + /** + * Test the property 'chatGptApiKey' + */ + @Test + public void chatGptApiKeyTest() { + // TODO: test chatGptApiKey + } - /** - * Test the property 'maxContentLengthBytes' - */ - @Test - public void maxContentLengthBytesTest() { - // TODO: test maxContentLengthBytes - } + /** + * Test the property 'maxContentLengthBytes' + */ + @Test + public void maxContentLengthBytesTest() { + // TODO: test maxContentLengthBytes + } - /** - * Test the property 'maxDocuments' - */ - @Test - public void maxDocumentsTest() { - // TODO: test maxDocuments - } + /** + * Test the property 'maxDocuments' + */ + @Test + public void maxDocumentsTest() { + // TODO: test maxDocuments + } - /** - * Test the property 'maxWebhooks' - */ - @Test - public void maxWebhooksTest() { - // TODO: test maxWebhooks - } + /** + * Test the property 'maxWebhooks' + */ + @Test + public void maxWebhooksTest() { + // TODO: test maxWebhooks + } - /** - * Test the property 'notificationEmail' - */ - @Test - public void notificationEmailTest() { - // TODO: test notificationEmail - } + /** + * Test the property 'notificationEmail' + */ + @Test + public void notificationEmailTest() { + // TODO: test notificationEmail + } - /** - * Test the property 'ocr' - */ - @Test - public void ocrTest() { - // TODO: test ocr - } + /** + * Test the property 'document' + */ + @Test + public void documentTest() { + // TODO: test document + } - /** - * Test the property 'google' - */ - @Test - public void googleTest() { - // TODO: test google - } + /** + * Test the property 'ocr' + */ + @Test + public void ocrTest() { + // TODO: test ocr + } - /** - * Test the property 'docusign' - */ - @Test - public void docusignTest() { - // TODO: test docusign - } + /** + * Test the property 'google' + */ + @Test + public void googleTest() { + // TODO: test google + } + + /** + * Test the property 'docusign' + */ + @Test + public void docusignTest() { + // TODO: test docusign + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateConfigurationResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateConfigurationResponseTest.java index 13c1a983d..fffcfd9e0 100644 --- a/src/test/java/com/formkiq/client/model/UpdateConfigurationResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateConfigurationResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for UpdateConfigurationResponse */ public class UpdateConfigurationResponseTest { - private final UpdateConfigurationResponse model = new UpdateConfigurationResponse(); + private final UpdateConfigurationResponse model = new UpdateConfigurationResponse(); - /** - * Model tests for UpdateConfigurationResponse - */ - @Test - public void testUpdateConfigurationResponse() { - // TODO: test UpdateConfigurationResponse - } + /** + * Model tests for UpdateConfigurationResponse + */ + @Test + public void testUpdateConfigurationResponse() { + // TODO: test UpdateConfigurationResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextRequestTest.java index 01ff27224..dca33dff7 100644 --- a/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -35,110 +42,110 @@ * Model tests for UpdateDocumentFulltextRequest */ public class UpdateDocumentFulltextRequestTest { - private final UpdateDocumentFulltextRequest model = new UpdateDocumentFulltextRequest(); - - /** - * Model tests for UpdateDocumentFulltextRequest - */ - @Test - public void testUpdateDocumentFulltextRequest() { - // TODO: test UpdateDocumentFulltextRequest - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'contentUrls' - */ - @Test - public void contentUrlsTest() { - // TODO: test contentUrls - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + private final UpdateDocumentFulltextRequest model = new UpdateDocumentFulltextRequest(); + + /** + * Model tests for UpdateDocumentFulltextRequest + */ + @Test + public void testUpdateDocumentFulltextRequest() { + // TODO: test UpdateDocumentFulltextRequest + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'contentUrls' + */ + @Test + public void contentUrlsTest() { + // TODO: test contentUrls + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextResponseTest.java index 554c0ced3..d771ca1f2 100644 --- a/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateDocumentFulltextResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for UpdateDocumentFulltextResponse */ public class UpdateDocumentFulltextResponseTest { - private final UpdateDocumentFulltextResponse model = new UpdateDocumentFulltextResponse(); + private final UpdateDocumentFulltextResponse model = new UpdateDocumentFulltextResponse(); - /** - * Model tests for UpdateDocumentFulltextResponse - */ - @Test - public void testUpdateDocumentFulltextResponse() { - // TODO: test UpdateDocumentFulltextResponse - } + /** + * Model tests for UpdateDocumentFulltextResponse + */ + @Test + public void testUpdateDocumentFulltextResponse() { + // TODO: test UpdateDocumentFulltextResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateDocumentRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateDocumentRequestTest.java index ccf41a7df..67706ca04 100644 --- a/src/test/java/com/formkiq/client/model/UpdateDocumentRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateDocumentRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -35,126 +42,126 @@ * Model tests for UpdateDocumentRequest */ public class UpdateDocumentRequestTest { - private final UpdateDocumentRequest model = new UpdateDocumentRequest(); - - /** - * Model tests for UpdateDocumentRequest - */ - @Test - public void testUpdateDocumentRequest() { - // TODO: test UpdateDocumentRequest - } - - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } - - /** - * Test the property 'width' - */ - @Test - public void widthTest() { - // TODO: test width - } - - /** - * Test the property 'height' - */ - @Test - public void heightTest() { - // TODO: test height - } - - /** - * Test the property 'deepLinkPath' - */ - @Test - public void deepLinkPathTest() { - // TODO: test deepLinkPath - } - - /** - * Test the property 'contentType' - */ - @Test - public void contentTypeTest() { - // TODO: test contentType - } - - /** - * Test the property 'isBase64' - */ - @Test - public void isBase64Test() { - // TODO: test isBase64 - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'checksum' - */ - @Test - public void checksumTest() { - // TODO: test checksum - } - - /** - * Test the property 'checksumType' - */ - @Test - public void checksumTypeTest() { - // TODO: test checksumType - } - - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } - - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } - - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } - - /** - * Test the property 'actions' - */ - @Test - public void actionsTest() { - // TODO: test actions - } - - /** - * Test the property 'documents' - */ - @Test - public void documentsTest() { - // TODO: test documents - } + private final UpdateDocumentRequest model = new UpdateDocumentRequest(); + + /** + * Model tests for UpdateDocumentRequest + */ + @Test + public void testUpdateDocumentRequest() { + // TODO: test UpdateDocumentRequest + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'width' + */ + @Test + public void widthTest() { + // TODO: test width + } + + /** + * Test the property 'height' + */ + @Test + public void heightTest() { + // TODO: test height + } + + /** + * Test the property 'deepLinkPath' + */ + @Test + public void deepLinkPathTest() { + // TODO: test deepLinkPath + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'isBase64' + */ + @Test + public void isBase64Test() { + // TODO: test isBase64 + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'checksum' + */ + @Test + public void checksumTest() { + // TODO: test checksum + } + + /** + * Test the property 'checksumType' + */ + @Test + public void checksumTypeTest() { + // TODO: test checksumType + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateEntityRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateEntityRequestTest.java index 2fce19d02..875159f39 100644 --- a/src/test/java/com/formkiq/client/model/UpdateEntityRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateEntityRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for UpdateEntityRequest */ public class UpdateEntityRequestTest { - private final UpdateEntityRequest model = new UpdateEntityRequest(); + private final UpdateEntityRequest model = new UpdateEntityRequest(); - /** - * Model tests for UpdateEntityRequest - */ - @Test - public void testUpdateEntityRequest() { - // TODO: test UpdateEntityRequest - } + /** + * Model tests for UpdateEntityRequest + */ + @Test + public void testUpdateEntityRequest() { + // TODO: test UpdateEntityRequest + } - /** - * Test the property 'entity' - */ - @Test - public void entityTest() { - // TODO: test entity - } + /** + * Test the property 'entity' + */ + @Test + public void entityTest() { + // TODO: test entity + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatchTest.java b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatchTest.java index 4545ffe3b..a646573c7 100644 --- a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatchTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatchTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,23 @@ * Model tests for UpdateMatchingDocumentTagsRequestMatch */ public class UpdateMatchingDocumentTagsRequestMatchTest { - private final UpdateMatchingDocumentTagsRequestMatch model = new UpdateMatchingDocumentTagsRequestMatch(); + private final UpdateMatchingDocumentTagsRequestMatch model = + new UpdateMatchingDocumentTagsRequestMatch(); - /** - * Model tests for UpdateMatchingDocumentTagsRequestMatch - */ - @Test - public void testUpdateMatchingDocumentTagsRequestMatch() { - // TODO: test UpdateMatchingDocumentTagsRequestMatch - } + /** + * Model tests for UpdateMatchingDocumentTagsRequestMatch + */ + @Test + public void testUpdateMatchingDocumentTagsRequestMatch() { + // TODO: test UpdateMatchingDocumentTagsRequestMatch + } - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestTest.java index 6ff6a0ebf..8474170b8 100644 --- a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for UpdateMatchingDocumentTagsRequest */ public class UpdateMatchingDocumentTagsRequestTest { - private final UpdateMatchingDocumentTagsRequest model = new UpdateMatchingDocumentTagsRequest(); - - /** - * Model tests for UpdateMatchingDocumentTagsRequest - */ - @Test - public void testUpdateMatchingDocumentTagsRequest() { - // TODO: test UpdateMatchingDocumentTagsRequest - } - - /** - * Test the property 'match' - */ - @Test - public void matchTest() { - // TODO: test match - } - - /** - * Test the property 'update' - */ - @Test - public void updateTest() { - // TODO: test update - } + private final UpdateMatchingDocumentTagsRequest model = new UpdateMatchingDocumentTagsRequest(); + + /** + * Model tests for UpdateMatchingDocumentTagsRequest + */ + @Test + public void testUpdateMatchingDocumentTagsRequest() { + // TODO: test UpdateMatchingDocumentTagsRequest + } + + /** + * Test the property 'match' + */ + @Test + public void matchTest() { + // TODO: test match + } + + /** + * Test the property 'update' + */ + @Test + public void updateTest() { + // TODO: test update + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdateTest.java b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdateTest.java index fa487b5a7..4ceb41e0a 100644 --- a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdateTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdateTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,23 @@ * Model tests for UpdateMatchingDocumentTagsRequestUpdate */ public class UpdateMatchingDocumentTagsRequestUpdateTest { - private final UpdateMatchingDocumentTagsRequestUpdate model = new UpdateMatchingDocumentTagsRequestUpdate(); + private final UpdateMatchingDocumentTagsRequestUpdate model = + new UpdateMatchingDocumentTagsRequestUpdate(); - /** - * Model tests for UpdateMatchingDocumentTagsRequestUpdate - */ - @Test - public void testUpdateMatchingDocumentTagsRequestUpdate() { - // TODO: test UpdateMatchingDocumentTagsRequestUpdate - } + /** + * Model tests for UpdateMatchingDocumentTagsRequestUpdate + */ + @Test + public void testUpdateMatchingDocumentTagsRequestUpdate() { + // TODO: test UpdateMatchingDocumentTagsRequestUpdate + } - /** - * Test the property 'tags' - */ - @Test - public void tagsTest() { - // TODO: test tags - } + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponseTest.java index 4adacb223..03116da1a 100644 --- a/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for UpdateMatchingDocumentTagsResponse */ public class UpdateMatchingDocumentTagsResponseTest { - private final UpdateMatchingDocumentTagsResponse model = new UpdateMatchingDocumentTagsResponse(); + private final UpdateMatchingDocumentTagsResponse model = new UpdateMatchingDocumentTagsResponse(); - /** - * Model tests for UpdateMatchingDocumentTagsResponse - */ - @Test - public void testUpdateMatchingDocumentTagsResponse() { - // TODO: test UpdateMatchingDocumentTagsResponse - } + /** + * Model tests for UpdateMatchingDocumentTagsResponse + */ + @Test + public void testUpdateMatchingDocumentTagsResponse() { + // TODO: test UpdateMatchingDocumentTagsResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateNigoRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateNigoRequestTest.java index 097a290f7..d4775045c 100644 --- a/src/test/java/com/formkiq/client/model/UpdateNigoRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateNigoRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for UpdateNigoRequest */ public class UpdateNigoRequestTest { - private final UpdateNigoRequest model = new UpdateNigoRequest(); + private final UpdateNigoRequest model = new UpdateNigoRequest(); - /** - * Model tests for UpdateNigoRequest - */ - @Test - public void testUpdateNigoRequest() { - // TODO: test UpdateNigoRequest - } + /** + * Model tests for UpdateNigoRequest + */ + @Test + public void testUpdateNigoRequest() { + // TODO: test UpdateNigoRequest + } - /** - * Test the property 'nigo' - */ - @Test - public void nigoTest() { - // TODO: test nigo - } + /** + * Test the property 'nigo' + */ + @Test + public void nigoTest() { + // TODO: test nigo + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateNigoResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateNigoResponseTest.java index 572883654..8e2c636eb 100644 --- a/src/test/java/com/formkiq/client/model/UpdateNigoResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateNigoResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for UpdateNigoResponse */ public class UpdateNigoResponseTest { - private final UpdateNigoResponse model = new UpdateNigoResponse(); + private final UpdateNigoResponse model = new UpdateNigoResponse(); - /** - * Model tests for UpdateNigoResponse - */ - @Test - public void testUpdateNigoResponse() { - // TODO: test UpdateNigoResponse - } + /** + * Model tests for UpdateNigoResponse + */ + @Test + public void testUpdateNigoResponse() { + // TODO: test UpdateNigoResponse + } - /** - * Test the property 'nigoId' - */ - @Test - public void nigoIdTest() { - // TODO: test nigoId - } + /** + * Test the property 'nigoId' + */ + @Test + public void nigoIdTest() { + // TODO: test nigoId + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateNigoTest.java b/src/test/java/com/formkiq/client/model/UpdateNigoTest.java index 420c0f36f..2c87b52fe 100644 --- a/src/test/java/com/formkiq/client/model/UpdateNigoTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateNigoTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,86 +39,86 @@ * Model tests for UpdateNigo */ public class UpdateNigoTest { - private final UpdateNigo model = new UpdateNigo(); + private final UpdateNigo model = new UpdateNigo(); - /** - * Model tests for UpdateNigo - */ - @Test - public void testUpdateNigo() { - // TODO: test UpdateNigo - } + /** + * Model tests for UpdateNigo + */ + @Test + public void testUpdateNigo() { + // TODO: test UpdateNigo + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateResponseTest.java index 5136094c9..f8558ac94 100644 --- a/src/test/java/com/formkiq/client/model/UpdateResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for UpdateResponse */ public class UpdateResponseTest { - private final UpdateResponse model = new UpdateResponse(); + private final UpdateResponse model = new UpdateResponse(); - /** - * Model tests for UpdateResponse - */ - @Test - public void testUpdateResponse() { - // TODO: test UpdateResponse - } + /** + * Model tests for UpdateResponse + */ + @Test + public void testUpdateResponse() { + // TODO: test UpdateResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRuleRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateRuleRequestTest.java index 9d91dccc1..caa23663e 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRuleRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRuleRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for UpdateRuleRequest */ public class UpdateRuleRequestTest { - private final UpdateRuleRequest model = new UpdateRuleRequest(); + private final UpdateRuleRequest model = new UpdateRuleRequest(); - /** - * Model tests for UpdateRuleRequest - */ - @Test - public void testUpdateRuleRequest() { - // TODO: test UpdateRuleRequest - } + /** + * Model tests for UpdateRuleRequest + */ + @Test + public void testUpdateRuleRequest() { + // TODO: test UpdateRuleRequest + } - /** - * Test the property 'rule' - */ - @Test - public void ruleTest() { - // TODO: test rule - } + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRuleResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateRuleResponseTest.java index f59e1da9f..0f2284417 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRuleResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRuleResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for UpdateRuleResponse */ public class UpdateRuleResponseTest { - private final UpdateRuleResponse model = new UpdateRuleResponse(); + private final UpdateRuleResponse model = new UpdateRuleResponse(); - /** - * Model tests for UpdateRuleResponse - */ - @Test - public void testUpdateRuleResponse() { - // TODO: test UpdateRuleResponse - } + /** + * Model tests for UpdateRuleResponse + */ + @Test + public void testUpdateRuleResponse() { + // TODO: test UpdateRuleResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRuleTest.java b/src/test/java/com/formkiq/client/model/UpdateRuleTest.java index ea8bd0837..88445231e 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRuleTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRuleTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,54 +37,54 @@ * Model tests for UpdateRule */ public class UpdateRuleTest { - private final UpdateRule model = new UpdateRule(); + private final UpdateRule model = new UpdateRule(); - /** - * Model tests for UpdateRule - */ - @Test - public void testUpdateRule() { - // TODO: test UpdateRule - } + /** + * Model tests for UpdateRule + */ + @Test + public void testUpdateRule() { + // TODO: test UpdateRule + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } - /** - * Test the property 'conditions' - */ - @Test - public void conditionsTest() { - // TODO: test conditions - } + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRulesetRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateRulesetRequestTest.java index 1a566e8d3..e803f7749 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRulesetRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRulesetRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for UpdateRulesetRequest */ public class UpdateRulesetRequestTest { - private final UpdateRulesetRequest model = new UpdateRulesetRequest(); + private final UpdateRulesetRequest model = new UpdateRulesetRequest(); - /** - * Model tests for UpdateRulesetRequest - */ - @Test - public void testUpdateRulesetRequest() { - // TODO: test UpdateRulesetRequest - } + /** + * Model tests for UpdateRulesetRequest + */ + @Test + public void testUpdateRulesetRequest() { + // TODO: test UpdateRulesetRequest + } - /** - * Test the property 'ruleset' - */ - @Test - public void rulesetTest() { - // TODO: test ruleset - } + /** + * Test the property 'ruleset' + */ + @Test + public void rulesetTest() { + // TODO: test ruleset + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRulesetResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateRulesetResponseTest.java index d5a27fd37..870013ae1 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRulesetResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRulesetResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for UpdateRulesetResponse */ public class UpdateRulesetResponseTest { - private final UpdateRulesetResponse model = new UpdateRulesetResponse(); + private final UpdateRulesetResponse model = new UpdateRulesetResponse(); - /** - * Model tests for UpdateRulesetResponse - */ - @Test - public void testUpdateRulesetResponse() { - // TODO: test UpdateRulesetResponse - } + /** + * Model tests for UpdateRulesetResponse + */ + @Test + public void testUpdateRulesetResponse() { + // TODO: test UpdateRulesetResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateRulesetTest.java b/src/test/java/com/formkiq/client/model/UpdateRulesetTest.java index 927e79382..a9d50f05a 100644 --- a/src/test/java/com/formkiq/client/model/UpdateRulesetTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateRulesetTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,46 +36,46 @@ * Model tests for UpdateRuleset */ public class UpdateRulesetTest { - private final UpdateRuleset model = new UpdateRuleset(); + private final UpdateRuleset model = new UpdateRuleset(); - /** - * Model tests for UpdateRuleset - */ - @Test - public void testUpdateRuleset() { - // TODO: test UpdateRuleset - } + /** + * Model tests for UpdateRuleset + */ + @Test + public void testUpdateRuleset() { + // TODO: test UpdateRuleset + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } - /** - * Test the property 'version' - */ - @Test - public void versionTest() { - // TODO: test version - } + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateSiteRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateSiteRequestTest.java index 96a233fab..197cf46e2 100644 --- a/src/test/java/com/formkiq/client/model/UpdateSiteRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateSiteRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for UpdateSiteRequest */ public class UpdateSiteRequestTest { - private final UpdateSiteRequest model = new UpdateSiteRequest(); + private final UpdateSiteRequest model = new UpdateSiteRequest(); - /** - * Model tests for UpdateSiteRequest - */ - @Test - public void testUpdateSiteRequest() { - // TODO: test UpdateSiteRequest - } + /** + * Model tests for UpdateSiteRequest + */ + @Test + public void testUpdateSiteRequest() { + // TODO: test UpdateSiteRequest + } - /** - * Test the property 'site' - */ - @Test - public void siteTest() { - // TODO: test site - } + /** + * Test the property 'site' + */ + @Test + public void siteTest() { + // TODO: test site + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateSiteTest.java b/src/test/java/com/formkiq/client/model/UpdateSiteTest.java index cf8487bbc..1cf1a43fc 100644 --- a/src/test/java/com/formkiq/client/model/UpdateSiteTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateSiteTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for UpdateSite */ public class UpdateSiteTest { - private final UpdateSite model = new UpdateSite(); - - /** - * Model tests for UpdateSite - */ - @Test - public void testUpdateSite() { - // TODO: test UpdateSite - } - - /** - * Test the property 'title' - */ - @Test - public void titleTest() { - // TODO: test title - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + private final UpdateSite model = new UpdateSite(); + + /** + * Model tests for UpdateSite + */ + @Test + public void testUpdateSite() { + // TODO: test UpdateSite + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateTaskRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateTaskRequestTest.java index 5b92de841..c855a5544 100644 --- a/src/test/java/com/formkiq/client/model/UpdateTaskRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateTaskRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,22 +35,22 @@ * Model tests for UpdateTaskRequest */ public class UpdateTaskRequestTest { - private final UpdateTaskRequest model = new UpdateTaskRequest(); + private final UpdateTaskRequest model = new UpdateTaskRequest(); - /** - * Model tests for UpdateTaskRequest - */ - @Test - public void testUpdateTaskRequest() { - // TODO: test UpdateTaskRequest - } + /** + * Model tests for UpdateTaskRequest + */ + @Test + public void testUpdateTaskRequest() { + // TODO: test UpdateTaskRequest + } - /** - * Test the property 'task' - */ - @Test - public void taskTest() { - // TODO: test task - } + /** + * Test the property 'task' + */ + @Test + public void taskTest() { + // TODO: test task + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateTaskResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateTaskResponseTest.java index 989755304..045a72499 100644 --- a/src/test/java/com/formkiq/client/model/UpdateTaskResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateTaskResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for UpdateTaskResponse */ public class UpdateTaskResponseTest { - private final UpdateTaskResponse model = new UpdateTaskResponse(); + private final UpdateTaskResponse model = new UpdateTaskResponse(); - /** - * Model tests for UpdateTaskResponse - */ - @Test - public void testUpdateTaskResponse() { - // TODO: test UpdateTaskResponse - } + /** + * Model tests for UpdateTaskResponse + */ + @Test + public void testUpdateTaskResponse() { + // TODO: test UpdateTaskResponse + } - /** - * Test the property 'taskId' - */ - @Test - public void taskIdTest() { - // TODO: test taskId - } + /** + * Test the property 'taskId' + */ + @Test + public void taskIdTest() { + // TODO: test taskId + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateTaskTest.java b/src/test/java/com/formkiq/client/model/UpdateTaskTest.java index 8ad636dea..aa72395af 100644 --- a/src/test/java/com/formkiq/client/model/UpdateTaskTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateTaskTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,86 +39,86 @@ * Model tests for UpdateTask */ public class UpdateTaskTest { - private final UpdateTask model = new UpdateTask(); + private final UpdateTask model = new UpdateTask(); - /** - * Model tests for UpdateTask - */ - @Test - public void testUpdateTask() { - // TODO: test UpdateTask - } + /** + * Model tests for UpdateTask + */ + @Test + public void testUpdateTask() { + // TODO: test UpdateTask + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'plannedStartDate' - */ - @Test - public void plannedStartDateTest() { - // TODO: test plannedStartDate - } + /** + * Test the property 'plannedStartDate' + */ + @Test + public void plannedStartDateTest() { + // TODO: test plannedStartDate + } - /** - * Test the property 'startDate' - */ - @Test - public void startDateTest() { - // TODO: test startDate - } + /** + * Test the property 'startDate' + */ + @Test + public void startDateTest() { + // TODO: test startDate + } - /** - * Test the property 'endDate' - */ - @Test - public void endDateTest() { - // TODO: test endDate - } + /** + * Test the property 'endDate' + */ + @Test + public void endDateTest() { + // TODO: test endDate + } - /** - * Test the property 'dueDate' - */ - @Test - public void dueDateTest() { - // TODO: test dueDate - } + /** + * Test the property 'dueDate' + */ + @Test + public void dueDateTest() { + // TODO: test dueDate + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } - /** - * Test the property 'metadata' - */ - @Test - public void metadataTest() { - // TODO: test metadata - } + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } - /** - * Test the property 'documentIds' - */ - @Test - public void documentIdsTest() { - // TODO: test documentIds - } + /** + * Test the property 'documentIds' + */ + @Test + public void documentIdsTest() { + // TODO: test documentIds + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateWorkflowRequestTest.java b/src/test/java/com/formkiq/client/model/UpdateWorkflowRequestTest.java index 23feb998b..3336a8f96 100644 --- a/src/test/java/com/formkiq/client/model/UpdateWorkflowRequestTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateWorkflowRequestTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,38 +35,38 @@ * Model tests for UpdateWorkflowRequest */ public class UpdateWorkflowRequestTest { - private final UpdateWorkflowRequest model = new UpdateWorkflowRequest(); + private final UpdateWorkflowRequest model = new UpdateWorkflowRequest(); - /** - * Model tests for UpdateWorkflowRequest - */ - @Test - public void testUpdateWorkflowRequest() { - // TODO: test UpdateWorkflowRequest - } + /** + * Model tests for UpdateWorkflowRequest + */ + @Test + public void testUpdateWorkflowRequest() { + // TODO: test UpdateWorkflowRequest + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } diff --git a/src/test/java/com/formkiq/client/model/UpdateWorkflowResponseTest.java b/src/test/java/com/formkiq/client/model/UpdateWorkflowResponseTest.java index 3a0c7e6a1..c6d020616 100644 --- a/src/test/java/com/formkiq/client/model/UpdateWorkflowResponseTest.java +++ b/src/test/java/com/formkiq/client/model/UpdateWorkflowResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,22 +34,22 @@ * Model tests for UpdateWorkflowResponse */ public class UpdateWorkflowResponseTest { - private final UpdateWorkflowResponse model = new UpdateWorkflowResponse(); + private final UpdateWorkflowResponse model = new UpdateWorkflowResponse(); - /** - * Model tests for UpdateWorkflowResponse - */ - @Test - public void testUpdateWorkflowResponse() { - // TODO: test UpdateWorkflowResponse - } + /** + * Model tests for UpdateWorkflowResponse + */ + @Test + public void testUpdateWorkflowResponse() { + // TODO: test UpdateWorkflowResponse + } - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } } diff --git a/src/test/java/com/formkiq/client/model/UserActivityChangesTest.java b/src/test/java/com/formkiq/client/model/UserActivityChangesTest.java index 141bc97aa..afefd9137 100644 --- a/src/test/java/com/formkiq/client/model/UserActivityChangesTest.java +++ b/src/test/java/com/formkiq/client/model/UserActivityChangesTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for UserActivityChanges */ public class UserActivityChangesTest { - private final UserActivityChanges model = new UserActivityChanges(); - - /** - * Model tests for UserActivityChanges - */ - @Test - public void testUserActivityChanges() { - // TODO: test UserActivityChanges - } - - /** - * Test the property 'oldValue' - */ - @Test - public void oldValueTest() { - // TODO: test oldValue - } - - /** - * Test the property 'newValue' - */ - @Test - public void newValueTest() { - // TODO: test newValue - } + private final UserActivityChanges model = new UserActivityChanges(); + + /** + * Model tests for UserActivityChanges + */ + @Test + public void testUserActivityChanges() { + // TODO: test UserActivityChanges + } + + /** + * Test the property 'oldValue' + */ + @Test + public void oldValueTest() { + // TODO: test oldValue + } + + /** + * Test the property 'newValue' + */ + @Test + public void newValueTest() { + // TODO: test newValue + } } diff --git a/src/test/java/com/formkiq/client/model/UserActivityTest.java b/src/test/java/com/formkiq/client/model/UserActivityTest.java index cf9927151..ddcef9fab 100644 --- a/src/test/java/com/formkiq/client/model/UserActivityTest.java +++ b/src/test/java/com/formkiq/client/model/UserActivityTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,54 +39,54 @@ * Model tests for UserActivity */ public class UserActivityTest { - private final UserActivity model = new UserActivity(); + private final UserActivity model = new UserActivity(); - /** - * Model tests for UserActivity - */ - @Test - public void testUserActivity() { - // TODO: test UserActivity - } + /** + * Model tests for UserActivity + */ + @Test + public void testUserActivity() { + // TODO: test UserActivity + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'document' - */ - @Test - public void documentTest() { - // TODO: test document - } + /** + * Test the property 'document' + */ + @Test + public void documentTest() { + // TODO: test document + } - /** - * Test the property 'changes' - */ - @Test - public void changesTest() { - // TODO: test changes - } + /** + * Test the property 'changes' + */ + @Test + public void changesTest() { + // TODO: test changes + } } diff --git a/src/test/java/com/formkiq/client/model/UserActivityTypeTest.java b/src/test/java/com/formkiq/client/model/UserActivityTypeTest.java index 4e68c42d8..baee034de 100644 --- a/src/test/java/com/formkiq/client/model/UserActivityTypeTest.java +++ b/src/test/java/com/formkiq/client/model/UserActivityTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for UserActivityType */ public class UserActivityTypeTest { - /** - * Model tests for UserActivityType - */ - @Test - public void testUserActivityType() { - // TODO: test UserActivityType - } + /** + * Model tests for UserActivityType + */ + @Test + public void testUserActivityType() { + // TODO: test UserActivityType + } } diff --git a/src/test/java/com/formkiq/client/model/UserAttributesTest.java b/src/test/java/com/formkiq/client/model/UserAttributesTest.java index 084fed930..1edb483de 100644 --- a/src/test/java/com/formkiq/client/model/UserAttributesTest.java +++ b/src/test/java/com/formkiq/client/model/UserAttributesTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,142 +34,142 @@ * Model tests for UserAttributes */ public class UserAttributesTest { - private final UserAttributes model = new UserAttributes(); - - /** - * Model tests for UserAttributes - */ - @Test - public void testUserAttributes() { - // TODO: test UserAttributes - } - - /** - * Test the property 'address' - */ - @Test - public void addressTest() { - // TODO: test address - } - - /** - * Test the property 'birthdate' - */ - @Test - public void birthdateTest() { - // TODO: test birthdate - } - - /** - * Test the property 'familyName' - */ - @Test - public void familyNameTest() { - // TODO: test familyName - } - - /** - * Test the property 'gender' - */ - @Test - public void genderTest() { - // TODO: test gender - } - - /** - * Test the property 'givenName' - */ - @Test - public void givenNameTest() { - // TODO: test givenName - } - - /** - * Test the property 'locale' - */ - @Test - public void localeTest() { - // TODO: test locale - } - - /** - * Test the property 'middleName' - */ - @Test - public void middleNameTest() { - // TODO: test middleName - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'nickname' - */ - @Test - public void nicknameTest() { - // TODO: test nickname - } - - /** - * Test the property 'phoneNumber' - */ - @Test - public void phoneNumberTest() { - // TODO: test phoneNumber - } - - /** - * Test the property 'picture' - */ - @Test - public void pictureTest() { - // TODO: test picture - } - - /** - * Test the property 'preferredUsername' - */ - @Test - public void preferredUsernameTest() { - // TODO: test preferredUsername - } - - /** - * Test the property 'profile' - */ - @Test - public void profileTest() { - // TODO: test profile - } - - /** - * Test the property 'zoneinfo' - */ - @Test - public void zoneinfoTest() { - // TODO: test zoneinfo - } - - /** - * Test the property 'updatedAt' - */ - @Test - public void updatedAtTest() { - // TODO: test updatedAt - } - - /** - * Test the property 'website' - */ - @Test - public void websiteTest() { - // TODO: test website - } + private final UserAttributes model = new UserAttributes(); + + /** + * Model tests for UserAttributes + */ + @Test + public void testUserAttributes() { + // TODO: test UserAttributes + } + + /** + * Test the property 'address' + */ + @Test + public void addressTest() { + // TODO: test address + } + + /** + * Test the property 'birthdate' + */ + @Test + public void birthdateTest() { + // TODO: test birthdate + } + + /** + * Test the property 'familyName' + */ + @Test + public void familyNameTest() { + // TODO: test familyName + } + + /** + * Test the property 'gender' + */ + @Test + public void genderTest() { + // TODO: test gender + } + + /** + * Test the property 'givenName' + */ + @Test + public void givenNameTest() { + // TODO: test givenName + } + + /** + * Test the property 'locale' + */ + @Test + public void localeTest() { + // TODO: test locale + } + + /** + * Test the property 'middleName' + */ + @Test + public void middleNameTest() { + // TODO: test middleName + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'nickname' + */ + @Test + public void nicknameTest() { + // TODO: test nickname + } + + /** + * Test the property 'phoneNumber' + */ + @Test + public void phoneNumberTest() { + // TODO: test phoneNumber + } + + /** + * Test the property 'picture' + */ + @Test + public void pictureTest() { + // TODO: test picture + } + + /** + * Test the property 'preferredUsername' + */ + @Test + public void preferredUsernameTest() { + // TODO: test preferredUsername + } + + /** + * Test the property 'profile' + */ + @Test + public void profileTest() { + // TODO: test profile + } + + /** + * Test the property 'zoneinfo' + */ + @Test + public void zoneinfoTest() { + // TODO: test zoneinfo + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'website' + */ + @Test + public void websiteTest() { + // TODO: test website + } } diff --git a/src/test/java/com/formkiq/client/model/UserSharePermissionTest.java b/src/test/java/com/formkiq/client/model/UserSharePermissionTest.java index 712d7620e..a8f932b47 100644 --- a/src/test/java/com/formkiq/client/model/UserSharePermissionTest.java +++ b/src/test/java/com/formkiq/client/model/UserSharePermissionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for UserSharePermission */ public class UserSharePermissionTest { - /** - * Model tests for UserSharePermission - */ - @Test - public void testUserSharePermission() { - // TODO: test UserSharePermission - } + /** + * Model tests for UserSharePermission + */ + @Test + public void testUserSharePermission() { + // TODO: test UserSharePermission + } } diff --git a/src/test/java/com/formkiq/client/model/UserSharePermissionTypeTest.java b/src/test/java/com/formkiq/client/model/UserSharePermissionTypeTest.java index 13af5a4a4..a17dc27af 100644 --- a/src/test/java/com/formkiq/client/model/UserSharePermissionTypeTest.java +++ b/src/test/java/com/formkiq/client/model/UserSharePermissionTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for UserSharePermissionType */ public class UserSharePermissionTypeTest { - /** - * Model tests for UserSharePermissionType - */ - @Test - public void testUserSharePermissionType() { - // TODO: test UserSharePermissionType - } + /** + * Model tests for UserSharePermissionType + */ + @Test + public void testUserSharePermissionType() { + // TODO: test UserSharePermissionType + } } diff --git a/src/test/java/com/formkiq/client/model/UserShareTest.java b/src/test/java/com/formkiq/client/model/UserShareTest.java index 576a6b703..f86d9c5fa 100644 --- a/src/test/java/com/formkiq/client/model/UserShareTest.java +++ b/src/test/java/com/formkiq/client/model/UserShareTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -31,78 +38,78 @@ * Model tests for UserShare */ public class UserShareTest { - private final UserShare model = new UserShare(); + private final UserShare model = new UserShare(); - /** - * Model tests for UserShare - */ - @Test - public void testUserShare() { - // TODO: test UserShare - } + /** + * Model tests for UserShare + */ + @Test + public void testUserShare() { + // TODO: test UserShare + } - /** - * Test the property 'group' - */ - @Test - public void groupTest() { - // TODO: test group - } + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } - /** - * Test the property 'shareKey' - */ - @Test - public void shareKeyTest() { - // TODO: test shareKey - } + /** + * Test the property 'shareKey' + */ + @Test + public void shareKeyTest() { + // TODO: test shareKey + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'permissions' - */ - @Test - public void permissionsTest() { - // TODO: test permissions - } + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } - /** - * Test the property 'siteId' - */ - @Test - public void siteIdTest() { - // TODO: test siteId - } + /** + * Test the property 'siteId' + */ + @Test + public void siteIdTest() { + // TODO: test siteId + } - /** - * Test the property 'path' - */ - @Test - public void pathTest() { - // TODO: test path - } + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'permissionType' - */ - @Test - public void permissionTypeTest() { - // TODO: test permissionType - } + /** + * Test the property 'permissionType' + */ + @Test + public void permissionTypeTest() { + // TODO: test permissionType + } } diff --git a/src/test/java/com/formkiq/client/model/UserTest.java b/src/test/java/com/formkiq/client/model/UserTest.java index 521485257..d9c2cabf9 100644 --- a/src/test/java/com/formkiq/client/model/UserTest.java +++ b/src/test/java/com/formkiq/client/model/UserTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,70 +35,70 @@ * Model tests for User */ public class UserTest { - private final User model = new User(); + private final User model = new User(); - /** - * Model tests for User - */ - @Test - public void testUser() { - // TODO: test User - } + /** + * Model tests for User + */ + @Test + public void testUser() { + // TODO: test User + } - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } - /** - * Test the property 'email' - */ - @Test - public void emailTest() { - // TODO: test email - } + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } - /** - * Test the property 'enabled' - */ - @Test - public void enabledTest() { - // TODO: test enabled - } + /** + * Test the property 'enabled' + */ + @Test + public void enabledTest() { + // TODO: test enabled + } - /** - * Test the property 'userStatus' - */ - @Test - public void userStatusTest() { - // TODO: test userStatus - } + /** + * Test the property 'userStatus' + */ + @Test + public void userStatusTest() { + // TODO: test userStatus + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'lastModifiedDate' - */ - @Test - public void lastModifiedDateTest() { - // TODO: test lastModifiedDate - } + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } - /** - * Test the property 'attributes' - */ - @Test - public void attributesTest() { - // TODO: test attributes - } + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } } diff --git a/src/test/java/com/formkiq/client/model/ValidationErrorTest.java b/src/test/java/com/formkiq/client/model/ValidationErrorTest.java index 5dbff5baf..fc4cc168b 100644 --- a/src/test/java/com/formkiq/client/model/ValidationErrorTest.java +++ b/src/test/java/com/formkiq/client/model/ValidationErrorTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,30 +34,30 @@ * Model tests for ValidationError */ public class ValidationErrorTest { - private final ValidationError model = new ValidationError(); - - /** - * Model tests for ValidationError - */ - @Test - public void testValidationError() { - // TODO: test ValidationError - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'error' - */ - @Test - public void errorTest() { - // TODO: test error - } + private final ValidationError model = new ValidationError(); + + /** + * Model tests for ValidationError + */ + @Test + public void testValidationError() { + // TODO: test ValidationError + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'error' + */ + @Test + public void errorTest() { + // TODO: test error + } } diff --git a/src/test/java/com/formkiq/client/model/ValidationErrorsResponseTest.java b/src/test/java/com/formkiq/client/model/ValidationErrorsResponseTest.java index 885ec5038..ce1fa5014 100644 --- a/src/test/java/com/formkiq/client/model/ValidationErrorsResponseTest.java +++ b/src/test/java/com/formkiq/client/model/ValidationErrorsResponseTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,22 +37,22 @@ * Model tests for ValidationErrorsResponse */ public class ValidationErrorsResponseTest { - private final ValidationErrorsResponse model = new ValidationErrorsResponse(); + private final ValidationErrorsResponse model = new ValidationErrorsResponse(); - /** - * Model tests for ValidationErrorsResponse - */ - @Test - public void testValidationErrorsResponse() { - // TODO: test ValidationErrorsResponse - } + /** + * Model tests for ValidationErrorsResponse + */ + @Test + public void testValidationErrorsResponse() { + // TODO: test ValidationErrorsResponse + } - /** - * Test the property 'errors' - */ - @Test - public void errorsTest() { - // TODO: test errors - } + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } } diff --git a/src/test/java/com/formkiq/client/model/WatermarkPositionTest.java b/src/test/java/com/formkiq/client/model/WatermarkPositionTest.java index c877d35ec..dbe2dad04 100644 --- a/src/test/java/com/formkiq/client/model/WatermarkPositionTest.java +++ b/src/test/java/com/formkiq/client/model/WatermarkPositionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,46 +37,46 @@ * Model tests for WatermarkPosition */ public class WatermarkPositionTest { - private final WatermarkPosition model = new WatermarkPosition(); + private final WatermarkPosition model = new WatermarkPosition(); - /** - * Model tests for WatermarkPosition - */ - @Test - public void testWatermarkPosition() { - // TODO: test WatermarkPosition - } + /** + * Model tests for WatermarkPosition + */ + @Test + public void testWatermarkPosition() { + // TODO: test WatermarkPosition + } - /** - * Test the property 'xAnchor' - */ - @Test - public void xAnchorTest() { - // TODO: test xAnchor - } + /** + * Test the property 'xAnchor' + */ + @Test + public void xAnchorTest() { + // TODO: test xAnchor + } - /** - * Test the property 'yAnchor' - */ - @Test - public void yAnchorTest() { - // TODO: test yAnchor - } + /** + * Test the property 'yAnchor' + */ + @Test + public void yAnchorTest() { + // TODO: test yAnchor + } - /** - * Test the property 'xOffset' - */ - @Test - public void xOffsetTest() { - // TODO: test xOffset - } + /** + * Test the property 'xOffset' + */ + @Test + public void xOffsetTest() { + // TODO: test xOffset + } - /** - * Test the property 'yOffset' - */ - @Test - public void yOffsetTest() { - // TODO: test yOffset - } + /** + * Test the property 'yOffset' + */ + @Test + public void yOffsetTest() { + // TODO: test yOffset + } } diff --git a/src/test/java/com/formkiq/client/model/WatermarkPositionXAnchorTest.java b/src/test/java/com/formkiq/client/model/WatermarkPositionXAnchorTest.java index 6debc557f..2c85decf3 100644 --- a/src/test/java/com/formkiq/client/model/WatermarkPositionXAnchorTest.java +++ b/src/test/java/com/formkiq/client/model/WatermarkPositionXAnchorTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for WatermarkPositionXAnchor */ public class WatermarkPositionXAnchorTest { - /** - * Model tests for WatermarkPositionXAnchor - */ - @Test - public void testWatermarkPositionXAnchor() { - // TODO: test WatermarkPositionXAnchor - } + /** + * Model tests for WatermarkPositionXAnchor + */ + @Test + public void testWatermarkPositionXAnchor() { + // TODO: test WatermarkPositionXAnchor + } } diff --git a/src/test/java/com/formkiq/client/model/WatermarkPositionYAnchorTest.java b/src/test/java/com/formkiq/client/model/WatermarkPositionYAnchorTest.java index a1d86f6f0..e6938674c 100644 --- a/src/test/java/com/formkiq/client/model/WatermarkPositionYAnchorTest.java +++ b/src/test/java/com/formkiq/client/model/WatermarkPositionYAnchorTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for WatermarkPositionYAnchor */ public class WatermarkPositionYAnchorTest { - /** - * Model tests for WatermarkPositionYAnchor - */ - @Test - public void testWatermarkPositionYAnchor() { - // TODO: test WatermarkPositionYAnchor - } + /** + * Model tests for WatermarkPositionYAnchor + */ + @Test + public void testWatermarkPositionYAnchor() { + // TODO: test WatermarkPositionYAnchor + } } diff --git a/src/test/java/com/formkiq/client/model/WatermarkScaleTest.java b/src/test/java/com/formkiq/client/model/WatermarkScaleTest.java index f0f22497c..fb407b1cc 100644 --- a/src/test/java/com/formkiq/client/model/WatermarkScaleTest.java +++ b/src/test/java/com/formkiq/client/model/WatermarkScaleTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for WatermarkScale */ public class WatermarkScaleTest { - /** - * Model tests for WatermarkScale - */ - @Test - public void testWatermarkScale() { - // TODO: test WatermarkScale - } + /** + * Model tests for WatermarkScale + */ + @Test + public void testWatermarkScale() { + // TODO: test WatermarkScale + } } diff --git a/src/test/java/com/formkiq/client/model/WatermarkTest.java b/src/test/java/com/formkiq/client/model/WatermarkTest.java index 0ecc57623..ad6035445 100644 --- a/src/test/java/com/formkiq/client/model/WatermarkTest.java +++ b/src/test/java/com/formkiq/client/model/WatermarkTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -30,62 +37,62 @@ * Model tests for Watermark */ public class WatermarkTest { - private final Watermark model = new Watermark(); + private final Watermark model = new Watermark(); - /** - * Model tests for Watermark - */ - @Test - public void testWatermark() { - // TODO: test Watermark - } + /** + * Model tests for Watermark + */ + @Test + public void testWatermark() { + // TODO: test Watermark + } - /** - * Test the property 'fontSize' - */ - @Test - public void fontSizeTest() { - // TODO: test fontSize - } + /** + * Test the property 'fontSize' + */ + @Test + public void fontSizeTest() { + // TODO: test fontSize + } - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } - /** - * Test the property 'rotation' - */ - @Test - public void rotationTest() { - // TODO: test rotation - } + /** + * Test the property 'rotation' + */ + @Test + public void rotationTest() { + // TODO: test rotation + } - /** - * Test the property 'imageDocumentId' - */ - @Test - public void imageDocumentIdTest() { - // TODO: test imageDocumentId - } + /** + * Test the property 'imageDocumentId' + */ + @Test + public void imageDocumentIdTest() { + // TODO: test imageDocumentId + } - /** - * Test the property 'scale' - */ - @Test - public void scaleTest() { - // TODO: test scale - } + /** + * Test the property 'scale' + */ + @Test + public void scaleTest() { + // TODO: test scale + } - /** - * Test the property 'position' - */ - @Test - public void positionTest() { - // TODO: test position - } + /** + * Test the property 'position' + */ + @Test + public void positionTest() { + // TODO: test position + } } diff --git a/src/test/java/com/formkiq/client/model/WebhookTagTest.java b/src/test/java/com/formkiq/client/model/WebhookTagTest.java index 207069c4d..a5d25d5a7 100644 --- a/src/test/java/com/formkiq/client/model/WebhookTagTest.java +++ b/src/test/java/com/formkiq/client/model/WebhookTagTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -27,62 +34,62 @@ * Model tests for WebhookTag */ public class WebhookTagTest { - private final WebhookTag model = new WebhookTag(); + private final WebhookTag model = new WebhookTag(); - /** - * Model tests for WebhookTag - */ - @Test - public void testWebhookTag() { - // TODO: test WebhookTag - } + /** + * Model tests for WebhookTag + */ + @Test + public void testWebhookTag() { + // TODO: test WebhookTag + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'webhookId' - */ - @Test - public void webhookIdTest() { - // TODO: test webhookId - } + /** + * Test the property 'webhookId' + */ + @Test + public void webhookIdTest() { + // TODO: test webhookId + } - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowDocumentTest.java b/src/test/java/com/formkiq/client/model/WorkflowDocumentTest.java index d813fe42c..ae157af18 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowDocumentTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowDocumentTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for WorkflowDocument */ public class WorkflowDocumentTest { - private final WorkflowDocument model = new WorkflowDocument(); - - /** - * Model tests for WorkflowDocument - */ - @Test - public void testWorkflowDocument() { - // TODO: test WorkflowDocument - } - - /** - * Test the property 'workflow' - */ - @Test - public void workflowTest() { - // TODO: test workflow - } - - /** - * Test the property 'document' - */ - @Test - public void documentTest() { - // TODO: test document - } + private final WorkflowDocument model = new WorkflowDocument(); + + /** + * Model tests for WorkflowDocument + */ + @Test + public void testWorkflowDocument() { + // TODO: test WorkflowDocument + } + + /** + * Test the property 'workflow' + */ + @Test + public void workflowTest() { + // TODO: test workflow + } + + /** + * Test the property 'document' + */ + @Test + public void documentTest() { + // TODO: test document + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowQueueTest.java b/src/test/java/com/formkiq/client/model/WorkflowQueueTest.java index 1c6d479a5..8f95663ba 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowQueueTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowQueueTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -29,30 +36,30 @@ * Model tests for WorkflowQueue */ public class WorkflowQueueTest { - private final WorkflowQueue model = new WorkflowQueue(); - - /** - * Model tests for WorkflowQueue - */ - @Test - public void testWorkflowQueue() { - // TODO: test WorkflowQueue - } - - /** - * Test the property 'queueId' - */ - @Test - public void queueIdTest() { - // TODO: test queueId - } - - /** - * Test the property 'approvalGroups' - */ - @Test - public void approvalGroupsTest() { - // TODO: test approvalGroups - } + private final WorkflowQueue model = new WorkflowQueue(); + + /** + * Model tests for WorkflowQueue + */ + @Test + public void testWorkflowQueue() { + // TODO: test WorkflowQueue + } + + /** + * Test the property 'queueId' + */ + @Test + public void queueIdTest() { + // TODO: test queueId + } + + /** + * Test the property 'approvalGroups' + */ + @Test + public void approvalGroupsTest() { + // TODO: test approvalGroups + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowStatusTest.java b/src/test/java/com/formkiq/client/model/WorkflowStatusTest.java index 2250222f0..250666845 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowStatusTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowStatusTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for WorkflowStatus */ public class WorkflowStatusTest { - /** - * Model tests for WorkflowStatus - */ - @Test - public void testWorkflowStatus() { - // TODO: test WorkflowStatus - } + /** + * Model tests for WorkflowStatus + */ + @Test + public void testWorkflowStatus() { + // TODO: test WorkflowStatus + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTest.java b/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTest.java index f6cbd19a0..f873f897e 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,30 +35,30 @@ * Model tests for WorkflowStepDecision */ public class WorkflowStepDecisionTest { - private final WorkflowStepDecision model = new WorkflowStepDecision(); - - /** - * Model tests for WorkflowStepDecision - */ - @Test - public void testWorkflowStepDecision() { - // TODO: test WorkflowStepDecision - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'nextStepId' - */ - @Test - public void nextStepIdTest() { - // TODO: test nextStepId - } + private final WorkflowStepDecision model = new WorkflowStepDecision(); + + /** + * Model tests for WorkflowStepDecision + */ + @Test + public void testWorkflowStepDecision() { + // TODO: test WorkflowStepDecision + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'nextStepId' + */ + @Test + public void nextStepIdTest() { + // TODO: test nextStepId + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTypeTest.java b/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTypeTest.java index 590fe45b3..540791d08 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTypeTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowStepDecisionTypeTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -21,12 +28,12 @@ * Model tests for WorkflowStepDecisionType */ public class WorkflowStepDecisionTypeTest { - /** - * Model tests for WorkflowStepDecisionType - */ - @Test - public void testWorkflowStepDecisionType() { - // TODO: test WorkflowStepDecisionType - } + /** + * Model tests for WorkflowStepDecisionType + */ + @Test + public void testWorkflowStepDecisionType() { + // TODO: test WorkflowStepDecisionType + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowStepTest.java b/src/test/java/com/formkiq/client/model/WorkflowStepTest.java index d7ab889e9..65f584770 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowStepTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowStepTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -32,46 +39,46 @@ * Model tests for WorkflowStep */ public class WorkflowStepTest { - private final WorkflowStep model = new WorkflowStep(); + private final WorkflowStep model = new WorkflowStep(); - /** - * Model tests for WorkflowStep - */ - @Test - public void testWorkflowStep() { - // TODO: test WorkflowStep - } + /** + * Model tests for WorkflowStep + */ + @Test + public void testWorkflowStep() { + // TODO: test WorkflowStep + } - /** - * Test the property 'stepId' - */ - @Test - public void stepIdTest() { - // TODO: test stepId - } + /** + * Test the property 'stepId' + */ + @Test + public void stepIdTest() { + // TODO: test stepId + } - /** - * Test the property 'action' - */ - @Test - public void actionTest() { - // TODO: test action - } + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } - /** - * Test the property 'queue' - */ - @Test - public void queueTest() { - // TODO: test queue - } + /** + * Test the property 'queue' + */ + @Test + public void queueTest() { + // TODO: test queue + } - /** - * Test the property 'decisions' - */ - @Test - public void decisionsTest() { - // TODO: test decisions - } + /** + * Test the property 'decisions' + */ + @Test + public void decisionsTest() { + // TODO: test decisions + } } diff --git a/src/test/java/com/formkiq/client/model/WorkflowSummaryTest.java b/src/test/java/com/formkiq/client/model/WorkflowSummaryTest.java index a96241762..4cd95999b 100644 --- a/src/test/java/com/formkiq/client/model/WorkflowSummaryTest.java +++ b/src/test/java/com/formkiq/client/model/WorkflowSummaryTest.java @@ -1,13 +1,20 @@ /* - * FormKiQ API JWT - * Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the API spec file with any application that supports the OpenAPI specification. Open API OAuth Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open API IAM Specification - https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key + * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You + * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction + * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API + * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API + * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the + * API spec file with any application that supports the OpenAPI specification. Open API OAuth + * Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open + * API IAM Specification - + * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ## + * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key * - * The version of the OpenAPI document: 1.18.1 - * Contact: support@formkiq.com + * The version of the OpenAPI document: 1.18.1 Contact: support@formkiq.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. + * https://openapi-generator.tech Do not edit the class manually. */ @@ -28,70 +35,70 @@ * Model tests for WorkflowSummary */ public class WorkflowSummaryTest { - private final WorkflowSummary model = new WorkflowSummary(); + private final WorkflowSummary model = new WorkflowSummary(); - /** - * Model tests for WorkflowSummary - */ - @Test - public void testWorkflowSummary() { - // TODO: test WorkflowSummary - } + /** + * Model tests for WorkflowSummary + */ + @Test + public void testWorkflowSummary() { + // TODO: test WorkflowSummary + } - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } - /** - * Test the property 'workflowId' - */ - @Test - public void workflowIdTest() { - // TODO: test workflowId - } + /** + * Test the property 'workflowId' + */ + @Test + public void workflowIdTest() { + // TODO: test workflowId + } - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } - /** - * Test the property 'insertedDate' - */ - @Test - public void insertedDateTest() { - // TODO: test insertedDate - } + /** + * Test the property 'insertedDate' + */ + @Test + public void insertedDateTest() { + // TODO: test insertedDate + } - /** - * Test the property 'userId' - */ - @Test - public void userIdTest() { - // TODO: test userId - } + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } - /** - * Test the property 'inUse' - */ - @Test - public void inUseTest() { - // TODO: test inUse - } + /** + * Test the property 'inUse' + */ + @Test + public void inUseTest() { + // TODO: test inUse + } - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } } From afebf5a857fd6afeec624713c90244be0cd31aaf Mon Sep 17 00:00:00 2001 From: Mike Friesen Date: Mon, 1 Dec 2025 23:28:41 -0600 Subject: [PATCH 3/4] update --- README.md | 9 +++-- api/openapi.yaml | 11 +++++ build.sbt | 2 +- docs/DocumentsApi.md | 6 ++- .../com/formkiq/client/api/DocumentsApi.java | 40 +++++++++++++------ .../formkiq/client/invoker/ApiException.java | 2 +- .../formkiq/client/invoker/Configuration.java | 2 +- .../java/com/formkiq/client/invoker/Pair.java | 2 +- .../client/invoker/ServerConfiguration.java | 2 +- .../client/invoker/ServerVariable.java | 2 +- .../formkiq/client/invoker/StringUtil.java | 2 +- .../formkiq/client/invoker/auth/AWS4Auth.java | 2 +- .../client/invoker/auth/ApiKeyAuth.java | 2 +- .../client/invoker/auth/Authentication.java | 2 +- .../client/invoker/auth/HttpBearerAuth.java | 2 +- .../formkiq/client/invoker/auth/OAuth.java | 2 +- .../client/invoker/auth/OAuthFlow.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../com/formkiq/client/model/Activity.java | 2 +- .../com/formkiq/client/model/AddAction.java | 2 +- .../client/model/AddActionParameters.java | 2 +- .../client/model/AddApiKeyRequest.java | 2 +- .../client/model/AddApiKeyResponse.java | 2 +- .../formkiq/client/model/AddAttribute.java | 2 +- .../client/model/AddAttributeRequest.java | 2 +- .../model/AddAttributeSchemaOptional.java | 2 +- .../model/AddAttributeSchemaRequired.java | 2 +- .../com/formkiq/client/model/AddCase.java | 2 +- .../formkiq/client/model/AddCaseRequest.java | 2 +- .../formkiq/client/model/AddCaseResponse.java | 2 +- .../client/model/AddChildDocument.java | 2 +- .../model/AddChildDocumentResponse.java | 2 +- .../client/model/AddClassification.java | 2 +- .../model/AddClassificationRequest.java | 2 +- .../model/AddClassificationResponse.java | 2 +- .../model/AddDocumentActionsRequest.java | 2 +- .../model/AddDocumentActionsResponse.java | 2 +- .../AddDocumentActionsRetryResponse.java | 2 +- .../client/model/AddDocumentAttribute.java | 2 +- .../AddDocumentAttributeClassification.java | 2 +- .../model/AddDocumentAttributeEntity.java | 2 +- .../AddDocumentAttributeRelationship.java | 2 +- .../model/AddDocumentAttributeStandard.java | 2 +- .../model/AddDocumentAttributeValue.java | 2 +- .../model/AddDocumentAttributesRequest.java | 2 +- .../model/AddDocumentFulltextRequest.java | 2 +- .../model/AddDocumentFulltextResponse.java | 2 +- .../model/AddDocumentGenerateRequest.java | 2 +- .../model/AddDocumentGenerateResponse.java | 2 +- .../client/model/AddDocumentMetadata.java | 2 +- .../client/model/AddDocumentOcrRequest.java | 2 +- .../client/model/AddDocumentOcrResponse.java | 2 +- .../client/model/AddDocumentRequest.java | 2 +- .../client/model/AddDocumentResponse.java | 2 +- .../formkiq/client/model/AddDocumentSync.java | 2 +- .../client/model/AddDocumentSyncRequest.java | 2 +- .../formkiq/client/model/AddDocumentTag.java | 2 +- .../client/model/AddDocumentTagsRequest.java | 2 +- .../model/AddDocumentUploadRequest.java | 2 +- .../AddDocumentWorkflowDecisionsRequest.java | 2 +- .../AddDocumentWorkflowDecisionsResponse.java | 2 +- .../model/AddDocumentWorkflowRequest.java | 2 +- .../model/AddDocumentWorkflowResponse.java | 2 +- .../model/AddDocusignEnvelopesRequest.java | 2 +- .../model/AddDocusignEnvelopesResponse.java | 2 +- .../AddDocusignRecipientViewRequest.java | 2 +- .../AddDocusignRecipientViewResponse.java | 2 +- .../com/formkiq/client/model/AddEntity.java | 2 +- .../client/model/AddEntityAttribute.java | 2 +- .../client/model/AddEntityRequest.java | 2 +- .../client/model/AddEntityResponse.java | 2 +- .../formkiq/client/model/AddEntityType.java | 2 +- .../client/model/AddEntityTypeRequest.java | 2 +- .../client/model/AddEntityTypeResponse.java | 2 +- .../client/model/AddFolderPermission.java | 2 +- .../client/model/AddFolderRequest.java | 2 +- .../client/model/AddFolderResponse.java | 2 +- .../client/model/AddFolderShareRequest.java | 2 +- .../client/model/AddFolderShareResponse.java | 2 +- .../model/AddGoogleDocumentExportRequest.java | 2 +- .../AddGoogleDocumentExportResponse.java | 2 +- .../com/formkiq/client/model/AddGroup.java | 2 +- .../formkiq/client/model/AddGroupRequest.java | 2 +- .../client/model/AddLocaleRequest.java | 2 +- .../AddLocaleResourceClassificationItem.java | 2 +- .../model/AddLocaleResourceInterfaceItem.java | 2 +- .../model/AddLocaleResourceItemRequest.java | 2 +- .../model/AddLocaleResourceItemResponse.java | 2 +- .../model/AddLocaleResourceSchemaItem.java | 2 +- .../com/formkiq/client/model/AddMapping.java | 2 +- .../client/model/AddMappingRequest.java | 2 +- .../client/model/AddMappingResponse.java | 2 +- .../com/formkiq/client/model/AddNigo.java | 2 +- .../formkiq/client/model/AddNigoRequest.java | 2 +- .../formkiq/client/model/AddNigoResponse.java | 2 +- .../formkiq/client/model/AddQueueRequest.java | 2 +- .../client/model/AddQueueResponse.java | 2 +- .../model/AddReindexDocumentRequest.java | 2 +- .../formkiq/client/model/AddResourceItem.java | 2 +- .../com/formkiq/client/model/AddResponse.java | 2 +- .../com/formkiq/client/model/AddRule.java | 2 +- .../formkiq/client/model/AddRuleRequest.java | 2 +- .../formkiq/client/model/AddRuleResponse.java | 2 +- .../com/formkiq/client/model/AddRuleset.java | 2 +- .../client/model/AddRulesetRequest.java | 2 +- .../client/model/AddRulesetResponse.java | 2 +- .../com/formkiq/client/model/AddShare.java | 2 +- .../com/formkiq/client/model/AddSite.java | 2 +- .../formkiq/client/model/AddSiteRequest.java | 2 +- .../com/formkiq/client/model/AddTask.java | 2 +- .../formkiq/client/model/AddTaskRequest.java | 2 +- .../formkiq/client/model/AddTaskResponse.java | 2 +- .../com/formkiq/client/model/AddUser.java | 2 +- .../formkiq/client/model/AddUserRequest.java | 2 +- .../client/model/AddWebhookRequest.java | 2 +- .../client/model/AddWebhookResponse.java | 2 +- .../client/model/AddWebhookTagRequest.java | 2 +- .../client/model/AddWorkflowRequest.java | 2 +- .../client/model/AddWorkflowResponse.java | 2 +- .../formkiq/client/model/AddWorkflowStep.java | 2 +- .../client/model/AddWorkflowStepDecision.java | 2 +- .../client/model/AddWorkflowStepQueue.java | 2 +- .../java/com/formkiq/client/model/ApiKey.java | 2 +- .../com/formkiq/client/model/Attribute.java | 2 +- .../model/AttributeSchemaCompositeKey.java | 2 +- .../client/model/AttributeSchemaOptional.java | 2 +- .../client/model/AttributeSchemaRequired.java | 2 +- .../formkiq/client/model/ChildDocument.java | 2 +- .../formkiq/client/model/Classification.java | 2 +- .../client/model/ClassificationSummary.java | 2 +- .../client/model/DataClassification.java | 2 +- .../model/DataClassificationAttribute.java | 2 +- .../client/model/DeleteApiKeyResponse.java | 2 +- .../model/DeleteCaseDocumentResponse.java | 2 +- .../model/DeleteCaseNigoDocumentResponse.java | 2 +- .../client/model/DeleteCaseNigoResponse.java | 2 +- .../client/model/DeleteCaseResponse.java | 2 +- .../model/DeleteCaseTaskDocumentResponse.java | 2 +- .../client/model/DeleteCaseTaskResponse.java | 2 +- .../client/model/DeleteFolderResponse.java | 2 +- .../client/model/DeleteFulltextResponse.java | 2 +- .../client/model/DeleteIndicesResponse.java | 2 +- .../client/model/DeleteQueueResponse.java | 2 +- .../formkiq/client/model/DeleteResponse.java | 2 +- .../client/model/DeleteRuleResponse.java | 2 +- .../client/model/DeleteRulesetResponse.java | 2 +- .../client/model/DeleteShareResponse.java | 2 +- .../client/model/DeleteWorkflowResponse.java | 2 +- .../com/formkiq/client/model/Document.java | 2 +- .../formkiq/client/model/DocumentAction.java | 2 +- .../client/model/DocumentAttribute.java | 2 +- .../formkiq/client/model/DocumentConfig.java | 2 +- .../model/DocumentConfigContentTypes.java | 2 +- .../model/DocumentFulltextAttribute.java | 2 +- .../model/DocumentFulltextAttributeEq.java | 2 +- .../client/model/DocumentFulltextRequest.java | 2 +- .../model/DocumentFulltextResponse.java | 2 +- .../client/model/DocumentFulltextSearch.java | 2 +- .../client/model/DocumentFulltextTag.java | 2 +- .../model/DocumentGenerateDataSource.java | 2 +- .../model/DocumentGenerateInsertDocument.java | 2 +- .../com/formkiq/client/model/DocumentId.java | 2 +- .../client/model/DocumentMetadata.java | 2 +- .../formkiq/client/model/DocumentSearch.java | 2 +- .../client/model/DocumentSearchAttribute.java | 2 +- .../model/DocumentSearchMatchAttribute.java | 2 +- .../client/model/DocumentSearchMatchTag.java | 2 +- .../client/model/DocumentSearchMeta.java | 2 +- .../client/model/DocumentSearchRange.java | 2 +- .../client/model/DocumentSearchRequest.java | 2 +- .../client/model/DocumentSearchResponse.java | 2 +- .../client/model/DocumentSearchTag.java | 2 +- .../client/model/DocumentSearchTags.java | 2 +- .../formkiq/client/model/DocumentSync.java | 2 +- .../com/formkiq/client/model/DocumentTag.java | 2 +- .../formkiq/client/model/DocumentVersion.java | 2 +- .../client/model/DocumentWorkflow.java | 2 +- .../model/DocumentsCompressRequest.java | 2 +- .../model/DocumentsCompressResponse.java | 2 +- .../formkiq/client/model/DocusignConfig.java | 2 +- .../client/model/DocusignInpersonSigner.java | 2 +- .../client/model/DocusignNotification.java | 2 +- .../DocusignNotificationExpirations.java | 2 +- .../model/DocusignNotificationReminders.java | 2 +- .../client/model/DocusignRecipientView.java | 2 +- .../client/model/DocusignSignHereTabs.java | 2 +- .../formkiq/client/model/DocusignSigner.java | 2 +- .../client/model/DocusignSigningTabs.java | 2 +- .../java/com/formkiq/client/model/Entity.java | 2 +- .../formkiq/client/model/EntityAttribute.java | 2 +- .../com/formkiq/client/model/EntityType.java | 2 +- .../java/com/formkiq/client/model/Error.java | 2 +- .../formkiq/client/model/ErrorsResponse.java | 2 +- .../client/model/FolderPermission.java | 2 +- .../client/model/FulltextAttribute.java | 2 +- .../client/model/FulltextSearchItem.java | 2 +- .../client/model/GetActivitesResponse.java | 2 +- .../client/model/GetApiKeysResponse.java | 2 +- .../GetAttributeAllowedValuesResponse.java | 2 +- .../client/model/GetAttributeResponse.java | 2 +- .../client/model/GetAttributesResponse.java | 2 +- .../model/GetCaseDocumentsResponse.java | 2 +- .../client/model/GetCaseNigoResponse.java | 2 +- .../client/model/GetCaseNigosResponse.java | 2 +- .../formkiq/client/model/GetCaseResponse.java | 2 +- .../client/model/GetCaseTaskResponse.java | 2 +- .../client/model/GetCaseTasksResponse.java | 2 +- .../client/model/GetCasesResponse.java | 2 +- .../model/GetClassificationResponse.java | 2 +- .../model/GetClassificationsResponse.java | 2 +- .../model/GetConfigurationResponse.java | 2 +- .../model/GetDocumentActionsResponse.java | 2 +- .../model/GetDocumentAttributeResponse.java | 2 +- .../model/GetDocumentAttributesResponse.java | 2 +- .../model/GetDocumentContentResponse.java | 2 +- ...GetDocumentDataClassificationResponse.java | 2 +- .../model/GetDocumentFulltextResponse.java | 2 +- .../client/model/GetDocumentOcrResponse.java | 2 +- .../client/model/GetDocumentResponse.java | 2 +- .../client/model/GetDocumentSyncResponse.java | 2 +- .../client/model/GetDocumentTagResponse.java | 2 +- .../client/model/GetDocumentTagsResponse.java | 2 +- .../client/model/GetDocumentUrlResponse.java | 2 +- .../model/GetDocumentVersionsResponse.java | 2 +- .../model/GetDocumentWorkflowResponse.java | 2 +- .../model/GetDocumentWorkflowsResponse.java | 2 +- .../client/model/GetDocumentsResponse.java | 2 +- .../client/model/GetEntitiesResponse.java | 2 +- .../client/model/GetEntityResponse.java | 2 +- .../client/model/GetEntityTypeResponse.java | 2 +- .../client/model/GetEntityTypesResponse.java | 2 +- .../client/model/GetExaminePdfResponse.java | 2 +- .../model/GetExaminePdfUrlResponse.java | 2 +- .../model/GetFolderPermissionsResponse.java | 2 +- .../client/model/GetFoldersResponse.java | 2 +- .../client/model/GetGroupResponse.java | 2 +- .../client/model/GetGroupsResponse.java | 2 +- .../model/GetLocaleResourceItemResponse.java | 2 +- .../model/GetLocaleResourceItemsResponse.java | 2 +- .../client/model/GetLocalesResponse.java | 2 +- .../client/model/GetMalwareScanResponse.java | 2 +- .../client/model/GetMappingResponse.java | 2 +- .../client/model/GetMappingsResponse.java | 2 +- .../model/GetOpaAccessPoliciesResponse.java | 2 +- .../GetOpaAccessPolicyItemsResponse.java | 2 +- .../model/GetOpaAccessPolicyResponse.java | 2 +- .../model/GetOpenSearchIndexResponse.java | 2 +- .../model/GetOpenSearchIndiceResponse.java | 2 +- ...tOpenSearchSnapshotRepositoryResponse.java | 2 +- .../model/GetOpenSearchSnapshotResponse.java | 2 +- .../client/model/GetQueueResponse.java | 2 +- .../client/model/GetQueuesResponse.java | 2 +- .../formkiq/client/model/GetRuleResponse.java | 2 +- .../client/model/GetRulesResponse.java | 2 +- .../client/model/GetRulesetResponse.java | 2 +- .../client/model/GetRulesetsResponse.java | 2 +- .../client/model/GetSiteGroupResponse.java | 2 +- .../client/model/GetSiteGroupsResponse.java | 2 +- .../client/model/GetSitesResponse.java | 2 +- .../client/model/GetSitesSchemaResponse.java | 2 +- .../model/GetUserActivitesResponse.java | 2 +- .../client/model/GetUserGroupsResponse.java | 2 +- .../formkiq/client/model/GetUserResponse.java | 2 +- .../client/model/GetUserSharesResponse.java | 2 +- .../client/model/GetUsersInGroupResponse.java | 2 +- .../client/model/GetUsersResponse.java | 2 +- .../client/model/GetVersionResponse.java | 2 +- .../client/model/GetWebhookResponse.java | 2 +- .../client/model/GetWebhookTagsResponse.java | 2 +- .../client/model/GetWebhooksResponse.java | 2 +- .../model/GetWorkflowDocumentsResponse.java | 2 +- .../GetWorkflowQueueDocumentsResponse.java | 2 +- .../client/model/GetWorkflowResponse.java | 2 +- .../client/model/GetWorkflowsResponse.java | 2 +- .../formkiq/client/model/GoogleConfig.java | 2 +- .../java/com/formkiq/client/model/Group.java | 2 +- .../client/model/IndexFolderMoveRequest.java | 2 +- .../client/model/IndexFolderMoveResponse.java | 2 +- .../com/formkiq/client/model/IndexSearch.java | 2 +- .../client/model/IndexSearchRequest.java | 2 +- .../client/model/IndexSearchResponse.java | 2 +- .../com/formkiq/client/model/LocaleInfo.java | 2 +- .../client/model/MalwareScanResult.java | 2 +- .../com/formkiq/client/model/Mapping.java | 2 +- .../client/model/MappingAttribute.java | 2 +- .../client/model/MatchDocumentTag.java | 2 +- .../com/formkiq/client/model/ModelCase.java | 2 +- .../java/com/formkiq/client/model/Nigo.java | 2 +- .../com/formkiq/client/model/OcrConfig.java | 2 +- .../formkiq/client/model/OcrKeyValues.java | 2 +- .../com/formkiq/client/model/OcrTable.java | 2 +- .../formkiq/client/model/OcrTableData.java | 2 +- .../com/formkiq/client/model/OpaPolicy.java | 2 +- .../client/model/OpaPolicyAttribute.java | 2 +- .../client/model/OpaPolicyAttributeEq.java | 2 +- .../client/model/OpaPolicyAttributeGt.java | 2 +- .../client/model/OpaPolicyAttributeGte.java | 2 +- .../client/model/OpaPolicyAttributeIn.java | 2 +- .../client/model/OpaPolicyAttributeInput.java | 2 +- .../client/model/OpaPolicyAttributeLt.java | 2 +- .../client/model/OpaPolicyAttributeLte.java | 2 +- .../client/model/OpaPolicyAttributeNeq.java | 2 +- .../client/model/OpaPolicyAttributeNotIn.java | 2 +- .../formkiq/client/model/OpaPolicyInput.java | 2 +- .../client/model/OpaPolicyInputMethod.java | 2 +- .../client/model/OpaPolicyInputResource.java | 2 +- .../formkiq/client/model/OpaPolicyItem.java | 2 +- .../formkiq/client/model/OpenSearchAlias.java | 2 +- .../formkiq/client/model/OpenSearchIndex.java | 2 +- .../client/model/OpenSearchIndexSetting.java | 2 +- .../client/model/OpenSearchS3Repository.java | 2 +- .../client/model/OpenSearchSnapshot.java | 2 +- .../model/OpenSearchSnapshotFailure.java | 2 +- .../client/model/OpenSearchSnapshotShard.java | 2 +- .../com/formkiq/client/model/PdfDocument.java | 2 +- .../client/model/PdfDocumentField.java | 2 +- .../client/model/QueryFulltextResponse.java | 2 +- .../java/com/formkiq/client/model/Queue.java | 2 +- .../formkiq/client/model/ResourceItem.java | 2 +- .../java/com/formkiq/client/model/Rule.java | 2 +- .../formkiq/client/model/RuleCondition.java | 2 +- .../client/model/RuleConditionMust.java | 2 +- .../com/formkiq/client/model/Ruleset.java | 2 +- .../client/model/SchemaAttributes.java | 2 +- .../client/model/SearchResponseFields.java | 2 +- .../client/model/SearchResultDocument.java | 2 +- .../model/SearchResultDocumentAttribute.java | 2 +- .../model/SetClassificationRequest.java | 2 +- .../model/SetDocumentAttributeRequest.java | 2 +- .../model/SetDocumentAttributesRequest.java | 2 +- .../SetDocumentDataClassificationRequest.java | 2 +- ...SetDocumentDataClassificationResponse.java | 2 +- .../model/SetDocumentFulltextRequest.java | 2 +- .../model/SetDocumentFulltextResponse.java | 2 +- .../client/model/SetDocumentOcrRequest.java | 2 +- .../model/SetDocumentRestoreResponse.java | 2 +- .../model/SetDocumentTagKeyRequest.java | 2 +- .../model/SetDocumentVersionRequest.java | 2 +- .../model/SetDocumentVersionResponse.java | 2 +- .../model/SetFolderPermissionsRequest.java | 2 +- .../model/SetGroupPermissionsRequest.java | 2 +- .../model/SetLocaleResourceItemRequest.java | 2 +- .../client/model/SetMappingRequest.java | 2 +- .../model/SetOpaAccessPolicyItemsRequest.java | 2 +- .../model/SetOpenSearchIndexRequest.java | 2 +- .../model/SetOpenSearchIndexResponse.java | 2 +- .../model/SetOpenSearchIndiceRequest.java | 2 +- .../com/formkiq/client/model/SetResponse.java | 2 +- .../client/model/SetSchemaAttributes.java | 2 +- .../client/model/SetSitesSchemaRequest.java | 2 +- .../client/model/SetWorkflowRequest.java | 2 +- .../client/model/SetWorkflowResponse.java | 2 +- .../java/com/formkiq/client/model/Site.java | 2 +- .../com/formkiq/client/model/SiteConfig.java | 2 +- .../com/formkiq/client/model/SiteGroup.java | 2 +- .../com/formkiq/client/model/SiteUsage.java | 2 +- .../formkiq/client/model/StringFormat.java | 2 +- .../java/com/formkiq/client/model/Task.java | 2 +- .../formkiq/client/model/TextractQuery.java | 2 +- .../formkiq/client/model/UpdateAttribute.java | 2 +- .../client/model/UpdateAttributeRequest.java | 2 +- .../com/formkiq/client/model/UpdateCase.java | 2 +- .../client/model/UpdateCaseRequest.java | 2 +- .../client/model/UpdateCaseResponse.java | 2 +- .../model/UpdateConfigurationRequest.java | 2 +- .../model/UpdateConfigurationResponse.java | 2 +- .../model/UpdateDocumentFulltextRequest.java | 2 +- .../model/UpdateDocumentFulltextResponse.java | 2 +- .../client/model/UpdateDocumentRequest.java | 2 +- .../client/model/UpdateEntityRequest.java | 2 +- .../UpdateMatchingDocumentTagsRequest.java | 2 +- ...pdateMatchingDocumentTagsRequestMatch.java | 2 +- ...dateMatchingDocumentTagsRequestUpdate.java | 2 +- .../UpdateMatchingDocumentTagsResponse.java | 2 +- .../com/formkiq/client/model/UpdateNigo.java | 2 +- .../client/model/UpdateNigoRequest.java | 2 +- .../client/model/UpdateNigoResponse.java | 2 +- .../formkiq/client/model/UpdateResponse.java | 2 +- .../com/formkiq/client/model/UpdateRule.java | 2 +- .../client/model/UpdateRuleRequest.java | 2 +- .../client/model/UpdateRuleResponse.java | 2 +- .../formkiq/client/model/UpdateRuleset.java | 2 +- .../client/model/UpdateRulesetRequest.java | 2 +- .../client/model/UpdateRulesetResponse.java | 2 +- .../com/formkiq/client/model/UpdateSite.java | 2 +- .../client/model/UpdateSiteRequest.java | 2 +- .../com/formkiq/client/model/UpdateTask.java | 2 +- .../client/model/UpdateTaskRequest.java | 2 +- .../client/model/UpdateTaskResponse.java | 2 +- .../client/model/UpdateWorkflowRequest.java | 2 +- .../client/model/UpdateWorkflowResponse.java | 2 +- .../java/com/formkiq/client/model/User.java | 2 +- .../formkiq/client/model/UserActivity.java | 2 +- .../client/model/UserActivityChanges.java | 2 +- .../formkiq/client/model/UserAttributes.java | 2 +- .../com/formkiq/client/model/UserShare.java | 2 +- .../formkiq/client/model/ValidationError.java | 2 +- .../model/ValidationErrorsResponse.java | 2 +- .../com/formkiq/client/model/Watermark.java | 2 +- .../client/model/WatermarkPosition.java | 2 +- .../com/formkiq/client/model/WebhookTag.java | 2 +- .../client/model/WorkflowDocument.java | 2 +- .../formkiq/client/model/WorkflowQueue.java | 2 +- .../formkiq/client/model/WorkflowStep.java | 2 +- .../client/model/WorkflowStepDecision.java | 2 +- .../formkiq/client/model/WorkflowSummary.java | 2 +- .../formkiq/client/api/DocumentsApiTest.java | 3 +- 407 files changed, 452 insertions(+), 421 deletions(-) diff --git a/README.md b/README.md index 2174dedc3..0c5b7bcca 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Add this dependency to your project's POM: com.formkiq client - 1.18.0 + 1.18.1 compile ``` @@ -80,7 +80,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.formkiq:client:1.18.0" + implementation "com.formkiq:client:1.18.1" } ``` @@ -94,7 +94,7 @@ mvn clean package Then manually install the following JARs: -* `target/client-1.18.0.jar` +* `target/client-1.18.1.jar` * `target/lib/*.jar` ## Getting Started @@ -513,6 +513,7 @@ Class | Method | HTTP request | Description - [AddWorkflowStepDecision](docs/AddWorkflowStepDecision.md) - [AddWorkflowStepQueue](docs/AddWorkflowStepQueue.md) - [ApiKey](docs/ApiKey.md) + - [ApiKeyPermission](docs/ApiKeyPermission.md) - [Attribute](docs/Attribute.md) - [AttributeDataType](docs/AttributeDataType.md) - [AttributeSchemaCompositeKey](docs/AttributeSchemaCompositeKey.md) @@ -548,6 +549,8 @@ Class | Method | HTTP request | Description - [DocumentActionStatus](docs/DocumentActionStatus.md) - [DocumentActionType](docs/DocumentActionType.md) - [DocumentAttribute](docs/DocumentAttribute.md) + - [DocumentConfig](docs/DocumentConfig.md) + - [DocumentConfigContentTypes](docs/DocumentConfigContentTypes.md) - [DocumentFulltextAttribute](docs/DocumentFulltextAttribute.md) - [DocumentFulltextAttributeEq](docs/DocumentFulltextAttributeEq.md) - [DocumentFulltextRequest](docs/DocumentFulltextRequest.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index b1b86ca90..bdf5ae030 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -2430,6 +2430,17 @@ paths: schema: type: string style: form + - description: Specify a restricted document projection. Use 'DOCUMENT_ID_ONLY' + to return only the documentId attribute. + explode: true + in: query + name: projection + required: false + schema: + enum: + - DOCUMENT_ID_ONLY + type: string + style: form - description: Limit Results explode: true in: query diff --git a/build.sbt b/build.sbt index 7be2c71fa..490cdc4cb 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.formkiq", name := "client", - version := "1.18.0", + version := "1.18.1", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/DocumentsApi.md b/docs/DocumentsApi.md index 6107fec2c..3673aa5d3 100644 --- a/docs/DocumentsApi.md +++ b/docs/DocumentsApi.md @@ -952,7 +952,7 @@ No authorization required # **getDocuments** -> GetDocumentsResponse getDocuments(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit) +> GetDocumentsResponse getDocuments(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, projection, limit) Get Documents listing @@ -984,9 +984,10 @@ public class Example { String tz = "tz_example"; // String | UTC offset to apply to date parameter (IE: -0600) String next = "next_example"; // String | Next page of results token String previous = "previous_example"; // String | Previous page of results token + String projection = "DOCUMENT_ID_ONLY"; // String | Specify a restricted document projection. Use 'DOCUMENT_ID_ONLY' to return only the documentId attribute. String limit = "10"; // String | Limit Results try { - GetDocumentsResponse result = apiInstance.getDocuments(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, limit); + GetDocumentsResponse result = apiInstance.getDocuments(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, projection, limit); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DocumentsApi#getDocuments"); @@ -1011,6 +1012,7 @@ public class Example { | **tz** | **String**| UTC offset to apply to date parameter (IE: -0600) | [optional] | | **next** | **String**| Next page of results token | [optional] | | **previous** | **String**| Previous page of results token | [optional] | +| **projection** | **String**| Specify a restricted document projection. Use 'DOCUMENT_ID_ONLY' to return only the documentId attribute. | [optional] [enum: DOCUMENT_ID_ONLY] | | **limit** | **String**| Limit Results | [optional] [default to 10] | ### Return type diff --git a/src/main/java/com/formkiq/client/api/DocumentsApi.java b/src/main/java/com/formkiq/client/api/DocumentsApi.java index 1b602e358..d9de0b960 100644 --- a/src/main/java/com/formkiq/client/api/DocumentsApi.java +++ b/src/main/java/com/formkiq/client/api/DocumentsApi.java @@ -3045,6 +3045,8 @@ public okhttp3.Call getDocumentUrlAsync(@javax.annotation.Nonnull String documen * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) * @param next Next page of results token (optional) * @param previous Previous page of results token (optional) + * @param projection Specify a restricted document projection. Use 'DOCUMENT_ID_ONLY' to + * return only the documentId attribute. (optional) * @param limit Limit Results (optional, default to 10) * @param _callback Callback for upload/download progress * @return Call to execute @@ -3071,8 +3073,8 @@ public okhttp3.Call getDocumentsCall(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { + @javax.annotation.Nullable String previous, @javax.annotation.Nullable String projection, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] {}; @@ -3129,6 +3131,10 @@ public okhttp3.Call getDocumentsCall(@javax.annotation.Nullable String siteId, localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); } + if (projection != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("projection", projection)); + } + if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } @@ -3157,10 +3163,10 @@ private okhttp3.Call getDocumentsValidateBeforeCall(@javax.annotation.Nullable S @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { + @javax.annotation.Nullable String previous, @javax.annotation.Nullable String projection, + @javax.annotation.Nullable String limit, final ApiCallback _callback) throws ApiException { return getDocumentsCall(siteId, actionStatus, syncStatus, deleted, date, tz, next, previous, - limit, _callback); + projection, limit, _callback); } @@ -3176,6 +3182,8 @@ private okhttp3.Call getDocumentsValidateBeforeCall(@javax.annotation.Nullable S * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) * @param next Next page of results token (optional) * @param previous Previous page of results token (optional) + * @param projection Specify a restricted document projection. Use 'DOCUMENT_ID_ONLY' to + * return only the documentId attribute. (optional) * @param limit Limit Results (optional, default to 10) * @return GetDocumentsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the @@ -3202,10 +3210,10 @@ public GetDocumentsResponse getDocuments(@javax.annotation.Nullable String siteI @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit) - throws ApiException { + @javax.annotation.Nullable String previous, @javax.annotation.Nullable String projection, + @javax.annotation.Nullable String limit) throws ApiException { ApiResponse localVarResp = getDocumentsWithHttpInfo(siteId, actionStatus, - syncStatus, deleted, date, tz, next, previous, limit); + syncStatus, deleted, date, tz, next, previous, projection, limit); return localVarResp.getData(); } @@ -3221,6 +3229,8 @@ public GetDocumentsResponse getDocuments(@javax.annotation.Nullable String siteI * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) * @param next Next page of results token (optional) * @param previous Previous page of results token (optional) + * @param projection Specify a restricted document projection. Use 'DOCUMENT_ID_ONLY' to + * return only the documentId attribute. (optional) * @param limit Limit Results (optional, default to 10) * @return ApiResponse<GetDocumentsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the @@ -3248,9 +3258,10 @@ public ApiResponse getDocumentsWithHttpInfo( @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, - @javax.annotation.Nullable String limit) throws ApiException { + @javax.annotation.Nullable String projection, @javax.annotation.Nullable String limit) + throws ApiException { okhttp3.Call localVarCall = getDocumentsValidateBeforeCall(siteId, actionStatus, syncStatus, - deleted, date, tz, next, previous, limit, null); + deleted, date, tz, next, previous, projection, limit, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3267,6 +3278,8 @@ public ApiResponse getDocumentsWithHttpInfo( * @param tz UTC offset to apply to date parameter (IE: -0600) (optional) * @param next Next page of results token (optional) * @param previous Previous page of results token (optional) + * @param projection Specify a restricted document projection. Use 'DOCUMENT_ID_ONLY' to + * return only the documentId attribute. (optional) * @param limit Limit Results (optional, default to 10) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -3293,11 +3306,12 @@ public okhttp3.Call getDocumentsAsync(@javax.annotation.Nullable String siteId, @javax.annotation.Nullable String actionStatus, @javax.annotation.Nullable String syncStatus, @javax.annotation.Nullable Boolean deleted, @javax.annotation.Nullable String date, @javax.annotation.Nullable String tz, @javax.annotation.Nullable String next, - @javax.annotation.Nullable String previous, @javax.annotation.Nullable String limit, - final ApiCallback _callback) throws ApiException { + @javax.annotation.Nullable String previous, @javax.annotation.Nullable String projection, + @javax.annotation.Nullable String limit, final ApiCallback _callback) + throws ApiException { okhttp3.Call localVarCall = getDocumentsValidateBeforeCall(siteId, actionStatus, syncStatus, - deleted, date, tz, next, previous, limit, _callback); + deleted, date, tz, next, previous, projection, limit, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/com/formkiq/client/invoker/ApiException.java b/src/main/java/com/formkiq/client/invoker/ApiException.java index cdbe4d2e2..e2fdab7c4 100644 --- a/src/main/java/com/formkiq/client/invoker/ApiException.java +++ b/src/main/java/com/formkiq/client/invoker/ApiException.java @@ -32,7 +32,7 @@ */ @SuppressWarnings("serial") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/src/main/java/com/formkiq/client/invoker/Configuration.java b/src/main/java/com/formkiq/client/invoker/Configuration.java index 53c77b0e9..8e517fee9 100644 --- a/src/main/java/com/formkiq/client/invoker/Configuration.java +++ b/src/main/java/com/formkiq/client/invoker/Configuration.java @@ -25,7 +25,7 @@ import java.util.function.Supplier; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Configuration { public static final String VERSION = "1.18.1"; diff --git a/src/main/java/com/formkiq/client/invoker/Pair.java b/src/main/java/com/formkiq/client/invoker/Pair.java index be411603f..131b83b08 100644 --- a/src/main/java/com/formkiq/client/invoker/Pair.java +++ b/src/main/java/com/formkiq/client/invoker/Pair.java @@ -21,7 +21,7 @@ package com.formkiq.client.invoker; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Pair { private final String name; diff --git a/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java b/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java index 1531e5e1e..b759f005b 100644 --- a/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java +++ b/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java @@ -26,7 +26,7 @@ * Representing a Server configuration. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ServerConfiguration { public String URL; diff --git a/src/main/java/com/formkiq/client/invoker/ServerVariable.java b/src/main/java/com/formkiq/client/invoker/ServerVariable.java index e1797c55a..b03abcf3e 100644 --- a/src/main/java/com/formkiq/client/invoker/ServerVariable.java +++ b/src/main/java/com/formkiq/client/invoker/ServerVariable.java @@ -26,7 +26,7 @@ * Representing a Server Variable for server URL template substitution. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ServerVariable { public String description; diff --git a/src/main/java/com/formkiq/client/invoker/StringUtil.java b/src/main/java/com/formkiq/client/invoker/StringUtil.java index 08c315ad6..d95148a7d 100644 --- a/src/main/java/com/formkiq/client/invoker/StringUtil.java +++ b/src/main/java/com/formkiq/client/invoker/StringUtil.java @@ -24,7 +24,7 @@ import java.util.Iterator; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class StringUtil { /** diff --git a/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java b/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java index 64e5c6a70..a29552dd7 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java @@ -46,7 +46,7 @@ import okio.Buffer; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AWS4Auth implements Authentication { diff --git a/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java b/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java index cb0d4b184..0284b8ddc 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java @@ -28,7 +28,7 @@ import java.util.List; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ApiKeyAuth implements Authentication { private final String location; diff --git a/src/main/java/com/formkiq/client/invoker/auth/Authentication.java b/src/main/java/com/formkiq/client/invoker/auth/Authentication.java index e609f45f4..5fa3b35e5 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/Authentication.java +++ b/src/main/java/com/formkiq/client/invoker/auth/Authentication.java @@ -28,7 +28,7 @@ import java.util.List; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public interface Authentication { /** diff --git a/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java b/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java index c1996e3ac..d16c314ca 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java @@ -30,7 +30,7 @@ import java.util.function.Supplier; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class HttpBearerAuth implements Authentication { private final String scheme; diff --git a/src/main/java/com/formkiq/client/invoker/auth/OAuth.java b/src/main/java/com/formkiq/client/invoker/auth/OAuth.java index d44504764..ac7adb218 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/OAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/OAuth.java @@ -28,7 +28,7 @@ import java.util.List; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java b/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java index 099a46c66..bf506a2c4 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java +++ b/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java @@ -24,7 +24,7 @@ * OAuth flows that are supported by this client */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public enum OAuthFlow { ACCESS_CODE, // called authorizationCode in OpenAPI 3.0 diff --git a/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java b/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java index a08b3128f..effa3de36 100644 --- a/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java @@ -29,7 +29,7 @@ * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public abstract class AbstractOpenApiSchema { diff --git a/src/main/java/com/formkiq/client/model/Activity.java b/src/main/java/com/formkiq/client/model/Activity.java index 4d3f3e432..cdb2e3e20 100644 --- a/src/main/java/com/formkiq/client/model/Activity.java +++ b/src/main/java/com/formkiq/client/model/Activity.java @@ -63,7 +63,7 @@ * Activity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Activity { public static final String SERIALIZED_NAME_RESOURCE = "resource"; diff --git a/src/main/java/com/formkiq/client/model/AddAction.java b/src/main/java/com/formkiq/client/model/AddAction.java index 7a517d4ad..b1dc40b01 100644 --- a/src/main/java/com/formkiq/client/model/AddAction.java +++ b/src/main/java/com/formkiq/client/model/AddAction.java @@ -60,7 +60,7 @@ * AddAction */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAction { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/AddActionParameters.java b/src/main/java/com/formkiq/client/model/AddActionParameters.java index 2e087680a..fa50bfe3c 100644 --- a/src/main/java/com/formkiq/client/model/AddActionParameters.java +++ b/src/main/java/com/formkiq/client/model/AddActionParameters.java @@ -63,7 +63,7 @@ * AddActionParameters */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddActionParameters { public static final String SERIALIZED_NAME_OCR_TEXTRACT_QUERIES = "ocrTextractQueries"; diff --git a/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java b/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java index f0283e765..525973c03 100644 --- a/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java +++ b/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java @@ -61,7 +61,7 @@ * AddApiKeyRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddApiKeyRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java b/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java index f25f3661d..552de1142 100644 --- a/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java +++ b/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java @@ -58,7 +58,7 @@ * AddApiKeyResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddApiKeyResponse { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; diff --git a/src/main/java/com/formkiq/client/model/AddAttribute.java b/src/main/java/com/formkiq/client/model/AddAttribute.java index b026e9a2b..cdca41f58 100644 --- a/src/main/java/com/formkiq/client/model/AddAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddAttribute.java @@ -61,7 +61,7 @@ * AddAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddAttributeRequest.java b/src/main/java/com/formkiq/client/model/AddAttributeRequest.java index 9344686cd..87ea4bc8b 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeRequest.java @@ -59,7 +59,7 @@ * AddAttributeRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java b/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java index 19721c755..aaa96d62e 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java @@ -61,7 +61,7 @@ * AddAttributeSchemaOptional */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttributeSchemaOptional { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; diff --git a/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java b/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java index 4dfd08d9f..2149299c7 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java @@ -61,7 +61,7 @@ * AddAttributeSchemaRequired */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttributeSchemaRequired { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; diff --git a/src/main/java/com/formkiq/client/model/AddCase.java b/src/main/java/com/formkiq/client/model/AddCase.java index f421a0301..7f0ff37c0 100644 --- a/src/main/java/com/formkiq/client/model/AddCase.java +++ b/src/main/java/com/formkiq/client/model/AddCase.java @@ -64,7 +64,7 @@ * AddCase */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddCase { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddCaseRequest.java b/src/main/java/com/formkiq/client/model/AddCaseRequest.java index 356fbee55..461ef7d88 100644 --- a/src/main/java/com/formkiq/client/model/AddCaseRequest.java +++ b/src/main/java/com/formkiq/client/model/AddCaseRequest.java @@ -59,7 +59,7 @@ * AddCaseRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddCaseRequest { public static final String SERIALIZED_NAME_CASE = "case"; diff --git a/src/main/java/com/formkiq/client/model/AddCaseResponse.java b/src/main/java/com/formkiq/client/model/AddCaseResponse.java index c5df1eb7a..94a5160a6 100644 --- a/src/main/java/com/formkiq/client/model/AddCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/AddCaseResponse.java @@ -58,7 +58,7 @@ * AddCaseResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddCaseResponse { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; diff --git a/src/main/java/com/formkiq/client/model/AddChildDocument.java b/src/main/java/com/formkiq/client/model/AddChildDocument.java index b2e35e708..15af12c77 100644 --- a/src/main/java/com/formkiq/client/model/AddChildDocument.java +++ b/src/main/java/com/formkiq/client/model/AddChildDocument.java @@ -63,7 +63,7 @@ * List of related documents */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddChildDocument { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java b/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java index 2e9bfdb23..7090b192e 100644 --- a/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java @@ -60,7 +60,7 @@ * AddChildDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddChildDocumentResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddClassification.java b/src/main/java/com/formkiq/client/model/AddClassification.java index 4eb0c729e..81e6fd516 100644 --- a/src/main/java/com/formkiq/client/model/AddClassification.java +++ b/src/main/java/com/formkiq/client/model/AddClassification.java @@ -59,7 +59,7 @@ * AddClassification */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddClassification { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddClassificationRequest.java b/src/main/java/com/formkiq/client/model/AddClassificationRequest.java index 28201df71..144adeb08 100644 --- a/src/main/java/com/formkiq/client/model/AddClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/AddClassificationRequest.java @@ -59,7 +59,7 @@ * AddClassificationRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddClassificationRequest { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; diff --git a/src/main/java/com/formkiq/client/model/AddClassificationResponse.java b/src/main/java/com/formkiq/client/model/AddClassificationResponse.java index c0775c78a..e4dd9ac12 100644 --- a/src/main/java/com/formkiq/client/model/AddClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/AddClassificationResponse.java @@ -58,7 +58,7 @@ * AddClassificationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddClassificationResponse { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java index 2e663f991..5857d7f72 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java @@ -61,7 +61,7 @@ * AddDocumentActionsRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentActionsRequest { public static final String SERIALIZED_NAME_ACTIONS = "actions"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java index 3ffec19f6..7d64a2266 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java @@ -58,7 +58,7 @@ * AddDocumentActionsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentActionsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java index 1b7336c37..4754855c3 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java @@ -58,7 +58,7 @@ * AddDocumentActionsRetryResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentActionsRetryResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java b/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java index 0e28089f7..acafe6508 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java @@ -76,7 +76,7 @@ import com.formkiq.client.invoker.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttribute extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(AddDocumentAttribute.class.getName()); diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java index 1a030e4ba..dec5511d9 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java @@ -58,7 +58,7 @@ * Document Classification */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeClassification { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java index 8f28f7077..76a89e614 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java @@ -59,7 +59,7 @@ * Document Entity Attribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeEntity { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java index b03c37e32..c60f9487c 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java @@ -59,7 +59,7 @@ * Document Relationship */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeRelationship { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java index f81421f1e..9f38301e5 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java @@ -61,7 +61,7 @@ * Document Attribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeStandard { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java index d772595e9..30ad7f1a9 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java @@ -61,7 +61,7 @@ * Document Attribute Value */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeValue { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java index 68c25b02e..ee5aa6ecf 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java @@ -61,7 +61,7 @@ * Add List of document attributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributesRequest { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java index 901b8f74e..554365485 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java @@ -66,7 +66,7 @@ * AddDocumentFulltextRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java index 943296a99..7c96d4426 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java @@ -58,7 +58,7 @@ * AddDocumentFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java index 510a9d215..372053cf9 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java @@ -64,7 +64,7 @@ * AddDocumentGenerateRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentGenerateRequest { public static final String SERIALIZED_NAME_LOCALE = "locale"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java index c15025803..7e66e1200 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java @@ -58,7 +58,7 @@ * AddDocumentGenerateResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentGenerateResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java b/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java index da5a4d866..4581e7e7a 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java @@ -60,7 +60,7 @@ * Document Metadata (use either 'value' or 'values' not both) */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentMetadata { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java index 11f7dfdda..91b22de83 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java @@ -63,7 +63,7 @@ * AddDocumentOcrRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentOcrRequest { public static final String SERIALIZED_NAME_TEXTRACT_QUERIES = "textractQueries"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java index d17e0cf69..36a4fd024 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java @@ -58,7 +58,7 @@ * AddDocumentOcrResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentOcrResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentRequest.java index fed2baa3a..a2de004d1 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentRequest.java @@ -66,7 +66,7 @@ * AddDocumentRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentRequest { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentResponse.java index 389f9db2f..b48d77209 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentResponse.java @@ -63,7 +63,7 @@ * AddDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentSync.java b/src/main/java/com/formkiq/client/model/AddDocumentSync.java index 74abb5e9a..34f711196 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentSync.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentSync.java @@ -60,7 +60,7 @@ * AddDocumentSync */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentSync { public static final String SERIALIZED_NAME_SERVICE = "service"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java index 961eb1298..efea1d29b 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java @@ -59,7 +59,7 @@ * AddDocumentSyncRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentSyncRequest { public static final String SERIALIZED_NAME_SYNC = "sync"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentTag.java b/src/main/java/com/formkiq/client/model/AddDocumentTag.java index fb885198f..a7c35c17c 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentTag.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentTag.java @@ -60,7 +60,7 @@ * List of Document Tags (use either 'value' or 'values' not both) */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentTag { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java index c531a50dc..9e99dfc89 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java @@ -61,7 +61,7 @@ * Add List of document tags */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentTagsRequest { public static final String SERIALIZED_NAME_TAGS = "tags"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java index a963fa6bc..989b06e42 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java @@ -64,7 +64,7 @@ * AddDocumentUploadRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentUploadRequest { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java index 8be370275..a163ee2a5 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java @@ -58,7 +58,7 @@ * AddDocumentWorkflowDecisionsRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowDecisionsRequest { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java index fb10c7d91..0c22e2110 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java @@ -58,7 +58,7 @@ * AddDocumentWorkflowDecisionsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowDecisionsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java index 4a12409e8..0412c0d78 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java @@ -58,7 +58,7 @@ * AddDocumentWorkflowRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowRequest { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java index 01e730e97..ded6959f4 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java @@ -58,7 +58,7 @@ * AddDocumentWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java index e2d254e15..6765928c8 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java @@ -64,7 +64,7 @@ * AddDocusignEnvelopesRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignEnvelopesRequest { public static final String SERIALIZED_NAME_EMAIL_SUBJECT = "emailSubject"; diff --git a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java index 4cb9fe7bd..26957402d 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java @@ -58,7 +58,7 @@ * AddDocusignEnvelopesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignEnvelopesResponse { public static final String SERIALIZED_NAME_ENVELOPE_ID = "envelopeId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java index a380f4fb3..780af7061 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java @@ -60,7 +60,7 @@ * AddDocusignRecipientViewRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignRecipientViewRequest { public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; diff --git a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java index 6b53bb1e5..e24c3b4a1 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java @@ -58,7 +58,7 @@ * AddDocusignRecipientViewResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignRecipientViewResponse { public static final String SERIALIZED_NAME_VIEW_URL = "viewUrl"; diff --git a/src/main/java/com/formkiq/client/model/AddEntity.java b/src/main/java/com/formkiq/client/model/AddEntity.java index 1e835e041..3a431a22f 100644 --- a/src/main/java/com/formkiq/client/model/AddEntity.java +++ b/src/main/java/com/formkiq/client/model/AddEntity.java @@ -61,7 +61,7 @@ * AddEntity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntity { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityAttribute.java b/src/main/java/com/formkiq/client/model/AddEntityAttribute.java index 795c75bfe..5e29f38fc 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddEntityAttribute.java @@ -61,7 +61,7 @@ * AddEntityAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityRequest.java b/src/main/java/com/formkiq/client/model/AddEntityRequest.java index 9ccdcaa67..1fddba780 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityRequest.java +++ b/src/main/java/com/formkiq/client/model/AddEntityRequest.java @@ -59,7 +59,7 @@ * AddEntityRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityRequest { public static final String SERIALIZED_NAME_ENTITY = "entity"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityResponse.java b/src/main/java/com/formkiq/client/model/AddEntityResponse.java index 20a1278fd..6d183dc69 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityResponse.java +++ b/src/main/java/com/formkiq/client/model/AddEntityResponse.java @@ -58,7 +58,7 @@ * AddEntityResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityResponse { public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityType.java b/src/main/java/com/formkiq/client/model/AddEntityType.java index 1332a0db6..308871bbc 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityType.java +++ b/src/main/java/com/formkiq/client/model/AddEntityType.java @@ -59,7 +59,7 @@ * AddEntityType */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityType { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java b/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java index 09bf53fc7..ff752c80a 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java +++ b/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java @@ -59,7 +59,7 @@ * AddEntityTypeRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityTypeRequest { public static final String SERIALIZED_NAME_ENTITY_TYPE = "entityType"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java b/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java index 733dd82d7..a85bb929a 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java +++ b/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java @@ -58,7 +58,7 @@ * AddEntityTypeResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityTypeResponse { public static final String SERIALIZED_NAME_ENTITY_TYPE_ID = "entityTypeId"; diff --git a/src/main/java/com/formkiq/client/model/AddFolderPermission.java b/src/main/java/com/formkiq/client/model/AddFolderPermission.java index 4659a1461..5a089904f 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderPermission.java +++ b/src/main/java/com/formkiq/client/model/AddFolderPermission.java @@ -61,7 +61,7 @@ * AddFolderPermission */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderPermission { public static final String SERIALIZED_NAME_ROLE_NAME = "roleName"; diff --git a/src/main/java/com/formkiq/client/model/AddFolderRequest.java b/src/main/java/com/formkiq/client/model/AddFolderRequest.java index adb7bde9b..40f532ab9 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderRequest.java +++ b/src/main/java/com/formkiq/client/model/AddFolderRequest.java @@ -58,7 +58,7 @@ * AddFolderRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderRequest { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/AddFolderResponse.java b/src/main/java/com/formkiq/client/model/AddFolderResponse.java index 2b3ce587d..274d98c34 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderResponse.java +++ b/src/main/java/com/formkiq/client/model/AddFolderResponse.java @@ -58,7 +58,7 @@ * AddFolderResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java b/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java index a0029f8e0..5cf5cd527 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java +++ b/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java @@ -59,7 +59,7 @@ * AddFolderShareRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderShareRequest { public static final String SERIALIZED_NAME_SHARE = "share"; diff --git a/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java b/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java index 0aabe1f51..c51580a0c 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java +++ b/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java @@ -58,7 +58,7 @@ * AddFolderShareResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderShareResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java index 1126fca30..4cf3a2bc4 100644 --- a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java +++ b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java @@ -59,7 +59,7 @@ * AddGoogleDocumentExportRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGoogleDocumentExportRequest { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java index 8eddf703a..a5bdff03f 100644 --- a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java +++ b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java @@ -58,7 +58,7 @@ * AddGoogleDocumentExportResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGoogleDocumentExportResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddGroup.java b/src/main/java/com/formkiq/client/model/AddGroup.java index 2eb6e6a80..6ab17a817 100644 --- a/src/main/java/com/formkiq/client/model/AddGroup.java +++ b/src/main/java/com/formkiq/client/model/AddGroup.java @@ -58,7 +58,7 @@ * AddGroup */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGroup { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddGroupRequest.java b/src/main/java/com/formkiq/client/model/AddGroupRequest.java index 42687eb4b..5734da06b 100644 --- a/src/main/java/com/formkiq/client/model/AddGroupRequest.java +++ b/src/main/java/com/formkiq/client/model/AddGroupRequest.java @@ -59,7 +59,7 @@ * AddGroupRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGroupRequest { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleRequest.java b/src/main/java/com/formkiq/client/model/AddLocaleRequest.java index 629800b6f..01d147433 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleRequest.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleRequest.java @@ -58,7 +58,7 @@ * AddLocaleRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleRequest { public static final String SERIALIZED_NAME_LOCALE = "locale"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java index 5bfc95c0b..971a74514 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java @@ -59,7 +59,7 @@ * AddLocaleResourceClassificationItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceClassificationItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java index 085d53a91..78384da89 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java @@ -59,7 +59,7 @@ * AddLocaleResourceInterfaceItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceInterfaceItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java index b66129793..d34ef96f1 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java @@ -59,7 +59,7 @@ * AddLocaleResourceItemRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceItemRequest { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java index e5fa7db40..f7cff5645 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java @@ -58,7 +58,7 @@ * AddLocaleResourceItemResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceItemResponse { public static final String SERIALIZED_NAME_ITEM_KEY = "itemKey"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java index 2c206b699..f6060c226 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java @@ -59,7 +59,7 @@ * AddLocaleResourceSchemaItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceSchemaItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; diff --git a/src/main/java/com/formkiq/client/model/AddMapping.java b/src/main/java/com/formkiq/client/model/AddMapping.java index c6511aa89..3646bb2a0 100644 --- a/src/main/java/com/formkiq/client/model/AddMapping.java +++ b/src/main/java/com/formkiq/client/model/AddMapping.java @@ -61,7 +61,7 @@ * AddMapping */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddMapping { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddMappingRequest.java b/src/main/java/com/formkiq/client/model/AddMappingRequest.java index dfb7dc82c..d0f2d384d 100644 --- a/src/main/java/com/formkiq/client/model/AddMappingRequest.java +++ b/src/main/java/com/formkiq/client/model/AddMappingRequest.java @@ -59,7 +59,7 @@ * AddMappingRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddMappingRequest { public static final String SERIALIZED_NAME_MAPPING = "mapping"; diff --git a/src/main/java/com/formkiq/client/model/AddMappingResponse.java b/src/main/java/com/formkiq/client/model/AddMappingResponse.java index 061ac1d5d..3d4fbfd46 100644 --- a/src/main/java/com/formkiq/client/model/AddMappingResponse.java +++ b/src/main/java/com/formkiq/client/model/AddMappingResponse.java @@ -58,7 +58,7 @@ * AddMappingResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddMappingResponse { public static final String SERIALIZED_NAME_MAPPING_ID = "mappingId"; diff --git a/src/main/java/com/formkiq/client/model/AddNigo.java b/src/main/java/com/formkiq/client/model/AddNigo.java index 324cc0fcc..b64e0d2a0 100644 --- a/src/main/java/com/formkiq/client/model/AddNigo.java +++ b/src/main/java/com/formkiq/client/model/AddNigo.java @@ -63,7 +63,7 @@ * AddNigo */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddNigo { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddNigoRequest.java b/src/main/java/com/formkiq/client/model/AddNigoRequest.java index 188c8f0c4..cd609f78f 100644 --- a/src/main/java/com/formkiq/client/model/AddNigoRequest.java +++ b/src/main/java/com/formkiq/client/model/AddNigoRequest.java @@ -59,7 +59,7 @@ * AddNigoRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddNigoRequest { public static final String SERIALIZED_NAME_NIGO = "nigo"; diff --git a/src/main/java/com/formkiq/client/model/AddNigoResponse.java b/src/main/java/com/formkiq/client/model/AddNigoResponse.java index 676f81594..adc7c3b1c 100644 --- a/src/main/java/com/formkiq/client/model/AddNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/AddNigoResponse.java @@ -58,7 +58,7 @@ * AddNigoResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddNigoResponse { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; diff --git a/src/main/java/com/formkiq/client/model/AddQueueRequest.java b/src/main/java/com/formkiq/client/model/AddQueueRequest.java index 0f7189cb7..528f26a0c 100644 --- a/src/main/java/com/formkiq/client/model/AddQueueRequest.java +++ b/src/main/java/com/formkiq/client/model/AddQueueRequest.java @@ -58,7 +58,7 @@ * AddQueueRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddQueueRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddQueueResponse.java b/src/main/java/com/formkiq/client/model/AddQueueResponse.java index b455f23cf..841a4a86f 100644 --- a/src/main/java/com/formkiq/client/model/AddQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/AddQueueResponse.java @@ -58,7 +58,7 @@ * AddQueueResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddQueueResponse { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; diff --git a/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java b/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java index 9b8f3849b..7a5f8d764 100644 --- a/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java @@ -59,7 +59,7 @@ * AddReindexDocumentRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddReindexDocumentRequest { public static final String SERIALIZED_NAME_TARGET = "target"; diff --git a/src/main/java/com/formkiq/client/model/AddResourceItem.java b/src/main/java/com/formkiq/client/model/AddResourceItem.java index b99eede9a..035c19b26 100644 --- a/src/main/java/com/formkiq/client/model/AddResourceItem.java +++ b/src/main/java/com/formkiq/client/model/AddResourceItem.java @@ -71,7 +71,7 @@ import com.formkiq.client.invoker.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddResourceItem extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(AddResourceItem.class.getName()); diff --git a/src/main/java/com/formkiq/client/model/AddResponse.java b/src/main/java/com/formkiq/client/model/AddResponse.java index 0b6460037..42f945164 100644 --- a/src/main/java/com/formkiq/client/model/AddResponse.java +++ b/src/main/java/com/formkiq/client/model/AddResponse.java @@ -58,7 +58,7 @@ * AddResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddRule.java b/src/main/java/com/formkiq/client/model/AddRule.java index ea290332b..c45a2d99a 100644 --- a/src/main/java/com/formkiq/client/model/AddRule.java +++ b/src/main/java/com/formkiq/client/model/AddRule.java @@ -61,7 +61,7 @@ * AddRule */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRule { public static final String SERIALIZED_NAME_PRIORITY = "priority"; diff --git a/src/main/java/com/formkiq/client/model/AddRuleRequest.java b/src/main/java/com/formkiq/client/model/AddRuleRequest.java index e5680e816..abac5a675 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleRequest.java +++ b/src/main/java/com/formkiq/client/model/AddRuleRequest.java @@ -59,7 +59,7 @@ * AddRuleRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRuleRequest { public static final String SERIALIZED_NAME_RULE = "rule"; diff --git a/src/main/java/com/formkiq/client/model/AddRuleResponse.java b/src/main/java/com/formkiq/client/model/AddRuleResponse.java index 8cbe02d9a..9fd060403 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/AddRuleResponse.java @@ -58,7 +58,7 @@ * AddRuleResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRuleResponse { public static final String SERIALIZED_NAME_RULE_ID = "ruleId"; diff --git a/src/main/java/com/formkiq/client/model/AddRuleset.java b/src/main/java/com/formkiq/client/model/AddRuleset.java index 6c8345254..8503fb09d 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleset.java +++ b/src/main/java/com/formkiq/client/model/AddRuleset.java @@ -60,7 +60,7 @@ * AddRuleset */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRuleset { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; diff --git a/src/main/java/com/formkiq/client/model/AddRulesetRequest.java b/src/main/java/com/formkiq/client/model/AddRulesetRequest.java index 735a19b37..1fb3ac2e3 100644 --- a/src/main/java/com/formkiq/client/model/AddRulesetRequest.java +++ b/src/main/java/com/formkiq/client/model/AddRulesetRequest.java @@ -59,7 +59,7 @@ * AddRulesetRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRulesetRequest { public static final String SERIALIZED_NAME_RULESET = "ruleset"; diff --git a/src/main/java/com/formkiq/client/model/AddRulesetResponse.java b/src/main/java/com/formkiq/client/model/AddRulesetResponse.java index 692a8092f..d85d4e828 100644 --- a/src/main/java/com/formkiq/client/model/AddRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/AddRulesetResponse.java @@ -58,7 +58,7 @@ * AddRulesetResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRulesetResponse { public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; diff --git a/src/main/java/com/formkiq/client/model/AddShare.java b/src/main/java/com/formkiq/client/model/AddShare.java index 9b43b8ccc..991b4443c 100644 --- a/src/main/java/com/formkiq/client/model/AddShare.java +++ b/src/main/java/com/formkiq/client/model/AddShare.java @@ -61,7 +61,7 @@ * AddShare */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddShare { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/src/main/java/com/formkiq/client/model/AddSite.java b/src/main/java/com/formkiq/client/model/AddSite.java index 3ec28dea1..a585be67a 100644 --- a/src/main/java/com/formkiq/client/model/AddSite.java +++ b/src/main/java/com/formkiq/client/model/AddSite.java @@ -59,7 +59,7 @@ * AddSite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddSite { public static final String SERIALIZED_NAME_ID = "id"; diff --git a/src/main/java/com/formkiq/client/model/AddSiteRequest.java b/src/main/java/com/formkiq/client/model/AddSiteRequest.java index ab9b3ad55..619875a4e 100644 --- a/src/main/java/com/formkiq/client/model/AddSiteRequest.java +++ b/src/main/java/com/formkiq/client/model/AddSiteRequest.java @@ -59,7 +59,7 @@ * AddSiteRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddSiteRequest { public static final String SERIALIZED_NAME_SITE = "site"; diff --git a/src/main/java/com/formkiq/client/model/AddTask.java b/src/main/java/com/formkiq/client/model/AddTask.java index 7eb6d9cdb..05c30f3d7 100644 --- a/src/main/java/com/formkiq/client/model/AddTask.java +++ b/src/main/java/com/formkiq/client/model/AddTask.java @@ -63,7 +63,7 @@ * AddTask */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddTask { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddTaskRequest.java b/src/main/java/com/formkiq/client/model/AddTaskRequest.java index 83d85c30d..2d575ca4b 100644 --- a/src/main/java/com/formkiq/client/model/AddTaskRequest.java +++ b/src/main/java/com/formkiq/client/model/AddTaskRequest.java @@ -59,7 +59,7 @@ * AddTaskRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddTaskRequest { public static final String SERIALIZED_NAME_TASK = "task"; diff --git a/src/main/java/com/formkiq/client/model/AddTaskResponse.java b/src/main/java/com/formkiq/client/model/AddTaskResponse.java index 552458cf6..9947e1359 100644 --- a/src/main/java/com/formkiq/client/model/AddTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/AddTaskResponse.java @@ -58,7 +58,7 @@ * AddTaskResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddTaskResponse { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; diff --git a/src/main/java/com/formkiq/client/model/AddUser.java b/src/main/java/com/formkiq/client/model/AddUser.java index 12970e985..4fac3143d 100644 --- a/src/main/java/com/formkiq/client/model/AddUser.java +++ b/src/main/java/com/formkiq/client/model/AddUser.java @@ -59,7 +59,7 @@ * AddUser */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddUser { public static final String SERIALIZED_NAME_USERNAME = "username"; diff --git a/src/main/java/com/formkiq/client/model/AddUserRequest.java b/src/main/java/com/formkiq/client/model/AddUserRequest.java index 96483c7df..8b91bf9bd 100644 --- a/src/main/java/com/formkiq/client/model/AddUserRequest.java +++ b/src/main/java/com/formkiq/client/model/AddUserRequest.java @@ -59,7 +59,7 @@ * AddUserRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddUserRequest { public static final String SERIALIZED_NAME_USER = "user"; diff --git a/src/main/java/com/formkiq/client/model/AddWebhookRequest.java b/src/main/java/com/formkiq/client/model/AddWebhookRequest.java index d2d93fc5a..5046925d8 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookRequest.java @@ -61,7 +61,7 @@ * AddWebhookRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWebhookRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddWebhookResponse.java b/src/main/java/com/formkiq/client/model/AddWebhookResponse.java index da57e6c06..52a36ac52 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookResponse.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookResponse.java @@ -58,7 +58,7 @@ * AddWebhookResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWebhookResponse { public static final String SERIALIZED_NAME_WEBHOOK_ID = "webhookId"; diff --git a/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java b/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java index 499168aa5..d36df84e6 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java @@ -60,7 +60,7 @@ * AddWebhookTagRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWebhookTagRequest { public static final String SERIALIZED_NAME_VALUE = "value"; diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java b/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java index 4b541799c..7f5695b33 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java @@ -62,7 +62,7 @@ * AddWorkflowRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java b/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java index d2f212576..ca2abcb7a 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java @@ -58,7 +58,7 @@ * AddWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowResponse { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStep.java b/src/main/java/com/formkiq/client/model/AddWorkflowStep.java index 2a5d0eb93..50d79a17d 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStep.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStep.java @@ -63,7 +63,7 @@ * AddWorkflowStep */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowStep { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java b/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java index b0508eeae..2df090f8e 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java @@ -59,7 +59,7 @@ * AddWorkflowStepDecision */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowStepDecision { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java b/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java index 595653dd1..638d5ec6d 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java @@ -60,7 +60,7 @@ * AddWorkflowStepQueue */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowStepQueue { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; diff --git a/src/main/java/com/formkiq/client/model/ApiKey.java b/src/main/java/com/formkiq/client/model/ApiKey.java index 8a51eca4c..efadde3e7 100644 --- a/src/main/java/com/formkiq/client/model/ApiKey.java +++ b/src/main/java/com/formkiq/client/model/ApiKey.java @@ -61,7 +61,7 @@ * ApiKey */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ApiKey { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/Attribute.java b/src/main/java/com/formkiq/client/model/Attribute.java index c4888a54c..ed71a8a03 100644 --- a/src/main/java/com/formkiq/client/model/Attribute.java +++ b/src/main/java/com/formkiq/client/model/Attribute.java @@ -61,7 +61,7 @@ * Attribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Attribute { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java b/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java index 33de0a6cb..2d8d52a28 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java @@ -60,7 +60,7 @@ * AttributeSchemaCompositeKey */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AttributeSchemaCompositeKey { public static final String SERIALIZED_NAME_ATTRIBUTE_KEYS = "attributeKeys"; diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java b/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java index a35b2d0f6..85a5a1428 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java @@ -63,7 +63,7 @@ * AttributeSchemaOptional */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AttributeSchemaOptional { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java b/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java index ac82f6e9b..a8986dd0d 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java @@ -63,7 +63,7 @@ * AttributeSchemaRequired */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AttributeSchemaRequired { public static final String SERIALIZED_NAME_ATTRIBUTE_KEY = "attributeKey"; diff --git a/src/main/java/com/formkiq/client/model/ChildDocument.java b/src/main/java/com/formkiq/client/model/ChildDocument.java index 6649c0329..b2b6c144b 100644 --- a/src/main/java/com/formkiq/client/model/ChildDocument.java +++ b/src/main/java/com/formkiq/client/model/ChildDocument.java @@ -58,7 +58,7 @@ * ChildDocument */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ChildDocument { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/Classification.java b/src/main/java/com/formkiq/client/model/Classification.java index 441b058c5..260acc7da 100644 --- a/src/main/java/com/formkiq/client/model/Classification.java +++ b/src/main/java/com/formkiq/client/model/Classification.java @@ -59,7 +59,7 @@ * Classification */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Classification { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/ClassificationSummary.java b/src/main/java/com/formkiq/client/model/ClassificationSummary.java index 6121be5d3..d2207d460 100644 --- a/src/main/java/com/formkiq/client/model/ClassificationSummary.java +++ b/src/main/java/com/formkiq/client/model/ClassificationSummary.java @@ -58,7 +58,7 @@ * ClassificationSummary */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ClassificationSummary { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; diff --git a/src/main/java/com/formkiq/client/model/DataClassification.java b/src/main/java/com/formkiq/client/model/DataClassification.java index 7756865f5..3d1e7e0ce 100644 --- a/src/main/java/com/formkiq/client/model/DataClassification.java +++ b/src/main/java/com/formkiq/client/model/DataClassification.java @@ -61,7 +61,7 @@ * DataClassification */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DataClassification { public static final String SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME = "llmPromptEntityName"; diff --git a/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java b/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java index 0d6da5170..c346a82fa 100644 --- a/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java +++ b/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java @@ -58,7 +58,7 @@ * DataClassificationAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DataClassificationAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java b/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java index 16db3a4ce..f3658db7d 100644 --- a/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java @@ -58,7 +58,7 @@ * DeleteApiKeyResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteApiKeyResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java index 9dd5b6134..4bad5a501 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java @@ -58,7 +58,7 @@ * DeleteCaseDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java index 64c6b1ebb..18bec4fc3 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java @@ -58,7 +58,7 @@ * DeleteCaseNigoDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseNigoDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java index 2608ae1f2..c5ae1b5a9 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java @@ -58,7 +58,7 @@ * DeleteCaseNigoResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseNigoResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java index 13382b575..2c6e2b736 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java @@ -58,7 +58,7 @@ * DeleteCaseResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java index 5720611df..90fb9edaf 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java @@ -58,7 +58,7 @@ * DeleteCaseTaskDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseTaskDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java index c4dd38a6e..3760465b2 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java @@ -58,7 +58,7 @@ * DeleteCaseTaskResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseTaskResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java b/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java index 80ca41ca4..d6b99be7d 100644 --- a/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java @@ -58,7 +58,7 @@ * DeleteFolderResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteFolderResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java b/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java index 63d31e00e..a465390f9 100644 --- a/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java @@ -58,7 +58,7 @@ * DeleteFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java b/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java index 2c5d6bafd..40c3f96c1 100644 --- a/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java @@ -58,7 +58,7 @@ * DeleteIndicesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteIndicesResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java b/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java index 7c734343f..e59b55cf7 100644 --- a/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java @@ -58,7 +58,7 @@ * DeleteQueueResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteQueueResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteResponse.java b/src/main/java/com/formkiq/client/model/DeleteResponse.java index 3f8ad0d12..b712b43b5 100644 --- a/src/main/java/com/formkiq/client/model/DeleteResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteResponse.java @@ -58,7 +58,7 @@ * DeleteResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java b/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java index edc940547..25413325f 100644 --- a/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java @@ -58,7 +58,7 @@ * DeleteRuleResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteRuleResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java b/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java index 1f87aa8ba..df815164b 100644 --- a/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java @@ -58,7 +58,7 @@ * DeleteRulesetResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteRulesetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteShareResponse.java b/src/main/java/com/formkiq/client/model/DeleteShareResponse.java index 47b2bb628..42eb37524 100644 --- a/src/main/java/com/formkiq/client/model/DeleteShareResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteShareResponse.java @@ -58,7 +58,7 @@ * DeleteShareResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteShareResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java b/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java index 31e58fb6f..b1f93813c 100644 --- a/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java @@ -58,7 +58,7 @@ * DeleteWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/Document.java b/src/main/java/com/formkiq/client/model/Document.java index 6f67aba45..5d6428146 100644 --- a/src/main/java/com/formkiq/client/model/Document.java +++ b/src/main/java/com/formkiq/client/model/Document.java @@ -62,7 +62,7 @@ * Document */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Document { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/DocumentAction.java b/src/main/java/com/formkiq/client/model/DocumentAction.java index 411697eb1..6fe247394 100644 --- a/src/main/java/com/formkiq/client/model/DocumentAction.java +++ b/src/main/java/com/formkiq/client/model/DocumentAction.java @@ -63,7 +63,7 @@ * DocumentAction */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentAction { public static final String SERIALIZED_NAME_STATUS = "status"; diff --git a/src/main/java/com/formkiq/client/model/DocumentAttribute.java b/src/main/java/com/formkiq/client/model/DocumentAttribute.java index 57c7eb649..d559a431a 100644 --- a/src/main/java/com/formkiq/client/model/DocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentAttribute.java @@ -62,7 +62,7 @@ * DocumentAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/DocumentConfig.java b/src/main/java/com/formkiq/client/model/DocumentConfig.java index 4a1e21d25..f17b193cc 100644 --- a/src/main/java/com/formkiq/client/model/DocumentConfig.java +++ b/src/main/java/com/formkiq/client/model/DocumentConfig.java @@ -59,7 +59,7 @@ * DocumentConfig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentConfig { public static final String SERIALIZED_NAME_CONTENT_TYPES = "contentTypes"; diff --git a/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java b/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java index 2492e3cc5..897218a6c 100644 --- a/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java +++ b/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java @@ -60,7 +60,7 @@ * DocumentConfigContentTypes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentConfigContentTypes { public static final String SERIALIZED_NAME_ALLOWLIST = "allowlist"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java b/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java index 362373faf..6c590eaf3 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java @@ -61,7 +61,7 @@ * DocumentFulltextAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextAttribute { public static final String SERIALIZED_NAME_EQ = "eq"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java b/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java index 110d76d44..ec8467bd5 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java @@ -59,7 +59,7 @@ * DocumentFulltextAttributeEq */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextAttributeEq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java index a055837ea..95434daad 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java @@ -60,7 +60,7 @@ * Document full text search */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextRequest { public static final String SERIALIZED_NAME_QUERY = "query"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java index f27c4b839..3cf55c29a 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java @@ -61,7 +61,7 @@ * DocumentFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextResponse { public static final String SERIALIZED_NAME_DOCUMENTS = "documents"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java b/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java index 1bd999523..8c7e5ad23 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java @@ -62,7 +62,7 @@ * Document full text search criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextSearch { public static final String SERIALIZED_NAME_PAGE = "page"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java b/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java index 0d810cb14..16628d8c1 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java @@ -60,7 +60,7 @@ * DocumentFulltextTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextTag { public static final String SERIALIZED_NAME_EQ = "eq"; diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java b/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java index 1c12727ba..31757193c 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java @@ -58,7 +58,7 @@ * DocumentGenerateDataSource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentGenerateDataSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java index 0c963aff9..279fe431c 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java @@ -59,7 +59,7 @@ * DocumentGenerateInsertDocument */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentGenerateInsertDocument { public static final String SERIALIZED_NAME_POSITION = "position"; diff --git a/src/main/java/com/formkiq/client/model/DocumentId.java b/src/main/java/com/formkiq/client/model/DocumentId.java index 71fbd0d0a..11d381ef0 100644 --- a/src/main/java/com/formkiq/client/model/DocumentId.java +++ b/src/main/java/com/formkiq/client/model/DocumentId.java @@ -58,7 +58,7 @@ * DocumentId */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentId { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/DocumentMetadata.java b/src/main/java/com/formkiq/client/model/DocumentMetadata.java index 71cc4e4d3..f496cca35 100644 --- a/src/main/java/com/formkiq/client/model/DocumentMetadata.java +++ b/src/main/java/com/formkiq/client/model/DocumentMetadata.java @@ -60,7 +60,7 @@ * Document Metadata (use either 'value' or 'values' not both) */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentMetadata { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearch.java b/src/main/java/com/formkiq/client/model/DocumentSearch.java index 63b800912..990d439df 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearch.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearch.java @@ -64,7 +64,7 @@ * Document tag search criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearch { public static final String SERIALIZED_NAME_TEXT = "text"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java b/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java index 1bd55cf4a..8337e5f30 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java @@ -61,7 +61,7 @@ * DocumentSearchAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchAttribute { public static final String SERIALIZED_NAME_EQ = "eq"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java b/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java index 8396b0976..20f479a63 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java @@ -59,7 +59,7 @@ * DocumentSearchMatchAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchMatchAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java b/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java index 7df7acab7..52cd06186 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java @@ -58,7 +58,7 @@ * DocumentSearchMatchTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchMatchTag { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java b/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java index 246c7323e..bef430d32 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java @@ -58,7 +58,7 @@ * DocumentSearchMeta */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchMeta { public static final String SERIALIZED_NAME_FOLDER = "folder"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchRange.java b/src/main/java/com/formkiq/client/model/DocumentSearchRange.java index eda7ae725..561c04192 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchRange.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchRange.java @@ -59,7 +59,7 @@ * DocumentSearchRange */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchRange { public static final String SERIALIZED_NAME_START = "start"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java b/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java index 39605a2aa..fffaa3f3b 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java @@ -60,7 +60,7 @@ * Document search tag criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchRequest { public static final String SERIALIZED_NAME_QUERY = "query"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java b/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java index 1f5b74452..88a8cb275 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java @@ -61,7 +61,7 @@ * DocumentSearchResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchTag.java b/src/main/java/com/formkiq/client/model/DocumentSearchTag.java index 371ac922c..1136c4bdf 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchTag.java @@ -61,7 +61,7 @@ * DocumentSearchTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchTag { public static final String SERIALIZED_NAME_BEGINS_WITH = "beginsWith"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchTags.java b/src/main/java/com/formkiq/client/model/DocumentSearchTags.java index b92d50334..bdb9a8ede 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchTags.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchTags.java @@ -59,7 +59,7 @@ * DocumentSearchTags */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchTags { public static final String SERIALIZED_NAME_EQ = "eq"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSync.java b/src/main/java/com/formkiq/client/model/DocumentSync.java index d42c491d5..987f8bf98 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSync.java +++ b/src/main/java/com/formkiq/client/model/DocumentSync.java @@ -61,7 +61,7 @@ * DocumentSync */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSync { public static final String SERIALIZED_NAME_SERVICE = "service"; diff --git a/src/main/java/com/formkiq/client/model/DocumentTag.java b/src/main/java/com/formkiq/client/model/DocumentTag.java index bd24cb7af..a45b3dbb9 100644 --- a/src/main/java/com/formkiq/client/model/DocumentTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentTag.java @@ -60,7 +60,7 @@ * DocumentTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentTag { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; diff --git a/src/main/java/com/formkiq/client/model/DocumentVersion.java b/src/main/java/com/formkiq/client/model/DocumentVersion.java index 26803c6f6..bb16dcbfd 100644 --- a/src/main/java/com/formkiq/client/model/DocumentVersion.java +++ b/src/main/java/com/formkiq/client/model/DocumentVersion.java @@ -59,7 +59,7 @@ * DocumentVersion */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentVersion { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; diff --git a/src/main/java/com/formkiq/client/model/DocumentWorkflow.java b/src/main/java/com/formkiq/client/model/DocumentWorkflow.java index 6b33ecf25..94287ce08 100644 --- a/src/main/java/com/formkiq/client/model/DocumentWorkflow.java +++ b/src/main/java/com/formkiq/client/model/DocumentWorkflow.java @@ -59,7 +59,7 @@ * DocumentWorkflow */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentWorkflow { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; diff --git a/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java b/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java index 82334e944..7a8f26530 100644 --- a/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java @@ -60,7 +60,7 @@ * DocumentsCompressRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentsCompressRequest { public static final String SERIALIZED_NAME_DOCUMENT_IDS = "documentIds"; diff --git a/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java b/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java index 5c9aabb0b..2f1b4461c 100644 --- a/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java @@ -58,7 +58,7 @@ * DocumentsCompressResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentsCompressResponse { public static final String SERIALIZED_NAME_DOWNLOAD_URL = "downloadUrl"; diff --git a/src/main/java/com/formkiq/client/model/DocusignConfig.java b/src/main/java/com/formkiq/client/model/DocusignConfig.java index 188cdb047..60d07ca6c 100644 --- a/src/main/java/com/formkiq/client/model/DocusignConfig.java +++ b/src/main/java/com/formkiq/client/model/DocusignConfig.java @@ -58,7 +58,7 @@ * DocusignConfig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignConfig { public static final String SERIALIZED_NAME_USER_ID = "userId"; diff --git a/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java b/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java index 75b027906..9c995c436 100644 --- a/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java +++ b/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java @@ -59,7 +59,7 @@ * DocusignInpersonSigner */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignInpersonSigner { public static final String SERIALIZED_NAME_HOST_EMAIL = "hostEmail"; diff --git a/src/main/java/com/formkiq/client/model/DocusignNotification.java b/src/main/java/com/formkiq/client/model/DocusignNotification.java index bb97cb3ae..8202ed2b1 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotification.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotification.java @@ -60,7 +60,7 @@ * DocusignNotification */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignNotification { public static final String SERIALIZED_NAME_USE_ACCOUNT_DEFAULTS = "useAccountDefaults"; diff --git a/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java b/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java index d2e7515ba..74d1aa744 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java @@ -58,7 +58,7 @@ * DocusignNotificationExpirations */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignNotificationExpirations { public static final String SERIALIZED_NAME_EXPIRE_AFTER = "expireAfter"; diff --git a/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java b/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java index c4169cbe0..d41fb242c 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java @@ -58,7 +58,7 @@ * DocusignNotificationReminders */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignNotificationReminders { public static final String SERIALIZED_NAME_REMINDER_DELAY = "reminderDelay"; diff --git a/src/main/java/com/formkiq/client/model/DocusignRecipientView.java b/src/main/java/com/formkiq/client/model/DocusignRecipientView.java index 2266ed73a..14086d9fa 100644 --- a/src/main/java/com/formkiq/client/model/DocusignRecipientView.java +++ b/src/main/java/com/formkiq/client/model/DocusignRecipientView.java @@ -60,7 +60,7 @@ * DocusignRecipientView */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignRecipientView { public static final String SERIALIZED_NAME_RETURN_URL = "returnUrl"; diff --git a/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java b/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java index 8c76c894f..7fc2b8633 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java +++ b/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java @@ -58,7 +58,7 @@ * DocusignSignHereTabs */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignSignHereTabs { public static final String SERIALIZED_NAME_ANCHOR_STRING = "anchorString"; diff --git a/src/main/java/com/formkiq/client/model/DocusignSigner.java b/src/main/java/com/formkiq/client/model/DocusignSigner.java index 43b3adaff..62d6c055a 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSigner.java +++ b/src/main/java/com/formkiq/client/model/DocusignSigner.java @@ -59,7 +59,7 @@ * DocusignSigner */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignSigner { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java b/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java index dfb7cb047..18afa0d17 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java +++ b/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java @@ -61,7 +61,7 @@ * DocusignSigningTabs */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignSigningTabs { public static final String SERIALIZED_NAME_SIGN_HERE_TABS = "signHereTabs"; diff --git a/src/main/java/com/formkiq/client/model/Entity.java b/src/main/java/com/formkiq/client/model/Entity.java index a945b6d00..79f47c4a9 100644 --- a/src/main/java/com/formkiq/client/model/Entity.java +++ b/src/main/java/com/formkiq/client/model/Entity.java @@ -61,7 +61,7 @@ * Entity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Entity { public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; diff --git a/src/main/java/com/formkiq/client/model/EntityAttribute.java b/src/main/java/com/formkiq/client/model/EntityAttribute.java index 496cc4286..540c9f81a 100644 --- a/src/main/java/com/formkiq/client/model/EntityAttribute.java +++ b/src/main/java/com/formkiq/client/model/EntityAttribute.java @@ -62,7 +62,7 @@ * EntityAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class EntityAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/EntityType.java b/src/main/java/com/formkiq/client/model/EntityType.java index 0ae11d424..7555a9fe6 100644 --- a/src/main/java/com/formkiq/client/model/EntityType.java +++ b/src/main/java/com/formkiq/client/model/EntityType.java @@ -59,7 +59,7 @@ * EntityType */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class EntityType { public static final String SERIALIZED_NAME_ENTITY_TYPE_ID = "entityTypeId"; diff --git a/src/main/java/com/formkiq/client/model/Error.java b/src/main/java/com/formkiq/client/model/Error.java index 8fe6afc49..35b9a00d5 100644 --- a/src/main/java/com/formkiq/client/model/Error.java +++ b/src/main/java/com/formkiq/client/model/Error.java @@ -58,7 +58,7 @@ * Error */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Error { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/ErrorsResponse.java b/src/main/java/com/formkiq/client/model/ErrorsResponse.java index b04cf6076..886d25677 100644 --- a/src/main/java/com/formkiq/client/model/ErrorsResponse.java +++ b/src/main/java/com/formkiq/client/model/ErrorsResponse.java @@ -61,7 +61,7 @@ * ErrorsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ErrorsResponse { public static final String SERIALIZED_NAME_ERRORS = "errors"; diff --git a/src/main/java/com/formkiq/client/model/FolderPermission.java b/src/main/java/com/formkiq/client/model/FolderPermission.java index b21554051..11c0b5806 100644 --- a/src/main/java/com/formkiq/client/model/FolderPermission.java +++ b/src/main/java/com/formkiq/client/model/FolderPermission.java @@ -61,7 +61,7 @@ * FolderPermission */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class FolderPermission { public static final String SERIALIZED_NAME_ROLE_NAME = "roleName"; diff --git a/src/main/java/com/formkiq/client/model/FulltextAttribute.java b/src/main/java/com/formkiq/client/model/FulltextAttribute.java index d08ef0e60..fbf28c2ae 100644 --- a/src/main/java/com/formkiq/client/model/FulltextAttribute.java +++ b/src/main/java/com/formkiq/client/model/FulltextAttribute.java @@ -62,7 +62,7 @@ * FulltextAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class FulltextAttribute { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; diff --git a/src/main/java/com/formkiq/client/model/FulltextSearchItem.java b/src/main/java/com/formkiq/client/model/FulltextSearchItem.java index 11a02a7d4..70137579b 100644 --- a/src/main/java/com/formkiq/client/model/FulltextSearchItem.java +++ b/src/main/java/com/formkiq/client/model/FulltextSearchItem.java @@ -62,7 +62,7 @@ * FulltextSearchItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class FulltextSearchItem { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/GetActivitesResponse.java b/src/main/java/com/formkiq/client/model/GetActivitesResponse.java index 3491add55..571d1f8f0 100644 --- a/src/main/java/com/formkiq/client/model/GetActivitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetActivitesResponse.java @@ -61,7 +61,7 @@ * GetActivitesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetActivitesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java b/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java index 0a7c6eb72..c231b236e 100644 --- a/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java +++ b/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java @@ -61,7 +61,7 @@ * GetApiKeysResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetApiKeysResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java b/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java index 413f17762..7228273d1 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java @@ -62,7 +62,7 @@ * GetAttributeAllowedValuesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetAttributeAllowedValuesResponse { public static final String SERIALIZED_NAME_ALLOWED_VALUES = "allowedValues"; diff --git a/src/main/java/com/formkiq/client/model/GetAttributeResponse.java b/src/main/java/com/formkiq/client/model/GetAttributeResponse.java index 41214a38f..3ff8b08ba 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributeResponse.java @@ -59,7 +59,7 @@ * GetAttributeResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetAttributeResponse { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/GetAttributesResponse.java b/src/main/java/com/formkiq/client/model/GetAttributesResponse.java index 87ba4e46f..a9ec3a4b9 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributesResponse.java @@ -61,7 +61,7 @@ * GetAttributesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetAttributesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java index b86d58845..9d969bc13 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java @@ -61,7 +61,7 @@ * GetCaseDocumentsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java b/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java index d09409ab1..3626d15f2 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java @@ -59,7 +59,7 @@ * GetCaseNigoResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseNigoResponse { public static final String SERIALIZED_NAME_NIGO = "nigo"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java b/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java index 5f84c6183..ac4f9dccc 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java @@ -61,7 +61,7 @@ * GetCaseNigosResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseNigosResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseResponse.java b/src/main/java/com/formkiq/client/model/GetCaseResponse.java index ad04c103f..bdd083ec9 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseResponse.java @@ -59,7 +59,7 @@ * GetCaseResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseResponse { public static final String SERIALIZED_NAME_CASE = "case"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java b/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java index 1fc58247a..c9376f673 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java @@ -59,7 +59,7 @@ * GetCaseTaskResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseTaskResponse { public static final String SERIALIZED_NAME_TASK = "task"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java b/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java index 00f535b49..0508f81c8 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java @@ -61,7 +61,7 @@ * GetCaseTasksResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseTasksResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetCasesResponse.java b/src/main/java/com/formkiq/client/model/GetCasesResponse.java index 178fea94b..767fba347 100644 --- a/src/main/java/com/formkiq/client/model/GetCasesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCasesResponse.java @@ -61,7 +61,7 @@ * GetCasesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCasesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetClassificationResponse.java b/src/main/java/com/formkiq/client/model/GetClassificationResponse.java index 61c714744..4c06ec07e 100644 --- a/src/main/java/com/formkiq/client/model/GetClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetClassificationResponse.java @@ -59,7 +59,7 @@ * GetClassificationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetClassificationResponse { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; diff --git a/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java b/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java index 96d8f59e6..e18a40aa8 100644 --- a/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java @@ -61,7 +61,7 @@ * GetClassificationsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetClassificationsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java b/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java index 36efce1a5..1714497be 100644 --- a/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java @@ -62,7 +62,7 @@ * GetConfigurationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetConfigurationResponse { public static final String SERIALIZED_NAME_CHAT_GPT_API_KEY = "chatGptApiKey"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java index 86548af05..305e8953d 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java @@ -61,7 +61,7 @@ * GetDocumentActionsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentActionsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java index c877f8539..a807d509d 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java @@ -59,7 +59,7 @@ * GetDocumentAttributeResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentAttributeResponse { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java index 0df94b3ec..98451af63 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java @@ -61,7 +61,7 @@ * GetDocumentAttributesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentAttributesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java index d2c729f9c..44c756727 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java @@ -58,7 +58,7 @@ * GetDocumentContentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentContentResponse { public static final String SERIALIZED_NAME_CONTENT = "content"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java index 7778c954c..51e117b47 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java @@ -61,7 +61,7 @@ * GetDocumentDataClassificationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentDataClassificationResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java index 8bb9c381c..6a783a28c 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java @@ -62,7 +62,7 @@ * GetDocumentFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentFulltextResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java index 6862223d2..fb1bbf3df 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java @@ -62,7 +62,7 @@ * GetDocumentOcrResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentOcrResponse { public static final String SERIALIZED_NAME_CONTENT_URLS = "contentUrls"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentResponse.java index c8d8e10bb..24c87458e 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentResponse.java @@ -63,7 +63,7 @@ * GetDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java index 39c6e8096..9d58659ae 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java @@ -61,7 +61,7 @@ * GetDocumentSyncResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentSyncResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java index ebce5d8cb..1b650bed0 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java @@ -60,7 +60,7 @@ * GetDocumentTagResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentTagResponse { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java index ab51a8375..64a5b8b6f 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java @@ -61,7 +61,7 @@ * GetDocumentTagsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentTagsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java index 58e8015d6..fc921ef01 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java @@ -60,7 +60,7 @@ * GetDocumentUrlResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentUrlResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java index 253086f45..76f0458a5 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java @@ -61,7 +61,7 @@ * GetDocumentVersionsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentVersionsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java index d8990ea54..801f01dd5 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java @@ -59,7 +59,7 @@ * GetDocumentWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentWorkflowResponse { public static final String SERIALIZED_NAME_WORKFLOW = "workflow"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java index a2a097495..bcdd3e475 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java @@ -61,7 +61,7 @@ * GetDocumentWorkflowsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentWorkflowsResponse { public static final String SERIALIZED_NAME_WORKFLOWS = "workflows"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java index b90a29ae1..bd5a8cf4c 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java @@ -61,7 +61,7 @@ * GetDocumentsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java b/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java index d336c2ad5..279441372 100644 --- a/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java @@ -61,7 +61,7 @@ * GetEntitiesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntitiesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetEntityResponse.java b/src/main/java/com/formkiq/client/model/GetEntityResponse.java index 330327c0a..46990a405 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityResponse.java @@ -59,7 +59,7 @@ * GetEntityResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntityResponse { public static final String SERIALIZED_NAME_ENTITY = "entity"; diff --git a/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java b/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java index 9e1670c55..d1ba94285 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java @@ -59,7 +59,7 @@ * GetEntityTypeResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntityTypeResponse { public static final String SERIALIZED_NAME_ENTITY_TYPE = "entityType"; diff --git a/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java b/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java index 1cd2faf18..5b00ef769 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java @@ -61,7 +61,7 @@ * GetEntityTypesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntityTypesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java b/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java index 6a029d4e4..66c2b3909 100644 --- a/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java +++ b/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java @@ -59,7 +59,7 @@ * GetExaminePdfResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetExaminePdfResponse { public static final String SERIALIZED_NAME_FILEINFO = "fileinfo"; diff --git a/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java b/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java index 2378ed855..61a496023 100644 --- a/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java +++ b/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java @@ -58,7 +58,7 @@ * GetExaminePdfUrlResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetExaminePdfUrlResponse { public static final String SERIALIZED_NAME_ID = "id"; diff --git a/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java b/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java index 4e4d6c6c8..06e9c7c4b 100644 --- a/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java @@ -61,7 +61,7 @@ * GetFolderPermissionsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetFolderPermissionsResponse { public static final String SERIALIZED_NAME_ROLES = "roles"; diff --git a/src/main/java/com/formkiq/client/model/GetFoldersResponse.java b/src/main/java/com/formkiq/client/model/GetFoldersResponse.java index 40c7db9ca..7fcbfcd10 100644 --- a/src/main/java/com/formkiq/client/model/GetFoldersResponse.java +++ b/src/main/java/com/formkiq/client/model/GetFoldersResponse.java @@ -61,7 +61,7 @@ * GetFoldersResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetFoldersResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetGroupResponse.java b/src/main/java/com/formkiq/client/model/GetGroupResponse.java index 76fcc37be..6d1419eef 100644 --- a/src/main/java/com/formkiq/client/model/GetGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetGroupResponse.java @@ -59,7 +59,7 @@ * GetGroupResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetGroupResponse { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/src/main/java/com/formkiq/client/model/GetGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetGroupsResponse.java index e06c5e21a..e32fac2cb 100644 --- a/src/main/java/com/formkiq/client/model/GetGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetGroupsResponse.java @@ -61,7 +61,7 @@ * GetGroupsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetGroupsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java index 6e73ea0a2..e3cf0e5e7 100644 --- a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java @@ -59,7 +59,7 @@ * GetLocaleResourceItemResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetLocaleResourceItemResponse { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; diff --git a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java index eb397221c..7f4fc056f 100644 --- a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java @@ -61,7 +61,7 @@ * GetLocaleResourceItemsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetLocaleResourceItemsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetLocalesResponse.java b/src/main/java/com/formkiq/client/model/GetLocalesResponse.java index 13f1768b3..39ef5ca84 100644 --- a/src/main/java/com/formkiq/client/model/GetLocalesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocalesResponse.java @@ -61,7 +61,7 @@ * GetLocalesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetLocalesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java b/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java index 5cbae14ec..0a6a58592 100644 --- a/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java @@ -61,7 +61,7 @@ * GetMalwareScanResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetMalwareScanResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetMappingResponse.java b/src/main/java/com/formkiq/client/model/GetMappingResponse.java index 2c75985ff..71717139f 100644 --- a/src/main/java/com/formkiq/client/model/GetMappingResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMappingResponse.java @@ -59,7 +59,7 @@ * GetMappingResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetMappingResponse { public static final String SERIALIZED_NAME_MAPPING = "mapping"; diff --git a/src/main/java/com/formkiq/client/model/GetMappingsResponse.java b/src/main/java/com/formkiq/client/model/GetMappingsResponse.java index 1d5978f93..b64f3b0f9 100644 --- a/src/main/java/com/formkiq/client/model/GetMappingsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMappingsResponse.java @@ -61,7 +61,7 @@ * GetMappingsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetMappingsResponse { public static final String SERIALIZED_NAME_MAPPINGS = "mappings"; diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java index 84b9a5e59..629a8e471 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java @@ -61,7 +61,7 @@ * GetOpaAccessPoliciesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpaAccessPoliciesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java index a2119b076..46b9db33d 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java @@ -61,7 +61,7 @@ * GetOpaAccessPolicyItemsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpaAccessPolicyItemsResponse { public static final String SERIALIZED_NAME_POLICY_ITEMS = "policyItems"; diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java index 1e1cb2b10..b8bf28015 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java @@ -58,7 +58,7 @@ * GetOpaAccessPolicyResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpaAccessPolicyResponse { public static final String SERIALIZED_NAME_OPA_POLICY = "opaPolicy"; diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java index a04c5a96d..7138cccae 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java @@ -59,7 +59,7 @@ * GetOpenSearchIndexResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchIndexResponse { public static final String SERIALIZED_NAME_INDEX_SETTINGS = "indexSettings"; diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java index 24578cf08..03132e7b4 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java @@ -61,7 +61,7 @@ * GetOpenSearchIndiceResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchIndiceResponse { public static final String SERIALIZED_NAME_INDICES = "indices"; diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java index eae467771..b2e6c7cf8 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java @@ -61,7 +61,7 @@ * GetOpenSearchSnapshotRepositoryResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchSnapshotRepositoryResponse { public static final String SERIALIZED_NAME_S3_REPOSITORIES = "s3Repositories"; diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java index 8e8db0a75..a8ead72fb 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java @@ -61,7 +61,7 @@ * GetOpenSearchSnapshotResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchSnapshotResponse { public static final String SERIALIZED_NAME_SNAPSHOTS = "snapshots"; diff --git a/src/main/java/com/formkiq/client/model/GetQueueResponse.java b/src/main/java/com/formkiq/client/model/GetQueueResponse.java index 94874acb5..763d103b4 100644 --- a/src/main/java/com/formkiq/client/model/GetQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/GetQueueResponse.java @@ -58,7 +58,7 @@ * GetQueueResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetQueueResponse { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/GetQueuesResponse.java b/src/main/java/com/formkiq/client/model/GetQueuesResponse.java index 8b381027a..a29adac41 100644 --- a/src/main/java/com/formkiq/client/model/GetQueuesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetQueuesResponse.java @@ -61,7 +61,7 @@ * GetQueuesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetQueuesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetRuleResponse.java b/src/main/java/com/formkiq/client/model/GetRuleResponse.java index 772d1fdd0..d537637c7 100644 --- a/src/main/java/com/formkiq/client/model/GetRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRuleResponse.java @@ -59,7 +59,7 @@ * GetRuleResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRuleResponse { public static final String SERIALIZED_NAME_RULE = "rule"; diff --git a/src/main/java/com/formkiq/client/model/GetRulesResponse.java b/src/main/java/com/formkiq/client/model/GetRulesResponse.java index e1d9b8666..d1f8ef1fc 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesResponse.java @@ -61,7 +61,7 @@ * GetRulesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRulesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetRulesetResponse.java b/src/main/java/com/formkiq/client/model/GetRulesetResponse.java index ed159e59f..019a1c44d 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesetResponse.java @@ -59,7 +59,7 @@ * GetRulesetResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRulesetResponse { public static final String SERIALIZED_NAME_RULESET = "ruleset"; diff --git a/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java b/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java index ce761d259..e416bd844 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java @@ -61,7 +61,7 @@ * GetRulesetsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRulesetsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java b/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java index 3627525ef..77f567be3 100644 --- a/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java @@ -59,7 +59,7 @@ * GetSiteGroupResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSiteGroupResponse { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java index 893d90fc0..24170f939 100644 --- a/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java @@ -60,7 +60,7 @@ * GetSiteGroupsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSiteGroupsResponse { public static final String SERIALIZED_NAME_GROUP_NAMES = "groupNames"; diff --git a/src/main/java/com/formkiq/client/model/GetSitesResponse.java b/src/main/java/com/formkiq/client/model/GetSitesResponse.java index 4b994700c..0257bc36a 100644 --- a/src/main/java/com/formkiq/client/model/GetSitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSitesResponse.java @@ -61,7 +61,7 @@ * GetSitesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSitesResponse { public static final String SERIALIZED_NAME_USERNAME = "username"; diff --git a/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java b/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java index 55772235a..b6b1949a8 100644 --- a/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java @@ -59,7 +59,7 @@ * GetSitesSchemaResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSitesSchemaResponse { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java b/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java index 8de96875e..0124950d3 100644 --- a/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java @@ -61,7 +61,7 @@ * GetUserActivitesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserActivitesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java index c3431ce1d..b5647459f 100644 --- a/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java @@ -61,7 +61,7 @@ * GetUserGroupsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserGroupsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetUserResponse.java b/src/main/java/com/formkiq/client/model/GetUserResponse.java index bc1453dfd..3385348e1 100644 --- a/src/main/java/com/formkiq/client/model/GetUserResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserResponse.java @@ -59,7 +59,7 @@ * GetUserResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserResponse { public static final String SERIALIZED_NAME_USER = "user"; diff --git a/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java b/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java index 79f73bcaf..2e9c991b0 100644 --- a/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java @@ -61,7 +61,7 @@ * GetUserSharesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserSharesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java b/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java index 47dcb096d..bb294ed44 100644 --- a/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java @@ -61,7 +61,7 @@ * GetUsersInGroupResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUsersInGroupResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetUsersResponse.java b/src/main/java/com/formkiq/client/model/GetUsersResponse.java index a6930794e..77b223a2c 100644 --- a/src/main/java/com/formkiq/client/model/GetUsersResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUsersResponse.java @@ -61,7 +61,7 @@ * GetUsersResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUsersResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetVersionResponse.java b/src/main/java/com/formkiq/client/model/GetVersionResponse.java index 0c927474f..30d306b4d 100644 --- a/src/main/java/com/formkiq/client/model/GetVersionResponse.java +++ b/src/main/java/com/formkiq/client/model/GetVersionResponse.java @@ -60,7 +60,7 @@ * GetVersionResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetVersionResponse { public static final String SERIALIZED_NAME_VERSION = "version"; diff --git a/src/main/java/com/formkiq/client/model/GetWebhookResponse.java b/src/main/java/com/formkiq/client/model/GetWebhookResponse.java index ef8f9487b..22a02979e 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhookResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhookResponse.java @@ -58,7 +58,7 @@ * GetWebhookResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWebhookResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java b/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java index 167703c58..1ef596b28 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java @@ -61,7 +61,7 @@ * GetWebhookTagsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWebhookTagsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java b/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java index d7064f35c..45b9f1e42 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java @@ -61,7 +61,7 @@ * GetWebhooksResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWebhooksResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java index 137ac6d22..f0fefe371 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java @@ -61,7 +61,7 @@ * GetWorkflowDocumentsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java index 54a0d1f87..dfa886256 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java @@ -61,7 +61,7 @@ * GetWorkflowQueueDocumentsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowQueueDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java index 22c8a005a..fad02f319 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java @@ -62,7 +62,7 @@ * GetWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowResponse { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java index 63d862958..9a7608ccb 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java @@ -61,7 +61,7 @@ * GetWorkflowsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GoogleConfig.java b/src/main/java/com/formkiq/client/model/GoogleConfig.java index c06c488fe..0d2684506 100644 --- a/src/main/java/com/formkiq/client/model/GoogleConfig.java +++ b/src/main/java/com/formkiq/client/model/GoogleConfig.java @@ -58,7 +58,7 @@ * GoogleConfig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GoogleConfig { public static final String SERIALIZED_NAME_WORKLOAD_IDENTITY_AUDIENCE = diff --git a/src/main/java/com/formkiq/client/model/Group.java b/src/main/java/com/formkiq/client/model/Group.java index 63da5394d..05033c7e1 100644 --- a/src/main/java/com/formkiq/client/model/Group.java +++ b/src/main/java/com/formkiq/client/model/Group.java @@ -58,7 +58,7 @@ * Group */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Group { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java b/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java index 180038160..faf9a38af 100644 --- a/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java +++ b/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java @@ -58,7 +58,7 @@ * IndexFolderMoveRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexFolderMoveRequest { public static final String SERIALIZED_NAME_SOURCE = "source"; diff --git a/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java b/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java index edd274f68..affd62bd3 100644 --- a/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java +++ b/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java @@ -58,7 +58,7 @@ * IndexFolderMoveResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexFolderMoveResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/IndexSearch.java b/src/main/java/com/formkiq/client/model/IndexSearch.java index 2de4d1322..032fdffd9 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearch.java +++ b/src/main/java/com/formkiq/client/model/IndexSearch.java @@ -58,7 +58,7 @@ * IndexSearch */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexSearch { public static final String SERIALIZED_NAME_VALUE = "value"; diff --git a/src/main/java/com/formkiq/client/model/IndexSearchRequest.java b/src/main/java/com/formkiq/client/model/IndexSearchRequest.java index 894ed1bfa..18de03c4d 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearchRequest.java +++ b/src/main/java/com/formkiq/client/model/IndexSearchRequest.java @@ -58,7 +58,7 @@ * IndexSearchRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexSearchRequest { public static final String SERIALIZED_NAME_INDEX_TYPE = "indexType"; diff --git a/src/main/java/com/formkiq/client/model/IndexSearchResponse.java b/src/main/java/com/formkiq/client/model/IndexSearchResponse.java index 12a2e983e..802d43e77 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearchResponse.java +++ b/src/main/java/com/formkiq/client/model/IndexSearchResponse.java @@ -61,7 +61,7 @@ * IndexSearchResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexSearchResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/LocaleInfo.java b/src/main/java/com/formkiq/client/model/LocaleInfo.java index 66e6db99a..d3f5e379c 100644 --- a/src/main/java/com/formkiq/client/model/LocaleInfo.java +++ b/src/main/java/com/formkiq/client/model/LocaleInfo.java @@ -58,7 +58,7 @@ * LocaleInfo */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class LocaleInfo { public static final String SERIALIZED_NAME_LOCALE = "locale"; diff --git a/src/main/java/com/formkiq/client/model/MalwareScanResult.java b/src/main/java/com/formkiq/client/model/MalwareScanResult.java index dec1100a9..0cc778e8b 100644 --- a/src/main/java/com/formkiq/client/model/MalwareScanResult.java +++ b/src/main/java/com/formkiq/client/model/MalwareScanResult.java @@ -60,7 +60,7 @@ * MalwareScanResult */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class MalwareScanResult { public static final String SERIALIZED_NAME_SCAN_STATUS = "scanStatus"; diff --git a/src/main/java/com/formkiq/client/model/Mapping.java b/src/main/java/com/formkiq/client/model/Mapping.java index 2469ca45d..33a8c37fd 100644 --- a/src/main/java/com/formkiq/client/model/Mapping.java +++ b/src/main/java/com/formkiq/client/model/Mapping.java @@ -61,7 +61,7 @@ * Mapping */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Mapping { public static final String SERIALIZED_NAME_MAPPING_ID = "mappingId"; diff --git a/src/main/java/com/formkiq/client/model/MappingAttribute.java b/src/main/java/com/formkiq/client/model/MappingAttribute.java index b79d6db8f..2978253d4 100644 --- a/src/main/java/com/formkiq/client/model/MappingAttribute.java +++ b/src/main/java/com/formkiq/client/model/MappingAttribute.java @@ -63,7 +63,7 @@ * MappingAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class MappingAttribute { public static final String SERIALIZED_NAME_ATTRIBUTE_KEY = "attributeKey"; diff --git a/src/main/java/com/formkiq/client/model/MatchDocumentTag.java b/src/main/java/com/formkiq/client/model/MatchDocumentTag.java index 9e1cb9c2a..fd2c1049b 100644 --- a/src/main/java/com/formkiq/client/model/MatchDocumentTag.java +++ b/src/main/java/com/formkiq/client/model/MatchDocumentTag.java @@ -58,7 +58,7 @@ * Match Document Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class MatchDocumentTag { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/ModelCase.java b/src/main/java/com/formkiq/client/model/ModelCase.java index 40a1d38a1..37d9c0b86 100644 --- a/src/main/java/com/formkiq/client/model/ModelCase.java +++ b/src/main/java/com/formkiq/client/model/ModelCase.java @@ -61,7 +61,7 @@ * ModelCase */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ModelCase { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; diff --git a/src/main/java/com/formkiq/client/model/Nigo.java b/src/main/java/com/formkiq/client/model/Nigo.java index dcb9feec2..823551fda 100644 --- a/src/main/java/com/formkiq/client/model/Nigo.java +++ b/src/main/java/com/formkiq/client/model/Nigo.java @@ -61,7 +61,7 @@ * Nigo */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Nigo { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; diff --git a/src/main/java/com/formkiq/client/model/OcrConfig.java b/src/main/java/com/formkiq/client/model/OcrConfig.java index 9ae2fb771..9fcb298a8 100644 --- a/src/main/java/com/formkiq/client/model/OcrConfig.java +++ b/src/main/java/com/formkiq/client/model/OcrConfig.java @@ -59,7 +59,7 @@ * OcrConfig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrConfig { public static final String SERIALIZED_NAME_MAX_PAGES_PER_TRANSACTION = "maxPagesPerTransaction"; diff --git a/src/main/java/com/formkiq/client/model/OcrKeyValues.java b/src/main/java/com/formkiq/client/model/OcrKeyValues.java index 79024cb44..9754530f5 100644 --- a/src/main/java/com/formkiq/client/model/OcrKeyValues.java +++ b/src/main/java/com/formkiq/client/model/OcrKeyValues.java @@ -60,7 +60,7 @@ * OcrKeyValues */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrKeyValues { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/OcrTable.java b/src/main/java/com/formkiq/client/model/OcrTable.java index b60ee6ae2..40b63a326 100644 --- a/src/main/java/com/formkiq/client/model/OcrTable.java +++ b/src/main/java/com/formkiq/client/model/OcrTable.java @@ -61,7 +61,7 @@ * OcrTable */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrTable { public static final String SERIALIZED_NAME_HEADERS = "headers"; diff --git a/src/main/java/com/formkiq/client/model/OcrTableData.java b/src/main/java/com/formkiq/client/model/OcrTableData.java index e2e221928..6ae1a80b8 100644 --- a/src/main/java/com/formkiq/client/model/OcrTableData.java +++ b/src/main/java/com/formkiq/client/model/OcrTableData.java @@ -58,7 +58,7 @@ * OcrTableData */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrTableData { public static final String SERIALIZED_NAME_VALUE = "value"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicy.java b/src/main/java/com/formkiq/client/model/OpaPolicy.java index f21f2a54b..6d7456e2f 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicy.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicy.java @@ -58,7 +58,7 @@ * OpaPolicy */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicy { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java index 0d280794b..05b28d214 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java @@ -66,7 +66,7 @@ * OpaPolicyAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java index 6286a4884..f610ae11b 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java @@ -60,7 +60,7 @@ * Attribute EQ criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeEq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java index 6e26dd967..8079dad25 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java @@ -59,7 +59,7 @@ * Attribute greater than criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeGt { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java index b4caa1acc..5c4202b6e 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java @@ -59,7 +59,7 @@ * Attribute greater than and equals to criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeGte { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java index 3c26f7612..94798896c 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java @@ -60,7 +60,7 @@ * Attribute In to criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeIn { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java index 4482ff843..afac18af3 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java @@ -58,7 +58,7 @@ * OpaPolicyAttributeInput */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeInput { public static final String SERIALIZED_NAME_MATCH_USERNAME = "matchUsername"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java index d6c3ef3c4..3e75700bc 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java @@ -59,7 +59,7 @@ * Attribute less than criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeLt { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java index 352cdd319..72e8b59ab 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java @@ -59,7 +59,7 @@ * Attribute less than and equals to criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeLte { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java index dcdd145d0..80bd04d2e 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java @@ -58,7 +58,7 @@ * Attribute not equal to criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeNeq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java index 2a675124a..a6ecc56d9 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java @@ -60,7 +60,7 @@ * Attribute Not In to criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeNotIn { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInput.java b/src/main/java/com/formkiq/client/model/OpaPolicyInput.java index 0374e95cd..87db76581 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInput.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInput.java @@ -60,7 +60,7 @@ * OpaPolicyInput */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyInput { public static final String SERIALIZED_NAME_HTTP_METHOD = "httpMethod"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java b/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java index 7156ea6d1..a30733cf0 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java @@ -60,7 +60,7 @@ * OpaPolicyInputMethod */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyInputMethod { public static final String SERIALIZED_NAME_IN = "in"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java b/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java index a619adf83..4faddbc14 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java @@ -60,7 +60,7 @@ * OpaPolicyInputResource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyInputResource { public static final String SERIALIZED_NAME_IN = "in"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyItem.java b/src/main/java/com/formkiq/client/model/OpaPolicyItem.java index f377327c7..64cf0c464 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyItem.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyItem.java @@ -62,7 +62,7 @@ * OpaPolicyItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyItem { public static final String SERIALIZED_NAME_POLICY = "policy"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchAlias.java b/src/main/java/com/formkiq/client/model/OpenSearchAlias.java index 5ff4b701e..8649c1e7e 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchAlias.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchAlias.java @@ -58,7 +58,7 @@ * OpenSearchAlias */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchAlias { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchIndex.java b/src/main/java/com/formkiq/client/model/OpenSearchIndex.java index faee3b496..f837178c2 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchIndex.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchIndex.java @@ -61,7 +61,7 @@ * OpenSearchIndex */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchIndex { public static final String SERIALIZED_NAME_NUMBER_OF_REPLICAS = "numberOfReplicas"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java b/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java index 96bd7f8d8..322167f5f 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java @@ -58,7 +58,7 @@ * OpenSearchIndexSetting */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchIndexSetting { public static final String SERIALIZED_NAME_NUMBER_OF_REPLICAS = "numberOfReplicas"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java b/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java index 6675a00d7..09c49ee7c 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java @@ -58,7 +58,7 @@ * OpenSearchS3Repository */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchS3Repository { public static final String SERIALIZED_NAME_REPOSITORY = "repository"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java index 72fae40f8..4d75e4dc4 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java @@ -63,7 +63,7 @@ * OpenSearchSnapshot */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchSnapshot { public static final String SERIALIZED_NAME_SNAPSHOT = "snapshot"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java index fec4a41c5..4fdb4b5bc 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java @@ -58,7 +58,7 @@ * Details about a failure for a specific shard in a snapshot. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchSnapshotFailure { public static final String SERIALIZED_NAME_INDEX = "index"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java index 6177322c2..6c25c9f30 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java @@ -59,7 +59,7 @@ * OpenSearchSnapshotShard */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchSnapshotShard { public static final String SERIALIZED_NAME_TOTAL = "total"; diff --git a/src/main/java/com/formkiq/client/model/PdfDocument.java b/src/main/java/com/formkiq/client/model/PdfDocument.java index fad9d6089..1bd851881 100644 --- a/src/main/java/com/formkiq/client/model/PdfDocument.java +++ b/src/main/java/com/formkiq/client/model/PdfDocument.java @@ -61,7 +61,7 @@ * PdfDocument */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class PdfDocument { public static final String SERIALIZED_NAME_FIELDS = "fields"; diff --git a/src/main/java/com/formkiq/client/model/PdfDocumentField.java b/src/main/java/com/formkiq/client/model/PdfDocumentField.java index 663a348c7..016a097f5 100644 --- a/src/main/java/com/formkiq/client/model/PdfDocumentField.java +++ b/src/main/java/com/formkiq/client/model/PdfDocumentField.java @@ -58,7 +58,7 @@ * PdfDocumentField */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class PdfDocumentField { public static final String SERIALIZED_NAME_FIELD = "field"; diff --git a/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java b/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java index 9ede86094..b32ceaa88 100644 --- a/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java @@ -58,7 +58,7 @@ * QueryFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class QueryFulltextResponse { public static final String SERIALIZED_NAME_RESULT = "result"; diff --git a/src/main/java/com/formkiq/client/model/Queue.java b/src/main/java/com/formkiq/client/model/Queue.java index edacc3e0d..55038ec57 100644 --- a/src/main/java/com/formkiq/client/model/Queue.java +++ b/src/main/java/com/formkiq/client/model/Queue.java @@ -58,7 +58,7 @@ * Queue */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Queue { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/ResourceItem.java b/src/main/java/com/formkiq/client/model/ResourceItem.java index 786fb4706..cfde48a80 100644 --- a/src/main/java/com/formkiq/client/model/ResourceItem.java +++ b/src/main/java/com/formkiq/client/model/ResourceItem.java @@ -59,7 +59,7 @@ * ResourceItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ResourceItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; diff --git a/src/main/java/com/formkiq/client/model/Rule.java b/src/main/java/com/formkiq/client/model/Rule.java index 81eedd2d2..eb824acdc 100644 --- a/src/main/java/com/formkiq/client/model/Rule.java +++ b/src/main/java/com/formkiq/client/model/Rule.java @@ -61,7 +61,7 @@ * Rule */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Rule { public static final String SERIALIZED_NAME_RULE_ID = "ruleId"; diff --git a/src/main/java/com/formkiq/client/model/RuleCondition.java b/src/main/java/com/formkiq/client/model/RuleCondition.java index ec6dee410..962074965 100644 --- a/src/main/java/com/formkiq/client/model/RuleCondition.java +++ b/src/main/java/com/formkiq/client/model/RuleCondition.java @@ -61,7 +61,7 @@ * RuleCondition */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class RuleCondition { public static final String SERIALIZED_NAME_MUST = "must"; diff --git a/src/main/java/com/formkiq/client/model/RuleConditionMust.java b/src/main/java/com/formkiq/client/model/RuleConditionMust.java index 7511eff1a..179180df2 100644 --- a/src/main/java/com/formkiq/client/model/RuleConditionMust.java +++ b/src/main/java/com/formkiq/client/model/RuleConditionMust.java @@ -61,7 +61,7 @@ * RuleConditionMust */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class RuleConditionMust { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/Ruleset.java b/src/main/java/com/formkiq/client/model/Ruleset.java index 9d9bb4426..d5cb43267 100644 --- a/src/main/java/com/formkiq/client/model/Ruleset.java +++ b/src/main/java/com/formkiq/client/model/Ruleset.java @@ -60,7 +60,7 @@ * Ruleset */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Ruleset { public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; diff --git a/src/main/java/com/formkiq/client/model/SchemaAttributes.java b/src/main/java/com/formkiq/client/model/SchemaAttributes.java index dc1101a34..fad1a56b0 100644 --- a/src/main/java/com/formkiq/client/model/SchemaAttributes.java +++ b/src/main/java/com/formkiq/client/model/SchemaAttributes.java @@ -63,7 +63,7 @@ * SchemaAttributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SchemaAttributes { public static final String SERIALIZED_NAME_COMPOSITE_KEYS = "compositeKeys"; diff --git a/src/main/java/com/formkiq/client/model/SearchResponseFields.java b/src/main/java/com/formkiq/client/model/SearchResponseFields.java index e69dba6ec..b0a819bbc 100644 --- a/src/main/java/com/formkiq/client/model/SearchResponseFields.java +++ b/src/main/java/com/formkiq/client/model/SearchResponseFields.java @@ -60,7 +60,7 @@ * SearchResponseFields */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SearchResponseFields { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; diff --git a/src/main/java/com/formkiq/client/model/SearchResultDocument.java b/src/main/java/com/formkiq/client/model/SearchResultDocument.java index f9509e476..6205450a8 100644 --- a/src/main/java/com/formkiq/client/model/SearchResultDocument.java +++ b/src/main/java/com/formkiq/client/model/SearchResultDocument.java @@ -67,7 +67,7 @@ * SearchResultDocument */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SearchResultDocument { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java b/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java index 6962d6c51..5ae39859e 100644 --- a/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java @@ -62,7 +62,7 @@ * SearchResultDocumentAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SearchResultDocumentAttribute { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; diff --git a/src/main/java/com/formkiq/client/model/SetClassificationRequest.java b/src/main/java/com/formkiq/client/model/SetClassificationRequest.java index 9611cc3d2..1ee8543d0 100644 --- a/src/main/java/com/formkiq/client/model/SetClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/SetClassificationRequest.java @@ -59,7 +59,7 @@ * SetClassificationRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetClassificationRequest { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java index abc642354..0cb247b15 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java @@ -59,7 +59,7 @@ * Set List of document attributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java index 780de9be8..8799e552b 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java @@ -61,7 +61,7 @@ * Set List of document attributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentAttributesRequest { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java index f791c1ad6..41d70699c 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java @@ -58,7 +58,7 @@ * SetDocumentDataClassificationRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentDataClassificationRequest { public static final String SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME = "llmPromptEntityName"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java index b299d2a6c..e55017b8d 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java @@ -61,7 +61,7 @@ * SetDocumentDataClassificationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentDataClassificationResponse { public static final String SERIALIZED_NAME_CONTENT = "content"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java index 5628bb8ed..d17f229e3 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java @@ -66,7 +66,7 @@ * SetDocumentFulltextRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java index 8d0991003..f48a6c3a2 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java @@ -58,7 +58,7 @@ * SetDocumentFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java index 14490be34..13f5a5dc6 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java @@ -58,7 +58,7 @@ * SetDocumentOcrRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentOcrRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java index cdaf14b1f..dc98d7c91 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java @@ -58,7 +58,7 @@ * SetDocumentRestoreResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentRestoreResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java index b6ba814ac..c5bff00a6 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java @@ -60,7 +60,7 @@ * SetDocumentTagKeyRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentTagKeyRequest { public static final String SERIALIZED_NAME_VALUE = "value"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java index d26bae538..3bf77e275 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java @@ -58,7 +58,7 @@ * SetDocumentVersionRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentVersionRequest { public static final String SERIALIZED_NAME_VERSION_KEY = "versionKey"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java index 71e4da5c3..b6ccefe9e 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java @@ -58,7 +58,7 @@ * SetDocumentVersionResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentVersionResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java b/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java index c158d8d62..e4499ca56 100644 --- a/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java @@ -61,7 +61,7 @@ * SetFolderPermissionsRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetFolderPermissionsRequest { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java b/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java index 65c36fbbb..64f8ee500 100644 --- a/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java @@ -61,7 +61,7 @@ * SetGroupPermissionsRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetGroupPermissionsRequest { public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; diff --git a/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java b/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java index 0c0b1e49d..9b82f4f53 100644 --- a/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java +++ b/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java @@ -59,7 +59,7 @@ * SetLocaleResourceItemRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetLocaleResourceItemRequest { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; diff --git a/src/main/java/com/formkiq/client/model/SetMappingRequest.java b/src/main/java/com/formkiq/client/model/SetMappingRequest.java index b1fe86f8d..b2d177248 100644 --- a/src/main/java/com/formkiq/client/model/SetMappingRequest.java +++ b/src/main/java/com/formkiq/client/model/SetMappingRequest.java @@ -59,7 +59,7 @@ * SetMappingRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetMappingRequest { public static final String SERIALIZED_NAME_MAPPING = "mapping"; diff --git a/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java b/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java index 407ca8e8c..eda246b25 100644 --- a/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java @@ -61,7 +61,7 @@ * SetOpaAccessPolicyItemsRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpaAccessPolicyItemsRequest { public static final String SERIALIZED_NAME_POLICY_ITEMS = "policyItems"; diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java index 4d7d45205..2e4f96d00 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java @@ -59,7 +59,7 @@ * SetOpenSearchIndexRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpenSearchIndexRequest { public static final String SERIALIZED_NAME_INDEX_SETTINGS = "indexSettings"; diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java index 7ec3c95ec..87aaa6d79 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java @@ -58,7 +58,7 @@ * SetOpenSearchIndexResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpenSearchIndexResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java index 371b2ad31..eda4363a7 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java @@ -58,7 +58,7 @@ * SetOpenSearchIndiceRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpenSearchIndiceRequest { public static final String SERIALIZED_NAME_INDEX_NAME = "indexName"; diff --git a/src/main/java/com/formkiq/client/model/SetResponse.java b/src/main/java/com/formkiq/client/model/SetResponse.java index 5d218c9c8..239928fae 100644 --- a/src/main/java/com/formkiq/client/model/SetResponse.java +++ b/src/main/java/com/formkiq/client/model/SetResponse.java @@ -58,7 +58,7 @@ * SetResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java b/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java index 999e61320..17feee952 100644 --- a/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java +++ b/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java @@ -63,7 +63,7 @@ * SetSchemaAttributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetSchemaAttributes { public static final String SERIALIZED_NAME_COMPOSITE_KEYS = "compositeKeys"; diff --git a/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java b/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java index 037852593..04c11b400 100644 --- a/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java +++ b/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java @@ -59,7 +59,7 @@ * SetSitesSchemaRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetSitesSchemaRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java b/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java index 217c9825c..f2b51fe90 100644 --- a/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java @@ -62,7 +62,7 @@ * SetWorkflowRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java b/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java index e9b59a7c0..4fbde52c5 100644 --- a/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java @@ -58,7 +58,7 @@ * SetWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/Site.java b/src/main/java/com/formkiq/client/model/Site.java index 983860056..8136b985f 100644 --- a/src/main/java/com/formkiq/client/model/Site.java +++ b/src/main/java/com/formkiq/client/model/Site.java @@ -64,7 +64,7 @@ * Site */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Site { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/SiteConfig.java b/src/main/java/com/formkiq/client/model/SiteConfig.java index 007c6b7aa..23d573dbd 100644 --- a/src/main/java/com/formkiq/client/model/SiteConfig.java +++ b/src/main/java/com/formkiq/client/model/SiteConfig.java @@ -59,7 +59,7 @@ * SiteConfig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SiteConfig { public static final String SERIALIZED_NAME_MAX_CONTENT_LENGTH_BYTES = "maxContentLengthBytes"; diff --git a/src/main/java/com/formkiq/client/model/SiteGroup.java b/src/main/java/com/formkiq/client/model/SiteGroup.java index 27bb579e4..c4a7ebfbe 100644 --- a/src/main/java/com/formkiq/client/model/SiteGroup.java +++ b/src/main/java/com/formkiq/client/model/SiteGroup.java @@ -61,7 +61,7 @@ * SiteGroup */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SiteGroup { public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; diff --git a/src/main/java/com/formkiq/client/model/SiteUsage.java b/src/main/java/com/formkiq/client/model/SiteUsage.java index 1174c308d..32ffe7646 100644 --- a/src/main/java/com/formkiq/client/model/SiteUsage.java +++ b/src/main/java/com/formkiq/client/model/SiteUsage.java @@ -59,7 +59,7 @@ * SiteUsage */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SiteUsage { public static final String SERIALIZED_NAME_DOCUMENT_COUNT = "documentCount"; diff --git a/src/main/java/com/formkiq/client/model/StringFormat.java b/src/main/java/com/formkiq/client/model/StringFormat.java index 64fa4ec7b..ec0f4b754 100644 --- a/src/main/java/com/formkiq/client/model/StringFormat.java +++ b/src/main/java/com/formkiq/client/model/StringFormat.java @@ -59,7 +59,7 @@ * StringFormat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class StringFormat { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/Task.java b/src/main/java/com/formkiq/client/model/Task.java index d91a181a5..6cba14ca5 100644 --- a/src/main/java/com/formkiq/client/model/Task.java +++ b/src/main/java/com/formkiq/client/model/Task.java @@ -61,7 +61,7 @@ * Task */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Task { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; diff --git a/src/main/java/com/formkiq/client/model/TextractQuery.java b/src/main/java/com/formkiq/client/model/TextractQuery.java index 5866bfe5f..e1aadc8c6 100644 --- a/src/main/java/com/formkiq/client/model/TextractQuery.java +++ b/src/main/java/com/formkiq/client/model/TextractQuery.java @@ -60,7 +60,7 @@ * A question to ask Textract */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class TextractQuery { public static final String SERIALIZED_NAME_TEXT = "text"; diff --git a/src/main/java/com/formkiq/client/model/UpdateAttribute.java b/src/main/java/com/formkiq/client/model/UpdateAttribute.java index 3b2512508..73e5ab287 100644 --- a/src/main/java/com/formkiq/client/model/UpdateAttribute.java +++ b/src/main/java/com/formkiq/client/model/UpdateAttribute.java @@ -60,7 +60,7 @@ * UpdateAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateAttribute { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java b/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java index fa298443d..f2911f79b 100644 --- a/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java @@ -59,7 +59,7 @@ * UpdateAttributeRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/UpdateCase.java b/src/main/java/com/formkiq/client/model/UpdateCase.java index c9d06e1e2..b4c8951a4 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCase.java +++ b/src/main/java/com/formkiq/client/model/UpdateCase.java @@ -63,7 +63,7 @@ * UpdateCase */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateCase { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java b/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java index a41e1d5bf..ff6ece7e5 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java @@ -59,7 +59,7 @@ * UpdateCaseRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateCaseRequest { public static final String SERIALIZED_NAME_CASE = "case"; diff --git a/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java b/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java index f20e1c30b..e498d7e72 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java @@ -58,7 +58,7 @@ * UpdateCaseResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateCaseResponse { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; diff --git a/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java b/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java index 00c51796e..473bdeb55 100644 --- a/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java @@ -62,7 +62,7 @@ * UpdateConfigurationRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateConfigurationRequest { public static final String SERIALIZED_NAME_CHAT_GPT_API_KEY = "chatGptApiKey"; diff --git a/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java b/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java index 3818ef0a9..202c975ae 100644 --- a/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java @@ -58,7 +58,7 @@ * UpdateConfigurationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateConfigurationResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java index 47c0702b8..87d746097 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java @@ -66,7 +66,7 @@ * UpdateDocumentFulltextRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java index a6b4420b0..cdf061001 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java @@ -58,7 +58,7 @@ * UpdateDocumentFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java b/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java index 7cccc01ab..17706f9ae 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java @@ -66,7 +66,7 @@ * UpdateDocumentRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateDocumentRequest { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java b/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java index bb1796993..9796e9f23 100644 --- a/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java @@ -59,7 +59,7 @@ * UpdateEntityRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateEntityRequest { public static final String SERIALIZED_NAME_ENTITY = "entity"; diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java index 5fbcf3c57..2c653cd74 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java @@ -60,7 +60,7 @@ * Add/Update of multiple document tag(s) based on document(s) that have the matching tag. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequest { public static final String SERIALIZED_NAME_MATCH = "match"; diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java index f649bb58d..6322c2d1c 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java @@ -59,7 +59,7 @@ * UpdateMatchingDocumentTagsRequestMatch */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequestMatch { public static final String SERIALIZED_NAME_TAG = "tag"; diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java index 08c2cb3a1..8b7bced8c 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java @@ -61,7 +61,7 @@ * Data to update */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequestUpdate { public static final String SERIALIZED_NAME_TAGS = "tags"; diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java index 4a91f6986..029dec0a4 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java @@ -58,7 +58,7 @@ * UpdateMatchingDocumentTagsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateNigo.java b/src/main/java/com/formkiq/client/model/UpdateNigo.java index 5892861aa..e3f3d0ea5 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigo.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigo.java @@ -63,7 +63,7 @@ * UpdateNigo */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateNigo { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java b/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java index 147a2cd97..781ed5383 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java @@ -59,7 +59,7 @@ * UpdateNigoRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateNigoRequest { public static final String SERIALIZED_NAME_NIGO = "nigo"; diff --git a/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java b/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java index 5abd73db1..7f5c8c4d3 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java @@ -58,7 +58,7 @@ * UpdateNigoResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateNigoResponse { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; diff --git a/src/main/java/com/formkiq/client/model/UpdateResponse.java b/src/main/java/com/formkiq/client/model/UpdateResponse.java index 691a6d871..28eeeebe5 100644 --- a/src/main/java/com/formkiq/client/model/UpdateResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateResponse.java @@ -58,7 +58,7 @@ * UpdateResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRule.java b/src/main/java/com/formkiq/client/model/UpdateRule.java index 4838eb8c3..fccb6e1b1 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRule.java +++ b/src/main/java/com/formkiq/client/model/UpdateRule.java @@ -61,7 +61,7 @@ * UpdateRule */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRule { public static final String SERIALIZED_NAME_PRIORITY = "priority"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java b/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java index ddd9ea9b7..f810d486d 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java @@ -59,7 +59,7 @@ * UpdateRuleRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRuleRequest { public static final String SERIALIZED_NAME_RULE = "rule"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java b/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java index 9be44ccc4..abf2cda7d 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java @@ -58,7 +58,7 @@ * UpdateRuleResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRuleResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleset.java b/src/main/java/com/formkiq/client/model/UpdateRuleset.java index 4e76fa25f..726fb2918 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleset.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleset.java @@ -60,7 +60,7 @@ * UpdateRuleset */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRuleset { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java b/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java index 46d5ffa95..33a285ffe 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java @@ -59,7 +59,7 @@ * UpdateRulesetRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRulesetRequest { public static final String SERIALIZED_NAME_RULESET = "ruleset"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java b/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java index e54dc19a7..354310e6d 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java @@ -58,7 +58,7 @@ * UpdateRulesetResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRulesetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateSite.java b/src/main/java/com/formkiq/client/model/UpdateSite.java index 2bd377e78..122363689 100644 --- a/src/main/java/com/formkiq/client/model/UpdateSite.java +++ b/src/main/java/com/formkiq/client/model/UpdateSite.java @@ -59,7 +59,7 @@ * UpdateSite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateSite { public static final String SERIALIZED_NAME_TITLE = "title"; diff --git a/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java b/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java index c6a252483..6150693a0 100644 --- a/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java @@ -59,7 +59,7 @@ * UpdateSiteRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateSiteRequest { public static final String SERIALIZED_NAME_SITE = "site"; diff --git a/src/main/java/com/formkiq/client/model/UpdateTask.java b/src/main/java/com/formkiq/client/model/UpdateTask.java index a3bdaa292..039416836 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTask.java +++ b/src/main/java/com/formkiq/client/model/UpdateTask.java @@ -63,7 +63,7 @@ * UpdateTask */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateTask { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java b/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java index 498ea9d72..d013ffcb7 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java @@ -59,7 +59,7 @@ * UpdateTaskRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateTaskRequest { public static final String SERIALIZED_NAME_TASK = "task"; diff --git a/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java b/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java index b13765235..c957f24d8 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java @@ -58,7 +58,7 @@ * UpdateTaskResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateTaskResponse { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; diff --git a/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java b/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java index 178dab181..ea6afb754 100644 --- a/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java @@ -59,7 +59,7 @@ * UpdateWorkflowRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java b/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java index 24ce1af81..a5f5803ec 100644 --- a/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java @@ -58,7 +58,7 @@ * UpdateWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/User.java b/src/main/java/com/formkiq/client/model/User.java index 12611b147..a075d2509 100644 --- a/src/main/java/com/formkiq/client/model/User.java +++ b/src/main/java/com/formkiq/client/model/User.java @@ -59,7 +59,7 @@ * User */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class User { public static final String SERIALIZED_NAME_USERNAME = "username"; diff --git a/src/main/java/com/formkiq/client/model/UserActivity.java b/src/main/java/com/formkiq/client/model/UserActivity.java index 05aa5d68c..0312a4ab6 100644 --- a/src/main/java/com/formkiq/client/model/UserActivity.java +++ b/src/main/java/com/formkiq/client/model/UserActivity.java @@ -63,7 +63,7 @@ * UserActivity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserActivity { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/UserActivityChanges.java b/src/main/java/com/formkiq/client/model/UserActivityChanges.java index 19fba47ba..021841fcd 100644 --- a/src/main/java/com/formkiq/client/model/UserActivityChanges.java +++ b/src/main/java/com/formkiq/client/model/UserActivityChanges.java @@ -58,7 +58,7 @@ * UserActivityChanges */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserActivityChanges { public static final String SERIALIZED_NAME_OLD_VALUE = "oldValue"; diff --git a/src/main/java/com/formkiq/client/model/UserAttributes.java b/src/main/java/com/formkiq/client/model/UserAttributes.java index 41e076b0d..4169a7065 100644 --- a/src/main/java/com/formkiq/client/model/UserAttributes.java +++ b/src/main/java/com/formkiq/client/model/UserAttributes.java @@ -58,7 +58,7 @@ * UserAttributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserAttributes { public static final String SERIALIZED_NAME_ADDRESS = "address"; diff --git a/src/main/java/com/formkiq/client/model/UserShare.java b/src/main/java/com/formkiq/client/model/UserShare.java index b2e16b791..d8c992a7c 100644 --- a/src/main/java/com/formkiq/client/model/UserShare.java +++ b/src/main/java/com/formkiq/client/model/UserShare.java @@ -62,7 +62,7 @@ * UserShare */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserShare { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/src/main/java/com/formkiq/client/model/ValidationError.java b/src/main/java/com/formkiq/client/model/ValidationError.java index 8bdba682f..92f35a5f9 100644 --- a/src/main/java/com/formkiq/client/model/ValidationError.java +++ b/src/main/java/com/formkiq/client/model/ValidationError.java @@ -58,7 +58,7 @@ * ValidationError */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ValidationError { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java b/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java index dd7b2a8f9..4c1106ce9 100644 --- a/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java +++ b/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java @@ -61,7 +61,7 @@ * ValidationErrorsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ValidationErrorsResponse { public static final String SERIALIZED_NAME_ERRORS = "errors"; diff --git a/src/main/java/com/formkiq/client/model/Watermark.java b/src/main/java/com/formkiq/client/model/Watermark.java index 71ac48958..a19e0147d 100644 --- a/src/main/java/com/formkiq/client/model/Watermark.java +++ b/src/main/java/com/formkiq/client/model/Watermark.java @@ -61,7 +61,7 @@ * Watermark */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Watermark { public static final String SERIALIZED_NAME_FONT_SIZE = "fontSize"; diff --git a/src/main/java/com/formkiq/client/model/WatermarkPosition.java b/src/main/java/com/formkiq/client/model/WatermarkPosition.java index 207409d0a..4b57dea92 100644 --- a/src/main/java/com/formkiq/client/model/WatermarkPosition.java +++ b/src/main/java/com/formkiq/client/model/WatermarkPosition.java @@ -61,7 +61,7 @@ * WatermarkPosition */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WatermarkPosition { public static final String SERIALIZED_NAME_X_ANCHOR = "xAnchor"; diff --git a/src/main/java/com/formkiq/client/model/WebhookTag.java b/src/main/java/com/formkiq/client/model/WebhookTag.java index 92a6e6d37..bf4e62f35 100644 --- a/src/main/java/com/formkiq/client/model/WebhookTag.java +++ b/src/main/java/com/formkiq/client/model/WebhookTag.java @@ -58,7 +58,7 @@ * WebhookTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WebhookTag { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; diff --git a/src/main/java/com/formkiq/client/model/WorkflowDocument.java b/src/main/java/com/formkiq/client/model/WorkflowDocument.java index 898a24698..f55ed8513 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowDocument.java +++ b/src/main/java/com/formkiq/client/model/WorkflowDocument.java @@ -60,7 +60,7 @@ * WorkflowDocument */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowDocument { public static final String SERIALIZED_NAME_WORKFLOW = "workflow"; diff --git a/src/main/java/com/formkiq/client/model/WorkflowQueue.java b/src/main/java/com/formkiq/client/model/WorkflowQueue.java index f21a310ea..504ad7994 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowQueue.java +++ b/src/main/java/com/formkiq/client/model/WorkflowQueue.java @@ -60,7 +60,7 @@ * WorkflowQueue */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowQueue { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; diff --git a/src/main/java/com/formkiq/client/model/WorkflowStep.java b/src/main/java/com/formkiq/client/model/WorkflowStep.java index dffa65c58..4d5384a40 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStep.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStep.java @@ -63,7 +63,7 @@ * WorkflowStep */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowStep { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; diff --git a/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java b/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java index 7a60ea166..6d0dfcf0b 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java @@ -59,7 +59,7 @@ * WorkflowStepDecision */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowStepDecision { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/WorkflowSummary.java b/src/main/java/com/formkiq/client/model/WorkflowSummary.java index 72df802da..f3f230160 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowSummary.java +++ b/src/main/java/com/formkiq/client/model/WorkflowSummary.java @@ -59,7 +59,7 @@ * WorkflowSummary */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-11-22T20:24:16.101866-06:00[America/Winnipeg]", + date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowSummary { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/test/java/com/formkiq/client/api/DocumentsApiTest.java b/src/test/java/com/formkiq/client/api/DocumentsApiTest.java index 753f8d281..c72309015 100644 --- a/src/test/java/com/formkiq/client/api/DocumentsApiTest.java +++ b/src/test/java/com/formkiq/client/api/DocumentsApiTest.java @@ -322,9 +322,10 @@ public void getDocumentsTest() throws ApiException { String tz = null; String next = null; String previous = null; + String projection = null; String limit = null; GetDocumentsResponse response = api.getDocuments(siteId, actionStatus, syncStatus, deleted, - date, tz, next, previous, limit); + date, tz, next, previous, projection, limit); // TODO: test validations } From 6247be3eba03d1f467e0bd901d96ce6440f15737 Mon Sep 17 00:00:00 2001 From: Mike Friesen Date: Tue, 23 Dec 2025 21:01:23 -0600 Subject: [PATCH 4/4] update --- README.md | 4 +- api/openapi.yaml | 43 +++++++++++-------- docs/DocumentFulltextResponse.md | 1 + docs/SetDocumentMustRetainRequest.md | 13 ++++++ .../formkiq/client/invoker/ApiException.java | 2 +- .../formkiq/client/invoker/Configuration.java | 2 +- .../java/com/formkiq/client/invoker/Pair.java | 2 +- .../client/invoker/ServerConfiguration.java | 2 +- .../client/invoker/ServerVariable.java | 2 +- .../formkiq/client/invoker/StringUtil.java | 2 +- .../formkiq/client/invoker/auth/AWS4Auth.java | 2 +- .../client/invoker/auth/ApiKeyAuth.java | 2 +- .../client/invoker/auth/Authentication.java | 2 +- .../client/invoker/auth/HttpBearerAuth.java | 2 +- .../formkiq/client/invoker/auth/OAuth.java | 2 +- .../client/invoker/auth/OAuthFlow.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../com/formkiq/client/model/Activity.java | 2 +- .../com/formkiq/client/model/AddAction.java | 2 +- .../client/model/AddActionParameters.java | 2 +- .../client/model/AddApiKeyRequest.java | 2 +- .../client/model/AddApiKeyResponse.java | 2 +- .../formkiq/client/model/AddAttribute.java | 2 +- .../client/model/AddAttributeRequest.java | 2 +- .../model/AddAttributeSchemaOptional.java | 2 +- .../model/AddAttributeSchemaRequired.java | 2 +- .../com/formkiq/client/model/AddCase.java | 2 +- .../formkiq/client/model/AddCaseRequest.java | 2 +- .../formkiq/client/model/AddCaseResponse.java | 2 +- .../client/model/AddChildDocument.java | 2 +- .../model/AddChildDocumentResponse.java | 2 +- .../client/model/AddClassification.java | 2 +- .../model/AddClassificationRequest.java | 2 +- .../model/AddClassificationResponse.java | 2 +- .../model/AddDocumentActionsRequest.java | 2 +- .../model/AddDocumentActionsResponse.java | 2 +- .../AddDocumentActionsRetryResponse.java | 2 +- .../client/model/AddDocumentAttribute.java | 2 +- .../AddDocumentAttributeClassification.java | 2 +- .../model/AddDocumentAttributeEntity.java | 2 +- .../AddDocumentAttributeRelationship.java | 2 +- .../model/AddDocumentAttributeStandard.java | 2 +- .../model/AddDocumentAttributeValue.java | 2 +- .../model/AddDocumentAttributesRequest.java | 2 +- .../model/AddDocumentFulltextRequest.java | 2 +- .../model/AddDocumentFulltextResponse.java | 2 +- .../model/AddDocumentGenerateRequest.java | 2 +- .../model/AddDocumentGenerateResponse.java | 2 +- .../client/model/AddDocumentMetadata.java | 2 +- .../client/model/AddDocumentOcrRequest.java | 2 +- .../client/model/AddDocumentOcrResponse.java | 2 +- .../client/model/AddDocumentRequest.java | 2 +- .../client/model/AddDocumentResponse.java | 2 +- .../formkiq/client/model/AddDocumentSync.java | 2 +- .../client/model/AddDocumentSyncRequest.java | 2 +- .../formkiq/client/model/AddDocumentTag.java | 2 +- .../client/model/AddDocumentTagsRequest.java | 2 +- .../model/AddDocumentUploadRequest.java | 2 +- .../AddDocumentWorkflowDecisionsRequest.java | 2 +- .../AddDocumentWorkflowDecisionsResponse.java | 2 +- .../model/AddDocumentWorkflowRequest.java | 2 +- .../model/AddDocumentWorkflowResponse.java | 2 +- .../model/AddDocusignEnvelopesRequest.java | 2 +- .../model/AddDocusignEnvelopesResponse.java | 2 +- .../AddDocusignRecipientViewRequest.java | 2 +- .../AddDocusignRecipientViewResponse.java | 2 +- .../com/formkiq/client/model/AddEntity.java | 2 +- .../client/model/AddEntityAttribute.java | 2 +- .../client/model/AddEntityRequest.java | 2 +- .../client/model/AddEntityResponse.java | 2 +- .../formkiq/client/model/AddEntityType.java | 2 +- .../client/model/AddEntityTypeRequest.java | 2 +- .../client/model/AddEntityTypeResponse.java | 2 +- .../client/model/AddFolderPermission.java | 2 +- .../client/model/AddFolderRequest.java | 2 +- .../client/model/AddFolderResponse.java | 2 +- .../client/model/AddFolderShareRequest.java | 2 +- .../client/model/AddFolderShareResponse.java | 2 +- .../model/AddGoogleDocumentExportRequest.java | 2 +- .../AddGoogleDocumentExportResponse.java | 2 +- .../com/formkiq/client/model/AddGroup.java | 2 +- .../formkiq/client/model/AddGroupRequest.java | 2 +- .../client/model/AddLocaleRequest.java | 2 +- .../AddLocaleResourceClassificationItem.java | 2 +- .../model/AddLocaleResourceInterfaceItem.java | 2 +- .../model/AddLocaleResourceItemRequest.java | 2 +- .../model/AddLocaleResourceItemResponse.java | 2 +- .../model/AddLocaleResourceSchemaItem.java | 2 +- .../com/formkiq/client/model/AddMapping.java | 2 +- .../client/model/AddMappingRequest.java | 2 +- .../client/model/AddMappingResponse.java | 2 +- .../com/formkiq/client/model/AddNigo.java | 2 +- .../formkiq/client/model/AddNigoRequest.java | 2 +- .../formkiq/client/model/AddNigoResponse.java | 2 +- .../formkiq/client/model/AddQueueRequest.java | 2 +- .../client/model/AddQueueResponse.java | 2 +- .../model/AddReindexDocumentRequest.java | 2 +- .../formkiq/client/model/AddResourceItem.java | 2 +- .../com/formkiq/client/model/AddResponse.java | 2 +- .../com/formkiq/client/model/AddRule.java | 2 +- .../formkiq/client/model/AddRuleRequest.java | 2 +- .../formkiq/client/model/AddRuleResponse.java | 2 +- .../com/formkiq/client/model/AddRuleset.java | 2 +- .../client/model/AddRulesetRequest.java | 2 +- .../client/model/AddRulesetResponse.java | 2 +- .../com/formkiq/client/model/AddShare.java | 2 +- .../com/formkiq/client/model/AddSite.java | 2 +- .../formkiq/client/model/AddSiteRequest.java | 2 +- .../com/formkiq/client/model/AddTask.java | 2 +- .../formkiq/client/model/AddTaskRequest.java | 2 +- .../formkiq/client/model/AddTaskResponse.java | 2 +- .../com/formkiq/client/model/AddUser.java | 2 +- .../formkiq/client/model/AddUserRequest.java | 2 +- .../client/model/AddWebhookRequest.java | 2 +- .../client/model/AddWebhookResponse.java | 2 +- .../client/model/AddWebhookTagRequest.java | 2 +- .../client/model/AddWorkflowRequest.java | 2 +- .../client/model/AddWorkflowResponse.java | 2 +- .../formkiq/client/model/AddWorkflowStep.java | 2 +- .../client/model/AddWorkflowStepDecision.java | 2 +- .../client/model/AddWorkflowStepQueue.java | 2 +- .../java/com/formkiq/client/model/ApiKey.java | 2 +- .../com/formkiq/client/model/Attribute.java | 2 +- .../model/AttributeSchemaCompositeKey.java | 2 +- .../client/model/AttributeSchemaOptional.java | 2 +- .../client/model/AttributeSchemaRequired.java | 2 +- .../formkiq/client/model/ChildDocument.java | 2 +- .../formkiq/client/model/Classification.java | 2 +- .../client/model/ClassificationSummary.java | 2 +- .../client/model/DataClassification.java | 2 +- .../model/DataClassificationAttribute.java | 2 +- .../client/model/DeleteApiKeyResponse.java | 2 +- .../model/DeleteCaseDocumentResponse.java | 2 +- .../model/DeleteCaseNigoDocumentResponse.java | 2 +- .../client/model/DeleteCaseNigoResponse.java | 2 +- .../client/model/DeleteCaseResponse.java | 2 +- .../model/DeleteCaseTaskDocumentResponse.java | 2 +- .../client/model/DeleteCaseTaskResponse.java | 2 +- .../client/model/DeleteFolderResponse.java | 2 +- .../client/model/DeleteFulltextResponse.java | 2 +- .../client/model/DeleteIndicesResponse.java | 2 +- .../client/model/DeleteQueueResponse.java | 2 +- .../formkiq/client/model/DeleteResponse.java | 2 +- .../client/model/DeleteRuleResponse.java | 2 +- .../client/model/DeleteRulesetResponse.java | 2 +- .../client/model/DeleteShareResponse.java | 2 +- .../client/model/DeleteWorkflowResponse.java | 2 +- .../com/formkiq/client/model/Document.java | 2 +- .../formkiq/client/model/DocumentAction.java | 2 +- .../client/model/DocumentAttribute.java | 2 +- .../formkiq/client/model/DocumentConfig.java | 2 +- .../model/DocumentConfigContentTypes.java | 2 +- .../model/DocumentFulltextAttribute.java | 2 +- .../model/DocumentFulltextAttributeEq.java | 2 +- .../client/model/DocumentFulltextRequest.java | 2 +- .../model/DocumentFulltextResponse.java | 37 ++++++++++++++-- .../client/model/DocumentFulltextSearch.java | 2 +- .../client/model/DocumentFulltextTag.java | 2 +- .../model/DocumentGenerateDataSource.java | 2 +- .../model/DocumentGenerateInsertDocument.java | 2 +- .../com/formkiq/client/model/DocumentId.java | 2 +- .../client/model/DocumentMetadata.java | 2 +- .../formkiq/client/model/DocumentSearch.java | 2 +- .../client/model/DocumentSearchAttribute.java | 2 +- .../model/DocumentSearchMatchAttribute.java | 2 +- .../client/model/DocumentSearchMatchTag.java | 2 +- .../client/model/DocumentSearchMeta.java | 2 +- .../client/model/DocumentSearchRange.java | 2 +- .../client/model/DocumentSearchRequest.java | 2 +- .../client/model/DocumentSearchResponse.java | 2 +- .../client/model/DocumentSearchTag.java | 2 +- .../client/model/DocumentSearchTags.java | 2 +- .../formkiq/client/model/DocumentSync.java | 2 +- .../com/formkiq/client/model/DocumentTag.java | 2 +- .../formkiq/client/model/DocumentVersion.java | 2 +- .../client/model/DocumentWorkflow.java | 2 +- .../model/DocumentsCompressRequest.java | 2 +- .../model/DocumentsCompressResponse.java | 2 +- .../formkiq/client/model/DocusignConfig.java | 2 +- .../client/model/DocusignInpersonSigner.java | 2 +- .../client/model/DocusignNotification.java | 2 +- .../DocusignNotificationExpirations.java | 2 +- .../model/DocusignNotificationReminders.java | 2 +- .../client/model/DocusignRecipientView.java | 2 +- .../client/model/DocusignSignHereTabs.java | 2 +- .../formkiq/client/model/DocusignSigner.java | 2 +- .../client/model/DocusignSigningTabs.java | 2 +- .../java/com/formkiq/client/model/Entity.java | 2 +- .../formkiq/client/model/EntityAttribute.java | 2 +- .../com/formkiq/client/model/EntityType.java | 2 +- .../java/com/formkiq/client/model/Error.java | 2 +- .../formkiq/client/model/ErrorsResponse.java | 2 +- .../client/model/FolderPermission.java | 2 +- .../client/model/FulltextAttribute.java | 2 +- .../client/model/FulltextSearchItem.java | 2 +- .../client/model/GetActivitesResponse.java | 2 +- .../client/model/GetApiKeysResponse.java | 2 +- .../GetAttributeAllowedValuesResponse.java | 2 +- .../client/model/GetAttributeResponse.java | 2 +- .../client/model/GetAttributesResponse.java | 2 +- .../model/GetCaseDocumentsResponse.java | 2 +- .../client/model/GetCaseNigoResponse.java | 2 +- .../client/model/GetCaseNigosResponse.java | 2 +- .../formkiq/client/model/GetCaseResponse.java | 2 +- .../client/model/GetCaseTaskResponse.java | 2 +- .../client/model/GetCaseTasksResponse.java | 2 +- .../client/model/GetCasesResponse.java | 2 +- .../model/GetClassificationResponse.java | 2 +- .../model/GetClassificationsResponse.java | 2 +- .../model/GetConfigurationResponse.java | 2 +- .../model/GetDocumentActionsResponse.java | 2 +- .../model/GetDocumentAttributeResponse.java | 2 +- .../model/GetDocumentAttributesResponse.java | 2 +- .../model/GetDocumentContentResponse.java | 2 +- ...GetDocumentDataClassificationResponse.java | 2 +- .../model/GetDocumentFulltextResponse.java | 2 +- .../client/model/GetDocumentOcrResponse.java | 2 +- .../client/model/GetDocumentResponse.java | 2 +- .../client/model/GetDocumentSyncResponse.java | 2 +- .../client/model/GetDocumentTagResponse.java | 2 +- .../client/model/GetDocumentTagsResponse.java | 2 +- .../client/model/GetDocumentUrlResponse.java | 2 +- .../model/GetDocumentVersionsResponse.java | 2 +- .../model/GetDocumentWorkflowResponse.java | 2 +- .../model/GetDocumentWorkflowsResponse.java | 2 +- .../client/model/GetDocumentsResponse.java | 2 +- .../client/model/GetEntitiesResponse.java | 2 +- .../client/model/GetEntityResponse.java | 2 +- .../client/model/GetEntityTypeResponse.java | 2 +- .../client/model/GetEntityTypesResponse.java | 2 +- .../client/model/GetExaminePdfResponse.java | 2 +- .../model/GetExaminePdfUrlResponse.java | 2 +- .../model/GetFolderPermissionsResponse.java | 2 +- .../client/model/GetFoldersResponse.java | 2 +- .../client/model/GetGroupResponse.java | 2 +- .../client/model/GetGroupsResponse.java | 2 +- .../model/GetLocaleResourceItemResponse.java | 2 +- .../model/GetLocaleResourceItemsResponse.java | 2 +- .../client/model/GetLocalesResponse.java | 2 +- .../client/model/GetMalwareScanResponse.java | 2 +- .../client/model/GetMappingResponse.java | 2 +- .../client/model/GetMappingsResponse.java | 2 +- .../model/GetOpaAccessPoliciesResponse.java | 2 +- .../GetOpaAccessPolicyItemsResponse.java | 2 +- .../model/GetOpaAccessPolicyResponse.java | 2 +- .../model/GetOpenSearchIndexResponse.java | 2 +- .../model/GetOpenSearchIndiceResponse.java | 2 +- ...tOpenSearchSnapshotRepositoryResponse.java | 2 +- .../model/GetOpenSearchSnapshotResponse.java | 2 +- .../client/model/GetQueueResponse.java | 2 +- .../client/model/GetQueuesResponse.java | 2 +- .../formkiq/client/model/GetRuleResponse.java | 2 +- .../client/model/GetRulesResponse.java | 2 +- .../client/model/GetRulesetResponse.java | 2 +- .../client/model/GetRulesetsResponse.java | 2 +- .../client/model/GetSiteGroupResponse.java | 2 +- .../client/model/GetSiteGroupsResponse.java | 2 +- .../client/model/GetSitesResponse.java | 2 +- .../client/model/GetSitesSchemaResponse.java | 2 +- .../model/GetUserActivitesResponse.java | 2 +- .../client/model/GetUserGroupsResponse.java | 2 +- .../formkiq/client/model/GetUserResponse.java | 2 +- .../client/model/GetUserSharesResponse.java | 2 +- .../client/model/GetUsersInGroupResponse.java | 2 +- .../client/model/GetUsersResponse.java | 2 +- .../client/model/GetVersionResponse.java | 2 +- .../client/model/GetWebhookResponse.java | 2 +- .../client/model/GetWebhookTagsResponse.java | 2 +- .../client/model/GetWebhooksResponse.java | 2 +- .../model/GetWorkflowDocumentsResponse.java | 2 +- .../GetWorkflowQueueDocumentsResponse.java | 2 +- .../client/model/GetWorkflowResponse.java | 2 +- .../client/model/GetWorkflowsResponse.java | 2 +- .../formkiq/client/model/GoogleConfig.java | 2 +- .../java/com/formkiq/client/model/Group.java | 2 +- .../client/model/IndexFolderMoveRequest.java | 2 +- .../client/model/IndexFolderMoveResponse.java | 2 +- .../com/formkiq/client/model/IndexSearch.java | 2 +- .../client/model/IndexSearchRequest.java | 2 +- .../client/model/IndexSearchResponse.java | 2 +- .../com/formkiq/client/model/LocaleInfo.java | 2 +- .../client/model/MalwareScanResult.java | 2 +- .../com/formkiq/client/model/Mapping.java | 2 +- .../client/model/MappingAttribute.java | 2 +- .../client/model/MatchDocumentTag.java | 2 +- .../com/formkiq/client/model/ModelCase.java | 2 +- .../java/com/formkiq/client/model/Nigo.java | 2 +- .../com/formkiq/client/model/OcrConfig.java | 2 +- .../formkiq/client/model/OcrKeyValues.java | 2 +- .../com/formkiq/client/model/OcrTable.java | 2 +- .../formkiq/client/model/OcrTableData.java | 2 +- .../com/formkiq/client/model/OpaPolicy.java | 2 +- .../client/model/OpaPolicyAttribute.java | 2 +- .../client/model/OpaPolicyAttributeEq.java | 2 +- .../client/model/OpaPolicyAttributeGt.java | 2 +- .../client/model/OpaPolicyAttributeGte.java | 2 +- .../client/model/OpaPolicyAttributeIn.java | 2 +- .../client/model/OpaPolicyAttributeInput.java | 2 +- .../client/model/OpaPolicyAttributeLt.java | 2 +- .../client/model/OpaPolicyAttributeLte.java | 2 +- .../client/model/OpaPolicyAttributeNeq.java | 2 +- .../client/model/OpaPolicyAttributeNotIn.java | 2 +- .../formkiq/client/model/OpaPolicyInput.java | 2 +- .../client/model/OpaPolicyInputMethod.java | 2 +- .../client/model/OpaPolicyInputResource.java | 2 +- .../formkiq/client/model/OpaPolicyItem.java | 2 +- .../formkiq/client/model/OpenSearchAlias.java | 2 +- .../formkiq/client/model/OpenSearchIndex.java | 2 +- .../client/model/OpenSearchIndexSetting.java | 2 +- .../client/model/OpenSearchS3Repository.java | 2 +- .../client/model/OpenSearchSnapshot.java | 2 +- .../model/OpenSearchSnapshotFailure.java | 2 +- .../client/model/OpenSearchSnapshotShard.java | 2 +- .../com/formkiq/client/model/PdfDocument.java | 2 +- .../client/model/PdfDocumentField.java | 2 +- .../client/model/QueryFulltextResponse.java | 2 +- .../java/com/formkiq/client/model/Queue.java | 2 +- .../formkiq/client/model/ResourceItem.java | 2 +- .../java/com/formkiq/client/model/Rule.java | 2 +- .../formkiq/client/model/RuleCondition.java | 2 +- .../client/model/RuleConditionMust.java | 2 +- .../com/formkiq/client/model/Ruleset.java | 2 +- .../client/model/SchemaAttributes.java | 2 +- .../client/model/SearchResponseFields.java | 2 +- .../client/model/SearchResultDocument.java | 2 +- .../model/SearchResultDocumentAttribute.java | 2 +- .../model/SetClassificationRequest.java | 2 +- .../model/SetDocumentAttributeRequest.java | 2 +- .../model/SetDocumentAttributesRequest.java | 2 +- .../SetDocumentDataClassificationRequest.java | 2 +- ...SetDocumentDataClassificationResponse.java | 2 +- .../model/SetDocumentFulltextRequest.java | 2 +- .../model/SetDocumentFulltextResponse.java | 2 +- .../client/model/SetDocumentOcrRequest.java | 2 +- .../model/SetDocumentRestoreResponse.java | 2 +- .../model/SetDocumentTagKeyRequest.java | 2 +- .../model/SetDocumentVersionRequest.java | 2 +- .../model/SetDocumentVersionResponse.java | 2 +- .../model/SetFolderPermissionsRequest.java | 2 +- .../model/SetGroupPermissionsRequest.java | 2 +- .../model/SetLocaleResourceItemRequest.java | 2 +- .../client/model/SetMappingRequest.java | 2 +- .../model/SetOpaAccessPolicyItemsRequest.java | 2 +- .../model/SetOpenSearchIndexRequest.java | 2 +- .../model/SetOpenSearchIndexResponse.java | 2 +- .../model/SetOpenSearchIndiceRequest.java | 2 +- .../com/formkiq/client/model/SetResponse.java | 2 +- .../client/model/SetSchemaAttributes.java | 2 +- .../client/model/SetSitesSchemaRequest.java | 2 +- .../client/model/SetWorkflowRequest.java | 2 +- .../client/model/SetWorkflowResponse.java | 2 +- .../java/com/formkiq/client/model/Site.java | 2 +- .../com/formkiq/client/model/SiteConfig.java | 2 +- .../com/formkiq/client/model/SiteGroup.java | 2 +- .../com/formkiq/client/model/SiteUsage.java | 2 +- .../formkiq/client/model/StringFormat.java | 2 +- .../java/com/formkiq/client/model/Task.java | 2 +- .../formkiq/client/model/TextractQuery.java | 2 +- .../formkiq/client/model/UpdateAttribute.java | 2 +- .../client/model/UpdateAttributeRequest.java | 2 +- .../com/formkiq/client/model/UpdateCase.java | 2 +- .../client/model/UpdateCaseRequest.java | 2 +- .../client/model/UpdateCaseResponse.java | 2 +- .../model/UpdateConfigurationRequest.java | 2 +- .../model/UpdateConfigurationResponse.java | 2 +- .../model/UpdateDocumentFulltextRequest.java | 2 +- .../model/UpdateDocumentFulltextResponse.java | 2 +- .../client/model/UpdateDocumentRequest.java | 2 +- .../client/model/UpdateEntityRequest.java | 2 +- .../UpdateMatchingDocumentTagsRequest.java | 2 +- ...pdateMatchingDocumentTagsRequestMatch.java | 2 +- ...dateMatchingDocumentTagsRequestUpdate.java | 2 +- .../UpdateMatchingDocumentTagsResponse.java | 2 +- .../com/formkiq/client/model/UpdateNigo.java | 2 +- .../client/model/UpdateNigoRequest.java | 2 +- .../client/model/UpdateNigoResponse.java | 2 +- .../formkiq/client/model/UpdateResponse.java | 2 +- .../com/formkiq/client/model/UpdateRule.java | 2 +- .../client/model/UpdateRuleRequest.java | 2 +- .../client/model/UpdateRuleResponse.java | 2 +- .../formkiq/client/model/UpdateRuleset.java | 2 +- .../client/model/UpdateRulesetRequest.java | 2 +- .../client/model/UpdateRulesetResponse.java | 2 +- .../com/formkiq/client/model/UpdateSite.java | 2 +- .../client/model/UpdateSiteRequest.java | 2 +- .../com/formkiq/client/model/UpdateTask.java | 2 +- .../client/model/UpdateTaskRequest.java | 2 +- .../client/model/UpdateTaskResponse.java | 2 +- .../client/model/UpdateWorkflowRequest.java | 2 +- .../client/model/UpdateWorkflowResponse.java | 2 +- .../java/com/formkiq/client/model/User.java | 2 +- .../formkiq/client/model/UserActivity.java | 2 +- .../client/model/UserActivityChanges.java | 2 +- .../formkiq/client/model/UserAttributes.java | 2 +- .../com/formkiq/client/model/UserShare.java | 2 +- .../formkiq/client/model/ValidationError.java | 2 +- .../model/ValidationErrorsResponse.java | 2 +- .../com/formkiq/client/model/Watermark.java | 2 +- .../client/model/WatermarkPosition.java | 2 +- .../com/formkiq/client/model/WebhookTag.java | 2 +- .../client/model/WorkflowDocument.java | 2 +- .../formkiq/client/model/WorkflowQueue.java | 2 +- .../formkiq/client/model/WorkflowStep.java | 2 +- .../client/model/WorkflowStepDecision.java | 2 +- .../formkiq/client/model/WorkflowSummary.java | 2 +- .../model/DocumentFulltextResponseTest.java | 8 ++++ 406 files changed, 481 insertions(+), 425 deletions(-) create mode 100644 docs/SetDocumentMustRetainRequest.md diff --git a/README.md b/README.md index 0c5b7bcca..12d93656e 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ This is the official supported Java library for the FormKiQ API. FormKiQ HTTP API -- API version: 1.18.0 - - Build date: 2025-11-01T15:09:25.429667-05:00[America/Winnipeg] +- API version: 1.18.1 + - Build date: 2025-12-07T17:20:11.660615-06:00[America/Winnipeg] - Generator version: 7.17.0 Formkiq API: Document Management Platform API using OAuth(JWT) Authentication diff --git a/api/openapi.yaml b/api/openapi.yaml index bdf5ae030..08a749b42 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -15741,12 +15741,12 @@ components: checksumType: SHA1 siteId: siteId documentId: documentId - contentLength: 0 + contentLength: 6 attributes: key: numberValues: - - 6.027456183070403 - - 6.027456183070403 + - 1.4658129805029452 + - 1.4658129805029452 stringValues: - stringValues - stringValues @@ -15768,12 +15768,12 @@ components: checksumType: SHA1 siteId: siteId documentId: documentId - contentLength: 0 + contentLength: 6 attributes: key: numberValues: - - 6.027456183070403 - - 6.027456183070403 + - 1.4658129805029452 + - 1.4658129805029452 stringValues: - stringValues - stringValues @@ -15781,7 +15781,12 @@ components: booleanValue: true contentType: contentType height: height + totalCount: 0 properties: + totalCount: + description: | + Total number of documents that matched the search query. When the number of matches exceeds 10,000, this value will be reported as 10,000+ unless the search request explicitly enables exact total hit tracking. + type: integer documents: description: List of search result documents items: @@ -15804,12 +15809,12 @@ components: checksumType: SHA1 siteId: siteId documentId: documentId - contentLength: 0 + contentLength: 6 attributes: key: numberValues: - - 6.027456183070403 - - 6.027456183070403 + - 1.4658129805029452 + - 1.4658129805029452 stringValues: - stringValues - stringValues @@ -15886,8 +15891,8 @@ components: FulltextAttribute: example: numberValues: - - 6.027456183070403 - - 6.027456183070403 + - 1.4658129805029452 + - 1.4658129805029452 stringValues: - stringValues - stringValues @@ -15931,8 +15936,8 @@ components: attributes: key: numberValues: - - 6.027456183070403 - - 6.027456183070403 + - 1.4658129805029452 + - 1.4658129805029452 stringValues: - stringValues - stringValues @@ -20359,8 +20364,8 @@ components: attributes: key: numberValues: - - 6.027456183070403 - - 6.027456183070403 + - 1.4658129805029452 + - 1.4658129805029452 stringValues: - stringValues - stringValues @@ -20448,8 +20453,8 @@ components: attributes: key: numberValues: - - 6.027456183070403 - - 6.027456183070403 + - 1.4658129805029452 + - 1.4658129805029452 stringValues: - stringValues - stringValues @@ -20537,8 +20542,8 @@ components: attributes: key: numberValues: - - 6.027456183070403 - - 6.027456183070403 + - 1.4658129805029452 + - 1.4658129805029452 stringValues: - stringValues - stringValues diff --git a/docs/DocumentFulltextResponse.md b/docs/DocumentFulltextResponse.md index 859be307d..7ad4cb234 100644 --- a/docs/DocumentFulltextResponse.md +++ b/docs/DocumentFulltextResponse.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**totalCount** | **Integer** | Total number of documents that matched the search query. When the number of matches exceeds 10,000, this value will be reported as 10,000+ unless the search request explicitly enables exact total hit tracking. | [optional] | |**documents** | [**List<FulltextSearchItem>**](FulltextSearchItem.md) | List of search result documents | [optional] | diff --git a/docs/SetDocumentMustRetainRequest.md b/docs/SetDocumentMustRetainRequest.md new file mode 100644 index 000000000..639356694 --- /dev/null +++ b/docs/SetDocumentMustRetainRequest.md @@ -0,0 +1,13 @@ + + +# SetDocumentMustRetainRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mustRetain** | **Boolean** | Whether the document must be retained and protected from deletion. | | + + + diff --git a/src/main/java/com/formkiq/client/invoker/ApiException.java b/src/main/java/com/formkiq/client/invoker/ApiException.java index e2fdab7c4..33c0e2d7f 100644 --- a/src/main/java/com/formkiq/client/invoker/ApiException.java +++ b/src/main/java/com/formkiq/client/invoker/ApiException.java @@ -32,7 +32,7 @@ */ @SuppressWarnings("serial") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/src/main/java/com/formkiq/client/invoker/Configuration.java b/src/main/java/com/formkiq/client/invoker/Configuration.java index 8e517fee9..309cd4c76 100644 --- a/src/main/java/com/formkiq/client/invoker/Configuration.java +++ b/src/main/java/com/formkiq/client/invoker/Configuration.java @@ -25,7 +25,7 @@ import java.util.function.Supplier; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Configuration { public static final String VERSION = "1.18.1"; diff --git a/src/main/java/com/formkiq/client/invoker/Pair.java b/src/main/java/com/formkiq/client/invoker/Pair.java index 131b83b08..c45563ef9 100644 --- a/src/main/java/com/formkiq/client/invoker/Pair.java +++ b/src/main/java/com/formkiq/client/invoker/Pair.java @@ -21,7 +21,7 @@ package com.formkiq.client.invoker; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Pair { private final String name; diff --git a/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java b/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java index b759f005b..81ff86d9f 100644 --- a/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java +++ b/src/main/java/com/formkiq/client/invoker/ServerConfiguration.java @@ -26,7 +26,7 @@ * Representing a Server configuration. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ServerConfiguration { public String URL; diff --git a/src/main/java/com/formkiq/client/invoker/ServerVariable.java b/src/main/java/com/formkiq/client/invoker/ServerVariable.java index b03abcf3e..99b2ba979 100644 --- a/src/main/java/com/formkiq/client/invoker/ServerVariable.java +++ b/src/main/java/com/formkiq/client/invoker/ServerVariable.java @@ -26,7 +26,7 @@ * Representing a Server Variable for server URL template substitution. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ServerVariable { public String description; diff --git a/src/main/java/com/formkiq/client/invoker/StringUtil.java b/src/main/java/com/formkiq/client/invoker/StringUtil.java index d95148a7d..61a39fbe8 100644 --- a/src/main/java/com/formkiq/client/invoker/StringUtil.java +++ b/src/main/java/com/formkiq/client/invoker/StringUtil.java @@ -24,7 +24,7 @@ import java.util.Iterator; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class StringUtil { /** diff --git a/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java b/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java index a29552dd7..bab94f448 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/AWS4Auth.java @@ -46,7 +46,7 @@ import okio.Buffer; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AWS4Auth implements Authentication { diff --git a/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java b/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java index 0284b8ddc..903a26466 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/ApiKeyAuth.java @@ -28,7 +28,7 @@ import java.util.List; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ApiKeyAuth implements Authentication { private final String location; diff --git a/src/main/java/com/formkiq/client/invoker/auth/Authentication.java b/src/main/java/com/formkiq/client/invoker/auth/Authentication.java index 5fa3b35e5..1ac68b33e 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/Authentication.java +++ b/src/main/java/com/formkiq/client/invoker/auth/Authentication.java @@ -28,7 +28,7 @@ import java.util.List; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public interface Authentication { /** diff --git a/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java b/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java index d16c314ca..af47985a8 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/HttpBearerAuth.java @@ -30,7 +30,7 @@ import java.util.function.Supplier; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class HttpBearerAuth implements Authentication { private final String scheme; diff --git a/src/main/java/com/formkiq/client/invoker/auth/OAuth.java b/src/main/java/com/formkiq/client/invoker/auth/OAuth.java index ac7adb218..71f92ee9e 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/OAuth.java +++ b/src/main/java/com/formkiq/client/invoker/auth/OAuth.java @@ -28,7 +28,7 @@ import java.util.List; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java b/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java index bf506a2c4..d48abf767 100644 --- a/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java +++ b/src/main/java/com/formkiq/client/invoker/auth/OAuthFlow.java @@ -24,7 +24,7 @@ * OAuth flows that are supported by this client */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public enum OAuthFlow { ACCESS_CODE, // called authorizationCode in OpenAPI 3.0 diff --git a/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java b/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java index effa3de36..1e0109e48 100644 --- a/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/formkiq/client/model/AbstractOpenApiSchema.java @@ -29,7 +29,7 @@ * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public abstract class AbstractOpenApiSchema { diff --git a/src/main/java/com/formkiq/client/model/Activity.java b/src/main/java/com/formkiq/client/model/Activity.java index cdb2e3e20..147d7e6c3 100644 --- a/src/main/java/com/formkiq/client/model/Activity.java +++ b/src/main/java/com/formkiq/client/model/Activity.java @@ -63,7 +63,7 @@ * Activity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Activity { public static final String SERIALIZED_NAME_RESOURCE = "resource"; diff --git a/src/main/java/com/formkiq/client/model/AddAction.java b/src/main/java/com/formkiq/client/model/AddAction.java index b1dc40b01..c8c493b3b 100644 --- a/src/main/java/com/formkiq/client/model/AddAction.java +++ b/src/main/java/com/formkiq/client/model/AddAction.java @@ -60,7 +60,7 @@ * AddAction */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAction { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/AddActionParameters.java b/src/main/java/com/formkiq/client/model/AddActionParameters.java index fa50bfe3c..71e27a51a 100644 --- a/src/main/java/com/formkiq/client/model/AddActionParameters.java +++ b/src/main/java/com/formkiq/client/model/AddActionParameters.java @@ -63,7 +63,7 @@ * AddActionParameters */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddActionParameters { public static final String SERIALIZED_NAME_OCR_TEXTRACT_QUERIES = "ocrTextractQueries"; diff --git a/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java b/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java index 525973c03..81b01903e 100644 --- a/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java +++ b/src/main/java/com/formkiq/client/model/AddApiKeyRequest.java @@ -61,7 +61,7 @@ * AddApiKeyRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddApiKeyRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java b/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java index 552de1142..465bf2e56 100644 --- a/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java +++ b/src/main/java/com/formkiq/client/model/AddApiKeyResponse.java @@ -58,7 +58,7 @@ * AddApiKeyResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddApiKeyResponse { public static final String SERIALIZED_NAME_API_KEY = "apiKey"; diff --git a/src/main/java/com/formkiq/client/model/AddAttribute.java b/src/main/java/com/formkiq/client/model/AddAttribute.java index cdca41f58..543729b91 100644 --- a/src/main/java/com/formkiq/client/model/AddAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddAttribute.java @@ -61,7 +61,7 @@ * AddAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddAttributeRequest.java b/src/main/java/com/formkiq/client/model/AddAttributeRequest.java index 87ea4bc8b..f3c324cf6 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeRequest.java @@ -59,7 +59,7 @@ * AddAttributeRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java b/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java index aaa96d62e..cccc6d3ff 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeSchemaOptional.java @@ -61,7 +61,7 @@ * AddAttributeSchemaOptional */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttributeSchemaOptional { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; diff --git a/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java b/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java index 2149299c7..ccbf6311f 100644 --- a/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java +++ b/src/main/java/com/formkiq/client/model/AddAttributeSchemaRequired.java @@ -61,7 +61,7 @@ * AddAttributeSchemaRequired */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddAttributeSchemaRequired { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; diff --git a/src/main/java/com/formkiq/client/model/AddCase.java b/src/main/java/com/formkiq/client/model/AddCase.java index 7f0ff37c0..8ea7cd9b3 100644 --- a/src/main/java/com/formkiq/client/model/AddCase.java +++ b/src/main/java/com/formkiq/client/model/AddCase.java @@ -64,7 +64,7 @@ * AddCase */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddCase { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddCaseRequest.java b/src/main/java/com/formkiq/client/model/AddCaseRequest.java index 461ef7d88..b7625c6df 100644 --- a/src/main/java/com/formkiq/client/model/AddCaseRequest.java +++ b/src/main/java/com/formkiq/client/model/AddCaseRequest.java @@ -59,7 +59,7 @@ * AddCaseRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddCaseRequest { public static final String SERIALIZED_NAME_CASE = "case"; diff --git a/src/main/java/com/formkiq/client/model/AddCaseResponse.java b/src/main/java/com/formkiq/client/model/AddCaseResponse.java index 94a5160a6..9eb861e73 100644 --- a/src/main/java/com/formkiq/client/model/AddCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/AddCaseResponse.java @@ -58,7 +58,7 @@ * AddCaseResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddCaseResponse { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; diff --git a/src/main/java/com/formkiq/client/model/AddChildDocument.java b/src/main/java/com/formkiq/client/model/AddChildDocument.java index 15af12c77..476414341 100644 --- a/src/main/java/com/formkiq/client/model/AddChildDocument.java +++ b/src/main/java/com/formkiq/client/model/AddChildDocument.java @@ -63,7 +63,7 @@ * List of related documents */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddChildDocument { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java b/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java index 7090b192e..385eb8c17 100644 --- a/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/AddChildDocumentResponse.java @@ -60,7 +60,7 @@ * AddChildDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddChildDocumentResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddClassification.java b/src/main/java/com/formkiq/client/model/AddClassification.java index 81e6fd516..eca7d88f3 100644 --- a/src/main/java/com/formkiq/client/model/AddClassification.java +++ b/src/main/java/com/formkiq/client/model/AddClassification.java @@ -59,7 +59,7 @@ * AddClassification */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddClassification { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddClassificationRequest.java b/src/main/java/com/formkiq/client/model/AddClassificationRequest.java index 144adeb08..ebbb23d14 100644 --- a/src/main/java/com/formkiq/client/model/AddClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/AddClassificationRequest.java @@ -59,7 +59,7 @@ * AddClassificationRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddClassificationRequest { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; diff --git a/src/main/java/com/formkiq/client/model/AddClassificationResponse.java b/src/main/java/com/formkiq/client/model/AddClassificationResponse.java index e4dd9ac12..e6664370e 100644 --- a/src/main/java/com/formkiq/client/model/AddClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/AddClassificationResponse.java @@ -58,7 +58,7 @@ * AddClassificationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddClassificationResponse { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java index 5857d7f72..9afc29a67 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsRequest.java @@ -61,7 +61,7 @@ * AddDocumentActionsRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentActionsRequest { public static final String SERIALIZED_NAME_ACTIONS = "actions"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java index 7d64a2266..d664bedd7 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsResponse.java @@ -58,7 +58,7 @@ * AddDocumentActionsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentActionsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java index 4754855c3..6cfbdfe7d 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentActionsRetryResponse.java @@ -58,7 +58,7 @@ * AddDocumentActionsRetryResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentActionsRetryResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java b/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java index acafe6508..919a14490 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttribute.java @@ -76,7 +76,7 @@ import com.formkiq.client.invoker.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttribute extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(AddDocumentAttribute.class.getName()); diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java index dec5511d9..2994efcd8 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeClassification.java @@ -58,7 +58,7 @@ * Document Classification */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeClassification { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java index 76a89e614..bd32ebdef 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeEntity.java @@ -59,7 +59,7 @@ * Document Entity Attribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeEntity { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java index c60f9487c..1dfe65c8b 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeRelationship.java @@ -59,7 +59,7 @@ * Document Relationship */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeRelationship { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java index 9f38301e5..3d4e09fe7 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeStandard.java @@ -61,7 +61,7 @@ * Document Attribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeStandard { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java index 30ad7f1a9..0103f2fa7 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributeValue.java @@ -61,7 +61,7 @@ * Document Attribute Value */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributeValue { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java index ee5aa6ecf..57143b033 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentAttributesRequest.java @@ -61,7 +61,7 @@ * Add List of document attributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentAttributesRequest { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java index 554365485..78c49018f 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentFulltextRequest.java @@ -66,7 +66,7 @@ * AddDocumentFulltextRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java index 7c96d4426..afe3d3068 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentFulltextResponse.java @@ -58,7 +58,7 @@ * AddDocumentFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java index 372053cf9..fc4163330 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentGenerateRequest.java @@ -64,7 +64,7 @@ * AddDocumentGenerateRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentGenerateRequest { public static final String SERIALIZED_NAME_LOCALE = "locale"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java index 7e66e1200..7bb2fa754 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentGenerateResponse.java @@ -58,7 +58,7 @@ * AddDocumentGenerateResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentGenerateResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java b/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java index 4581e7e7a..fa7e29ec9 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentMetadata.java @@ -60,7 +60,7 @@ * Document Metadata (use either 'value' or 'values' not both) */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentMetadata { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java index 91b22de83..d2bde64c0 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentOcrRequest.java @@ -63,7 +63,7 @@ * AddDocumentOcrRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentOcrRequest { public static final String SERIALIZED_NAME_TEXTRACT_QUERIES = "textractQueries"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java index 36a4fd024..d303044ec 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentOcrResponse.java @@ -58,7 +58,7 @@ * AddDocumentOcrResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentOcrResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentRequest.java index a2de004d1..d5b0e554f 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentRequest.java @@ -66,7 +66,7 @@ * AddDocumentRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentRequest { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentResponse.java index b48d77209..a33729649 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentResponse.java @@ -63,7 +63,7 @@ * AddDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentSync.java b/src/main/java/com/formkiq/client/model/AddDocumentSync.java index 34f711196..83cfb30dd 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentSync.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentSync.java @@ -60,7 +60,7 @@ * AddDocumentSync */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentSync { public static final String SERIALIZED_NAME_SERVICE = "service"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java index efea1d29b..27d53b88f 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentSyncRequest.java @@ -59,7 +59,7 @@ * AddDocumentSyncRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentSyncRequest { public static final String SERIALIZED_NAME_SYNC = "sync"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentTag.java b/src/main/java/com/formkiq/client/model/AddDocumentTag.java index a7c35c17c..e50b1e018 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentTag.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentTag.java @@ -60,7 +60,7 @@ * List of Document Tags (use either 'value' or 'values' not both) */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentTag { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java index 9e99dfc89..cdd0edd0d 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentTagsRequest.java @@ -61,7 +61,7 @@ * Add List of document tags */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentTagsRequest { public static final String SERIALIZED_NAME_TAGS = "tags"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java index 989b06e42..f5f563dae 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentUploadRequest.java @@ -64,7 +64,7 @@ * AddDocumentUploadRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentUploadRequest { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java index a163ee2a5..3b0f319db 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsRequest.java @@ -58,7 +58,7 @@ * AddDocumentWorkflowDecisionsRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowDecisionsRequest { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java index 0c22e2110..90d5482af 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowDecisionsResponse.java @@ -58,7 +58,7 @@ * AddDocumentWorkflowDecisionsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowDecisionsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java index 0412c0d78..6771b7a1d 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowRequest.java @@ -58,7 +58,7 @@ * AddDocumentWorkflowRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowRequest { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java index ded6959f4..f36117a46 100644 --- a/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocumentWorkflowResponse.java @@ -58,7 +58,7 @@ * AddDocumentWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocumentWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java index 6765928c8..08b141f3c 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesRequest.java @@ -64,7 +64,7 @@ * AddDocusignEnvelopesRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignEnvelopesRequest { public static final String SERIALIZED_NAME_EMAIL_SUBJECT = "emailSubject"; diff --git a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java index 26957402d..eaee3b144 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignEnvelopesResponse.java @@ -58,7 +58,7 @@ * AddDocusignEnvelopesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignEnvelopesResponse { public static final String SERIALIZED_NAME_ENVELOPE_ID = "envelopeId"; diff --git a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java index 780af7061..0ab314581 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewRequest.java @@ -60,7 +60,7 @@ * AddDocusignRecipientViewRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignRecipientViewRequest { public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; diff --git a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java index e24c3b4a1..12457468f 100644 --- a/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java +++ b/src/main/java/com/formkiq/client/model/AddDocusignRecipientViewResponse.java @@ -58,7 +58,7 @@ * AddDocusignRecipientViewResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddDocusignRecipientViewResponse { public static final String SERIALIZED_NAME_VIEW_URL = "viewUrl"; diff --git a/src/main/java/com/formkiq/client/model/AddEntity.java b/src/main/java/com/formkiq/client/model/AddEntity.java index 3a431a22f..e6a597ec5 100644 --- a/src/main/java/com/formkiq/client/model/AddEntity.java +++ b/src/main/java/com/formkiq/client/model/AddEntity.java @@ -61,7 +61,7 @@ * AddEntity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntity { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityAttribute.java b/src/main/java/com/formkiq/client/model/AddEntityAttribute.java index 5e29f38fc..8a8a3985d 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityAttribute.java +++ b/src/main/java/com/formkiq/client/model/AddEntityAttribute.java @@ -61,7 +61,7 @@ * AddEntityAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityRequest.java b/src/main/java/com/formkiq/client/model/AddEntityRequest.java index 1fddba780..613e2c0ad 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityRequest.java +++ b/src/main/java/com/formkiq/client/model/AddEntityRequest.java @@ -59,7 +59,7 @@ * AddEntityRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityRequest { public static final String SERIALIZED_NAME_ENTITY = "entity"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityResponse.java b/src/main/java/com/formkiq/client/model/AddEntityResponse.java index 6d183dc69..00ba30b6a 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityResponse.java +++ b/src/main/java/com/formkiq/client/model/AddEntityResponse.java @@ -58,7 +58,7 @@ * AddEntityResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityResponse { public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityType.java b/src/main/java/com/formkiq/client/model/AddEntityType.java index 308871bbc..d70505119 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityType.java +++ b/src/main/java/com/formkiq/client/model/AddEntityType.java @@ -59,7 +59,7 @@ * AddEntityType */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityType { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java b/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java index ff752c80a..29bb7df28 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java +++ b/src/main/java/com/formkiq/client/model/AddEntityTypeRequest.java @@ -59,7 +59,7 @@ * AddEntityTypeRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityTypeRequest { public static final String SERIALIZED_NAME_ENTITY_TYPE = "entityType"; diff --git a/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java b/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java index a85bb929a..9a38a294a 100644 --- a/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java +++ b/src/main/java/com/formkiq/client/model/AddEntityTypeResponse.java @@ -58,7 +58,7 @@ * AddEntityTypeResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddEntityTypeResponse { public static final String SERIALIZED_NAME_ENTITY_TYPE_ID = "entityTypeId"; diff --git a/src/main/java/com/formkiq/client/model/AddFolderPermission.java b/src/main/java/com/formkiq/client/model/AddFolderPermission.java index 5a089904f..c8224021d 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderPermission.java +++ b/src/main/java/com/formkiq/client/model/AddFolderPermission.java @@ -61,7 +61,7 @@ * AddFolderPermission */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderPermission { public static final String SERIALIZED_NAME_ROLE_NAME = "roleName"; diff --git a/src/main/java/com/formkiq/client/model/AddFolderRequest.java b/src/main/java/com/formkiq/client/model/AddFolderRequest.java index 40f532ab9..fe6bae383 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderRequest.java +++ b/src/main/java/com/formkiq/client/model/AddFolderRequest.java @@ -58,7 +58,7 @@ * AddFolderRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderRequest { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/AddFolderResponse.java b/src/main/java/com/formkiq/client/model/AddFolderResponse.java index 274d98c34..a263b8986 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderResponse.java +++ b/src/main/java/com/formkiq/client/model/AddFolderResponse.java @@ -58,7 +58,7 @@ * AddFolderResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java b/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java index 5cf5cd527..2347e9b1c 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java +++ b/src/main/java/com/formkiq/client/model/AddFolderShareRequest.java @@ -59,7 +59,7 @@ * AddFolderShareRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderShareRequest { public static final String SERIALIZED_NAME_SHARE = "share"; diff --git a/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java b/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java index c51580a0c..025203c5e 100644 --- a/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java +++ b/src/main/java/com/formkiq/client/model/AddFolderShareResponse.java @@ -58,7 +58,7 @@ * AddFolderShareResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddFolderShareResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java index 4cf3a2bc4..04501db67 100644 --- a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java +++ b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportRequest.java @@ -59,7 +59,7 @@ * AddGoogleDocumentExportRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGoogleDocumentExportRequest { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java index a5bdff03f..427593014 100644 --- a/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java +++ b/src/main/java/com/formkiq/client/model/AddGoogleDocumentExportResponse.java @@ -58,7 +58,7 @@ * AddGoogleDocumentExportResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGoogleDocumentExportResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/AddGroup.java b/src/main/java/com/formkiq/client/model/AddGroup.java index 6ab17a817..90b67cc33 100644 --- a/src/main/java/com/formkiq/client/model/AddGroup.java +++ b/src/main/java/com/formkiq/client/model/AddGroup.java @@ -58,7 +58,7 @@ * AddGroup */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGroup { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddGroupRequest.java b/src/main/java/com/formkiq/client/model/AddGroupRequest.java index 5734da06b..278da8b12 100644 --- a/src/main/java/com/formkiq/client/model/AddGroupRequest.java +++ b/src/main/java/com/formkiq/client/model/AddGroupRequest.java @@ -59,7 +59,7 @@ * AddGroupRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddGroupRequest { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleRequest.java b/src/main/java/com/formkiq/client/model/AddLocaleRequest.java index 01d147433..5540fca42 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleRequest.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleRequest.java @@ -58,7 +58,7 @@ * AddLocaleRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleRequest { public static final String SERIALIZED_NAME_LOCALE = "locale"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java index 971a74514..9b89622a4 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceClassificationItem.java @@ -59,7 +59,7 @@ * AddLocaleResourceClassificationItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceClassificationItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java index 78384da89..503c8468e 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceInterfaceItem.java @@ -59,7 +59,7 @@ * AddLocaleResourceInterfaceItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceInterfaceItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java index d34ef96f1..7144c58d8 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemRequest.java @@ -59,7 +59,7 @@ * AddLocaleResourceItemRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceItemRequest { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java index f7cff5645..a4639efbc 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceItemResponse.java @@ -58,7 +58,7 @@ * AddLocaleResourceItemResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceItemResponse { public static final String SERIALIZED_NAME_ITEM_KEY = "itemKey"; diff --git a/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java b/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java index f6060c226..f1d1bd0ea 100644 --- a/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java +++ b/src/main/java/com/formkiq/client/model/AddLocaleResourceSchemaItem.java @@ -59,7 +59,7 @@ * AddLocaleResourceSchemaItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddLocaleResourceSchemaItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; diff --git a/src/main/java/com/formkiq/client/model/AddMapping.java b/src/main/java/com/formkiq/client/model/AddMapping.java index 3646bb2a0..8f09f2663 100644 --- a/src/main/java/com/formkiq/client/model/AddMapping.java +++ b/src/main/java/com/formkiq/client/model/AddMapping.java @@ -61,7 +61,7 @@ * AddMapping */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddMapping { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddMappingRequest.java b/src/main/java/com/formkiq/client/model/AddMappingRequest.java index d0f2d384d..e30460a99 100644 --- a/src/main/java/com/formkiq/client/model/AddMappingRequest.java +++ b/src/main/java/com/formkiq/client/model/AddMappingRequest.java @@ -59,7 +59,7 @@ * AddMappingRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddMappingRequest { public static final String SERIALIZED_NAME_MAPPING = "mapping"; diff --git a/src/main/java/com/formkiq/client/model/AddMappingResponse.java b/src/main/java/com/formkiq/client/model/AddMappingResponse.java index 3d4fbfd46..ff521dffe 100644 --- a/src/main/java/com/formkiq/client/model/AddMappingResponse.java +++ b/src/main/java/com/formkiq/client/model/AddMappingResponse.java @@ -58,7 +58,7 @@ * AddMappingResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddMappingResponse { public static final String SERIALIZED_NAME_MAPPING_ID = "mappingId"; diff --git a/src/main/java/com/formkiq/client/model/AddNigo.java b/src/main/java/com/formkiq/client/model/AddNigo.java index b64e0d2a0..1d871eca9 100644 --- a/src/main/java/com/formkiq/client/model/AddNigo.java +++ b/src/main/java/com/formkiq/client/model/AddNigo.java @@ -63,7 +63,7 @@ * AddNigo */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddNigo { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddNigoRequest.java b/src/main/java/com/formkiq/client/model/AddNigoRequest.java index cd609f78f..2d143c3a9 100644 --- a/src/main/java/com/formkiq/client/model/AddNigoRequest.java +++ b/src/main/java/com/formkiq/client/model/AddNigoRequest.java @@ -59,7 +59,7 @@ * AddNigoRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddNigoRequest { public static final String SERIALIZED_NAME_NIGO = "nigo"; diff --git a/src/main/java/com/formkiq/client/model/AddNigoResponse.java b/src/main/java/com/formkiq/client/model/AddNigoResponse.java index adc7c3b1c..59d5534d7 100644 --- a/src/main/java/com/formkiq/client/model/AddNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/AddNigoResponse.java @@ -58,7 +58,7 @@ * AddNigoResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddNigoResponse { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; diff --git a/src/main/java/com/formkiq/client/model/AddQueueRequest.java b/src/main/java/com/formkiq/client/model/AddQueueRequest.java index 528f26a0c..e53c0fdb0 100644 --- a/src/main/java/com/formkiq/client/model/AddQueueRequest.java +++ b/src/main/java/com/formkiq/client/model/AddQueueRequest.java @@ -58,7 +58,7 @@ * AddQueueRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddQueueRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddQueueResponse.java b/src/main/java/com/formkiq/client/model/AddQueueResponse.java index 841a4a86f..87bd610a0 100644 --- a/src/main/java/com/formkiq/client/model/AddQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/AddQueueResponse.java @@ -58,7 +58,7 @@ * AddQueueResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddQueueResponse { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; diff --git a/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java b/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java index 7a5f8d764..21a0948df 100644 --- a/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/AddReindexDocumentRequest.java @@ -59,7 +59,7 @@ * AddReindexDocumentRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddReindexDocumentRequest { public static final String SERIALIZED_NAME_TARGET = "target"; diff --git a/src/main/java/com/formkiq/client/model/AddResourceItem.java b/src/main/java/com/formkiq/client/model/AddResourceItem.java index 035c19b26..e4803e595 100644 --- a/src/main/java/com/formkiq/client/model/AddResourceItem.java +++ b/src/main/java/com/formkiq/client/model/AddResourceItem.java @@ -71,7 +71,7 @@ import com.formkiq.client.invoker.JSON; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddResourceItem extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(AddResourceItem.class.getName()); diff --git a/src/main/java/com/formkiq/client/model/AddResponse.java b/src/main/java/com/formkiq/client/model/AddResponse.java index 42f945164..599507409 100644 --- a/src/main/java/com/formkiq/client/model/AddResponse.java +++ b/src/main/java/com/formkiq/client/model/AddResponse.java @@ -58,7 +58,7 @@ * AddResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/AddRule.java b/src/main/java/com/formkiq/client/model/AddRule.java index c45a2d99a..5f2c54c31 100644 --- a/src/main/java/com/formkiq/client/model/AddRule.java +++ b/src/main/java/com/formkiq/client/model/AddRule.java @@ -61,7 +61,7 @@ * AddRule */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRule { public static final String SERIALIZED_NAME_PRIORITY = "priority"; diff --git a/src/main/java/com/formkiq/client/model/AddRuleRequest.java b/src/main/java/com/formkiq/client/model/AddRuleRequest.java index abac5a675..fb76ffb48 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleRequest.java +++ b/src/main/java/com/formkiq/client/model/AddRuleRequest.java @@ -59,7 +59,7 @@ * AddRuleRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRuleRequest { public static final String SERIALIZED_NAME_RULE = "rule"; diff --git a/src/main/java/com/formkiq/client/model/AddRuleResponse.java b/src/main/java/com/formkiq/client/model/AddRuleResponse.java index 9fd060403..32f19d3ed 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/AddRuleResponse.java @@ -58,7 +58,7 @@ * AddRuleResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRuleResponse { public static final String SERIALIZED_NAME_RULE_ID = "ruleId"; diff --git a/src/main/java/com/formkiq/client/model/AddRuleset.java b/src/main/java/com/formkiq/client/model/AddRuleset.java index 8503fb09d..16750d566 100644 --- a/src/main/java/com/formkiq/client/model/AddRuleset.java +++ b/src/main/java/com/formkiq/client/model/AddRuleset.java @@ -60,7 +60,7 @@ * AddRuleset */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRuleset { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; diff --git a/src/main/java/com/formkiq/client/model/AddRulesetRequest.java b/src/main/java/com/formkiq/client/model/AddRulesetRequest.java index 1fb3ac2e3..eaec332e0 100644 --- a/src/main/java/com/formkiq/client/model/AddRulesetRequest.java +++ b/src/main/java/com/formkiq/client/model/AddRulesetRequest.java @@ -59,7 +59,7 @@ * AddRulesetRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRulesetRequest { public static final String SERIALIZED_NAME_RULESET = "ruleset"; diff --git a/src/main/java/com/formkiq/client/model/AddRulesetResponse.java b/src/main/java/com/formkiq/client/model/AddRulesetResponse.java index d85d4e828..8eab8a9c0 100644 --- a/src/main/java/com/formkiq/client/model/AddRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/AddRulesetResponse.java @@ -58,7 +58,7 @@ * AddRulesetResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddRulesetResponse { public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; diff --git a/src/main/java/com/formkiq/client/model/AddShare.java b/src/main/java/com/formkiq/client/model/AddShare.java index 991b4443c..d47ee689f 100644 --- a/src/main/java/com/formkiq/client/model/AddShare.java +++ b/src/main/java/com/formkiq/client/model/AddShare.java @@ -61,7 +61,7 @@ * AddShare */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddShare { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/src/main/java/com/formkiq/client/model/AddSite.java b/src/main/java/com/formkiq/client/model/AddSite.java index a585be67a..53c40f980 100644 --- a/src/main/java/com/formkiq/client/model/AddSite.java +++ b/src/main/java/com/formkiq/client/model/AddSite.java @@ -59,7 +59,7 @@ * AddSite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddSite { public static final String SERIALIZED_NAME_ID = "id"; diff --git a/src/main/java/com/formkiq/client/model/AddSiteRequest.java b/src/main/java/com/formkiq/client/model/AddSiteRequest.java index 619875a4e..b1ac7c328 100644 --- a/src/main/java/com/formkiq/client/model/AddSiteRequest.java +++ b/src/main/java/com/formkiq/client/model/AddSiteRequest.java @@ -59,7 +59,7 @@ * AddSiteRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddSiteRequest { public static final String SERIALIZED_NAME_SITE = "site"; diff --git a/src/main/java/com/formkiq/client/model/AddTask.java b/src/main/java/com/formkiq/client/model/AddTask.java index 05c30f3d7..acd345a6e 100644 --- a/src/main/java/com/formkiq/client/model/AddTask.java +++ b/src/main/java/com/formkiq/client/model/AddTask.java @@ -63,7 +63,7 @@ * AddTask */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddTask { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddTaskRequest.java b/src/main/java/com/formkiq/client/model/AddTaskRequest.java index 2d575ca4b..857f3cac5 100644 --- a/src/main/java/com/formkiq/client/model/AddTaskRequest.java +++ b/src/main/java/com/formkiq/client/model/AddTaskRequest.java @@ -59,7 +59,7 @@ * AddTaskRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddTaskRequest { public static final String SERIALIZED_NAME_TASK = "task"; diff --git a/src/main/java/com/formkiq/client/model/AddTaskResponse.java b/src/main/java/com/formkiq/client/model/AddTaskResponse.java index 9947e1359..9d8a2eee6 100644 --- a/src/main/java/com/formkiq/client/model/AddTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/AddTaskResponse.java @@ -58,7 +58,7 @@ * AddTaskResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddTaskResponse { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; diff --git a/src/main/java/com/formkiq/client/model/AddUser.java b/src/main/java/com/formkiq/client/model/AddUser.java index 4fac3143d..445276bb3 100644 --- a/src/main/java/com/formkiq/client/model/AddUser.java +++ b/src/main/java/com/formkiq/client/model/AddUser.java @@ -59,7 +59,7 @@ * AddUser */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddUser { public static final String SERIALIZED_NAME_USERNAME = "username"; diff --git a/src/main/java/com/formkiq/client/model/AddUserRequest.java b/src/main/java/com/formkiq/client/model/AddUserRequest.java index 8b91bf9bd..0601f0b6e 100644 --- a/src/main/java/com/formkiq/client/model/AddUserRequest.java +++ b/src/main/java/com/formkiq/client/model/AddUserRequest.java @@ -59,7 +59,7 @@ * AddUserRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddUserRequest { public static final String SERIALIZED_NAME_USER = "user"; diff --git a/src/main/java/com/formkiq/client/model/AddWebhookRequest.java b/src/main/java/com/formkiq/client/model/AddWebhookRequest.java index 5046925d8..cc7d8e57a 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookRequest.java @@ -61,7 +61,7 @@ * AddWebhookRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWebhookRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddWebhookResponse.java b/src/main/java/com/formkiq/client/model/AddWebhookResponse.java index 52a36ac52..642acf7f7 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookResponse.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookResponse.java @@ -58,7 +58,7 @@ * AddWebhookResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWebhookResponse { public static final String SERIALIZED_NAME_WEBHOOK_ID = "webhookId"; diff --git a/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java b/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java index d36df84e6..bc399d339 100644 --- a/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWebhookTagRequest.java @@ -60,7 +60,7 @@ * AddWebhookTagRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWebhookTagRequest { public static final String SERIALIZED_NAME_VALUE = "value"; diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java b/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java index 7f5695b33..8316be1a5 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowRequest.java @@ -62,7 +62,7 @@ * AddWorkflowRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java b/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java index ca2abcb7a..4aca6ab1c 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowResponse.java @@ -58,7 +58,7 @@ * AddWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowResponse { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStep.java b/src/main/java/com/formkiq/client/model/AddWorkflowStep.java index 50d79a17d..f3c118ade 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStep.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStep.java @@ -63,7 +63,7 @@ * AddWorkflowStep */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowStep { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java b/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java index 2df090f8e..ad515ae4c 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStepDecision.java @@ -59,7 +59,7 @@ * AddWorkflowStepDecision */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowStepDecision { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java b/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java index 638d5ec6d..86ac5cc92 100644 --- a/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java +++ b/src/main/java/com/formkiq/client/model/AddWorkflowStepQueue.java @@ -60,7 +60,7 @@ * AddWorkflowStepQueue */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AddWorkflowStepQueue { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; diff --git a/src/main/java/com/formkiq/client/model/ApiKey.java b/src/main/java/com/formkiq/client/model/ApiKey.java index efadde3e7..329b145ff 100644 --- a/src/main/java/com/formkiq/client/model/ApiKey.java +++ b/src/main/java/com/formkiq/client/model/ApiKey.java @@ -61,7 +61,7 @@ * ApiKey */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ApiKey { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/Attribute.java b/src/main/java/com/formkiq/client/model/Attribute.java index ed71a8a03..267f70cb7 100644 --- a/src/main/java/com/formkiq/client/model/Attribute.java +++ b/src/main/java/com/formkiq/client/model/Attribute.java @@ -61,7 +61,7 @@ * Attribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Attribute { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java b/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java index 2d8d52a28..7ed295ddc 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaCompositeKey.java @@ -60,7 +60,7 @@ * AttributeSchemaCompositeKey */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AttributeSchemaCompositeKey { public static final String SERIALIZED_NAME_ATTRIBUTE_KEYS = "attributeKeys"; diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java b/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java index 85a5a1428..ffa3853a6 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaOptional.java @@ -63,7 +63,7 @@ * AttributeSchemaOptional */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AttributeSchemaOptional { public static final String SERIALIZED_NAME_MIN_NUMBER_OF_VALUES = "minNumberOfValues"; diff --git a/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java b/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java index a8986dd0d..d1e30305b 100644 --- a/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java +++ b/src/main/java/com/formkiq/client/model/AttributeSchemaRequired.java @@ -63,7 +63,7 @@ * AttributeSchemaRequired */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class AttributeSchemaRequired { public static final String SERIALIZED_NAME_ATTRIBUTE_KEY = "attributeKey"; diff --git a/src/main/java/com/formkiq/client/model/ChildDocument.java b/src/main/java/com/formkiq/client/model/ChildDocument.java index b2b6c144b..42230c1c3 100644 --- a/src/main/java/com/formkiq/client/model/ChildDocument.java +++ b/src/main/java/com/formkiq/client/model/ChildDocument.java @@ -58,7 +58,7 @@ * ChildDocument */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ChildDocument { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/Classification.java b/src/main/java/com/formkiq/client/model/Classification.java index 260acc7da..33e03e157 100644 --- a/src/main/java/com/formkiq/client/model/Classification.java +++ b/src/main/java/com/formkiq/client/model/Classification.java @@ -59,7 +59,7 @@ * Classification */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Classification { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/ClassificationSummary.java b/src/main/java/com/formkiq/client/model/ClassificationSummary.java index d2207d460..c9d9b5eda 100644 --- a/src/main/java/com/formkiq/client/model/ClassificationSummary.java +++ b/src/main/java/com/formkiq/client/model/ClassificationSummary.java @@ -58,7 +58,7 @@ * ClassificationSummary */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ClassificationSummary { public static final String SERIALIZED_NAME_CLASSIFICATION_ID = "classificationId"; diff --git a/src/main/java/com/formkiq/client/model/DataClassification.java b/src/main/java/com/formkiq/client/model/DataClassification.java index 3d1e7e0ce..b64c79e0b 100644 --- a/src/main/java/com/formkiq/client/model/DataClassification.java +++ b/src/main/java/com/formkiq/client/model/DataClassification.java @@ -61,7 +61,7 @@ * DataClassification */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DataClassification { public static final String SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME = "llmPromptEntityName"; diff --git a/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java b/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java index c346a82fa..6525d64d2 100644 --- a/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java +++ b/src/main/java/com/formkiq/client/model/DataClassificationAttribute.java @@ -58,7 +58,7 @@ * DataClassificationAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DataClassificationAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java b/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java index f3658db7d..f0b452273 100644 --- a/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteApiKeyResponse.java @@ -58,7 +58,7 @@ * DeleteApiKeyResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteApiKeyResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java index 4bad5a501..f0d31b3da 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseDocumentResponse.java @@ -58,7 +58,7 @@ * DeleteCaseDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java index 18bec4fc3..e0eeb5520 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseNigoDocumentResponse.java @@ -58,7 +58,7 @@ * DeleteCaseNigoDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseNigoDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java index c5ae1b5a9..00d8c4069 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseNigoResponse.java @@ -58,7 +58,7 @@ * DeleteCaseNigoResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseNigoResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java index 2c6e2b736..6e2ff0973 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseResponse.java @@ -58,7 +58,7 @@ * DeleteCaseResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java index 90fb9edaf..b80cfb7e4 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseTaskDocumentResponse.java @@ -58,7 +58,7 @@ * DeleteCaseTaskDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseTaskDocumentResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java b/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java index 3760465b2..6362f76c2 100644 --- a/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteCaseTaskResponse.java @@ -58,7 +58,7 @@ * DeleteCaseTaskResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteCaseTaskResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java b/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java index d6b99be7d..a488a8aa6 100644 --- a/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteFolderResponse.java @@ -58,7 +58,7 @@ * DeleteFolderResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteFolderResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java b/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java index a465390f9..1be327e13 100644 --- a/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteFulltextResponse.java @@ -58,7 +58,7 @@ * DeleteFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java b/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java index 40c3f96c1..74ba5c2e9 100644 --- a/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteIndicesResponse.java @@ -58,7 +58,7 @@ * DeleteIndicesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteIndicesResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java b/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java index e59b55cf7..03221ffc5 100644 --- a/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteQueueResponse.java @@ -58,7 +58,7 @@ * DeleteQueueResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteQueueResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteResponse.java b/src/main/java/com/formkiq/client/model/DeleteResponse.java index b712b43b5..7295606f9 100644 --- a/src/main/java/com/formkiq/client/model/DeleteResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteResponse.java @@ -58,7 +58,7 @@ * DeleteResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java b/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java index 25413325f..ce529535e 100644 --- a/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteRuleResponse.java @@ -58,7 +58,7 @@ * DeleteRuleResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteRuleResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java b/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java index df815164b..607ea8e88 100644 --- a/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteRulesetResponse.java @@ -58,7 +58,7 @@ * DeleteRulesetResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteRulesetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteShareResponse.java b/src/main/java/com/formkiq/client/model/DeleteShareResponse.java index 42eb37524..41ab45c04 100644 --- a/src/main/java/com/formkiq/client/model/DeleteShareResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteShareResponse.java @@ -58,7 +58,7 @@ * DeleteShareResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteShareResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java b/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java index b1f93813c..c99a5841b 100644 --- a/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/DeleteWorkflowResponse.java @@ -58,7 +58,7 @@ * DeleteWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DeleteWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/Document.java b/src/main/java/com/formkiq/client/model/Document.java index 5d6428146..8b4e7521f 100644 --- a/src/main/java/com/formkiq/client/model/Document.java +++ b/src/main/java/com/formkiq/client/model/Document.java @@ -62,7 +62,7 @@ * Document */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Document { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/DocumentAction.java b/src/main/java/com/formkiq/client/model/DocumentAction.java index 6fe247394..9c2c482ff 100644 --- a/src/main/java/com/formkiq/client/model/DocumentAction.java +++ b/src/main/java/com/formkiq/client/model/DocumentAction.java @@ -63,7 +63,7 @@ * DocumentAction */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentAction { public static final String SERIALIZED_NAME_STATUS = "status"; diff --git a/src/main/java/com/formkiq/client/model/DocumentAttribute.java b/src/main/java/com/formkiq/client/model/DocumentAttribute.java index d559a431a..56e815e96 100644 --- a/src/main/java/com/formkiq/client/model/DocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentAttribute.java @@ -62,7 +62,7 @@ * DocumentAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/DocumentConfig.java b/src/main/java/com/formkiq/client/model/DocumentConfig.java index f17b193cc..209897b50 100644 --- a/src/main/java/com/formkiq/client/model/DocumentConfig.java +++ b/src/main/java/com/formkiq/client/model/DocumentConfig.java @@ -59,7 +59,7 @@ * DocumentConfig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentConfig { public static final String SERIALIZED_NAME_CONTENT_TYPES = "contentTypes"; diff --git a/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java b/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java index 897218a6c..1644e2651 100644 --- a/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java +++ b/src/main/java/com/formkiq/client/model/DocumentConfigContentTypes.java @@ -60,7 +60,7 @@ * DocumentConfigContentTypes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentConfigContentTypes { public static final String SERIALIZED_NAME_ALLOWLIST = "allowlist"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java b/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java index 6c590eaf3..5d786a473 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextAttribute.java @@ -61,7 +61,7 @@ * DocumentFulltextAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextAttribute { public static final String SERIALIZED_NAME_EQ = "eq"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java b/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java index ec8467bd5..19ad29d6a 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextAttributeEq.java @@ -59,7 +59,7 @@ * DocumentFulltextAttributeEq */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextAttributeEq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java index 95434daad..54fdc57a2 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextRequest.java @@ -60,7 +60,7 @@ * Document full text search */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextRequest { public static final String SERIALIZED_NAME_QUERY = "query"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java index 3cf55c29a..af46269e5 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextResponse.java @@ -61,9 +61,14 @@ * DocumentFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextResponse { + public static final String SERIALIZED_NAME_TOTAL_COUNT = "totalCount"; + @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) + @javax.annotation.Nullable + private Integer totalCount; + public static final String SERIALIZED_NAME_DOCUMENTS = "documents"; @SerializedName(SERIALIZED_NAME_DOCUMENTS) @javax.annotation.Nullable @@ -71,6 +76,28 @@ public class DocumentFulltextResponse { public DocumentFulltextResponse() {} + public DocumentFulltextResponse totalCount(@javax.annotation.Nullable Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Total number of documents that matched the search query. When the number of matches exceeds + * 10,000, this value will be reported as 10,000+ unless the search request explicitly enables + * exact total hit tracking. + * + * @return totalCount + */ + @javax.annotation.Nullable + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(@javax.annotation.Nullable Integer totalCount) { + this.totalCount = totalCount; + } + + public DocumentFulltextResponse documents( @javax.annotation.Nullable List documents) { this.documents = documents; @@ -110,18 +137,20 @@ public boolean equals(Object o) { return false; } DocumentFulltextResponse documentFulltextResponse = (DocumentFulltextResponse) o; - return Objects.equals(this.documents, documentFulltextResponse.documents); + return Objects.equals(this.totalCount, documentFulltextResponse.totalCount) + && Objects.equals(this.documents, documentFulltextResponse.documents); } @Override public int hashCode() { - return Objects.hash(documents); + return Objects.hash(totalCount, documents); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DocumentFulltextResponse {\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); sb.append(" documents: ").append(toIndentedString(documents)).append("\n"); sb.append("}"); return sb.toString(); @@ -143,7 +172,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("documents")); + openapiFields = new HashSet(Arrays.asList("totalCount", "documents")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java b/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java index 8c7e5ad23..3891d77d6 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextSearch.java @@ -62,7 +62,7 @@ * Document full text search criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextSearch { public static final String SERIALIZED_NAME_PAGE = "page"; diff --git a/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java b/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java index 16628d8c1..9511d2d06 100644 --- a/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentFulltextTag.java @@ -60,7 +60,7 @@ * DocumentFulltextTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentFulltextTag { public static final String SERIALIZED_NAME_EQ = "eq"; diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java b/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java index 31757193c..549add6c7 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateDataSource.java @@ -58,7 +58,7 @@ * DocumentGenerateDataSource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentGenerateDataSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java index 279fe431c..1d8400b69 100644 --- a/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java +++ b/src/main/java/com/formkiq/client/model/DocumentGenerateInsertDocument.java @@ -59,7 +59,7 @@ * DocumentGenerateInsertDocument */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentGenerateInsertDocument { public static final String SERIALIZED_NAME_POSITION = "position"; diff --git a/src/main/java/com/formkiq/client/model/DocumentId.java b/src/main/java/com/formkiq/client/model/DocumentId.java index 11d381ef0..122066af6 100644 --- a/src/main/java/com/formkiq/client/model/DocumentId.java +++ b/src/main/java/com/formkiq/client/model/DocumentId.java @@ -58,7 +58,7 @@ * DocumentId */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentId { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/DocumentMetadata.java b/src/main/java/com/formkiq/client/model/DocumentMetadata.java index f496cca35..5e3241aad 100644 --- a/src/main/java/com/formkiq/client/model/DocumentMetadata.java +++ b/src/main/java/com/formkiq/client/model/DocumentMetadata.java @@ -60,7 +60,7 @@ * Document Metadata (use either 'value' or 'values' not both) */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentMetadata { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearch.java b/src/main/java/com/formkiq/client/model/DocumentSearch.java index 990d439df..01860f130 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearch.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearch.java @@ -64,7 +64,7 @@ * Document tag search criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearch { public static final String SERIALIZED_NAME_TEXT = "text"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java b/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java index 8337e5f30..fe25c3414 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchAttribute.java @@ -61,7 +61,7 @@ * DocumentSearchAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchAttribute { public static final String SERIALIZED_NAME_EQ = "eq"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java b/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java index 20f479a63..62babef96 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMatchAttribute.java @@ -59,7 +59,7 @@ * DocumentSearchMatchAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchMatchAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java b/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java index 52cd06186..70a492fb1 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMatchTag.java @@ -58,7 +58,7 @@ * DocumentSearchMatchTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchMatchTag { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java b/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java index bef430d32..5c85a0e58 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchMeta.java @@ -58,7 +58,7 @@ * DocumentSearchMeta */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchMeta { public static final String SERIALIZED_NAME_FOLDER = "folder"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchRange.java b/src/main/java/com/formkiq/client/model/DocumentSearchRange.java index 561c04192..08f2cdd3d 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchRange.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchRange.java @@ -59,7 +59,7 @@ * DocumentSearchRange */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchRange { public static final String SERIALIZED_NAME_START = "start"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java b/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java index fffaa3f3b..3d7b8bb7a 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchRequest.java @@ -60,7 +60,7 @@ * Document search tag criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchRequest { public static final String SERIALIZED_NAME_QUERY = "query"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java b/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java index 88a8cb275..a8b648ab7 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchResponse.java @@ -61,7 +61,7 @@ * DocumentSearchResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchTag.java b/src/main/java/com/formkiq/client/model/DocumentSearchTag.java index 1136c4bdf..22b0c1037 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchTag.java @@ -61,7 +61,7 @@ * DocumentSearchTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchTag { public static final String SERIALIZED_NAME_BEGINS_WITH = "beginsWith"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSearchTags.java b/src/main/java/com/formkiq/client/model/DocumentSearchTags.java index bdb9a8ede..9e2b02ca3 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSearchTags.java +++ b/src/main/java/com/formkiq/client/model/DocumentSearchTags.java @@ -59,7 +59,7 @@ * DocumentSearchTags */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSearchTags { public static final String SERIALIZED_NAME_EQ = "eq"; diff --git a/src/main/java/com/formkiq/client/model/DocumentSync.java b/src/main/java/com/formkiq/client/model/DocumentSync.java index 987f8bf98..fd267e37d 100644 --- a/src/main/java/com/formkiq/client/model/DocumentSync.java +++ b/src/main/java/com/formkiq/client/model/DocumentSync.java @@ -61,7 +61,7 @@ * DocumentSync */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentSync { public static final String SERIALIZED_NAME_SERVICE = "service"; diff --git a/src/main/java/com/formkiq/client/model/DocumentTag.java b/src/main/java/com/formkiq/client/model/DocumentTag.java index a45b3dbb9..a56b20e51 100644 --- a/src/main/java/com/formkiq/client/model/DocumentTag.java +++ b/src/main/java/com/formkiq/client/model/DocumentTag.java @@ -60,7 +60,7 @@ * DocumentTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentTag { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; diff --git a/src/main/java/com/formkiq/client/model/DocumentVersion.java b/src/main/java/com/formkiq/client/model/DocumentVersion.java index bb16dcbfd..b0f131aa6 100644 --- a/src/main/java/com/formkiq/client/model/DocumentVersion.java +++ b/src/main/java/com/formkiq/client/model/DocumentVersion.java @@ -59,7 +59,7 @@ * DocumentVersion */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentVersion { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; diff --git a/src/main/java/com/formkiq/client/model/DocumentWorkflow.java b/src/main/java/com/formkiq/client/model/DocumentWorkflow.java index 94287ce08..e80b2dbb3 100644 --- a/src/main/java/com/formkiq/client/model/DocumentWorkflow.java +++ b/src/main/java/com/formkiq/client/model/DocumentWorkflow.java @@ -59,7 +59,7 @@ * DocumentWorkflow */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentWorkflow { public static final String SERIALIZED_NAME_WORKFLOW_ID = "workflowId"; diff --git a/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java b/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java index 7a8f26530..31c0f1229 100644 --- a/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java +++ b/src/main/java/com/formkiq/client/model/DocumentsCompressRequest.java @@ -60,7 +60,7 @@ * DocumentsCompressRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentsCompressRequest { public static final String SERIALIZED_NAME_DOCUMENT_IDS = "documentIds"; diff --git a/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java b/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java index 2f1b4461c..0a03ab4c2 100644 --- a/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java +++ b/src/main/java/com/formkiq/client/model/DocumentsCompressResponse.java @@ -58,7 +58,7 @@ * DocumentsCompressResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocumentsCompressResponse { public static final String SERIALIZED_NAME_DOWNLOAD_URL = "downloadUrl"; diff --git a/src/main/java/com/formkiq/client/model/DocusignConfig.java b/src/main/java/com/formkiq/client/model/DocusignConfig.java index 60d07ca6c..c0a81c006 100644 --- a/src/main/java/com/formkiq/client/model/DocusignConfig.java +++ b/src/main/java/com/formkiq/client/model/DocusignConfig.java @@ -58,7 +58,7 @@ * DocusignConfig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignConfig { public static final String SERIALIZED_NAME_USER_ID = "userId"; diff --git a/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java b/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java index 9c995c436..ffcbf3c2f 100644 --- a/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java +++ b/src/main/java/com/formkiq/client/model/DocusignInpersonSigner.java @@ -59,7 +59,7 @@ * DocusignInpersonSigner */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignInpersonSigner { public static final String SERIALIZED_NAME_HOST_EMAIL = "hostEmail"; diff --git a/src/main/java/com/formkiq/client/model/DocusignNotification.java b/src/main/java/com/formkiq/client/model/DocusignNotification.java index 8202ed2b1..530562dc4 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotification.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotification.java @@ -60,7 +60,7 @@ * DocusignNotification */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignNotification { public static final String SERIALIZED_NAME_USE_ACCOUNT_DEFAULTS = "useAccountDefaults"; diff --git a/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java b/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java index 74d1aa744..4404e49e4 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotificationExpirations.java @@ -58,7 +58,7 @@ * DocusignNotificationExpirations */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignNotificationExpirations { public static final String SERIALIZED_NAME_EXPIRE_AFTER = "expireAfter"; diff --git a/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java b/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java index d41fb242c..bf18b97d1 100644 --- a/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java +++ b/src/main/java/com/formkiq/client/model/DocusignNotificationReminders.java @@ -58,7 +58,7 @@ * DocusignNotificationReminders */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignNotificationReminders { public static final String SERIALIZED_NAME_REMINDER_DELAY = "reminderDelay"; diff --git a/src/main/java/com/formkiq/client/model/DocusignRecipientView.java b/src/main/java/com/formkiq/client/model/DocusignRecipientView.java index 14086d9fa..f0425e4b2 100644 --- a/src/main/java/com/formkiq/client/model/DocusignRecipientView.java +++ b/src/main/java/com/formkiq/client/model/DocusignRecipientView.java @@ -60,7 +60,7 @@ * DocusignRecipientView */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignRecipientView { public static final String SERIALIZED_NAME_RETURN_URL = "returnUrl"; diff --git a/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java b/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java index 7fc2b8633..bea23ef83 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java +++ b/src/main/java/com/formkiq/client/model/DocusignSignHereTabs.java @@ -58,7 +58,7 @@ * DocusignSignHereTabs */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignSignHereTabs { public static final String SERIALIZED_NAME_ANCHOR_STRING = "anchorString"; diff --git a/src/main/java/com/formkiq/client/model/DocusignSigner.java b/src/main/java/com/formkiq/client/model/DocusignSigner.java index 62d6c055a..2f1122c46 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSigner.java +++ b/src/main/java/com/formkiq/client/model/DocusignSigner.java @@ -59,7 +59,7 @@ * DocusignSigner */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignSigner { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java b/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java index 18afa0d17..998f8b829 100644 --- a/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java +++ b/src/main/java/com/formkiq/client/model/DocusignSigningTabs.java @@ -61,7 +61,7 @@ * DocusignSigningTabs */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class DocusignSigningTabs { public static final String SERIALIZED_NAME_SIGN_HERE_TABS = "signHereTabs"; diff --git a/src/main/java/com/formkiq/client/model/Entity.java b/src/main/java/com/formkiq/client/model/Entity.java index 79f47c4a9..b435be1df 100644 --- a/src/main/java/com/formkiq/client/model/Entity.java +++ b/src/main/java/com/formkiq/client/model/Entity.java @@ -61,7 +61,7 @@ * Entity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Entity { public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; diff --git a/src/main/java/com/formkiq/client/model/EntityAttribute.java b/src/main/java/com/formkiq/client/model/EntityAttribute.java index 540c9f81a..853cff468 100644 --- a/src/main/java/com/formkiq/client/model/EntityAttribute.java +++ b/src/main/java/com/formkiq/client/model/EntityAttribute.java @@ -62,7 +62,7 @@ * EntityAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class EntityAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/EntityType.java b/src/main/java/com/formkiq/client/model/EntityType.java index 7555a9fe6..8998871bd 100644 --- a/src/main/java/com/formkiq/client/model/EntityType.java +++ b/src/main/java/com/formkiq/client/model/EntityType.java @@ -59,7 +59,7 @@ * EntityType */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class EntityType { public static final String SERIALIZED_NAME_ENTITY_TYPE_ID = "entityTypeId"; diff --git a/src/main/java/com/formkiq/client/model/Error.java b/src/main/java/com/formkiq/client/model/Error.java index 35b9a00d5..890335aad 100644 --- a/src/main/java/com/formkiq/client/model/Error.java +++ b/src/main/java/com/formkiq/client/model/Error.java @@ -58,7 +58,7 @@ * Error */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Error { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/ErrorsResponse.java b/src/main/java/com/formkiq/client/model/ErrorsResponse.java index 886d25677..bef0be7cf 100644 --- a/src/main/java/com/formkiq/client/model/ErrorsResponse.java +++ b/src/main/java/com/formkiq/client/model/ErrorsResponse.java @@ -61,7 +61,7 @@ * ErrorsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ErrorsResponse { public static final String SERIALIZED_NAME_ERRORS = "errors"; diff --git a/src/main/java/com/formkiq/client/model/FolderPermission.java b/src/main/java/com/formkiq/client/model/FolderPermission.java index 11c0b5806..f5159e3e3 100644 --- a/src/main/java/com/formkiq/client/model/FolderPermission.java +++ b/src/main/java/com/formkiq/client/model/FolderPermission.java @@ -61,7 +61,7 @@ * FolderPermission */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class FolderPermission { public static final String SERIALIZED_NAME_ROLE_NAME = "roleName"; diff --git a/src/main/java/com/formkiq/client/model/FulltextAttribute.java b/src/main/java/com/formkiq/client/model/FulltextAttribute.java index fbf28c2ae..f7bdff0f1 100644 --- a/src/main/java/com/formkiq/client/model/FulltextAttribute.java +++ b/src/main/java/com/formkiq/client/model/FulltextAttribute.java @@ -62,7 +62,7 @@ * FulltextAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class FulltextAttribute { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; diff --git a/src/main/java/com/formkiq/client/model/FulltextSearchItem.java b/src/main/java/com/formkiq/client/model/FulltextSearchItem.java index 70137579b..ec8b67ba0 100644 --- a/src/main/java/com/formkiq/client/model/FulltextSearchItem.java +++ b/src/main/java/com/formkiq/client/model/FulltextSearchItem.java @@ -62,7 +62,7 @@ * FulltextSearchItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class FulltextSearchItem { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/GetActivitesResponse.java b/src/main/java/com/formkiq/client/model/GetActivitesResponse.java index 571d1f8f0..b84c90f7a 100644 --- a/src/main/java/com/formkiq/client/model/GetActivitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetActivitesResponse.java @@ -61,7 +61,7 @@ * GetActivitesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetActivitesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java b/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java index c231b236e..7bc5cfa93 100644 --- a/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java +++ b/src/main/java/com/formkiq/client/model/GetApiKeysResponse.java @@ -61,7 +61,7 @@ * GetApiKeysResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetApiKeysResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java b/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java index 7228273d1..b9463adfa 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributeAllowedValuesResponse.java @@ -62,7 +62,7 @@ * GetAttributeAllowedValuesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetAttributeAllowedValuesResponse { public static final String SERIALIZED_NAME_ALLOWED_VALUES = "allowedValues"; diff --git a/src/main/java/com/formkiq/client/model/GetAttributeResponse.java b/src/main/java/com/formkiq/client/model/GetAttributeResponse.java index 3ff8b08ba..f3d50dfd5 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributeResponse.java @@ -59,7 +59,7 @@ * GetAttributeResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetAttributeResponse { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/GetAttributesResponse.java b/src/main/java/com/formkiq/client/model/GetAttributesResponse.java index a9ec3a4b9..2e9e98d69 100644 --- a/src/main/java/com/formkiq/client/model/GetAttributesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetAttributesResponse.java @@ -61,7 +61,7 @@ * GetAttributesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetAttributesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java index 9d969bc13..3ced8cff8 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseDocumentsResponse.java @@ -61,7 +61,7 @@ * GetCaseDocumentsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java b/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java index 3626d15f2..d38807059 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseNigoResponse.java @@ -59,7 +59,7 @@ * GetCaseNigoResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseNigoResponse { public static final String SERIALIZED_NAME_NIGO = "nigo"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java b/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java index ac4f9dccc..71e6f633e 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseNigosResponse.java @@ -61,7 +61,7 @@ * GetCaseNigosResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseNigosResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseResponse.java b/src/main/java/com/formkiq/client/model/GetCaseResponse.java index bdd083ec9..9d8153616 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseResponse.java @@ -59,7 +59,7 @@ * GetCaseResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseResponse { public static final String SERIALIZED_NAME_CASE = "case"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java b/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java index c9376f673..a515ad654 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseTaskResponse.java @@ -59,7 +59,7 @@ * GetCaseTaskResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseTaskResponse { public static final String SERIALIZED_NAME_TASK = "task"; diff --git a/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java b/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java index 0508f81c8..c77a70a79 100644 --- a/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCaseTasksResponse.java @@ -61,7 +61,7 @@ * GetCaseTasksResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCaseTasksResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetCasesResponse.java b/src/main/java/com/formkiq/client/model/GetCasesResponse.java index 767fba347..c25026c0e 100644 --- a/src/main/java/com/formkiq/client/model/GetCasesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetCasesResponse.java @@ -61,7 +61,7 @@ * GetCasesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetCasesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetClassificationResponse.java b/src/main/java/com/formkiq/client/model/GetClassificationResponse.java index 4c06ec07e..27928e068 100644 --- a/src/main/java/com/formkiq/client/model/GetClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetClassificationResponse.java @@ -59,7 +59,7 @@ * GetClassificationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetClassificationResponse { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; diff --git a/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java b/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java index e18a40aa8..fceb36b9c 100644 --- a/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetClassificationsResponse.java @@ -61,7 +61,7 @@ * GetClassificationsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetClassificationsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java b/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java index 1714497be..84135bcc4 100644 --- a/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetConfigurationResponse.java @@ -62,7 +62,7 @@ * GetConfigurationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetConfigurationResponse { public static final String SERIALIZED_NAME_CHAT_GPT_API_KEY = "chatGptApiKey"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java index 305e8953d..8e69e320f 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentActionsResponse.java @@ -61,7 +61,7 @@ * GetDocumentActionsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentActionsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java index a807d509d..27d9ab602 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentAttributeResponse.java @@ -59,7 +59,7 @@ * GetDocumentAttributeResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentAttributeResponse { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java index 98451af63..561ca807e 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentAttributesResponse.java @@ -61,7 +61,7 @@ * GetDocumentAttributesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentAttributesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java index 44c756727..f0471222f 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentContentResponse.java @@ -58,7 +58,7 @@ * GetDocumentContentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentContentResponse { public static final String SERIALIZED_NAME_CONTENT = "content"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java index 51e117b47..3595967d5 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentDataClassificationResponse.java @@ -61,7 +61,7 @@ * GetDocumentDataClassificationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentDataClassificationResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java index 6a783a28c..709406771 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentFulltextResponse.java @@ -62,7 +62,7 @@ * GetDocumentFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentFulltextResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java index fb1bbf3df..5a81a8d54 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentOcrResponse.java @@ -62,7 +62,7 @@ * GetDocumentOcrResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentOcrResponse { public static final String SERIALIZED_NAME_CONTENT_URLS = "contentUrls"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentResponse.java index 24c87458e..8bd232a75 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentResponse.java @@ -63,7 +63,7 @@ * GetDocumentResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java index 9d58659ae..992cad72d 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentSyncResponse.java @@ -61,7 +61,7 @@ * GetDocumentSyncResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentSyncResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java index 1b650bed0..63169db57 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentTagResponse.java @@ -60,7 +60,7 @@ * GetDocumentTagResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentTagResponse { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java index 64a5b8b6f..eb6ca6fbe 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentTagsResponse.java @@ -61,7 +61,7 @@ * GetDocumentTagsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentTagsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java index fc921ef01..07cef789b 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentUrlResponse.java @@ -60,7 +60,7 @@ * GetDocumentUrlResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentUrlResponse { public static final String SERIALIZED_NAME_DOCUMENT_ID = "documentId"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java index 76f0458a5..61641a0e3 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentVersionsResponse.java @@ -61,7 +61,7 @@ * GetDocumentVersionsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentVersionsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java index 801f01dd5..a90a604c1 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowResponse.java @@ -59,7 +59,7 @@ * GetDocumentWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentWorkflowResponse { public static final String SERIALIZED_NAME_WORKFLOW = "workflow"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java index bcdd3e475..404b15752 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentWorkflowsResponse.java @@ -61,7 +61,7 @@ * GetDocumentWorkflowsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentWorkflowsResponse { public static final String SERIALIZED_NAME_WORKFLOWS = "workflows"; diff --git a/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java index bd5a8cf4c..fc7fc1047 100644 --- a/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetDocumentsResponse.java @@ -61,7 +61,7 @@ * GetDocumentsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java b/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java index 279441372..f47ab9cfb 100644 --- a/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntitiesResponse.java @@ -61,7 +61,7 @@ * GetEntitiesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntitiesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetEntityResponse.java b/src/main/java/com/formkiq/client/model/GetEntityResponse.java index 46990a405..f4dcc634d 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityResponse.java @@ -59,7 +59,7 @@ * GetEntityResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntityResponse { public static final String SERIALIZED_NAME_ENTITY = "entity"; diff --git a/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java b/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java index d1ba94285..6227a55fa 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityTypeResponse.java @@ -59,7 +59,7 @@ * GetEntityTypeResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntityTypeResponse { public static final String SERIALIZED_NAME_ENTITY_TYPE = "entityType"; diff --git a/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java b/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java index 5b00ef769..89d769308 100644 --- a/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetEntityTypesResponse.java @@ -61,7 +61,7 @@ * GetEntityTypesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetEntityTypesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java b/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java index 66c2b3909..d2bb57c8d 100644 --- a/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java +++ b/src/main/java/com/formkiq/client/model/GetExaminePdfResponse.java @@ -59,7 +59,7 @@ * GetExaminePdfResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetExaminePdfResponse { public static final String SERIALIZED_NAME_FILEINFO = "fileinfo"; diff --git a/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java b/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java index 61a496023..21ab83490 100644 --- a/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java +++ b/src/main/java/com/formkiq/client/model/GetExaminePdfUrlResponse.java @@ -58,7 +58,7 @@ * GetExaminePdfUrlResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetExaminePdfUrlResponse { public static final String SERIALIZED_NAME_ID = "id"; diff --git a/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java b/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java index 06e9c7c4b..12bc78947 100644 --- a/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetFolderPermissionsResponse.java @@ -61,7 +61,7 @@ * GetFolderPermissionsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetFolderPermissionsResponse { public static final String SERIALIZED_NAME_ROLES = "roles"; diff --git a/src/main/java/com/formkiq/client/model/GetFoldersResponse.java b/src/main/java/com/formkiq/client/model/GetFoldersResponse.java index 7fcbfcd10..6c1b18fba 100644 --- a/src/main/java/com/formkiq/client/model/GetFoldersResponse.java +++ b/src/main/java/com/formkiq/client/model/GetFoldersResponse.java @@ -61,7 +61,7 @@ * GetFoldersResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetFoldersResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetGroupResponse.java b/src/main/java/com/formkiq/client/model/GetGroupResponse.java index 6d1419eef..075fb86d8 100644 --- a/src/main/java/com/formkiq/client/model/GetGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetGroupResponse.java @@ -59,7 +59,7 @@ * GetGroupResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetGroupResponse { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/src/main/java/com/formkiq/client/model/GetGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetGroupsResponse.java index e32fac2cb..629332d6a 100644 --- a/src/main/java/com/formkiq/client/model/GetGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetGroupsResponse.java @@ -61,7 +61,7 @@ * GetGroupsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetGroupsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java index e3cf0e5e7..bbec0fae6 100644 --- a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemResponse.java @@ -59,7 +59,7 @@ * GetLocaleResourceItemResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetLocaleResourceItemResponse { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; diff --git a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java index 7f4fc056f..772c3f0cb 100644 --- a/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocaleResourceItemsResponse.java @@ -61,7 +61,7 @@ * GetLocaleResourceItemsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetLocaleResourceItemsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetLocalesResponse.java b/src/main/java/com/formkiq/client/model/GetLocalesResponse.java index 39ef5ca84..421880b83 100644 --- a/src/main/java/com/formkiq/client/model/GetLocalesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetLocalesResponse.java @@ -61,7 +61,7 @@ * GetLocalesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetLocalesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java b/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java index 0a6a58592..2eaee9dd9 100644 --- a/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMalwareScanResponse.java @@ -61,7 +61,7 @@ * GetMalwareScanResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetMalwareScanResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetMappingResponse.java b/src/main/java/com/formkiq/client/model/GetMappingResponse.java index 71717139f..1ce3ab4cd 100644 --- a/src/main/java/com/formkiq/client/model/GetMappingResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMappingResponse.java @@ -59,7 +59,7 @@ * GetMappingResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetMappingResponse { public static final String SERIALIZED_NAME_MAPPING = "mapping"; diff --git a/src/main/java/com/formkiq/client/model/GetMappingsResponse.java b/src/main/java/com/formkiq/client/model/GetMappingsResponse.java index b64f3b0f9..bde63da62 100644 --- a/src/main/java/com/formkiq/client/model/GetMappingsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetMappingsResponse.java @@ -61,7 +61,7 @@ * GetMappingsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetMappingsResponse { public static final String SERIALIZED_NAME_MAPPINGS = "mappings"; diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java index 629a8e471..32c54caa4 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPoliciesResponse.java @@ -61,7 +61,7 @@ * GetOpaAccessPoliciesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpaAccessPoliciesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java index 46b9db33d..afb381a90 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyItemsResponse.java @@ -61,7 +61,7 @@ * GetOpaAccessPolicyItemsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpaAccessPolicyItemsResponse { public static final String SERIALIZED_NAME_POLICY_ITEMS = "policyItems"; diff --git a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java index b8bf28015..2789633a8 100644 --- a/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpaAccessPolicyResponse.java @@ -58,7 +58,7 @@ * GetOpaAccessPolicyResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpaAccessPolicyResponse { public static final String SERIALIZED_NAME_OPA_POLICY = "opaPolicy"; diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java index 7138cccae..1dac4663e 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchIndexResponse.java @@ -59,7 +59,7 @@ * GetOpenSearchIndexResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchIndexResponse { public static final String SERIALIZED_NAME_INDEX_SETTINGS = "indexSettings"; diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java index 03132e7b4..b866c44e6 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchIndiceResponse.java @@ -61,7 +61,7 @@ * GetOpenSearchIndiceResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchIndiceResponse { public static final String SERIALIZED_NAME_INDICES = "indices"; diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java index b2e6c7cf8..20031382f 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotRepositoryResponse.java @@ -61,7 +61,7 @@ * GetOpenSearchSnapshotRepositoryResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchSnapshotRepositoryResponse { public static final String SERIALIZED_NAME_S3_REPOSITORIES = "s3Repositories"; diff --git a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java index a8ead72fb..8e6e85545 100644 --- a/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java +++ b/src/main/java/com/formkiq/client/model/GetOpenSearchSnapshotResponse.java @@ -61,7 +61,7 @@ * GetOpenSearchSnapshotResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetOpenSearchSnapshotResponse { public static final String SERIALIZED_NAME_SNAPSHOTS = "snapshots"; diff --git a/src/main/java/com/formkiq/client/model/GetQueueResponse.java b/src/main/java/com/formkiq/client/model/GetQueueResponse.java index 763d103b4..fa31c4306 100644 --- a/src/main/java/com/formkiq/client/model/GetQueueResponse.java +++ b/src/main/java/com/formkiq/client/model/GetQueueResponse.java @@ -58,7 +58,7 @@ * GetQueueResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetQueueResponse { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/GetQueuesResponse.java b/src/main/java/com/formkiq/client/model/GetQueuesResponse.java index a29adac41..a8c03410d 100644 --- a/src/main/java/com/formkiq/client/model/GetQueuesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetQueuesResponse.java @@ -61,7 +61,7 @@ * GetQueuesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetQueuesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetRuleResponse.java b/src/main/java/com/formkiq/client/model/GetRuleResponse.java index d537637c7..73570f80d 100644 --- a/src/main/java/com/formkiq/client/model/GetRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRuleResponse.java @@ -59,7 +59,7 @@ * GetRuleResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRuleResponse { public static final String SERIALIZED_NAME_RULE = "rule"; diff --git a/src/main/java/com/formkiq/client/model/GetRulesResponse.java b/src/main/java/com/formkiq/client/model/GetRulesResponse.java index d1f8ef1fc..7870fe127 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesResponse.java @@ -61,7 +61,7 @@ * GetRulesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRulesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetRulesetResponse.java b/src/main/java/com/formkiq/client/model/GetRulesetResponse.java index 019a1c44d..f443f3361 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesetResponse.java @@ -59,7 +59,7 @@ * GetRulesetResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRulesetResponse { public static final String SERIALIZED_NAME_RULESET = "ruleset"; diff --git a/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java b/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java index e416bd844..9ced1d36a 100644 --- a/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetRulesetsResponse.java @@ -61,7 +61,7 @@ * GetRulesetsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetRulesetsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java b/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java index 77f567be3..cd0fe2262 100644 --- a/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSiteGroupResponse.java @@ -59,7 +59,7 @@ * GetSiteGroupResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSiteGroupResponse { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java index 24170f939..8d9b23775 100644 --- a/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSiteGroupsResponse.java @@ -60,7 +60,7 @@ * GetSiteGroupsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSiteGroupsResponse { public static final String SERIALIZED_NAME_GROUP_NAMES = "groupNames"; diff --git a/src/main/java/com/formkiq/client/model/GetSitesResponse.java b/src/main/java/com/formkiq/client/model/GetSitesResponse.java index 0257bc36a..b26ff18f9 100644 --- a/src/main/java/com/formkiq/client/model/GetSitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSitesResponse.java @@ -61,7 +61,7 @@ * GetSitesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSitesResponse { public static final String SERIALIZED_NAME_USERNAME = "username"; diff --git a/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java b/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java index b6b1949a8..c2b61f64b 100644 --- a/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java +++ b/src/main/java/com/formkiq/client/model/GetSitesSchemaResponse.java @@ -59,7 +59,7 @@ * GetSitesSchemaResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetSitesSchemaResponse { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java b/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java index 0124950d3..8a627229b 100644 --- a/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserActivitesResponse.java @@ -61,7 +61,7 @@ * GetUserActivitesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserActivitesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java b/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java index b5647459f..53cd47f6d 100644 --- a/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserGroupsResponse.java @@ -61,7 +61,7 @@ * GetUserGroupsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserGroupsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetUserResponse.java b/src/main/java/com/formkiq/client/model/GetUserResponse.java index 3385348e1..ed6deafe9 100644 --- a/src/main/java/com/formkiq/client/model/GetUserResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserResponse.java @@ -59,7 +59,7 @@ * GetUserResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserResponse { public static final String SERIALIZED_NAME_USER = "user"; diff --git a/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java b/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java index 2e9c991b0..b8ec07850 100644 --- a/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUserSharesResponse.java @@ -61,7 +61,7 @@ * GetUserSharesResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUserSharesResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java b/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java index bb294ed44..77146a671 100644 --- a/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUsersInGroupResponse.java @@ -61,7 +61,7 @@ * GetUsersInGroupResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUsersInGroupResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetUsersResponse.java b/src/main/java/com/formkiq/client/model/GetUsersResponse.java index 77b223a2c..a22246d8a 100644 --- a/src/main/java/com/formkiq/client/model/GetUsersResponse.java +++ b/src/main/java/com/formkiq/client/model/GetUsersResponse.java @@ -61,7 +61,7 @@ * GetUsersResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetUsersResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetVersionResponse.java b/src/main/java/com/formkiq/client/model/GetVersionResponse.java index 30d306b4d..4c3b17d5d 100644 --- a/src/main/java/com/formkiq/client/model/GetVersionResponse.java +++ b/src/main/java/com/formkiq/client/model/GetVersionResponse.java @@ -60,7 +60,7 @@ * GetVersionResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetVersionResponse { public static final String SERIALIZED_NAME_VERSION = "version"; diff --git a/src/main/java/com/formkiq/client/model/GetWebhookResponse.java b/src/main/java/com/formkiq/client/model/GetWebhookResponse.java index 22a02979e..2b26cc5af 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhookResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhookResponse.java @@ -58,7 +58,7 @@ * GetWebhookResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWebhookResponse { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java b/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java index 1ef596b28..13a6a3cb8 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhookTagsResponse.java @@ -61,7 +61,7 @@ * GetWebhookTagsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWebhookTagsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java b/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java index 45b9f1e42..4d9d68eb8 100644 --- a/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWebhooksResponse.java @@ -61,7 +61,7 @@ * GetWebhooksResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWebhooksResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java index f0fefe371..ac7552baa 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowDocumentsResponse.java @@ -61,7 +61,7 @@ * GetWorkflowDocumentsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java index dfa886256..9c5f0e355 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowQueueDocumentsResponse.java @@ -61,7 +61,7 @@ * GetWorkflowQueueDocumentsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowQueueDocumentsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java index fad02f319..e5ae9a676 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowResponse.java @@ -62,7 +62,7 @@ * GetWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowResponse { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java b/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java index 9a7608ccb..0e0e13c70 100644 --- a/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java +++ b/src/main/java/com/formkiq/client/model/GetWorkflowsResponse.java @@ -61,7 +61,7 @@ * GetWorkflowsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GetWorkflowsResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/GoogleConfig.java b/src/main/java/com/formkiq/client/model/GoogleConfig.java index 0d2684506..b9b1b0a5e 100644 --- a/src/main/java/com/formkiq/client/model/GoogleConfig.java +++ b/src/main/java/com/formkiq/client/model/GoogleConfig.java @@ -58,7 +58,7 @@ * GoogleConfig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class GoogleConfig { public static final String SERIALIZED_NAME_WORKLOAD_IDENTITY_AUDIENCE = diff --git a/src/main/java/com/formkiq/client/model/Group.java b/src/main/java/com/formkiq/client/model/Group.java index 05033c7e1..83a574669 100644 --- a/src/main/java/com/formkiq/client/model/Group.java +++ b/src/main/java/com/formkiq/client/model/Group.java @@ -58,7 +58,7 @@ * Group */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Group { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java b/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java index faf9a38af..fd42952dd 100644 --- a/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java +++ b/src/main/java/com/formkiq/client/model/IndexFolderMoveRequest.java @@ -58,7 +58,7 @@ * IndexFolderMoveRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexFolderMoveRequest { public static final String SERIALIZED_NAME_SOURCE = "source"; diff --git a/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java b/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java index affd62bd3..279d96df6 100644 --- a/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java +++ b/src/main/java/com/formkiq/client/model/IndexFolderMoveResponse.java @@ -58,7 +58,7 @@ * IndexFolderMoveResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexFolderMoveResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/IndexSearch.java b/src/main/java/com/formkiq/client/model/IndexSearch.java index 032fdffd9..0d5851273 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearch.java +++ b/src/main/java/com/formkiq/client/model/IndexSearch.java @@ -58,7 +58,7 @@ * IndexSearch */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexSearch { public static final String SERIALIZED_NAME_VALUE = "value"; diff --git a/src/main/java/com/formkiq/client/model/IndexSearchRequest.java b/src/main/java/com/formkiq/client/model/IndexSearchRequest.java index 18de03c4d..b1bd2a848 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearchRequest.java +++ b/src/main/java/com/formkiq/client/model/IndexSearchRequest.java @@ -58,7 +58,7 @@ * IndexSearchRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexSearchRequest { public static final String SERIALIZED_NAME_INDEX_TYPE = "indexType"; diff --git a/src/main/java/com/formkiq/client/model/IndexSearchResponse.java b/src/main/java/com/formkiq/client/model/IndexSearchResponse.java index 802d43e77..de82a9121 100644 --- a/src/main/java/com/formkiq/client/model/IndexSearchResponse.java +++ b/src/main/java/com/formkiq/client/model/IndexSearchResponse.java @@ -61,7 +61,7 @@ * IndexSearchResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class IndexSearchResponse { public static final String SERIALIZED_NAME_NEXT = "next"; diff --git a/src/main/java/com/formkiq/client/model/LocaleInfo.java b/src/main/java/com/formkiq/client/model/LocaleInfo.java index d3f5e379c..69d21fbd4 100644 --- a/src/main/java/com/formkiq/client/model/LocaleInfo.java +++ b/src/main/java/com/formkiq/client/model/LocaleInfo.java @@ -58,7 +58,7 @@ * LocaleInfo */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class LocaleInfo { public static final String SERIALIZED_NAME_LOCALE = "locale"; diff --git a/src/main/java/com/formkiq/client/model/MalwareScanResult.java b/src/main/java/com/formkiq/client/model/MalwareScanResult.java index 0cc778e8b..d3186901c 100644 --- a/src/main/java/com/formkiq/client/model/MalwareScanResult.java +++ b/src/main/java/com/formkiq/client/model/MalwareScanResult.java @@ -60,7 +60,7 @@ * MalwareScanResult */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class MalwareScanResult { public static final String SERIALIZED_NAME_SCAN_STATUS = "scanStatus"; diff --git a/src/main/java/com/formkiq/client/model/Mapping.java b/src/main/java/com/formkiq/client/model/Mapping.java index 33a8c37fd..4d5f37b4b 100644 --- a/src/main/java/com/formkiq/client/model/Mapping.java +++ b/src/main/java/com/formkiq/client/model/Mapping.java @@ -61,7 +61,7 @@ * Mapping */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Mapping { public static final String SERIALIZED_NAME_MAPPING_ID = "mappingId"; diff --git a/src/main/java/com/formkiq/client/model/MappingAttribute.java b/src/main/java/com/formkiq/client/model/MappingAttribute.java index 2978253d4..028f7ed1d 100644 --- a/src/main/java/com/formkiq/client/model/MappingAttribute.java +++ b/src/main/java/com/formkiq/client/model/MappingAttribute.java @@ -63,7 +63,7 @@ * MappingAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class MappingAttribute { public static final String SERIALIZED_NAME_ATTRIBUTE_KEY = "attributeKey"; diff --git a/src/main/java/com/formkiq/client/model/MatchDocumentTag.java b/src/main/java/com/formkiq/client/model/MatchDocumentTag.java index fd2c1049b..d86f105a4 100644 --- a/src/main/java/com/formkiq/client/model/MatchDocumentTag.java +++ b/src/main/java/com/formkiq/client/model/MatchDocumentTag.java @@ -58,7 +58,7 @@ * Match Document Tag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class MatchDocumentTag { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/ModelCase.java b/src/main/java/com/formkiq/client/model/ModelCase.java index 37d9c0b86..00c08093e 100644 --- a/src/main/java/com/formkiq/client/model/ModelCase.java +++ b/src/main/java/com/formkiq/client/model/ModelCase.java @@ -61,7 +61,7 @@ * ModelCase */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ModelCase { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; diff --git a/src/main/java/com/formkiq/client/model/Nigo.java b/src/main/java/com/formkiq/client/model/Nigo.java index 823551fda..4c7de691d 100644 --- a/src/main/java/com/formkiq/client/model/Nigo.java +++ b/src/main/java/com/formkiq/client/model/Nigo.java @@ -61,7 +61,7 @@ * Nigo */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Nigo { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; diff --git a/src/main/java/com/formkiq/client/model/OcrConfig.java b/src/main/java/com/formkiq/client/model/OcrConfig.java index 9fcb298a8..8a97290f9 100644 --- a/src/main/java/com/formkiq/client/model/OcrConfig.java +++ b/src/main/java/com/formkiq/client/model/OcrConfig.java @@ -59,7 +59,7 @@ * OcrConfig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrConfig { public static final String SERIALIZED_NAME_MAX_PAGES_PER_TRANSACTION = "maxPagesPerTransaction"; diff --git a/src/main/java/com/formkiq/client/model/OcrKeyValues.java b/src/main/java/com/formkiq/client/model/OcrKeyValues.java index 9754530f5..a99d3e8a0 100644 --- a/src/main/java/com/formkiq/client/model/OcrKeyValues.java +++ b/src/main/java/com/formkiq/client/model/OcrKeyValues.java @@ -60,7 +60,7 @@ * OcrKeyValues */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrKeyValues { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/OcrTable.java b/src/main/java/com/formkiq/client/model/OcrTable.java index 40b63a326..5f5dd31b5 100644 --- a/src/main/java/com/formkiq/client/model/OcrTable.java +++ b/src/main/java/com/formkiq/client/model/OcrTable.java @@ -61,7 +61,7 @@ * OcrTable */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrTable { public static final String SERIALIZED_NAME_HEADERS = "headers"; diff --git a/src/main/java/com/formkiq/client/model/OcrTableData.java b/src/main/java/com/formkiq/client/model/OcrTableData.java index 6ae1a80b8..aec27b0bf 100644 --- a/src/main/java/com/formkiq/client/model/OcrTableData.java +++ b/src/main/java/com/formkiq/client/model/OcrTableData.java @@ -58,7 +58,7 @@ * OcrTableData */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OcrTableData { public static final String SERIALIZED_NAME_VALUE = "value"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicy.java b/src/main/java/com/formkiq/client/model/OpaPolicy.java index 6d7456e2f..7665ea020 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicy.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicy.java @@ -58,7 +58,7 @@ * OpaPolicy */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicy { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java index 05b28d214..b53d7ede9 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttribute.java @@ -66,7 +66,7 @@ * OpaPolicyAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttribute { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java index f610ae11b..8c9019481 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeEq.java @@ -60,7 +60,7 @@ * Attribute EQ criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeEq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java index 8079dad25..b3e239f11 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGt.java @@ -59,7 +59,7 @@ * Attribute greater than criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeGt { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java index 5c4202b6e..64c0b9c4c 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeGte.java @@ -59,7 +59,7 @@ * Attribute greater than and equals to criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeGte { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java index 94798896c..ac9090662 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeIn.java @@ -60,7 +60,7 @@ * Attribute In to criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeIn { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java index afac18af3..88d554d9c 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeInput.java @@ -58,7 +58,7 @@ * OpaPolicyAttributeInput */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeInput { public static final String SERIALIZED_NAME_MATCH_USERNAME = "matchUsername"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java index 3e75700bc..862604d85 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLt.java @@ -59,7 +59,7 @@ * Attribute less than criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeLt { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java index 72e8b59ab..0c79928c2 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeLte.java @@ -59,7 +59,7 @@ * Attribute less than and equals to criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeLte { public static final String SERIALIZED_NAME_NUMBER_VALUE = "numberValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java index 80bd04d2e..594a8bece 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNeq.java @@ -58,7 +58,7 @@ * Attribute not equal to criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeNeq { public static final String SERIALIZED_NAME_STRING_VALUE = "stringValue"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java index a6ecc56d9..30e159730 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyAttributeNotIn.java @@ -60,7 +60,7 @@ * Attribute Not In to criteria */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyAttributeNotIn { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInput.java b/src/main/java/com/formkiq/client/model/OpaPolicyInput.java index 87db76581..c873414f3 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInput.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInput.java @@ -60,7 +60,7 @@ * OpaPolicyInput */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyInput { public static final String SERIALIZED_NAME_HTTP_METHOD = "httpMethod"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java b/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java index a30733cf0..f6b2343ad 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInputMethod.java @@ -60,7 +60,7 @@ * OpaPolicyInputMethod */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyInputMethod { public static final String SERIALIZED_NAME_IN = "in"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java b/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java index 4faddbc14..906bf30d1 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyInputResource.java @@ -60,7 +60,7 @@ * OpaPolicyInputResource */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyInputResource { public static final String SERIALIZED_NAME_IN = "in"; diff --git a/src/main/java/com/formkiq/client/model/OpaPolicyItem.java b/src/main/java/com/formkiq/client/model/OpaPolicyItem.java index 64cf0c464..3acab896c 100644 --- a/src/main/java/com/formkiq/client/model/OpaPolicyItem.java +++ b/src/main/java/com/formkiq/client/model/OpaPolicyItem.java @@ -62,7 +62,7 @@ * OpaPolicyItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpaPolicyItem { public static final String SERIALIZED_NAME_POLICY = "policy"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchAlias.java b/src/main/java/com/formkiq/client/model/OpenSearchAlias.java index 8649c1e7e..3c71a3146 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchAlias.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchAlias.java @@ -58,7 +58,7 @@ * OpenSearchAlias */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchAlias { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchIndex.java b/src/main/java/com/formkiq/client/model/OpenSearchIndex.java index f837178c2..4bb10016e 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchIndex.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchIndex.java @@ -61,7 +61,7 @@ * OpenSearchIndex */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchIndex { public static final String SERIALIZED_NAME_NUMBER_OF_REPLICAS = "numberOfReplicas"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java b/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java index 322167f5f..9f4b66cdc 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchIndexSetting.java @@ -58,7 +58,7 @@ * OpenSearchIndexSetting */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchIndexSetting { public static final String SERIALIZED_NAME_NUMBER_OF_REPLICAS = "numberOfReplicas"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java b/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java index 09c49ee7c..a78d5186d 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchS3Repository.java @@ -58,7 +58,7 @@ * OpenSearchS3Repository */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchS3Repository { public static final String SERIALIZED_NAME_REPOSITORY = "repository"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java index 4d75e4dc4..c632b9356 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshot.java @@ -63,7 +63,7 @@ * OpenSearchSnapshot */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchSnapshot { public static final String SERIALIZED_NAME_SNAPSHOT = "snapshot"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java index 4fdb4b5bc..bce51f1b7 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotFailure.java @@ -58,7 +58,7 @@ * Details about a failure for a specific shard in a snapshot. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchSnapshotFailure { public static final String SERIALIZED_NAME_INDEX = "index"; diff --git a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java index 6c25c9f30..b2f81e372 100644 --- a/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java +++ b/src/main/java/com/formkiq/client/model/OpenSearchSnapshotShard.java @@ -59,7 +59,7 @@ * OpenSearchSnapshotShard */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class OpenSearchSnapshotShard { public static final String SERIALIZED_NAME_TOTAL = "total"; diff --git a/src/main/java/com/formkiq/client/model/PdfDocument.java b/src/main/java/com/formkiq/client/model/PdfDocument.java index 1bd851881..8e83e792f 100644 --- a/src/main/java/com/formkiq/client/model/PdfDocument.java +++ b/src/main/java/com/formkiq/client/model/PdfDocument.java @@ -61,7 +61,7 @@ * PdfDocument */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class PdfDocument { public static final String SERIALIZED_NAME_FIELDS = "fields"; diff --git a/src/main/java/com/formkiq/client/model/PdfDocumentField.java b/src/main/java/com/formkiq/client/model/PdfDocumentField.java index 016a097f5..ae4b93458 100644 --- a/src/main/java/com/formkiq/client/model/PdfDocumentField.java +++ b/src/main/java/com/formkiq/client/model/PdfDocumentField.java @@ -58,7 +58,7 @@ * PdfDocumentField */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class PdfDocumentField { public static final String SERIALIZED_NAME_FIELD = "field"; diff --git a/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java b/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java index b32ceaa88..7c09c0093 100644 --- a/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/QueryFulltextResponse.java @@ -58,7 +58,7 @@ * QueryFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class QueryFulltextResponse { public static final String SERIALIZED_NAME_RESULT = "result"; diff --git a/src/main/java/com/formkiq/client/model/Queue.java b/src/main/java/com/formkiq/client/model/Queue.java index 55038ec57..814aa8381 100644 --- a/src/main/java/com/formkiq/client/model/Queue.java +++ b/src/main/java/com/formkiq/client/model/Queue.java @@ -58,7 +58,7 @@ * Queue */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Queue { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/ResourceItem.java b/src/main/java/com/formkiq/client/model/ResourceItem.java index cfde48a80..f0989bf4a 100644 --- a/src/main/java/com/formkiq/client/model/ResourceItem.java +++ b/src/main/java/com/formkiq/client/model/ResourceItem.java @@ -59,7 +59,7 @@ * ResourceItem */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ResourceItem { public static final String SERIALIZED_NAME_ITEM_TYPE = "itemType"; diff --git a/src/main/java/com/formkiq/client/model/Rule.java b/src/main/java/com/formkiq/client/model/Rule.java index eb824acdc..8440d183b 100644 --- a/src/main/java/com/formkiq/client/model/Rule.java +++ b/src/main/java/com/formkiq/client/model/Rule.java @@ -61,7 +61,7 @@ * Rule */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Rule { public static final String SERIALIZED_NAME_RULE_ID = "ruleId"; diff --git a/src/main/java/com/formkiq/client/model/RuleCondition.java b/src/main/java/com/formkiq/client/model/RuleCondition.java index 962074965..e8f17ff07 100644 --- a/src/main/java/com/formkiq/client/model/RuleCondition.java +++ b/src/main/java/com/formkiq/client/model/RuleCondition.java @@ -61,7 +61,7 @@ * RuleCondition */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class RuleCondition { public static final String SERIALIZED_NAME_MUST = "must"; diff --git a/src/main/java/com/formkiq/client/model/RuleConditionMust.java b/src/main/java/com/formkiq/client/model/RuleConditionMust.java index 179180df2..b133e3f47 100644 --- a/src/main/java/com/formkiq/client/model/RuleConditionMust.java +++ b/src/main/java/com/formkiq/client/model/RuleConditionMust.java @@ -61,7 +61,7 @@ * RuleConditionMust */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class RuleConditionMust { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/Ruleset.java b/src/main/java/com/formkiq/client/model/Ruleset.java index d5cb43267..cac57bce8 100644 --- a/src/main/java/com/formkiq/client/model/Ruleset.java +++ b/src/main/java/com/formkiq/client/model/Ruleset.java @@ -60,7 +60,7 @@ * Ruleset */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Ruleset { public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; diff --git a/src/main/java/com/formkiq/client/model/SchemaAttributes.java b/src/main/java/com/formkiq/client/model/SchemaAttributes.java index fad1a56b0..5c1fb04bc 100644 --- a/src/main/java/com/formkiq/client/model/SchemaAttributes.java +++ b/src/main/java/com/formkiq/client/model/SchemaAttributes.java @@ -63,7 +63,7 @@ * SchemaAttributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SchemaAttributes { public static final String SERIALIZED_NAME_COMPOSITE_KEYS = "compositeKeys"; diff --git a/src/main/java/com/formkiq/client/model/SearchResponseFields.java b/src/main/java/com/formkiq/client/model/SearchResponseFields.java index b0a819bbc..b76e2b37a 100644 --- a/src/main/java/com/formkiq/client/model/SearchResponseFields.java +++ b/src/main/java/com/formkiq/client/model/SearchResponseFields.java @@ -60,7 +60,7 @@ * SearchResponseFields */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SearchResponseFields { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; diff --git a/src/main/java/com/formkiq/client/model/SearchResultDocument.java b/src/main/java/com/formkiq/client/model/SearchResultDocument.java index 6205450a8..fed6b8cd7 100644 --- a/src/main/java/com/formkiq/client/model/SearchResultDocument.java +++ b/src/main/java/com/formkiq/client/model/SearchResultDocument.java @@ -67,7 +67,7 @@ * SearchResultDocument */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SearchResultDocument { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java b/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java index 5ae39859e..72ae4e6d1 100644 --- a/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java +++ b/src/main/java/com/formkiq/client/model/SearchResultDocumentAttribute.java @@ -62,7 +62,7 @@ * SearchResultDocumentAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SearchResultDocumentAttribute { public static final String SERIALIZED_NAME_STRING_VALUES = "stringValues"; diff --git a/src/main/java/com/formkiq/client/model/SetClassificationRequest.java b/src/main/java/com/formkiq/client/model/SetClassificationRequest.java index 1ee8543d0..9938aa96e 100644 --- a/src/main/java/com/formkiq/client/model/SetClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/SetClassificationRequest.java @@ -59,7 +59,7 @@ * SetClassificationRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetClassificationRequest { public static final String SERIALIZED_NAME_CLASSIFICATION = "classification"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java index 0cb247b15..a90b642fd 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentAttributeRequest.java @@ -59,7 +59,7 @@ * Set List of document attributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java index 8799e552b..29bc14603 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentAttributesRequest.java @@ -61,7 +61,7 @@ * Set List of document attributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentAttributesRequest { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java index 41d70699c..3979f7040 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationRequest.java @@ -58,7 +58,7 @@ * SetDocumentDataClassificationRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentDataClassificationRequest { public static final String SERIALIZED_NAME_LLM_PROMPT_ENTITY_NAME = "llmPromptEntityName"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java index e55017b8d..8cccff824 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentDataClassificationResponse.java @@ -61,7 +61,7 @@ * SetDocumentDataClassificationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentDataClassificationResponse { public static final String SERIALIZED_NAME_CONTENT = "content"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java index d17f229e3..5d10f52d5 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentFulltextRequest.java @@ -66,7 +66,7 @@ * SetDocumentFulltextRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java index f48a6c3a2..0757133b9 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentFulltextResponse.java @@ -58,7 +58,7 @@ * SetDocumentFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java index 13f5a5dc6..cf475d944 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentOcrRequest.java @@ -58,7 +58,7 @@ * SetDocumentOcrRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentOcrRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java index dc98d7c91..d9ff1d6b5 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentRestoreResponse.java @@ -58,7 +58,7 @@ * SetDocumentRestoreResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentRestoreResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java index c5bff00a6..ae50e8a1f 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentTagKeyRequest.java @@ -60,7 +60,7 @@ * SetDocumentTagKeyRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentTagKeyRequest { public static final String SERIALIZED_NAME_VALUE = "value"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java b/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java index 3bf77e275..b45dbe1e4 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentVersionRequest.java @@ -58,7 +58,7 @@ * SetDocumentVersionRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentVersionRequest { public static final String SERIALIZED_NAME_VERSION_KEY = "versionKey"; diff --git a/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java b/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java index b6ccefe9e..b6553b67e 100644 --- a/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java +++ b/src/main/java/com/formkiq/client/model/SetDocumentVersionResponse.java @@ -58,7 +58,7 @@ * SetDocumentVersionResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetDocumentVersionResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java b/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java index e4499ca56..1726c98a6 100644 --- a/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetFolderPermissionsRequest.java @@ -61,7 +61,7 @@ * SetFolderPermissionsRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetFolderPermissionsRequest { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java b/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java index 64f8ee500..302ff95cd 100644 --- a/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetGroupPermissionsRequest.java @@ -61,7 +61,7 @@ * SetGroupPermissionsRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetGroupPermissionsRequest { public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; diff --git a/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java b/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java index 9b82f4f53..5ddb28020 100644 --- a/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java +++ b/src/main/java/com/formkiq/client/model/SetLocaleResourceItemRequest.java @@ -59,7 +59,7 @@ * SetLocaleResourceItemRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetLocaleResourceItemRequest { public static final String SERIALIZED_NAME_RESOURCE_ITEM = "resourceItem"; diff --git a/src/main/java/com/formkiq/client/model/SetMappingRequest.java b/src/main/java/com/formkiq/client/model/SetMappingRequest.java index b2d177248..3ce1d612c 100644 --- a/src/main/java/com/formkiq/client/model/SetMappingRequest.java +++ b/src/main/java/com/formkiq/client/model/SetMappingRequest.java @@ -59,7 +59,7 @@ * SetMappingRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetMappingRequest { public static final String SERIALIZED_NAME_MAPPING = "mapping"; diff --git a/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java b/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java index eda246b25..fc4507dc3 100644 --- a/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpaAccessPolicyItemsRequest.java @@ -61,7 +61,7 @@ * SetOpaAccessPolicyItemsRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpaAccessPolicyItemsRequest { public static final String SERIALIZED_NAME_POLICY_ITEMS = "policyItems"; diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java index 2e4f96d00..10da4bc34 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexRequest.java @@ -59,7 +59,7 @@ * SetOpenSearchIndexRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpenSearchIndexRequest { public static final String SERIALIZED_NAME_INDEX_SETTINGS = "indexSettings"; diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java index 87aaa6d79..fe7597274 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndexResponse.java @@ -58,7 +58,7 @@ * SetOpenSearchIndexResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpenSearchIndexResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java b/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java index eda4363a7..3a0010a35 100644 --- a/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java +++ b/src/main/java/com/formkiq/client/model/SetOpenSearchIndiceRequest.java @@ -58,7 +58,7 @@ * SetOpenSearchIndiceRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetOpenSearchIndiceRequest { public static final String SERIALIZED_NAME_INDEX_NAME = "indexName"; diff --git a/src/main/java/com/formkiq/client/model/SetResponse.java b/src/main/java/com/formkiq/client/model/SetResponse.java index 239928fae..c46f873d4 100644 --- a/src/main/java/com/formkiq/client/model/SetResponse.java +++ b/src/main/java/com/formkiq/client/model/SetResponse.java @@ -58,7 +58,7 @@ * SetResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java b/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java index 17feee952..6d295d8d7 100644 --- a/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java +++ b/src/main/java/com/formkiq/client/model/SetSchemaAttributes.java @@ -63,7 +63,7 @@ * SetSchemaAttributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetSchemaAttributes { public static final String SERIALIZED_NAME_COMPOSITE_KEYS = "compositeKeys"; diff --git a/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java b/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java index 04c11b400..5729ee8f5 100644 --- a/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java +++ b/src/main/java/com/formkiq/client/model/SetSitesSchemaRequest.java @@ -59,7 +59,7 @@ * SetSitesSchemaRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetSitesSchemaRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java b/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java index f2b51fe90..0a7bfa9f2 100644 --- a/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/SetWorkflowRequest.java @@ -62,7 +62,7 @@ * SetWorkflowRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java b/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java index 4fbde52c5..908e890fb 100644 --- a/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/SetWorkflowResponse.java @@ -58,7 +58,7 @@ * SetWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SetWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/Site.java b/src/main/java/com/formkiq/client/model/Site.java index 8136b985f..0fa2836c6 100644 --- a/src/main/java/com/formkiq/client/model/Site.java +++ b/src/main/java/com/formkiq/client/model/Site.java @@ -64,7 +64,7 @@ * Site */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Site { public static final String SERIALIZED_NAME_SITE_ID = "siteId"; diff --git a/src/main/java/com/formkiq/client/model/SiteConfig.java b/src/main/java/com/formkiq/client/model/SiteConfig.java index 23d573dbd..2fb936e04 100644 --- a/src/main/java/com/formkiq/client/model/SiteConfig.java +++ b/src/main/java/com/formkiq/client/model/SiteConfig.java @@ -59,7 +59,7 @@ * SiteConfig */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SiteConfig { public static final String SERIALIZED_NAME_MAX_CONTENT_LENGTH_BYTES = "maxContentLengthBytes"; diff --git a/src/main/java/com/formkiq/client/model/SiteGroup.java b/src/main/java/com/formkiq/client/model/SiteGroup.java index c4a7ebfbe..cb617b8ad 100644 --- a/src/main/java/com/formkiq/client/model/SiteGroup.java +++ b/src/main/java/com/formkiq/client/model/SiteGroup.java @@ -61,7 +61,7 @@ * SiteGroup */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SiteGroup { public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; diff --git a/src/main/java/com/formkiq/client/model/SiteUsage.java b/src/main/java/com/formkiq/client/model/SiteUsage.java index 32ffe7646..b3eb8e3d7 100644 --- a/src/main/java/com/formkiq/client/model/SiteUsage.java +++ b/src/main/java/com/formkiq/client/model/SiteUsage.java @@ -59,7 +59,7 @@ * SiteUsage */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class SiteUsage { public static final String SERIALIZED_NAME_DOCUMENT_COUNT = "documentCount"; diff --git a/src/main/java/com/formkiq/client/model/StringFormat.java b/src/main/java/com/formkiq/client/model/StringFormat.java index ec0f4b754..183b0ed15 100644 --- a/src/main/java/com/formkiq/client/model/StringFormat.java +++ b/src/main/java/com/formkiq/client/model/StringFormat.java @@ -59,7 +59,7 @@ * StringFormat */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class StringFormat { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/Task.java b/src/main/java/com/formkiq/client/model/Task.java index 6cba14ca5..8c1a32f18 100644 --- a/src/main/java/com/formkiq/client/model/Task.java +++ b/src/main/java/com/formkiq/client/model/Task.java @@ -61,7 +61,7 @@ * Task */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Task { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; diff --git a/src/main/java/com/formkiq/client/model/TextractQuery.java b/src/main/java/com/formkiq/client/model/TextractQuery.java index e1aadc8c6..004397826 100644 --- a/src/main/java/com/formkiq/client/model/TextractQuery.java +++ b/src/main/java/com/formkiq/client/model/TextractQuery.java @@ -60,7 +60,7 @@ * A question to ask Textract */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class TextractQuery { public static final String SERIALIZED_NAME_TEXT = "text"; diff --git a/src/main/java/com/formkiq/client/model/UpdateAttribute.java b/src/main/java/com/formkiq/client/model/UpdateAttribute.java index 73e5ab287..11e0c423c 100644 --- a/src/main/java/com/formkiq/client/model/UpdateAttribute.java +++ b/src/main/java/com/formkiq/client/model/UpdateAttribute.java @@ -60,7 +60,7 @@ * UpdateAttribute */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateAttribute { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java b/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java index f2911f79b..d0cdd7a85 100644 --- a/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateAttributeRequest.java @@ -59,7 +59,7 @@ * UpdateAttributeRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateAttributeRequest { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; diff --git a/src/main/java/com/formkiq/client/model/UpdateCase.java b/src/main/java/com/formkiq/client/model/UpdateCase.java index b4c8951a4..c69b386d5 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCase.java +++ b/src/main/java/com/formkiq/client/model/UpdateCase.java @@ -63,7 +63,7 @@ * UpdateCase */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateCase { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java b/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java index ff6ece7e5..a25a2cff5 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateCaseRequest.java @@ -59,7 +59,7 @@ * UpdateCaseRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateCaseRequest { public static final String SERIALIZED_NAME_CASE = "case"; diff --git a/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java b/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java index e498d7e72..749044542 100644 --- a/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateCaseResponse.java @@ -58,7 +58,7 @@ * UpdateCaseResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateCaseResponse { public static final String SERIALIZED_NAME_CASE_ID = "caseId"; diff --git a/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java b/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java index 473bdeb55..866c57d7d 100644 --- a/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateConfigurationRequest.java @@ -62,7 +62,7 @@ * UpdateConfigurationRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateConfigurationRequest { public static final String SERIALIZED_NAME_CHAT_GPT_API_KEY = "chatGptApiKey"; diff --git a/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java b/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java index 202c975ae..0d8e432e6 100644 --- a/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateConfigurationResponse.java @@ -58,7 +58,7 @@ * UpdateConfigurationResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateConfigurationResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java index 87d746097..d359fcbcc 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextRequest.java @@ -66,7 +66,7 @@ * UpdateDocumentFulltextRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateDocumentFulltextRequest { public static final String SERIALIZED_NAME_CONTENT_TYPE = "contentType"; diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java index cdf061001..f5469825a 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentFulltextResponse.java @@ -58,7 +58,7 @@ * UpdateDocumentFulltextResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateDocumentFulltextResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java b/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java index 17706f9ae..258b6454e 100644 --- a/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateDocumentRequest.java @@ -66,7 +66,7 @@ * UpdateDocumentRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateDocumentRequest { public static final String SERIALIZED_NAME_PATH = "path"; diff --git a/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java b/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java index 9796e9f23..a9b8fab6b 100644 --- a/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateEntityRequest.java @@ -59,7 +59,7 @@ * UpdateEntityRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateEntityRequest { public static final String SERIALIZED_NAME_ENTITY = "entity"; diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java index 2c653cd74..f25593ae8 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequest.java @@ -60,7 +60,7 @@ * Add/Update of multiple document tag(s) based on document(s) that have the matching tag. */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequest { public static final String SERIALIZED_NAME_MATCH = "match"; diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java index 6322c2d1c..b85703dbc 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestMatch.java @@ -59,7 +59,7 @@ * UpdateMatchingDocumentTagsRequestMatch */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequestMatch { public static final String SERIALIZED_NAME_TAG = "tag"; diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java index 8b7bced8c..24383b242 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsRequestUpdate.java @@ -61,7 +61,7 @@ * Data to update */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsRequestUpdate { public static final String SERIALIZED_NAME_TAGS = "tags"; diff --git a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java index 029dec0a4..371fbe609 100644 --- a/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateMatchingDocumentTagsResponse.java @@ -58,7 +58,7 @@ * UpdateMatchingDocumentTagsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateMatchingDocumentTagsResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateNigo.java b/src/main/java/com/formkiq/client/model/UpdateNigo.java index e3f3d0ea5..149d64d5d 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigo.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigo.java @@ -63,7 +63,7 @@ * UpdateNigo */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateNigo { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java b/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java index 781ed5383..91066aa2a 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigoRequest.java @@ -59,7 +59,7 @@ * UpdateNigoRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateNigoRequest { public static final String SERIALIZED_NAME_NIGO = "nigo"; diff --git a/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java b/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java index 7f5c8c4d3..4e9a04cb0 100644 --- a/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateNigoResponse.java @@ -58,7 +58,7 @@ * UpdateNigoResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateNigoResponse { public static final String SERIALIZED_NAME_NIGO_ID = "nigoId"; diff --git a/src/main/java/com/formkiq/client/model/UpdateResponse.java b/src/main/java/com/formkiq/client/model/UpdateResponse.java index 28eeeebe5..e4444f968 100644 --- a/src/main/java/com/formkiq/client/model/UpdateResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateResponse.java @@ -58,7 +58,7 @@ * UpdateResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRule.java b/src/main/java/com/formkiq/client/model/UpdateRule.java index fccb6e1b1..aff633c99 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRule.java +++ b/src/main/java/com/formkiq/client/model/UpdateRule.java @@ -61,7 +61,7 @@ * UpdateRule */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRule { public static final String SERIALIZED_NAME_PRIORITY = "priority"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java b/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java index f810d486d..3e74c635b 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleRequest.java @@ -59,7 +59,7 @@ * UpdateRuleRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRuleRequest { public static final String SERIALIZED_NAME_RULE = "rule"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java b/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java index abf2cda7d..e2aad8da6 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleResponse.java @@ -58,7 +58,7 @@ * UpdateRuleResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRuleResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRuleset.java b/src/main/java/com/formkiq/client/model/UpdateRuleset.java index 726fb2918..1480eb720 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRuleset.java +++ b/src/main/java/com/formkiq/client/model/UpdateRuleset.java @@ -60,7 +60,7 @@ * UpdateRuleset */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRuleset { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java b/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java index 33a285ffe..0291727ee 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateRulesetRequest.java @@ -59,7 +59,7 @@ * UpdateRulesetRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRulesetRequest { public static final String SERIALIZED_NAME_RULESET = "ruleset"; diff --git a/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java b/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java index 354310e6d..980c38205 100644 --- a/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateRulesetResponse.java @@ -58,7 +58,7 @@ * UpdateRulesetResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateRulesetResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/UpdateSite.java b/src/main/java/com/formkiq/client/model/UpdateSite.java index 122363689..13c2b1570 100644 --- a/src/main/java/com/formkiq/client/model/UpdateSite.java +++ b/src/main/java/com/formkiq/client/model/UpdateSite.java @@ -59,7 +59,7 @@ * UpdateSite */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateSite { public static final String SERIALIZED_NAME_TITLE = "title"; diff --git a/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java b/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java index 6150693a0..3005b81cc 100644 --- a/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateSiteRequest.java @@ -59,7 +59,7 @@ * UpdateSiteRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateSiteRequest { public static final String SERIALIZED_NAME_SITE = "site"; diff --git a/src/main/java/com/formkiq/client/model/UpdateTask.java b/src/main/java/com/formkiq/client/model/UpdateTask.java index 039416836..8541adf25 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTask.java +++ b/src/main/java/com/formkiq/client/model/UpdateTask.java @@ -63,7 +63,7 @@ * UpdateTask */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateTask { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java b/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java index d013ffcb7..f51643a48 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateTaskRequest.java @@ -59,7 +59,7 @@ * UpdateTaskRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateTaskRequest { public static final String SERIALIZED_NAME_TASK = "task"; diff --git a/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java b/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java index c957f24d8..89dc89742 100644 --- a/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateTaskResponse.java @@ -58,7 +58,7 @@ * UpdateTaskResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateTaskResponse { public static final String SERIALIZED_NAME_TASK_ID = "taskId"; diff --git a/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java b/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java index ea6afb754..c761ea5cf 100644 --- a/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java +++ b/src/main/java/com/formkiq/client/model/UpdateWorkflowRequest.java @@ -59,7 +59,7 @@ * UpdateWorkflowRequest */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateWorkflowRequest { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java b/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java index a5f5803ec..dfbfc91af 100644 --- a/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java +++ b/src/main/java/com/formkiq/client/model/UpdateWorkflowResponse.java @@ -58,7 +58,7 @@ * UpdateWorkflowResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UpdateWorkflowResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; diff --git a/src/main/java/com/formkiq/client/model/User.java b/src/main/java/com/formkiq/client/model/User.java index a075d2509..933076b85 100644 --- a/src/main/java/com/formkiq/client/model/User.java +++ b/src/main/java/com/formkiq/client/model/User.java @@ -59,7 +59,7 @@ * User */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class User { public static final String SERIALIZED_NAME_USERNAME = "username"; diff --git a/src/main/java/com/formkiq/client/model/UserActivity.java b/src/main/java/com/formkiq/client/model/UserActivity.java index 0312a4ab6..ba81d9646 100644 --- a/src/main/java/com/formkiq/client/model/UserActivity.java +++ b/src/main/java/com/formkiq/client/model/UserActivity.java @@ -63,7 +63,7 @@ * UserActivity */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserActivity { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/UserActivityChanges.java b/src/main/java/com/formkiq/client/model/UserActivityChanges.java index 021841fcd..b0f8099a9 100644 --- a/src/main/java/com/formkiq/client/model/UserActivityChanges.java +++ b/src/main/java/com/formkiq/client/model/UserActivityChanges.java @@ -58,7 +58,7 @@ * UserActivityChanges */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserActivityChanges { public static final String SERIALIZED_NAME_OLD_VALUE = "oldValue"; diff --git a/src/main/java/com/formkiq/client/model/UserAttributes.java b/src/main/java/com/formkiq/client/model/UserAttributes.java index 4169a7065..82aacd294 100644 --- a/src/main/java/com/formkiq/client/model/UserAttributes.java +++ b/src/main/java/com/formkiq/client/model/UserAttributes.java @@ -58,7 +58,7 @@ * UserAttributes */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserAttributes { public static final String SERIALIZED_NAME_ADDRESS = "address"; diff --git a/src/main/java/com/formkiq/client/model/UserShare.java b/src/main/java/com/formkiq/client/model/UserShare.java index d8c992a7c..9d1a0ddb1 100644 --- a/src/main/java/com/formkiq/client/model/UserShare.java +++ b/src/main/java/com/formkiq/client/model/UserShare.java @@ -62,7 +62,7 @@ * UserShare */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class UserShare { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/src/main/java/com/formkiq/client/model/ValidationError.java b/src/main/java/com/formkiq/client/model/ValidationError.java index 92f35a5f9..510070ae1 100644 --- a/src/main/java/com/formkiq/client/model/ValidationError.java +++ b/src/main/java/com/formkiq/client/model/ValidationError.java @@ -58,7 +58,7 @@ * ValidationError */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ValidationError { public static final String SERIALIZED_NAME_KEY = "key"; diff --git a/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java b/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java index 4c1106ce9..1c6ed5938 100644 --- a/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java +++ b/src/main/java/com/formkiq/client/model/ValidationErrorsResponse.java @@ -61,7 +61,7 @@ * ValidationErrorsResponse */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class ValidationErrorsResponse { public static final String SERIALIZED_NAME_ERRORS = "errors"; diff --git a/src/main/java/com/formkiq/client/model/Watermark.java b/src/main/java/com/formkiq/client/model/Watermark.java index a19e0147d..c1b372422 100644 --- a/src/main/java/com/formkiq/client/model/Watermark.java +++ b/src/main/java/com/formkiq/client/model/Watermark.java @@ -61,7 +61,7 @@ * Watermark */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class Watermark { public static final String SERIALIZED_NAME_FONT_SIZE = "fontSize"; diff --git a/src/main/java/com/formkiq/client/model/WatermarkPosition.java b/src/main/java/com/formkiq/client/model/WatermarkPosition.java index 4b57dea92..c603fdbfc 100644 --- a/src/main/java/com/formkiq/client/model/WatermarkPosition.java +++ b/src/main/java/com/formkiq/client/model/WatermarkPosition.java @@ -61,7 +61,7 @@ * WatermarkPosition */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WatermarkPosition { public static final String SERIALIZED_NAME_X_ANCHOR = "xAnchor"; diff --git a/src/main/java/com/formkiq/client/model/WebhookTag.java b/src/main/java/com/formkiq/client/model/WebhookTag.java index bf4e62f35..52a01544e 100644 --- a/src/main/java/com/formkiq/client/model/WebhookTag.java +++ b/src/main/java/com/formkiq/client/model/WebhookTag.java @@ -58,7 +58,7 @@ * WebhookTag */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WebhookTag { public static final String SERIALIZED_NAME_INSERTED_DATE = "insertedDate"; diff --git a/src/main/java/com/formkiq/client/model/WorkflowDocument.java b/src/main/java/com/formkiq/client/model/WorkflowDocument.java index f55ed8513..4c220b131 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowDocument.java +++ b/src/main/java/com/formkiq/client/model/WorkflowDocument.java @@ -60,7 +60,7 @@ * WorkflowDocument */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowDocument { public static final String SERIALIZED_NAME_WORKFLOW = "workflow"; diff --git a/src/main/java/com/formkiq/client/model/WorkflowQueue.java b/src/main/java/com/formkiq/client/model/WorkflowQueue.java index 504ad7994..8ae5e5204 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowQueue.java +++ b/src/main/java/com/formkiq/client/model/WorkflowQueue.java @@ -60,7 +60,7 @@ * WorkflowQueue */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowQueue { public static final String SERIALIZED_NAME_QUEUE_ID = "queueId"; diff --git a/src/main/java/com/formkiq/client/model/WorkflowStep.java b/src/main/java/com/formkiq/client/model/WorkflowStep.java index 4d5384a40..9e512b338 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStep.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStep.java @@ -63,7 +63,7 @@ * WorkflowStep */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowStep { public static final String SERIALIZED_NAME_STEP_ID = "stepId"; diff --git a/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java b/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java index 6d0dfcf0b..8db891333 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java +++ b/src/main/java/com/formkiq/client/model/WorkflowStepDecision.java @@ -59,7 +59,7 @@ * WorkflowStepDecision */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowStepDecision { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/src/main/java/com/formkiq/client/model/WorkflowSummary.java b/src/main/java/com/formkiq/client/model/WorkflowSummary.java index f3f230160..101d0a610 100644 --- a/src/main/java/com/formkiq/client/model/WorkflowSummary.java +++ b/src/main/java/com/formkiq/client/model/WorkflowSummary.java @@ -59,7 +59,7 @@ * WorkflowSummary */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2025-12-01T21:03:18.078696-06:00[America/Winnipeg]", + date = "2025-12-07T17:20:11.660615-06:00[America/Winnipeg]", comments = "Generator version: 7.17.0") public class WorkflowSummary { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java b/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java index e63f3a47a..8f39f2b6b 100644 --- a/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java +++ b/src/test/java/com/formkiq/client/model/DocumentFulltextResponseTest.java @@ -47,6 +47,14 @@ public void testDocumentFulltextResponse() { // TODO: test DocumentFulltextResponse } + /** + * Test the property 'totalCount' + */ + @Test + public void totalCountTest() { + // TODO: test totalCount + } + /** * Test the property 'documents' */